Skip to content

Commit 9a990f4

Browse files
authored
Merge fcb448d into e5bbb00
2 parents e5bbb00 + fcb448d commit 9a990f4

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

sentry-compose/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ kotlin {
3838
sourceSets {
3939
val commonMain by getting {
4040
dependencies {
41-
api(compose.runtime)
42-
api(compose.ui)
41+
compileOnly(compose.runtime)
42+
compileOnly(compose.ui)
4343

44-
implementation(Config.Libs.kotlinStdLib)
4544
api(projects.sentryComposeHelper)
4645
}
4746
}
@@ -50,7 +49,7 @@ kotlin {
5049
api(projects.sentry)
5150
api(projects.sentryAndroidNavigation)
5251

53-
api(Config.Libs.composeNavigation)
52+
compileOnly(Config.Libs.composeNavigation)
5453
implementation(Config.Libs.lifecycleCommonJava8)
5554
}
5655
}
@@ -59,6 +58,7 @@ kotlin {
5958
implementation(Config.TestLibs.kotlinTestJunit)
6059
implementation(Config.TestLibs.mockitoKotlin)
6160
implementation(Config.TestLibs.mockitoInline)
61+
implementation(Config.Libs.composeNavigation)
6262
}
6363
}
6464
}

sentry-compose/proguard-rules.pro

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
-keep class io.sentry.compose.gestures.ComposeGestureTargetLocator { <init>(...); }
55
-keepnames interface androidx.compose.ui.node.Owner
66

7+
# R8 will warn about missing classes if people don't have androidx.compose-navigation on their
8+
# classpath, but this is fine, these classes are used in an internal class which is only used when
9+
# someone is using withSentryObservableEffect extension function (which, in turn, cannot be used
10+
# without having androidx.compose-navigation on the classpath)
11+
-dontwarn androidx.navigation.NavController$OnDestinationChangedListener
12+
-dontwarn androidx.navigation.NavController
13+
714
# To ensure that stack traces is unambiguous
815
# https://developer.android.com/studio/build/shrink-code#decode-stack-trace
916
-keepattributes LineNumberTable,SourceFile

sentry/src/main/java/io/sentry/SentryOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1660,7 +1660,7 @@ public void setProfilesSampler(final @Nullable ProfilesSamplerCallback profilesS
16601660

16611661
/**
16621662
* Sets the profilesSampleRate. Can be anything between 0.0 and 1.0 or null (default), to disable
1663-
* it. Its dependent on the {{@link SentryOptions#setTracesSampleRate(Double)} } If a transaction
1663+
* it. It's dependent on the {{@link SentryOptions#setTracesSampleRate(Double)} } If a transaction
16641664
* is sampled, then a profile could be sampled with a probability given by profilesSampleRate.
16651665
*
16661666
* @param profilesSampleRate the sample rate

0 commit comments

Comments
 (0)