184 lines
6.9 KiB
Groovy
184 lines
6.9 KiB
Groovy
|
|
plugins {
|
|||
|
|
id 'com.android.application'
|
|||
|
|
}
|
|||
|
|
apply plugin: 'kotlin-android'
|
|||
|
|
|
|||
|
|
android {
|
|||
|
|
|
|||
|
|
//打包时出错,官方建议:忽略他1 geopackage spatialite
|
|||
|
|
lintOptions {
|
|||
|
|
checkReleaseBuilds false
|
|||
|
|
|
|||
|
|
|
|||
|
|
abortOnError false
|
|||
|
|
}
|
|||
|
|
signingConfigs {
|
|||
|
|
config {
|
|||
|
|
keyAlias 'cellsys'
|
|||
|
|
keyPassword 'akcellsys'
|
|||
|
|
storeFile file('D:\\android_key\\airkoon.jks')//这里是你的jks文件路径
|
|||
|
|
storePassword 'akcellsys'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
compileSdkVersion 32
|
|||
|
|
|
|||
|
|
defaultConfig {
|
|||
|
|
applicationId "com.airkoon.operator"
|
|||
|
|
minSdkVersion 24
|
|||
|
|
targetSdkVersion 32
|
|||
|
|
versionCode 67
|
|||
|
|
versionName "2.4.7"
|
|||
|
|
/*code44 闪退问题*/
|
|||
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|||
|
|
|
|||
|
|
ndk {
|
|||
|
|
abiFilters 'x86', 'armeabi-v7a', 'arm64-v8a'
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//指定room.schemaLocation生成的文件路径
|
|||
|
|
javaCompileOptions {
|
|||
|
|
annotationProcessorOptions {
|
|||
|
|
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
buildTypes {
|
|||
|
|
release {
|
|||
|
|
buildConfigField "boolean", "LOG_DEBUG", "false" //不显示log
|
|||
|
|
minifyEnabled true //混淆-暂时没做混淆
|
|||
|
|
shrinkResources true //资源压缩
|
|||
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|||
|
|
signingConfig signingConfigs.config
|
|||
|
|
applicationVariants.all { variant ->
|
|||
|
|
variant.outputs.all {
|
|||
|
|
def fileName = "Operator_${defaultConfig.versionName}_${variant.buildType.name}.apk"
|
|||
|
|
outputFileName = fileName
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
debug {
|
|||
|
|
buildConfigField "boolean", "LOG_DEBUG", "true" //不显示log
|
|||
|
|
signingConfig signingConfigs.config
|
|||
|
|
}
|
|||
|
|
/* demo {
|
|||
|
|
buildConfigField "boolean", "LOG_DEBUG", "false" //不显示log
|
|||
|
|
signingConfig signingConfigs.config
|
|||
|
|
}*/
|
|||
|
|
}
|
|||
|
|
compileOptions {
|
|||
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|||
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|||
|
|
}
|
|||
|
|
sourceSets {
|
|||
|
|
main {
|
|||
|
|
jniLibs.srcDirs = ['src/jniLibs']
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
buildFeatures {
|
|||
|
|
dataBinding = true
|
|||
|
|
}
|
|||
|
|
namespace 'com.airkoon.operator'
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
dependencies {
|
|||
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
|||
|
|
implementation 'com.google.android.material:material:1.2.1'
|
|||
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
|||
|
|
implementation project(path: ':TaskQueue')
|
|||
|
|
testImplementation 'junit:junit:4.+'
|
|||
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
|||
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
|||
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|||
|
|
|
|||
|
|
//高德地图引用
|
|||
|
|
implementation 'com.amap.api:3dmap:9.1.0'
|
|||
|
|
implementation 'com.amap.api:location:6.0.1'
|
|||
|
|
implementation 'com.amap.api:search:8.1.0'
|
|||
|
|
//rxjava
|
|||
|
|
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
|
|||
|
|
implementation 'io.reactivex.rxjava2:rxjava:2.2.11'
|
|||
|
|
//zxing,二维码生成与扫描快速集成
|
|||
|
|
// implementation 'cn.yipianfengye.android:zxing-library:2.2'
|
|||
|
|
implementation project(path: ':CellsysRxSDK')
|
|||
|
|
implementation project(path: ':AirkoonUtilLib')
|
|||
|
|
implementation project(path: ':AirkoonBaseProLib')
|
|||
|
|
implementation project(path: ':AirkoonLocalLib')
|
|||
|
|
implementation project(path: ':AirkoonBleLib')
|
|||
|
|
implementation project(path: ':lib-zxing')
|
|||
|
|
//fastjson
|
|||
|
|
implementation 'com.alibaba:fastjson:1.2.58'
|
|||
|
|
//libs
|
|||
|
|
implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'], exclude: ['com.alibaba:fastjson:1.1.41'])
|
|||
|
|
|
|||
|
|
/*navigation组件依赖*/
|
|||
|
|
def nav_version = "2.5.2"
|
|||
|
|
// Java language implementation
|
|||
|
|
implementation "androidx.navigation:navigation-fragment:$nav_version"
|
|||
|
|
implementation "androidx.navigation:navigation-ui:$nav_version"
|
|||
|
|
implementation "androidx.navigation:navigation-dynamic-features-fragment:$nav_version"
|
|||
|
|
androidTestImplementation "androidx.navigation:navigation-testing:$nav_version"
|
|||
|
|
implementation "androidx.navigation:navigation-compose:$nav_version"
|
|||
|
|
|
|||
|
|
/*def lifecycle_version = "2.6.0-alpha02"
|
|||
|
|
def arch_version = "2.1.0"
|
|||
|
|
// ViewModel
|
|||
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel:$lifecycle_version"
|
|||
|
|
// LiveData
|
|||
|
|
implementation "androidx.lifecycle:lifecycle-livedata:$lifecycle_version"
|
|||
|
|
// Lifecycles only (without ViewModel or LiveData)
|
|||
|
|
implementation "androidx.lifecycle:lifecycle-runtime:$lifecycle_version"
|
|||
|
|
// Saved state module for ViewModel
|
|||
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-savedstate:$lifecycle_version"
|
|||
|
|
// Annotation processor
|
|||
|
|
annotationProcessor "androidx.lifecycle:lifecycle-compiler:$lifecycle_version"
|
|||
|
|
// alternately - if using Java8, use the following instead of lifecycle-compiler
|
|||
|
|
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
|
|||
|
|
// optional - helpers for implementing LifecycleOwner in a Service
|
|||
|
|
implementation "androidx.lifecycle:lifecycle-service:$lifecycle_version"
|
|||
|
|
// optional - ProcessLifecycleOwner provides a lifecycle for the whole application process
|
|||
|
|
implementation "androidx.lifecycle:lifecycle-process:$lifecycle_version"
|
|||
|
|
// optional - ReactiveStreams support for LiveData
|
|||
|
|
implementation "androidx.lifecycle:lifecycle-reactivestreams:$lifecycle_version"
|
|||
|
|
// optional - Test helpers for LiveData
|
|||
|
|
testImplementation "androidx.arch.core:core-testing:$arch_version"
|
|||
|
|
// optional - Test helpers for Lifecycle runtime
|
|||
|
|
testImplementation "androidx.lifecycle:lifecycle-runtime-testing:$lifecycle_version"*/
|
|||
|
|
|
|||
|
|
def room_version = "2.2.6"
|
|||
|
|
annotationProcessor "androidx.room:room-compiler:$room_version"
|
|||
|
|
|
|||
|
|
//汉字转拼音
|
|||
|
|
implementation 'com.belerweb:pinyin4j:2.5.1'
|
|||
|
|
|
|||
|
|
/*日期&时间选择器*/
|
|||
|
|
def dateTimePickerVersion = "0.6.3"
|
|||
|
|
implementation "com.github.loperSeven:DateTimePicker:$dateTimePickerVersion"
|
|||
|
|
|
|||
|
|
/*kotlin*/
|
|||
|
|
implementation "androidx.core:core-ktx:1.6.0"
|
|||
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|||
|
|
|
|||
|
|
/*空间计算数据库spatialite*/
|
|||
|
|
implementation 'com.vividsolutions:jts-core:1.14.0'
|
|||
|
|
implementation 'org.apache.commons:commons-lang3:3.7'
|
|||
|
|
implementation project(path: ':spatialite_for_android-master')
|
|||
|
|
|
|||
|
|
//eventbus
|
|||
|
|
implementation "org.greenrobot:eventbus:3.1.1"
|
|||
|
|
|
|||
|
|
//GSON
|
|||
|
|
implementation "com.google.code.gson:gson:2.9.0"
|
|||
|
|
//生成二维码
|
|||
|
|
// implementation 'com.google.zxing:core:3.4.0'
|
|||
|
|
//implementation 'com.journeyapps:zxing-android-embedded:3.6.0'
|
|||
|
|
//权限检查工具
|
|||
|
|
implementation "com.guolindev.permissionx:permissionx:1.7.1"
|
|||
|
|
|
|||
|
|
// implementation 'com.github.beyka:Android-TiffBitmapFactory:0.9.9.4'
|
|||
|
|
implementation 'io.github.beyka:Android-TiffBitmapFactory:+'
|
|||
|
|
|
|||
|
|
implementation 'com.qmuiteam:qmui:2.1.0'
|
|||
|
|
|
|||
|
|
}
|