Skip to content

Commit 7ea8a5b

Browse files
committed
Requested changes
1 parent 4cdc02f commit 7ea8a5b

File tree

10 files changed

+45
-31
lines changed

10 files changed

+45
-31
lines changed

cordova/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@
1111
"cordova": "^9.0.0",
1212
"cordova-android": "^8.1.0",
1313
"cordova-clipboard": "^1.3.0",
14-
"cordova-open-native-settings": "https://github.com/WalcoFPV/cordova-open-native-settings",
15-
"cordova-plugin-appavailability": "https://github.com/WalcoFPV/AppAvailability.git",
14+
"bf-cordova-open-native-settings": "^2.0.4",
15+
"bf-cordova-plugin-appavailability": "^1.0.3",
1616
"cordova-plugin-chrome-apps-common": "^1.0.7",
1717
"cordova-plugin-chrome-apps-runtime": "^2.0.0",
1818
"cordova-plugin-chrome-apps-storage": "^1.0.4",
19-
"cordova-plugin-chrome-apps-usb": "https://github.com/WalcoFPV/cordova-plugin-chrome-apps-usb.git",
19+
"bf-cordova-plugin-chrome-apps-usb": "^2.0.1",
2020
"cordova-plugin-dialogs": "^2.0.2",
2121
"cordova-plugin-file": "^6.0.2",
2222
"cordova-plugin-filechooser": "^1.2.0",
23-
"cordova-plugin-market": "https://github.com/xmartlabs/cordova-plugin-market.git",
23+
"cordova-plugin-market": "^1.2.0",
2424
"cordova-plugin-permission": "^0.1.0",
2525
"cordova-plugin-splashscreen": "^5.0.3",
2626
"cordova-plugin-usb-event": "^1.0.2",
2727
"cordova-plugin-whitelist": "^1.3.4",
28-
"cordovarduino": "https://github.com/WalcoFPV/cordovarduino.git"
28+
"bf-cordovarduino": "^1.0.0"
2929
},
3030
"cordova": {
3131
"platforms": [
@@ -40,15 +40,15 @@
4040
"cordova-plugin-permission": {},
4141
"cordova-plugin-usb-event": {},
4242
"cordova-plugin-dialogs": {},
43-
"cordovarduino": {},
43+
"bf-cordovarduino": {},
4444
"cordova-plugin-file": {},
4545
"cordova-plugin-filechooser": {},
46-
"cordova-plugin-chrome-apps-usb": {},
46+
"bf-cordova-plugin-chrome-apps-usb": {},
4747
"cordova-clipboard": {},
4848
"cordova-plugin-screen-orientation": {},
4949
"cordova-plugin-market": {},
50-
"cordova-open-native-settings": {},
51-
"cordova-plugin-appavailability": {}
50+
"bf-cordova-open-native-settings": {},
51+
"bf-cordova-plugin-appavailability": {}
5252
}
5353
}
5454
}

cordova/yarn.lock

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,16 @@ bcrypt-pbkdf@^1.0.0:
224224
dependencies:
225225
tweetnacl "^0.14.3"
226226

227+
bf-cordova-open-native-settings@^2.0.1:
228+
version "2.0.1"
229+
resolved "https://registry.yarnpkg.com/bf-cordova-open-native-settings/-/bf-cordova-open-native-settings-2.0.1.tgz#645c8f06b06aa67174deee7c356f7f8e599b14bc"
230+
integrity sha512-OCP0KOkYV/lG1QNezFiYB0PSkqRDyKRHdsTuKXzChDCdIIPjEwpp5+AiKpdJT0tioJjV2PK+fKRqsBsW2PuEEw==
231+
232+
bf-cordova-plugin-appavailability@^1.0.0:
233+
version "1.0.0"
234+
resolved "https://registry.yarnpkg.com/bf-cordova-plugin-appavailability/-/bf-cordova-plugin-appavailability-1.0.0.tgz#90560ab87b1a55d6779213b7b65b497c8932323c"
235+
integrity sha512-iavnVlrmn9EIF5JuGopAG3/cThGh0t1kYLTnAjttkghFNtNWFZpcl2sRM1EzMlEaTVH7pYhB/m3NKYYLAVJ+IA==
236+
227237
big-integer@^1.6.7:
228238
version "1.6.48"
229239
resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.48.tgz#8fd88bd1632cba4a1c8c3e3d7159f08bb95b4b9e"
@@ -610,14 +620,6 @@ cordova-lib@^9.0.0:
610620
shebang-command "^1.2.0"
611621
underscore "^1.9.1"
612622

613-
"cordova-open-native-settings@https://github.com/WalcoFPV/cordova-open-native-settings":
614-
version "1.5.2"
615-
resolved "https://github.com/WalcoFPV/cordova-open-native-settings#579d7b792baf3a9342a58ed7a658d625e154a6bb"
616-
617-
"cordova-plugin-appavailability@https://github.com/WalcoFPV/AppAvailability.git":
618-
version "0.4.2"
619-
resolved "https://github.com/WalcoFPV/AppAvailability.git#030a877a91a39b8260089050aaef0a94f3999ed6"
620-
621623
cordova-plugin-chrome-apps-common@^1.0.7:
622624
version "1.0.7"
623625
resolved "https://registry.yarnpkg.com/cordova-plugin-chrome-apps-common/-/cordova-plugin-chrome-apps-common-1.0.7.tgz#300319b59c79dc552293f83a2332cf283b10908a"

