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.
10
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
11
12
12
### 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
13
18
``` groovy
14
19
android {
15
20
buildTypes {
16
21
release {
17
22
minifyEnabled true
18
23
// 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'
21
26
...
22
27
// Default proguard files & project app specific rules,
23
28
// see examples folder for more information
@@ -32,8 +37,7 @@ android {
32
37
33
38
Instead of declaring each configuration file manually, you could also store them in a seperate directory and include them all at once:
34
39
``` groovy
35
- FileCollection proGuardFileCollection = files { file('./proguard').listFiles() }
36
- proguardFiles(proGuardFileCollection)
40
+ proguardFiles fileTree(dir: "$PATH_TO_THE_PROGUARD_FILES", include: ["*.pro"]).asList().toArray()
37
41
```
38
42
39
43
### Libraries
You can’t perform that action at this time.
0 commit comments