Skip to content

Commit

Permalink
feat: allow overriding the native SDK name for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed May 10, 2022
1 parent b337ce8 commit cad950e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,7 @@
### Features

- Allow setting SDK info (name & version) in manifest ([#2016](https://github.com/getsentry/sentry-java/pull/2016))
- Allow setting native Android SDK name during build ([#2035](https://github.com/getsentry/sentry-java/pull/2035))

## 6.0.0-beta.3

Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Expand Up @@ -9,6 +9,9 @@ android.useAndroidX=true
# Release information
versionName=6.0.0-beta.3

# Override the SDK name on native crashes on Android
sentryAndroidSdkName=sentry.native.android

# disable renderscript, it's enabled by default
android.defaults.buildfeatures.renderscript=false

Expand Down
2 changes: 2 additions & 0 deletions sentry-android-ndk/build.gradle.kts
Expand Up @@ -9,6 +9,7 @@ plugins {
}

var sentryNativeSrc: String = "sentry-native"
val sentryAndroidSdkName: String by project

android {
compileSdk = Config.Android.compileSdkVersion
Expand All @@ -30,6 +31,7 @@ android {
cmake {
arguments.add(0, "-DANDROID_STL=c++_static")
arguments.add(0, "-DSENTRY_NATIVE_SRC=$sentryNativeSrc")
arguments.add(0, "-DSENTRY_SDK_NAME=$sentryAndroidSdkName")
}
}

Expand Down

0 comments on commit cad950e

Please sign in to comment.