Created
July 29, 2020 15:06
-
-
Save ChrisGi/7d6e007eb1057b6048a70ca6adedda11 to your computer and use it in GitHub Desktop.
Crashlytics NDK configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
maybeCreate("realease").apply { | |
configure<CrashlyticsExtension> { | |
nativeSymbolUploadEnabled = true | |
// https://github.com/firebase/firebase-android-sdk/issues/1684 | |
strippedNativeLibsDir = "../core/build/intermediates/stripped_native_libs/arm_Arm64ProdRelease/out/lib/" | |
unstrippedNativeLibsDir = "../core/build/intermediates/cmake/arm_Arm64ProdRelease/obj/" | |
} | |
} | |
// Upload Crashlytics NDK symbols only for release | |
tasks.whenTaskAdded { | |
if (name.startsWith("assemble") && name.endsWith("Release")) { | |
val variant = name.substring("assemble".length) | |
finalizedBy("uploadCrashlyticsSymbolFile$variant") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment