tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

proguard-rules.pro (1646B)


      1 -dontobfuscate
      2 
      3 ####################################################################################################
      4 # GeckoView built-ins
      5 ####################################################################################################
      6 
      7 -dontwarn org.mozilla.geckoview.**
      8 
      9 # Raptor now writes a *-config.yaml file to specify Gecko runtime settings (e.g. the profile dir). This
     10 # file gets deserialized into a DebugConfig object, which is why we need to keep this class
     11 # and its members.
     12 -keep class org.mozilla.gecko.util.DebugConfig { *; }
     13 
     14 ####################################################################################################
     15 # Remove debug logs from release builds
     16 ####################################################################################################
     17 -assumenosideeffects class android.util.Log {
     18    public static boolean isLoggable(java.lang.String, int);
     19    public static int v(...);
     20    public static int d(...);
     21 }
     22 
     23 ####################################################################################################
     24 # Mozilla Application Services
     25 ####################################################################################################
     26 
     27 -keep class mozilla.appservices.** { *; }
     28 
     29 # Keep code generated from Glean Metrics
     30 -keep class org.mozilla.fenix.GleanMetrics.** {  *; }
     31 
     32 # Workaround for 'already has mapping' r8 issue (https://issuetracker.google.com/issues/140851070)
     33 -keep class com.google.android.gms.common.internal.BaseGmsClient { *; }
     34 
     35 # tor-browser#43987 - Keep org.mozilla.experiments.nimbus to fix
     36 # reproducibility issue
     37 -keep class org.mozilla.experiments.nimbus.** { *; }