52 lines
1.2 KiB
Groovy
52 lines
1.2 KiB
Groovy
|
|
||
|
|
||
|
plugins {
|
||
|
alias(libs.plugins.android.library)
|
||
|
}
|
||
|
|
||
|
|
||
|
android {
|
||
|
namespace 'com.example.mylibrary1'
|
||
|
compileSdk 35
|
||
|
|
||
|
defaultConfig {
|
||
|
minSdk 21
|
||
|
|
||
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||
|
}
|
||
|
|
||
|
buildTypes {
|
||
|
release {
|
||
|
minifyEnabled false
|
||
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
//implementation libs.appcompat
|
||
|
//implementation libs.material
|
||
|
//testImplementation libs.junit
|
||
|
//androidTestImplementation libs.ext.junit
|
||
|
//androidTestImplementation libs.espresso.core
|
||
|
implementation 'com.github.tbruyelle:rxpermissions:0.10.2'
|
||
|
implementation files('unitylibs/classes.jar')
|
||
|
implementation fileTree(dir: "libs", include: ["*.jar","*.aar"])
|
||
|
implementation libs.appcompat
|
||
|
}
|
||
|
|
||
|
|
||
|
sourceSets {
|
||
|
main {
|
||
|
java {
|
||
|
// 忽略所有的 src/main/java/test目录
|
||
|
exclude 'com/unity3d/**'
|
||
|
}
|
||
|
resources {
|
||
|
// 打包忽略目录: src/main/resources/img
|
||
|
exclude 'img/**'
|
||
|
// 打包忽略文件: src/main/resources/icons/scanner.vsdx
|
||
|
exclude 'icons/scanner.vsdx'
|
||
|
}
|
||
|
}
|
||
|
}
|