Skip to content

Commit 62effaf

Browse files
Merge pull request #61 from heimashi/master
Move the proguard rules into aar by consumerProguardFiles
2 parents e6c0370 + 7dc280e commit 62effaf

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

README-zh.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,6 @@ AutoSizeConfig.getInstance().getUnitsManager()
183183
.setSupportSubunits(Subunits.MM);
184184
```
185185

186-
## ProGuard
187-
```
188-
-keep class me.jessyan.autosize.** { *; }
189-
-keep interface me.jessyan.autosize.** { *; }
190-
```
191-
192186

193187
## Donate
194188
![alipay](https://raw.githubusercontent.com/JessYanCoding/MVPArms/master/image/pay_alipay.jpg) ![](https://raw.githubusercontent.com/JessYanCoding/MVPArms/master/image/pay_wxpay.jpg)

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,6 @@ AutoSizeConfig.getInstance().getUnitsManager()
185185
.setSupportSubunits(Subunits.MM);
186186
```
187187

188-
## ProGuard
189-
```
190-
-keep class me.jessyan.autosize.** { *; }
191-
-keep interface me.jessyan.autosize.** { *; }
192-
```
193-
194188

195189
## Donate
196190
![alipay](https://raw.githubusercontent.com/JessYanCoding/MVPArms/master/image/pay_alipay.jpg) ![](https://raw.githubusercontent.com/JessYanCoding/MVPArms/master/image/pay_wxpay.jpg)

autosize/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ android {
99
targetSdkVersion rootProject.targetSdkVersion
1010
versionCode rootProject.versionCode
1111
versionName rootProject.versionName
12+
consumerProguardFiles 'proguard-rules.pro'
1213
}
1314

1415
buildTypes {

autosize/proguard-rules.pro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@
1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
2121
#-renamesourcefileattribute SourceFile
22+
23+
-keep class me.jessyan.autosize.** { *; }
24+
-keep interface me.jessyan.autosize.** { *; }

0 commit comments

Comments
 (0)