2017-11-14 15:18:15 +00:00
|
|
|
(ns status-im.core
|
|
|
|
(:require [status-im.utils.error-handler :as error-handler]
|
|
|
|
[status-im.ui.components.react :as react]
|
|
|
|
[reagent.core :as reagent]
|
|
|
|
[status-im.native-module.core :as status]
|
|
|
|
[taoensso.timbre :as log]
|
2017-12-21 10:33:51 +00:00
|
|
|
[status-im.utils.config :as config]
|
2018-03-23 14:17:53 +00:00
|
|
|
[status-im.react-native.js-dependencies :as js-dependencies]
|
2017-12-21 10:33:51 +00:00
|
|
|
[goog.object :as object]))
|
|
|
|
|
|
|
|
(when js/goog.DEBUG
|
2017-12-30 04:35:25 +00:00
|
|
|
(object/set js/console "ignoredYellowBox" #js ["re-frame: overwriting"]))
|
2017-11-14 15:18:15 +00:00
|
|
|
|
|
|
|
(defn init [app-root]
|
|
|
|
(log/set-level! config/log-level)
|
|
|
|
(error-handler/register-exception-handler!)
|
|
|
|
(status/init-jail)
|
2018-03-23 14:17:53 +00:00
|
|
|
(when config/testfairy-enabled?
|
|
|
|
(.begin js-dependencies/testfairy config/testfairy-token))
|
2018-02-15 10:39:41 +00:00
|
|
|
(.registerComponent react/app-registry "StatusIm" #(reagent/reactify-component app-root)))
|