Skip to content

fix(android): ship R8 rules for the Directions models' AutoValue annotations - #21

Merged
mfazekas merged 1 commit into
mainfrom
fix/android-r8-autovalue
Oct 28, 2026
Merged

mfazekas merged 1 commit into
mainfrom
fix/android-r8-autovalue

Conversation

@mfazekas

Copy link
Copy Markdown
Contributor

Android release builds with R8 enabled (the Expo default) fail in minifyReleaseWithR8 with Missing class com.google.auto.value.AutoValue / AutoValue$Builder, referenced from com.mapbox.api.directions.v5.models.*. Those mapbox-java jars keep AutoValue's compile-only annotations and neither they nor the Navigation SDK AARs ship a -dontwarn for them, so the library now adds one as a consumer ProGuard rule and apps get it automatically.

CI now also builds the Expo example's release variant so this can't regress.

…ctions models

Expo enables R8 for release builds, which failed with Missing class com.google.auto.value.AutoValue.
Also build the Expo example's release variant in CI.
@mfazekas
mfazekas marked this pull request as ready for review October 27, 2026 21:30
@mfazekas
mfazekas merged commit 4bf84eb into main Oct 28, 2026
6 checks passed
@mfazekas mfazekas mentioned this pull request Oct 28, 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.

1 participant