yuyalong/app/build.gradle
2025-05-10 09:21:41 +08:00

164 lines
5.0 KiB
Groovy

apply plugin: 'com.android.application'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
apply plugin: 'com.google.firebase.firebase-perf'
apply from: '../common.gradle'
android {
defaultConfig {
applicationId 'com.localee.mireo.shortapp'
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 false
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/*******'
}
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'
}
}
sourceSets {
main {
res.srcDirs(
'src/main/res',
'src/main/res-sw',
)
}
}
}
dependencies {
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.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.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.tencent:mmkv:1.3.0'
// 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-drama-decoder-ffmpeg.aar"))
implementation "org.greenrobot:eventbus:3.3.1"
implementation("com.blankj:utilcodex:1.31.1")
implementation("com.github.li-xiaojun:XPopup:2.10.0")
implementation("com.android.billingclient:billing:7.0.0")
implementation("com.facebook.android:facebook-android-sdk:17.0.2")
implementation("com.adjust.sdk:adjust-android:5.2.0")
implementation("com.adjust.sdk:adjust-android-webbridge:5.2.0")
implementation("com.android.installreferrer:installreferrer:2.2")
implementation(platform("com.google.firebase:firebase-bom:32.3.1"))
implementation("com.google.firebase:firebase-messaging-ktx:24.0.0")
implementation("androidx.work:work-runtime-ktx:2.9.1")
implementation("com.google.firebase:firebase-analytics-ktx")
implementation("com.google.firebase:firebase-crashlytics")
implementation("com.google.firebase:firebase-perf")
implementation("com.github.centerzx:ShapeBlurView:1.0.5")
implementation("com.google.android.flexbox:flexbox:3.0.0")
}