Page MenuHomePhabricator

D4391.id14154.diff
No OneTemporary

D4391.id14154.diff

diff --git a/native/ios/Comm.xcodeproj/project.pbxproj b/native/ios/Comm.xcodeproj/project.pbxproj
--- a/native/ios/Comm.xcodeproj/project.pbxproj
+++ b/native/ios/Comm.xcodeproj/project.pbxproj
@@ -216,6 +216,7 @@
CBEA4A89286EECCC00DFCFF5 /* NonBlockingLock.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = NonBlockingLock.mm; path = Comm/TemporalMessageStorage/NonBlockingLock.mm; sourceTree = "<group>"; };
CBEA4A8C286EED3900DFCFF5 /* EncryptedFileUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = EncryptedFileUtils.h; path = Comm/TemporalMessageStorage/EncryptedFileUtils.h; sourceTree = "<group>"; };
CBEA4A8D286EED6A00DFCFF5 /* EncryptedFileUtils.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = EncryptedFileUtils.mm; path = Comm/TemporalMessageStorage/EncryptedFileUtils.mm; sourceTree = "<group>"; };
+ CBEA4A90286EEDAE00DFCFF5 /* TemporalMessageStorage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TemporalMessageStorage.h; path = Comm/TemporalMessageStorage/TemporalMessageStorage.h; sourceTree = "<group>"; };
F53DA7B3F26C2798DCE74A94 /* Pods-Comm.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Comm.debug.xcconfig"; path = "Target Support Files/Pods-Comm/Pods-Comm.debug.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */
@@ -567,6 +568,7 @@
CBEA4A87286EEC7600DFCFF5 /* TemporalMessageStorage */ = {
isa = PBXGroup;
children = (
+ CBEA4A90286EEDAE00DFCFF5 /* TemporalMessageStorage.h */,
CBEA4A8D286EED6A00DFCFF5 /* EncryptedFileUtils.mm */,
CBEA4A8C286EED3900DFCFF5 /* EncryptedFileUtils.h */,
CBEA4A89286EECCC00DFCFF5 /* NonBlockingLock.mm */,
diff --git a/native/ios/Comm/TemporalMessageStorage/TemporalMessageStorage.h b/native/ios/Comm/TemporalMessageStorage/TemporalMessageStorage.h
new file mode 100644
--- /dev/null
+++ b/native/ios/Comm/TemporalMessageStorage/TemporalMessageStorage.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#import <Foundation/Foundation.h>
+
+@interface TemporalMessageStorage : NSObject
+@property(readonly) NSURL *directoryURL;
+@property(readonly) NSString *directoryPath;
+@property(readonly) NSString *mainStoragePath;
+@property(readonly) NSString *lockName;
+
+- (instancetype)initAtPath:(NSString *)directoryName
+ withMainStorage:(NSString *)mainStorageName
+ withLockName:(NSString *)lockName;
+- (void)writeMessage:(NSString *)message;
+- (NSArray<NSString *> *)readAndClearMessages;
+- (void)ensureLockUsable;
+@end

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 26, 3:15 AM (21 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2582250
Default Alt Text
D4391.id14154.diff (2 KB)

Event Timeline