├── .gitignore ├── LICENSE ├── README.md ├── examples ├── build.gradle ├── proguard-project-app.pro └── proguard-project-test.pro └── libraries ├── proguard-acra.pro ├── proguard-action-bar-sherlock.pro ├── proguard-activeandroid.pro ├── proguard-adjust.pro ├── proguard-alibaba-fastjson.pro ├── proguard-android-gif-drawable.pro ├── proguard-androidannotations.pro ├── proguard-avro.pro ├── proguard-aws-1.7.pro ├── proguard-aws-2.1.5.pro ├── proguard-butterknife-6.pro ├── proguard-butterknife-7.pro ├── proguard-calligraphy-2.1.0.pro ├── proguard-crashlytics-1.pro ├── proguard-crashlytics-2.pro ├── proguard-crittercism.pro ├── proguard-crosswalk.pro ├── proguard-deeplinkdispatch-1.5.pro ├── proguard-easy-adapter.pro ├── proguard-eventbus-2.pro ├── proguard-eventbus-3.pro ├── proguard-fabric-twitter-kit.pro ├── proguard-facebook-conceal.pro ├── proguard-facebook-fresco.pro ├── proguard-facebook-stetho.pro ├── proguard-facebook.pro ├── proguard-flurry.pro ├── proguard-glide.pro ├── proguard-google-admob.pro ├── proguard-google-analytics.pro ├── proguard-google-iap.pro ├── proguard-google-play-services.pro ├── proguard-greendao.pro ├── proguard-gson.pro ├── proguard-guava.pro ├── proguard-icepick.pro ├── proguard-jackson-2.pro ├── proguard-joda-convert.pro ├── proguard-joda-time-android.pro ├── proguard-joda-time.pro ├── proguard-jsoup.pro ├── proguard-logansquare.pro ├── proguard-logback-android.pro ├── proguard-mikepenz-android-iconics.pro ├── proguard-mixpanel.pro ├── proguard-mopub.pro ├── proguard-mpandroidchart.pro ├── proguard-new-relic.pro ├── proguard-parceler.pro ├── proguard-parse.pro ├── proguard-project.pro ├── proguard-realm.pro ├── proguard-retrolambda.pro ├── proguard-rx-java.pro ├── proguard-rxjava-promises.pro ├── proguard-simple-xml.pro ├── proguard-sqlite.pro ├── proguard-square-dagger.pro ├── proguard-square-okhttp.pro ├── proguard-square-okhttp3.pro ├── proguard-square-okio.pro ├── proguard-square-otto.pro ├── proguard-square-picasso.pro ├── proguard-square-retrofit.pro ├── proguard-square-retrofit2.pro ├── proguard-square-wire.pro ├── proguard-support-design.pro ├── proguard-support-v7-appcompat.pro ├── proguard-support-v7-cardview.pro ├── proguard-svgandroid.pro ├── proguard-tencent-bugly.pro └── proguard-wizardroid.pro /.gitignore: -------------------------------------------------------------------------------- 1 | # built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # files for the dex VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # generated files 12 | bin/ 13 | gen/ 14 | 15 | # Local configuration file (sdk path, etc) 16 | local.properties 17 | 18 | # Eclipse project files 19 | .classpath 20 | .project 21 | 22 | # Proguard folder generated by Eclipse 23 | proguard/ 24 | 25 | # Intellij project files 26 | *.iml 27 | *.ipr 28 | *.iws 29 | .idea/ 30 | 31 | # mac ds store file 32 | .DS_Store 33 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, and 10 | distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by the copyright 13 | owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all other entities 16 | that control, are controlled by, or are under common control with that entity. 17 | For the purposes of this definition, "control" means (i) the power, direct or 18 | indirect, to cause the direction or management of such entity, whether by 19 | contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the 20 | outstanding shares, or (iii) beneficial ownership of such entity. 21 | 22 | "You" (or "Your") shall mean an individual or Legal Entity exercising 23 | permissions granted by this License. 24 | 25 | "Source" form shall mean the preferred form for making modifications, including 26 | but not limited to software source code, documentation source, and configuration 27 | files. 28 | 29 | "Object" form shall mean any form resulting from mechanical transformation or 30 | translation of a Source form, including but not limited to compiled object code, 31 | generated documentation, and conversions to other media types. 32 | 33 | "Work" shall mean the work of authorship, whether in Source or Object form, made 34 | available under the License, as indicated by a copyright notice that is included 35 | in or attached to the work (an example is provided in the Appendix below). 36 | 37 | "Derivative Works" shall mean any work, whether in Source or Object form, that 38 | is based on (or derived from) the Work and for which the editorial revisions, 39 | annotations, elaborations, or other modifications represent, as a whole, an 40 | original work of authorship. For the purposes of this License, Derivative Works 41 | shall not include works that remain separable from, or merely link (or bind by 42 | name) to the interfaces of, the Work and Derivative Works thereof. 43 | 44 | "Contribution" shall mean any work of authorship, including the original version 45 | of the Work and any modifications or additions to that Work or Derivative Works 46 | thereof, that is intentionally submitted to Licensor for inclusion in the Work 47 | by the copyright owner or by an individual or Legal Entity authorized to submit 48 | on behalf of the copyright owner. For the purposes of this definition, 49 | "submitted" means any form of electronic, verbal, or written communication sent 50 | to the Licensor or its representatives, including but not limited to 51 | communication on electronic mailing lists, source code control systems, and 52 | issue tracking systems that are managed by, or on behalf of, the Licensor for 53 | the purpose of discussing and improving the Work, but excluding communication 54 | that is conspicuously marked or otherwise designated in writing by the copyright 55 | owner as "Not a Contribution." 56 | 57 | "Contributor" shall mean Licensor and any individual or Legal Entity on behalf 58 | of whom a Contribution has been received by Licensor and subsequently 59 | incorporated within the Work. 60 | 61 | 2. Grant of Copyright License. 62 | 63 | Subject to the terms and conditions of this License, each Contributor hereby 64 | grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, 65 | irrevocable copyright license to reproduce, prepare Derivative Works of, 66 | publicly display, publicly perform, sublicense, and distribute the Work and such 67 | Derivative Works in Source or Object form. 68 | 69 | 3. Grant of Patent License. 70 | 71 | Subject to the terms and conditions of this License, each Contributor hereby 72 | grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, 73 | irrevocable (except as stated in this section) patent license to make, have 74 | made, use, offer to sell, sell, import, and otherwise transfer the Work, where 75 | such license applies only to those patent claims licensable by such Contributor 76 | that are necessarily infringed by their Contribution(s) alone or by combination 77 | of their Contribution(s) with the Work to which such Contribution(s) was 78 | submitted. If You institute patent litigation against any entity (including a 79 | cross-claim or counterclaim in a lawsuit) alleging that the Work or a 80 | Contribution incorporated within the Work constitutes direct or contributory 81 | patent infringement, then any patent licenses granted to You under this License 82 | for that Work shall terminate as of the date such litigation is filed. 83 | 84 | 4. Redistribution. 85 | 86 | You may reproduce and distribute copies of the Work or Derivative Works thereof 87 | in any medium, with or without modifications, and in Source or Object form, 88 | provided that You meet the following conditions: 89 | 90 | You must give any other recipients of the Work or Derivative Works a copy of 91 | this License; and 92 | You must cause any modified files to carry prominent notices stating that You 93 | changed the files; and 94 | You must retain, in the Source form of any Derivative Works that You distribute, 95 | all copyright, patent, trademark, and attribution notices from the Source form 96 | of the Work, excluding those notices that do not pertain to any part of the 97 | Derivative Works; and 98 | If the Work includes a "NOTICE" text file as part of its distribution, then any 99 | Derivative Works that You distribute must include a readable copy of the 100 | attribution notices contained within such NOTICE file, excluding those notices 101 | that do not pertain to any part of the Derivative Works, in at least one of the 102 | following places: within a NOTICE text file distributed as part of the 103 | Derivative Works; within the Source form or documentation, if provided along 104 | with the Derivative Works; or, within a display generated by the Derivative 105 | Works, if and wherever such third-party notices normally appear. The contents of 106 | the NOTICE file are for informational purposes only and do not modify the 107 | License. You may add Your own attribution notices within Derivative Works that 108 | You distribute, alongside or as an addendum to the NOTICE text from the Work, 109 | provided that such additional attribution notices cannot be construed as 110 | modifying the License. 111 | You may add Your own copyright statement to Your modifications and may provide 112 | additional or different license terms and conditions for use, reproduction, or 113 | distribution of Your modifications, or for any such Derivative Works as a whole, 114 | provided Your use, reproduction, and distribution of the Work otherwise complies 115 | with the conditions stated in this License. 116 | 117 | 5. Submission of Contributions. 118 | 119 | Unless You explicitly state otherwise, any Contribution intentionally submitted 120 | for inclusion in the Work by You to the Licensor shall be under the terms and 121 | conditions of this License, without any additional terms or conditions. 122 | Notwithstanding the above, nothing herein shall supersede or modify the terms of 123 | any separate license agreement you may have executed with Licensor regarding 124 | such Contributions. 125 | 126 | 6. Trademarks. 127 | 128 | This License does not grant permission to use the trade names, trademarks, 129 | service marks, or product names of the Licensor, except as required for 130 | reasonable and customary use in describing the origin of the Work and 131 | reproducing the content of the NOTICE file. 132 | 133 | 7. Disclaimer of Warranty. 134 | 135 | Unless required by applicable law or agreed to in writing, Licensor provides the 136 | Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, 137 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, 138 | including, without limitation, any warranties or conditions of TITLE, 139 | NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are 140 | solely responsible for determining the appropriateness of using or 141 | redistributing the Work and assume any risks associated with Your exercise of 142 | permissions under this License. 143 | 144 | 8. Limitation of Liability. 145 | 146 | In no event and under no legal theory, whether in tort (including negligence), 147 | contract, or otherwise, unless required by applicable law (such as deliberate 148 | and grossly negligent acts) or agreed to in writing, shall any Contributor be 149 | liable to You for damages, including any direct, indirect, special, incidental, 150 | or consequential damages of any character arising as a result of this License or 151 | out of the use or inability to use the Work (including but not limited to 152 | damages for loss of goodwill, work stoppage, computer failure or malfunction, or 153 | any and all other commercial damages or losses), even if such Contributor has 154 | been advised of the possibility of such damages. 155 | 156 | 9. Accepting Warranty or Additional Liability. 157 | 158 | While redistributing the Work or Derivative Works thereof, You may choose to 159 | offer, and charge a fee for, acceptance of support, warranty, indemnity, or 160 | other liability obligations and/or rights consistent with this License. However, 161 | in accepting such obligations, You may act only on Your own behalf and on Your 162 | sole responsibility, not on behalf of any other Contributor, and only if You 163 | agree to indemnify, defend, and hold each Contributor harmless for any liability 164 | incurred by, or claims asserted against, such Contributor by reason of your 165 | accepting any such warranty or additional liability. 166 | 167 | END OF TERMS AND CONDITIONS 168 | 169 | APPENDIX: How to apply the Apache License to your work 170 | 171 | To apply the Apache License to your work, attach the following boilerplate 172 | notice, with the fields enclosed by brackets "[]" replaced with your own 173 | identifying information. (Don't include the brackets!) The text should be 174 | enclosed in the appropriate comment syntax for the file format. We also 175 | recommend that a file or class name and description of purpose be included on 176 | the same "printed page" as the copyright notice for easier identification within 177 | third-party archives. 178 | 179 | Copyright 2013 Kevin Schultz 180 | 181 | Licensed under the Apache License, Version 2.0 (the "License"); 182 | you may not use this file except in compliance with the License. 183 | You may obtain a copy of the License at 184 | 185 | http://www.apache.org/licenses/LICENSE-2.0 186 | 187 | Unless required by applicable law or agreed to in writing, software 188 | distributed under the License is distributed on an "AS IS" BASIS, 189 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 190 | See the License for the specific language governing permissions and 191 | limitations under the License. 192 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | android-proguard-snippets 2 | ========================== 3 | 4 | Example Proguard configurations for common Android libraries. 5 | 6 | This project assumes that your ProGuard configuration is based off of the latest official [proguard-android.txt](https://android.googlesource.com/platform/tools/base/+/HEAD/files/proguard-android.txt) config as shown below. Each library configuration should only be the rules required for that specific library, not a complete Android ProGuard configuration. The various library configurations are combined by the Gradle build system. The library rules should be universal, any app specific rules (such as preserving model classes) should be added in a custom `proguard-project.pro` file. 7 | 8 | Request additional libraries through issues. Pull requests are welcome. 9 | 10 | [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-android--proguard--snippets-brightgreen.svg?style=flat)](https://android-arsenal.com/details/3/1242) 11 | 12 | ### Usage 13 | ```groovy 14 | android { 15 | buildTypes { 16 | release { 17 | minifyEnabled true 18 | // Library specific proguard files 19 | proguardFile 'proguard-google-play-services.pro' 20 | proguardFile 'proguard-gson.pro' 21 | ... 22 | // Default proguard files & project app specific rules, 23 | // see examples folder for more information 24 | proguardFile 'proguard-project-app.pro' 25 | proguardFile getDefaultProguardFile('proguard-android.txt') 26 | // As of Gradle Android plugin 1.1.0, the test APK has a separate config 27 | testProguardFile 'proguard-project-test.pro' 28 | } 29 | } 30 | } 31 | ``` 32 | 33 | Instead of declaring each configuration file manually, you could also store them in a seperate directory and include them all at once: 34 | ```groovy 35 | FileCollection proGuardFileCollection = files { file('./proguard').listFiles() } 36 | proguardFiles(proGuardFileCollection) 37 | ``` 38 | 39 | ### Libraries 40 | * [ACRA 4.5.0](https://github.com/ACRA/acra) 41 | * [ActionBarSherlock 4.4.0](http://actionbarsherlock.com/) 42 | * [ActiveAndroid](http://www.activeandroid.com/) 43 | * [Adjust](https://github.com/adjust/android_sdk) 44 | * [Amazon Web Services 1.6.x / 1.7.x](https://aws.amazon.com/releasenotes/Android/1855915734308772) 45 | * [Amazon Web Services 2.1.x](https://github.com/aws/aws-sdk-android) 46 | * [AndroidAnnotations](http://androidannotations.org/) 47 | * [android-gif-drawable](https://github.com/koral--/android-gif-drawable) 48 | * [Apache Avro](http://http://avro.apache.org/) 49 | * [Alibaba Fastjson](https://github.com/alibaba/fastjson) 50 | * [Butterknife 5.1.2](http://jakewharton.github.io/butterknife/) 51 | * [Crashlytics 1.+ / 2.+](http://try.crashlytics.com/sdk-android/) 52 | * [Crittercism](http://docs.crittercism.com/android/android.html) 53 | * [EventBus 2.0.2](https://github.com/greenrobot/EventBus) 54 | * [Facebook 3.2.0](https://developers.facebook.com/docs/android/) 55 | * [Facebook Conceal](https://facebook.github.io/conceal/) 56 | * [Facebook Stetho](https://facebook.github.io/stetho/) 57 | * [Facebook Fresco](https://github.com/facebook/fresco) 58 | * [Flurry 3.4.0](http://support.flurry.com/index.php?title=Analytics/Code/ReleaseNotes/Android) 59 | * [Google Analytics 3.0+](https://developers.google.com/analytics/devguides/collection/android/v3/) 60 | * [Google Guava](https://code.google.com/p/guava-libraries/) 61 | * [Google Play Services 4.3.23](http://developer.android.com/google/play-services/setup.html) 62 | * [GreenDao 1.3.x](http://greendao-orm.com/) 63 | * [GSON 2.2.4](https://code.google.com/p/google-gson/) 64 | * [Jackson 2.x](http://wiki.fasterxml.com/JacksonHome) 65 | * [Joda-Convert 1.6](http://www.joda.org/joda-convert/) 66 | * [Joda-Time 2.3](http://www.joda.org/joda-time/) 67 | * [Jsoup](http://jsoup.org/) 68 | * [LoganSquare](https://github.com/bluelinelabs/LoganSquare) 69 | * [New Relic](https://docs.newrelic.com/docs/mobile-monitoring/mobile-sdk-api/new-relic-mobile-sdk-api/working-android-sdk-api) 70 | * [Parse](https://parse.com/products/android) 71 | * [Realm](http://realm.io/news/realm-for-android/) 72 | * [RxJava 0.21](https://github.com/ReactiveX/RxJava/wiki/The-RxJava-Android-Module) 73 | * [RxJava-Promises](https://github.com/darylteo/rxjava-promises) 74 | * [Support Library v7](https://developer.android.com/tools/support-library/features.html#v7-appcompat) 75 | * [Sqlite](http://www.sqlite.org/index.html) 76 | * [Square Dagger](https://github.com/square/dagger) 77 | * [Square OkHttp](http://square.github.io/okhttp/) 78 | * [Square Okio](https://github.com/square/okio) 79 | * [Square Otto](http://square.github.io/otto/) 80 | * [Square Picasso](https://github.com/square/picasso) 81 | * [Square Retrofit](http://square.github.io/retrofit/) 82 | * [Square Wire](https://github.com/square/wire) 83 | * [SVG Android](https://github.com/pents90/svg-android) 84 | * [Icepick](https://github.com/frankiesardo/icepick) 85 | * [Simple-Xml](http://simple.sourceforge.net/) 86 | * [Tencent Bugly](http://bugly.qq.com/) 87 | 88 | 89 | ### ProGuard tip for android libraries developers 90 | 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 91 | 92 | The developers only need to specify the Proguard file with `consumerProguardFiles` instead of `proguardFiles`: 93 | 94 | ``` 95 | defaultConfig { 96 | consumerProguardFiles 'proguard-file.pro' 97 | } 98 | ``` 99 | -------------------------------------------------------------------------------- /examples/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'android' 2 | 3 | repositories { 4 | mavenCentral() 5 | } 6 | 7 | dependencies { 8 | compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' 9 | compile 'com.android.support:support-v4:18.0.+' 10 | compile 'com.google.android.gms:play-services:3.2.+' 11 | compile 'com.google.code.gson:gson:2.2.4' 12 | compile 'com.nostra13.universalimageloader:universal-image-loader:1.8.6' 13 | compile 'ch.acra:acra:4.5.0' 14 | compile 'de.greenrobot:eventbus:2.0.2' 15 | } 16 | 17 | android { 18 | buildTypes { 19 | release { 20 | minifyEnabled true 21 | proguardFile 'proguard-acra.pro' 22 | proguardFile 'proguard-action-bar-sherlock.pro' 23 | proguardFile 'proguard-aws.pro' 24 | proguardFile 'proguard-eventbus.pro' 25 | proguardFile 'proguard-google-play-services.pro' 26 | proguardFile 'proguard-gson.pro' 27 | proguardFile 'proguard-project-app.pro' 28 | proguardFile getDefaultProguardFile('proguard-android.txt') 29 | testProguardFile 'proguard-project-test.pro' 30 | } 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /examples/proguard-project-app.pro: -------------------------------------------------------------------------------- 1 | # The simpliest strategy is to not run proguard against your project's own code. 2 | # This doesn't provide the benefits of optimization & obfuscation against your 3 | # project, but will still strip the libraries. The advantage is that your app will 4 | # work without any subsequent effort. If you choose this strategy, the proguard 5 | # configuration for the project is simply the line below. 6 | 7 | -keep class com.yourpackage.app.** { *; } 8 | 9 | # The more involved strategy is to specifically provide rules to keep portions of your 10 | # app's codebase unmodified while allowing proguard to optimize the rest. 11 | 12 | # The first decision is whether or not you want to obfuscate your code. This provides no 13 | # performance benefit but makes it harder for other people to read your source code. 14 | # Unfortunately obfuscation can cause issues for code that uses reflection or a few other 15 | # techniques. The default is to obfuscate. 16 | 17 | -dontobfuscate 18 | 19 | # Additionally you will need to keep specific classes. A common use case is keeping all 20 | # of the models that are JSON parsed using something like Jackson. 21 | 22 | -keep class com.yourpackage.app.model.User { *; } 23 | 24 | -------------------------------------------------------------------------------- /examples/proguard-project-test.pro: -------------------------------------------------------------------------------- 1 | # Proguard rules run against the test module (split since Gradle plugin v 1.1.0) 2 | -dontobfuscate 3 | -ignorewarnings 4 | 5 | # Specific classes that common test libs warn about 6 | -dontwarn java.beans.** 7 | -dontwarn javax.lang.model.element.Modifier 8 | -dontwarn org.apache.tools.ant.** 9 | -dontwarn org.assertj.core.internal.cglib.asm.util.TraceClassVisitor 10 | -dontwarn org.easymock.** 11 | -dontwarn org.jmock.core.** 12 | -dontwarn org.w3c.dom.bootstrap.** 13 | -dontwarn sun.misc.Unsafe 14 | -dontwarn sun.reflect.** 15 | -------------------------------------------------------------------------------- /libraries/proguard-acra.pro: -------------------------------------------------------------------------------- 1 | ## ACRA 4.5.0 specific rules ## 2 | 3 | # we need line numbers in our stack traces otherwise they are pretty useless 4 | -renamesourcefileattribute SourceFile 5 | -keepattributes SourceFile,LineNumberTable 6 | 7 | # ACRA needs "annotations" so add this... 8 | -keepattributes *Annotation* 9 | 10 | # keep this class so that logging will show 'ACRA' and not a obfuscated name like 'a'. 11 | # Note: if you are removing log messages elsewhere in this file then this isn't necessary 12 | -keep class org.acra.ACRA { 13 | *; 14 | } 15 | 16 | # keep this around for some enums that ACRA needs 17 | -keep class org.acra.ReportingInteractionMode { 18 | *; 19 | } 20 | 21 | -keepnames class org.acra.sender.HttpSender$** { 22 | *; 23 | } 24 | 25 | -keepnames class org.acra.ReportField { 26 | *; 27 | } 28 | 29 | # keep this otherwise it is removed by ProGuard 30 | -keep public class org.acra.ErrorReporter { 31 | public void addCustomData(java.lang.String,java.lang.String); 32 | public void putCustomData(java.lang.String,java.lang.String); 33 | public void removeCustomData(java.lang.String); 34 | } 35 | 36 | # keep this otherwise it is removed by ProGuard 37 | -keep public class org.acra.ErrorReporter { 38 | public void handleSilentException(java.lang.Throwable); 39 | } 40 | 41 | # Keep the support library 42 | -keep class org.acra.** { *; } 43 | -keep interface org.acra.** { *; } 44 | -------------------------------------------------------------------------------- /libraries/proguard-action-bar-sherlock.pro: -------------------------------------------------------------------------------- 1 | ## ActionBarSherlock 4.4.0 specific rules ## 2 | 3 | -keep class android.support.v4.app.** { *; } 4 | -keep interface android.support.v4.app.** { *; } 5 | -keep class com.actionbarsherlock.** { *; } 6 | -keep interface com.actionbarsherlock.** { *; } 7 | -keepattributes *Annotation* 8 | 9 | ## hack for Actionbarsherlock 4.4.0, see https://github.com/JakeWharton/ActionBarSherlock/issues/1001 ## 10 | -dontwarn com.actionbarsherlock.internal.** 11 | -------------------------------------------------------------------------------- /libraries/proguard-activeandroid.pro: -------------------------------------------------------------------------------- 1 | # ActiveAndroid 2 | -keep class com.activeandroid.** { *; } 3 | -keep class com.activeandroid.**.** { *; } 4 | -keep class * extends com.activeandroid.Model 5 | -keep class * extends com.activeandroid.serializer.TypeSerializer 6 | -------------------------------------------------------------------------------- /libraries/proguard-adjust.pro: -------------------------------------------------------------------------------- 1 | -keep class com.adjust.sdk.plugin.MacAddressUtil { 2 | java.lang.String getMacAddress(android.content.Context); 3 | } 4 | -keep class com.adjust.sdk.plugin.AndroidIdUtil { 5 | java.lang.String getAndroidId(android.content.Context); 6 | } 7 | -keep class com.google.android.gms.common.ConnectionResult { 8 | int SUCCESS; 9 | } 10 | -keep class com.google.android.gms.ads.identifier.AdvertisingIdClient { 11 | com.google.android.gms.ads.identifier.AdvertisingIdClient$Info getAdvertisingIdInfo (android.content.Context); 12 | } 13 | -keep class com.google.android.gms.ads.identifier.AdvertisingIdClient$Info { 14 | java.lang.String getId (); 15 | boolean isLimitAdTrackingEnabled(); 16 | } 17 | -------------------------------------------------------------------------------- /libraries/proguard-alibaba-fastjson.pro: -------------------------------------------------------------------------------- 1 | # fastjson proguard rules 2 | # https://github.com/alibaba/fastjson 3 | 4 | -dontwarn com.alibaba.fastjson.** 5 | -keepattributes Signature 6 | -keepattributes *Annotation* -------------------------------------------------------------------------------- /libraries/proguard-android-gif-drawable.pro: -------------------------------------------------------------------------------- 1 | -keep public class pl.droidsonroids.gif.GifIOException{(int);} 2 | -keep class pl.droidsonroids.gif.GifInfoHandle{(long,int,int,int);} -------------------------------------------------------------------------------- /libraries/proguard-androidannotations.pro: -------------------------------------------------------------------------------- 1 | ## AndroidAnnotations specific rules ## 2 | 3 | # Only required if not using the Spring RestTemplate 4 | -dontwarn org.androidannotations.api.rest.** 5 | -------------------------------------------------------------------------------- /libraries/proguard-avro.pro: -------------------------------------------------------------------------------- 1 | # Apache Avro library 2 | # http://avro.apache.org/ 3 | 4 | -keep class org.apache.avro.** { *; } 5 | -------------------------------------------------------------------------------- /libraries/proguard-aws-1.7.pro: -------------------------------------------------------------------------------- 1 | ## Amazon Web Services for Android version 1.6.1 specific rules ## 2 | 3 | -keep class org.apache.commons.logging.** { *; } 4 | -keep class com.amazonaws.services.sqs.QueueUrlHandler { *; } 5 | -keep class com.amazonaws.javax.xml.transform.sax.* { public *; } 6 | -keep class com.amazonaws.javax.xml.stream.** { *; } 7 | -keep class com.amazonaws.services.**.model.*Exception* { *; } 8 | -keep class org.codehaus.** { *; } 9 | 10 | -keepattributes Signature,*Annotation* 11 | 12 | -dontwarn javax.xml.stream.events.** 13 | -dontwarn org.codehaus.jackson.** 14 | -dontwarn org.apache.commons.logging.impl.** 15 | -dontwarn org.apache.http.conn.scheme.** 16 | -dontwarn com.amazonaws.services.securitytoken.** 17 | -dontwarn org.apache.http.annotation.** 18 | -dontwarn org.ietf.jgss.** -------------------------------------------------------------------------------- /libraries/proguard-aws-2.1.5.pro: -------------------------------------------------------------------------------- 1 | # These options are the minimal options for a functioning application 2 | # using Proguard and the AWS SDK 2.1.5 for Android 3 | 4 | -keep class org.apache.commons.logging.** { *; } 5 | -keep class com.amazonaws.org.apache.commons.logging.** { *; } 6 | -keep class com.amazonaws.services.sqs.QueueUrlHandler { *; } 7 | -keep class com.amazonaws.javax.xml.transform.sax.* { public *; } 8 | -keep class com.amazonaws.javax.xml.stream.** { *; } 9 | -keep class com.amazonaws.services.**.model.*Exception* { *; } 10 | -keep class com.amazonaws.internal.** { *; } 11 | -keep class org.codehaus.** { *; } 12 | -keep class org.joda.time.tz.Provider { *; } 13 | -keep class org.joda.time.tz.NameProvider { *; } 14 | -keepattributes Signature,*Annotation*,EnclosingMethod 15 | -keepnames class com.fasterxml.jackson.** { *; } 16 | -keepnames class com.amazonaws.** { *; } 17 | 18 | -dontwarn com.fasterxml.jackson.databind.** 19 | -dontwarn javax.xml.stream.events.** 20 | -dontwarn org.codehaus.jackson.** 21 | -dontwarn org.apache.commons.logging.impl.** 22 | -dontwarn org.apache.http.conn.scheme.** 23 | -dontwarn org.apache.http.annotation.** 24 | -dontwarn org.ietf.jgss.** 25 | -dontwarn org.joda.convert.** 26 | -dontwarn com.amazonaws.org.joda.convert.** 27 | -dontwarn org.w3c.dom.bootstrap.** 28 | 29 | #SDK split into multiple jars so certain classes may be referenced but not used 30 | -dontwarn com.amazonaws.services.s3.** 31 | -dontwarn com.amazonaws.services.sqs.** 32 | 33 | -dontnote com.amazonaws.services.sqs.QueueUrlHandler 34 | -------------------------------------------------------------------------------- /libraries/proguard-butterknife-6.pro: -------------------------------------------------------------------------------- 1 | # ButterKnife 6 2 | 3 | -keep class butterknife.** { *; } 4 | -dontwarn butterknife.internal.** 5 | -keep class **$$ViewInjector { *; } 6 | -keepclasseswithmembernames class * { 7 | @butterknife.* ; 8 | } 9 | 10 | -keepclasseswithmembernames class * { 11 | @butterknife.* ; 12 | } 13 | -------------------------------------------------------------------------------- /libraries/proguard-butterknife-7.pro: -------------------------------------------------------------------------------- 1 | # ButterKnife 7 2 | 3 | -keep class butterknife.** { *; } 4 | -dontwarn butterknife.internal.** 5 | -keep class **$$ViewBinder { *; } 6 | 7 | -keepclasseswithmembernames class * { 8 | @butterknife.* ; 9 | } 10 | 11 | -keepclasseswithmembernames class * { 12 | @butterknife.* ; 13 | } -------------------------------------------------------------------------------- /libraries/proguard-calligraphy-2.1.0.pro: -------------------------------------------------------------------------------- 1 | # If your project uses WebView with JS, uncomment the following 2 | # and specify the fully qualified class name to the JavaScript interface 3 | # class: 4 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 5 | # public *; 6 | #} 7 | 8 | -keep class uk.co.chrisjenx.calligraphy.* { *; } 9 | -keep class uk.co.chrisjenx.calligraphy.*$* { *; } 10 | -------------------------------------------------------------------------------- /libraries/proguard-crashlytics-1.pro: -------------------------------------------------------------------------------- 1 | # Crashlytics 1.+ 2 | 3 | -keep class com.crashlytics.** { *; } 4 | -keepattributes SourceFile,LineNumberTable 5 | 6 | -------------------------------------------------------------------------------- /libraries/proguard-crashlytics-2.pro: -------------------------------------------------------------------------------- 1 | # Crashlytics 2.+ 2 | 3 | -keep class com.crashlytics.** { *; } 4 | -keep class com.crashlytics.android.** 5 | -keepattributes SourceFile, LineNumberTable, *Annotation* 6 | 7 | # If you are using custom exceptions, add this line so that custom exception types are skipped during obfuscation: 8 | -keep public class * extends java.lang.Exception 9 | 10 | # For Fabric to properly de-obfuscate your crash reports, you need to remove this line from your ProGuard config: 11 | # -printmapping mapping.txt -------------------------------------------------------------------------------- /libraries/proguard-crittercism.pro: -------------------------------------------------------------------------------- 1 | -keep public class com.crittercism.** 2 | -keepclassmembers public class com.crittercism.* { *; } 3 | -------------------------------------------------------------------------------- /libraries/proguard-crosswalk.pro: -------------------------------------------------------------------------------- 1 | ## Crosswalk ## 2 | # https://crosswalk-project.org/documentation/about/faq.html 3 | 4 | -keep class org.xwalk.core.** { 5 | *; 6 | } 7 | -keep class org.chromium.** { 8 | *; 9 | } 10 | -keepattributes ** -------------------------------------------------------------------------------- /libraries/proguard-deeplinkdispatch-1.5.pro: -------------------------------------------------------------------------------- 1 | ## Deeplink Dispatch 1.5 specific rules ## 2 | ## https://github.com/airbnb/DeepLinkDispatch ## 3 | 4 | -keep class com.airbnb.deeplinkdispatch.** { *; } 5 | -keepclasseswithmembers class * { 6 | @com.airbnb.deeplinkdispatch.DeepLink ; 7 | } -------------------------------------------------------------------------------- /libraries/proguard-easy-adapter.pro: -------------------------------------------------------------------------------- 1 | #Easy-Adapter v1.5.0 2 | 3 | -keepattributes *Annotation* 4 | -keepclassmembers class * extends uk.co.ribot.easyadapter.ItemViewHolder { 5 | public (...); 6 | } 7 | -------------------------------------------------------------------------------- /libraries/proguard-eventbus-2.pro: -------------------------------------------------------------------------------- 1 | ## GreenRobot EventBus specific rules ## 2 | # https://github.com/greenrobot/EventBus/blob/master/HOWTO.md#proguard-configuration 3 | 4 | -keepclassmembers class ** { 5 | public void onEvent*(***); 6 | } 7 | 8 | # Only required if you use AsyncExecutor 9 | -keepclassmembers class * extends de.greenrobot.event.util.ThrowableFailureEvent { 10 | public (java.lang.Throwable); 11 | } 12 | 13 | # Don't warn for missing support classes 14 | -dontwarn de.greenrobot.event.util.*$Support 15 | -dontwarn de.greenrobot.event.util.*$SupportManagerFragment 16 | -------------------------------------------------------------------------------- /libraries/proguard-eventbus-3.pro: -------------------------------------------------------------------------------- 1 | ## New rules for EventBus 3.0.x ## 2 | # http://greenrobot.org/eventbus/documentation/proguard/ 3 | 4 | -keepattributes *Annotation* 5 | -keepclassmembers class ** { 6 | @org.greenrobot.eventbus.Subscribe ; 7 | } 8 | -keep enum org.greenrobot.eventbus.ThreadMode { *; } 9 | 10 | # Only required if you use AsyncExecutor 11 | -keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent { 12 | (java.lang.Throwable); 13 | } 14 | -------------------------------------------------------------------------------- /libraries/proguard-fabric-twitter-kit.pro: -------------------------------------------------------------------------------- 1 | # Configuration for Fabric Twitter Kit 2 | # See: https://dev.twitter.com/twitter-kit/android/integrate 3 | 4 | -dontwarn com.squareup.okhttp.** 5 | -dontwarn com.google.appengine.api.urlfetch.** 6 | -dontwarn rx.** 7 | -dontwarn retrofit.** 8 | -keepattributes Signature 9 | -keepattributes *Annotation* 10 | -keep class com.squareup.okhttp.** { *; } 11 | -keep interface com.squareup.okhttp.** { *; } 12 | -keep class retrofit.** { *; } 13 | -keepclasseswithmembers class * { 14 | @retrofit.http.* *; 15 | } 16 | -------------------------------------------------------------------------------- /libraries/proguard-facebook-conceal.pro: -------------------------------------------------------------------------------- 1 | # Keep our interfaces so they can be used by other ProGuard rules. 2 | # See http://sourceforge.net/p/proguard/bugs/466/ 3 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 4 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 5 | 6 | # Do not strip any method/class that is annotated with @DoNotStrip 7 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 8 | -keepclassmembers class * { 9 | @com.facebook.proguard.annotations.DoNotStrip *; 10 | } 11 | 12 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 13 | void set*(***); 14 | *** get*(); 15 | } 16 | -------------------------------------------------------------------------------- /libraries/proguard-facebook-fresco.pro: -------------------------------------------------------------------------------- 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 ; 15 | } 16 | 17 | -dontwarn okio.** 18 | -dontwarn javax.annotation.** 19 | -dontwarn com.android.volley.toolbox.** -------------------------------------------------------------------------------- /libraries/proguard-facebook-stetho.pro: -------------------------------------------------------------------------------- 1 | # Updated as of Stetho 1.1.1 2 | # 3 | # Note: Doesn't include Javascript console lines. See https://github.com/facebook/stetho/tree/master/stetho-js-rhino#proguard 4 | -keep class com.facebook.stetho.** { *; } 5 | -------------------------------------------------------------------------------- /libraries/proguard-facebook.pro: -------------------------------------------------------------------------------- 1 | # Facebook 3.2 2 | 3 | -keep class com.facebook.** { *; } 4 | -keepattributes Signature 5 | -------------------------------------------------------------------------------- /libraries/proguard-flurry.pro: -------------------------------------------------------------------------------- 1 | ## Flurry 3.4.0 specific rules ## 2 | 3 | -keep class com.flurry.** { *; } 4 | -dontwarn com.flurry.** 5 | -keepattributes *Annotation*,EnclosingMethod 6 | -keepclasseswithmembers class * { 7 | public (android.content.Context, android.util.AttributeSet, int); 8 | } 9 | -------------------------------------------------------------------------------- /libraries/proguard-glide.pro: -------------------------------------------------------------------------------- 1 | # Glide specific rules # 2 | # https://github.com/bumptech/glide 3 | 4 | -keep public class * implements com.bumptech.glide.module.GlideModule 5 | -keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** { 6 | **[] $VALUES; 7 | public *; 8 | } 9 | 10 | -------------------------------------------------------------------------------- /libraries/proguard-google-admob.pro: -------------------------------------------------------------------------------- 1 | ## Google AdMob specific rules ## 2 | ## https://developers.google.com/admob/android/quick-start ## 3 | 4 | -keep public class com.google.ads.** { 5 | public *; 6 | } -------------------------------------------------------------------------------- /libraries/proguard-google-analytics.pro: -------------------------------------------------------------------------------- 1 | ## Google Analytics 3.0 specific rules ## 2 | 3 | -keep class com.google.analytics.** { *; } -------------------------------------------------------------------------------- /libraries/proguard-google-iap.pro: -------------------------------------------------------------------------------- 1 | # In App Billing 2 | 3 | -keep class com.android.vending.billing.** -------------------------------------------------------------------------------- /libraries/proguard-google-play-services.pro: -------------------------------------------------------------------------------- 1 | ## Google Play Services 4.3.23 specific rules ## 2 | ## https://developer.android.com/google/play-services/setup.html#Proguard ## 3 | 4 | -keep class * extends java.util.ListResourceBundle { 5 | protected Object[][] getContents(); 6 | } 7 | 8 | -keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable { 9 | public static final *** NULL; 10 | } 11 | 12 | -keepnames @com.google.android.gms.common.annotation.KeepName class * 13 | -keepclassmembernames class * { 14 | @com.google.android.gms.common.annotation.KeepName *; 15 | } 16 | 17 | -keepnames class * implements android.os.Parcelable { 18 | public static final ** CREATOR; 19 | } -------------------------------------------------------------------------------- /libraries/proguard-greendao.pro: -------------------------------------------------------------------------------- 1 | # GreenDao rules 2 | # Source: http://greendao-orm.com/documentation/technical-faq 3 | # 4 | -keepclassmembers class * extends de.greenrobot.dao.AbstractDao { 5 | public static java.lang.String TABLENAME; 6 | } 7 | -keep class **$Properties -------------------------------------------------------------------------------- /libraries/proguard-gson.pro: -------------------------------------------------------------------------------- 1 | ## GSON 2.2.4 specific rules ## 2 | 3 | # Gson uses generic type information stored in a class file when working with fields. Proguard 4 | # removes such information by default, so configure it to keep all of it. 5 | -keepattributes Signature 6 | 7 | # For using GSON @Expose annotation 8 | -keepattributes *Annotation* 9 | 10 | -keepattributes EnclosingMethod 11 | 12 | # Gson specific classes 13 | -keep class sun.misc.Unsafe { *; } 14 | -keep class com.google.gson.stream.** { *; } 15 | -------------------------------------------------------------------------------- /libraries/proguard-guava.pro: -------------------------------------------------------------------------------- 1 | # Configuration for Guava 18.0 2 | # 3 | # disagrees with instructions provided by Guava project: https://code.google.com/p/guava-libraries/wiki/UsingProGuardWithGuava 4 | 5 | -keep class com.google.common.io.Resources { 6 | public static ; 7 | } 8 | -keep class com.google.common.collect.Lists { 9 | public static ** reverse(**); 10 | } 11 | -keep class com.google.common.base.Charsets { 12 | public static ; 13 | } 14 | 15 | -keep class com.google.common.base.Joiner { 16 | public static com.google.common.base.Joiner on(java.lang.String); 17 | public ** join(...); 18 | } 19 | 20 | -keep class com.google.common.collect.MapMakerInternalMap$ReferenceEntry 21 | -keep class com.google.common.cache.LocalCache$ReferenceEntry 22 | 23 | # http://stackoverflow.com/questions/9120338/proguard-configuration-for-guava-with-obfuscation-and-optimization 24 | -dontwarn javax.annotation.** 25 | -dontwarn javax.inject.** 26 | -dontwarn sun.misc.Unsafe 27 | 28 | # Guava 19.0 29 | -dontwarn java.lang.ClassValue 30 | -dontwarn com.google.j2objc.annotations.Weak 31 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 32 | -------------------------------------------------------------------------------- /libraries/proguard-icepick.pro: -------------------------------------------------------------------------------- 1 | #Icepick 2 | 3 | -dontwarn icepick.** 4 | -keep class **$$Icepick { *; } 5 | -keepclasseswithmembernames class * { 6 | @icepick.* ; 7 | } -------------------------------------------------------------------------------- /libraries/proguard-jackson-2.pro: -------------------------------------------------------------------------------- 1 | # Proguard configuration for Jackson 2.x (fasterxml package instead of codehaus package) 2 | 3 | -keep class com.fasterxml.jackson.databind.ObjectMapper { 4 | public ; 5 | protected ; 6 | } 7 | -keep class com.fasterxml.jackson.databind.ObjectWriter { 8 | public ** writeValueAsString(**); 9 | } -------------------------------------------------------------------------------- /libraries/proguard-joda-convert.pro: -------------------------------------------------------------------------------- 1 | ## Joda Convert 1.6 2 | 3 | -keep class org.joda.convert.** { *; } 4 | -keep interface org.joda.convert.** { *; } 5 | -------------------------------------------------------------------------------- /libraries/proguard-joda-time-android.pro: -------------------------------------------------------------------------------- 1 | ## joda-time-android 2.8.0 2 | # This is only necessary if you are not including the optional joda-convert dependency 3 | 4 | -dontwarn org.joda.convert.FromString 5 | -dontwarn org.joda.convert.ToString 6 | -------------------------------------------------------------------------------- /libraries/proguard-joda-time.pro: -------------------------------------------------------------------------------- 1 | ## Joda Time 2.3 2 | 3 | -dontwarn org.joda.convert.** 4 | -dontwarn org.joda.time.** 5 | -keep class org.joda.time.** { *; } 6 | -keep interface org.joda.time.** { *; } 7 | -------------------------------------------------------------------------------- /libraries/proguard-jsoup.pro: -------------------------------------------------------------------------------- 1 | -keeppackagenames org.jsoup.nodes 2 | -------------------------------------------------------------------------------- /libraries/proguard-logansquare.pro: -------------------------------------------------------------------------------- 1 | # Proguard config for LoganSquare 2 | # https://github.com/bluelinelabs/LoganSquare#proguard 3 | 4 | -keep class com.bluelinelabs.logansquare.** { *; } 5 | -keep @com.bluelinelabs.logansquare.annotation.JsonObject class * 6 | -keep class **$$JsonObjectMapper { *; } 7 | -------------------------------------------------------------------------------- /libraries/proguard-logback-android.pro: -------------------------------------------------------------------------------- 1 | # Logback for Android 2 | # 3 | # Tested on the following *.gradle dependencies 4 | # 5 | # compile 'org.slf4j:slf4j-api:1.7.7' 6 | # compile 'com.github.tony19:logback-android-core:1.1.1-3' 7 | # compile 'com.github.tony19:logback-android-classic:1.1.1-3' 8 | # 9 | 10 | -keep class ch.qos.** { *; } 11 | -keep class org.slf4j.** { *; } 12 | -keepattributes *Annotation* 13 | -dontwarn ch.qos.logback.core.net.* 14 | 15 | -------------------------------------------------------------------------------- /libraries/proguard-mikepenz-android-iconics.pro: -------------------------------------------------------------------------------- 1 | # Android iconics library - https://github.com/mikepenz/Android-Iconics 2 | # Warning: works ONLY with iconics > 1.0.0 3 | # 4 | # Tested on gradle config: 5 | # 6 | # compile 'com.mikepenz:iconics-core:1.7.1@aar' 7 | # 8 | 9 | -keep class com.mikepenz.iconics.** { *; } 10 | -keep class com.mikepenz.community_material_typeface_library.CommunityMaterial 11 | -keep class com.mikepenz.fontawesome_typeface_library.FontAwesome 12 | -keep class com.mikepenz.google_material_typeface_library.GoogleMaterial 13 | -keep class com.mikepenz.meteocons_typeface_library.Meteoconcs 14 | -keep class com.mikepenz.octicons_typeface_library.Octicons 15 | 16 | -------------------------------------------------------------------------------- /libraries/proguard-mixpanel.pro: -------------------------------------------------------------------------------- 1 | # Mixpanel 4.+ 2 | 3 | -dontwarn com.mixpanel.** 4 | -------------------------------------------------------------------------------- /libraries/proguard-mopub.pro: -------------------------------------------------------------------------------- 1 | # MoPub Proguard Config 2 | # NOTE: You should also include the Android Proguard config found with the build tools: 3 | # $ANDROID_HOME/tools/proguard/proguard-android.txt 4 | 5 | # Keep public classes and methods. 6 | -keepclassmembers class com.mopub.** { public *; } 7 | -keep public class com.mopub.** 8 | -keep public class android.webkit.JavascriptInterface {} 9 | 10 | # Explicitly keep any custom event classes in any package. 11 | -keep class * extends com.mopub.mobileads.CustomEventBanner {} 12 | -keep class * extends com.mopub.mobileads.CustomEventInterstitial {} 13 | -keep class * extends com.mopub.nativeads.CustomEventNative {} 14 | 15 | # Support for Android Advertiser ID. 16 | -keep class com.google.android.gms.common.GooglePlayServicesUtil {*;} 17 | -keep class com.google.android.gms.ads.identifier.AdvertisingIdClient {*;} 18 | -keep class com.google.android.gms.ads.identifier.AdvertisingIdClient$Info {*;} 19 | -------------------------------------------------------------------------------- /libraries/proguard-mpandroidchart.pro: -------------------------------------------------------------------------------- 1 | # According to the official link: https://github.com/PhilJay/MPAndroidChart#proguard 2 | 3 | -keep class com.github.mikephil.charting.** { *; } 4 | -------------------------------------------------------------------------------- /libraries/proguard-new-relic.pro: -------------------------------------------------------------------------------- 1 | # Proguard configuration for New Relic 3.+ 2 | # https://docs.newrelic.com/docs/mobile-monitoring/mobile-monitoring-installation/android/installing-android-apps-gradle-android-studio 3 | 4 | -keep class com.newrelic.** { *; } 5 | -dontwarn com.newrelic.** 6 | -keepattributes Exceptions, Signature, InnerClasses 7 | -------------------------------------------------------------------------------- /libraries/proguard-parceler.pro: -------------------------------------------------------------------------------- 1 | # Parceler rules 2 | # Source: https://github.com/johncarl81/parceler#configuring-proguard 3 | 4 | -keep class * implements android.os.Parcelable { 5 | public static final android.os.Parcelable$Creator *; 6 | } 7 | 8 | -keep class org.parceler.Parceler$$Parcels 9 | -------------------------------------------------------------------------------- /libraries/proguard-parse.pro: -------------------------------------------------------------------------------- 1 | # Parse 2 | -dontwarn com.parse.** 3 | -keep class com.parse.** { *; } 4 | -------------------------------------------------------------------------------- /libraries/proguard-project.pro: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | 22 | ## --------------- Start Project specifics --------------- ## 23 | 24 | # Keep the BuildConfig 25 | -keep class com.example.BuildConfig { *; } 26 | 27 | # Keep the support library 28 | -keep class android.support.v4.** { *; } 29 | -keep interface android.support.v4.** { *; } 30 | 31 | # Application classes that will be serialized/deserialized over Gson 32 | # or have been blown up by ProGuard in the past 33 | 34 | ## ---------------- End Project specifics ---------------- ## 35 | -------------------------------------------------------------------------------- /libraries/proguard-realm.pro: -------------------------------------------------------------------------------- 1 | # Proguard Configuration for Realm (http://realm.io) 2 | # For detailed discussion see: https://groups.google.com/forum/#!topic/realm-java/umqKCc50JGU 3 | # Additionally you need to keep your Realm Model classes as well 4 | # For example: 5 | # -keep class com.yourcompany.realm.** { *; } 6 | 7 | -keep class io.realm.annotations.RealmModule 8 | -keep @io.realm.annotations.RealmModule class * 9 | -keep class io.realm.internal.Keep 10 | -keep @io.realm.internal.Keep class * 11 | -dontwarn javax.** 12 | -dontwarn io.realm.** 13 | -------------------------------------------------------------------------------- /libraries/proguard-retrolambda.pro: -------------------------------------------------------------------------------- 1 | ## Retrolambda specific rules ## 2 | 3 | # as per official recommendation: https://github.com/evant/gradle-retrolambda#proguard 4 | -dontwarn java.lang.invoke.* 5 | -------------------------------------------------------------------------------- /libraries/proguard-rx-java.pro: -------------------------------------------------------------------------------- 1 | # RxJava 0.21 2 | 3 | -keep class rx.schedulers.Schedulers { 4 | public static ; 5 | } 6 | -keep class rx.schedulers.ImmediateScheduler { 7 | public ; 8 | } 9 | -keep class rx.schedulers.TestScheduler { 10 | public ; 11 | } 12 | -keep class rx.schedulers.Schedulers { 13 | public static ** test(); 14 | } 15 | -------------------------------------------------------------------------------- /libraries/proguard-rxjava-promises.pro: -------------------------------------------------------------------------------- 1 | # Rxjava-promises 2 | 3 | -keep class com.darylteo.rx.** { *; } 4 | 5 | -dontwarn com.darylteo.rx.** -------------------------------------------------------------------------------- /libraries/proguard-simple-xml.pro: -------------------------------------------------------------------------------- 1 | # Simple-Xml Proguard Config 2 | # NOTE: You should also include the Android Proguard config found with the build tools: 3 | # $ANDROID_HOME/tools/proguard/proguard-android.txt 4 | 5 | # Keep public classes and methods. 6 | -dontwarn com.bea.xml.stream.** 7 | -dontwarn org.simpleframework.xml.stream.** 8 | -keep class org.simpleframework.xml.**{ *; } 9 | -keepclassmembers,allowobfuscation class * { 10 | @org.simpleframework.xml.* ; 11 | @org.simpleframework.xml.* (...); 12 | } 13 | -------------------------------------------------------------------------------- /libraries/proguard-sqlite.pro: -------------------------------------------------------------------------------- 1 | -keep class org.sqlite.** { *; } 2 | -keep class org.sqlite.database.** { *; } -------------------------------------------------------------------------------- /libraries/proguard-square-dagger.pro: -------------------------------------------------------------------------------- 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 | (); 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 -------------------------------------------------------------------------------- /libraries/proguard-square-okhttp.pro: -------------------------------------------------------------------------------- 1 | # OkHttp 2 | -keepattributes Signature 3 | -keepattributes *Annotation* 4 | -keep class com.squareup.okhttp.** { *; } 5 | -keep interface com.squareup.okhttp.** { *; } 6 | -dontwarn com.squareup.okhttp.** -------------------------------------------------------------------------------- /libraries/proguard-square-okhttp3.pro: -------------------------------------------------------------------------------- 1 | # OkHttp 2 | -keepattributes Signature 3 | -keepattributes *Annotation* 4 | -keep class okhttp3.** { *; } 5 | -keep interface okhttp3.** { *; } 6 | -dontwarn okhttp3.** -------------------------------------------------------------------------------- /libraries/proguard-square-okio.pro: -------------------------------------------------------------------------------- 1 | # Okio 2 | -keep class sun.misc.Unsafe { *; } 3 | -dontwarn java.nio.file.* 4 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 5 | -dontwarn okio.** -------------------------------------------------------------------------------- /libraries/proguard-square-otto.pro: -------------------------------------------------------------------------------- 1 | ## Square Otto specific rules ## 2 | ## https://square.github.io/otto/ ## 3 | 4 | -keepattributes *Annotation* 5 | -keepclassmembers class ** { 6 | @com.squareup.otto.Subscribe public *; 7 | @com.squareup.otto.Produce public *; 8 | } 9 | -------------------------------------------------------------------------------- /libraries/proguard-square-picasso.pro: -------------------------------------------------------------------------------- 1 | ## Square Picasso specific rules ## 2 | ## https://square.github.io/picasso/ ## 3 | 4 | -dontwarn com.squareup.okhttp.** -------------------------------------------------------------------------------- /libraries/proguard-square-retrofit.pro: -------------------------------------------------------------------------------- 1 | # Retrofit 1.X 2 | 3 | -keep class com.squareup.okhttp.** { *; } 4 | -keep class retrofit.** { *; } 5 | -keep interface com.squareup.okhttp.** { *; } 6 | 7 | -dontwarn com.squareup.okhttp.** 8 | -dontwarn okio.** 9 | -dontwarn retrofit.** 10 | -dontwarn rx.** 11 | 12 | -keepclasseswithmembers class * { 13 | @retrofit.http.* ; 14 | } 15 | 16 | # If in your rest service interface you use methods with Callback argument. 17 | -keepattributes Exceptions 18 | 19 | # If your rest service methods throw custom exceptions, because you've defined an ErrorHandler. 20 | -keepattributes Signature 21 | 22 | # Also you must note that if you are using GSON for conversion from JSON to POJO representation, you must ignore those POJO classes from being obfuscated. 23 | # Here include the POJO's that have you have created for mapping JSON response to POJO for example. 24 | -------------------------------------------------------------------------------- /libraries/proguard-square-retrofit2.pro: -------------------------------------------------------------------------------- 1 | # Retrofit 2.X 2 | ## https://square.github.io/retrofit/ ## 3 | 4 | -dontwarn retrofit2.** 5 | -keep class retrofit2.** { *; } 6 | -keepattributes Signature 7 | -keepattributes Exceptions 8 | 9 | -keepclasseswithmembers class * { 10 | @retrofit2.http.* ; 11 | } 12 | -------------------------------------------------------------------------------- /libraries/proguard-square-wire.pro: -------------------------------------------------------------------------------- 1 | # Square's wire configuration. 2 | 3 | -keep class com.squareup.**{*;} 4 | -keep public class * extends com.squareup.**{*;} 5 | -dontwarn com.squareup.** 6 | 7 | # Keep methods with Wire annotations (e.g. @ProtoField) 8 | -keepclassmembers class ** { 9 | @com.squareup.wire.ProtoField public *; 10 | @com.squareup.wire.ProtoEnum public *; 11 | } 12 | -------------------------------------------------------------------------------- /libraries/proguard-support-design.pro: -------------------------------------------------------------------------------- 1 | -dontwarn android.support.design.** 2 | -keep class android.support.design.** { *; } 3 | -keep interface android.support.design.** { *; } 4 | -keep public class android.support.design.R$* { *; } -------------------------------------------------------------------------------- /libraries/proguard-support-v7-appcompat.pro: -------------------------------------------------------------------------------- 1 | -keep public class android.support.v7.widget.** { *; } 2 | -keep public class android.support.v7.internal.widget.** { *; } 3 | -keep public class android.support.v7.internal.view.menu.** { *; } 4 | 5 | -keep public class * extends android.support.v4.view.ActionProvider { 6 | public (android.content.Context); 7 | } 8 | -------------------------------------------------------------------------------- /libraries/proguard-support-v7-cardview.pro: -------------------------------------------------------------------------------- 1 | # http://stackoverflow.com/questions/29679177/cardview-shadow-not-appearing-in-lollipop-after-obfuscate-with-proguard/29698051 2 | -keep class android.support.v7.widget.RoundRectDrawable { *; } 3 | -------------------------------------------------------------------------------- /libraries/proguard-svgandroid.pro: -------------------------------------------------------------------------------- 1 | ## SVG Android ## 2 | #https://github.com/pents90/svg-android 3 | -keep class com.larvalabs.svgandroid.** {*;} 4 | -keep class com.larvalabs.svgandroid.*$* {*;} -------------------------------------------------------------------------------- /libraries/proguard-tencent-bugly.pro: -------------------------------------------------------------------------------- 1 | # Bugly proguard rules 2 | # http://bugly.qq.com/ 3 | 4 | -keep public class com.tencent.bugly.**{*;} 5 | -------------------------------------------------------------------------------- /libraries/proguard-wizardroid.pro: -------------------------------------------------------------------------------- 1 | # According to the official link: https://github.com/Nimrodda/WizarDroid/wiki/Build-and-Usage#configuring-proguard-to-work-with-wizardroid 2 | -keepnames class * { @org.codepond.android.wizardroid.ContextVariable *; } 3 | --------------------------------------------------------------------------------