Fixed android build script.

Upgraded to latest dependencies and removed useless plugins.
This commit is contained in:
Julien Eluard 2018-01-17 09:13:11 +01:00 committed by Goran Jovic
parent d05f50db62
commit fc92dafca6
12 changed files with 14 additions and 23 deletions

2
env/dev/run.clj vendored
View File

@ -1,4 +1,4 @@
(ns ^:figwheel-no-load dev-run
(ns ^:figwheel-no-load run
(:use [figwheel-api]))
(start)

View File

@ -2,17 +2,16 @@
:url "https://github.com/status-im/status-react/"
:license {:name "Eclipse Public License"
: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/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]]
[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"]
[hickory "0.7.1"]
[com.cognitect/transit-cljs "0.8.243"]]
:plugins [[lein-cljsbuild "1.1.7"]
[lein-figwheel "0.5.14"]
[lein-re-frisk "0.5.5"]]
:clean-targets ["target/" "index.ios.js" "index.android.js"]
:aliases {"prod-build" ^{:doc "Recompile code with prod profile."}

View File

@ -14,23 +14,23 @@ echo
GRADLE_PROPERTIES="--daemon --parallel -q -b android/build.gradle"
npm install
case $TARGET in
debug)
echo "Not supported yet."
## lein do clean, cljsbuild once android && ./android/gradlew ${GRADLE_PROPERTIES} assembleDebug
## echo "Generated android/app/build/outputs/apk/app-debug.apk"
## TODO Blocked by https://github.com/status-im/status-react/issues/2669
lein do clean, cljsbuild once android && ./android/gradlew ${GRADLE_PROPERTIES} assembleDebug
echo "Generated android/app/build/outputs/apk/debug/app-debug.apk"
exit 1
;;
prod)
release)
STORE_FILE=$(property_gradle 'STATUS_RELEASE_STORE_FILE')
[[ ! -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
cecho "Generated @b@blueandroid/app/build/outputs/apk/app-release.apk"
cecho "Generated @b@blueandroid/app/build/outputs/apk/release/app-release.apk"
echo
exit
;;
*)
echo "Only debug and prod targets are supported"
echo "Only debug and release targets are supported"
exit 1
esac

View File

@ -1,5 +1,4 @@
(ns status-im.chat.events
(:require-macros [cljs.core.async.macros :as async])
(:require [cljs.core.async :as async]
[re-frame.core :as re-frame]
[taoensso.timbre :as log]

View File

@ -1,5 +1,4 @@
(ns status-im.chat.events.queue-message
(:require-macros [cljs.core.async.macros :as async-macros])
(:require [cljs.core.async :as async]
[re-frame.core :as re-frame]
[status-im.utils.config :as config]

View File

@ -1,6 +1,6 @@
(ns status-im.native-module.impl.module
(: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]
[re-frame.core :refer [dispatch]]
[taoensso.timbre :as log]

View File

@ -1,5 +1,4 @@
(ns status-im.protocol.web3.delivery
(:require-macros [cljs.core.async.macros :as async])
(:require [cljs.core.async :as async]
[status-im.protocol.web3.transport :as t]
[status-im.protocol.web3.utils :as u]
@ -88,8 +87,8 @@
[web3 message]
{:pre [(valid? :protocol/message message)]}
(debug :add-pending-message! message)
;; encryption can take some time, better to run asynchronously
(async/put! pending-message-queue [web3 message]))
;; encryption can take some time, better to run asynchronously
(async/put! pending-message-queue [web3 message]))
(s/def :delivery/pending-message
(s/keys :req-un [:message/sig :message/to :shh/payload :payload/ack? ::id

View File

@ -1,6 +1,5 @@
(ns status-im.utils.async
"Utility namespace containing `core.async` helper constructs"
(:require-macros [cljs.core.async.macros :as async])
(:require [cljs.core.async :as async]))
(defn chunked-pipe!

View File

@ -1,5 +1,4 @@
(ns status-im.utils.pre-receiver
(:require-macros [cljs.core.async.macros :as async])
(:require [cljs.core.async :as async]
[taoensso.timbre :as log]))

View File

@ -1,5 +1,4 @@
(ns status-im.test.protocol.core
(:require-macros [cljs.core.async.macros :as async])
(:require [cljs.test :refer-macros [deftest is testing run-tests
async use-fixtures]]
[cljs.nodejs :as nodejs]

View File

@ -1,5 +1,4 @@
(ns status-im.test.utils.async
(:require-macros [cljs.core.async.macros :as async])
(:require [cljs.test :refer-macros [deftest is testing async]]
[cljs.core.async :as async]
[status-im.utils.async :as async-util]))

View File

@ -1,5 +1,4 @@
(ns status-im.test.utils.pre-receiver
(:require-macros [cljs.core.async.macros :as async])
(:require [cljs.test :refer-macros [deftest is testing async]]
[cljs.core.async :as async]
[status-im.utils.pre-receiver :as pre-receiver]))