Skip to content
Open
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions image_cropper/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ android {
minSdkVersion 16
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
consumerProguardFiles 'consumer-proguard-rules.pro'
}
}
lintOptions {
disable 'InvalidPackage'
}
Expand Down
7 changes: 7 additions & 0 deletions image_cropper/android/consumer-proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Keep OkHttp classes for UCrop
-keep class okhttp3.** { *; }
-dontwarn okhttp3.**

# Keep UCrop classes
-keep class com.yalantis.ucrop.** { *; }
-dontwarn com.yalantis.ucrop.**