From ff089f26eb087236123a44c829e9d58d924a444d Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 27 Apr 2024 14:14:10 +0800 Subject: [PATCH] :bug: Bug fixes of webrtc --- android/app/build.gradle | 4 +++ android/app/proguard-rules.pro | 12 +++++++ android/app/src/main/AndroidManifest.xml | 14 ++++---- ios/Podfile | 2 +- ios/Podfile.lock | 43 ++++++++++++++++++++++-- ios/Runner.xcodeproj/project.pbxproj | 18 ++++++++++ macos/Podfile.lock | 35 ++++++++++++++++++- 7 files changed, 116 insertions(+), 12 deletions(-) create mode 100644 android/app/proguard-rules.pro diff --git a/android/app/build.gradle b/android/app/build.gradle index 3a92e8f..440d0ba 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -51,6 +51,10 @@ android { buildTypes { release { signingConfig signingConfigs.debug + + minifyEnabled true + shrinkResources true + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro new file mode 100644 index 0000000..f2f45c1 --- /dev/null +++ b/android/app/proguard-rules.pro @@ -0,0 +1,12 @@ +## Flutter wrapper +-keep class io.flutter.app.** { *; } +-keep class io.flutter.plugin.** { *; } +-keep class io.flutter.util.** { *; } +-keep class io.flutter.view.** { *; } +-keep class io.flutter.** { *; } +-keep class io.flutter.plugins.** { *; } +-dontwarn io.flutter.embedding.** + +## Flutter WebRTC +-keep class com.cloudwebrtc.webrtc.** { *; } +-keep class org.webrtc.** { *; } \ No newline at end of file diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index c95f437..3a9a9b0 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -15,19 +15,17 @@ - - ... - - +