Repository navigation
build: write native debug symbols for Play Console on release builds - #1686
Conversation
debugSymbolLevel SYMBOL_TABLE makes AGP write native-debug-symbols.zip from the prebuilt libraries before they are stripped, so native crashes in Android vitals show function names. The Kotlin SDK libraries carry only a symbol table (no DWARF), so FULL would add nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 21 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
✅ Final review complete — no blockers (commit e4cb069) · triage: low |
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — Phase 1 + Phase 2
The exact head e4cb069 adds only release-scoped native symbol extraction, with no confirmed actionable defects. The existing APK upload lane remains compatible with generating the archive and uploading it manually; automation or an additional warning is not necessary for that workflow to function. Validation was static only; current build and check jobs pass, and the automated review check remains pending.
Review provenance
Source: reviewer 1: glm-5.3-flash (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.1-sol (agent: phase2-reviewer, role: general); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)
- Triage:
lowbygpt-6.1-sol(effort low) — The change is a small, contained release-build configuration update that enables native symbol artifact generation and is straightforward to verify. - Phase 1 reviewers:
glm-5.3-flash— general (completed, effort high); agentphase1-reviewer - Phase 1 model:
glm-5.3-flash— zai quota: 5h 99% left, weekly 29% left; passed overgemini-3.8-flash-high(antigravity quota lookup failed) - Fresh verifier:
gpt-6.1-sol— final-verifier; agentsol-verifier - Phase 2 reviewers:
gpt-6.1-sol— general (completed, effort medium); agentphase2-reviewer
|
Status note, ahead of a decision on this PR: Play Console: the 12.0.2 app bundle ( Firebase: this change doesn't help Firebase either.
Native crash reports in Crashlytics would need a separate change:
The SDK's Holding this PR open for now. It may close in favour of the Crashlytics NDK change. 🤖 Generated with Claude Code |
QA ✅ PASS — run 50, build 12000301 (12.0.3-qa01)Verified from the build output rather than on a device, because this PR changes nothing a device can observe. Commit under test: What the build produced
Reading the arm64 one with
One thing it does not fixNeither file carries a Build provenanceBuild: The SDK pin does not move — int36, the same pin 12.0.2 shipped with, and checked rather than assumed: APK: versionCode Run: QA run 50, testnet, 2026-11-19. Five Android 16 devices plus one at API 29. Unit tests on the merged tree: 5,007 passing, 0 failures. |
QA run 52 — correction to what I told you in run 50: on int42 this PR now produces nothingIn run 50 I reported that On builds 12000303 and 12000304 (Kotlin SDK int42, dashj-platform 5.1.0-dev.3): The task has nothing to do because both native libraries now arrive pre-stripped. In This is not a fault in this PR. The PR still does exactly what it says; there is simply no symbol table left for it to package. The change is upstream, in how the SDK artifacts are built. The consequence is worth stating plainly: Play Console receives no native-crash symbols for this SDK, so a crash inside the JNI or dpp layers cannot be symbolicated from a release build — which is the wall D-41S4-01 hit on a real mainnet abort. Nothing to do here unless you want to chase it upstream; filed as context so the earlier comment is not read as still current. How this was testedBuilds. Devices. Android 16 (API 36) emulators, testnet, release-signed builds. Platform protocol 14. Unit tests on 12000304: 4,779 tests across 330 classes, 0 failures, 0 errors, 1 skipped. Both SDK native libraries are byte-identical in size across the two builds, so differences between them come from the PRs and not from the SDK underneath. Full report: https://github.com/HashEngineering/dash-wallet-qa-report — run 52. |
QA run 56 — the configuration is right; it produces nothing on this buildMerged cleanly ( But no symbols come out of it: and no This isn't new, and it isn't the PR's faultRun 52 recorded exactly the same Your own comment in the diff anticipates part of this — "The SDK libraries carry no DWARF, so FULL would add nothing over SYMBOL_TABLE" — but with the current libraries even What that means practicallyNative crashes in Play Console's Android vitals will still arrive unsymbolicated, so the PR's stated benefit isn't being realised on builds from this line. Whether that's worth chasing depends on whether the SDK can ship libraries with symbol tables intact — which is an SDK-side question, not one this PR can answer. Nothing here argues against merging: the configuration is correct and costs nothing. QA run 56, 2026-11-30. Build 12000305 (12.0.3-qa05), branch |
…12.0.3 Co-Authored-By: Claude Fable 5.2 <[email protected]>
What
wallet/build.gradle, release build type:ndk { debugSymbolLevel 'SYMBOL_TABLE' }.Why
Release APKs ship with stripped native libraries, so native crashes and ANRs in Play Console (Android vitals) show no function names. With this setting AGP writes
wallet/build/outputs/native-debug-symbols/<variant>/native-debug-symbols.zipfrom the libraries before they are stripped, and that zip can be uploaded to Play Console.The Kotlin SDK libraries contain only a symbol table (
.symtab, no DWARF), so stack traces get function names but not line numbers.FULLwould add nothing overSYMBOL_TABLE.Uploading
The Fastlane lane uploads an APK through
supply, which sends the APK andmapping.txtonly. Until the lane is extended, upload the zip by hand: Play Console → App bundle explorer → the version → Downloads → Native debug symbols. An app bundle would include it automatically.Native crashes do not reach Crashlytics either way: the app uses
firebase-crashlytics-ktx, notfirebase-crashlytics-ndk.Needs the pinned NDK
AGP extracts the symbols with the NDK named by
android.ndkVersion. On a host without that NDK it writes no zip and only logs[CXX1101]. #1685 moves the pin to NDK 29.0.14206865.Verification
With NDK 29.0.14206865,
:wallet:mergeProdReleaseNativeDebugMetadatawritesnative-debug-symbols.zip(54.6 MB) containingarm64-v8a/libdash_sdk_jni.so.symandx86_64/libdash_sdk_jni.so.sym. The other prebuilt libraries carry no symbols.🤖 Generated with Claude Code