Skip to content

Commit 41f7632

Browse files
committed
Bundle proguard rules in AAR
1 parent b6dfe6a commit 41f7632

File tree

3 files changed

+5
-25
lines changed

3 files changed

+5
-25
lines changed

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,7 @@
5959
}
6060
```
6161

62-
5. You may want to add this to your PROGUARD config:
63-
64-
```
65-
-dontwarn com.yalantis.ucrop**
66-
-keep class com.yalantis.ucrop** { *; }
67-
-keep interface com.yalantis.ucrop** { *; }
68-
```
62+
5. The specific rules are [already bundled](ucrop/proguard-rules.pro) into the aar which can be interpreted by R8 automatically.
6963

7064
# Customization
7165

ucrop/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ android {
88
targetSdkVersion 33
99
versionCode 27
1010
versionName "2.2.9-native"
11-
11+
consumerProguardFiles 'proguard-rules.pro'
1212
vectorDrawables.useSupportLibrary = true
1313
}
1414
buildTypes {

ucrop/proguard-rules.pro

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
# Add project specific ProGuard rules here.
2-
# By default, the flags in this file are appended to flags specified
3-
# in /Users/oleksii/Library/Android/sdk/tools/proguard/proguard-android.txt
4-
# You can edit the include path and order by changing the proguardFiles
5-
# directive in build.gradle.
6-
#
7-
# For more details, see
8-
# http://developer.android.com/guide/developing/tools/proguard.html
9-
10-
# Add any project specific keep options here:
11-
12-
# If your project uses WebView with JS, uncomment the following
13-
# and specify the fully qualified class name to the JavaScript interface
14-
# class:
15-
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16-
# public *;
17-
#}
1+
-dontwarn com.yalantis.ucrop**
2+
-keep class com.yalantis.ucrop** { *; }
3+
-keep interface com.yalantis.ucrop** { *; }

0 commit comments

Comments
 (0)