235 lines
9.2 KiB
Groovy
235 lines
9.2 KiB
Groovy
plugins {
|
||
id 'com.android.application'
|
||
id 'kotlin-android'
|
||
id 'kotlin-kapt'
|
||
id 'org.sonarqube'
|
||
}
|
||
|
||
|
||
//sonarqube {
|
||
// properties {
|
||
// //Sonar服务器地址
|
||
// property "sonar.host.url", "http://10.130.14.162:9000/"
|
||
// //Token模式
|
||
//// property "sonar.login","TRD2022"
|
||
// //账号密码模式
|
||
// property "sonar.login","TRD2022"
|
||
// property "sonar.password","TRD2022"
|
||
// property "sonar.sourceEncoding", "UTF-8"
|
||
// property "sonar.projectKey", "Android_DuoApp"
|
||
// property "sonar.projectName", project.name
|
||
// //需要扫描的上传检测代码的模块,可以选择也可以配置哪一些需要或者不需要上传的模块(这里指APP模块下面的java包里面的全部)
|
||
// property "sonar.sources", "src/main/java"
|
||
// property "sonar.projectVersion", project.version
|
||
// }
|
||
//}
|
||
//apply plugin: 'com.android.application'
|
||
//apply plugin: 'kotlin-android'
|
||
//apply plugin: 'kotlin-kapt'
|
||
//apply plugin: 'kotlin-android-extensions'
|
||
|
||
android {
|
||
compileSdkVersion 31
|
||
// buildToolsVersion '29.0.2'
|
||
//ndkVersion '23.0.7123448'
|
||
|
||
defaultConfig {
|
||
applicationId "com.navinfo.outdoor"
|
||
minSdkVersion 24
|
||
targetSdkVersion 30
|
||
versionCode 120
|
||
versionName "8.231205-测试版"
|
||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||
|
||
ndk {
|
||
// 设置支持的SO库架构(开发者可以根据需要,选择一个或多个平台的so)
|
||
abiFilters "armeabi", "armeabi-v7a", "arm64-v8a"
|
||
}
|
||
|
||
configurations {
|
||
cleanedAnnotations
|
||
// implementation.exclude group: 'org.jetbrains' , module:'annotations'
|
||
implementation.exclude group: 'com.intellij' , module:'annotations'
|
||
}
|
||
|
||
manifestPlaceholders = [
|
||
XG_ACCESS_ID : "1580017520",
|
||
XG_ACCESS_KEY : "ABQZ9Z3PDWXM",
|
||
]
|
||
}
|
||
|
||
lintOptions {
|
||
checkReleaseBuilds false
|
||
// Or, if you prefer, you can continue to check for errors in release builds,
|
||
// but continue the build even when errors are found:
|
||
abortOnError false
|
||
}
|
||
|
||
// javaCompileOptions {
|
||
// annotationProcessorOptions {
|
||
// arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
|
||
// }
|
||
// }
|
||
buildTypes {
|
||
release {
|
||
minifyEnabled false
|
||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||
}
|
||
}
|
||
|
||
compileOptions {
|
||
sourceCompatibility JavaVersion.VERSION_11
|
||
targetCompatibility JavaVersion.VERSION_11
|
||
}
|
||
ndkVersion '21.3.6528147'
|
||
packagingOptions {
|
||
pickFirst 'lib/x86/libc++_shared.so'
|
||
pickFirst 'lib/x86_64/libjsc.so'
|
||
pickFirst 'lib/arm64-v8a/libjsc.so'
|
||
pickFirst 'lib/arm64-v8a/libc++_shared.so'
|
||
pickFirst 'lib/x86_64/libc++_shared.so'
|
||
pickFirst 'lib/armeabi-v7a/libc++_shared.so'
|
||
}
|
||
buildFeatures {
|
||
viewBinding true
|
||
}
|
||
// configurations.all {
|
||
// all*.exclude group: "com.squareup.okhttp3", module: "okhttp3"
|
||
// all*.exclude group: "com.squareup.okio", module: "okio"
|
||
// }
|
||
}
|
||
//efs {
|
||
// //是否对启动过程进程插桩的开关,如果使用自动集成监控则必须开启
|
||
// isAutoTrack = true
|
||
// //您自定义Application的类名称,必填项,如没有自定义则填写系统Application
|
||
// applicationName = "UserApplication"
|
||
// //您自定义Activity的类名称,必填项,将您所有Activity的类名按如下格式填写
|
||
// activityList = [
|
||
// "MainActivity",
|
||
// "WebActivity",
|
||
// "LoginActivity",
|
||
// "ImageShowActivity",
|
||
// "HomeActivity"
|
||
// //......
|
||
// ]
|
||
//}
|
||
|
||
dependencies {
|
||
implementation fileTree(dir: "libs", include: ["*.jar", "*.aar"])
|
||
implementation 'androidx.appcompat:appcompat:1.4.1'
|
||
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
||
implementation 'com.google.android.material:material:1.6.0'
|
||
implementation 'androidx.navigation:navigation-fragment:2.1.0'
|
||
implementation 'androidx.navigation:navigation-ui:2.1.0'
|
||
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
||
implementation project(path: ':ocr')
|
||
testImplementation 'junit:junit:4.12'
|
||
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
||
implementation "androidx.lifecycle:lifecycle-common:2.4.1"
|
||
implementation "androidx.lifecycle:lifecycle-process:2.4.1"
|
||
//友盟自动检测bug
|
||
implementation 'com.umeng.umsdk:apm:1.2.0'
|
||
//友盟基础库依赖(必须)
|
||
api 'com.umeng.umsdk:common:9.4.4'
|
||
api 'com.umeng.umsdk:asms:1.4.1'
|
||
//友盟Push依赖
|
||
api 'com.umeng.umsdk:push:6.4.7'
|
||
|
||
//状态栏侵染
|
||
// 基础依赖包,必须要依赖
|
||
implementation 'com.gyf.immersionbar:immersionbar:3.0.0'
|
||
implementation 'com.gyf.immersionbar:immersionbar-components:3.0.0'
|
||
|
||
//网络框架
|
||
implementation 'com.lzy.net:okgo:3.0.4'
|
||
implementation 'com.lzy.net:okrx2:2.0.2'
|
||
implementation 'com.google.code.gson:gson:2.8.5'
|
||
implementation 'com.readystatesoftware.chuck:library:1.1.0'
|
||
|
||
// //retrofit+rxJava
|
||
// implementation 'com.squareup.retrofit2:retrofit:2.5.0'
|
||
// implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
|
||
// //转换器,请求结果转换成Model
|
||
// implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
|
||
//配合RxJava 使用
|
||
implementation 'io.reactivex.rxjava2:rxjava:2.2.7'
|
||
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
|
||
//EventBus
|
||
implementation 'org.greenrobot:eventbus:3.1.1'
|
||
//三级选择
|
||
//省市区 https://github.com/Bigkoo/Android-PickerView
|
||
implementation 'com.contrarywind:Android-PickerView:4.1.9'
|
||
/*加载html
|
||
implementation 'com.github.sendtion:XRichText:1.9.4'
|
||
*/
|
||
//加载图片的依赖包
|
||
implementation 'com.github.bumptech.glide:glide:4.8.0'
|
||
//弹窗 https://github.com/kongzue/DialogV3
|
||
implementation 'com.kongzue.dialog_v3x:dialog:3.2.4'
|
||
implementation "com.kongzue.dialogx:DialogX:0.0.47"
|
||
implementation "com.kongzue.dialogx.style:DialogXMIUIStyle:0.0.47"
|
||
//xRecyclerview下拉刷新控件
|
||
implementation project(':xrecyclerview')
|
||
//拍照功能 https://github.com/natario1/CameraView
|
||
implementation 'com.otaliastudios:cameraview:2.7.0'
|
||
|
||
//抽屉控件 https://github.com/umano/AndroidSlidingUpPanel
|
||
implementation 'com.sothree.slidinguppanel:library:3.4.0'
|
||
|
||
//腾讯地图
|
||
// 地图库
|
||
implementation 'com.tencent.map:tencent-map-vector-sdk:4.5.10'
|
||
// // 地图组件库,包括小车平移、点聚合等组件功能,详见开发指南。
|
||
// implementation 'com.tencent.map:sdk-utilities:1.0.6'
|
||
// 导航库
|
||
implementation ("com.tencent.map:tencent-map-nav-sdk:5.4.2.3")
|
||
// 导航依赖库
|
||
implementation ("com.tencent.map:tencent-map-nav-surport:1.1.0.1")
|
||
|
||
// //腾讯地图 定位
|
||
// implementation 'com.tencent.map.geolocation:TencentLocationSdk-openplatform:7.4.9'
|
||
|
||
// 权限请求框架:https://github.com/getActivity/XXPermissions
|
||
implementation 'com.github.getActivity:XXPermissions:18.0'
|
||
|
||
//room 数据库
|
||
def room_version = "2.2.0-alpha01"
|
||
|
||
implementation "androidx.room:room-runtime:$room_version"
|
||
implementation "androidx.room:room-ktx:$room_version"
|
||
kapt "androidx.room:room-compiler:$room_version"
|
||
implementation "androidx.room:room-rxjava2:$room_version"
|
||
implementation "androidx.room:room-guava:$room_version"
|
||
testImplementation "androidx.room:room-testing:$room_version"
|
||
|
||
// 视频拼接 https://blog.csdn.net/u011520181/article/details/89324292
|
||
implementation 'com.googlecode.mp4parser:isoparser:1.1.21'
|
||
// Android常用库 https://github.com/l123456789jy/Lazy
|
||
implementation 'com.github.lazylibrary:lazylibrary:1.0.2'
|
||
//饺子播放器
|
||
implementation 'cn.jzvd:jiaozivideoplayer:7.4.2'
|
||
//图片压缩 https://github.com/Hu12037102/ImageCompress
|
||
implementation 'com.github.Hu12037102:ImageCompress:2.3.0'
|
||
// //webp 转换
|
||
// implementation 'com.wanghong.webpnative:webpnative:0.1.0'
|
||
// 自动发送邮件 https://github.com/teprinciple/MailSender
|
||
implementation 'com.teprinciple:mailsender:1.2.0'
|
||
// // https://github.com/JiongBull/jlog/blob/master/README_ZH.md 日志记录
|
||
// implementation 'com.github.JiongBull:jlog:0.1.0'
|
||
// // https://github.com/JiongBull/jlog-storage-qiniu 自动将日志上传到七牛云
|
||
// implementation 'com.github.JiongBull:jlog-storage-qiniu:0.1.0'
|
||
// https://github.com/elvishew/xLog/blob/master/README_ZH.md 日志记录
|
||
implementation 'com.elvishew:xlog:1.10.1'
|
||
// // 百度定位
|
||
// implementation 'com.baidu.lbsyun:BaiduMapSDK_Location:9.3.7'
|
||
// 腾讯推送依赖
|
||
//添加以下依赖
|
||
implementation 'com.tencent.tpns:tpns:1.4.3.1-release'
|
||
// 金刚扫描库
|
||
implementation 'com.tencent.jg:jg:1.1'
|
||
//推送保活库
|
||
implementation 'com.github.xuexiangjys.XPush:keeplive:1.0.0'
|
||
// // Android应用白名单添加 https://github.com/WaseemSabir/BatteryPermissionHelper
|
||
// implementation 'com.waseemsabir:betterypermissionhelper:1.0.3'
|
||
} |