53 lines
1.7 KiB
Groovy
53 lines
1.7 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdkVersion 30
|
|
buildToolsVersion '30.0.0'
|
|
|
|
defaultConfig {
|
|
applicationId "com.bonus.uav"
|
|
minSdkVersion 21
|
|
//noinspection ExpiredTargetSdkVersion
|
|
targetSdkVersion 30
|
|
versionCode 1
|
|
versionName "1.0"
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
//添加应用签名
|
|
// signingConfigs {
|
|
// release {
|
|
// // 注意:不要直接在代码库中暴露敏感信息
|
|
// storeFile file("libs/key.keystore")
|
|
// storePassword System.getenv("STORE_PASSWORD") ?: "bns123456"
|
|
// keyAlias 'key'
|
|
// keyPassword System.getenv("KEY_PASSWORD") ?: "bns123456"
|
|
// }
|
|
// }
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
testImplementation 'junit:junit:4.12'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
|
implementation 'com.fazecast:jSerialComm:2.9.0'
|
|
implementation 'tp.xmaihh:serialport:2.1'
|
|
implementation 'com.alibaba:fastjson:1.2.78'
|
|
implementation(name: 'libsuperuser-v1.1.0', ext: 'aar')
|
|
implementation 'com.scottyab:rootbeer-lib:0.0.6'
|
|
// implementation 'eu.chainfire:libsuperuser:v1.1.0'
|
|
// implementation 'com.nbsp:library:1.5.1'
|
|
|
|
} |