Skip to content

Instantly share code, notes, and snippets.

@ChrisGi
Created July 29, 2020 15:06
Show Gist options
  • Save ChrisGi/7d6e007eb1057b6048a70ca6adedda11 to your computer and use it in GitHub Desktop.
Save ChrisGi/7d6e007eb1057b6048a70ca6adedda11 to your computer and use it in GitHub Desktop.
Crashlytics NDK configuration
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