|
|
plugins {
|
|
|
id 'com.android.application'
|
|
|
id 'org.jetbrains.kotlin.android'
|
|
|
}
|
|
|
|
|
|
android {
|
|
|
namespace 'com.rehome.dywoa'
|
|
|
compileSdk 34
|
|
|
defaultConfig {
|
|
|
applicationId "com.rehome.dywoa"
|
|
|
minSdk 24
|
|
|
targetSdk 34
|
|
|
versionCode 16
|
|
|
versionName "1.1.5"
|
|
|
multiDexEnabled true
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
//每个应用拥有不同的authorities,防止相同的在同一个手机上无法同时安装
|
|
|
resValue "string", "authorities", applicationId
|
|
|
resourceConfigurations += ['zh', 'en', 'xhdpi']
|
|
|
}
|
|
|
buildFeatures {
|
|
|
viewBinding = true
|
|
|
buildConfig = true
|
|
|
}
|
|
|
signingConfigs {
|
|
|
release {
|
|
|
keyAlias 'key0'
|
|
|
storeFile file('../key/keystore1')
|
|
|
storePassword 'abc123123'
|
|
|
keyPassword 'abc123123'
|
|
|
v1SigningEnabled true //是否开启V1签名
|
|
|
v2SigningEnabled true //是否开启V2签名
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* keypassword:abc123123 alias key0*/
|
|
|
buildTypes {
|
|
|
debug {
|
|
|
minifyEnabled false
|
|
|
buildConfigField "boolean", "LOG_ERROR", "true"
|
|
|
}
|
|
|
release {
|
|
|
lintOptions {
|
|
|
checkReleaseBuilds false
|
|
|
abortOnError false
|
|
|
}
|
|
|
minifyEnabled false //开启代码混淆,防止反编译查看源代码
|
|
|
zipAlignEnabled true // 对齐zip
|
|
|
debuggable false // 是否debug
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
buildConfigField("boolean","LOG_ERROR","false");
|
|
|
//修改生成的apk名字
|
|
|
android.applicationVariants.all { variant ->
|
|
|
variant.outputs.all {
|
|
|
outputFileName = "dywoaapp.apk"
|
|
|
}
|
|
|
}
|
|
|
signingConfig signingConfigs.release // 打包签名信息
|
|
|
}
|
|
|
}
|
|
|
sourceSets {
|
|
|
main {
|
|
|
jniLibs.srcDirs = ['libs']
|
|
|
}
|
|
|
}
|
|
|
compileOptions {
|
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
//implementation 'androidx.appcompat:appcompat:1.2.0'
|
|
|
//implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
|
|
implementation 'com.zhy:autolayout:1.4.5'
|
|
|
implementation 'com.yolanda.nohttp:nohttp:1.0.5'
|
|
|
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.0'
|
|
|
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
|
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
|
|
|
implementation 'org.litepal.android:core:1.5.1'
|
|
|
implementation 'com.github.huangyanbin:SmartTable:2.2.0'
|
|
|
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
|
|
implementation 'de.hdodenhof:circleimageview:3.1.0'
|
|
|
implementation 'com.github.wanglu1209:PhotoViewer:0.50'
|
|
|
implementation 'io.github.azhon:appupdate:4.2.6'
|
|
|
implementation 'com.tencent.bugly:crashreport:3.2.1'
|
|
|
implementation 'com.github.xuexiangjys:XUI:1.1.4'
|
|
|
implementation 'org.greenrobot:eventbus:3.0.0'
|
|
|
implementation 'com.zhihu.android:matisse:0.5.3-beta3'
|
|
|
//第三方浏览器
|
|
|
implementation 'io.github.justson:agentweb-core:v5.1.1-androidx'
|
|
|
implementation 'com.lcodecorex:tkrefreshlayout:1.0.7'
|
|
|
|
|
|
|
|
|
implementation 'androidx.multidex:multidex:2.0.1'
|
|
|
implementation 'androidx.core:core-ktx:1.9.0'
|
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
|
implementation 'com.google.android.material:material:1.8.0'
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
|
implementation project(':videocompressor')
|
|
|
//深信服零信任SDK
|
|
|
implementation files('libs/SangforSDK.aar')
|
|
|
implementation 'de.hdodenhof:circleimageview:3.1.0'
|
|
|
//腾讯APP崩溃分析
|
|
|
implementation 'com.tencent.bugly:crashreport:3.2.1'
|
|
|
|
|
|
|
|
|
//第三方库图片选择器
|
|
|
// PictureSelector basic (Necessary)
|
|
|
implementation 'io.github.lucksiege:pictureselector:v3.10.7'
|
|
|
// image compress library (Not necessary)
|
|
|
implementation 'io.github.lucksiege:compress:v3.10.7'
|
|
|
// uCrop library (Not necessary)
|
|
|
implementation 'io.github.lucksiege:ucrop:v3.10.7'
|
|
|
// simple camerax library (Not necessary)
|
|
|
implementation 'io.github.lucksiege:camerax:v3.10.7'
|
|
|
//第三方库图片异步加载
|
|
|
implementation 'com.github.bumptech.glide:glide:4.11.0'
|
|
|
implementation 'androidx.annotation:annotation:1.6.0'
|
|
|
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.1'
|
|
|
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1'
|
|
|
implementation 'androidx.activity:activity:1.8.0'
|
|
|
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
|
|
|
//第三方工具类
|
|
|
implementation 'cn.hutool:hutool-all:5.8.5'
|
|
|
//implementation 'cn.hutool:hutool-crypto:5.7.16'
|
|
|
implementation 'org.bouncycastle:bcprov-jdk15on:1.65'
|
|
|
//mqtt
|
|
|
implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.4'
|
|
|
implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1'
|
|
|
implementation 'org.bouncycastle:bcpkix-jdk15on:1.56'
|
|
|
implementation 'commons-codec:commons-codec:1.15'
|
|
|
//本地广播
|
|
|
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
|
|
|
//人脸识别
|
|
|
implementation 'com.google.mlkit:face-detection:16.1.6'
|
|
|
//摄像头 CameraX core library using the camera2 implementation
|
|
|
def camerax_version = "1.4.0-alpha04"
|
|
|
// The following line is optional, as the core library is included indirectly by camera-camera2
|
|
|
implementation "androidx.camera:camera-core:${camerax_version}"
|
|
|
implementation "androidx.camera:camera-camera2:${camerax_version}"
|
|
|
// If you want to additionally use the CameraX Lifecycle library
|
|
|
implementation "androidx.camera:camera-lifecycle:${camerax_version}"
|
|
|
// If you want to additionally use the CameraX VideoCapture library
|
|
|
implementation "androidx.camera:camera-video:${camerax_version}"
|
|
|
// If you want to additionally use the CameraX View class
|
|
|
implementation "androidx.camera:camera-view:${camerax_version}"
|
|
|
// If you want to additionally add CameraX ML Kit Vision Integration
|
|
|
implementation "androidx.camera:camera-mlkit-vision:${camerax_version}"
|
|
|
// If you want to additionally use the CameraX Extensions library
|
|
|
implementation "androidx.camera:camera-extensions:${camerax_version}"
|
|
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
|
|
configurations {
|
|
|
all*.exclude group: 'com.google.code.gson'
|
|
|
}
|
|
|
} |