diff --git a/android/app/build.gradle b/android/app/build.gradle index 1e54d41..6eda15b 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -71,6 +71,10 @@ android { buildTypes { release { signingConfig signingConfigs.release + + useProguard true + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } } @@ -85,6 +89,10 @@ android { applicationId "org.communiquons.beta" } } + + packagingOptions { + exclude 'META-INF/proguard/androidx-annotations.pro' + } } flutter { diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro new file mode 100644 index 0000000..1b34b83 --- /dev/null +++ b/android/app/proguard-rules.pro @@ -0,0 +1,3 @@ +## Flutter WebRTC +-keep class com.cloudwebrtc.webrtc.** { *; } +-keep class org.webrtc.** { *; } \ No newline at end of file