157 lines
5.0 KiB
Groovy
157 lines
5.0 KiB
Groovy
apply plugin: 'com.android.application'
|
||
apply plugin: 'org.jetbrains.kotlin.android'
|
||
apply plugin: 'org.greenrobot.greendao'
|
||
//apply plugin: 'kotlin-android'
|
||
|
||
android {
|
||
//添加这两行
|
||
aaptOptions.cruncherEnabled = false
|
||
// aaptOptions.useNewCruncher = false
|
||
// 签名配置
|
||
signingConfigs {
|
||
debug {
|
||
keyAlias rootProject.ext.base["signAlias"]
|
||
keyPassword rootProject.ext.base["signPassword"]
|
||
storeFile file(rootProject.ext.base["signFile"])
|
||
storePassword rootProject.ext.base["signPassword"]
|
||
}
|
||
release {
|
||
keyAlias rootProject.ext.base["signAlias"]
|
||
keyPassword rootProject.ext.base["signPassword"]
|
||
storeFile file(rootProject.ext.base["signFile"])
|
||
storePassword rootProject.ext.base["signPassword"]
|
||
}
|
||
}
|
||
|
||
compileSdkVersion 36
|
||
|
||
namespace rootProject.ext.base.applicationId // 添加这一行
|
||
defaultConfig {
|
||
applicationId rootProject.ext.base.applicationId
|
||
minSdkVersion 24
|
||
targetSdkVersion 36
|
||
multiDexEnabled true
|
||
versionCode rootProject.ext.base.versionCode
|
||
versionName rootProject.ext.base.versionName
|
||
resConfigs "zh"
|
||
}
|
||
|
||
buildTypes {
|
||
release {
|
||
apply from: rootProject.file('android_data/flavors.gradle')
|
||
}
|
||
}
|
||
|
||
compileOptions {
|
||
sourceCompatibility JavaVersion.VERSION_17
|
||
targetCompatibility JavaVersion.VERSION_17
|
||
}
|
||
sourceSets {
|
||
main {
|
||
jniLibs.srcDirs = ['libs']
|
||
assets.srcDirs += ['../android_data/csj_config']
|
||
// res.srcDirs += ['../resource/logo', '../resource/module/视频A001']
|
||
}
|
||
}
|
||
kotlinOptions {
|
||
jvmTarget = '17'
|
||
}
|
||
}
|
||
|
||
repositories {
|
||
flatDir {
|
||
dirs 'libs'
|
||
}
|
||
}
|
||
|
||
greendao {
|
||
schemaVersion 1 //当前数据库版本
|
||
// 生成数据库文件的目录
|
||
targetGenDir 'src/main/java'
|
||
// 生成的数据库相关文件的包名
|
||
daoPackage 'com.tfq.finances.db'
|
||
}
|
||
|
||
tasks.configureEach { task ->
|
||
if(task.name.matches("\\w*compile\\w*Kotlin")) {
|
||
task.dependsOn('greendao') // 如果有greendao任务
|
||
}
|
||
}
|
||
|
||
|
||
dependencies {
|
||
implementation fileTree(include: ['*.aar', '*.jar'], dir: 'libs')
|
||
|
||
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
||
api 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
||
implementation 'androidx.core:core-ktx:1.10.1'
|
||
testImplementation 'junit:junit:4.+'
|
||
|
||
//---------- 友盟 start ----------
|
||
// 下面各SDK根据宿主App是否使用相关业务按需引入。
|
||
// 友盟统计SDK
|
||
implementation 'com.umeng.umsdk:common:9.6.5'// 必选
|
||
implementation 'com.umeng.umsdk:asms:1.4.1'// 必选
|
||
implementation 'com.umeng.umsdk:apm:1.7.0' // 错误分析模块改为独立库,看crash和性能数据请一定集成
|
||
implementation 'com.umeng.umsdk:abtest:1.0.0'//使用U-App中ABTest能力,可选
|
||
//---------- 友盟 end ----------
|
||
|
||
implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.28'
|
||
|
||
// implementation 'io.github.youth5201314:banner:2.2.2'
|
||
// implementation 'com.github.yujinzhao123:DoubleHeadedDragonBar:1.0.4'
|
||
|
||
|
||
/*//进度条
|
||
implementation 'com.daimajia.numberprogressbar:library:1.4@aar'
|
||
//播放器(无UI交互)
|
||
implementation 'com.github.hty527.iPlayer:iplayer:2.1.26.1'
|
||
//SDK默认UI交互组件
|
||
implementation 'com.github.hty527.iPlayer:widget:2.1.26.1'
|
||
//ijk音视频解码器
|
||
implementation 'com.github.hty527.iPlayer:ijk:2.1.26.1'
|
||
//exo音视频解码器
|
||
implementation 'com.github.hty527.iPlayer:exo:2.1.26.1'
|
||
|
||
//音乐播放器
|
||
implementation 'com.github.hty527.iMusic:music-player:1.2.0'
|
||
//视频播放器
|
||
implementation 'com.github.hty527.iMusic:video-player:1.2.0'*/
|
||
|
||
implementation 'io.reactivex:rxjava:1.0.14'
|
||
implementation 'io.reactivex:rxandroid:1.0.1'
|
||
|
||
//BasePopup
|
||
// implementation 'io.github.razerdp:BasePopup:3.2.1'
|
||
|
||
//文件管理
|
||
// implementation 'com.jiajunhui.xapp.medialoader:medialoader:1.2.1'
|
||
|
||
|
||
// 替代原有的 jdk7/jdk8 分离依赖
|
||
implementation "org.jetbrains.kotlin:kotlin-stdlib:2.0.0"
|
||
// 合并后的标准库:ml-citation{ref="6,8" data="citationList"}
|
||
|
||
|
||
implementation project(':BaseLibrary')
|
||
|
||
implementation fileTree(dir: '../LibraryAd/libs', include: ['*.aar'])
|
||
implementation project(':LibraryAd')
|
||
// implementation 'com.tfq:libraryad:1.0.0'
|
||
|
||
// build.gradle 高颜值日期选择器
|
||
// implementation 'com.prolificinteractive:material-calendarview:2.0.1'
|
||
implementation 'com.github.gzu-liyujiang.AndroidPicker:WheelPicker:4.1.12'
|
||
|
||
//数据库
|
||
implementation 'org.greenrobot:greendao:3.3.0'
|
||
|
||
//JSON动画
|
||
implementation "com.airbnb.android:lottie:6.6.6"
|
||
|
||
//PAG动画
|
||
// implementation 'org.libpag:pag:4.4.31'
|
||
// implementation(name: 'libpag_4.4.31_android_armeabi_armv7a_arm64v8a.aar', ext: 'aar')
|
||
implementation("androidx.exifinterface:exifinterface:1.3.3")
|
||
}
|