You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Add com.mapbox.mapboxsdk:mapbox-android-sdk:6.5.0 dependency to an Android project.
Build a release version of the app with ProGuard turned on.
Expected behavior
App compiles and APKs are generated.
Actual behavior
Build fails in ProGuard due to a transitive dependency on AutoValue that is missing on the consumer ProGuard rules leading to the following warnings that stop the build:
Warning: com.mapbox.geojson.BoundingBox: can't find referenced class com.google.auto.value.AutoValue
Warning: com.mapbox.geojson.Feature: can't find referenced class com.google.auto.value.AutoValue
Warning: com.mapbox.geojson.FeatureCollection: can't find referenced class com.google.auto.value.AutoValue
Warning: com.mapbox.geojson.GeometryCollection: can't find referenced class com.google.auto.value.AutoValue
Warning: com.mapbox.geojson.LineString: can't find referenced class com.google.auto.value.AutoValue
Warning: com.mapbox.geojson.MultiLineString: can't find referenced class com.google.auto.value.AutoValue
Warning: com.mapbox.geojson.MultiPoint: can't find referenced class com.google.auto.value.AutoValue
Warning: com.mapbox.geojson.MultiPolygon: can't find referenced class com.google.auto.value.AutoValue
Warning: com.mapbox.geojson.Point: can't find referenced class com.google.auto.value.AutoValue
Warning: com.mapbox.geojson.Polygon: can't find referenced class com.google.auto.value.AutoValue
Warning: com.mapbox.turf.models.LineIntersectsResult: can't find referenced class com.google.auto.value.AutoValue
Warning: com.mapbox.turf.models.LineIntersectsResult$Builder: can't find referenced class com.google.auto.value.AutoValue$Builder
Warning: com.mapbox.turf.models.LineIntersectsResult$Builder: can't find referenced class com.google.auto.value.AutoValue
Warning: com.mapbox.turf.models.LineIntersectsResult$Builder: can't find referenced class com.google.auto.value.AutoValue$Builder
# --- AutoValue ---
# AutoValue annotations are retained but dependency is compileOnly.
-dontwarn com.google.auto.value.**
This should be added to the consumer ProGuard rules instead so apps depending on the Mapbox SDK do not need to manually add it even if they are not using AutoValue.
Steps to reproduce
com.mapbox.mapboxsdk:mapbox-android-sdk:6.5.0
dependency to an Android project.Expected behavior
App compiles and APKs are generated.
Actual behavior
Build fails in ProGuard due to a transitive dependency on AutoValue that is missing on the consumer ProGuard rules leading to the following warnings that stop the build:
This can be fixed by adding the related rule that is present on demos (https://github.com/mapbox/mapbox-android-demo/blob/master/MapboxAndroidDemo/proguard-rules.pro):
This should be added to the consumer ProGuard rules instead so apps depending on the Mapbox SDK do not need to manually add it even if they are not using AutoValue.
Configuration
Android versions: N/A
Device models: N/A
Mapbox SDK versions: 6.5.0
The text was updated successfully, but these errors were encountered: