Test the `sentry wizard` Android port
維護者通常 1 天內回覆
@antonis 已經在處理了。
開始於 2026年11月27日。
評估
這個 Issue 還沒有評估資料。
描述
The wizard is being ported into the new CLI as sentry wizard (getsentry/toolkit#2528 for Android and Flutter). sentry init stays as a separate command until the two are merged after v4 (toolkit#2510).
This issue tests the Android port. It confirms the gaps already identified, looks for new ones, and plans the follow-ups. Fixing the gaps is not part of this issue. The fixes go into the follow-ups it produces. Same approach as RN-871 for React Native; the earlier action plan is in JAVA-845.
Gaps identified so far
From a code review of the #2528 branch (packages/cli/src/lib/wizard/android/). None of these have been confirmed by running the port yet.
- Only a Logs prompt. Session Replay, User Feedback and profiling are never offered (wizard#829 for profiling).
- A test exception is left in the main Activity, inside
addOnGlobalLayoutListener(templates.ts:55,66), so it fires on every layout pass, not once. - Release builds without a token may fail.
includeSourceContext = trueis still written. In RN-868,sentryUploadSourceBundleReleasefailed without a valid token, even withSENTRY_DISABLE_AUTO_UPLOAD=true. - No version catalog support. The plugin is written as
id("io.sentry.android.gradle") version "…"(gradle.ts:105), never inlibs.versions.toml. - Defaults: the deprecated
io.sentry.send-default-piikey instead of theio.sentry.data-collection.*keys, andtraces.sample-rate = 1.0with no note to lower it for production. - No non-interactive mode. The flow prompts for the module and for Logs.
- The DSN can come from a disabled key: when no key is active, it falls back to
keys[0]. Sentry silently drops events sent with a disabled key (WIZARD-65). - The upload setup is still on CLI 3.x. The port writes
sentry.propertiesfor the Sentry Android Gradle Plugin, which uploads throughsentry-cli, but CLI v4 reads only.sentryclirc. That's on the SAGP side.
Fixed in the port: it uses the first active DSN key.
Not checked yet:
sentry.propertiesis git-ignored. The config setsgitignore: true, but in getsentry/sentry-react-native#7064 the legacy wizard failed that step at runtime.- The false "Could not add Sentry Gradle plugin" warning on
build.gradle.kts, and the broken<meta-data>indentation (wizard#994, #714). - A main Activity in a library module (wizard#444).
- The failed step is reported (wizard#839, #834).
What must keep working
From the legacy Android wizard, 9.1.0:
- Find the app's
build.gradle/build.gradle.kts, and let the user pick one when there are several. - Add the Sentry Android Gradle Plugin at the latest version, with a
sentry {}block (org, project,includeSourceContext). - Add the manifest
<meta-data>for the DSN, tracing, screenshots and view hierarchy, plus Logs if chosen. - Write the token to
sentry.properties.
Done when
- The #2528 branch (or the merged port) has been run on fresh Kotlin (Kotlin DSL, version catalog) and Java (Groovy) apps, with Debug and Release builds on an emulator.
- Each identified gap is confirmed or ruled out by that run.
- Each "not checked yet" item and each "must keep working" item is marked pass or fail. Each mark says how it was checked: a file check, a build, or an event confirmed in Sentry.
- Any new gaps found in the run are added to the list above.
- Every confirmed gap has a follow-up with an owner. Gaps in the port go on the port PR, or become toolkit issues once it has merged. Gaps on the Android SDK or SAGP side become issues in this project.
- 主要語言
- Kotlin
- 星號
- 1.4k
- 分支
- 483
- 平均合併
- 2 天 54 分鐘
- 30 天內合併 PR
- 207
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
getsentry/sentry-java 的其他 Issue
-
Narrow and clean up Android consumer keep rules可能已有人在做 @runningcode 於 3 天前認領。 未關閉Android Platform: Java
getsentry/sentry-java#6771 · 1 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Android Bug Platform: Java Waiting for: Product Owner
難度 4/5 3-5 天 新手友好度 45/100
getsentry/sentry-java#6758 · 4 則留言 ·
維護者通常 1 天內回覆
-
Android Bug Platform: Java Replays
難度 3/5 1-2 天 新手友好度 62/100
getsentry/sentry-java#6741 · 1 則留言 ·
維護者通常 1 天內回覆
-
Android Bug Platform: Java Replays
難度 3/5 1-2 天 新手友好度 50/100
getsentry/sentry-java#6740 · 1 則留言 ·
維護者通常 1 天內回覆
-
Android Feature Platform: Java Waiting for: Product Owner
難度 3/5 1-2 天 新手友好度 45/100
getsentry/sentry-java#6731 · 1 則留言 ·
維護者通常 1 天內回覆
查看 getsentry/sentry-java 的全部 Issue
相似的 Issue
-
enhancement
難度 2/5 1-3 小時 新手友好度 62/100
IacobIonut01/ReFra#1515 · 1 則留言 ·
維護者通常 4 天內回覆
-
難度 2/5 1-3 小時 新手友好度 75/100
openwatersio/slackwater-android#162 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 半天 新手友好度 72/100
developmentwithyash/yaan#184 ·
維護者通常 1 天內回覆
-
analytics
難度 2/5 1-3 小時 新手友好度 62/100
-
🐛 Type:Bug 📏 Size: S 🔧 State:In Progress 🔹 Priority: P2 - Medium
難度 2/5 1-3 小時 新手友好度 70/100
yeliqin666/xjtu-toolbox-android#623 · 1 則留言 ·