summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-12-11 11:40:53 -0500
committerPliable Pixels <pliablepixels@gmail.com>2018-12-11 11:40:53 -0500
commit3134b60fcaf667fdcbde630dbd1aa7196723e27f (patch)
tree4d10d4cb75691c417f68dfa7d7e90fc0e52350b8
parenteb103da6f83e860c18c44ef7ee57b08511bac312 (diff)
more updates
-rwxr-xr-xbuild_android.sh2
-rw-r--r--config.xml4
-rwxr-xr-xhooks/before_prepare/01_pp_hacks.sh8
-rw-r--r--package.json10
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 @@
<variable name="ANDROID_SUPPORT_V4_VERSION" value="24.1.1+" />
</plugin>
<plugin name="cordova-plugin-media-pp-fork" spec="^1.0.2-dev" />
- <plugin name="cordova-plugin-certificates-pp-fork" spec="^0.9.1" />
<plugin name="phonegap-plugin-push" spec="~2.2.3">
<variable name="ANDROID_SUPPORT_V13_VERSION" value="27.+" />
<variable name="FCM_VERSION" value="11.6.2" />
</plugin>
+ <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>
</widget>
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