Skip to content

Commit 5c450d5

Browse files
Bump to 1.7.15. Add firebase to fix event server. Bump minSdkVersion to fix firebase.
1 parent da47f30 commit 5c450d5

File tree

5 files changed

+56
-12
lines changed

5 files changed

+56
-12
lines changed

config.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version='1.0' encoding='utf-8'?>
2-
<widget id="com.zoneminder.zmNinja" version="1.7.014" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
2+
<widget id="com.zoneminder.zmNinja" version="1.7.015" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
33
<name>zmNinja</name>
44
<description>
55
High performance ZoneMinder client
@@ -27,9 +27,9 @@
2727
<preference name="SplashMaintainAspectRatio" value="true" />
2828
<preference name="FadeSplashScreen" value="false" />
2929
<preference name="BackgroundColor" value="#444444" />
30-
<preference name="android-targetSdkVersion" value="35" />
31-
<preference name="android-compileSdkVersion" value="35" />
32-
<preference name="android-minSdkVersion" value="22" />
30+
<preference name="android-targetSdkVersion" value="34" />
31+
<preference name="android-compileSdkVersion" value="34" />
32+
<preference name="android-minSdkVersion" value="23" />
3333
<preference name="SplashScreenBackgroundColor" value="#ababab" />
3434
<preference name="StatusBarOverlaysWebView" value="false" />
3535
<preference name="StatusBarBackgroundColor" value="#2980b9" />

package-lock.json

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "zmninja",
33
"description": "Home security mobile app for ZoneMinder",
4-
"version": "1.7.014",
4+
"version": "1.7.015",
55
"displayName": "zmNinja",
66
"author": "Zoneminder Inc, Pliable Pixels",
77
"repository": {
@@ -51,7 +51,39 @@
5151
"PHOTO_LIBRARY_USAGE_DESCRIPTION": " "
5252
},
5353
"cordova-plugin-x-socialsharing": {},
54-
"cordova-plugin-certificates-pp-fork": {}
54+
"cordova-plugin-certificates-pp-fork": {},
55+
"cordova-plugin-firebasex": {
56+
"FIREBASE_ANALYTICS_COLLECTION_ENABLED": "true",
57+
"FIREBASE_PERFORMANCE_COLLECTION_ENABLED": "true",
58+
"FIREBASE_CRASHLYTICS_COLLECTION_ENABLED": "true",
59+
"FIREBASE_FCM_AUTOINIT_ENABLED": "true",
60+
"FIREBASE_ANALYTICS_WITHOUT_ADS": "false",
61+
"FIREBASE_MESSAGING_IMMEDIATE_PAYLOAD_DELIVERY": "false",
62+
"GOOGLE_ANALYTICS_ADID_COLLECTION_ENABLED": "true",
63+
"GOOGLE_ANALYTICS_DEFAULT_ALLOW_ANALYTICS_STORAGE": "true",
64+
"GOOGLE_ANALYTICS_DEFAULT_ALLOW_AD_STORAGE": "true",
65+
"GOOGLE_ANALYTICS_DEFAULT_ALLOW_AD_USER_DATA": "true",
66+
"GOOGLE_ANALYTICS_DEFAULT_ALLOW_AD_PERSONALIZATION_SIGNALS": "true",
67+
"ANDROID_ICON_ACCENT": "#FF00FFFF",
68+
"ANDROID_FIREBASE_PERFORMANCE_MONITORING": "false",
69+
"ANDROID_PLAY_SERVICES_TAGMANAGER_VERSION": "18.1.1",
70+
"ANDROID_PLAY_SERVICES_AUTH_VERSION": "21.3.0",
71+
"ANDROID_FIREBASE_ANALYTICS_VERSION": "22.2.0",
72+
"ANDROID_FIREBASE_MESSAGING_VERSION": "24.1.0",
73+
"ANDROID_FIREBASE_CONFIG_VERSION": "22.1.0",
74+
"ANDROID_FIREBASE_PERF_VERSION": "21.0.4",
75+
"ANDROID_FIREBASE_AUTH_VERSION": "23.2.0",
76+
"ANDROID_FIREBASE_INAPPMESSAGING_VERSION": "21.0.1",
77+
"ANDROID_FIREBASE_FIRESTORE_VERSION": "25.1.2",
78+
"ANDROID_FIREBASE_FUNCTIONS_VERSION": "21.1.0",
79+
"ANDROID_FIREBASE_IID_VERSION": "21.1.0",
80+
"ANDROID_FIREBASE_INSTALLATIONS_VERSION": "18.0.0",
81+
"ANDROID_FIREBASE_CRASHLYTICS_VERSION": "19.4.0",
82+
"ANDROID_FIREBASE_CRASHLYTICS_NDK_VERSION": "19.4.0",
83+
"ANDROID_GSON_VERSION": "2.11.0",
84+
"ANDROID_FIREBASE_PERF_GRADLE_PLUGIN_VERSION": "1.4.2",
85+
"ANDROID_GRPC_OKHTTP": "1.68.0"
86+
}
5587
}
5688
},
5789
"dependencies": {
@@ -97,6 +129,7 @@
97129
"cordova-plugin-device": "^3.0.0",
98130
"cordova-plugin-file": "^8.1.3",
99131
"cordova-plugin-file-transfer": "github:apache/cordova-plugin-file-transfer",
132+
"cordova-plugin-firebase": "^2.0.6",
100133
"cordova-plugin-firebasex": "^18.0.5",
101134
"cordova-plugin-globalization": "^1.11.0",
102135
"cordova-plugin-ignore-lint-translation": "^0.0.1",

www/js/EventServer.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -484,10 +484,14 @@ angular.module('zmApp.controllers')
484484
var plat = $rootScope.platformOS;
485485

486486
if ($rootScope.platformOS == 'desktop') {
487-
NVR.log ('push: Not setting up push as this is desktop.');
487+
NVR.log('push: Not setting up push as this is desktop.');
488488
return;
489489
}
490490

491+
if (!window.FirebasePlugin) {
492+
NVR.log('ERROR: Firebase is not included.');
493+
return;
494+
}
491495
// get permission if we need it
492496
window.FirebasePlugin.hasPermission(function(hasPermission){
493497
if (!hasPermission) {
@@ -549,12 +553,11 @@ angular.module('zmApp.controllers')
549553
};
550554

551555
// Create the channel
552-
window.FirebasePlugin.createChannel(channel,
553-
function(){
556+
window.FirebasePlugin.createChannel(channel, function(){
554557
NVR.debug('push: Channel created: ' + channel.id);
555558
},
556559
function(error){
557-
NVR.debug('push: Create channel error: ' + error);
560+
NVR.debug('push: Create channel error: ' + error);
558561
});
559562
}
560563

www/js/NVR.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ angular.module('zmApp.controllers')
2222
DO NOT TOUCH zmAppVersion
2323
It is changed by sync_version.sh
2424
*/
25-
var zmAppVersion = "1.7.014";
25+
var zmAppVersion = "1.7.015";
2626

2727
var isBackground = false;
2828
var justResumed = false;

0 commit comments

Comments
 (0)