mirror of
https://github.com/status-im/status-react.git
synced 2025-01-10 19:16:59 +00:00
92dcd1140b
The native module : `react-native-status` has always been 1 big fat file per platform which contained all of the native modules. In case of Android it was `StatusModule.java` This commit modularises it & attempts to thin out this 1 big file into these categories: - `AccountManager.java` - `EncryptionUtils.java` - `DatabaseManager.java` - `UIHelper.java` - `LogManager.java` - `NetworkManager.java` - `Utils.java` In case of iOS it was `RCTStatus.m` This commit modularises it & attempts to thin out this 1 big file into these categories: - `AccountManager.m` - `EncryptionUtils.m` - `DatabaseManager.m` - `UIHelper.m` - `LogManager.m` - `NetworkManager.m` - `Utils.m` In this commit we also remove a lot of unused native code which has no reference on cljs side.
17 lines
590 B
Objective-C
17 lines
590 B
Objective-C
#import <sys/utsname.h>
|
|
#import <Foundation/Foundation.h>
|
|
#import <React/RCTBridgeModule.h>
|
|
#import "Statusgo.h"
|
|
#import "RCTLog.h"
|
|
|
|
@interface Utils : NSObject <RCTBridgeModule>
|
|
|
|
+ (NSString *)jsonStringWithPrettyPrint:(BOOL)prettyPrint fromDictionary:(NSDictionary *)dictionary;
|
|
+ (NSString *)jsonStringWithPrettyPrint:(BOOL)prettyPrint fromArray:(NSArray *)array;
|
|
+ (NSURL *)getKeyStoreDirForKeyUID:(NSString *)keyUID;
|
|
+ (NSString *)getExportDbFilePath;
|
|
+ (NSString *)getKeyUID:(NSString *)jsonString;
|
|
+ (void)migrateKeystore:(NSString *)accountData password:(NSString *)password;
|
|
|
|
@end
|