Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Commit 88a419d

Browse files
committed
Add Fresco, Dagger, Bugly, FastJson rules
2 parents e139f00 + 4a88be3 commit 88a419d

File tree

5 files changed

+50
-1
lines changed

5 files changed

+50
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,15 @@ proguardFiles(proGuardFileCollection)
4646
* [AndroidAnnotations](http://androidannotations.org/)
4747
* [android-gif-drawable](https://github.com/koral--/android-gif-drawable)
4848
* [Apache Avro](http://http://avro.apache.org/)
49+
* [Alibaba Fastjson](https://github.com/alibaba/fastjson)
4950
* [Butterknife 5.1.2](http://jakewharton.github.io/butterknife/)
5051
* [Crashlytics 1.+ / 2.+](http://try.crashlytics.com/sdk-android/)
5152
* [Crittercism](http://docs.crittercism.com/android/android.html)
5253
* [EventBus 2.0.2](https://github.com/greenrobot/EventBus)
5354
* [Facebook 3.2.0](https://developers.facebook.com/docs/android/)
5455
* [Facebook Conceal](https://facebook.github.io/conceal/)
5556
* [Facebook Stetho](https://facebook.github.io/stetho/)
57+
* [Facebook Fresco](https://github.com/facebook/fresco)
5658
* [Flurry 3.4.0](http://support.flurry.com/index.php?title=Analytics/Code/ReleaseNotes/Android)
5759
* [Google Analytics 3.0+](https://developers.google.com/analytics/devguides/collection/android/v3/)
5860
* [Google Guava](https://code.google.com/p/guava-libraries/)
@@ -71,6 +73,7 @@ proguardFiles(proGuardFileCollection)
7173
* [RxJava-Promises](https://github.com/darylteo/rxjava-promises)
7274
* [Support Library v7](https://developer.android.com/tools/support-library/features.html#v7-appcompat)
7375
* [Sqlite](http://www.sqlite.org/index.html)
76+
* [Square Dagger](https://github.com/square/dagger)
7477
* [Square OkHttp](http://square.github.io/okhttp/)
7578
* [Square Okio](https://github.com/square/okio)
7679
* [Square Otto](http://square.github.io/otto/)
@@ -79,7 +82,9 @@ proguardFiles(proGuardFileCollection)
7982
* [Square Wire](https://github.com/square/wire)
8083
* [SVG Android](https://github.com/pents90/svg-android)
8184
* [Icepick](https://github.com/frankiesardo/icepick)
82-
* [Simple-Xml] (http://simple.sourceforge.net/)
85+
* [Simple-Xml](http://simple.sourceforge.net/)
86+
* [Tencent Bugly](http://bugly.qq.com/)
87+
8388

8489
### ProGuard tip for android libraries developers
8590
The android libraries developers can include the proguard directives in the libraries. The Android Plugin for Gradle automatically appends ProGuard configuration files in an AAR (Android ARchive) package and appends that package to your ProGuard configuration
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# fastjson proguard rules
2+
# https://github.com/alibaba/fastjson
3+
4+
-dontwarn com.alibaba.fastjson.**
5+
-keepattributes Signature
6+
-keepattributes *Annotation*
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Fresco v0.8.1 ProGuard rules.
2+
# https://github.com/facebook/fresco
3+
4+
-keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip
5+
6+
# Do not strip any method/class that is annotated with @DoNotStrip
7+
-keep @com.facebook.common.internal.DoNotStrip class *
8+
-keepclassmembers class * {
9+
@com.facebook.common.internal.DoNotStrip *;
10+
}
11+
12+
# Keep native methods
13+
-keepclassmembers class * {
14+
native <methods>;
15+
}
16+
17+
-dontwarn okio.**
18+
-dontwarn javax.annotation.**
19+
-dontwarn com.android.volley.toolbox.**
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Dagger ProGuard rules.
2+
# https://github.com/square/dagger
3+
4+
-dontwarn dagger.internal.codegen.**
5+
-keepclassmembers,allowobfuscation class * {
6+
@javax.inject.* *;
7+
@dagger.* *;
8+
<init>();
9+
}
10+
11+
-keep class dagger.* { *; }
12+
-keep class javax.inject.* { *; }
13+
-keep class * extends dagger.internal.Binding
14+
-keep class * extends dagger.internal.ModuleAdapter
15+
-keep class * extends dagger.internal.StaticInjection
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Bugly proguard rules
2+
# http://bugly.qq.com/
3+
4+
-keep public class com.tencent.bugly.**{*;}

0 commit comments

Comments
 (0)