mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-15 18:12:54 +00:00
e46a3545ae
Revert "Bug 1863744 - Update Gradle to version 8.4" This reverts commit 829795632954148709fbe945c78d55cc62053ac8. Revert "Bug 1821005 - Apply additional keep rules for missing classes detected while running R8." This reverts commit 8f3f246cc5ff571323f56d46963d8d176bec91e3. Revert "Bug 1821005 - Set UI_INJECTION_HOST mode for lint in test." This reverts commit 6962bf0b5df57781045f68417f76527bcdf521ab. Revert "Bug 1821005 - Include sourcesJar as an input of publishing." This reverts commit 41b2a48da577787c3189eec8c8af71c35cfecbfb. Revert "Bug 1821005 - Set compileOptions for android subprojects." This reverts commit fb21df9d0a9cd585e216733dc1bf929636df20f1. Revert "Bug 1821005 - Replace deprecated project.buildDir" This reverts commit 6f880de46ec73f7e5240a0279108bbb6aeb0f63b. Revert "Bug 1821005 - Exclude generated metrics docs from detekt." This reverts commit f17d2430bf1daabeed2724312354018050f3f52a. Revert "Bug 1821005 - Exclude build in extensions versioning from detekt." This reverts commit 34144c5ad1d62e2d85492f8d32341bbcd032690b. Revert "Bug 1821005 - Add uses-feature tag for camera permission." This reverts commit 13c80944bd1756cdcaa98eef783b6a23ad12cabd. Revert "Bug 1821005 - Set nonTransitiveRClass and nonFinalResIds build flags to false." This reverts commit 219fbc19c54134ad264edc79642fa1799c6f54d6. Revert "Bug 1821005 - Apply plugin: 'kotlin-android' for UI modules." This reverts commit ddbd5e18eb9d2b33b4de4a6df48d97ec4ab42963. Revert "Bug 1821005 - Enable generation of the BuildConfig class" This reverts commit 65c2b8c63790fbd2352f3f94b99c80d81d18dae1. Revert "Bug 1821005 - Add namespace to samples-glean-library module" This reverts commit 0239233efb1cc4e896e4aa0337e3da911eeb2f1c. Revert "Bug 1821005 - Replace deprecated toLowerCase with lowercase." This reverts commit 69f2c66aad3aa638a1bab31b2a1e6c597d1f3992. Revert "Bug 1821005 - Replace deprecated 'toInt' method with 'code' property." This reverts commit 7adb38a6fbe20de3fdb6723a10e574d183e7fcff. Revert "Bug 1821005 - Replace deprecated execResult." This reverts commit bfd02dd16d7e5c9dbcf34858fbbe4176d698f8cd. Revert "Bug 1849833 - Replace deprecated extractNativeLibs manifest attribute." This reverts commit a05bc9618457ab2d71a5d3d88d8d3b0318497a54. Revert "Bug 1821005 - Upgrade AGP to 8.0.2" This reverts commit fc0fadd63553e2144ce074454d502ecf307eb988. Revert "Bug 1821005 - Upgrade kotlin-dsl to 4.1.0." This reverts commit 14e8903e922fa22e28450520be3b6152be6a3a8f. Revert "Bug 1821005 - Upgrade Gradle to 8.3 version." This reverts commit f14f447a4d43588d24e4ca3efde0668ddcf7cf08.
127 lines
5.5 KiB
Prolog
127 lines
5.5 KiB
Prolog
-dontobfuscate
|
|
|
|
####################################################################################################
|
|
# Sentry
|
|
####################################################################################################
|
|
|
|
# Recommended config via https://docs.sentry.io/clients/java/modules/android/#manual-integration
|
|
# Since we don't obfuscate, we don't need to use their Gradle plugin to upload ProGuard mappings.
|
|
-keepattributes LineNumberTable,SourceFile
|
|
-dontwarn org.slf4j.**
|
|
-dontwarn javax.**
|
|
|
|
# Our addition: this class is saved to disk via Serializable, which ProGuard doesn't like.
|
|
# If we exclude this, upload silently fails (Sentry swallows a NPE so we don't crash).
|
|
# I filed https://github.com/getsentry/sentry-java/issues/572
|
|
#
|
|
# If Sentry ever mysteriously stops working after we upgrade it, this could be why.
|
|
-keep class io.sentry.event.Event { *; }
|
|
|
|
####################################################################################################
|
|
# Android and GeckoView built-ins
|
|
####################################################################################################
|
|
|
|
-dontwarn android.**
|
|
-dontwarn androidx.**
|
|
-dontwarn com.google.**
|
|
-dontwarn org.mozilla.geckoview.**
|
|
|
|
# Raptor now writes a *-config.yaml file to specify Gecko runtime settings (e.g. the profile dir). This
|
|
# file gets deserialized into a DebugConfig object, which is why we need to keep this class
|
|
# and its members.
|
|
-keep class org.mozilla.gecko.util.DebugConfig { *; }
|
|
|
|
####################################################################################################
|
|
# kotlinx.coroutines: use the fast service loader to init MainDispatcherLoader by including a rule
|
|
# to rewrite this property to return true:
|
|
# https://github.com/Kotlin/kotlinx.coroutines/blob/8c98180f177bbe4b26f1ed9685a9280fea648b9c/kotlinx-coroutines-core/jvm/src/internal/MainDispatchers.kt#L19
|
|
#
|
|
# R8 is expected to optimize the default implementation to avoid a performance issue but a bug in R8
|
|
# as bundled with AGP v7.0.0 causes this optimization to fail so we use the fast service loader instead. See:
|
|
# https://github.com/mozilla-mobile/focus-android/issues/5102#issuecomment-897854121
|
|
#
|
|
# The fast service loader appears to be as performant as the R8 optimization so it's not worth the
|
|
# churn to later remove this workaround. If needed, the upstream fix is being handled in
|
|
# https://issuetracker.google.com/issues/196302685
|
|
####################################################################################################
|
|
-assumenosideeffects class kotlinx.coroutines.internal.MainDispatcherLoader {
|
|
boolean FAST_SERVICE_LOADER_ENABLED return true;
|
|
}
|
|
|
|
####################################################################################################
|
|
# Remove debug logs from release builds
|
|
####################################################################################################
|
|
-assumenosideeffects class android.util.Log {
|
|
public static boolean isLoggable(java.lang.String, int);
|
|
public static int v(...);
|
|
public static int d(...);
|
|
}
|
|
|
|
####################################################################################################
|
|
# Mozilla Application Services
|
|
####################################################################################################
|
|
|
|
-keep class mozilla.appservices.** { *; }
|
|
|
|
####################################################################################################
|
|
# ViewModels
|
|
####################################################################################################
|
|
|
|
-keep class org.mozilla.fenix.**ViewModel { *; }
|
|
|
|
####################################################################################################
|
|
# Adjust
|
|
####################################################################################################
|
|
|
|
-keep public class com.adjust.sdk.** { *; }
|
|
-keep class com.google.android.gms.common.ConnectionResult {
|
|
int SUCCESS;
|
|
}
|
|
-keep class com.google.android.gms.ads.identifier.AdvertisingIdClient {
|
|
com.google.android.gms.ads.identifier.AdvertisingIdClient$Info getAdvertisingIdInfo(android.content.Context);
|
|
}
|
|
-keep class com.google.android.gms.ads.identifier.AdvertisingIdClient$Info {
|
|
java.lang.String getId();
|
|
boolean isLimitAdTrackingEnabled();
|
|
}
|
|
-keep public class com.android.installreferrer.** { *; }
|
|
-keep class dalvik.system.VMRuntime {
|
|
java.lang.String getRuntime();
|
|
}
|
|
-keep class android.os.Build {
|
|
java.lang.String[] SUPPORTED_ABIS;
|
|
java.lang.String CPU_ABI;
|
|
}
|
|
-keep class android.content.res.Configuration {
|
|
android.os.LocaledList getLocales();
|
|
java.util.Locale locale;
|
|
}
|
|
-keep class android.os.LocaleList {
|
|
java.util.Locale get(int);
|
|
}
|
|
|
|
# Keep code generated from Glean Metrics
|
|
-keep class org.mozilla.fenix.GleanMetrics.** { *; }
|
|
|
|
# Keep motionlayout internal methods
|
|
# https://github.com/mozilla-mobile/fenix/issues/2094
|
|
-keep class androidx.constraintlayout.** { *; }
|
|
|
|
# Keep adjust relevant classes
|
|
-keep class com.adjust.sdk.** { *; }
|
|
-keep class com.google.android.gms.common.ConnectionResult {
|
|
int SUCCESS;
|
|
}
|
|
-keep class com.google.android.gms.ads.identifier.AdvertisingIdClient {
|
|
com.google.android.gms.ads.identifier.AdvertisingIdClient$Info getAdvertisingIdInfo(android.content.Context);
|
|
}
|
|
-keep class com.google.android.gms.ads.identifier.AdvertisingIdClient$Info {
|
|
java.lang.String getId();
|
|
boolean isLimitAdTrackingEnabled();
|
|
}
|
|
-keep public class com.android.installreferrer.** { *; }
|
|
|
|
# Keep Android Lifecycle methods
|
|
# https://bugzilla.mozilla.org/show_bug.cgi?id=1596302
|
|
-keep class androidx.lifecycle.** { *; }
|