diff --git a/android/consumer-proguard-rules.txt b/android/consumer-proguard-rules.txt index c56895f..f1897d8 100644 --- a/android/consumer-proguard-rules.txt +++ b/android/consumer-proguard-rules.txt @@ -17,3 +17,22 @@ -keepclassmembernames class kotlinx.** { volatile ; } + +## OkHttp + +# JSR 305 annotations are for embedding nullability information. +-dontwarn javax.annotation.** + +# A resource is loaded with a relative path so the package of this class must be preserved. +-keeppackagenames okhttp3.internal.publicsuffix.* +-adaptresourcefilenames okhttp3/internal/publicsuffix/PublicSuffixDatabase.gz + +# Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java. +-dontwarn org.codehaus.mojo.animal_sniffer.* + +# OkHttp platform used only on JVM and when Conscrypt and other security providers are available. +-dontwarn okhttp3.internal.platform.** +-dontwarn org.conscrypt.** +-dontwarn org.bouncycastle.** +-dontwarn org.openjsse.** + diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index eab7705..773ce7f 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -37,7 +37,7 @@ android { applicationId "net.sourceforge.simcpux" // You can update the following values to match your application needs. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. - minSdkVersion 19 + minSdkVersion flutter.minSdkVersion targetSdkVersion flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() versionName flutterVersionName @@ -48,6 +48,7 @@ android { // TODO: Add your own signing config for the release build. // Signing with the debug keys for now, so `flutter run --release` works. signingConfig signingConfigs.debug + minifyEnabled true } debug {