react-native-proguard-auto 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/readme.md +13 -16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-proguard-auto",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Automatically generate ProGuard rules for React Native native modules",
5
5
  "type": "module",
6
6
  "bin": {
package/readme.md CHANGED
@@ -46,9 +46,9 @@ The tool will analyze your project dependencies and generate **recommended ProGu
46
46
 
47
47
  ### 📸 Without Proguard Rules
48
48
 
49
- Without proper ProGuard rules, release builds may fail or crash due to missing classes during code shrinking.
49
+ Without proper ProGuard rules
50
50
 
51
- ![Without Proguard Rules](/images/before-proguard.png)
51
+ ![Without Proguard Rules](images/before-proguard.png)
52
52
 
53
53
  ---
54
54
 
@@ -56,40 +56,37 @@ Without proper ProGuard rules, release builds may fail or crash due to missing c
56
56
 
57
57
  The tool automatically generates the required ProGuard rules to help ensure stable release builds.
58
58
 
59
- ![After Using react-native-proguard-auto](/images/after-proguard.png)
59
+ ![After Using react-native-proguard-auto](images/after-proguard.png)
60
60
 
61
61
 
62
62
  ---
63
63
 
64
+ ### Mandatory Step for Enabling R8 in build.gradle
65
+
66
+ minifyEnabled true
67
+
64
68
  ## 📄 Example Output
65
69
 
66
70
  Example generated rules:
67
71
 
68
72
  -keep class com.reactnativecommunity.** { *; }
73
+
69
74
  -keep class com.google.firebase.** { *; }
75
+
70
76
  -keep class com.google.android.gms.** { *; }
71
77
 
78
+
72
79
  You can copy these rules into your Android ProGuard configuration file.
73
80
 
74
81
  ---
75
82
 
76
- ## 📂 Where to Add the Rules
83
+ ## 📂 Where to find the generated Proguard Rules
77
84
 
78
- Add the generated rules to:
79
-
80
- android/app/proguard-rules.pro
81
-
82
- Example project structure:
83
-
84
- YourProject
85
- ├── android
86
- │ └── app
87
- │ └── proguard-rules.pro
88
- ├── node_modules
89
- ├── package.json
85
+ Proguard rules will be added android/app/proguard-rules.pro
90
86
 
91
87
  ---
92
88
 
89
+
93
90
  ## 🏗 Build Release APK / AAB
94
91
 
95
92
  After adding the rules, build your release version.