locales/en/messages.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5760,7 +5760,7 @@
57605760
"message": "The file will be saved in the '{{folder}}' folder in your internal storage."
57615761
},
57625762
"dialogFileAlreadyExistsTitle": {
5763-
"message": "This file already exists !"
5763+
"message": "This file already exists!"
57645764
},
57655765
"dialogFileAlreadyExistsDescription": {
57665766
"message": "Overwrite ?"
@@ -5802,7 +5802,7 @@
58025802
"message": "Update from the Google Play Store"
58035803
},
58045804
"cordovaWebviewEnable": {
5805-
"message": "Go in the tab of informations about your device in the settings and tap 10 times on the build version number to enable 'Developper options'. After that, search and go in the developper options and select <b>{{app}}</b> as webview provider."
5805+
"message": "Go into the tab of informations about your device in the settings and tap 10 times on the build version number to enable 'Developper options'. After that, search and go in the developper options and select <b>{{app}}</b> as webview provider."
58065806
},
58075807
"cordovaWebviewEnableBtn": {
58085808
"message": "Open settings"

src/js/cordova_chromeapi.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,10 @@ const chromeapiSerial = {
153153
if (typeof ConnectionOptions !== 'undefined') {
154154
self.setConnectionOptions(ConnectionOptions);
155155
}
156-
const pathSplitted = path.split('/');
157-
if (pathSplitted.length === 2) {
158-
const vid = parseInt(pathSplitted[0]);
159-
const pid = parseInt(pathSplitted[1]);
156+
const pathSplit = path.split('/');
157+
if (pathSplit.length === 2) {
158+
const vid = parseInt(pathSplit[0]);
159+
const pid = parseInt(pathSplit[1]);
160160
console.log(`${self.logHeader}request permission (vid=${vid} / pid=${pid})`);
161161
cordova_serial.requestPermission({vid: vid, pid: pid}, function() {
162162
const options = self.getCordovaSerialConnectionOptions();

src/js/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ function startProcess() {
214214
);
215215
});
216216

217-
UI_PHONES.init();
217+
if (GUI.isCordova()) {
218+
UI_PHONES.init();
219+
}
218220

219221
const ui_tabs = $('#tabs > ul');
220222
$('a', ui_tabs).click(function () {

src/js/port_handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ PortHandler.check_usb_devices = function (callback) {
162162
if (dfuElement.length) {
163163
dfuElement.remove();
164164
}
165-
self.dfu_available = false;
165+
self.dfu_available = false;
166166
}
167167
if(callback) callback(self.dfu_available);
168168

src/js/serial_backend.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ function initializeSerialBackend() {
147147
}
148148

149149
function finishClose(finishedCallback) {
150-
UI_PHONES.reset();
150+
if (GUI.isCordova()) {
151+
UI_PHONES.reset();
152+
}
151153

152154
var wasConnected = CONFIGURATOR.connectionValid;
153155

@@ -459,7 +461,9 @@ function finishOpen() {
459461
GUI.allowedTabs.splice(GUI.allowedTabs.indexOf('led_strip'), 1);
460462
}
461463

462-
UI_PHONES.reset();
464+
if (GUI.isCordova()) {
465+
UI_PHONES.reset();
466+
}
463467

464468
onConnect();
465469

src/js/tabs/cli.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,9 @@ TABS.cli.adaptPhones = function() {
328328
$('.backdrop').css('height', `calc(100% - ${backdropHeight}px)`);
329329
}
330330

331-
UI_PHONES.initToolbar();
331+
if (GUI.isCordova()) {
332+
UI_PHONES.initToolbar();
333+
}
332334
};
333335

334336
TABS.cli.history = {

src/js/tabs/vtx.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ TABS.vtx.initialize = function (callback) {
4141
// translate to user-selected language
4242
i18n.localizePage();
4343

44-
UI_PHONES.initToolbar();
44+
if (GUI.isCordova()) {
45+
UI_PHONES.initToolbar();
46+
}
4547

4648
self.updating = false;
4749
GUI.content_ready(callback);

src/main.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,10 @@
153153
</div>
154154
<div id="port-picker">
155155
<div id="port-override-option">
156-
<label for="port-override"><span i18n="portOverrideText">Port:</span> <input id="port-override" type="text"
157-
value="/dev/rfcomm0"/></label>
156+
<label for="port-override">
157+
<span i18n="portOverrideText">Port:</span>
158+
<input id="port-override" type="text" value="/dev/rfcomm0"/>
159+
</label>
158160
</div>
159161
<div id="portsinput">
160162
<div class="dropdown dropdown-dark">

0 commit comments

Comments
 (0)