Skip to content

Commit 404cbab

Browse files
committed
feat(android-nav3): Track navigation state transitions
Add the observer layer that turns Navigation 3 back stack changes into breadcrumbs, scope state, and navigation transactions. This is also the point where the module starts carrying generated BuildConfig version metadata and its first non-empty API snapshot.
1 parent 01c0ad0 commit 404cbab

8 files changed

Lines changed: 1337 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
public final class io/sentry/compose/navigation3/BuildConfig {
2+
public static final field BUILD_TYPE Ljava/lang/String;
3+
public static final field DEBUG Z
4+
public static final field LIBRARY_PACKAGE_NAME Ljava/lang/String;
5+
public static final field VERSION_NAME Ljava/lang/String;
6+
public fun <init> ()V
7+
}
8+

‎sentry-android-navigation3/build.gradle.kts‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ android {
1616

1717
defaultConfig {
1818
minSdk = libs.versions.minSdk.get().toInt()
19+
20+
// for AGP 4.1
21+
buildConfigField("String", "VERSION_NAME", "\"${project.version}\"")
1922
}
2023

2124
buildTypes {
@@ -32,6 +35,10 @@ android {
3235
compilerOptions.apiVersion = KotlinVersion.KOTLIN_1_9
3336
}
3437

38+
testOptions {
39+
unitTests.isReturnDefaultValues = true
40+
}
41+
3542
lint {
3643
warningsAsErrors = true
3744
checkDependencies = true
@@ -40,6 +47,8 @@ android {
4047
checkReleaseBuilds = false
4148
}
4249

50+
buildFeatures { buildConfig = true }
51+
4352
androidComponents.beforeVariants {
4453
it.enable = !Config.Android.shouldSkipDebugVariant(it.buildType)
4554
}

0 commit comments

Comments
 (0)