123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- apply plugin: 'com.android.application'
- apply plugin: 'org.greenrobot.greendao' // apply plugin
- apply plugin: 'kotlin-android' // apply plugin
- android {
- compileSdkVersion COMPILE_SDK_VERSION as int
- buildToolsVersion BUILD_TOOLS_VERSION
- defaultConfig {
- applicationId "com.tofly.psjgsn"
- minSdkVersion MIN_SDK_VERSION
- targetSdkVersion TARGET_SDK_VERSION as int
- versionCode 78
- versionName "7.8"
- flavorDimensions "versionCode"
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- ndk {
- //选择要添加的对应cpu类型的.so库。
- abiFilters 'armeabi-v7a' /* , 'armeabi' ,'x86', 'x86_64',"arm64-v8a"*/
- // 还可以添加 'x86', 'x86_64', 'mips', 'mips64'
- }
- }
- signingConfigs {
- release {
- storeFile file('D:\\Code\\psjgxt_sn_app\\psjgsn.jks')
- storePassword 'tofly028'
- keyAlias 'psjgsn'
- keyPassword 'tofly028'
- }
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- sourceSets {
- main {
- jniLibs.srcDir 'libs'
- }
- }
- greendao {
- schemaVersion 8 //数据库版本号
- daoPackage 'com.tofly.sn.greenDao.db'
- // 设置DaoMaster、DaoSession、Dao 包名
- targetGenDir 'src/main/java'//设置DaoMaster、DaoSession、Dao目录,请注意,这里路径用/不要用.
- generateTests false //设置为true以自动生成单元测试。
- targetGenDirTests 'src/main/java' //应存储生成的单元测试的基本目录。默认为 src / androidTest / java。
- }
- buildFeatures {
- viewBinding = true
- dataBinding = true
- }
- android.applicationVariants.configureEach { variant ->
- variant.outputs.configureEach { output ->
- def outputFile = output.outputFile
- if (outputFile != null && outputFile.name.endsWith('.apk')) {
- if (variant.buildType.name == 'release') {
- outputFileName = "psjgxt_sn-${defaultConfig.versionName}.apk"
- } else if (variant.buildType.name == 'debug') {
- outputFileName = "psjgxt_sn-${defaultConfig.versionName}.apk"
- }
- }
- def fileName = "psjgxt_sn-${variant.versionName}.apk"
- outputFileName = fileName
- }
- }
- kotlinOptions {
- jvmTarget = '1.8'
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- }
- dependencies {
- implementation fileTree(dir: "libs", include: ["*.jar"])
- implementation 'androidx.appcompat:appcompat:1.2.0'
- implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
- implementation 'androidx.legacy:legacy-support-v4:1.0.0'
- implementation files('libs\\HikVideoPlayer.jar')
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'androidx.test.ext:junit:1.1.1'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
- implementation files('libs\\arcgis-android-100.9.0.aar')
- implementation project(path: ':camera')
- implementation project(path: ':latte-core')
- implementation project(path: ':graffiti')
- implementation 'com.youth.banner:banner:1.4.10'
- implementation 'com.amap.api:location:5.2.0' //定位功能
- implementation 'com.amap.api:search:7.7.0' //搜索功能
- implementation 'com.amap.api:navi-3dmap:7.7.1_3dmap7.7.0' //导航
- //implementation 'com.polites.android:gesture-imageview:1.0'
- implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'//图标
- implementation 'com.jph.takephoto:takephoto_library:4.0.3'
- implementation 'org.greenrobot:greendao:3.3.0'
- implementation 'com.github.yuweiguocn:GreenDaoUpgradeHelper:v2.0.2'
- //design 包依赖
- //noinspection GradleCompatible
- implementation 'com.android.support:design:29.0.0'
- implementation 'q.rorbin:badgeview:1.1.3' //小圆点
- implementation 'id.zelory:compressor:2.1.1' // 图片压缩
- //PermissionsDispatcher权限
- implementation 'org.permissionsdispatcher:permissionsdispatcher:4.6.0'
- annotationProcessor "org.permissionsdispatcher:permissionsdispatcher-processor:4.6.0"
- implementation 'org.greenrobot:eventbus:3.2.0'
- implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
- implementation 'androidx.core:core-ktx:1.3.1'
- //butterknife 依赖
- implementation 'com.jakewharton:butterknife:10.2.3'
- annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'
- /*数据库导出Excel文件*/
- implementation 'net.sourceforge.jexcelapi:jxl:2.6.12'
- // implementation 'com.google.zxing:core:3.3.3'
- //内存泄露
- // debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
- }
|