1
0
mirror of https://github.com/moparisthebest/mail synced 2024-12-21 23:08:50 -05:00

Merge pull request #245 from whiteout-io/dev/WO-808

Dev/wo 808
This commit is contained in:
Tankred Hase 2015-01-12 13:17:03 +01:00
commit d41ed34837
13 changed files with 54 additions and 8 deletions

View File

@ -552,7 +552,17 @@ module.exports = function(grunt) {
'img/icon-78-android.png',
'img/icon-80-ios.png',
'img/icon-87-ios.png',
'img/icon-96-android.png'
'img/icon-96-android.png',
'img/Default-568h@2x~iphone.png',
'img/Default-667h.png',
'img/Default-736h.png',
'img/Default-Landscape-736h.png',
'img/Default-Landscape@2x~ipad.png',
'img/Default-Landscape~ipad.png',
'img/Default-Portrait@2x~ipad.png',
'img/Default-Portrait~ipad.png',
'img/Default@2x~iphone.png',
'img/Default~iphone.png'
],
master: ['index.html']
},

View File

@ -1,10 +1,18 @@
#!/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
cd `dirname $0`
cd ..
DIR=release/cca
PROJNAME=`less dist/manifest.json | jsonValue name 1 | sed -e 's/^ *//' -e 's/ *$//'`
# create
rm -rf $DIR
@ -15,5 +23,38 @@ cca create $DIR/Whiteout --link-to=dist/manifest.json
cd $DIR/Whiteout
cca prepare
#
# post-build tweaks
#
echo ""
echo "## Running post-build tweaks"
# cp signing config
cp ../../../res/android-release-keys.properties .
echo "Copy Android signing config"
cp ../../../res/android-release-keys.properties .
# status bar should not overlay the web view
echo "Tweaking iOS status bar to 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
echo "Tweaking iOS status bar to use dark font on light background"
sed -i "" 's/StatusBarStyle" value="lightcontent"/StatusBarStyle" value="darkcontent"/' "platforms/ios/$PROJNAME/config.xml"
# copy splash screens
echo "Copying splash screens"
cp ../../../src/img/Default* "platforms/ios/$PROJNAME/Resources/splash"
# fixing missing/wrong icons
echo "Fixing wrong/missing iOS icons"
cp ../../../src/img/icon-60-ios.png "platforms/ios/$PROJNAME/Resources/icons/icon-60.png"
cp ../../../src/img/icon-180-ios.png "platforms/ios/$PROJNAME/Resources/icons/icon-60@3x.png"
cp ../../../src/img/icon-87-ios.png "platforms/ios/$PROJNAME/Resources/icons/icon-small@3x.png"
cp ../../../src/img/icon-120-ios.png "platforms/ios/$PROJNAME/Resources/icons/icon-40@3x.png"
# print reminder for manual work in xcode
echo ""
echo "### Reminder for manual steps required for iOS release"
echo "### Change deployment target to iOS 8.1"
echo "### Add retina icons to build, migrate to icon set, fix splash screens config"

View File

@ -2,12 +2,7 @@
chrome.app.runtime.onLaunched.addListener(function() {
chrome.runtime.getPlatformInfo(function(info) {
// don't render statusbar over app UI on iOS
if (info.os === 'cordova-ios' && window.StatusBar) {
window.StatusBar.overlaysWebView(false);
}
chrome.runtime.getPlatformInfo(function() {
// open chrome app in new window
chrome.app.window.create('index.html', {
id: '0',

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
src/img/Default-667h.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
src/img/Default-736h.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
src/img/Default~iphone.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB