android proguards
Use one line to apply almost famous libraries of proguard configurations:
compile 'com.infstory:proguard-snippets:1.0.0'
That's it.
Installation
Via jcenter
repositories {
jcenter()
}
dependencies {
compile 'com.infstory:proguard-snippets:1.0.0'
}
Or via jitpack.io
repositories {
jcenter()
maven {
url "https://jitpack.io"
}
}
dependencies {
compile 'com.github.yongjhih.android-proguards:android-proguards:-SNAPSHOT'
}
Specify RxJava proguard rules:
repositories {
jcenter()
maven {
url "https://jitpack.io"
}
}
dependencies {
compile 'io.reactivex:rxjava:1.2.1'
compile 'com.github.yongjhih.android-proguards:rxjava-pro:-SNAPSHOT'
}
For each proguard rule dep:
compile 'com.github.yongjhih.android-proguards:acra-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:action-bar-sherlock-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:activeandroid-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:adjust-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:admob-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:alibaba-fastjson-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:androidannotations-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:android-gif-drawable-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:androidquery-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:android-view-animations-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:auto-parse-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:avro-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:aws-1.7-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:aws-2.1.5-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:butterknife-6-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:butterknife-7-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:calligraphy-2.1.0-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:circular-progress-button-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:crashlytics-1-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:crashlytics-2-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:crittercism-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:crosswalk-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:dagger-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:deeplinkdispatch-1.5-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:easy-adapter-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:eventbus-2-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:eventbus-3-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:fabric-twitter-kit-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:facebook-conceal-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:facebook-fresco-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:facebook-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:facebook-stetho-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:flurry-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:glide-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:google-admob-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:google-analytics-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:google-auto-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:google-iap-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:google-play-services-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:greendao-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:gson-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:guava-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:icepick-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:jackson-2-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:joda-convert-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:joda-time-android-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:joda-time-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:jsoup-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:logansquare-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:logback-android-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:mikepenz-android-iconics-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:mixpanel-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:mopub-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:mpandroidchart-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:new-relic-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:okhttp3-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:okhttp-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:okio-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:otto-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:parceler-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:parse-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:picasso-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:project-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:realm-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:retrofit2-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:retrofit-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:retrolambda-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:rxjava-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:rxjava-promises-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:signpost-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:simple-parse-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:simple-xml-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:sqlite-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:support-design-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:support-v7-appcompat-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:support-v7-cardview-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:svgandroid-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:tencent-bugly-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:twowayview-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:wire-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:wizardroid-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:google-gms-safetynet-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:google-gms-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:zendesk-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:zendesk-chat-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:auto-bundle-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:webkit-pro:-SNAPSHOT' compile 'com.github.yongjhih.android-proguards:apache-http-legacy-pro:-SNAPSHOT'
Details
Pack proguard rules as proguard.txt
into AAR with consumerProguardFiles
android-gradle ( 0.5.7+) directive.
wget https://bintray.com/yongjhih/maven/download_file?file_path=com%2Finfstory%2Fproguard-snippets%2F1.0.0%2Fproguard-snippets-1.0.0.aar mv proguard-snippets-1.0.0.aar a.zip unzip a.zip
You can find out proguard.txt
.
See Also
Libraries
- ACRA 4.5.0
- ActionBarSherlock 4.4.0
- ActiveAndroid
- Adjust
- Amazon Web Services 1.6.x / 1.7.x
- Amazon Web Services 2.1.x
- AndroidAnnotations
- android-gif-drawable
- Apache Avro
- Alibaba Fastjson
- Butterknife 5.1.2
- Crashlytics 1.+ / 2.+
- Crittercism
- EventBus 2.0.2
- Facebook 3.2.0
- Facebook Conceal
- Facebook Stetho
- Facebook Fresco
- Flurry 3.4.0
- Google Analytics 3.0+
- Google Guava
- Google Play Services 4.3.23
- GreenDao 1.3.x
- GSON 2.2.4
- Jackson 2.x
- Joda-Convert 1.6
- Joda-Time 2.3
- Jsoup
- LoganSquare
- New Relic
- Parse
- Realm
- RxJava 0.21: RxJava2+ no need anymore
- RxJava-Promises
- Support Library v7: 23+ should already consumed
- Sqlite
- Square Dagger
- Square OkHttp
- Square Okio
- Square Otto
- Square Picasso
- Square Retrofit: Retrofit1 and Retrofit2
- Square Wire
- Square LeakCanary 1.4+ already consumed
- SVG Android
- Icepick
- Simple-Xml
- Tencent Bugly
Credit
- Krschultz: krschultz/android-proguard-snippets
License
Copyright 2015 8tory, Inc. Copyright 2013 Kevin Schultz Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.