Files
Ionic-application/android/app/proguard-rules.pro
2025-11-05 10:06:53 +05:30

75 lines
2.4 KiB
Prolog
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# =====================================
# GlobalJain - ProGuard / R8 Configuration
# =====================================
# 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
# -------------------------------------
# WebView support (uncomment if needed)
# -------------------------------------
# -keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
# }
# Preserve line numbers for crash stack traces
# -keepattributes SourceFile,LineNumberTable
# -renamesourcefileattribute SourceFile
# =====================================
# 🚀 Firebase & Google Play Services
# =====================================
-keep class com.google.firebase.** { *; }
-dontwarn com.google.firebase.**
-keep class com.google.android.gms.** { *; }
-dontwarn com.google.android.gms.**
# Keep analytics and measurement classes
-keep class com.google.android.gms.measurement.** { *; }
-keep class com.google.firebase.analytics.** { *; }
# Keep Firebase Auth, Database, and Messaging models
-keepclassmembers class * {
@com.google.firebase.database.PropertyName <fields>;
}
# =====================================
#⚙ Facebook & Google Auth SDK (from your missing_rules.txt)
# =====================================
-dontwarn com.facebook.CallbackManager$Factory
-dontwarn com.facebook.CallbackManager
-dontwarn com.facebook.FacebookCallback
-dontwarn com.facebook.login.LoginManager
-dontwarn com.facebook.login.widget.LoginButton
-dontwarn com.google.android.gms.auth.GoogleAuthException
-dontwarn com.google.android.gms.auth.GoogleAuthUtil
-dontwarn com.google.android.gms.auth.api.signin.GoogleSignIn
-dontwarn com.google.android.gms.auth.api.signin.GoogleSignInClient
# =====================================
# Ionic / Capacitor (keep core native bridge)
# =====================================
-keep class com.getcapacitor.** { *; }
-dontwarn com.getcapacitor.**
# Keep capacitor plugins (prevents R8 from stripping plugin classes)
-keep class * extends com.getcapacitor.Plugin
# =====================================
# General Safe Defaults
# =====================================
# Keep annotations
-keepattributes *Annotation*
# Keep enum values
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}