upgrade status-go
This commit is contained in:
parent
024cf6d6b8
commit
e164a7a375
|
@ -15,5 +15,5 @@ android {
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'com.facebook.react:react-native:+'
|
compile 'com.facebook.react:react-native:+'
|
||||||
compile 'com.instabug.library:instabug:3+'
|
compile 'com.instabug.library:instabug:3+'
|
||||||
compile(group: 'status-im', name: 'status-go', version: 'jail-signals-gfe007d5', ext: 'aar')
|
compile(group: 'status-im', name: 'status-go', version: 'whisper-on-geth1.6.1', ext: 'aar')
|
||||||
}
|
}
|
||||||
|
|
|
@ -141,7 +141,8 @@ class StatusModule extends ReactContextBaseJavaModule implements LifecycleEventL
|
||||||
}
|
}
|
||||||
|
|
||||||
String config;
|
String config;
|
||||||
String defaultConfig = Statusgo.GenerateConfig(dataFolder, 3);
|
int devCluster = this.debug ? 1 : 0;
|
||||||
|
String defaultConfig = Statusgo.GenerateConfig(dataFolder, 3, devCluster);
|
||||||
try {
|
try {
|
||||||
JSONObject jsonConfig = new JSONObject(defaultConfig);
|
JSONObject jsonConfig = new JSONObject(defaultConfig);
|
||||||
String gethLogFileName = "geth.log";
|
String gethLogFileName = "geth.log";
|
||||||
|
|
|
@ -202,7 +202,12 @@ RCT_EXPORT_METHOD(startNode:(RCTResponseSenderBlock)onResultCallback) {
|
||||||
NSLog(@"error %@", error);
|
NSLog(@"error %@", error);
|
||||||
}else
|
}else
|
||||||
NSLog(@"folderName: %@", folderName);
|
NSLog(@"folderName: %@", folderName);
|
||||||
char *configChars = GenerateConfig([folderName.path UTF8String], 3);
|
#if DEBUG
|
||||||
|
int devCluster = 1;
|
||||||
|
#else
|
||||||
|
int devCluster = 0;
|
||||||
|
#endif
|
||||||
|
char *configChars = GenerateConfig([folderName.path UTF8String], 3, devCluster);
|
||||||
NSString *config = [NSString stringWithUTF8String: configChars];
|
NSString *config = [NSString stringWithUTF8String: configChars];
|
||||||
NSData *configData = [config dataUsingEncoding:NSUTF8StringEncoding];
|
NSData *configData = [config dataUsingEncoding:NSUTF8StringEncoding];
|
||||||
NSDictionary *resultingConfigJson = [NSJSONSerialization JSONObjectWithData:configData options:NSJSONReadingMutableContainers error:nil];
|
NSDictionary *resultingConfigJson = [NSJSONSerialization JSONObjectWithData:configData options:NSJSONReadingMutableContainers error:nil];
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
<artifactItem>
|
<artifactItem>
|
||||||
<groupId>status-im</groupId>
|
<groupId>status-im</groupId>
|
||||||
<artifactId>status-go-ios-simulator</artifactId>
|
<artifactId>status-go-ios-simulator</artifactId>
|
||||||
<version>jail-signals-gfe007d5</version>
|
<version>whisper-on-geth1.6.1</version>
|
||||||
<type>zip</type>
|
<type>zip</type>
|
||||||
<overWrite>true</overWrite>
|
<overWrite>true</overWrite>
|
||||||
<outputDirectory>./</outputDirectory>
|
<outputDirectory>./</outputDirectory>
|
||||||
|
|
Loading…
Reference in New Issue