-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
* feat: app minification * fix: remove allowaccessmodification rule * fix: minifyEnabled for android * fix: remove keepattributes and add renamesourcefileattribute for ofuscation * fix: add ios minification flags * fix: add ios minification flags * fix: remove DEVELOPMENT_TEAM flag * fix: remove DEVELOPMENT_TEAM flag * fix: add NX bit flags * feat: update .gitignore * feat: add SYMBOLS STRIPPED flags * feat: add RUNPATH, RPATH, RELRO flags * fix: add missing PIE flag * fix: add missing FORTIFY flag
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,52 @@ | ||
# Add project specific ProGuard rules here. | ||
# Add project-specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
# Basic ProGuard rules for optimization and minification | ||
-optimizationpasses 5 | ||
-dontpreverify | ||
-dontusemixedcaseclassnames | ||
-dontskipnonpubliclibraryclasses | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
-renamesourcefileattribute SourceFile # Uncomment to hide original source file names for extra obfuscation | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile | ||
# Rules for WebView with JavaScript (if your app uses WebView) | ||
-keepclassmembers class * { | ||
@android.webkit.JavascriptInterface <methods>; | ||
} | ||
-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
public *; | ||
} | ||
-dontwarn android.webkit.** | ||
|
||
# Rules for Capacitor and its plugins | ||
-keep class com.getcapacitor.** { *; } | ||
-keep class org.apache.cordova.** { *; } | ||
-dontwarn com.getcapacitor.** | ||
-dontwarn org.apache.cordova.** | ||
|
||
# Rules for specific dependencies from your package.json | ||
-keep class androidx.** { *; } | ||
-dontwarn androidx.** | ||
-keep class com.google.android.material.** { *; } | ||
-dontwarn com.google.android.material.** | ||
|
||
# Rules for Capacitor plugins used in your project | ||
-keep class com.aparajita.capacitor.biometricauth.** { *; } | ||
-dontwarn com.aparajita.capacitor.biometricauth.** | ||
-keep class com.capacitorjs.plugins.** { *; } | ||
-dontwarn com.capacitorjs.plugins.** | ||
-keep class io.evva.capacitor.securestorage.** { *; } | ||
-dontwarn io.evva.capacitor.securestorage.** | ||
|
||
# Suppress warnings from common libraries | ||
-dontwarn com.google.** | ||
-dontwarn org.chromium.** | ||
|
||
# Keep annotated classes (useful for libraries like SQLite or MLKit) | ||
-keep class * { | ||
@androidx.annotation.Keep *; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.