From 3134b60fcaf667fdcbde630dbd1aa7196723e27f Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Tue, 11 Dec 2018 11:40:53 -0500 Subject: more updates --- build_android.sh | 2 +- config.xml | 4 +++- hooks/before_prepare/01_pp_hacks.sh | 8 ++++++++ package.json | 10 ++++++---- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/build_android.sh b/build_android.sh index c3ea0308..87e8982f 100755 --- a/build_android.sh +++ b/build_android.sh @@ -50,7 +50,7 @@ build_release() { cordova build android --release -- --minSdkVersion=21 --versionCode=${ver} # copy build to release folder and sign - cp platforms/android/build/outputs/apk/release/android-release-unsigned.apk release_files/ + cp platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk release_files/android-release-unsigned.apk echo "Copied files to release_files" cd release_files/ diff --git a/config.xml b/config.xml index ba64183f..3913ea08 100644 --- a/config.xml +++ b/config.xml @@ -164,9 +164,11 @@ - + + + diff --git a/hooks/before_prepare/01_pp_hacks.sh b/hooks/before_prepare/01_pp_hacks.sh index 06980e1e..304aca79 100755 --- a/hooks/before_prepare/01_pp_hacks.sh +++ b/hooks/before_prepare/01_pp_hacks.sh @@ -55,6 +55,14 @@ 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 "--------------------------------------------------" #if [ -d "platforms/android/CordovaLib/src/org/apache/cordova/engine" ]; then diff --git a/package.json b/package.json index 8bed17a0..b1a34725 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "zmninjapro", "description": "Home security mobile app for ZoneMinder", - "version":"1.3.035", + "version": "1.3.035", "displayName": "zmNinja", "author": "Pliable Pixels", "license": "custom see LICENSE.md", @@ -48,10 +48,12 @@ "ANDROID_SUPPORT_V4_VERSION": "24.1.1+" }, "cordova-plugin-media-pp-fork": {}, - "cordova-plugin-certificates-pp-fork": {}, "phonegap-plugin-push": { "ANDROID_SUPPORT_V13_VERSION": "27.+", "FCM_VERSION": "11.6.2" + }, + "cordova-plugin-ionic-webview": { + "ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+" } } }, @@ -64,7 +66,6 @@ "cordova-plugin-android-fingerprint-auth": "^1.5.0", "cordova-plugin-android-permissions": "^1.0.0", "cordova-plugin-app-version": "^0.1.9", - "cordova-plugin-certificates-pp-fork": "^0.9.1", "cordova-plugin-cloud-settings": "^1.0.4", "cordova-plugin-customurlscheme": "^4.3.0", "cordova-plugin-device": "^2.0.2", @@ -75,6 +76,7 @@ "cordova-plugin-inappbrowser": "^1.7.2", "cordova-plugin-insomnia": "^4.3.0", "cordova-plugin-ionic-keyboard": "^2.1.3", + "cordova-plugin-ionic-webview": "git+https://github.com/pliablepixels/cordova-plugin-ionic-webview.git", "cordova-plugin-media-pp-fork": "^1.0.2-dev", "cordova-plugin-multi-window": "0.0.3", "cordova-plugin-network-information": "^2.0.1", @@ -170,4 +172,4 @@ ] } } -} +} \ No newline at end of file -- cgit v1.2.3