mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-04-17 12:58:28 +00:00
Fixed crash due to missing Crashlytics build ID in release flavor
This commit is contained in:
parent
8b17d4aa50
commit
721e379b50
1 changed files with 6 additions and 6 deletions
|
|
@ -122,7 +122,7 @@ android {
|
||||||
variant.outputs
|
variant.outputs
|
||||||
.map { it as com.android.build.gradle.internal.api.BaseVariantOutputImpl }
|
.map { it as com.android.build.gradle.internal.api.BaseVariantOutputImpl }
|
||||||
.forEach { output ->
|
.forEach { output ->
|
||||||
output.outputFileName = "linphone-android-${variant.buildType.name}-${gitVersion}.apk"
|
output.outputFileName = "linphone-android-${variant.buildType.name}-$gitVersion.apk"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -172,8 +172,6 @@ android {
|
||||||
nativeSymbolUploadEnabled = true
|
nativeSymbolUploadEnabled = true
|
||||||
unstrippedNativeLibsDir = path
|
unstrippedNativeLibsDir = path
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
resValue("string", "com.crashlytics.android.build_id", "none")
|
|
||||||
}
|
}
|
||||||
buildConfigField("Boolean", "CRASHLYTICS_ENABLED", crashlyticsAvailable.toString())
|
buildConfigField("Boolean", "CRASHLYTICS_ENABLED", crashlyticsAvailable.toString())
|
||||||
}
|
}
|
||||||
|
|
@ -201,8 +199,6 @@ android {
|
||||||
nativeSymbolUploadEnabled = true
|
nativeSymbolUploadEnabled = true
|
||||||
unstrippedNativeLibsDir = path
|
unstrippedNativeLibsDir = path
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
resValue("string", "com.crashlytics.android.build_id", "none")
|
|
||||||
}
|
}
|
||||||
buildConfigField("Boolean", "CRASHLYTICS_ENABLED", crashlyticsAvailable.toString())
|
buildConfigField("Boolean", "CRASHLYTICS_ENABLED", crashlyticsAvailable.toString())
|
||||||
}
|
}
|
||||||
|
|
@ -252,7 +248,11 @@ dependencies {
|
||||||
|
|
||||||
implementation(platform(libs.google.firebase.bom))
|
implementation(platform(libs.google.firebase.bom))
|
||||||
implementation(libs.google.firebase.messaging)
|
implementation(libs.google.firebase.messaging)
|
||||||
implementation(libs.google.firebase.crashlytics)
|
if (crashlyticsAvailable) {
|
||||||
|
implementation(libs.google.firebase.crashlytics)
|
||||||
|
} else {
|
||||||
|
compileOnly(libs.google.firebase.crashlytics)
|
||||||
|
}
|
||||||
|
|
||||||
// https://github.com/coil-kt/coil/blob/main/LICENSE.txt Apache v2.0
|
// https://github.com/coil-kt/coil/blob/main/LICENSE.txt Apache v2.0
|
||||||
implementation(libs.coil)
|
implementation(libs.coil)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue