Skip to content

Commit ea5b122

Browse files
committed
Fix run errors for release version.
1 parent 7a9517b commit ea5b122

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

android/app/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ android {
5151
// TODO: Add your own signing config for the release build.
5252
// Signing with the debug keys for now, so `flutter run --release` works.
5353
signingConfig signingConfigs.debug
54+
useProguard true
55+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
5456
}
5557
}
5658
packagingOptions {

android/app/proguard-rules.pro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Flutter WebRTC
2+
-keep class com.cloudwebrtc.webrtc.** { *; }
3+
-keep class org.webrtc.** { *; }

0 commit comments

Comments
 (0)