-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[hautv] Add proguard-rules to example for release #73
Open
hautvfami
wants to merge
1
commit into
saibotma:main
Choose a base branch
from
StarkVN:hautv/fix_release
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 109 additions & 0 deletions
109
jitsi_meet_wrapper/example/android/app/proguard-rules.pro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
#=== 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.** { *; } | ||
|
||
#=== Jitsi ===# | ||
# Source: https://github.com/jitsi/jitsi-meet/blob/master/android/app/proguard-rules.pro | ||
# Check above link for changes if release builds are broken again | ||
|
||
# Copyright (c) Facebook, Inc. and its affiliates. | ||
# | ||
# This source code is licensed under the MIT license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# React Native | ||
|
||
# Keep our interfaces so they can be used by other ProGuard rules. | ||
# See http://sourceforge.net/p/proguard/bugs/466/ | ||
-keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip | ||
-keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters | ||
-keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip | ||
|
||
# Do not strip any method/class that is annotated with @DoNotStrip | ||
-keep @com.facebook.proguard.annotations.DoNotStrip class * | ||
-keep @com.facebook.common.internal.DoNotStrip class * | ||
-keepclassmembers class * { | ||
@com.facebook.proguard.annotations.DoNotStrip *; | ||
@com.facebook.common.internal.DoNotStrip *; | ||
} | ||
|
||
-keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { | ||
void set*(***); | ||
*** get*(); | ||
} | ||
|
||
-keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } | ||
-keep class * extends com.facebook.react.bridge.NativeModule { *; } | ||
-keepclassmembers,includedescriptorclasses class * { native <methods>; } | ||
-keepclassmembers class * { @com.facebook.react.uimanager.UIProp <fields>; } | ||
-keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp <methods>; } | ||
-keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup <methods>; } | ||
|
||
-dontwarn com.facebook.react.** | ||
-keep,includedescriptorclasses class com.facebook.react.bridge.** { *; } | ||
|
||
# okhttp | ||
|
||
-keepattributes Signature | ||
-keepattributes *Annotation* | ||
-keep class okhttp3.** { *; } | ||
-keep interface okhttp3.** { *; } | ||
-dontwarn okhttp3.** | ||
|
||
# okio | ||
|
||
-keep class sun.misc.Unsafe { *; } | ||
-dontwarn java.nio.file.* | ||
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement | ||
-keep class okio.** { *; } | ||
-dontwarn okio.** | ||
|
||
# WebRTC | ||
|
||
-keep class org.webrtc.** { *; } | ||
-dontwarn org.chromium.build.BuildHooksAndroid | ||
|
||
# Jisti Meet SDK | ||
|
||
-keep class org.jitsi.meet.** { *; } | ||
-keep class org.jitsi.meet.sdk.** { *; } | ||
|
||
# We added the following when we switched minifyEnabled on. Probably because we | ||
# ran the app and hit problems... | ||
|
||
-keep class com.facebook.react.bridge.CatalystInstanceImpl { *; } | ||
-keep class com.facebook.react.bridge.ExecutorToken { *; } | ||
-keep class com.facebook.react.bridge.JavaScriptExecutor { *; } | ||
-keep class com.facebook.react.bridge.ModuleRegistryHolder { *; } | ||
-keep class com.facebook.react.bridge.ReadableType { *; } | ||
-keep class com.facebook.react.bridge.queue.NativeRunnable { *; } | ||
-keep class com.facebook.react.devsupport.** { *; } | ||
|
||
-dontwarn com.facebook.react.devsupport.** | ||
-dontwarn com.google.appengine.** | ||
-dontwarn com.squareup.okhttp.** | ||
-dontwarn javax.servlet.** | ||
|
||
# ^^^ We added the above when we switched minifyEnabled on. | ||
|
||
# Rule to avoid build errors related to SVGs. | ||
-keep public class com.horcrux.svg.** {*;} | ||
|
||
# Hermes | ||
-keep class com.facebook.hermes.unicode.** { *; } | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this required? I added the proguard files to the example in e7c47ad and it also works without this.