mirror of
https://github.com/moparisthebest/mail
synced 2024-11-28 11:52:16 -05:00
Tweak cordova config status bar settings
This commit is contained in:
parent
087d4e66d5
commit
ab18cdd5f8
@ -1,10 +1,18 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# reads values from JSON
|
||||||
|
jsonValue() {
|
||||||
|
KEY=$1
|
||||||
|
num=$2
|
||||||
|
awk -F"[,:}]" '{for(i=1;i<=NF;i++){if($i~/'$KEY'\042/){print $(i+1)}}}' | tr -d '"' | sed -n ${num}p
|
||||||
|
}
|
||||||
|
|
||||||
# go to root
|
# go to root
|
||||||
cd `dirname $0`
|
cd `dirname $0`
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
DIR=release/cca
|
DIR=release/cca
|
||||||
|
PROJNAME=`less dist/manifest.json | jsonValue name 1 | sed -e 's/^ *//' -e 's/ *$//'`
|
||||||
|
|
||||||
# create
|
# create
|
||||||
rm -rf $DIR
|
rm -rf $DIR
|
||||||
@ -17,3 +25,15 @@ cca prepare
|
|||||||
|
|
||||||
# cp signing config
|
# cp signing config
|
||||||
cp ../../../res/android-release-keys.properties .
|
cp ../../../res/android-release-keys.properties .
|
||||||
|
|
||||||
|
# change ios status bar in cordova settings
|
||||||
|
# status bar should not overlay the web view
|
||||||
|
sed -i "" 's/StatusBarOverlaysWebView" value="true"/StatusBarOverlaysWebView" value="false"/' "platforms/ios/$PROJNAME/config.xml"
|
||||||
|
# status bar should use dark font on light background
|
||||||
|
sed -i "" 's/StatusBarStyle" value="lightcontent"/StatusBarStyle" value="darkcontent"/' "platforms/ios/$PROJNAME/config.xml"
|
||||||
|
|
||||||
|
# print reminder for manual work in xcode
|
||||||
|
echo '### Reminder for manual steps required for iOS release'
|
||||||
|
echo '### Change deployment target to iOS 8.1'
|
||||||
|
echo '### Use icon set'
|
||||||
|
echo '### Use correct 60px icon'
|
Loading…
Reference in New Issue
Block a user