Commit 35907517 authored by Martin Pollet's avatar Martin Pollet

show version on infos screen, insert version automatically during build, release in app stores

parent 0fdbe295
Pipeline #127 passed with stage
in 16 minutes and 5 seconds
......@@ -105,7 +105,7 @@ android {
applicationId "de.pollet_computer.shelly"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 10
versionCode 13
versionName "0.2.4"
}
splits {
......
......@@ -1460,7 +1460,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 202005012020;
CURRENT_PROJECT_VERSION = 202005010000;
DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = KA76CVDYZN;
HEADER_SEARCH_PATHS = (
......@@ -1494,7 +1494,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 202005012020;
CURRENT_PROJECT_VERSION = 202005010000;
DEVELOPMENT_TEAM = KA76CVDYZN;
HEADER_SEARCH_PATHS = (
"$(inherited)",
......
......@@ -11,14 +11,21 @@
[cljs-http "0.1.46"]
]
:plugins [[lein-cljsbuild "1.1.4"]
[lein-figwheel "0.5.18"]]
[lein-figwheel "0.5.18"]
[lein-project-version "0.1.0"]
[lein-shell "0.5.0"]]
:clean-targets ["target/" "index.ios.js" "index.android.js" #_($PLATFORM_CLEAN$)]
:aliases {"prod-build" ^{:doc "Recompile code with prod profile."}
["do" "clean"
["with-profile" "prod" "cljsbuild" "once"]]
"advanced-build" ^{:doc "Recompile code for production using :advanced compilation."}
["do" "clean"
["with-profile" "advanced" "cljsbuild" "once"]]}
["with-profile" "advanced" "cljsbuild" "once"]]
"release-build" ^{:doc "Set version and build prod"}
["do"
["shell" "./script/version.sh"]
"prod-build"]
}
:jvm-opts ["-XX:+IgnoreUnrecognizedVMOptions" "--add-modules=java.xml.bind"]
:profiles {:test {:dependencies [[midje "1.9.8"]]
:plugins [[lein-midje "3.2.2"]]}
......
#!/usr/bin/env bash
re-natal use-figwheel
re-natal require-all
re-natal enable-auto-require
re-natal use-ios-device simulator
# lein figwheel ios &
# lein figwheel android &
react-native start &
react-native run-ios --simulator="iPhone 11 Pro" --verbose
#react-native run-android --verbose
react-native run-ios --simulator="iPhone 11 Pro" --verbose
#!/usr/bin/env bash
echo "Set version"
here=`dirname $0`
cd "$here/.."
target="./src/scholli/base/version.cljc"
echo "(ns scholli.base.version)" > $target
version=`lein project-version| cut -d'-' -f1`
echo "(def version \"$version\")" >> $target
timestamp=`date "+%Y%m%d%H%M"`
echo "(def build \"$timestamp\")" >> $target
\ No newline at end of file
(ns scholli.base.version)
(def version "0.2.4")
(def build "202004302204")
......@@ -7,6 +7,7 @@
[scholli.component.components :as c]
[scholli.events]
[scholli.subs]
[scholli.base.version :refer [version build]]
))
; images as static resources for JS via variables
......@@ -21,7 +22,11 @@
(defn- imprint []
[rn/view
[c/heading "Scholli" ]
[c/heading-left-right
[rn/text {:style {:margin-left 5 :margin-top 3 :font-size 12}} (str "Version\n" version)]
[rn/text {:style {:margin-right 5 :margin-top 3 :font-size 12 :text-align "right"}} (str "Build\n" build)]
"Scholli" ]
[rn/view {:flex-direction "row" :justify-content "space-evenly" :align-items "center"}
[rn/view {:flex-direction "column" :align-items "center" :justify-content "space-evenly" :height 100}
[text-link "https://gitlab.pollet-computer.de/polly/scholli" "Project Page"]
......@@ -44,7 +49,8 @@
[c/link "https://clojure.org/" [c/logo clojure-img]]
[c/link "https://clojurescript.org/" [c/logo cljs-img]]
[c/link "https://github.com/facebook/react-native" [c/logo react-native-img]]
]])
]
])
(defn- settings-section [{:keys [color]}]
(let [size c/DEFAULT_HEIGHT]
......
(start-figwheel "ios")
(start-figwheel "android")
;; start
; re-natal use-figwheel
; react-native start
; re-natal use-ios-device simulator
; react-native run-ios --simulator="iPhone 11 Pro" --verbose
;; add libs
; re-natal enable-auto-require
; re-natal use-component react-navigation
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment