Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

Commit 9dc8229

Browse files
authored
Merge pull request #554 from cloudant/552-proguard-android
552 add proguard in docs
2 parents 877ed24 + f08e52d commit 9dc8229

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

doc/events.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,11 @@ For `DocumentStore` events there is a similar superclass: `DocumentStoreModified
6262

6363
Whether to use these generic events or one method per event type is simply a matter of style.
6464

65-
Note that subscribing methods are invoked synchronously. This means that it is important to
65+
Note that subscribing methods are:
66+
- invoked synchronously. This means that it is important to
6667
return quickly from the subscribing method - otherwise performance of the `Database` or
6768
`DocumentStore` could be impaired.
69+
- invoked reflectively and will need specific excludes if using ProGuard.
6870

6971
If the subscribing method needs to start long-running tasks, we recommend you use an
7072
asynchronous approach such as spawning a thread and returning immediately.

sample/todo-sync/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,6 @@ Once installed, the default settings entered in the XML file above should appear
8888
To test your connection, add a couple of tasks and hit "Upload (Push)" from the menu in the top right. You should see the JSON documents appear in your Cloudant database. Changes to the documents in the Cloudant database will be replicated back to the device when you tap "Download (Pull)".
8989

9090
If you see "Replication Error" rather than "Replication Complete" as a popup message, check the logs using `adb` to see what the exception was.
91+
92+
**Note:** If you require ProGuard and your app has a different namespace, you'll need an additional `keep` in `proguard.cfg` to preserve the `@Subscribe` methods that are reflectively invoked.
93+

0 commit comments

Comments
 (0)