Phase 1 APK size: R8, fonts, dead assets (−8.30 MB universal) - #6145
Open
paullinator wants to merge 4 commits into
Open
Phase 1 APK size: R8, fonts, dead assets (−8.30 MB universal)#6145paullinator wants to merge 4 commits into
paullinator wants to merge 4 commits into
Conversation
Provide analyze-apk-size / find-unused-images scripts and the measured develop-vs-Phase1 baselines for reproducible deltas. Co-authored-by: Cursor <cursoragent@cursor.com>
Turn on minify/shrinkResources with keep rules, trim shipped locales, and drop unused FontAwesome6 vector-icon fonts. Co-authored-by: Cursor <cursoragent@cursor.com>
Delete sidenav/tabbar/transactions orphans and drop the unused walletListSlideTutorialImage theme property.
The app uses posthog-react-native; the web posthog-js package had no src/ imports.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
shrinkResources, localeresourceConfigurations, and FontAwesome6 vector-icon filterposthog-js; add APK size analysis harness + measured reportMeasured (authoritative):
origin/developuniversal APK 110.88 MB → Phase 1 102.59 MB (−8.30 MB) viabundleRelease→ bundletool--mode=universal.Earlier
assembleReleasecomparisons overstated savings (−18.6 MB) because DEX is store-uncompressed there but Deflate-compressed in the production universal path.Commits (independently revertible)
posthog-jsTest plan
bundleRelease+ bundletool universal APK builds for develop and Phase 1analyze-apk-size --comparedevelop vs Phase 1:uploadSentryProguardMappingsReleasefor local placeholder Sentry URLSee docs/apkSizeReport.md.
Made with Cursor