From 675d1b85886b02710120a83206527338d715284b Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 23 Apr 2020 17:59:11 +0200 Subject: [PATCH] Fix a issue on release builds --- android/app/build.gradle | 8 ++++++++ android/app/proguard-rules.pro | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 android/app/proguard-rules.pro 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