mirror of
https://github.com/status-im/status-react.git
synced 2025-02-18 13:58:24 +00:00
react-native-status dependency and other
This commit is contained in:
parent
32422310e8
commit
76e2887b17
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "StatusIm",
|
"name": "StatusIm",
|
||||||
"interface": "reagent",
|
"interface": "reagent",
|
||||||
"androidHost": "localhost",
|
"androidHost": "10.0.3.2",
|
||||||
"modules": [
|
"modules": [
|
||||||
"react-native-contacts",
|
"react-native-contacts",
|
||||||
"react-native-invertible-scroll-view",
|
"react-native-invertible-scroll-view",
|
||||||
@ -16,7 +16,8 @@
|
|||||||
"react-native-randombytes",
|
"react-native-randombytes",
|
||||||
"dismissKeyboard",
|
"dismissKeyboard",
|
||||||
"react-native-linear-gradient",
|
"react-native-linear-gradient",
|
||||||
"react-native-android-sms-listener"
|
"react-native-android-sms-listener",
|
||||||
|
"react-native-status"
|
||||||
],
|
],
|
||||||
"imageDirs": [
|
"imageDirs": [
|
||||||
"images"
|
"images"
|
||||||
|
@ -130,6 +130,7 @@ dependencies {
|
|||||||
compile project(':react-native-i18n')
|
compile project(':react-native-i18n')
|
||||||
compile project(':react-native-linear-gradient')
|
compile project(':react-native-linear-gradient')
|
||||||
compile project(':ReactNativeAndroidSmsListener')
|
compile project(':ReactNativeAndroidSmsListener')
|
||||||
|
compile project(':react-native-status')
|
||||||
// compile(name:'geth', ext:'aar')
|
// compile(name:'geth', ext:'aar')
|
||||||
compile(group: 'status-im', name: 'android-geth', version: '1.4.0-201604110816-a97a114', 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.List;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import com.statusim.Jail.JailPackage;
|
||||||
|
|
||||||
import com.i18n.reactnativei18n.ReactNativeI18n;
|
import com.i18n.reactnativei18n.ReactNativeI18n;
|
||||||
import io.realm.react.RealmReactPackage;
|
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')
|
project(':react-native-linear-gradient').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-linear-gradient/android')
|
||||||
include ':ReactNativeAndroidSmsListener'
|
include ':ReactNativeAndroidSmsListener'
|
||||||
project(':ReactNativeAndroidSmsListener').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-android-sms-listener/android')
|
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-loading-spinner-overlay": "0.0.8",
|
||||||
"react-native-randombytes": "^2.0.0",
|
"react-native-randombytes": "^2.0.0",
|
||||||
"react-native-vector-icons": "^1.3.4",
|
"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"
|
:name "console"
|
||||||
; todo remove/change dapp config fot console
|
; todo remove/change dapp config fot console
|
||||||
:dapp-url "http://localhost:8185"
|
:dapp-url "http://localhost:8185"
|
||||||
:dapp-hash 123
|
:dapp-hash 834331894
|
||||||
:color default-chat-color
|
:color default-chat-color
|
||||||
:group-chat false
|
:group-chat false
|
||||||
:is-active true
|
:is-active true
|
||||||
|
@ -87,8 +87,8 @@
|
|||||||
|
|
||||||
(defn get-hash-by-file
|
(defn get-hash-by-file
|
||||||
[file]
|
[file]
|
||||||
;; todo implement
|
;; todo tbd hashing algorithm
|
||||||
123)
|
(hash file))
|
||||||
|
|
||||||
(defn get-jail []
|
(defn get-jail []
|
||||||
(.-Jail (.-NativeModules r/react)))
|
(.-Jail (.-NativeModules r/react)))
|
||||||
@ -110,6 +110,7 @@
|
|||||||
[db [identity file]]
|
[db [identity file]]
|
||||||
(let [valid? (= (get-hash-by-dentity db identity)
|
(let [valid? (= (get-hash-by-dentity db identity)
|
||||||
(get-hash-by-file file))]
|
(get-hash-by-file file))]
|
||||||
|
(println "hsh " (hash file))
|
||||||
(assoc db ::valid-hash valid?)))
|
(assoc db ::valid-hash valid?)))
|
||||||
|
|
||||||
(defn save-commands!
|
(defn save-commands!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user