Skip to content

fix: add android r8 rules - #24

Merged
ovitrif merged 2 commits into
masterfrom
feat/r8-compat
Aug 26, 2026
Merged

fix: add android r8 rules#24
ovitrif merged 2 commits into
masterfrom
feat/r8-compat

Conversation

@ovitrif

@ovitrif ovitrif commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Fixes #23

The Android AAR now ships targeted R8 consumer keep rules for the UniFFI/JNA FFI surface.

Consuming apps can enable R8 full mode without extra keep rules for this library.

Description

  • Packages bindings/android/consumer-rules.pro into the AAR as proguard.txt.
  • Keeps JNA Structure fields and constructors, Callback methods, and UniffiLib / IntegrityCheckingUniffiLib native method names in com.synonym.vssclient.
  • Fails bundleReleaseAar when those consumer keep rules are missing or empty.

Preview

N/A — Android library packaging only.

QA Notes

Local verification: ./gradlew :validateConsumerKeepRules from bindings/android.

This repo does not keep generated Android jniLibs in git. The AAR proguard.txt check is in Gradle and runs on release builds that have those artifacts.

@ovitrif
ovitrif marked this pull request as ready for review August 26, 2026 17:06
@ovitrif
ovitrif merged commit d4ae2da into master Aug 26, 2026
@ovitrif
ovitrif deleted the feat/r8-compat branch August 26, 2026 17:07
@ovitrif ovitrif changed the title fix: ship Android R8 consumer keep rules fix: add android r8 rules Aug 26, 2026
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.

add android r8 consumer keep rules

1 participant