Skip to content

Add consumer Proguard rules for the LCP module - #814

Draft
mickael-menu wants to merge 1 commit into
developfrom
fix-issue-204
Draft

mickael-menu wants to merge 1 commit into
developfrom
fix-issue-204

Conversation

@mickael-menu

Copy link
Copy Markdown
Member

LcpClient reaches the liblcp SDK (Lcp, DRMContext, DRMException, DRMError) exclusively through reflection, so R8/Proguard strips or renames org.readium.lcp.sdk classes in minified apps, breaking LicenseValidation. Every integrator had to rediscover and declare the keep rules manually.

The readium-lcp module now ships a consumer-rules.pro file — bundled in the AAR and applied automatically to consumer apps — keeping org.readium.lcp.sdk.**.

Fixes #204

🤖 Generated with Claude Code

LcpClient reaches the liblcp SDK (Lcp, DRMContext, DRMException,
DRMError) exclusively through reflection, so R8/Proguard strips or
renames org.readium.lcp.sdk classes in minified apps, breaking
LicenseValidation. Ship a consumer-rules.pro in readium-lcp - bundled
in the AAR and applied automatically to consumer apps - keeping
org.readium.lcp.sdk.** so integrators no longer need to declare the
rules themselves.

Fixes #204

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

Proguard minification breaks LicenseValidation

1 participant