This repository was archived by the owner on Jul 21, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,19 @@ Request additional libraries through issues. Pull requests are welcome.
1010[ ![ Android Arsenal] ( https://img.shields.io/badge/Android%20Arsenal-android--proguard--snippets-brightgreen.svg?style=flat )] ( https://android-arsenal.com/details/3/1242 )
1111
1212### Usage
13+
14+ #### 1. Include the proguard files in your project
15+ First of all, add the repository as a git submodule (or just copy the proguard files in your project).
16+
17+ #### 2. Integrate the proguard files in your project
1318``` groovy
1419android {
1520 buildTypes {
1621 release {
1722 minifyEnabled true
1823 // Library specific proguard files
19- proguardFile 'proguard-google-play-services.pro'
20- proguardFile 'proguard-gson.pro'
24+ proguardFile '$PATH_TO_THE_PROGUARD_FILES/ proguard-google-play-services.pro'
25+ proguardFile '$PATH_TO_THE_PROGUARD_FILES/ proguard-gson.pro'
2126 ...
2227 // Default proguard files & project app specific rules,
2328 // see examples folder for more information
@@ -32,8 +37,7 @@ android {
3237
3338Instead of declaring each configuration file manually, you could also store them in a seperate directory and include them all at once:
3439``` groovy
35- FileCollection proGuardFileCollection = files { file('./proguard').listFiles() }
36- proguardFiles(proGuardFileCollection)
40+ proguardFiles fileTree(dir: "$PATH_TO_THE_PROGUARD_FILES", include: ["*.pro"]).asList().toArray()
3741```
3842
3943### Libraries
You can’t perform that action at this time.
0 commit comments