Page MenuHomePhabricator

Extend PlatformSpecificTools CommonCpp api with an API to retrieve notifications olm account storage path
ClosedPublic

Authored by marcin on Feb 20 2023, 3:21 AM.
Tags
None
Referenced Files
F1778084: D6773.diff
Fri, May 17, 8:12 AM
Unknown Object (File)
Sat, May 11, 10:17 AM
Unknown Object (File)
Sat, May 11, 10:17 AM
Unknown Object (File)
Sat, May 11, 10:17 AM
Unknown Object (File)
Sat, May 11, 7:22 AM
Unknown Object (File)
Fri, May 10, 11:57 PM
Unknown Object (File)
Fri, May 10, 11:57 PM
Unknown Object (File)
Fri, May 10, 11:57 PM
Subscribers

Details

Summary

This differential extends PlatformSpecificTools CommonCpp api with an API to retrieve notifications olm account storage path. It also implements it on iOS and in C++ on Android. Relevant native Java method is implemented in parent differential to this one and is called via JNI
in Android C++ implementation.

Test Plan

Call PlatformSpecificTools::getNotificationsCryptoAccountPath() in NotificationService.mm and in AppDelegate.mm. This tests iOS. Call it somewhere in SQLiteQueryExecutor or CommCoreModule. This tests on Android (and iOS as well).

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

marcin added 2 blocking reviewer(s): bartek, kamil.

Adding @bartek as blocking since he is native expert and adding @kamil as blocking since I am using an API that he implemented.

marcin published this revision for review.Feb 20 2023, 4:43 AM
This revision is now accepted and ready to land.Feb 22 2023, 2:11 AM
native/android/app/src/cpp/PlatformSpecificTools.cpp
52

I'm not sure why, but this doesn't appear to be working. See here and here

native/android/app/src/cpp/PlatformSpecificTools.cpp
52

Ignore, this was incorrect