mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
feat(appinfo): Add api-version to info.xml
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
9cd2e5bed9
commit
ed1d8d162c
7 changed files with 14 additions and 2 deletions
|
|
@ -119,6 +119,9 @@ class InfoParser {
|
|||
if (!array_key_exists('backend', $array['dependencies'])) {
|
||||
$array['dependencies']['backend'] = [];
|
||||
}
|
||||
if (!array_key_exists('api-version', $array)) {
|
||||
$array['api-version'] = [];
|
||||
}
|
||||
|
||||
if (array_key_exists('types', $array)) {
|
||||
if (is_array($array['types'])) {
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@
|
|||
maxOccurs="unbounded"/>
|
||||
<xs:element name="version" type="semver"
|
||||
minOccurs="1" maxOccurs="1"/>
|
||||
<xs:element name="api-version" type="semver"
|
||||
minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xs:element name="licence" type="licence" minOccurs="1"
|
||||
maxOccurs="unbounded"/>
|
||||
<xs:element name="author" type="author" minOccurs="1"
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@
|
|||
maxOccurs="unbounded"/>
|
||||
<xs:element name="version" type="semver"
|
||||
minOccurs="1" maxOccurs="1"/>
|
||||
<xs:element name="api-version" type="semver"
|
||||
minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xs:element name="licence" type="licence" minOccurs="1"
|
||||
maxOccurs="unbounded"/>
|
||||
<xs:element name="author" type="author" minOccurs="1"
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@
|
|||
},
|
||||
"background-jobs": [],
|
||||
"two-factor-providers": [],
|
||||
"api-version": [1, 2],
|
||||
"commands": [],
|
||||
"activity": {
|
||||
"filters": [],
|
||||
|
|
|
|||
|
|
@ -82,5 +82,6 @@
|
|||
"live-migration": [],
|
||||
"uninstall": []
|
||||
},
|
||||
"two-factor-providers": []
|
||||
"two-factor-providers": [],
|
||||
"api-version": []
|
||||
}
|
||||
|
|
|
|||
|
|
@ -88,5 +88,6 @@
|
|||
"live-migration": [],
|
||||
"uninstall": []
|
||||
},
|
||||
"two-factor-providers": []
|
||||
"two-factor-providers": [],
|
||||
"api-version": []
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,4 +36,6 @@
|
|||
<owncloud min-version="7.0.1" max-version="8" />
|
||||
<backend>caldav</backend>
|
||||
</dependencies>
|
||||
<api-version>1</api-version>
|
||||
<api-version>2</api-version>
|
||||
</info>
|
||||
|
|
|
|||
Loading…
Reference in a new issue