Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

Update multiple proguard files import #137

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,31 @@ android {
}
```

Instead of declaring each configuration file manually, you could also store them in a seperate directory and include them all at once:
Instead of declaring each configuration file manually, you could also store them in a `proguard` directory under your application module and include them all at once in default config:
```groovy
FileCollection proGuardFileCollection = files { file('./proguard').listFiles() }
proguardFiles(proGuardFileCollection)
android {
defaultConfig {
...
// Add default progurad file
proguardFile getDefaultProguardFile('proguard-android.txt')
// include all proguard rules from proguard folder in your module dir
proguardFiles fileTree(include: ['*.pro'], dir: 'proguard').asList().toArray()
}
}

buildTypes {
debug {
debuggable true
minifyEnabled false
shrinkResources false
}
release {
debuggable false
minifyEnabled true
shrinkResources true
}
}

```

### Libraries
Expand Down