Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes when minify/proguard/r8 is enabled #30

Open
vitorhugods opened this issue Aug 2, 2019 · 0 comments
Open

Crashes when minify/proguard/r8 is enabled #30

vitorhugods opened this issue Aug 2, 2019 · 0 comments

Comments

@vitorhugods
Copy link

By using the ObjectAnimator when animating map markers, the variable name position gets obfuscated for release, crashing the app.

    private void animateMarkerToLocation(@NonNull final Marker marker, @NonNull LatLng targetLocation,
                                         final boolean removeAfter) {
        ObjectAnimator objectAnimator = ObjectAnimator.ofObject(marker, "position",
                new LatLngTypeEvaluator(), targetLocation);
        objectAnimator.setInterpolator(new FastOutSlowInInterpolator());

I don't know if just adding to the README is enough, or maybe preventing this by embedding proguard rules in the project.

-keep class com.google.android.gms.maps.model.Marker { *; }
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

No branches or pull requests

1 participant