Twidere-App-Android-Twitter.../twidere/proguard-rules.pro

112 lines
3.8 KiB
Prolog
Raw Normal View History

2015-04-16 21:38:02 +02:00
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/mariotaku/Tools/android-sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# 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 *;
#}
2016-03-29 12:20:20 +02:00
2017-09-25 15:05:58 +02:00
-dontobfuscate
2020-02-06 08:58:34 +01:00
-dontwarn org.codehaus.mojo.animal_sniffer.*
2016-03-29 12:20:20 +02:00
-dontwarn com.squareup.haha.**
2016-04-04 11:22:36 +02:00
-dontwarn com.makeramen.roundedimageview.**
2016-03-29 12:20:20 +02:00
-dontwarn jnamed**
2016-04-04 11:22:36 +02:00
-dontwarn org.xbill.DNS.**
2016-03-29 12:20:20 +02:00
-dontwarn com.bluelinelabs.logansquare.**
2016-04-04 11:22:36 +02:00
-dontwarn okio.**
-dontwarn android.support.**
-dontwarn com.afollestad.**
-dontwarn com.facebook.stetho.**
-dontwarn com.google.android.**
-dontwarn okhttp3.**
-dontwarn sun.net.spi.**
-dontwarn sun.misc.**
-dontwarn sun.nio.**
-dontwarn java.nio.file.**
2016-11-26 09:13:00 +01:00
-dontwarn InnerClasses
2017-09-25 15:05:58 +02:00
# https://github.com/osmdroid/osmdroid/issues/633
-dontwarn org.osmdroid.tileprovider.modules.NetworkAvailabliltyCheck
# https://github.com/dropbox/dropbox-sdk-java#does-this-sdk-require-any-special-proguard-rules-for-shrink-optimizations
-dontwarn com.dropbox.core.DbxStandardSessionStore**
-dontwarn com.dropbox.core.http.OkHttpRequestor**
-dontwarn com.dropbox.core.http.GoogleAppEngineRequestor**
-keepattributes *Annotation*
2016-03-18 17:04:03 +01:00
-keepattributes EnclosingMethod
2016-04-04 11:22:36 +02:00
-keepattributes SourceFile
-keepattributes LineNumberTable
-keepattributes Signature
2016-11-26 09:13:00 +01:00
-keepattributes InnerClasses
# https://github.com/bluelinelabs/LoganSquare
2016-04-04 11:22:36 +02:00
-keep class com.bluelinelabs.logansquare.annotation.JsonObject
-keep class * extends com.bluelinelabs.logansquare.JsonMapper
-keep @com.bluelinelabs.logansquare.annotation.JsonObject class *
2016-04-04 11:22:36 +02:00
# https://github.com/mariotaku/RestFu
-keep class org.mariotaku.restfu.annotation.** { *; }
2017-09-25 15:05:58 +02:00
-keep class * extends org.mariotaku.library.objectcursor.ObjectCursor$CursorIndices
# https://github.com/square/otto/
-keepclassmembers class ** {
@com.squareup.otto.Subscribe public *;
@com.squareup.otto.Produce public *;
}
2016-04-04 11:22:36 +02:00
-keep class * extends android.support.v4.view.ActionProvider
-keepclassmembers class * extends android.support.v4.view.ActionProvider {
<init>(android.content.Context);
}
2017-09-25 15:05:58 +02:00
# https://github.com/bumptech/glide
2020-04-13 11:33:36 +02:00
-keep public class * implements com.bumptech.glide.module.GlideModule
-keep public class * extends com.bumptech.glide.module.AppGlideModule
-keep public enum com.bumptech.glide.load.ImageHeaderParser$** {
**[] $VALUES;
public *;
}
# for DexGuard only
-keepresourcexmlelements manifest/application/meta-data@value=GlideModule
2017-09-25 15:05:58 +02:00
2017-04-13 18:57:14 +02:00
# Essential components
2016-12-15 13:15:58 +01:00
-keep class * extends org.mariotaku.twidere.util.Analyzer
-keep class * extends org.mariotaku.twidere.util.MapFragmentFactory
2017-04-13 18:57:14 +02:00
-keep class * extends org.mariotaku.twidere.util.twitter.card.TwitterCardViewFactory
# Extra feature service
2017-01-01 16:28:00 +01:00
-keep class * extends org.mariotaku.twidere.util.premium.ExtraFeaturesService
-keep class * extends org.mariotaku.twidere.util.promotion.PromotionService
2017-04-13 18:57:14 +02:00
# Extra feature component factories
2017-09-25 15:05:58 +02:00
-keep class * extends org.mariotaku.twidere.util.gifshare.GifShareProvider$Factory
-keep class * extends org.mariotaku.twidere.util.schedule.StatusScheduleProvider$Factory
-keep class * extends org.mariotaku.twidere.util.sync.DataSyncProvider$Factory
-keep class * extends org.mariotaku.twidere.util.sync.TimelineSyncManager$Factory
2017-04-13 18:57:14 +02:00
# View components
2017-09-25 15:05:58 +02:00
-keep class * extends org.mariotaku.twidere.util.view.AppBarChildBehavior$ChildTransformation
2016-12-15 06:11:32 +01:00
2016-04-04 11:22:36 +02:00
-keepclassmembers class * {
private <fields>;
}
-keepclassmembers class org.mariotaku.twidere.activity.BrowserSignInActivity$InjectorJavaScriptInterface {
public *;
}