{"id":13541982,"url":"https://github.com/krschultz/android-proguard-snippets","last_synced_at":"2025-12-16T21:06:16.289Z","repository":{"id":11349114,"uuid":"13779494","full_name":"krschultz/android-proguard-snippets","owner":"krschultz","description":"Proguard configurations for common Android libraries","archived":true,"fork":false,"pushed_at":"2019-03-18T18:32:36.000Z","size":204,"stargazers_count":4588,"open_issues_count":61,"forks_count":598,"subscribers_count":186,"default_branch":"master","last_synced_at":"2024-11-03T07:33:06.644Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.kevinrschultz.com/blog/2014/02/15/proguard-with-gradle/","language":"IDL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krschultz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-22T16:44:36.000Z","updated_at":"2024-11-01T23:20:29.000Z","dependencies_parsed_at":"2022-09-10T23:51:56.791Z","dependency_job_id":null,"html_url":"https://github.com/krschultz/android-proguard-snippets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krschultz%2Fandroid-proguard-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krschultz%2Fandroid-proguard-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krschultz%2Fandroid-proguard-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krschultz%2Fandroid-proguard-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krschultz","download_url":"https://codeload.github.com/krschultz/android-proguard-snippets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246789005,"owners_count":20834213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T10:00:59.705Z","updated_at":"2025-12-16T21:06:10.946Z","avatar_url":"https://github.com/krschultz.png","language":"IDL","funding_links":[],"categories":["Uncategorized","Libs","Security","Gradle Plugin"],"sub_categories":["Uncategorized","\u003cA NAME=\"Demo\"\u003e\u003c/A\u003eDemo"],"readme":"android-proguard-snippets\n==========================\n\nExample Proguard configurations for common Android libraries.\n\nThis 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.\n\nRequest additional libraries through issues. Pull requests are welcome.\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-android--proguard--snippets-brightgreen.svg?style=flat)](https://android-arsenal.com/details/3/1242)\n\n### Usage\n```groovy\nandroid {\n  buildTypes {\n    release {\n      minifyEnabled true\n      // Library specific proguard files\n      proguardFile 'proguard-google-play-services.pro'\n      proguardFile 'proguard-gson.pro'\n      ...\n      // Default proguard files \u0026 project app specific rules,\n      //  see examples folder for more information\n      proguardFile 'proguard-project-app.pro'\n      proguardFile getDefaultProguardFile('proguard-android.txt')\n      // As of Gradle Android plugin 1.1.0, the test APK has a separate config\n      testProguardFile 'proguard-project-test.pro'\n    }\n  }\n}\n```\n\nInstead of declaring each configuration file manually, you could also store them in a seperate directory and include them all at once:\n```groovy\nFileCollection proGuardFileCollection = files { file('./proguard').listFiles() }\nproguardFiles(proGuardFileCollection)\n```\n\n### Libraries\n* [ACRA 4.5.0](https://github.com/ACRA/acra)\n* [ActionBarSherlock 4.4.0](http://actionbarsherlock.com/)\n* [ActiveAndroid](http://www.activeandroid.com/)\n* [Adjust](https://github.com/adjust/android_sdk)\n* [Amazon Web Services 1.6.x / 1.7.x](https://aws.amazon.com/releasenotes/Android/1855915734308772)\n* [Amazon Web Services 2.1.x](https://github.com/aws/aws-sdk-android)\n* [AndroidAnnotations](http://androidannotations.org/)\n* [android-gif-drawable](https://github.com/koral--/android-gif-drawable)\n* [Apache Avro](http://http://avro.apache.org/)\n* [Alibaba Fastjson](https://github.com/alibaba/fastjson)\n* [Butterknife 5.1.2](http://jakewharton.github.io/butterknife/)\n* [Crashlytics 1.+ / 2.+](http://try.crashlytics.com/sdk-android/)\n* [Crittercism](http://docs.crittercism.com/android/android.html)\n* [EventBus 2.0.2](https://github.com/greenrobot/EventBus)\n* [Facebook 3.2.0](https://developers.facebook.com/docs/android/)\n* [Facebook Conceal](https://facebook.github.io/conceal/)\n* [Facebook Stetho](https://facebook.github.io/stetho/)\n* [Facebook Fresco](https://github.com/facebook/fresco)\n* [Flurry 3.4.0](http://support.flurry.com/index.php?title=Analytics/Code/ReleaseNotes/Android)\n* [Google Analytics 3.0+](https://developers.google.com/analytics/devguides/collection/android/v3/)\n* [Google Guava](https://code.google.com/p/guava-libraries/)\n* [Google Play Services 4.3.23](http://developer.android.com/google/play-services/setup.html)\n* [GreenDao 1.3.x](http://greendao-orm.com/)\n* [GSON 2.2.4](https://code.google.com/p/google-gson/)\n* [Jackson 2.x](http://wiki.fasterxml.com/JacksonHome)\n* [Joda-Convert 1.6](http://www.joda.org/joda-convert/)\n* [Joda-Time 2.3](http://www.joda.org/joda-time/)\n* [Jsoup](http://jsoup.org/)\n* [LoganSquare](https://github.com/bluelinelabs/LoganSquare)\n* [New Relic](https://docs.newrelic.com/docs/mobile-monitoring/mobile-sdk-api/new-relic-mobile-sdk-api/working-android-sdk-api)\n* [Parse](https://parse.com/products/android)\n* [Realm](http://realm.io/news/realm-for-android/)\n* [RxJava 0.21](https://github.com/ReactiveX/RxJava/wiki/The-RxJava-Android-Module)\n* [RxJava-Promises](https://github.com/darylteo/rxjava-promises)\n* [Support Library v7](https://developer.android.com/tools/support-library/features.html#v7-appcompat)\n* [Sqlite](http://www.sqlite.org/index.html)\n* [Square Dagger](https://github.com/square/dagger)\n* [Square OkHttp](http://square.github.io/okhttp/)\n* [Square Okio](https://github.com/square/okio)\n* [Square Otto](http://square.github.io/otto/)\n* [Square Picasso](https://github.com/square/picasso)\n* [Square Retrofit](http://square.github.io/retrofit/)\n* [Square Wire](https://github.com/square/wire)\n* [SVG Android](https://github.com/pents90/svg-android)\n* [Icepick](https://github.com/frankiesardo/icepick)\n* [Simple-Xml](http://simple.sourceforge.net/)\n* [Tencent Bugly](http://bugly.qq.com/)\n\n\n### ProGuard tip for android libraries developers\nThe 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\n\nThe developers only need to specify the Proguard file with `consumerProguardFiles` instead of `proguardFiles`:\n\n```\ndefaultConfig {\n    consumerProguardFiles 'proguard-file.pro'\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrschultz%2Fandroid-proguard-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrschultz%2Fandroid-proguard-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrschultz%2Fandroid-proguard-snippets/lists"}