summaryrefslogtreecommitdiff
path: root/hooks/before_prepare
diff options
context:
space:
mode:
authorArjun Roychowdhury <pliablepixels@gmail.com>2015-10-26 16:22:30 -0400
committerArjun Roychowdhury <pliablepixels@gmail.com>2015-10-26 16:22:30 -0400
commit65d4b815354a1d17107a931fa20672498f30a7dd (patch)
treef96dacf63c00e75e6b895188673b2fb4e9a844b8 /hooks/before_prepare
parent69ee97c77a431ac06532dbf247a3436d57e8b449 (diff)
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
Diffstat (limited to 'hooks/before_prepare')
-rwxr-xr-xhooks/before_prepare/01_pp_hacks.sh24
1 files changed, 19 insertions, 5 deletions
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/