You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

181 lines
6.3 KiB
Groovy

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
}
android {
namespace 'com.rehome.zhdcoa'
compileSdk 36
defaultConfig {
applicationId "com.rehome.zhdcoa"
minSdk 24
targetSdk 36
versionCode 27
versionName "2.4.3"
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
//每个应用拥有不同的authorities防止相同的在同一个手机上无法同时安装
resValue "string", "authorities", applicationId
resourceConfigurations += ['zh', 'en', 'hdpi']
}
buildFeatures {
viewBinding = true
}
signingConfigs {
release {
keyAlias 'key0'
storeFile file('../key/key_zhdcoa')
storePassword 'abc123123'
keyPassword 'abc123123'
v1SigningEnabled true //是否开启V1签名
v2SigningEnabled true //是否开启V2签名
}
}
/* keypassword:abc123123 alias key0*/
buildTypes {
debug {
minifyEnabled false
}
release {
lintOptions {
checkReleaseBuilds false
abortOnError false
}
minifyEnabled false //开启代码混淆,防止反编译查看源代码
debuggable false // 是否debug
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
//修改生成的apk名字
android.applicationVariants.all { variant ->
variant.outputs.all {
outputFileName = "zdxoaapp.apk"
}
}
signingConfig signingConfigs.release // 打包签名信息
}
}
sourceSets {
main {
jniLibs.srcDirs = ['libs']
java.srcDirs = ['src/main/java']
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation files('libs/pdf.aar')
implementation files('libs/ZSDK_API.jar')
// implementation files('libs/ksoap2-android-assembly-3.6.0-jar-with-dependencies.jar')
implementation files('libs/badgeview.jar')
implementation files('libs/TbsFileSdk_base_arm64_release_1.0.5.6000030.20231109143447.aar')
//深信服零信任SDK
implementation files('libs/SangforSDK.aar')
implementation libs.androidx.core.ktx
implementation libs.androidx.appcompat
implementation libs.material
implementation libs.androidx.activity
implementation libs.androidx.constraintlayout
testImplementation libs.junit
androidTestImplementation libs.androidx.junit
androidTestImplementation libs.androidx.espresso.core
//implementation 'com.zhy:autolayout:1.4.5'
//implementation 'com.yolanda.nohttp:nohttp:1.0.5'
//implementation 'org.litepal.android:core:1.5.1'
//implementation 'com.github.barteksc:android-pdf-viewer:2.8.2'
//implementation 'com.haozhang.libary:android-slanted-textview:1.2'
//implementation 'com.haibin:calendarview:3.6.3'
//第三方库自动布局
implementation project(':autolayout')
//网络请求模块
implementation project(':nohttp')
//第三方数据库封装,巡检,点检用到
implementation project(':litepal')
//下拉刷新、下拉刷新模块
implementation project(':tkrefreshlayout')
//PDF预览
implementation project(':androidpdfviewer')
//图片边角斜放文字
implementation project(':androidslantedtextview')
//圆角日历CalenderView
implementation project(':calendarview')
//圆角日历CalenderView
implementation project(':zxingLite')
//视频压缩
implementation project(':videocompressor')
//实时录音wav转mp3
implementation project(':recorderlib')
//网络请求
implementation libs.logging.interceptor
implementation libs.com.squareup.retrofit2.retrofit3
implementation libs.com.squareup.retrofit2.converter.gson
implementation libs.okhttp
implementation libs.cn.hutool.hutool.all
implementation libs.com.github.philjay.mpandroidchart6
implementation libs.circleimageview
implementation libs.com.github.chrisbanes.photoview.library6
implementation libs.me.leolin.shortcutbadger
implementation libs.cn.jzvd.jiaozivideoplayer6
implementation libs.com.github.chrisbanes.photoview6
implementation libs.com.davemorrissey.labs.subsampling.scale.image.view6
implementation libs.com.github.huangyanbin.smarttable6
implementation libs.androidx.multidex
implementation libs.recyclerview.v140
implementation libs.xuexiangjys.xui
implementation libs.baoyachi.stepview
implementation libs.appupdate
implementation libs.com.tencent.bugly.crashreport
// implementation 'com.github.xuexiangjys.SmartRefreshLayout:refresh-header:1.1.5'
// implementation 'com.github.xuexiangjys.SmartRefreshLayout:refresh-layout:1.1.5'
//implementation 'com.just.agentweb:agentweb:4.1.4'
//第三方浏览器
implementation libs.io.github.justson.agentweb.core3
implementation libs.cymchad.baserecyclerviewadapterhelper
//第三方库图片选择器
// PictureSelector basic (Necessary)
implementation libs.github.pictureselector
// image compress library (Not necessary)
implementation libs.github.compress
// uCrop library (Not necessary)
implementation libs.github.ucrop
// simple camerax library (Not necessary)
implementation libs.github.camerax
//第三方库图片异步加载
implementation libs.com.github.bumptech.glide.glide
annotationProcessor libs.compiler
//mqtt
implementation libs.eclipse.org.eclipse.paho.client.mqttv3
implementation libs.eclipse.org.eclipse.paho.android.service
implementation libs.org.bouncycastle.bcpkix.jdk15on
implementation libs.commons.codec
//emoji表情符号
implementation libs.androidx.emoji.bundled
//二维码扫描
implementation libs.barcode.scanning
// implementation('org.dom4j:dom4j:2.1.3') {
// exclude group: 'pull-parser', module: 'pull-parser'
// }
// configurations {
// all*.exclude group: 'org.xmlpull.v1.XmlPullParser'
// }
}