react-native-status dependency and other
This commit is contained in:
parent
32422310e8
commit
76e2887b17
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "StatusIm",
|
||||
"interface": "reagent",
|
||||
"androidHost": "localhost",
|
||||
"androidHost": "10.0.3.2",
|
||||
"modules": [
|
||||
"react-native-contacts",
|
||||
"react-native-invertible-scroll-view",
|
||||
|
@ -16,7 +16,8 @@
|
|||
"react-native-randombytes",
|
||||
"dismissKeyboard",
|
||||
"react-native-linear-gradient",
|
||||
"react-native-android-sms-listener"
|
||||
"react-native-android-sms-listener",
|
||||
"react-native-status"
|
||||
],
|
||||
"imageDirs": [
|
||||
"images"
|
||||
|
|
|
@ -130,6 +130,7 @@ dependencies {
|
|||
compile project(':react-native-i18n')
|
||||
compile project(':react-native-linear-gradient')
|
||||
compile project(':ReactNativeAndroidSmsListener')
|
||||
compile project(':react-native-status')
|
||||
// compile(name:'geth', ext:'aar')
|
||||
compile(group: 'status-im', name: 'android-geth', version: '1.4.0-201604110816-a97a114', ext: 'aar')
|
||||
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
package com.statusim;
|
||||
|
||||
import com.facebook.react.bridge.Callback;
|
||||
import com.facebook.react.bridge.ReactApplicationContext;
|
||||
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
||||
import com.facebook.react.bridge.ReactMethod;
|
||||
|
||||
public class JailModule extends ReactContextBaseJavaModule {
|
||||
|
||||
public JailModule(ReactApplicationContext reactContext) {
|
||||
super(reactContext);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "Jail";
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
public void parse(String js, Callback succ, Callback fail) {
|
||||
succ.invoke("{\"commands\":{\"request-money\":" +
|
||||
"{\"description\":\"olala!\",\"name\":\"request-money\"," +
|
||||
"\"params\":{\"foo\":{\"type\":\"string\"}}}}," +
|
||||
"\"responses\":{}}");
|
||||
}
|
||||
}
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
package com.statusim;
|
||||
|
||||
import com.facebook.react.ReactPackage;
|
||||
import com.facebook.react.bridge.JavaScriptModule;
|
||||
import com.facebook.react.bridge.NativeModule;
|
||||
import com.facebook.react.bridge.ReactApplicationContext;
|
||||
import com.facebook.react.uimanager.ViewManager;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by rasom on 07.06.16.
|
||||
*/
|
||||
public class JailPackage implements ReactPackage {
|
||||
|
||||
@Override
|
||||
public List<Class<? extends JavaScriptModule>> createJSModules() {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<NativeModule> createNativeModules(
|
||||
ReactApplicationContext reactContext) {
|
||||
List<NativeModule> modules = new ArrayList<>();
|
||||
|
||||
modules.add(new JailModule(reactContext));
|
||||
|
||||
return modules;
|
||||
}
|
||||
}
|
|
@ -17,6 +17,7 @@ import java.util.Arrays;
|
|||
import java.util.List;
|
||||
import java.util.Properties;
|
||||
import java.io.File;
|
||||
import com.statusim.Jail.JailPackage;
|
||||
|
||||
import com.i18n.reactnativei18n.ReactNativeI18n;
|
||||
import io.realm.react.RealmReactPackage;
|
||||
|
|
|
@ -18,3 +18,6 @@ include ':react-native-linear-gradient'
|
|||
project(':react-native-linear-gradient').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-linear-gradient/android')
|
||||
include ':ReactNativeAndroidSmsListener'
|
||||
project(':ReactNativeAndroidSmsListener').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-android-sms-listener/android')
|
||||
|
||||
include ':react-native-status'
|
||||
project(':react-native-status').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-status/android')
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
"react-native-loading-spinner-overlay": "0.0.8",
|
||||
"react-native-randombytes": "^2.0.0",
|
||||
"react-native-vector-icons": "^1.3.4",
|
||||
"realm": "^0.11.1"
|
||||
"realm": "^0.11.1",
|
||||
"react-native-status": "git+ssh://git@github.com/status-im/react-native-status"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -186,7 +186,7 @@
|
|||
:name "console"
|
||||
; todo remove/change dapp config fot console
|
||||
:dapp-url "http://localhost:8185"
|
||||
:dapp-hash 123
|
||||
:dapp-hash 834331894
|
||||
:color default-chat-color
|
||||
:group-chat false
|
||||
:is-active true
|
||||
|
|
|
@ -87,8 +87,8 @@
|
|||
|
||||
(defn get-hash-by-file
|
||||
[file]
|
||||
;; todo implement
|
||||
123)
|
||||
;; todo tbd hashing algorithm
|
||||
(hash file))
|
||||
|
||||
(defn get-jail []
|
||||
(.-Jail (.-NativeModules r/react)))
|
||||
|
@ -110,6 +110,7 @@
|
|||
[db [identity file]]
|
||||
(let [valid? (= (get-hash-by-dentity db identity)
|
||||
(get-hash-by-file file))]
|
||||
(println "hsh " (hash file))
|
||||
(assoc db ::valid-hash valid?)))
|
||||
|
||||
(defn save-commands!
|
||||
|
|
Loading…
Reference in New Issue