diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0bf64ae --- /dev/null +++ b/Makefile @@ -0,0 +1,36 @@ +export ANDROID_SDK_ROOT=/Users/hansr/Library/Android/sdk + +all: run + +el: plugin + cordova build electron + +run: + clear + cp ../rdzwx-plugin/src/android/*.kt ./platforms/android/app/src/main/kotlin/de/dl9rdz/ + cordova run android --device + +full: + clear + cordova plugin rm de-dl9rdz-rdzwx + cordova plugin add ../rdzwx-plugin/ + cordova run android --device + +plugin: + cordova plugin rm de-dl9rdz-rdzwx + cordova plugin add ../rdzwx-plugin/ + +release: apkrelease sign + +mkrelease: + cordova build --release + +.ONESHELL: +sign: + cd platforms/android/app/build/outputs/apk/release/ && \ + /Users/hansr/Library/Android//sdk/build-tools/30.0.3/zipalign -v -p 4 app-release-unsigned.apk app-release-unsigned-aligned.apk && \ + /Users/hansr/Library/Android//sdk/build-tools/30.0.3/apksigner sign --ks ~/src/rdzwx-go/my-release-key.jks --out app-release.apk app-release-unsigned-aligned.apk + +apkrelease: + cordova build --release -- --packageType=apk + diff --git a/config.xml b/config.xml index ec36325..73d19e3 100644 --- a/config.xml +++ b/config.xml @@ -1,5 +1,5 @@ - rdzSonde @@ -39,7 +39,7 @@ - + diff --git a/package.json b/package.json index 54699f4..847927d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "de.dl9rdz", "displayName": "rdzwx-go", - "version": "1.0.6", + "version": "1.0.7", "description": "A sample Apache Cordova application that uses rdzwx-plugin.", "main": "index.js", "scripts": { @@ -12,20 +12,28 @@ ], "author": "Hansi Reiser ", "license": "Apache-2.0", + "overrides": { + "electron-builder": "23.0.3" + }, + "dependencies": { + "jetifier": "^2.0.0", + "net": "^1.0.2", + "update": "^0.7.4", + "xmlhttprequest": "^1.8.0" + }, "devDependencies": { "cordova-android": "^10.1.2", "cordova-browser": "^6.0.0", "cordova-electron": "^3.0.0", "cordova-plugin-androidx-adapter": "^1.1.3", "cordova-plugin-inappbrowser": "^5.0.0", - "de-dl9rdz-rdzwx": "https://github.com/dl9rdz/rdzwx-plugin.git", - "rdzwx-plugin": "github:dl9rdz/rdzwx-plugin" + "rdzwx-plugin": "file:../rdzwx-plugin" }, "cordova": { "plugins": { - "de-dl9rdz-rdzwx": {}, "cordova-plugin-androidx-adapter": {}, - "cordova-plugin-inappbrowser": {} + "cordova-plugin-inappbrowser": {}, + "de-dl9rdz-rdzwx": {} }, "platforms": [ "android", @@ -33,9 +41,12 @@ "electron" ] }, - "dependencies": { - "jetifier": "^2.0.0", - "net": "^1.0.2", - "xmlhttprequest": "^1.8.0" + "browser": { + "net": false, + "fs": false + }, + "electron": { + "net": false, + "fs": false } } diff --git a/version.json b/version.json index 68faaa3..4f15b79 100644 --- a/version.json +++ b/version.json @@ -1,5 +1,5 @@ { - "version": "1.0.6", - "url": "https://github.com/dl9rdz/rdzwx-go/releases/tag/v1.0.6", - "apkurl": "https://github.com/dl9rdz/rdzwx-go/releases/download/v1.0.6/rdzSonde-v1.0.6.apk" -} \ No newline at end of file + "version": "1.0.7", + "url": "https://github.com/dl9rdz/rdzwx-go/releases/tag/v1.0.7", + "apkurl": "https://github.com/dl9rdz/rdzwx-go/releases/download/v1.0.7/rdzSonde-v1.0.7.apk" +} diff --git a/www/index.html b/www/index.html index 4967146..c80878d 100644 --- a/www/index.html +++ b/www/index.html @@ -33,7 +33,7 @@ - + @@ -48,14 +48,14 @@ - rdzSonde v1.0.6 +experimental + rdzSonde v1.0.7 +experimental
X -

rdzSonde v1.0.6 +experimental

-

Copyright © 2021 Hansi Reiser, dl9rdz

+

rdzSonde v1.0.7 +experimental

+

Copyright © 2022 Hansi Reiser, dl9rdz

see https://github.com/dl9rdz/rdzwx-go for details

Apache License Version 2.0


diff --git a/www/js/index.js b/www/js/index.js index 88e1dec..ff9c47f 100644 --- a/www/js/index.js +++ b/www/js/index.js @@ -608,7 +608,8 @@ function removePrediction(marker) { } function getPrediction(refobj) { - TAWHIRI = 'http://predict.cusf.co.uk/api/v1'; + // going out of service soon... TAWHIRI = 'http://predict.cusf.co.uk/api/v1'; + TAWHIRI = 'https://api.v2.sondehub.org/tawhiri'; if(refobj == null) { refobj = lastMarker; } if(refobj == null) { alert("no object available"); @@ -715,6 +716,8 @@ function callBack(arg) { return; } update(obj); + // for now, only for electron (does not support keepCallback) + //RdzWx.next(callBack); } function updateMypos(obj) {