From 054737017f75fb82c2f4dfac6066a6d52c4b35da Mon Sep 17 00:00:00 2001 From: Pedro Pombeiro Date: Tue, 6 Feb 2018 19:10:35 +0100 Subject: [PATCH] Add `prod-build-android` and `prod-build-ios` aliases so that `release-*` make targets only build selected platform Signed-off-by: Eric Dvorsak --- Makefile | 10 ++++++++-- project.clj | 6 ++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e0a6a443c9..ab86870f4e 100644 --- a/Makefile +++ b/Makefile @@ -41,15 +41,21 @@ prepare-ios: prepare ##@prepare Install iOS specific dependencies #---------------- release: release-android release-ios ##@build build release for Android and iOS -release-android: prod-build ##@build build release for Android +release-android: prod-build-android ##@build build release for Android react-native run-android --variant=release -release-ios: prod-build ##@build build release for iOS release +release-ios: prod-build-ios ##@build build release for iOS release @echo "Build in XCode, see https://wiki.status.im/TBD for instructions" prod-build: lein prod-build +prod-build-android: + lein prod-build-android + +prod-build-ios: + lein prod-build-ios + #---------------- # Dev builds #---------------- diff --git a/project.clj b/project.clj index 9d4e3ade04..0ba7bd1108 100644 --- a/project.clj +++ b/project.clj @@ -18,6 +18,12 @@ ["do" "clean" ["with-profile" "prod" "cljsbuild" "once" "ios"] ["with-profile" "prod" "cljsbuild" "once" "android"]] + "prod-build-android" ^{:doc "Recompile code for Android with prod profile."} + ["do" "clean" + ["with-profile" "prod" "cljsbuild" "once" "android"]] + "prod-build-ios" ^{:doc "Recompile code for iOS with prod profile."} + ["do" "clean" + ["with-profile" "prod" "cljsbuild" "once" "ios"]] "figwheel-repl" ["with-profile" "+figwheel" "run" "-m" "clojure.main" "env/dev/run.clj"] "test-cljs" ["with-profile" "test" "doo" "node" "test" "once"] "test-protocol" ["with-profile" "test" "doo" "node" "protocol" "once"]