plugins { id 'com.android.application' id 'kotlin-android' id 'kotlin-kapt' id 'com.huawei.agconnect' } android { compileSdkVersion 30 buildToolsVersion "30.0.3" signingConfigs { config { keyAlias 'key0' keyPassword '123456' storeFile file('key.jks') storePassword '123456' } debug { keyAlias 'key0' keyPassword '123456' storeFile file('key.jks') storePassword '123456' } release { keyAlias 'key0' keyPassword '123456' storeFile file('key.jks') storePassword '123456' } } defaultConfig { applicationId "com.arpa.hndahesudintocctmsdriver" minSdkVersion 22 targetSdkVersion 30 versionCode 49 versionName "3.1.9" flavorDimensions "CHANNEL_VALUE" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true arguments = [moduleName :project.getName() ] } } ndk { //选择要添加的对应 cpu 类型的 .so 库。 abiFilters 'armeabi', 'armeabi-v7a' // 还可以添加 'x86', 'x86_64', 'mips', 'mips64' , 'arm64-v8a' } manifestPlaceholders = [ JPUSH_PKGNAME : applicationId, JPUSH_APPKEY : "571d93ae5117da6dee848c92", //JPush 上注册的包名对应的 Appkey. JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可. MEIZU_APPKEY : "MZ-魅族的APPKEY", MEIZU_APPID : "MZ-魅族的APPID", XIAOMI_APPID : "MI-小米的APPID", XIAOMI_APPKEY : "MI-小米的APPKEY", OPPO_APPKEY : "OP-oppo的APPKEY", OPPO_APPID : "OP-oppo的APPID", OPPO_APPSECRET : "OP-oppo的APPSECRET", VIVO_APPKEY : "vivo的APPKEY", VIVO_APPID : "vivo的APPID" ] } sourceSets { main { jniLibs.srcDirs = ['libs'] } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } debug { proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } allprojects { repositories { maven { url "https://jitpack.io" } } } repositories{ flatDir { dirs 'libs' } } productFlavors { qa { buildConfigField("String", "OPEN_API_URL", "\"http://192.168.111.244:4009\"") buildConfigField("String", "BASE_URL", "\"http://app.dahehuoyun.com/api/\"") } product { buildConfigField("String", "OPEN_API", "\"https://oapi.alct56.com\"") buildConfigField("String", "OPEN_API_URL", "\"https://oapi.alct56.com\"") buildConfigField("String", "BASE_URL", "\"http://app.dahehuoyun.com/api/\"") } } // productFlavors.all { flavor -> // flavor.manifestPlaceholders = [CHANNEL_VALUE: name] // } android.applicationVariants.all { variant -> variant.outputs.all { def date = new Date().format("MMdd_HH-mm" , TimeZone.getTimeZone("GMT+08")) if(variant.buildType.name.equals('release')){ outputFileName = "dhhy-driver-"+date+"-${versionName}.apk" } } } lintOptions { abortOnError false } dexOptions { preDexLibraries false } } dependencies { //implementation fileTree(include: ['*.jar','*.aar'], dir: 'libs') implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.core:core-ktx:1.3.1' implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'com.google.android.material:material:1.2.1' implementation 'androidx.constraintlayout:constraintlayout:2.0.1' implementation 'com.caverock:androidsvg-aar:1.3' implementation 'com.github.bumptech.glide:glide:4.11.0' // implementation files('libs\\AMap3DMap_5.8.0_AMapNavi_5.6.0_20191014.jar') // implementation project(path: ':ocr_ui') //implementation files('libs\\AMap3DMap_5.8.0_AMapNavi_5.6.0_20191014.jar') kapt 'com.android.databinding:compiler:2.3.2' //noinspection GradleCompatible,GradleCompatible //implemention 'com.android.support:design:25.3.1' //implementation files('libs\\BaiduLBS_Android.jar') //当引入的与之前引入的库有重复冲突部分的时候,使用compileOnly implementation files('libs\\mdp_sdk.jar') compileOnly files('libs\\gson-2.8.0.jar') annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0' implementation 'com.squareup.okhttp3:okhttp:3.2.0' implementation 'com.jakewharton:butterknife:10.2.1' annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.1' implementation 'id.zelory:compressor:1.0.3' implementation 'top.zibin:Luban:1.1.3' implementation 'com.haozhang.libary:android-slanted-textview:1.2' // implementation 'com.scwang.smart:refresh-layout-kernel:2.0.1' implementation 'com.scwang.smart:refresh-header-material:2.0.1' implementation 'com.scwang.smart:refresh-footer-ball:2.0.1' //球脉冲加载 implementation 'com.scwang.smart:refresh-footer-classics:2.0.1' //经典加载 //更新版本 implementation 'com.github.jenly1314.AppUpdater:app-updater:1.1.0' implementation 'com.github.jenly1314.AppUpdater:app-dialog:1.1.0' //轮播插件 implementation 'com.github.zhpanvip:BannerViewPager:3.5.4' // implementation 'com.lxj:xpopup:2.2.8' //工具类 //implementation 'cn.hutool:hutool-all:5.7.11' //交通厅 implementation 'com.lzy.net:okgo:3.0.4' implementation 'com.alibaba:fastjson:1.2.61' implementation 'org.bouncycastle:bcprov-jdk15on:1.55' //org.bouncycastle:bcprov-jdk15to18 //compileOnly 'org.bouncycastle:bcprov-jdk15to18:1.64' implementation 'org.apache.commons:commons-lang3:3.5' implementation (name:'locationgd-androidx_2.1.0', ext:'aar')//交通厅 // implementation 'com.amap.api:location:latest.integration' //implementation files('libs\\AMap_Location_V5.4.0_20210723.jar') //安联 implementation 'com.google.code.gson:gson:2.8.6' implementation 'com.loopj.android:android-async-http:1.4.9' implementation 'com.j256.ormlite:ormlite-android:4.48' implementation 'com.j256.ormlite:ormlite-core:4.48' compileOnly 'com.github.hotchemi:permissionsdispatcher:2.3.1' annotationProcessor 'com.github.hotchemi:permissionsdispatcher-processor:2.3.1' //极光认证 implementation 'cn.jiguang.sdk:jverification:2.7.1' // 此处以2.7.1 版本为例。a implementation 'cn.jiguang.sdk:jpush:4.2.4' // 此处以JPush 4.2.4 版本为例。 implementation 'cn.jiguang.sdk:jcore:2.9.0' // 此处以JCore 2.9.0 版本为例。 // 接入华为厂商 implementation 'com.huawei.hms:push:4.0.2.300' implementation 'cn.jiguang.sdk.plugin:huawei:4.0.0'// 极光厂商插件版本与接入 JPush 版本保持一致,下同 // 接入 FCM 厂商 implementation 'com.google.firebase:firebase-messaging:21.0.1' implementation 'cn.jiguang.sdk.plugin:fcm:4.0.0' // 接入魅族厂商 implementation 'cn.jiguang.sdk.plugin:meizu:4.0.0' // 接入 VIVO 厂商 implementation 'cn.jiguang.sdk.plugin:vivo:4.0.0' // 接入 OPPO 厂商 implementation 'cn.jiguang.sdk.plugin:oppo:4.0.0' // 接入小米厂商 implementation 'cn.jiguang.sdk.plugin:xiaomi:4.0.0' //友盟 // 下面各SDK根据宿主App是否使用相关业务按需引入。 // 友盟统计SDK implementation 'com.umeng.umsdk:common:9.4.2'// 必选 implementation 'com.umeng.umsdk:asms:1.4.1'// 必选 implementation 'com.umeng.umsdk:apm:1.4.2' // 错误分析升级为独立SDK,看crash数据请一定集成,可选 implementation 'com.umeng.umsdk:abtest:1.0.0'//使用U-App中ABTest能力,可选 //动态权限获取 implementation "org.permissionsdispatcher:permissionsdispatcher:4.6.0" kapt "org.permissionsdispatcher:permissionsdispatcher-processor:4.6.0" //选择器 implementation 'com.github.gzu-liyujiang.AndroidPicker:WheelPicker:3.1.1' //EventBus implementation 'org.greenrobot:eventbus:3.1.1' //易签宝 implementation(name:'EsignSDK', ext:'aar') implementation'pub.devrel:easypermissions:1.3.0' implementation "com.squareup.retrofit2:retrofit:2.4.0" implementation "com.squareup.retrofit2:converter-gson:2.4.0" implementation "com.squareup.retrofit2:adapter-rxjava2:2.4.0" implementation 'com.squareup.okhttp3:logging-interceptor:3.9.0' implementation "io.reactivex.rxjava2:rxjava:2.1.5" implementation "io.reactivex.rxjava2:rxandroid:2.0.1" implementation 'org.greenrobot:eventbus:3.1.1' implementation 'com.github.barteksc:android-pdf-viewer:3.2.0-beta.1' // testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' //工具类 //implementation 'cn.hutool:hutool-all:5.7.11' //ArcGis For Android工具库(API:100.1以上版本) implementation 'com.github.qingmei2:SlideBottomLayout-Android:1.2.3' implementation 'com.flipboard:bottomsheet-core:1.5.3' implementation 'com.flipboard:bottomsheet-commons:1.5.3' //可选 implementation 'com.github.getActivity:XToast:8.2' //阿里云视频播放 // implementation 'com.aliyun.sdk.android:AliyunPlayer:5.4.0-part' // implementation 'com.aliyun.video.android:svideostandard:3.25.+'//短视频标准版SDK必须依赖 // implementation 'com.aliyun.video.android:core:1.2.2' //核心库必须依赖 // implementation 'com.alivc.conan:AlivcConan:1.0.3'//核心库必须依赖 // //AlivcFFmpeg必须依赖,且版本需要在4.3.0及以上,在以下两个版本中选择一个版本进行依赖。 // implementation 'com.aliyun.video.android:AlivcFFmpeg:4.3.0' //短视频与播放器共用。两个SDK同时接入时,请用该版本。 // implementation 'com.aliyun.video.android:upload:1.6.0'// 上传库,如不需要上传可不依赖 // //implementation 'com.amap.api:navi-3dmap:8.1.0_3dmap8.1.0' //ocr //implementation (name:'ocrsdk.aar', ext:'aar') //implementation 'com.github.xuexiangjys:XVideo:1.0.2' implementation 'com.github.LuckSiege.PictureSelector:picture_library:v2.2.9' implementation 'com.youth.banner:banner:1.4.10' // implementation 'com.amap.api:3dmap:latest.integration' // implementation 'com.amap.api:search:latest.integration' implementation 'com.amap.api:3dmap:8.0.0' implementation 'com.amap.api:location:5.5.1' implementation 'com.amap.api:search:7.9.0' implementation project(path: ':mylibrary') }