2021-02-08 10:34:29 +08:00
|
|
|
|
plugins {
|
|
|
|
|
|
id 'com.android.application'
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
android {
|
2024-08-16 10:31:50 +08:00
|
|
|
|
compileSdk 28
|
2023-11-01 13:11:56 +08:00
|
|
|
|
buildToolsVersion '30.0.3'
|
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
|
2025-01-16 09:16:05 +08:00
|
|
|
|
versionName "2.4"
|
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广播支持
|
2023-07-11 12:08:07 +08:00
|
|
|
|
// 1.3 东集 pda的支持
|
2023-08-21 13:35:56 +08:00
|
|
|
|
// 1.4 联新 pda的支持 已经 adapter 关闭的判断
|
2023-09-01 09:51:56 +08:00
|
|
|
|
// 1.5 urovo DT50 Lite pda的支持
|
2023-11-01 13:11:56 +08:00
|
|
|
|
// 1.6 瑞星平板扫描,线程读取一半就返回处理
|
2024-01-09 11:47:38 +08:00
|
|
|
|
// 1.7 暴露一个方法,跳转到index初始化页面
|
2024-03-11 13:53:23 +08:00
|
|
|
|
// 1.8 霍尼韦尔EDA50p,在返回桌面,点击了新的扫描之后,出现再进入程序(新打开一样)无法扫描,从而导致问题,添加了一个stop2的方法,针对霍尼韦尔eda50p,不进行销毁,在真正销毁的方法关闭服务,还是存在程序返回桌面无法扫描问题,但是退出程序之后,新打开程序可以扫描
|
|
|
|
|
|
// 1.9 海康威视 mv-idp5102 适配广播模式
|
2024-05-07 14:51:31 +08:00
|
|
|
|
// 1.10 bug 代码判断没有结束
|
|
|
|
|
|
// 1.11 霍尼韦尔EDA52
|
2024-05-29 14:06:56 +08:00
|
|
|
|
// 1.12 屏幕旋转,采取配置化模式(只能竖屏、横屏);取消旋转屏幕就重置activity生命周期
|
2024-06-06 16:50:49 +08:00
|
|
|
|
// 1.13 新大陆pda 兼容广播模式;NLS-NFT10
|
2024-07-24 10:04:56 +08:00
|
|
|
|
// 1.14 瑞芯 rk3566_r 添加引用 librockchip.so; 新加一个方法,返回当前PDA的厂家和型号
|
2024-08-04 18:03:08 +08:00
|
|
|
|
// 1.15 系统状态栏根据配置进行设置
|
2024-08-16 10:31:50 +08:00
|
|
|
|
// 1.16 idata pda 不设置模式
|
2024-08-27 13:41:54 +08:00
|
|
|
|
// 1.17 霍尼韦尔EDA51、EDA50P,调用扫描枪的方法,在关闭的时候停止调用扫描枪
|
2024-11-14 16:05:54 +08:00
|
|
|
|
// 1.18 瑞兴平板,读取扫描结果,使用同步加锁模式
|
2024-11-19 14:52:11 +08:00
|
|
|
|
// 1.19 index页面接入初始化数据
|
2024-12-09 15:14:20 +08:00
|
|
|
|
// 2.1 注册PDA的信息存储到文件内部,采取mac+固定加密串的MD5加密校验
|
2024-12-11 14:15:57 +08:00
|
|
|
|
// 2.2 安卓14以上,无法获取mac地址,修改成获取唯一id作为mac地址
|
2024-12-31 14:02:52 +08:00
|
|
|
|
// 2.3 适配IOT_Device:sc55g PDA 广播模式
|
2025-01-16 09:16:05 +08:00
|
|
|
|
// 2.4 适配 qualcomm:mc50 PDA 广播模式
|
2021-02-08 10:34:29 +08:00
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2024-07-24 10:04:56 +08:00
|
|
|
|
ndk {
|
|
|
|
|
|
abiFilters 'armeabi-v7a'
|
|
|
|
|
|
}
|
2021-02-08 10:34:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
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-11-01 13:11:56 +08:00
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
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 {
|
2024-08-16 10:31:50 +08:00
|
|
|
|
compileOnly 'com.symbol:emdk:9.1.1'
|
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')
|
2023-07-11 12:08:07 +08:00
|
|
|
|
// 全屏,没有状态栏
|
2022-10-31 11:51:27 +08:00
|
|
|
|
api 'com.readystatesoftware.systembartint:systembartint:1.0.3'
|
2024-07-24 10:04:56 +08:00
|
|
|
|
implementation files('libs/armeabi-v7a/librockchip.so')
|
2021-02-08 10:34:29 +08:00
|
|
|
|
}
|