Skip to content

chore(samples-android): Add optional SAGP build mode#5538

Open
0xadam-brown wants to merge 1 commit into
mainfrom
chore/use-sagp-with-sample-android-app
Open

chore(samples-android): Add optional SAGP build mode#5538
0xadam-brown wants to merge 1 commit into
mainfrom
chore/use-sagp-with-sample-android-app

Conversation

@0xadam-brown

@0xadam-brown 0xadam-brown commented Jun 12, 2026

Copy link
Copy Markdown
Member

📜 Description

Adds an optional useSagp flag to Android sample app builds that, when true, applies the Sentry Android Gradle Plugin.

Defaults to false, which matches existing build behavior. (Flag omitted == false)

./gradlew :sentry-samples:sentry-samples-android:installDebug -PuseSagp=true

See the new README for more details.

💡 Motivation and Context

Lets us verify SAGP functionality against our Android sample app demos (e.g., auto-instrumentation of SQLite queries, etc.).

💚 How did you test it?

Manually.

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

  • Use mavenLocal SAGP artifacts in preference to libs.versions.toml (#5539)

@sentry

sentry Bot commented Jun 12, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.43.2 (1) release

⚙️ sentry-android Build Distribution Settings

Adds an optional useSagp flag to Android sample app builds that, when true, applies the Sentry Android Gradle Plugin. (Defaults to false, which matches existing build behavior.)

```
./gradlew :sentry-samples:sentry-samples-android:installDebug -PuseSagp=true
```

See the Android sample app README for more details.
@0xadam-brown 0xadam-brown force-pushed the chore/use-sagp-with-sample-android-app branch from 4a66736 to 2994300 Compare June 12, 2026 08:47
@0xadam-brown 0xadam-brown marked this pull request as ready for review June 12, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant