Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit ac1098f

Browse files
Add @keep to HiddenLifecycleReference so that the flutter_android_lifecycle package can access via reflection instead of compile-time references.
1 parent d0f2fb7 commit ac1098f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shell/platform/android/io/flutter/embedding/engine/plugins/lifecycle/HiddenLifecycleReference.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
package io.flutter.embedding.engine.plugins.lifecycle;
66

77
import android.arch.lifecycle.Lifecycle;
8+
import android.support.annotation.Keep;
89
import android.support.annotation.NonNull;
910

1011
/**
@@ -16,6 +17,7 @@
1617
* {@link Lifecycle} in a way that makes it easier for Flutter and the Flutter plugin ecosystem to
1718
* handle breaking changes in Lifecycle libraries.
1819
*/
20+
@Keep
1921
public class HiddenLifecycleReference {
2022
@NonNull
2123
private final Lifecycle lifecycle;

0 commit comments

Comments
 (0)