parent
7beec7dfe9
commit
577cf4e93c
|
@ -5,8 +5,7 @@
|
|||
"modules": [
|
||||
"react-native-contacts",
|
||||
"react-native-invertible-scroll-view",
|
||||
"awesome-phonenumber",
|
||||
"web3"
|
||||
"awesome-phonenumber"
|
||||
],
|
||||
"imageDirs": [
|
||||
"images"
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
"react-native": "^0.21.0",
|
||||
"react-native-contacts": "^0.2.1",
|
||||
"react-native-i18n": "0.0.8",
|
||||
"react-native-invertible-scroll-view": "^0.2.0",
|
||||
"web3": "^0.15.3"
|
||||
"react-native-invertible-scroll-view": "^0.2.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
[org.clojure/clojurescript "1.7.170"]
|
||||
[org.omcljs/om "1.0.0-alpha28" :exclusions [cljsjs/react cljsjs/react-dom]]
|
||||
[natal-shell "0.1.6"]
|
||||
[cljsjs/web3 "0.15.3-0"]
|
||||
[syng-im/protocol "0.1.0"]]
|
||||
:plugins [[lein-cljsbuild "1.1.1"]
|
||||
[lein-figwheel "0.5.0-2"]]
|
||||
|
@ -31,10 +32,7 @@
|
|||
:compiler {:output-to "target/android/not-used.js"
|
||||
:main "env.android.main"
|
||||
:output-dir "target/android"
|
||||
:optimizations :none
|
||||
:foreign-libs [{:file "resources/vendor/js/web3.js"
|
||||
:file-min "resources/vendor/js/web3.min.js"
|
||||
:provides ["cljsjs.web3"]}]}}}}
|
||||
:optimizations :none}}}}
|
||||
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}}
|
||||
:prod {:cljsbuild {:builds
|
||||
{:ios {:source-paths ["src" "env/prod"]
|
||||
|
|
|
@ -43,7 +43,8 @@
|
|||
|
||||
(defn get-whisper-identity-handler [phone-number]
|
||||
(fn [identity]
|
||||
(if identity
|
||||
;; TODO to test newIdentity. Change to 'identity' to use saved identity.
|
||||
(if false ;; identity
|
||||
(sign-in phone-number identity)
|
||||
(get-identity (fn [error identity]
|
||||
(if (not error)
|
||||
|
|
Loading…
Reference in New Issue