1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-05 23:16:21 +00:00

Remove deprecated app.php file

This commit is contained in:
Alfred Egger 2020-12-29 23:53:56 +01:00
parent 94a7175886
commit 61f6d0fb42
2 changed files with 10 additions and 38 deletions

View File

@ -1,37 +0,0 @@
<?php
/**
* Nextcloud - Phone Sync
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author Loic Blot <loic.blot@unix-experience.fr>
* @copyright Loic Blot 2014-2017
*/
namespace OCA\OcSms\AppInfo;
if (class_exists('\OCP\AppFramework\App')) {
\OC::$server->getNavigationManager()->add(array(
// the string under which your app will be referenced in owncloud
'id' => 'ocsms',
// sorting weight for the navigation. The higher the number, the higher
// will it be listed in the navigation
'order' => 10,
// the route that will be shown on startup
'href' => \OC::$server->getURLGenerator()->linkToRoute('ocsms.sms.index'),
// the icon that will be shown in the navigation
// this file needs to exist in img/
'icon' => \OC::$server->getURLGenerator()->imagePath('ocsms', 'app.svg'),
// the title of your application. This will be used in the
// navigation or on the settings page of your app
'name' => \OCP\Util::getL10N('ocsms')->t('Phone Sync')
));
} else {
$msg = 'Can not enable the OcSms app because the App Framework App is disabled';
\OC::$server->getLogger()->error($msg, array('ocsms'));
}

View File

@ -5,9 +5,10 @@
<name>Phone Sync</name>
<summary>An app to sync SMS with your cloud</summary>
<description>An app to sync SMS with your cloud</description>
<licence>agpl</licence>
<author>Loic Blot</author>
<author>e-alfred</author>
<version>2.2.0</version>
<licence>agpl</licence>
<category>multimedia</category>
<category>tools</category>
<dependencies>
@ -27,4 +28,12 @@
<step>OCA\OcSms\Migration\FixConversationReadStates</step>
</post-migration>
</repair-steps>
<navigations>
<navigation>
<id>ocsms</id>
<name>Phone Sync</name>
<route>ocsms.sms.index</route>
<icon>app.svg</icon>
</navigation>
</navigations>
</info>