From f06c114dabb88324aa6ef4bffc14d40bd910e116 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Fri, 23 Sep 2016 17:14:43 +0300 Subject: [PATCH] upgarde status-go for ios Former-commit-id: 29a17a8a8a6f0521d6eb0060a34a560123c4d99a --- .../ios/RCTStatus/RCTStatus.m | 24 +++++++++---------- .../Versions/A/Headers/Statusgo.h | 18 +++++++------- .../Versions/A/Statusgo.REMOVED.git-id | 2 +- 3 files changed, 23 insertions(+), 21 deletions(-) diff --git a/modules/react-native-status/ios/RCTStatus/RCTStatus.m b/modules/react-native-status/ios/RCTStatus/RCTStatus.m index 1bc368b58b..51279f710e 100644 --- a/modules/react-native-status/ios/RCTStatus/RCTStatus.m +++ b/modules/react-native-status/ios/RCTStatus/RCTStatus.m @@ -16,9 +16,9 @@ RCT_EXPORT_MODULE(); RCT_EXPORT_METHOD(initJail: (NSString *) js callback:(RCTResponseSenderBlock)callback) { #if DEBUG - NSLog(@"initJail() method called"); + NSLog(@"InitJail() method called"); #endif - initJail((char *) [js UTF8String]); + InitJail((char *) [js UTF8String]); callback(@[[NSNull null]]); } @@ -27,9 +27,9 @@ RCT_EXPORT_METHOD(parseJail:(NSString *)chatId js:(NSString *)js callback:(RCTResponseSenderBlock)callback) { #if DEBUG - NSLog(@"parseJail() method called"); + NSLog(@"ParseJail() method called"); #endif - char * result = parse((char *) [chatId UTF8String], (char *) [js UTF8String]); + char * result = Parse((char *) [chatId UTF8String], (char *) [js UTF8String]); callback(@[[NSString stringWithUTF8String: result]]); } @@ -39,9 +39,9 @@ RCT_EXPORT_METHOD(callJail:(NSString *)chatId params:(NSString *)params callback:(RCTResponseSenderBlock)callback) { #if DEBUG - NSLog(@"callJail() method called"); + NSLog(@"CallJail() method called"); #endif - char * result = call((char *) [chatId UTF8String], (char *) [path UTF8String], (char *) [params UTF8String]); + char * result = Call((char *) [chatId UTF8String], (char *) [path UTF8String], (char *) [params UTF8String]); callback(@[[NSString stringWithUTF8String: result]]); } @@ -50,7 +50,7 @@ RCT_EXPORT_METHOD(callJail:(NSString *)chatId //////////////////////////////////////////////////////////////////// startNode RCT_EXPORT_METHOD(startNode:(RCTResponseSenderBlock)onResultCallback) { #if DEBUG - NSLog(@"startNode() method called"); + NSLog(@"StartNode() method called"); #endif if (!isStatusInitialized){ isStatusInitialized = true; @@ -77,7 +77,7 @@ RCT_EXPORT_METHOD(startNode:(RCTResponseSenderBlock)onResultCallback) { dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5 * NSEC_PER_SEC)), dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^(void) { - addPeer((char *) [peer UTF8String]); + AddPeer((char *) [peer UTF8String]); }); onResultCallback(@[[NSNull null]]); return; @@ -99,7 +99,7 @@ RCT_EXPORT_METHOD(stopNode:(RCTResponseSenderBlock)callback) { RCT_EXPORT_METHOD(createAccount:(NSString *)password callback:(RCTResponseSenderBlock)callback) { #if DEBUG - NSLog(@"createAccount() method called"); + NSLog(@"CreateAccount() method called"); #endif char * result = CreateAccount((char *) [password UTF8String]); callback(@[[NSString stringWithUTF8String: result]]); @@ -110,7 +110,7 @@ RCT_EXPORT_METHOD(recoverAccount:(NSString *)passphrase password:(NSString *)password callback:(RCTResponseSenderBlock)callback) { #if DEBUG - NSLog(@"recoverAccount() method called"); + NSLog(@"RecoverAccount() method called"); #endif char * result = RecoverAccount((char *) [password UTF8String], (char *) [passphrase UTF8String]); callback(@[[NSString stringWithUTF8String: result]]); @@ -121,7 +121,7 @@ RCT_EXPORT_METHOD(login:(NSString *)address password:(NSString *)password callback:(RCTResponseSenderBlock)callback) { #if DEBUG - NSLog(@"login() method called"); + NSLog(@"Login() method called"); #endif char * result = Login((char *) [address UTF8String], (char *) [password UTF8String]); callback(@[[NSString stringWithUTF8String: result]]); @@ -134,7 +134,7 @@ RCT_EXPORT_METHOD(completeTransaction:(NSString *)hash password:(NSString *)password callback:(RCTResponseSenderBlock)callback) { #if DEBUG - NSLog(@"completeTransaction() method called"); + NSLog(@"CompleteTransaction() method called"); #endif char * result = CompleteTransaction((char *) [hash UTF8String], (char *) [password UTF8String]); callback(@[[NSString stringWithUTF8String: result]]); diff --git a/modules/react-native-status/ios/RCTStatus/Statusgo.framework/Versions/A/Headers/Statusgo.h b/modules/react-native-status/ios/RCTStatus/Statusgo.framework/Versions/A/Headers/Statusgo.h index a39108aee1..dbc2fd1a33 100755 --- a/modules/react-native-status/ios/RCTStatus/Statusgo.framework/Versions/A/Headers/Statusgo.h +++ b/modules/react-native-status/ios/RCTStatus/Statusgo.framework/Versions/A/Headers/Statusgo.h @@ -1,6 +1,6 @@ /* Created by "go tool cgo" - DO NOT EDIT. */ -/* package github.com/status-im/status-go/src */ +/* package github.com/status-im/status-go/cmd/status */ /* Start of preamble from import "C" comments. */ @@ -54,6 +54,8 @@ extern "C" { extern char* CreateAccount(char* p0); +extern char* CreateChildAccount(char* p0, char* p1); + extern char* RecoverAccount(char* p0, char* p1); extern char* Login(char* p0, char* p1); @@ -66,19 +68,19 @@ extern char* CompleteTransaction(char* p0, char* p1); extern char* StartNode(char* p0); -extern char* parse(char* p0, char* p1); +extern void InitJail(char* p0); -extern char* call(char* p0, char* p1, char* p2); +extern char* Parse(char* p0, char* p1); -extern void initJail(char* p0); +extern char* Call(char* p0, char* p1, char* p2); -extern char* addPeer(char* p0); +extern char* AddPeer(char* p0); -extern char* addWhisperFilter(char* p0); +extern char* AddWhisperFilter(char* p0); -extern void removeWhisperFilter(GoInt p0); +extern void RemoveWhisperFilter(GoInt p0); -extern void clearWhisperFilters(); +extern void ClearWhisperFilters(); #ifdef __cplusplus } diff --git a/modules/react-native-status/ios/RCTStatus/Statusgo.framework/Versions/A/Statusgo.REMOVED.git-id b/modules/react-native-status/ios/RCTStatus/Statusgo.framework/Versions/A/Statusgo.REMOVED.git-id index fc775389ab..6697782752 100644 --- a/modules/react-native-status/ios/RCTStatus/Statusgo.framework/Versions/A/Statusgo.REMOVED.git-id +++ b/modules/react-native-status/ios/RCTStatus/Statusgo.framework/Versions/A/Statusgo.REMOVED.git-id @@ -1 +1 @@ -57b36335a9cedc1a031857a1ae2af94542a21666 \ No newline at end of file +3916205e2b075e73892970f32da4526c745e3bf0 \ No newline at end of file