Skip to content
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
2 changes: 2 additions & 0 deletions sentry-samples/sentry-samples-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ android {

buildTypes {
getByName("debug") {
// Suffix the id so debug and release builds can be installed side by side.
applicationIdSuffix = ".debug"
addManifestPlaceholders(mapOf("sentryDebug" to true, "sentryEnvironment" to "debug"))
}
getByName("release") {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<resources>
<string name="app_name">Sentry Sample Debug</string>
<string name="build_type">DEBUG</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.style.TextOverflow
Expand Down Expand Up @@ -246,6 +247,15 @@ fun CategoryNavigationRail(
.padding(12.dp)
.rotate(rotation.value),
)
Spacer(Modifier.height(8.dp))
Text(
text = stringResource(R.string.build_type),
style = MaterialTheme.typography.labelSmall,
fontWeight = FontWeight.Bold,
color =
if (BuildConfig.DEBUG) MaterialTheme.colorScheme.error
else MaterialTheme.colorScheme.primary,
)
Spacer(Modifier.height(16.dp))
Category.entries.forEach { category ->
NavigationRailItem(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<resources>
<string name="app_name">Sentry sample</string>
<string name="crash_from_java">Crash from Java (UncaughtException)</string>
<string name="out_of_memory">Out of Memory (Mulithreaded)</string>
<string name="stack_overflow">Stack Overflow</string>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<resources>
<string name="app_name">Sentry Sample</string>
<string name="build_type">RELEASE</string>
</resources>
Loading