upgrade status-go

This commit is contained in:
Roman Volosovskyi 2017-06-05 18:35:02 +03:00 committed by Roman Volosovskyi
parent 024cf6d6b8
commit e164a7a375
4 changed files with 10 additions and 4 deletions

View File

@ -15,5 +15,5 @@ android {
dependencies {
compile 'com.facebook.react:react-native:+'
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')
}

View File

@ -141,7 +141,8 @@ class StatusModule extends ReactContextBaseJavaModule implements LifecycleEventL
}
String config;
String defaultConfig = Statusgo.GenerateConfig(dataFolder, 3);
int devCluster = this.debug ? 1 : 0;
String defaultConfig = Statusgo.GenerateConfig(dataFolder, 3, devCluster);
try {
JSONObject jsonConfig = new JSONObject(defaultConfig);
String gethLogFileName = "geth.log";

View File

@ -202,7 +202,12 @@ RCT_EXPORT_METHOD(startNode:(RCTResponseSenderBlock)onResultCallback) {
NSLog(@"error %@", error);
}else
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];
NSData *configData = [config dataUsingEncoding:NSUTF8StringEncoding];
NSDictionary *resultingConfigJson = [NSJSONSerialization JSONObjectWithData:configData options:NSJSONReadingMutableContainers error:nil];

View File

@ -25,7 +25,7 @@
<artifactItem>
<groupId>status-im</groupId>
<artifactId>status-go-ios-simulator</artifactId>
<version>jail-signals-gfe007d5</version>
<version>whisper-on-geth1.6.1</version>
<type>zip</type>
<overWrite>true</overWrite>
<outputDirectory>./</outputDirectory>