aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Dapena Paz <jdapena@igalia.com>2022-04-11 11:56:55 +0200
committerJose Dapena Paz <jdapena@igalia.com>2022-04-20 15:46:42 +0200
commit5c9e060c508ab5ea49241d3a88f86075d6dc39cf (patch)
treea9b7da66ef2c84cfacc196ffe9736fd92c391a33
parent21bd1dcdffeafa82948b969062f5221f6e8d480c (diff)
Use appinfo.json instead of config.xml
Bug-AGL: SPEC-4251 Change-Id: I3cbe81b26d6d664d43f1d2a7c146e4209a9c7237 Signed-off-by: Jose Dapena Paz <jdapena@igalia.com>
-rw-r--r--src/appinfo.json17
-rw-r--r--src/config.xml14
-rw-r--r--webpack.config.js2
3 files changed, 18 insertions, 15 deletions
diff --git a/src/appinfo.json b/src/appinfo.json
new file mode 100644
index 0000000..a34542a
--- /dev/null
+++ b/src/appinfo.json
@@ -0,0 +1,17 @@
+{
+ "id": "homescreen",
+ "title": "Home screen",
+ "description": "HTML5 Homescreen demo",
+ "version": "1.0.0",
+ "vendor": "Igalia, S.L.",
+ "type": "web",
+ "main": "index.html",
+ "uiRevision": "2",
+ "icon": "icon.svg",
+ "surface": {
+ "role": "panel",
+ "panel_edge": "left",
+ "width": "218"
+ },
+ "extensions": [ "agl_appservice" ]
+}
diff --git a/src/config.xml b/src/config.xml
deleted file mode 100644
index c882d1f..0000000
--- a/src/config.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<widget xmlns="http://www.w3.org/ns/widgets" id="homescreen" version="1.0.0">
- <name>Homescreen</name>
- <icon src="icon.svg"/>
- <content src="index.html" type="text/html"/>
- <description>HTML5 Homescreen demo</description>
- <author>Igalia, S.L.</author>
- <license>APL 2.0</license>
- <surface role="panel" panel="left"/>
- <window width="218"/>
- <feature name="urn:AGL:widget:required-api">
- <param name="agl_appservice" value="injection" />
- </feature>
-</widget>
diff --git a/webpack.config.js b/webpack.config.js
index 55c8d7a..deb5534 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -30,7 +30,7 @@ module.exports = {
flatten: true
},
{
- from: 'src/config.xml',
+ from: 'src/appinfo.json',
flatten: true
},
{