Skip to content

Commit 4a96944

Browse files
authored
Update proguard-rules.pro
The java core needs this class names to be intact to detect the right parser to use. The Android SDK compiles gson so it should be available. Ebay's proguard issue indicated that org.json.JSONObject was being used, however. The reason gson is compiled is because Android's JSONObject and the JDKs are different and incompatible. It's difficult to override Android's because it's part of the library.
1 parent 94d60b9 commit 4a96944

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

shared/proguard-rules.pro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,8 @@
1515
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
1616
# public *;
1717
#}
18+
19+
-keepnames class com.google.gson.Gson
20+
-keepnames class com.fasterxml.jackson.databind.ObjectMappe
21+
-keepnames class org.json.simple.JSONObject
22+
-keepnames class org.json.JSONObject

0 commit comments

Comments
 (0)