Skip to content

Build the bare Android E2E app with resource shrinking - #105

Merged
ofalvai merged 2 commits into
masterfrom
test/android-e2e-shrink-resources
Nov 3, 2026
Merged

ofalvai merged 2 commits into
masterfrom
test/android-e2e-shrink-resources

Conversation

@ofalvai

@ofalvai ofalvai commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

The bare Android E2E app builds with the React Native template defaults, which leave R8 and resource shrinking off. AGP 9 turns on the optimized resource shrinker, and it removes resources the SDK looks up by name. E2E could not see that, which is how #100 went unnoticed.

This turns on minifyEnabled and shrinkResources for the generated bare app. It adds no CI job. The existing bare Android job now tests the shrunk build. The Expo variant is unchanged.

The generated app used the React Native template defaults, which leave
R8 and resource shrinking off. AGP 9 turns on the optimized resource
shrinker, which removes resources the SDK looks up by name. E2E could
not catch that. Enable minify and shrinkResources so it does.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 3, 2026 12:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The edits target a runtime-generated RN 0.88 Gradle template not checked in, and bare Android E2E validation after #100 merges is still needed to confirm the replacements and resource retention with shrinking enabled.

No open issues 🎉

What changed in this PR

Updates the existing bare Android E2E app to exercise release builds with R8 and resource shrinking, helping detect removal of resources CodePush resolves by name. This complements the resource keep rules in #100.

Changes:

  • Enables release minification and resource shrinking in the generated bare Android app.
  • Uses the existing E2E job; Expo remains unchanged.
File Description
test/​test.mts Updates generated Gradle settings to enable minification and resource shrinking.

Review effort: Balanced

@ofalvai
ofalvai marked this pull request as ready for review November 3, 2026 12:17
@ofalvai
ofalvai merged commit dab8869 into master Nov 3, 2026
6 checks passed
@ofalvai
ofalvai deleted the test/android-e2e-shrink-resources branch November 3, 2026 13:16
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.

3 participants