Adapt template to app being built.
This commit is contained in:
@@ -33,14 +33,12 @@ find_package(KF5Kirigami2 ${KF5_MIN_VERSION})
|
||||
|
||||
################# Enable C++11 features for clang and gcc #################
|
||||
|
||||
if(UNIX)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++0x")
|
||||
endif()
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
|
||||
################# build and install #################
|
||||
add_subdirectory(src)
|
||||
|
||||
install(PROGRAMS org.kde.qiflora.desktop DESTINATION ${KDE_INSTALL_APPDIR})
|
||||
install(FILES org.kde.qiflora.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
|
||||
install(PROGRAMS org.eyecreate.qiflora.desktop DESTINATION ${KDE_INSTALL_APPDIR})
|
||||
install(FILES org.eyecreate.qiflora.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
|
||||
|
||||
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Kirigami application template
|
||||
# QiFlora
|
||||
|
||||
This repository can be used as a template to develop Plasma Mobile applications.
|
||||
It already includes templates for the qml ui, a c++ part, app metadata and flatpak packaging.
|
||||
Mobile friendly application to monitor Mi Flora devices.
|
||||
Plants using this device will have thier data logged when app is used and graphed to better monitor plant health.
|
||||
|
||||
# Usage
|
||||
See [docs.plasma-mobile.org](https://docs.plasma-mobile.org/AppDevelopment.html).
|
||||
|
||||
13
org.eyecreate.qiflora.appdata.xml
Normal file
13
org.eyecreate.qiflora.appdata.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>org.eyecreate.qiflora</id>
|
||||
<name>QiFlora</name>
|
||||
<summary>Mobile friendly application to monitor Mi Flora devices.</summary>
|
||||
<metadata_license>FSFAP</metadata_license>
|
||||
<project_license>GPL-3+</project_license>
|
||||
<developer_name>eyecreate</developer_name>
|
||||
<description>
|
||||
<p>Mobile friendly application to monitor Mi Flora devices.</p>
|
||||
<p>Plants using this device will have thier data logged when app is used and graphed to better monitor plant health.</p>
|
||||
</description>
|
||||
</component>
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"id": "org.kde.qiflora",
|
||||
"id": "org.eyecreate.qiflora",
|
||||
"runtime": "org.kde.Platform",
|
||||
"runtime-version": "5.12",
|
||||
"sdk": "org.kde.Sdk",
|
||||
@@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>org.kde.qiflora</id>
|
||||
<name>Kirigami Example Application</name>
|
||||
<summary>A short summary describing what this software is about</summary>
|
||||
<metadata_license>A permissive license for this metadata, e.g. "FSFAP"</metadata_license>
|
||||
<project_license>The license of this software as SPDX string, e.g. "GPL-3+"</project_license>
|
||||
<developer_name>The software vendor name, e.g. "ACME Corporation"</developer_name>
|
||||
<description>
|
||||
<p>Multiple paragraphs of long description, describing this software component.</p>
|
||||
<p>You can also use ordered and unordered lists:</p>
|
||||
<ul>
|
||||
<li>Feature 1</li>
|
||||
<li>Feature 2</li>
|
||||
</ul>
|
||||
<p>Keep in mind to XML-escape characters, and that this is not HTML markup.</p>
|
||||
</description>
|
||||
</component>
|
||||
@@ -7,8 +7,8 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
|
||||
{
|
||||
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
QApplication app(argc, argv);
|
||||
QCoreApplication::setOrganizationName("KDE");
|
||||
QCoreApplication::setOrganizationDomain("kde.org");
|
||||
QCoreApplication::setOrganizationName("eyecreate");
|
||||
QCoreApplication::setOrganizationDomain("eyecreate.org");
|
||||
QCoreApplication::setApplicationName("qiflora");
|
||||
|
||||
QQmlApplicationEngine engine;
|
||||
|
||||
Reference in New Issue
Block a user