Skip to content

Commit

Permalink
Merge pull request getodk#3219 from lognaturel/proguard-prototype
Browse files Browse the repository at this point in the history
Add proguard rule for action package to enable serialization
  • Loading branch information
yanokwa authored Jul 18, 2019
2 parents 7f00621 + a763fec commit ffd268b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions collect_app/proguard-rules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
-dontwarn com.rarepebble.**

-keep class org.javarosa.**
-keep class org.odk.collect.android.logic.actions.**
-keep class android.support.v7.widget.** { *; }
-keep class com.google.android.gms.internal.firebase-perf.** { *; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ public static synchronized void initializeJavaRosa(IPropertyManager mgr) {
PrototypeManager.registerPrototypes(CoreModelModule.classNames);
new XFormsModule().registerModule();

// When registering prototypes from Collect, a proguard exception also needs to be added
PrototypeManager.registerPrototype("org.odk.collect.android.logic.actions.setgeopoint.CollectSetGeopointAction");
XFormParser.registerActionHandler(CollectSetGeopointActionHandler.ELEMENT_NAME, new CollectSetGeopointActionHandler());

Expand Down

0 comments on commit ffd268b

Please sign in to comment.