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
Unknown Object (File)
Sun, Apr 28, 9:04 AM
Unknown Object (File)
Sun, Apr 28, 9:04 AM
Unknown Object (File)
Sun, Apr 28, 9:04 AM
Unknown Object (File)
Sun, Apr 28, 9:04 AM
Unknown Object (File)
Sun, Apr 28, 9:04 AM
Unknown Object (File)
Sun, Apr 28, 9:02 AM
Unknown Object (File)
Sun, Apr 28, 8:21 AM
Unknown Object (File)
Mar 28 2024, 5:25 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