From 65d4b815354a1d17107a931fa20672498f30a7dd Mon Sep 17 00:00:00 2001 From: Arjun Roychowdhury Date: Mon, 26 Oct 2015 16:22:30 -0400 Subject: Crafts a new notification icon so that Lollipop++ does not show a white block. What a moronic design imposition by Google. Resolves https://github.com/pliablepixels/zmNinja/issues/50 --- hooks/before_prepare/01_pp_hacks.sh | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'hooks') diff --git a/hooks/before_prepare/01_pp_hacks.sh b/hooks/before_prepare/01_pp_hacks.sh index f668e07b..c4df404f 100755 --- a/hooks/before_prepare/01_pp_hacks.sh +++ b/hooks/before_prepare/01_pp_hacks.sh @@ -1,14 +1,28 @@ #!/bin/sh + +exe() { echo "\$ $@" ; "$@" ; } + # Custom stuff I need to do for zmNinja +echo ---------------------------------------------------- +echo Pliable Pixels build pre-preprocessing +echo ---------------------------------------------------- echo Curr Dir: `pwd` echo "Copying Modified GCMIntentService for custom sound" -cp www/external/GCMIntentService.java plugins/phonegap-plugin-push/src/android/com/adobe/phonegap/push/ -cp www/external/GCMIntentService.java platforms/android/src/com/adobe/phonegap/push +exe cp www/external/GCMIntentService.java plugins/phonegap-plugin-push/src/android/com/adobe/phonegap/push/ +exe cp www/external/GCMIntentService.java platforms/android/src/com/adobe/phonegap/push echo "Copying custom sound" -mkdir -p platforms/android/res/raw/ -cp www/sounds/blop.mp3 platforms/android/res/raw/ +echo "---------------------" +exe mkdir -p platforms/android/res/raw/ +exe cp www/sounds/blop.mp3 platforms/android/res/raw/ +exe cp www/sounds/blop.caf platforms/ios/zmNinja/Resources + +echo "Copying plist hack for iOS for non SSL connections" +echo "--------------------------------------------------" +exe cp www/external/zmNinja-Info.plist.IOS9nonSSLPatch platforms/ios/zmNinja/zmNinja-Info.plist -cp www/sounds/blop.caf platforms/ios/zmNinja/Resources +echo "Copying Android notification icons to resource dir" +echo "--------------------------------------------------" +exe cp -R www/external/android-notification-icons/ platforms/android/res/ -- cgit v1.2.3