Skip to content

Commit 6a2c118

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 dc5546c commit 6a2c118

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 {
@@ -33,6 +36,10 @@ android {
3336
compilerOptions.apiVersion = KotlinVersion.KOTLIN_1_9
3437
}
3538

39+
testOptions {
40+
unitTests.isReturnDefaultValues = true
41+
}
42+
3643
lint {
3744
warningsAsErrors = true
3845
checkDependencies = true
@@ -41,6 +48,8 @@ android {
4148
checkReleaseBuilds = false
4249
}
4350

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

0 commit comments

Comments
 (0)