2021-02-08 10:34:29 +08:00
|
|
|
|
plugins {
|
|
|
|
|
|
id 'com.android.application'
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
android {
|
2023-06-13 14:01:07 +08:00
|
|
|
|
compileSdk 31
|
|
|
|
|
|
buildToolsVersion '33.0.0'
|
2021-02-08 10:34:29 +08:00
|
|
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
|
|
applicationId "chaoran.business.pda"
|
2023-04-21 15:03:30 +08:00
|
|
|
|
minSdk 28
|
|
|
|
|
|
targetSdk 28
|
2021-02-08 10:34:29 +08:00
|
|
|
|
versionCode 1
|
2023-06-13 14:01:07 +08:00
|
|
|
|
versionName "1.2"
|
2023-04-21 15:03:30 +08:00
|
|
|
|
|
|
|
|
|
|
// 1.0 IDATA广播模式处理
|
|
|
|
|
|
// 1.1 霍尼韦尔的监听修改(扫描网站二维码跳出程序,监听失效,调整)、斑马PDA广播模式设置
|
2023-06-13 14:01:07 +08:00
|
|
|
|
// 1.2 霍尼韦尔EDA56、jdk11,gradle7.3、海信PDA广播支持
|
2021-02-08 10:34:29 +08:00
|
|
|
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2021-02-08 10:48:08 +08:00
|
|
|
|
//签名配置
|
2021-02-08 10:34:29 +08:00
|
|
|
|
signingConfigs {
|
|
|
|
|
|
release {
|
|
|
|
|
|
storeFile file(RELEASE_STOREFILE);
|
|
|
|
|
|
storePassword RELEASE_STORE_PASSWORD;
|
|
|
|
|
|
keyAlias RELEASE_KEY_ALIAS
|
|
|
|
|
|
keyPassword RELEASE_KEY_PASSWORD
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2021-02-08 10:48:08 +08:00
|
|
|
|
//构建类型
|
2021-02-08 10:34:29 +08:00
|
|
|
|
buildTypes {
|
|
|
|
|
|
release {
|
|
|
|
|
|
minifyEnabled false //是否代码混淆
|
|
|
|
|
|
multiDexEnabled true //防止方法数量超过65536导致错误
|
|
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
|
|
//配置签名
|
|
|
|
|
|
signingConfig signingConfigs.release
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2021-02-08 10:48:08 +08:00
|
|
|
|
//关闭代码格式检查
|
|
|
|
|
|
lintOptions {
|
|
|
|
|
|
abortOnError false
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2021-02-08 10:34:29 +08:00
|
|
|
|
//加载动态库
|
|
|
|
|
|
sourceSets {
|
|
|
|
|
|
main {
|
|
|
|
|
|
jniLibs.srcDir(['libs'])
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2021-02-08 10:48:08 +08:00
|
|
|
|
//编译选项
|
2021-02-08 10:34:29 +08:00
|
|
|
|
compileOptions {
|
2023-06-13 14:01:07 +08:00
|
|
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
|
|
|
|
targetCompatibility JavaVersion.VERSION_11
|
2021-02-08 10:34:29 +08:00
|
|
|
|
}
|
2022-10-20 14:12:18 +08:00
|
|
|
|
/* repositories {
|
|
|
|
|
|
flatDir {
|
|
|
|
|
|
dirs 'libs'
|
|
|
|
|
|
}
|
|
|
|
|
|
}*/
|
2021-02-08 10:34:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
dependencies {
|
2023-04-10 10:51:36 +08:00
|
|
|
|
compileOnly 'com.symbol:emdk:+'
|
2021-02-08 10:34:29 +08:00
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
|
|
|
|
|
implementation 'com.google.android.material:material:1.2.1'
|
2022-10-20 14:12:18 +08:00
|
|
|
|
implementation 'com.google.code.gson:gson:2.6.2'
|
2021-02-08 10:34:29 +08:00
|
|
|
|
//加载jar包
|
|
|
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
|
|
implementation 'androidx.preference:preference:1.1.1'
|
2022-10-20 14:12:18 +08:00
|
|
|
|
//implementation fileTree(include: ['*.aar'], dir: 'libs')
|
2022-10-31 11:51:27 +08:00
|
|
|
|
api 'com.readystatesoftware.systembartint:systembartint:1.0.3'
|
2021-02-08 10:34:29 +08:00
|
|
|
|
}
|