summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Dapena Paz <jdapena@igalia.com>2022-04-11 12:05:53 +0200
committerJose Dapena Paz <jdapena@igalia.com>2022-04-20 15:47:41 +0200
commite64d69bdad0bb302900ec631b54ad6b6d6dcbacd (patch)
treeae7f0661adbb4369112b44fddf979d7b50196bc5
parent45641bf053eade93cd3590b2286377869bb799cf (diff)
Use appinfo.json instead of config.xml
Bug-AGL: SPEC-4251 Change-Id: Ic273c68913afaa2c92326778706cc36499d77d21 Signed-off-by: Jose Dapena Paz <jdapena@igalia.com>
-rw-r--r--src/appinfo.json11
-rw-r--r--src/config.xml21
-rw-r--r--webpack.config.js2
3 files changed, 12 insertions, 22 deletions
diff --git a/src/appinfo.json b/src/appinfo.json
new file mode 100644
index 0000000..4797951
--- /dev/null
+++ b/src/appinfo.json
@@ -0,0 +1,11 @@
+{
+ "id": "webapps-hvac",
+ "title": "HVAC",
+ "description": "HTML5 HVAC demo",
+ "version": "0.0.0",
+ "vendor": "Igalia, S.L.",
+ "type": "web",
+ "main": "index.html",
+ "uiRevision": "2",
+ "icon": "icon.svg"
+}
diff --git a/src/config.xml b/src/config.xml
deleted file mode 100644
index f593184..0000000
--- a/src/config.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<widget xmlns="http://www.w3.org/ns/widgets" id="webapps-hvac" version="0.0.0">
- <name>HVAC</name>
- <icon src="icon.svg"/>
- <content src="index.html" type="text/html"/>
- <description>HTML5 HVAC demo</description>
- <author>Igalia, S.L.</author>
- <license>APL 2.0</license>
- <feature name="urn:AGL:widget:required-permission">
- <param name="urn:AGL:permission::public:no-htdocs" value="required" />
- <param name="urn:AGL:permission::public:display" value="required" />
- <param name="urn:AGL:permission::public:audio" value="required" />
- <param name="urn:AGL:permission:afm:system:widget" value="required" /> <!-- list available apps -->
- <param name="urn:AGL:permission:afm:system:runner" value="required" /> <!-- run other apps -->
- <param name="urn:AGL:permission::public:applications:read" value="required" /> <!-- get app icons -->
- </feature>
- <feature name="urn:AGL:widget:required-api">
- <param name="homescreen" value="ws" />
- <param name="afm-main" value="ws" />
- </feature>
-</widget>
diff --git a/webpack.config.js b/webpack.config.js
index 681704b..b300f01 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -34,7 +34,7 @@ module.exports = {
flatten: true
},
{
- from: 'src/config.xml',
+ from: 'src/appinfo.json',
flatten: true
},
{