revisions

This commit is contained in:
pls.153 2023-09-05 22:38:18 +02:00
parent 3477808e40
commit 10677a19c9
5 changed files with 32 additions and 6 deletions

View file

@ -1,9 +1,7 @@
# This creates a signed APK for the PlayStore. # This creates a signed APK for the PlayStore.
# #
# (1) run 'make apk' before running this script # (1) set min sdk and target sdk in'app.pro'
# # (2) run 'make apk' before running this script
# (2) don't set min sdk and target sdk in 'AndroidManifest.xml'; instead,
# set them in 'app.pro'
# hack to not include Qt Widgets on mobile (not used) # hack to not include Qt Widgets on mobile (not used)
rm -f android-build/libs/arm64-v8a/libQt5Widgets_arm64-v8a.so rm -f android-build/libs/arm64-v8a/libQt5Widgets_arm64-v8a.so

View file

@ -0,0 +1,19 @@
# This creates a signed APK for the PlayStore.
#
# (1) set min sdk and target sdk in'app.pro'
# (2) run 'make apk' before running this script
# hack to not include Qt Widgets on mobile (not used)
rm -f android-build/libs/arm64-v8a/libQt5Widgets_arm64-v8a.so
mv ../qml/ext/dialogs/Confirm.qml ../qml/ext/dialogs/.Confirm.qml
mv ../qml/ext/dialogs/Message.qml ../qml/ext/dialogs/.Message.qml
~/Qt/5.15.2/android/bin/androiddeployqt \
--input android-app-deployment-settings.json \
--output android-build \
--release \
--sign <path-to-keystore-file>/my.keystore repl
# restore
mv ../qml/ext/dialogs/.Confirm.qml ../qml/ext/dialogs/Confirm.qml
mv ../qml/ext/dialogs/.Message.qml ../qml/ext/dialogs/Message.qml

View file

@ -51,6 +51,7 @@
(q> |playing| ui:*busy* t)) (q> |playing| ui:*busy* t))
(defun get-node-config () (defun get-node-config ()
;; see also Timer in 'qml/ext/Group.qml'
(when *ready* (when *ready*
(setf *schedule-clear* t) (setf *schedule-clear* t)
(setf *config-complete* nil (setf *config-complete* nil
@ -59,8 +60,7 @@
(incf *config-id*) (incf *config-id*)
(send-to-radio (send-to-radio
(me:make-to-radio :want-config-id *config-id*)) (me:make-to-radio :want-config-id *config-id*))
(q> |playing| ui:*busy* t) (q> |playing| ui:*busy* t)))
(qsingle-shot (* 15 60 1000) 'get-node-config))) ; every 15 min
(defun set-ready (name &optional (ready t)) ; see Qt (defun set-ready (name &optional (ready t)) ; see Qt
(setf *ready* ready) (setf *ready* ready)

View file

@ -227,5 +227,12 @@ Rectangle {
anchors.fill: rect anchors.fill: rect
visible: false visible: false
} }
Timer {
interval: 15 * 60 * 1000 // 15 min
repeat: true
running: true
onTriggered: Lisp.call("lora:get-node-config")
}
} }

View file

@ -42,6 +42,8 @@ Item {
Image { Image {
source: "img/logo-128.png" source: "img/logo-128.png"
x: 2
y: 2
width: headerHeight width: headerHeight
height: width height: width