73 lines
1.9 KiB
Groovy
73 lines
1.9 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 30
|
|
buildToolsVersion "30.0.3"
|
|
|
|
defaultConfig {
|
|
applicationId "chaoran.business.pda"
|
|
minSdkVersion 26
|
|
targetSdkVersion 29
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
//签名配置
|
|
signingConfigs {
|
|
release {
|
|
storeFile file(RELEASE_STOREFILE);
|
|
storePassword RELEASE_STORE_PASSWORD;
|
|
keyAlias RELEASE_KEY_ALIAS
|
|
keyPassword RELEASE_KEY_PASSWORD
|
|
}
|
|
}
|
|
|
|
//构建类型
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false //是否代码混淆
|
|
multiDexEnabled true //防止方法数量超过65536导致错误
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
//配置签名
|
|
signingConfig signingConfigs.release
|
|
}
|
|
}
|
|
|
|
//关闭代码格式检查
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
|
|
//加载动态库
|
|
sourceSets {
|
|
main {
|
|
jniLibs.srcDir(['libs'])
|
|
}
|
|
}
|
|
|
|
//编译选项
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
/* repositories {
|
|
flatDir {
|
|
dirs 'libs'
|
|
}
|
|
}*/
|
|
}
|
|
dependencies {
|
|
compileOnly 'com.symbol:emdk:+'
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
|
implementation 'com.google.android.material:material:1.2.1'
|
|
implementation 'com.google.code.gson:gson:2.6.2'
|
|
//加载jar包
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation 'androidx.preference:preference:1.1.1'
|
|
//implementation fileTree(include: ['*.aar'], dir: 'libs')
|
|
api 'com.readystatesoftware.systembartint:systembartint:1.0.3'
|
|
} |