WIP: Initial attempt to port to 20.04

update clickable.json to clickable.yaml and set template unconfined

WIP: Initial attempt to port to 20.04

update clickable.json to clickable.yaml and set template unconfined

bumb click app version to 1.7.18

bump version accordingly to version.txt

bump version accordingly to version.txt

bump version accordingly to version.txt
This commit is contained in:
Michael Zanetti 2023-01-19 23:04:12 +01:00
parent 33d8ef9630
commit 25608c1aa3
9 changed files with 39 additions and 36 deletions

View File

@ -1 +0,0 @@
packaging/ubuntu/click/clickable.json

1
clickable.yaml Symbolic link
View File

@ -0,0 +1 @@
packaging/ubuntu/click/clickable.yaml

View File

@ -206,7 +206,7 @@ ubports: {
DEFINES += UBPORTS
CONFIG += link_pkgconfig
PKGCONFIG += connectivity-qt1 dbus-1 libnih-dbus libnih
PKGCONFIG += lomiri-connectivity-qt1
HEADERS += platformintegration/ubports/pushclient.h \
platformintegration/ubports/platformhelperubports.h \

View File

@ -1,6 +1,3 @@
#include <libnih.h>
#include <libnih-dbus.h>
#include "platformhelperubports.h"
@ -36,7 +33,7 @@ QString PlatformHelperUBPorts::deviceSerial() const
void PlatformHelperUBPorts::setupUriHandler()
{
QString objectPath;
QString objectPath = QStringLiteral("/");
if (!QDBusConnection::sessionBus().isConnected()) {
qWarning() << "UCUriHandler: D-Bus session bus is not connected, ignoring.";
@ -49,9 +46,16 @@ void PlatformHelperUBPorts::setupUriHandler()
qWarning() << "UCUriHandler: Empty \"APP_ID\" environment variable, ignoring.";
return;
}
char* path = nih_dbus_path(NULL, "", applicationId.constData(), nullptr);
objectPath = QString::fromLocal8Bit(path);
nih_free(path);
// Convert applicationID into usable dbus object path
for (int i = 0; i < applicationId.size(); ++i) {
QChar ch = applicationId.at(i);
if (ch.isLetterOrNumber()) {
objectPath += ch;
} else {
objectPath += QString::asprintf("_%02x", ch.toLatin1());
}
}
// Ensure handler is running on the main thread.
QCoreApplication* instance = QCoreApplication::instance();

View File

@ -1,22 +0,0 @@
{
"builder": "qmake",
"kill": "nymea-app",
"qt_version": "5.12",
"build_args": "CONFIG+=ubports",
"ignore_review_errors": true,
"dependencies_target": [
"libavahi-client-dev",
"libavahi-common-dev",
"libqt5charts5-dev",
"qt5-default",
"qml-module-qtcharts",
"qml-module-qt-labs-calendar",
"libconnectivity-qt1-dev",
"libunity-api-dev",
"libnih-dbus-dev",
"libdbus-1-dev"
],
"install_qml": [
"/usr/lib/${ARCH_TRIPLET}/qt5/qml/Qt/labs/calendar/"
]
}

View File

@ -0,0 +1,21 @@
clickable_minimum_required: '7.5.0'
builder: qmake
kill: nymea-app
skip_review: true
ignore_review_errors: true
framework: ubuntu-sdk-20.04
dependencies_target:
- libavahi-client-dev
- libavahi-common-dev
- libqt5charts5-dev
- qt5-default
- qml-module-qtcharts
- qml-module-qt-labs-calendar
- qtconnectivity5-dev
- libunity-api-dev
- liblomiri-connectivity-qt1
- libdbus-1-dev
qt_version: '5.12'
build_args: 'CONFIG+=ubports'
install_qml:
- /usr/lib/${ARCH_TRIPLET}/qt5/qml/Qt/labs/calendar/

View File

@ -1,6 +1,6 @@
{
"name": "io.guh.nymeaapp",
"description": "Client app for for nymea",
"description": "Client app for nymea",
"title": "nymea:app",
"architecture": "@CLICK_ARCH@",
"hooks": {
@ -14,7 +14,7 @@
"push-helper": "push.json"
}
},
"version": "1.0.100",
"version": "1.8.14",
"maintainer": "nymea GmbH <developer@nymea.io>",
"framework" : "ubuntu-sdk-16.04.6"
"framework" : "ubuntu-sdk-20.04"
}

View File

@ -1,5 +1,5 @@
{
"template": "unconfined",
"policy_groups": ["networking"],
"policy_version": 16.04
"policy_version": 20.04
}

View File

@ -3,5 +3,5 @@
"policy_groups": [
"push-notification-client"
],
"policy_version": 16.04
"policy_version": 20.04
}