Commit ef60231b authored by wanglei's avatar wanglei

=========处理firebase-crashlytics打包问题===========

parent 1c2be9aa
......@@ -34,8 +34,15 @@ android {
buildTypes {
release {
minifyEnabled true
shrinkResources true
// Zipalign优化
zipAlignEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.realse
// 设置是否要自动上传
firebaseCrashlytics {
mappingFileUploadEnabled true
}
}
}
compileOptions {
......@@ -52,6 +59,14 @@ android {
}
}
gradle.taskGraph.whenReady {
tasks.each { task ->
if (task.name.contains("uploadCrashlyticsMappingFile")) {
task.enabled = false
}
}
}
dependencies {
implementation(fileTree("libs"))
implementation 'androidx.core:core-ktx:1.9.0'
......@@ -72,8 +87,7 @@ dependencies {
implementation("com.blankj:utilcodex:1.31.1")
implementation 'com.github.bumptech.glide:glide:4.16.0'
implementation 'com.airbnb.android:lottie:6.4.0'
implementation platform('com.google.firebase:firebase-bom:32.3.1')
implementation 'com.google.firebase:firebase-analytics:21.6.2'
implementation("com.squareup.okhttp3:okhttp:4.9.0")
implementation("com.squareup.okhttp3:logging-interceptor:4.9.0")
// implementation("com.github.JavaNoober.BackgroundLibrary:libraryx:1.7.6")
......@@ -87,9 +101,11 @@ dependencies {
implementation group: 'com.google.code.gson', name: 'gson', version: '2.10.1'
implementation 'com.belerweb:pinyin4j:2.5.1'
implementation platform('com.google.firebase:firebase-bom:32.3.1')
implementation 'com.google.firebase:firebase-analytics:21.6.2'
implementation("com.google.firebase:firebase-messaging")
implementation("com.facebook.android:facebook-android-sdk:[8,9)")
implementation 'com.google.firebase:firebase-crashlytics'
implementation 'com.makeramen:roundedimageview:2.3.0'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment