From 7c34fee7ebc09ffaaf14019ae195b1b42e138e3f Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 27 Nov 2014 16:06:48 +0100 Subject: use extended info.xml instead of app.json --- appinfo/app.json | 49 ------------------------------------------- appinfo/app.php | 1 - appinfo/application.php | 17 ++------------- appinfo/info.xml | 55 ++++++++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 56 insertions(+), 66 deletions(-) delete mode 100644 appinfo/app.json (limited to 'appinfo') diff --git a/appinfo/app.json b/appinfo/app.json deleted file mode 100644 index c2c3489d1..000000000 --- a/appinfo/app.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "name": "News", - "id": "news", - "description": "An RSS/Atom feed reader. Requires ownCloud backgroundjobs or an updater script to be enabled to update your feeds. See the README.md in the apps top directory", - "licence": "AGPL", - "version": "4.2.1", - "authors": [ - { - "name": "Bernhard Posselt", - "email": "dev@bernhard-posselt.com" - }, - { - "name": "Alessandro Cosentino", - "email": "cosenal@gmail.com" - }, - { - "name": "Jan-Christoph Borchardt", - "email": "hey@jancborchardt.net" - } - ], - "homepage": "https://github.com/owncloud/news", - "bugs": "https://github.com/owncloud/news/issues", - "repository": { - "type": "git", - "url": "https://github.com/owncloud/news.git" - }, - "navigation": {}, - "documentation": { - "user": "https://github.com/owncloud/news/wiki#user-documentation", - "admin": "https://github.com/owncloud/news#readme", - "developer": "https://github.com/owncloud/news/wiki" - }, - "jobs": ["OCA\\News\\Cron\\Updater"], - "hooks": { - "OC_User::pre_deleteUser": "OCA\\News\\Hooks\\User::deleteUser" - }, - "admin": true, - "categories": ["Multimedia"], - "dependencies": { - "databases": ["pgsql", "sqlite3", "mysql"], - "php": ">=5.4", - "owncloud": ">=7.0.3", - "libs": { - "curl": "*", - "libxml": ">=2.7.8", - "SimpleXML": "*" - } - } -} \ No newline at end of file diff --git a/appinfo/app.php b/appinfo/app.php index 2809795fb..66c0ef166 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -27,4 +27,3 @@ $container = new Application(); $config = $container->getAppConfig(); $config->registerAll(); -$config->testDependencies(); \ No newline at end of file diff --git a/appinfo/application.php b/appinfo/application.php index e4972d8fc..ccaae0f09 100644 --- a/appinfo/application.php +++ b/appinfo/application.php @@ -265,25 +265,12 @@ class Application extends App { * App config parser */ $container->registerService('AppConfig', function($c) { - // order extensions in name => version - $loadedExtensions = get_loaded_extensions(); - $extensions = []; - foreach ($loadedExtensions as $extension) { - $extensions[$extension] = phpversion($extension); - } - - $extensions['libxml'] = LIBXML_DOTTED_VERSION; - $config = new AppConfig( $c->query('ServerContainer')->getNavigationManager(), - $c->query('URLGenerator'), - phpversion(), - implode('.', Util::getVersion()), - $extensions, - $c->query('DatabaseType') + $c->query('URLGenerator') ); - $config->loadConfig(__DIR__ . '/app.json'); + $config->loadConfig(__DIR__ . '/info.xml'); return $config; }); diff --git a/appinfo/info.xml b/appinfo/info.xml index 3ccb782b2..f082b7be5 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -1,10 +1,63 @@ + news News An RSS/Atom feed reader. Requires ownCloud backgroundjobs or an updater script to be enabled to update your feeds. See the README.md in the apps top directory + Bernhard Posselt, Alessandro Cosentino, Jan-Christoph Borchardt + + Multimedia + AGPL 4.2.1 + + + + https://github.com/owncloud/news/wiki#user-documentation + https://github.com/owncloud/news#readme + https://github.com/owncloud/news/wiki#developer-documentation + + https://github.com/owncloud/news + https://github.com/owncloud/news/issues + https://github.com/owncloud/news.git + + 7.0.3 - Bernhard Posselt, Alessandro Cosentino, Jan-Christoph Borchardt + + + pgsql + sqlite3 + mysql + + + libxml + curl + SimpleXML + + + + + news + news.page.index + 10 + app.svg + News + + + + admin/admin + + + + OCA\News\Cron\Updater + + + + + + OC_User::pre_deleteUser + OCA\News\Hooks\User::deleteUser + + + -- cgit v1.2.3