summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-12-13 09:39:06 -0500
committerPliable Pixels <pliablepixels@gmail.com>2018-12-13 09:39:06 -0500
commit135c83f3ed62f4f88bf74add68ac7009059fc204 (patch)
treeff32bd04aeb12f8dde685d97410aea70ac367ee5
parente2e21ee046c07f5000a6cf1fbd2a7f52cea00b8b (diff)
migrate manual hook to resource, fix android notification icon #762
-rw-r--r--config.xml11
-rwxr-xr-xhooks/before_prepare/01_pp_hacks.sh73
-rw-r--r--package.json12
-rw-r--r--resources/android/icon/drawable-hdpi-icon.pngbin3161 -> 3161 bytes
-rw-r--r--resources/android/icon/drawable-ldpi-icon.pngbin1398 -> 1398 bytes
-rw-r--r--resources/android/icon/drawable-mdpi-icon.pngbin2078 -> 2078 bytes
-rw-r--r--resources/android/icon/drawable-xhdpi-icon.pngbin4154 -> 4154 bytes
-rw-r--r--resources/android/icon/drawable-xxhdpi-icon.pngbin6195 -> 6195 bytes
-rw-r--r--resources/android/icon/drawable-xxxhdpi-icon.pngbin8231 -> 8231 bytes
-rw-r--r--resources/android/splash/drawable-land-hdpi-screen.pngbin17726 -> 17726 bytes
-rw-r--r--resources/android/splash/drawable-land-ldpi-screen.pngbin6771 -> 6771 bytes
-rw-r--r--resources/android/splash/drawable-land-mdpi-screen.pngbin10105 -> 10105 bytes
-rw-r--r--resources/android/splash/drawable-land-xhdpi-screen.pngbin30192 -> 30192 bytes
-rw-r--r--resources/android/splash/drawable-land-xxhdpi-screen.pngbin40693 -> 40693 bytes
-rw-r--r--resources/android/splash/drawable-land-xxxhdpi-screen.pngbin53718 -> 53718 bytes
-rw-r--r--resources/android/splash/drawable-port-hdpi-screen.pngbin18160 -> 18160 bytes
-rw-r--r--resources/android/splash/drawable-port-ldpi-screen.pngbin6903 -> 6903 bytes
-rw-r--r--resources/android/splash/drawable-port-mdpi-screen.pngbin10366 -> 10366 bytes
-rw-r--r--resources/android/splash/drawable-port-xhdpi-screen.pngbin31026 -> 31026 bytes
-rw-r--r--resources/android/splash/drawable-port-xxhdpi-screen.pngbin41584 -> 41584 bytes
-rw-r--r--resources/android/splash/drawable-port-xxxhdpi-screen.pngbin54940 -> 54940 bytes
-rwxr-xr-xwww/external/android-notification-icons/drawable-hdpi-v11/ic_stat_notification.pngbin1139 -> 0 bytes
-rwxr-xr-xwww/external/android-notification-icons/drawable-mdpi-v11/ic_stat_notification.pngbin732 -> 0 bytes
-rwxr-xr-xwww/external/android-notification-icons/drawable-xhdpi-v11/ic_stat_notification.pngbin1644 -> 0 bytes
-rwxr-xr-xwww/external/android-notification-icons/drawable-xxhdpi-v11/ic_stat_notification.pngbin2702 -> 0 bytes
-rwxr-xr-xwww/external/android-notification-icons/drawable-xxxhdpi-v11/ic_stat_notification.pngbin3967 -> 0 bytes
-rw-r--r--www/js/DataModel.js2
27 files changed, 48 insertions, 50 deletions
diff --git a/config.xml b/config.xml
index 015378e1..49a4ebd2 100644
--- a/config.xml
+++ b/config.xml
@@ -44,6 +44,7 @@
<param name="ios-package" value="CDVWKWebViewEngine" />
</feature>
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
+ <resource-file src="www/sounds/blop.caf" target="zmNinja/Resources/blop.caf" />
<resource-file src="GoogleService-Info.plist" />
<custom-config-file parent="NSAppTransportSecurity" target="*-Info.plist">
<dict>
@@ -100,7 +101,14 @@
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</config-file>
<resource-file src="build-extras.gradle" target="build-extras.gradle" />
- <resource-file src="google-services.json" target="google-services.json" />
+ <resource-file src="www/external/android-notification-icons/drawable-hdpi/ic_stat_notification.png" target="res/drawable-hdpi/ic_stat_notification.png" />
+ <resource-file src="www/external/android-notification-icons/drawable-mdpi/ic_stat_notification.png" target="res/drawable-mdpi/ic_stat_notification.png" />
+ <resource-file src="www/external/android-notification-icons/drawable-xhdpi/ic_stat_notification.png" target="res/drawable-xhdpi/ic_stat_notification.png" />
+ <resource-file src="www/external/android-notification-icons/drawable-xxhdpi/ic_stat_notification.png" target="res/drawable-xxhdpi/ic_stat_notification.png" />
+ <resource-file src="www/external/android-notification-icons/drawable-xxxhdpi/ic_stat_notification.png" target="res/drawable-xxxhdpi/ic_stat_notification.png" />
+ <resource-file src="www/external/android-tv-banner/banner.png" target="res/drawable/banner.png" />
+ <resource-file src="google-services.json" target="app/google-services.json" />
+ <resource-file src="www/sounds/blop.mp3" target="res/raw/blop.mp3" />
<preference name="android-manifest/@android:installLocation" value="auto" />
<preference name="loadUrlTimeoutValue" value="700000" />
<icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
@@ -172,4 +180,5 @@
<plugin name="cordova-plugin-ionic-webview" spec="https://github.com/pliablepixels/cordova-plugin-ionic-webview.git">
<variable name="ANDROID_SUPPORT_ANNOTATIONS_VERSION" value="27.+" />
</plugin>
+ <engine name="android" spec="~7.1.4" />
</widget>
diff --git a/hooks/before_prepare/01_pp_hacks.sh b/hooks/before_prepare/01_pp_hacks.sh
index 304aca79..440d0316 100755
--- a/hooks/before_prepare/01_pp_hacks.sh
+++ b/hooks/before_prepare/01_pp_hacks.sh
@@ -3,39 +3,24 @@
exe() { echo "\$ $@" ; "$@" ; }
# Custom stuff I need to do for zmNinja
-echo ----------------------------------------------------
+echo ---------------------------------------------------------
echo Pliable Pixels build pre-preprocessing
-echo ----------------------------------------------------
-echo Curr Dir: `pwd`
+echo Nothing to be done - everything has mooved to config.xml
+echo ----------------------------------------------------------
-#if [ -d "plugins/phonegap-plugin-push/src/android/com/adobe/phonegap/push/" ]; then
-# echo "Copying Modified GCMIntentService for custom sound"
-# 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
-#else
-# echo "Directory plugins/phonegap-plugin-push/src/android/com/adobe/phonegap/push/ does not exist, skipping..."
-#fi
-#echo "Copying gradle hack for push-plugin-2.1.3"
-#echo "-------------------------------------------"
-#
-#if [ -d "platforms/android" ]; then
-# exe cp www/external/build-extras.gradle platforms/android
-#else
-# echo "Directory platforms/android does not exist, skipping..."
-#fi
-echo "Copying custom sound"
-echo "---------------------"
+#echo "Copying custom sound"
+#echo "---------------------"
-if [ -d "platforms/android" ]; then
- 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
-else
- echo "Directory platforms/android does not exist, skipping..."
-fi
+#if [ -d "platforms/android" ]; then
+# 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
+#else
+# echo "Directory platforms/android does not exist, skipping..."
+#fi
#echo "Copying plist hack for iOS for non SSL connections"
#echo "--------------------------------------------------"
@@ -45,23 +30,23 @@ fi
# echo "Directory platforms/ios/zmNinja does not exist, skipping..."
#fi
-echo "Copying Android notification icons to resource dir"
-echo "--------------------------------------------------"
-if [ -d "platforms/android/res/" ]; then
- exe cp -R www/external/android-notification-icons/ platforms/android/res/
- exe cp -f www/external/android-tv-banner/banner.png platforms/android/res/drawable
-
-else
- echo "Directory platforms/android/res/ does not exist, skipping..."
-fi
-
-echo "Copying Google services to android/app"
-echo "--------------------------------------------------"
-if [ -d "platforms/android" ]; then
- exe cp google-services.json platforms/android/app/
-else
- echo "Directory platforms/android doesn't exist"
-fi
+#echo "Copying Android notification icons to resource dir"
+#echo "--------------------------------------------------"
+#if [ -d "platforms/android/res/" ]; then
+# exe cp -R www/external/android-notification-icons/ platforms/android/res/
+# exe cp -f www/external/android-tv-banner/banner.png platforms/android/res/drawable
+
+#else
+# echo "Directory platforms/android/res/ does not exist, skipping..."
+#fi
+
+#echo "Copying Google services to android/app"
+#echo "--------------------------------------------------"
+#if [ -d "platforms/android" ]; then
+# exe cp google-services.json platforms/android/app/
+#else
+# echo "Directory platforms/android doesn't exist"
+#fi
#echo "Fixing insecure SSL permission problem"
#echo "--------------------------------------------------"
diff --git a/package.json b/package.json
index 2a23f8df..7dfda160 100644
--- a/package.json
+++ b/package.json
@@ -1,12 +1,14 @@
{
"name": "zmninjapro",
"description": "Home security mobile app for ZoneMinder",
- "version":"1.3.037",
+ "version": "1.3.038",
"displayName": "zmNinja",
"author": "Pliable Pixels",
"license": "custom see LICENSE.md",
"cordova": {
- "platforms": [],
+ "platforms": [
+ "android"
+ ],
"plugins": {
"cordova-plugin-add-swift-support": {},
"cordova-plugin-android-permissions": {},
@@ -60,6 +62,7 @@
},
"dependencies": {
"clivas": "^0.2.0",
+ "cordova-android": "7.1.4",
"cordova-custom-config": "5.0.2",
"cordova-library-helper-pp-fork": "^1.0.1",
"cordova-plugin-add-swift-support": "^1.7.2",
@@ -98,7 +101,8 @@
"keypress": "^0.2.1",
"menu": "^0.2.5",
"minimist": "^1.2.0",
- "mkdirp": "^0.5.1"
+ "mkdirp": "^0.5.1",
+ "phonegap-plugin-push": "~2.2.3"
},
"devDependencies": {
"@ionic/v1-toolkit": "^1.0.14",
@@ -174,4 +178,4 @@
]
}
}
-}
+} \ No newline at end of file
diff --git a/resources/android/icon/drawable-hdpi-icon.png b/resources/android/icon/drawable-hdpi-icon.png
index aff13206..5e033024 100644
--- a/resources/android/icon/drawable-hdpi-icon.png
+++ b/resources/android/icon/drawable-hdpi-icon.png
Binary files differ
diff --git a/resources/android/icon/drawable-ldpi-icon.png b/resources/android/icon/drawable-ldpi-icon.png
index e4f0c0bb..9ab39ad4 100644
--- a/resources/android/icon/drawable-ldpi-icon.png
+++ b/resources/android/icon/drawable-ldpi-icon.png
Binary files differ
diff --git a/resources/android/icon/drawable-mdpi-icon.png b/resources/android/icon/drawable-mdpi-icon.png
index ab69ced4..22414263 100644
--- a/resources/android/icon/drawable-mdpi-icon.png
+++ b/resources/android/icon/drawable-mdpi-icon.png
Binary files differ
diff --git a/resources/android/icon/drawable-xhdpi-icon.png b/resources/android/icon/drawable-xhdpi-icon.png
index f7ba0c71..16a3788b 100644
--- a/resources/android/icon/drawable-xhdpi-icon.png
+++ b/resources/android/icon/drawable-xhdpi-icon.png
Binary files differ
diff --git a/resources/android/icon/drawable-xxhdpi-icon.png b/resources/android/icon/drawable-xxhdpi-icon.png
index c41af2c8..1df1a831 100644
--- a/resources/android/icon/drawable-xxhdpi-icon.png
+++ b/resources/android/icon/drawable-xxhdpi-icon.png
Binary files differ
diff --git a/resources/android/icon/drawable-xxxhdpi-icon.png b/resources/android/icon/drawable-xxxhdpi-icon.png
index 28de6a54..2368b543 100644
--- a/resources/android/icon/drawable-xxxhdpi-icon.png
+++ b/resources/android/icon/drawable-xxxhdpi-icon.png
Binary files differ
diff --git a/resources/android/splash/drawable-land-hdpi-screen.png b/resources/android/splash/drawable-land-hdpi-screen.png
index 9e523f9e..df83dcf3 100644
--- a/resources/android/splash/drawable-land-hdpi-screen.png
+++ b/resources/android/splash/drawable-land-hdpi-screen.png
Binary files differ
diff --git a/resources/android/splash/drawable-land-ldpi-screen.png b/resources/android/splash/drawable-land-ldpi-screen.png
index c1dd0c3e..29988487 100644
--- a/resources/android/splash/drawable-land-ldpi-screen.png
+++ b/resources/android/splash/drawable-land-ldpi-screen.png
Binary files differ
diff --git a/resources/android/splash/drawable-land-mdpi-screen.png b/resources/android/splash/drawable-land-mdpi-screen.png
index 657d73cb..617720d3 100644
--- a/resources/android/splash/drawable-land-mdpi-screen.png
+++ b/resources/android/splash/drawable-land-mdpi-screen.png
Binary files differ
diff --git a/resources/android/splash/drawable-land-xhdpi-screen.png b/resources/android/splash/drawable-land-xhdpi-screen.png
index 0e7a58c8..0b5329cd 100644
--- a/resources/android/splash/drawable-land-xhdpi-screen.png
+++ b/resources/android/splash/drawable-land-xhdpi-screen.png
Binary files differ
diff --git a/resources/android/splash/drawable-land-xxhdpi-screen.png b/resources/android/splash/drawable-land-xxhdpi-screen.png
index 300fd464..ffdf72c8 100644
--- a/resources/android/splash/drawable-land-xxhdpi-screen.png
+++ b/resources/android/splash/drawable-land-xxhdpi-screen.png
Binary files differ
diff --git a/resources/android/splash/drawable-land-xxxhdpi-screen.png b/resources/android/splash/drawable-land-xxxhdpi-screen.png
index a128472f..05209dd6 100644
--- a/resources/android/splash/drawable-land-xxxhdpi-screen.png
+++ b/resources/android/splash/drawable-land-xxxhdpi-screen.png
Binary files differ
diff --git a/resources/android/splash/drawable-port-hdpi-screen.png b/resources/android/splash/drawable-port-hdpi-screen.png
index b48f145c..2f6584f6 100644
--- a/resources/android/splash/drawable-port-hdpi-screen.png
+++ b/resources/android/splash/drawable-port-hdpi-screen.png
Binary files differ
diff --git a/resources/android/splash/drawable-port-ldpi-screen.png b/resources/android/splash/drawable-port-ldpi-screen.png
index c9ec1474..bbb576ed 100644
--- a/resources/android/splash/drawable-port-ldpi-screen.png
+++ b/resources/android/splash/drawable-port-ldpi-screen.png
Binary files differ
diff --git a/resources/android/splash/drawable-port-mdpi-screen.png b/resources/android/splash/drawable-port-mdpi-screen.png
index 55012148..16ae587d 100644
--- a/resources/android/splash/drawable-port-mdpi-screen.png
+++ b/resources/android/splash/drawable-port-mdpi-screen.png
Binary files differ
diff --git a/resources/android/splash/drawable-port-xhdpi-screen.png b/resources/android/splash/drawable-port-xhdpi-screen.png
index 0c8bc556..45f75fbd 100644
--- a/resources/android/splash/drawable-port-xhdpi-screen.png
+++ b/resources/android/splash/drawable-port-xhdpi-screen.png
Binary files differ
diff --git a/resources/android/splash/drawable-port-xxhdpi-screen.png b/resources/android/splash/drawable-port-xxhdpi-screen.png
index 5ca29148..b442580c 100644
--- a/resources/android/splash/drawable-port-xxhdpi-screen.png
+++ b/resources/android/splash/drawable-port-xxhdpi-screen.png
Binary files differ
diff --git a/resources/android/splash/drawable-port-xxxhdpi-screen.png b/resources/android/splash/drawable-port-xxxhdpi-screen.png
index 45d4f5b3..bd4a945c 100644
--- a/resources/android/splash/drawable-port-xxxhdpi-screen.png
+++ b/resources/android/splash/drawable-port-xxxhdpi-screen.png
Binary files differ
diff --git a/www/external/android-notification-icons/drawable-hdpi-v11/ic_stat_notification.png b/www/external/android-notification-icons/drawable-hdpi-v11/ic_stat_notification.png
deleted file mode 100755
index 173932de..00000000
--- a/www/external/android-notification-icons/drawable-hdpi-v11/ic_stat_notification.png
+++ /dev/null
Binary files differ
diff --git a/www/external/android-notification-icons/drawable-mdpi-v11/ic_stat_notification.png b/www/external/android-notification-icons/drawable-mdpi-v11/ic_stat_notification.png
deleted file mode 100755
index 69685c86..00000000
--- a/www/external/android-notification-icons/drawable-mdpi-v11/ic_stat_notification.png
+++ /dev/null
Binary files differ
diff --git a/www/external/android-notification-icons/drawable-xhdpi-v11/ic_stat_notification.png b/www/external/android-notification-icons/drawable-xhdpi-v11/ic_stat_notification.png
deleted file mode 100755
index 780fc21f..00000000
--- a/www/external/android-notification-icons/drawable-xhdpi-v11/ic_stat_notification.png
+++ /dev/null
Binary files differ
diff --git a/www/external/android-notification-icons/drawable-xxhdpi-v11/ic_stat_notification.png b/www/external/android-notification-icons/drawable-xxhdpi-v11/ic_stat_notification.png
deleted file mode 100755
index bb0a69c4..00000000
--- a/www/external/android-notification-icons/drawable-xxhdpi-v11/ic_stat_notification.png
+++ /dev/null
Binary files differ
diff --git a/www/external/android-notification-icons/drawable-xxxhdpi-v11/ic_stat_notification.png b/www/external/android-notification-icons/drawable-xxxhdpi-v11/ic_stat_notification.png
deleted file mode 100755
index d02d7189..00000000
--- a/www/external/android-notification-icons/drawable-xxxhdpi-v11/ic_stat_notification.png
+++ /dev/null
Binary files differ
diff --git a/www/js/DataModel.js b/www/js/DataModel.js
index ba9417f5..e19a4a0c 100644
--- a/www/js/DataModel.js
+++ b/www/js/DataModel.js
@@ -20,7 +20,7 @@ angular.module('zmApp.controllers')
DO NOT TOUCH zmAppVersion
It is changed by sync_version.sh
*/
- var zmAppVersion = "1.3.037";
+ var zmAppVersion = "1.3.038";
var isBackground = false;
var justResumed = false;
var timeSinceResumed = -1;