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:
parent
33d8ef9630
commit
25608c1aa3
@ -1 +0,0 @@
|
|||||||
packaging/ubuntu/click/clickable.json
|
|
||||||
1
clickable.yaml
Symbolic link
1
clickable.yaml
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
packaging/ubuntu/click/clickable.yaml
|
||||||
@ -206,7 +206,7 @@ ubports: {
|
|||||||
DEFINES += UBPORTS
|
DEFINES += UBPORTS
|
||||||
|
|
||||||
CONFIG += link_pkgconfig
|
CONFIG += link_pkgconfig
|
||||||
PKGCONFIG += connectivity-qt1 dbus-1 libnih-dbus libnih
|
PKGCONFIG += lomiri-connectivity-qt1
|
||||||
|
|
||||||
HEADERS += platformintegration/ubports/pushclient.h \
|
HEADERS += platformintegration/ubports/pushclient.h \
|
||||||
platformintegration/ubports/platformhelperubports.h \
|
platformintegration/ubports/platformhelperubports.h \
|
||||||
|
|||||||
@ -1,6 +1,3 @@
|
|||||||
#include <libnih.h>
|
|
||||||
#include <libnih-dbus.h>
|
|
||||||
|
|
||||||
#include "platformhelperubports.h"
|
#include "platformhelperubports.h"
|
||||||
|
|
||||||
|
|
||||||
@ -36,7 +33,7 @@ QString PlatformHelperUBPorts::deviceSerial() const
|
|||||||
|
|
||||||
void PlatformHelperUBPorts::setupUriHandler()
|
void PlatformHelperUBPorts::setupUriHandler()
|
||||||
{
|
{
|
||||||
QString objectPath;
|
QString objectPath = QStringLiteral("/");
|
||||||
|
|
||||||
if (!QDBusConnection::sessionBus().isConnected()) {
|
if (!QDBusConnection::sessionBus().isConnected()) {
|
||||||
qWarning() << "UCUriHandler: D-Bus session bus is not connected, ignoring.";
|
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.";
|
qWarning() << "UCUriHandler: Empty \"APP_ID\" environment variable, ignoring.";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
char* path = nih_dbus_path(NULL, "", applicationId.constData(), nullptr);
|
|
||||||
objectPath = QString::fromLocal8Bit(path);
|
// Convert applicationID into usable dbus object path
|
||||||
nih_free(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.
|
// Ensure handler is running on the main thread.
|
||||||
QCoreApplication* instance = QCoreApplication::instance();
|
QCoreApplication* instance = QCoreApplication::instance();
|
||||||
|
|||||||
@ -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/"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
21
packaging/ubuntu/click/clickable.yaml
Normal file
21
packaging/ubuntu/click/clickable.yaml
Normal 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/
|
||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "io.guh.nymeaapp",
|
"name": "io.guh.nymeaapp",
|
||||||
"description": "Client app for for nymea",
|
"description": "Client app for nymea",
|
||||||
"title": "nymea:app",
|
"title": "nymea:app",
|
||||||
"architecture": "@CLICK_ARCH@",
|
"architecture": "@CLICK_ARCH@",
|
||||||
"hooks": {
|
"hooks": {
|
||||||
@ -14,7 +14,7 @@
|
|||||||
"push-helper": "push.json"
|
"push-helper": "push.json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"version": "1.0.100",
|
"version": "1.8.14",
|
||||||
"maintainer": "nymea GmbH <developer@nymea.io>",
|
"maintainer": "nymea GmbH <developer@nymea.io>",
|
||||||
"framework" : "ubuntu-sdk-16.04.6"
|
"framework" : "ubuntu-sdk-20.04"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"template": "unconfined",
|
"template": "unconfined",
|
||||||
"policy_groups": ["networking"],
|
"policy_groups": ["networking"],
|
||||||
"policy_version": 16.04
|
"policy_version": 20.04
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,5 +3,5 @@
|
|||||||
"policy_groups": [
|
"policy_groups": [
|
||||||
"push-notification-client"
|
"push-notification-client"
|
||||||
],
|
],
|
||||||
"policy_version": 16.04
|
"policy_version": 20.04
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user