Skip to content

Commit c8ce933

Browse files
kayvannjnitzanj
authored andcommitted
Add consumerProguardFiles to automatically generate proguard rules for consumers. Closes #12
1 parent f7a0b32 commit c8ce933

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ android {
1717
release {
1818
minifyEnabled false
1919
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
20+
consumerProguardFiles 'proguard-rules.pro'
2021
}
2122
}
2223

@@ -135,4 +136,4 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
135136
artifacts {
136137
archives javadocJar
137138
archives sourcesJar
138-
}
139+
}

lib/proguard-rules.pro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-keep class com.cloudinary.android.*Strategy

0 commit comments

Comments
 (0)