Skip to content

Commit

Permalink
re-frisk 1.0
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
  • Loading branch information
flexsurfer committed Apr 23, 2020
1 parent da038aa commit e5d53e6
Show file tree
Hide file tree
Showing 12 changed files with 264 additions and 2,045 deletions.
4 changes: 2 additions & 2 deletions build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,13 @@

(defmethod task "watch" [[_ & args]]
(with-namespaces [[hawk.core :as hawk]
[re-frisk-sidecar.core :as rfs]
[re-frisk-remote.core :as re-frisk]
[figwheel-sidecar.repl-api :as ra]
[clj-rn.core :as clj-rn]
[clj-rn.main :as main]]
(let [options (main/parse-cli-options args main/watch-task-options)]
(clj-rn/watch (assoc options :start-cljs-repl false))
(rfs/-main)
(re-frisk/start)
(hawk/watch! [{:paths ["resources"] :handler hawk-handler-resources}
{:paths ["translations"] :handler hawk-handler-translations}])
(when (:start-cljs-repl options) (ra/cljs-repl)))))
Expand Down
3 changes: 1 addition & 2 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
cider/piggieback {:mvn/version "0.4.0"
:exclusions [com.google.javascript/closure-compiler]}
figwheel-sidecar {:mvn/version "0.5.18"}
re-frisk-remote {:mvn/version "0.5.5"}
re-frisk-sidecar {:mvn/version "0.5.7"}
re-frisk-remote {:mvn/version "0.9.0"}
hawk {:mvn/version "0.2.11"}
day8.re-frame/tracing {:mvn/version "0.5.0"}

Expand Down
8 changes: 3 additions & 5 deletions env/dev/env/android/main.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
(:require [reagent.core :as r]
[status-im.android.core :as core]
[figwheel.client :as figwheel]
[re-frisk-remote.core :as rr]
[re-frisk-remote.core :as re-frisk]
[env.config :as conf]
[env.utils]
[status-im.utils.handlers :as utils.handlers]
[re-frame.interop :as interop]
[reagent.impl.batching :as batching]))

Expand All @@ -27,7 +26,6 @@
:heads-up-display false
:jsload-callback #(swap! cnt inc)})

(utils.handlers/add-pre-event-callback rr/pre-event-callback)
(re-frisk/enable {:host (env.utils/re-frisk-url (:android conf/figwheel-urls))})

(rr/enable-re-frisk-remote! {:host (env.utils/re-frisk-url (:android conf/figwheel-urls))
:on-init core/init})
(core/init)
8 changes: 3 additions & 5 deletions env/dev/env/desktop/main.cljs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
(ns ^:figwheel-no-load env.desktop.main
(:require [reagent.core :as r]
[re-frisk-remote.core :as rr]
[re-frisk-remote.core :as re-frisk]
[status-im.desktop.core :as core]
[status-im.utils.handlers :as utils.handlers]
[figwheel.client :as figwheel]
[env.config :as conf]
[env.utils]))
Expand All @@ -22,7 +21,6 @@
:heads-up-display false
:jsload-callback #(swap! cnt inc)})

(utils.handlers/add-pre-event-callback rr/pre-event-callback)
(re-frisk/enable {:host (env.utils/re-frisk-url (:desktop conf/figwheel-urls))})

(rr/enable-re-frisk-remote! {:host (env.utils/re-frisk-url (:desktop conf/figwheel-urls))
:on-init core/init})
(core/init)
8 changes: 3 additions & 5 deletions env/dev/env/ios/main.cljs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
(ns ^:figwheel-no-load env.ios.main
(:require [reagent.core :as r]
[re-frisk-remote.core :as rr]
[re-frisk-remote.core :as re-frisk]
[status-im.ios.core :as core]
[status-im.utils.handlers :as utils.handlers]
[figwheel.client :as figwheel]
[env.config :as conf]
[env.utils]
Expand All @@ -27,7 +26,6 @@
:heads-up-display false
:jsload-callback #(swap! cnt inc)})

(utils.handlers/add-pre-event-callback rr/pre-event-callback)
(re-frisk/enable {:host (env.utils/re-frisk-url (:ios conf/figwheel-urls))})

(rr/enable-re-frisk-remote! {:host (env.utils/re-frisk-url (:ios conf/figwheel-urls))
:on-init core/init})
(core/init)
113 changes: 0 additions & 113 deletions nix/lein/lein-project-deps-maven-inputs.txt

Large diffs are not rendered by default.

Loading

0 comments on commit e5d53e6

Please sign in to comment.