import java.text.SimpleDateFormat apply plugin: 'com.android.application' apply plugin: 'org.greenrobot.greendao' android { signingConfigs { release { storeFile file('dcms_key.jks') storePassword '123456789' keyAlias 'key0' keyPassword '123456789' } } compileSdkVersion 33 defaultConfig { applicationId "com.casic.dcms" minSdkVersion 23 targetSdkVersion 33 versionCode 1003 versionName "1.0.0.3" manifestPlaceholders = [GETUI_APPID: "rD5OSy72eI8v86VDdfdrO8"] } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } packagingOptions { exclude 'META-INF/DEPENDENCIES' } greendao { schemaVersion 1//数据库版本号 targetGenDir 'src/main/java'//设置DaoMaster、DaoSession、Dao目录 daoPackage "${defaultConfig.applicationId}.greendao"//设置DaoMaster、DaoSession、Dao包名 } viewBinding { enabled true } applicationVariants.configureEach { variant -> variant.outputs.configureEach { outputFileName = "CRCG_" + getBuildDate() + "_" + defaultConfig.versionName + ".apk" } } } static def getBuildDate() { SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd", Locale.CHINA) return dateFormat.format(System.currentTimeMillis()) } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'com.google.android.material:material:1.6.1' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' //基础依赖库 implementation 'com.github.AndroidCoderPeng:Androidx-lite-lib:1.0.10' //Google官方授权框架 implementation 'pub.devrel:easypermissions:3.0.0' //腾讯Android UI框架 implementation 'com.qmuiteam:qmui:2.0.0-alpha10' implementation 'com.qmuiteam:arch:0.3.1' //图片加载框架 implementation 'com.github.bumptech.glide:glide:4.9.0' //MVP网络请求框架retrofit2+rxjava implementation 'io.reactivex:rxjava:1.3.8' implementation 'io.reactivex:rxandroid:1.2.1' implementation 'com.squareup.retrofit2:retrofit:2.9.0' implementation 'com.squareup.okhttp3:okhttp:4.9.0' implementation 'com.squareup.retrofit2:converter-gson:2.8.1' implementation 'com.squareup.retrofit2:adapter-rxjava:2.8.1' implementation 'com.squareup.okhttp3:logging-interceptor:4.6.0' //官方Json解析库 implementation 'com.google.code.gson:gson:2.10.1' //日期选择器 implementation 'com.jzxiang.pickerview:TimePickerDialog:1.0.1' //日期范围选择 implementation 'com.github.applikeysolutions:cosmocalendar:1.0.4' //图表 implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0' //个推SDK implementation 'com.getui:gtsdk:3.2.15.0' //个推核心组件 implementation 'com.getui:gtc:3.2.1.0' //数据库框架 implementation 'org.greenrobot:greendao:3.3.0' //沉浸式状态栏。基础依赖包,必须要依赖 implementation 'com.gyf.immersionbar:immersionbar:3.0.0' //fragment快速实现 implementation 'com.gyf.immersionbar:immersionbar-components:3.0.0' //图片选择框架 implementation 'io.github.lucksiege:pictureselector:v3.11.1' //视频播放器 implementation 'com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer:v8.3.5-release-jitpack' //ArcGIS implementation 'com.esri.arcgisruntime:arcgis-android:100.15.4' //上拉加载下拉刷新 implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0' //视频压缩 implementation 'com.zolad:videoslimmer:1.0.0' //问题跟踪 implementation 'com.tencent.bugly:crashreport:4.1.9.3' //ZBar扫一扫(综合Java和C++扫码) implementation 'cn.bertsir.zbarLibary:zbarlibary:1.4.2' //定位功能 implementation 'com.amap.api:location:5.3.1' //经纬度逆编码 implementation 'com.amap.api:search:8.1.0' //桌面角标 implementation "me.leolin:ShortcutBadger:1.1.22@aar" //图片压缩 implementation 'top.zibin:Luban:1.1.8' }