152 lines
4.3 KiB
Groovy
152 lines
4.3 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'android-aspectjx'
|
|
apply plugin: 'kotlin-kapt'
|
|
apply from: '../common.gradle'
|
|
|
|
|
|
android {
|
|
|
|
|
|
defaultConfig {
|
|
applicationId 'com.localee.mireo.app'
|
|
resConfigs 'zh'
|
|
resConfigs 'xxhdpi'
|
|
proguardFiles 'proguard-sdk.pro', 'proguard-app.pro'
|
|
buildConfigField('boolean', 'LOG_ENABLE', '' + LOG_ENABLE + '')
|
|
buildConfigField('String', 'HOST_URL', '"' + HOST_URL + '"')
|
|
}
|
|
|
|
|
|
signingConfigs {
|
|
config {
|
|
storeFile file(StoreFile)
|
|
storePassword StorePassword
|
|
keyAlias KeyAlias
|
|
keyPassword KeyPassword
|
|
}
|
|
}
|
|
buildFeatures {
|
|
viewBinding = true
|
|
dataBinding = true
|
|
buildConfig = true
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
debug {
|
|
|
|
applicationIdSuffix '.debug'
|
|
debuggable true
|
|
jniDebuggable true
|
|
zipAlignEnabled false
|
|
shrinkResources false
|
|
minifyEnabled true
|
|
signingConfig signingConfigs.config
|
|
addManifestPlaceholders([
|
|
'app_name': 'Mireo Debug'
|
|
])
|
|
}
|
|
|
|
preview.initWith(debug)
|
|
preview {
|
|
debuggable false
|
|
jniDebuggable false
|
|
zipAlignEnabled true
|
|
shrinkResources false
|
|
minifyEnabled false
|
|
signingConfig signingConfigs.config
|
|
addManifestPlaceholders([
|
|
'app_name': '@string/app_name'
|
|
])
|
|
}
|
|
|
|
release {
|
|
debuggable false
|
|
jniDebuggable false
|
|
zipAlignEnabled false
|
|
shrinkResources true
|
|
minifyEnabled true
|
|
signingConfig signingConfigs.config
|
|
addManifestPlaceholders([
|
|
'app_name': '@string/app_name'
|
|
])
|
|
}
|
|
}
|
|
|
|
packagingOptions {
|
|
exclude 'META-INF/*******'
|
|
}
|
|
|
|
aspectjx {
|
|
include android.defaultConfig.applicationId
|
|
}
|
|
|
|
applicationVariants.all { variant ->
|
|
variant.outputs.all { output ->
|
|
outputFileName = rootProject.getName() + '_v' + variant.versionName + '_' + variant.buildType.name
|
|
if (variant.buildType.name == buildTypes.release.getName()) {
|
|
outputFileName += '_' + new Date().format('MMdd')
|
|
}
|
|
outputFileName += '.apk'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':library:base')
|
|
implementation project(':library:widget')
|
|
|
|
implementation 'com.github.getActivity:XXPermissions:12.3'
|
|
|
|
implementation 'com.github.getActivity:TitleBar:9.2'
|
|
|
|
implementation 'com.github.getActivity:ToastUtils:9.5'
|
|
|
|
implementation 'com.github.getActivity:EasyHttp:13.0'
|
|
implementation 'com.squareup.okhttp3:okhttp:3.14.9'
|
|
|
|
implementation 'com.google.code.gson:gson:2.8.8'
|
|
implementation 'com.github.getActivity:GsonFactory:5.2'
|
|
|
|
implementation 'com.github.getActivity:ShapeView:9.0'
|
|
|
|
implementation 'org.aspectj:aspectjrt:1.9.6'
|
|
|
|
implementation 'com.github.bumptech.glide:glide:4.12.0'
|
|
kapt 'com.github.bumptech.glide:compiler:4.12.0'
|
|
|
|
implementation 'com.gyf.immersionbar:immersionbar:3.0.0'
|
|
|
|
implementation 'com.github.Baseflow:PhotoView:2.3.0'
|
|
|
|
implementation 'com.airbnb.android:lottie:4.1.0'
|
|
|
|
implementation 'com.scwang.smart:refresh-layout-kernel:2.0.3'
|
|
implementation 'com.scwang.smart:refresh-header-material:2.0.3'
|
|
|
|
implementation 'com.jakewharton.timber:timber:4.7.1'
|
|
|
|
implementation 'me.relex:circleindicator:2.1.6'
|
|
|
|
implementation 'com.tencent:mmkv-static:1.2.10'
|
|
|
|
// banner
|
|
implementation 'io.github.youth5201314:banner:2.2.3'
|
|
|
|
implementation "io.github.cymchad:BaseRecyclerViewAdapterHelper4:4.1.4"
|
|
|
|
implementation "com.afollestad.material-dialogs:core:3.1.1"
|
|
implementation "com.afollestad.material-dialogs:lifecycle:3.1.1"
|
|
|
|
implementation "androidx.media3:media3-ui:1.4.0"
|
|
implementation "androidx.media3:media3-exoplayer:1.4.0"
|
|
implementation "androidx.media3:media3-exoplayer-dash:1.4.0"
|
|
implementation "androidx.media3:media3-exoplayer-hls:1.4.0"
|
|
implementation(files("libs/lib-decoder-ffmpeg-release.aar"))
|
|
|
|
implementation "org.greenrobot:eventbus:3.3.1"
|
|
implementation("com.blankj:utilcodex:1.31.1")
|
|
implementation("com.github.li-xiaojun:XPopup:2.10.0")
|
|
|
|
|
|
} |