Skip to content

Commit

Permalink
Sentry fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrVakhtinTari committed Oct 4, 2023
1 parent 4b0657c commit f67bcce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled = true

ndk {
abiFilters = []
abiFilters.addAll(["arm64-v8a", "x86_64"])
}

externalNativeBuild {
cmake {
arguments "-DANDROID_STL=c++_static"
Expand Down Expand Up @@ -59,9 +64,9 @@ android {
// PRIVATE BUILD: comment (add two slashes at the start of each line) all the `sentry`
// block for private release builds support
sentry { // https://docs.sentry.io/platforms/android/#gradle-configuration
autoUpload.set(true)
uploadNativeSymbols.set(true)
includeNativeSources.set(true)
autoUpload.set(false)
uploadNativeSymbols.set(false)
includeNativeSources.set(false)
}
}
}
Expand All @@ -80,11 +85,7 @@ android {

applicationVariants.configureEach { variant ->
variant.mergedFlavor.manifestPlaceholders.dropboxApiKey = loadDropboxProps().getProperty("dropbox_key")
// if (variant.buildType.name == "debug") {
// variant.mergedFlavor.manifestPlaceholders.sentryPublicDSN = ""
// } else {
variant.mergedFlavor.manifestPlaceholders.sentryPublicDSN = loadSecretProps().getProperty("sentry.public_dsn")
// }
variant.mergedFlavor.manifestPlaceholders.sentryPublicDSN = loadSecretProps().getProperty("sentry.public_dsn")
}

externalNativeBuild {
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ buildscript {
dependencies {
classpath "com.android.tools.build:gradle:$agp_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.sentry:sentry-android-gradle-plugin:3.4.3"
classpath "io.sentry:sentry-android-gradle-plugin:3.13.0"
}
}

Expand Down

0 comments on commit f67bcce

Please sign in to comment.