move statusgo to artifactory
This commit is contained in:
parent
bd3eea73fd
commit
c1e5a64836
|
@ -132,9 +132,7 @@ dependencies {
|
||||||
compile project(':ReactNativeAndroidSmsListener')
|
compile project(':ReactNativeAndroidSmsListener')
|
||||||
compile project(':react-native-camera')
|
compile project(':react-native-camera')
|
||||||
compile project(':react-native-status')
|
compile project(':react-native-status')
|
||||||
// todo replace this when jail will be integrated into geth
|
compile(group: 'status-im', name: 'status-go', version: '0.1.0-201606220917-ec4b9a', ext: 'aar')
|
||||||
compile (name: "geth-android-16", ext:"aar")
|
|
||||||
//compile(group: 'status-im', name: 'android-geth', version: '1.4.0-201604110816-a97a114', ext: 'aar')
|
|
||||||
|
|
||||||
compile fileTree(dir: "node_modules/realm/android/libs", include: ["*.jar"])
|
compile fileTree(dir: "node_modules/realm/android/libs", include: ["*.jar"])
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
|
@ -5,7 +5,6 @@ import android.content.Intent;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.os.AsyncTask;
|
import android.os.AsyncTask;
|
||||||
import android.os.IBinder;
|
import android.os.IBinder;
|
||||||
import android.os.Looper;
|
|
||||||
import android.os.Message;
|
import android.os.Message;
|
||||||
import android.os.Messenger;
|
import android.os.Messenger;
|
||||||
import android.support.annotation.Nullable;
|
import android.support.annotation.Nullable;
|
||||||
|
@ -14,7 +13,7 @@ import android.os.Environment;
|
||||||
|
|
||||||
import java.lang.ref.WeakReference;
|
import java.lang.ref.WeakReference;
|
||||||
|
|
||||||
import com.github.ethereum.go_ethereum.cmd.Geth;
|
import com.github.status_im.status_go.Statusgo;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
|
@ -78,20 +77,11 @@ public class GethService extends Service {
|
||||||
extStore.getAbsolutePath() :
|
extStore.getAbsolutePath() :
|
||||||
getApplicationInfo().dataDir;
|
getApplicationInfo().dataDir;
|
||||||
|
|
||||||
final Runnable addPeer = new Runnable() {
|
|
||||||
public void run() {
|
|
||||||
Log.w("Geth", "adding peer");
|
|
||||||
Geth.run("--exec admin.addPeer(\"enode://e2f28126720452aa82f7d3083e49e6b3945502cb94d9750a15e27ee310eed6991618199f878e5fbc7dfa0e20f0af9554b41f491dc8f1dbae8f0f2d37a3a613aa@139.162.13.89:55555\") attach http://localhost:8545");
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
new Thread(new Runnable() {
|
new Thread(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
Geth.run("--shh --ipcdisable --nodiscover --rpc --rpcapi db,eth,net,web3,shh,admin --fast --datadir=" + dataFolder);
|
Statusgo.doStartNode(dataFolder);
|
||||||
}
|
}
|
||||||
}).start();
|
}).start();
|
||||||
|
|
||||||
handler.postDelayed(addPeer, 5000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
|
@ -103,8 +93,7 @@ public class GethService extends Service {
|
||||||
@Override
|
@Override
|
||||||
public void onCreate() {
|
public void onCreate() {
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
System.loadLibrary("gethraw");
|
System.loadLibrary("statusgo");
|
||||||
System.loadLibrary("geth");
|
|
||||||
|
|
||||||
if (!isGethInitialized) {
|
if (!isGethInitialized) {
|
||||||
isGethInitialized = true;
|
isGethInitialized = true;
|
||||||
|
|
Loading…
Reference in New Issue