Skip to content

Comments

Add keep.xml to preserve AboutLibraries resource in release builds#1022

Merged
gregmarra merged 1 commit intomainfrom
add-aboutlibraries-keep-xml
Feb 11, 2026
Merged

Add keep.xml to preserve AboutLibraries resource in release builds#1022
gregmarra merged 1 commit intomainfrom
add-aboutlibraries-keep-xml

Conversation

@gregmarra
Copy link
Contributor

Summary

  • Adds a keep.xml resource rule so R8 doesn't strip the @raw/aboutlibraries resource in release builds
  • The AboutLibraries library references this resource at runtime, but without a static reference R8 removes it, causing the open-source licenses screen to be empty

Test plan

  • Build release APK and verify the "About" / open-source licenses screen shows library entries

🤖 Generated with Claude Code

The aboutlibraries raw resource is referenced at runtime but not
statically, so R8 strips it in release builds. This keep rule
preserves it.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gregmarra gregmarra merged commit 005da92 into main Feb 11, 2026
5 checks passed
@gregmarra gregmarra deleted the add-aboutlibraries-keep-xml branch February 11, 2026 16:05
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.

1 participant