Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions sentry-samples/sentry-samples-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ android {
buildTypes {
getByName("debug") {
manifestPlaceholders = mapOf(
"sentryDebug" to true
"sentryDebug" to true,
"sentryEnvironment" to "debug"
)
}
getByName("release") {
Expand All @@ -76,7 +77,8 @@ android {
isShrinkResources = true

manifestPlaceholders = mapOf(
"sentryDebug" to false
"sentryDebug" to false,
"sentryEnvironment" to "release"
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
<!-- <meta-data android:name="io.sentry.ndk.enable" android:value="false" />-->

<!-- how to set a custom release-->
<!-- <meta-data android:name="io.sentry.release" android:value="io.sentry.sample@1.0.0+10001" />-->
<!-- <meta-data android:name="io.sentry.release" android:value="io.sentry.samples.android@1.1.0+2" />-->

<!-- how to disable automatic session tracking-->
<meta-data android:name="io.sentry.session-tracking.enable" android:value="false" />
<!-- <meta-data android:name="io.sentry.session-tracking.enable" android:value="false" />-->

<!-- how to set an environment-->
<!-- <meta-data android:name="io.sentry.environment" android:value="debug" />-->
<meta-data android:name="io.sentry.environment" android:value="${sentryEnvironment}" />

<!-- how to change the session tracking interval-->
<meta-data android:name="io.sentry.session-tracking.timeout-interval-millis" android:value="10000" />
Expand Down