Fixed android build script.
Upgraded to latest dependencies and removed useless plugins.
This commit is contained in:
parent
d05f50db62
commit
fc92dafca6
|
@ -1,4 +1,4 @@
|
||||||
(ns ^:figwheel-no-load dev-run
|
(ns ^:figwheel-no-load run
|
||||||
(:use [figwheel-api]))
|
(:use [figwheel-api]))
|
||||||
|
|
||||||
(start)
|
(start)
|
||||||
|
|
|
@ -2,17 +2,16 @@
|
||||||
:url "https://github.com/status-im/status-react/"
|
:url "https://github.com/status-im/status-react/"
|
||||||
:license {:name "Eclipse Public License"
|
:license {:name "Eclipse Public License"
|
||||||
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
||||||
:dependencies [[org.clojure/clojure "1.9.0-RC1"]
|
:dependencies [[org.clojure/clojure "1.9.0"]
|
||||||
[org.clojure/clojurescript "1.9.946"]
|
[org.clojure/clojurescript "1.9.946"]
|
||||||
[org.clojure/core.async "0.3.443"]
|
[org.clojure/core.async "0.4.474"]
|
||||||
[reagent "0.7.0" :exclusions [cljsjs/react cljsjs/react-dom cljsjs/react-dom-server cljsjs/create-react-class]]
|
[reagent "0.7.0" :exclusions [cljsjs/react cljsjs/react-dom cljsjs/react-dom-server cljsjs/create-react-class]]
|
||||||
[re-frame "0.10.2"]
|
[re-frame "0.10.2"]
|
||||||
[com.andrewmcveigh/cljs-time "0.5.0"]
|
[com.andrewmcveigh/cljs-time "0.5.2"]
|
||||||
[com.taoensso/timbre "4.10.0"]
|
[com.taoensso/timbre "4.10.0"]
|
||||||
[hickory "0.7.1"]
|
[hickory "0.7.1"]
|
||||||
[com.cognitect/transit-cljs "0.8.243"]]
|
[com.cognitect/transit-cljs "0.8.243"]]
|
||||||
:plugins [[lein-cljsbuild "1.1.7"]
|
:plugins [[lein-cljsbuild "1.1.7"]
|
||||||
[lein-figwheel "0.5.14"]
|
|
||||||
[lein-re-frisk "0.5.5"]]
|
[lein-re-frisk "0.5.5"]]
|
||||||
:clean-targets ["target/" "index.ios.js" "index.android.js"]
|
:clean-targets ["target/" "index.ios.js" "index.android.js"]
|
||||||
:aliases {"prod-build" ^{:doc "Recompile code with prod profile."}
|
:aliases {"prod-build" ^{:doc "Recompile code with prod profile."}
|
||||||
|
|
|
@ -14,23 +14,23 @@ echo
|
||||||
|
|
||||||
GRADLE_PROPERTIES="--daemon --parallel -q -b android/build.gradle"
|
GRADLE_PROPERTIES="--daemon --parallel -q -b android/build.gradle"
|
||||||
|
|
||||||
|
npm install
|
||||||
|
|
||||||
case $TARGET in
|
case $TARGET in
|
||||||
debug)
|
debug)
|
||||||
echo "Not supported yet."
|
lein do clean, cljsbuild once android && ./android/gradlew ${GRADLE_PROPERTIES} assembleDebug
|
||||||
## lein do clean, cljsbuild once android && ./android/gradlew ${GRADLE_PROPERTIES} assembleDebug
|
echo "Generated android/app/build/outputs/apk/debug/app-debug.apk"
|
||||||
## echo "Generated android/app/build/outputs/apk/app-debug.apk"
|
|
||||||
## TODO Blocked by https://github.com/status-im/status-react/issues/2669
|
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
prod)
|
release)
|
||||||
STORE_FILE=$(property_gradle 'STATUS_RELEASE_STORE_FILE')
|
STORE_FILE=$(property_gradle 'STATUS_RELEASE_STORE_FILE')
|
||||||
[[ ! -e "${STORE_FILE/#\~/$HOME}" ]] && echo "Please generate keystore first using ./generate-keystore.sh" && exit 0
|
[[ ! -e "${STORE_FILE/#\~/$HOME}" ]] && echo "Please generate keystore first using ./generate-keystore.sh" && exit 0
|
||||||
lein do clean, with-profile prod cljsbuild once android && ./android/gradlew ${GRADLE_PROPERTIES} assembleRelease
|
lein do clean, with-profile prod cljsbuild once android && ./android/gradlew ${GRADLE_PROPERTIES} assembleRelease
|
||||||
cecho "Generated @b@blueandroid/app/build/outputs/apk/app-release.apk"
|
cecho "Generated @b@blueandroid/app/build/outputs/apk/release/app-release.apk"
|
||||||
echo
|
echo
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Only debug and prod targets are supported"
|
echo "Only debug and release targets are supported"
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
(ns status-im.chat.events
|
(ns status-im.chat.events
|
||||||
(:require-macros [cljs.core.async.macros :as async])
|
|
||||||
(:require [cljs.core.async :as async]
|
(:require [cljs.core.async :as async]
|
||||||
[re-frame.core :as re-frame]
|
[re-frame.core :as re-frame]
|
||||||
[taoensso.timbre :as log]
|
[taoensso.timbre :as log]
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
(ns status-im.chat.events.queue-message
|
(ns status-im.chat.events.queue-message
|
||||||
(:require-macros [cljs.core.async.macros :as async-macros])
|
|
||||||
(:require [cljs.core.async :as async]
|
(:require [cljs.core.async :as async]
|
||||||
[re-frame.core :as re-frame]
|
[re-frame.core :as re-frame]
|
||||||
[status-im.utils.config :as config]
|
[status-im.utils.config :as config]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
(ns status-im.native-module.impl.module
|
(ns status-im.native-module.impl.module
|
||||||
(:require-macros
|
(:require-macros
|
||||||
[cljs.core.async.macros :as async :refer [go-loop go]])
|
[cljs.core.async.macros :refer [go-loop go]])
|
||||||
(:require [status-im.ui.components.react :as r]
|
(:require [status-im.ui.components.react :as r]
|
||||||
[re-frame.core :refer [dispatch]]
|
[re-frame.core :refer [dispatch]]
|
||||||
[taoensso.timbre :as log]
|
[taoensso.timbre :as log]
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
(ns status-im.protocol.web3.delivery
|
(ns status-im.protocol.web3.delivery
|
||||||
(:require-macros [cljs.core.async.macros :as async])
|
|
||||||
(:require [cljs.core.async :as async]
|
(:require [cljs.core.async :as async]
|
||||||
[status-im.protocol.web3.transport :as t]
|
[status-im.protocol.web3.transport :as t]
|
||||||
[status-im.protocol.web3.utils :as u]
|
[status-im.protocol.web3.utils :as u]
|
||||||
|
@ -88,8 +87,8 @@
|
||||||
[web3 message]
|
[web3 message]
|
||||||
{:pre [(valid? :protocol/message message)]}
|
{:pre [(valid? :protocol/message message)]}
|
||||||
(debug :add-pending-message! message)
|
(debug :add-pending-message! message)
|
||||||
;; encryption can take some time, better to run asynchronously
|
;; encryption can take some time, better to run asynchronously
|
||||||
(async/put! pending-message-queue [web3 message]))
|
(async/put! pending-message-queue [web3 message]))
|
||||||
|
|
||||||
(s/def :delivery/pending-message
|
(s/def :delivery/pending-message
|
||||||
(s/keys :req-un [:message/sig :message/to :shh/payload :payload/ack? ::id
|
(s/keys :req-un [:message/sig :message/to :shh/payload :payload/ack? ::id
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
(ns status-im.utils.async
|
(ns status-im.utils.async
|
||||||
"Utility namespace containing `core.async` helper constructs"
|
"Utility namespace containing `core.async` helper constructs"
|
||||||
(:require-macros [cljs.core.async.macros :as async])
|
|
||||||
(:require [cljs.core.async :as async]))
|
(:require [cljs.core.async :as async]))
|
||||||
|
|
||||||
(defn chunked-pipe!
|
(defn chunked-pipe!
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
(ns status-im.utils.pre-receiver
|
(ns status-im.utils.pre-receiver
|
||||||
(:require-macros [cljs.core.async.macros :as async])
|
|
||||||
(:require [cljs.core.async :as async]
|
(:require [cljs.core.async :as async]
|
||||||
[taoensso.timbre :as log]))
|
[taoensso.timbre :as log]))
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
(ns status-im.test.protocol.core
|
(ns status-im.test.protocol.core
|
||||||
(:require-macros [cljs.core.async.macros :as async])
|
|
||||||
(:require [cljs.test :refer-macros [deftest is testing run-tests
|
(:require [cljs.test :refer-macros [deftest is testing run-tests
|
||||||
async use-fixtures]]
|
async use-fixtures]]
|
||||||
[cljs.nodejs :as nodejs]
|
[cljs.nodejs :as nodejs]
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
(ns status-im.test.utils.async
|
(ns status-im.test.utils.async
|
||||||
(:require-macros [cljs.core.async.macros :as async])
|
|
||||||
(:require [cljs.test :refer-macros [deftest is testing async]]
|
(:require [cljs.test :refer-macros [deftest is testing async]]
|
||||||
[cljs.core.async :as async]
|
[cljs.core.async :as async]
|
||||||
[status-im.utils.async :as async-util]))
|
[status-im.utils.async :as async-util]))
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
(ns status-im.test.utils.pre-receiver
|
(ns status-im.test.utils.pre-receiver
|
||||||
(:require-macros [cljs.core.async.macros :as async])
|
|
||||||
(:require [cljs.test :refer-macros [deftest is testing async]]
|
(:require [cljs.test :refer-macros [deftest is testing async]]
|
||||||
[cljs.core.async :as async]
|
[cljs.core.async :as async]
|
||||||
[status-im.utils.pre-receiver :as pre-receiver]))
|
[status-im.utils.pre-receiver :as pre-receiver]))
|
||||||
|
|
Loading…
Reference in New Issue