Skip to content

Crashes when minify/proguard/r8 is enabled #30

@vitorhugods

Description

@vitorhugods

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 { *; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions