Skip to content

Commit 8cc697e

Browse files
markushiclaude
andcommitted
refactor(samples): Convert Android sample app MainActivity to Kotlin
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent d15471f commit 8cc697e

File tree

9 files changed

+1041
-779
lines changed

9 files changed

+1041
-779
lines changed

gradle/libs.versions.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ springboot2 = "2.7.18"
3434
springboot3 = "3.5.0"
3535
springboot4 = "4.0.0"
3636
# Android
37-
targetSdk = "34"
38-
compileSdk = "34"
37+
targetSdk = "36"
38+
compileSdk = "36"
3939
minSdk = "21"
4040
spotless = "7.0.4"
4141
gummyBears = "0.12.0"
@@ -80,7 +80,9 @@ androidx-annotation = { module = "androidx.annotation:annotation", version = "1.
8080
androidx-activity-compose = { module = "androidx.activity:activity-compose", version = "1.8.2" }
8181
androidx-compose-foundation = { module = "androidx.compose.foundation:foundation", version.ref = "androidxCompose" }
8282
androidx-compose-foundation-layout = { module = "androidx.compose.foundation:foundation-layout", version.ref = "androidxCompose" }
83-
androidx-compose-material3 = { module = "androidx.compose.material3:material3", version = "1.2.1" }
83+
androidx-compose-material3 = { module = "androidx.compose.material3:material3", version = "1.4.0" }
84+
androidx-compose-material-icons-core = { module = "androidx.compose.material:material-icons-core", version="1.7.8" }
85+
androidx-compose-material-icons-extended = { module = "androidx.compose.material:material-icons-extended", version="1.7.8" }
8486
androidx-compose-ui = { module = "androidx.compose.ui:ui", version.ref = "androidxCompose" }
8587
# Note: don't change without testing forwards compatibility
8688
androidx-compose-ui-replay = { module = "androidx.compose.ui:ui", version = "1.5.0" }

sentry-android-core/src/main/java/io/sentry/android/core/AppComponentsBreadcrumbsIntegration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public void onConfigurationChanged(@NotNull Configuration newConfig) {
9898
executeInBackground(() -> captureConfigurationChangedBreadcrumb(now, newConfig));
9999
}
100100

101+
@SuppressWarnings("deprecation")
101102
@Override
102103
public void onLowMemory() {
103104
// we do this in onTrimMemory below already, this is legacy API (14 or below)

sentry-samples/sentry-samples-android/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ dependencies {
142142
implementation(libs.androidx.compose.foundation)
143143
implementation(libs.androidx.compose.foundation.layout)
144144
implementation(libs.androidx.compose.material3)
145+
implementation(libs.androidx.compose.material.icons.core)
146+
implementation(libs.androidx.compose.material.icons.extended)
145147
implementation(libs.androidx.navigation.compose)
146148
implementation(libs.androidx.recyclerview)
147149
implementation(libs.androidx.browser)

sentry-samples/sentry-samples-android/src/main/AndroidManifest.xml

Lines changed: 225 additions & 175 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)