You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f7af851
Browse filesBrowse the repository at this point in the historyBrowse files
build(samples): Move the Android sample to its own composite build
The Android sample was a subproject of the SDK build, so every root Gradle
invocation configured AGP, Compose, KSP, SQLDelight, Room and CameraX, and the
sample consumed the SDK through project accessors rather than as a real
consumer would.
It is now a standalone build that includes the SDK build, depending on plain
io.sentry:* coordinates that Gradle substitutes with the SDK's projects. Run it
with ./gradlew -p sentry-samples/sentry-samples-android <task>.
The macrobenchmark module moves along with it, because AGP requires a
benchmark's target app to live in the same build. The AGP version moves to the
version catalog so both builds share one source of truth, still overridable via
VERSION_AGP.
The SDK build includes the sample build back, so a single ./gradlew spotlessApply
still formats the whole repository and CI needs no sample-specific step. Root
check does not reach the sample, so preMerge gains a checkSampleAndroid target.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@@ -111,7 +114,7 @@ The repository is organized into multiple modules:
111
114
### Utility Modules
112
115
-**`sentry-test-support`** - Shared test utilities
113
116
-**`sentry-system-test-support`** - System testing infrastructure
114
-
-**`sentry-samples`** - Example applications
117
+
-**`sentry-samples`** - Example applications. `sentry-samples-android` is a separate Gradle build that includes this one, so root tasks other than `spotlessApply` do not reach it
115
118
-**`sentry-bom`** - Bill of Materials for dependency management
or simply open the project in Android Studio and run the `sentry-samples-android` configuration.
19
+
or open `sentry-samples/sentry-samples-android` in Android Studio (not the repository root) and run
20
+
the `sentry-samples-android` configuration. The SDK sources come along through the included build.
15
21
16
22
You can also apply the [Sentry Android Gradle Plugin](https://github.com/getsentry/sentry-android-gradle-plugin) (SAGP) when building (not applied by default):
0 commit comments