diff --git a/android/app/build.gradle b/android/app/build.gradle index 42faf3d4..e9354f33 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -57,12 +57,12 @@ android { compileOptions { coreLibraryDesugaringEnabled true - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_11 + targetCompatibility JavaVersion.VERSION_11 } kotlinOptions { - jvmTarget = "1.8" + jvmTarget = "11" } signingConfigs { diff --git a/android/app/proguard.txt b/android/app/proguard.txt index 8f70253a..3398061d 100644 --- a/android/app/proguard.txt +++ b/android/app/proguard.txt @@ -12,4 +12,8 @@ -keepclassmembers interface * extends android.os.IInterface { public static class *; } --keep public class * extends android.os.Binder { public static *; } \ No newline at end of file +-keep public class * extends android.os.Binder { public static *; } + +# Keep rules to prevent R8 from removing necessary classes +-dontwarn com.google.j2objc.annotations.RetainedWith +-keep class com.google.j2objc.annotations.RetainedWith { *; } \ No newline at end of file diff --git a/android/proguard.txt b/android/proguard.txt index 8f70253a..3398061d 100644 --- a/android/proguard.txt +++ b/android/proguard.txt @@ -12,4 +12,8 @@ -keepclassmembers interface * extends android.os.IInterface { public static class *; } --keep public class * extends android.os.Binder { public static *; } \ No newline at end of file +-keep public class * extends android.os.Binder { public static *; } + +# Keep rules to prevent R8 from removing necessary classes +-dontwarn com.google.j2objc.annotations.RetainedWith +-keep class com.google.j2objc.annotations.RetainedWith { *; } \ No newline at end of file