Skip to content

fix(🤖): ship consumer proguard rules - #4033

Open
bigcupcoffee wants to merge 4 commits into
Shopify:mainfrom
bigcupcoffee:main
Open

fix(🤖): ship consumer proguard rules#4033
bigcupcoffee wants to merge 4 commits into
Shopify:mainfrom
bigcupcoffee:main

Conversation

@bigcupcoffee

Copy link
Copy Markdown

Shipping consumer proguard rules applies them automatically, not requiring addition of those rules in the app consuming the library

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR makes React Native Skia ship its consumer Proguard rules as part of the Android library artifact, so app consumers no longer need to manually copy keep rules into their own proguard-rules.pro.

Changes:

  • Add an Android library consumer Proguard rule to keep com.shopify.reactnative.skia.** classes.
  • Configure the Android library module to publish/apply that rule automatically via consumerProguardFiles.
  • Remove the now-unnecessary “Proguard” setup step from the installation docs.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/skia/android/proguard-rules.pro Adds the consumer Proguard keep rule for Skia classes.
packages/skia/android/build.gradle Registers the consumer Proguard rules file for the library artifact.
apps/docs/docs/getting-started/installation.md Removes manual Proguard configuration instructions that are now automated.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@wcandillon wcandillon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

That's great thank you. Can you please sign the CLA?

The `files` whitelist enumerates the Android files individually, so
`android/proguard-rules.pro` was excluded from the published tarball
while build.gradle referenced it via consumerProguardFiles.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@bigcupcoffee

Copy link
Copy Markdown
Author

Hey, I'd rather not, feel free to close & commit it under your name 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants