Skip to content

Commit 734dcb6

Browse files
author
jonatansalas
committed
Enable minify by using proguard-rules
Fix issue in proguard config related to this bug -> facebook/react-native#11891
1 parent e3ea317 commit 734dcb6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

android/app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def enableSeparateBuildPerCPUArchitecture = false
8080
/**
8181
* Run Proguard to shrink the Java bytecode in release builds.
8282
*/
83-
def enableProguardInReleaseBuilds = false
83+
def enableProguardInReleaseBuilds = true
8484

8585
android {
8686
compileSdkVersion 25

android/app/proguard-rules.pro

+2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050

5151
-dontwarn com.facebook.react.**
5252

53+
-dontwarn com.facebook.fbui.textlayoutbuilder.proxy.StaticLayoutProxy
54+
5355
# okhttp
5456

5557
-keepattributes Signature

0 commit comments

Comments
 (0)