Repository navigation
build: use NDK 29.0.14206865 to strip prebuilt native libraries - #1685
Conversation
The wallet has no native code of its own; ndkVersion only selects the llvm-strip AGP runs on the prebuilt .so files. 21.3.6528147 (pinned in 2021) is missing on hosts that only have the NDK the Kotlin SDK is built with, and AGP then packages the libraries unstripped. NDK 29's strip gives byte-identical output to 21.3's for the SDK library. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit fc8e3d2)
|
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 26 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 413524e) · triage: low |
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — Phase 1 + Phase 2
Verified the exact head and review range: the only change updates wallet/build.gradle's NDK pin from 21.3.6528147 to 29.0.14206865. Static inspection confirms prebuilt native dependencies and no native compilation configuration; no actionable in-scope defects were found. Current CI build and check jobs pass, with only the automated review pending; no local builds or tests were run.
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 one-line NDK version update is a small, contained build change that affects native library stripping 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 100% 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
Out-of-scope follow-up suggestions (1)
These are valid observations, but they are outside this PR's scope and should be handled in separate issues or author/maintainer-requested PRs rather than blocking this review.
- Generate and upload native symbols for release crash diagnostics — The release build type does not configure debugSymbolLevel, and the Play upload lane supplies only the APK and Java mapping file. A separate native-symbol artifact would preserve access to stripped, non-exported function names when diagnosing native crashes. This is an existing release-observability gap, not a blocker for updating the stripping tool. The Crashlytics plugin is conditionally applied through gradle/google-services.gradle, contrary to the preliminary review's claim, but no native-symbol upload configuration was found.
- Follow-up: Create a follow-up PR to generate release native-debug-symbols.zip and upload it to Play Console. The locally available commit e4cb069 provides the debugSymbolLevel SYMBOL_TABLE configuration as a starting point; include the corresponding upload process.
What
wallet/build.gradle:android.ndkVersion21.3.6528147→29.0.14206865.Why
The wallet has no native code of its own (no
externalNativeBuild, CMake or ndk-build). Every.sois prebuilt: the Kotlin SDK AAR, dashj-x11 and others. The only thingndkVersionstill controls is which NDK'sllvm-stripAGP runs on those libraries at packaging time. The 21.3 pin dates from 2021 (1764a95), when the wallet still had JNI sources.AGP requires the exact pinned NDK. A host that only has NDK 29, the version the Kotlin SDK is built with, silently skips stripping and packages the libraries with their symbol tables. On such a host the prod APK is about 44 MB larger (12.0.1-beta: 371.1 MB, compared with 326.7 MB for the same SDK stripped with NDK 21.3). Every 12.x build made on a host without NDK 21.3 has shipped unstripped, 12.0.0-beta included.
Verification
:wallet:stripProdReleaseDebugSymbolswith NDK 29.0.14206865:lib/arm64-v8a/libdash_sdk_jni.so(Kotlin SDK 5.0.0-int32) goes from 74.6 MB to 55.7 MB with no.symtab. Its sha256f6330b973545d98f…is byte-identical to the same library stripped by NDK 21.3 in an earlier build.Also applied to
release/12.0.1-rc1(fc8e3d2).🤖 Generated with Claude Code