Implement JNI files to expose C++ thread update functionality to CommNotificationsHandler.java
Details
Details
No testing plan. Child differential will use those files to update thread unread status in CommNotificationsHandler and will provide testing plan.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Great work figuring this all out... the JNI stuff is not easyI
native/android/app/src/cpp/ThreadOperationsJNIHelper.cpp | ||
---|---|---|
13 ↗ | (On Diff #13392) | I assume it's okay to call initialize multiple times? (Eg. initialize is idempotent) |
native/android/app/src/cpp/ThreadOperationsJNIHelper.cpp | ||
---|---|---|
13 ↗ | (On Diff #13392) | Yes! SQLiteQueryExecutor::initialize uses std::call_once so it is idempotent. |
native/android/app/src/cpp/ThreadOperationsJNIHelper.cpp | ||
---|---|---|
8–9 ↗ | (On Diff #13437) | Could you check if it is possible to use std::string as a parameter. According to https://github.com/facebookincubator/fbjni/blob/main/docs/quickref.md#methods-using-java-strings it seems like it might be possible. |
10 ↗ | (On Diff #13437) | It's nice that we can use bool directly |