Skip to content

Commit decb1e8

Browse files
authored
Implement keepclasses proguard consumer rules (#150)
1 parent 5ed7aeb commit decb1e8

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
.cxx
1010
local.properties
1111
.env
12+
upload-keystore.jks

lib/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ android {
5454
buildTypes {
5555
release {
5656
minifyEnabled false
57-
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
57+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt')
58+
consumerProguardFiles 'proguard-rules.pro'
5859
}
5960
}
6061
compileOptions {

lib/proguard-rules.pro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@
1818

1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
21-
#-renamesourcefileattribute SourceFile
21+
#-renamesourcefileattribute SourceFile
22+
23+
-keep class com.shopify.checkoutsheetkit.** { *; }

samples/MobileBuyIntegration/app/proguard-rules.pro

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,12 @@
55
# For more details, see
66
# http://developer.android.com/guide/developing/tools/proguard.html
77

8-
# If your project uses WebView with JS, uncomment the following
9-
# and specify the fully qualified class name to the JavaScript interface
10-
# class:
11-
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12-
# public *;
13-
#}
14-
158
# Uncomment this to preserve the line number information for
169
# debugging stack traces.
17-
#-keepattributes SourceFile,LineNumberTable
10+
-keepattributes SourceFile,LineNumberTable
1811

1912
# If you keep the line number information, uncomment this to
2013
# hide the original source file name.
2114
#-renamesourcefileattribute SourceFile
15+
16+
-dontwarn okhttp3.internal.http.HttpDate

0 commit comments

Comments
 (0)