mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Fixed CI build to due debug libs not found, disabling crashlytics upload in that case
This commit is contained in:
parent
5d3d8eeedc
commit
919abd3bd3
1 changed files with 12 additions and 6 deletions
|
|
@ -11,6 +11,8 @@ plugins {
|
|||
|
||||
def packageName = "org.linphone"
|
||||
|
||||
def crashlyticsAvailable = new File(projectDir.absolutePath +'/google-services.json').exists() && new File(LinphoneSdkBuildDir + '/libs/').exists() && new File(LinphoneSdkBuildDir + '/libs-debug/').exists()
|
||||
|
||||
configurations {
|
||||
customImplementation.extendsFrom implementation
|
||||
}
|
||||
|
|
@ -93,9 +95,11 @@ android {
|
|||
resValue "string", "linphone_app_version", gitVersion.toString().trim()
|
||||
resValue "string", "linphone_app_branch", gitBranch.toString().trim()
|
||||
|
||||
firebaseCrashlytics {
|
||||
nativeSymbolUploadEnabled true
|
||||
unstrippedNativeLibsDir file(LinphoneSdkBuildDir + '/libs-debug/').toString()
|
||||
if (crashlyticsAvailable) {
|
||||
firebaseCrashlytics {
|
||||
nativeSymbolUploadEnabled true
|
||||
unstrippedNativeLibsDir file(LinphoneSdkBuildDir + '/libs-debug/').toString()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -182,7 +186,9 @@ ktlint {
|
|||
|
||||
project.tasks['preBuild'].dependsOn 'ktlintFormat'
|
||||
|
||||
afterEvaluate {
|
||||
assembleDebug.finalizedBy(uploadCrashlyticsSymbolFileDebug)
|
||||
packageDebug.finalizedBy(uploadCrashlyticsSymbolFileDebug)
|
||||
if (crashlyticsAvailable) {
|
||||
afterEvaluate {
|
||||
assembleDebug.finalizedBy(uploadCrashlyticsSymbolFileDebug)
|
||||
packageDebug.finalizedBy(uploadCrashlyticsSymbolFileDebug)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue