225 lines
7.1 KiB
Groovy
225 lines
7.1 KiB
Groovy
apply plugin: 'com.android.application'
|
||
//apply plugin: 'kotlin-android'
|
||
//apply plugin: 'kotlin-android-extensions'
|
||
apply plugin: 'com.huawei.agconnect'
|
||
apply plugin: 'kotlin-android'
|
||
apply plugin:'kotlin-kapt'
|
||
|
||
|
||
def releaseTime() {
|
||
return new Date().format("yyyyMMddHHmm", TimeZone.getTimeZone("GMT+8"))
|
||
}
|
||
android {
|
||
|
||
compileSdkVersion 34
|
||
buildToolsVersion "30.0.3"
|
||
|
||
defaultConfig {
|
||
applicationId "com.airkoon.explorer"
|
||
minSdkVersion 24
|
||
targetSdkVersion 40
|
||
versionCode 58
|
||
versionName "1.4.7"
|
||
|
||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||
ndk {
|
||
// abiFilters "armeabi", "armeabi-v7a", "x86", "mips","x86_64"
|
||
abiFilters 'arm64-v8a','x86_64'
|
||
}
|
||
|
||
sourceSets {
|
||
main {
|
||
jniLibs.srcDirs = ['libs']
|
||
}
|
||
}
|
||
//指定room.schemaLocation生成的文件路径
|
||
javaCompileOptions {
|
||
annotationProcessorOptions {
|
||
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
//打包时出错,官方建议:忽略他
|
||
lintOptions {
|
||
checkReleaseBuilds false
|
||
abortOnError false
|
||
}
|
||
signingConfigs {
|
||
config {
|
||
keyAlias 'cellsys'
|
||
keyPassword 'akcellsys'
|
||
storeFile file('D:\\android_key\\airkoon.jks')//这里是你的jks文件路径
|
||
storePassword 'akcellsys'
|
||
}
|
||
}
|
||
|
||
buildTypes {
|
||
release {
|
||
debuggable false
|
||
buildConfigField "boolean", "LOG_DEBUG", "false" //不显示log
|
||
minifyEnabled false
|
||
applicationVariants.all { variant ->
|
||
variant.outputs.all {
|
||
def fileName = "Explorer${defaultConfig.versionName}_${releaseTime()}_${variant.buildType.name}.apk"
|
||
outputFileName = fileName
|
||
}
|
||
}
|
||
|
||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||
signingConfig signingConfigs.config
|
||
|
||
|
||
}
|
||
debug {
|
||
buildConfigField "boolean", "LOG_DEBUG", "true" //不显示log
|
||
signingConfig signingConfigs.config
|
||
}
|
||
demo {
|
||
buildConfigField "boolean", "LOG_DEBUG", "false" //不显示log
|
||
signingConfig signingConfigs.config
|
||
}
|
||
|
||
}
|
||
|
||
compileOptions {
|
||
sourceCompatibility JavaVersion.VERSION_17
|
||
targetCompatibility JavaVersion.VERSION_17
|
||
}
|
||
kotlinOptions { jvmTarget = "17"}
|
||
buildFeatures {
|
||
dataBinding = true
|
||
buildConfig=true
|
||
}
|
||
composeOptions { kotlinCompilerExtensionVersion = "1.5.10" }
|
||
packaging { resources { excludes += "/META-INF/{AL2.0,LGPL2.1}" } }
|
||
sourceSets {
|
||
main {
|
||
jniLibs.srcDirs = ['src/jniLibs']
|
||
}
|
||
}
|
||
namespace 'com.airkoon.explorer'
|
||
|
||
}
|
||
|
||
dependencies {
|
||
|
||
//libs
|
||
implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'], exclude: ['com.alibaba:fastjson:1.1.41'])
|
||
implementation 'androidx.appcompat:appcompat:1.6.1'
|
||
implementation 'com.google.android.material:material:1.1.0'
|
||
// implementation 'com.android.support:design:30.0.0'
|
||
// implementation 'com.android.support:appcompat-v7:28.0.0'
|
||
|
||
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
||
implementation project(path: ':AirkoonBaseProLib')
|
||
implementation project(path: ':AirkoonUtilLib')
|
||
implementation project(path: ':CellsysRxSDK')
|
||
implementation project(':image_select')
|
||
implementation 'androidx.room:room-runtime:2.2.5'
|
||
|
||
//扫码
|
||
implementation 'com.google.zxing:core:3.3.0'
|
||
implementation project(path: ':imagePicker')
|
||
implementation 'com.github.jdsjlzx:LRecyclerView:1.5.4.3'
|
||
|
||
testImplementation 'junit:junit:4.+'
|
||
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
||
|
||
|
||
// def lifecycle_version = "2.7.0"
|
||
// // ViewModel
|
||
// implementation "androidx.lifecycle:lifecycle-viewmodel:$lifecycle_version"
|
||
// // LiveData
|
||
// implementation "androidx.lifecycle:lifecycle-livedata:$lifecycle_version"
|
||
//room
|
||
def room_version = "2.2.6"
|
||
annotationProcessor "androidx.room:room-compiler:$room_version"
|
||
//RxJava的依赖包
|
||
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
|
||
implementation 'io.reactivex.rxjava3:rxjava:3.0.0'
|
||
//autodispose
|
||
// def auto_dispose = "2.0.0"
|
||
// implementation "com.uber.autodispose2:autodispose-android:$auto_dispose"
|
||
|
||
//zxing,二维码生成与扫描快速集成
|
||
//implementation 'cn.yipianfengye.android:zxing-library:2.2'
|
||
|
||
|
||
//fastjson
|
||
implementation 'com.alibaba:fastjson:1.2.58'
|
||
//权限检查工具
|
||
implementation 'com.permissionx.guolindev:permissionx:1.4.0'
|
||
|
||
//高德地图引用
|
||
implementation 'com.amap.api:3dmap:7.8.0'
|
||
implementation 'com.amap.api:location:5.2.0'
|
||
implementation 'com.amap.api:search:7.7.0'
|
||
|
||
// implementation 'com.rengwuxian.materialedittext:library:2.1.4'
|
||
// implementation 'com.jakewharton:butterknife:8.8.1'
|
||
//UI
|
||
implementation 'com.rengwuxian.materialedittext:library:2.1.4'
|
||
implementation 'com.google.code.gson:gson:2.9.0'
|
||
//ButterKnife
|
||
// implementation 'com.jakewharton:butterknife:9.0.0'
|
||
// annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0'
|
||
//图片轮播框架
|
||
implementation 'com.youth.banner:banner:1.4.10'
|
||
|
||
implementation 'com.contrarywind:Android-PickerView:4.1.9'
|
||
implementation 'com.belerweb:pinyin4j:2.5.1'
|
||
|
||
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0'
|
||
implementation 'com.gyf.barlibrary:barlibrary:2.3.0'
|
||
|
||
|
||
//图片加载框架
|
||
implementation 'com.github.bumptech.glide:glide:4.11.0'
|
||
implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.30'
|
||
|
||
implementation 'com.github.loperSeven:DateTimePicker:0.3.3'
|
||
//具体版本请看顶部jitpack标识,如0.3.3,仅支持androidx
|
||
implementation 'me.relex:circleindicator:2.1.6'
|
||
implementation 'me.relex:recyclerpager:1.0.4'
|
||
|
||
|
||
//选择多张图片发圈
|
||
implementation "com.github.itxiaox.photo:multi-picture:0.0.5"
|
||
//调用系统的相机或相册的方法,兼容性封装
|
||
// implementation "com.github.itxiaox.photo:picture:0.0.5"
|
||
|
||
implementation 'com.huawei.hms:scanplus:2.3.0.300'//华为二维码扫码
|
||
|
||
implementation "com.android.support:support-compat:28.0.0"
|
||
//列表刷新加载控件
|
||
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0'
|
||
//eventbus
|
||
implementation "org.greenrobot:eventbus:3.1.1"
|
||
|
||
|
||
// //ARouter
|
||
// implementation "com.alibaba:arouter-api:$arouter_api_version"
|
||
// annotationProcessor "com.alibaba:arouter-compiler:$arouter_compiler_version"
|
||
// //Gson 库
|
||
// implementation 'com.google.code.gson:gson:2.8.6'
|
||
|
||
// 图片选择器
|
||
api 'com.zhihu.android:matisse:0.5.3-beta3'
|
||
//动态权限申请
|
||
//implementation 'com.yanzhenjie:permission:2.0.3'
|
||
|
||
implementation 'com.github.AnyChart:AnyChart-Android:1.1.2'
|
||
|
||
kapt "androidx.room:room-compiler:2.6.1"
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
} |