Renamed app

This commit is contained in:
Adphi 2019-01-29 15:17:39 +01:00
parent 344d62d7dd
commit 7c551bd581
19 changed files with 257 additions and 20 deletions

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

4
.idea/encodings.xml Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with NO BOM" />
</project>

6
.idea/misc.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
</project>

8
.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/appsautoupdater.iml" filepath="$PROJECT_DIR$/.idea/appsautoupdater.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

204
.idea/workspace.xml Normal file
View File

@ -0,0 +1,204 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="367d3a25-d88d-4f86-9b34-4a1f3b464a73" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.travis.yml" beforeDir="false" afterPath="$PROJECT_DIR$/.travis.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Makefile" beforeDir="false" afterPath="$PROJECT_DIR$/Makefile" afterDir="false" />
<change beforePath="$PROJECT_DIR$/appinfo/info.xml" beforeDir="false" afterPath="$PROJECT_DIR$/appinfo/info.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/appinfo/routes.php" beforeDir="false" afterPath="$PROJECT_DIR$/appinfo/routes.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/build/artifacts/appstore/applicationsautoupdater.tar.gz" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/build/artifacts/source/applicationsautoupdater.tar.gz" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/lib/Controller/AppsAutoUpdateController.php" beforeDir="false" afterPath="$PROJECT_DIR$/lib/Controller/AppsAutoUpdateController.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/lib/Cron/AppsAutoUpdateTask.php" beforeDir="false" afterPath="$PROJECT_DIR$/lib/Cron/AppsAutoUpdateTask.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tests/Integration/AppTest.php" beforeDir="false" afterPath="$PROJECT_DIR$/tests/Integration/AppTest.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tests/Unit/Controller/PageControllerTest.php" beforeDir="false" afterPath="$PROJECT_DIR$/tests/Unit/Controller/PageControllerTest.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tests/bootstrap.php" beforeDir="false" afterPath="$PROJECT_DIR$/tests/bootstrap.php" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="ComposerSettings" synchronizationState="SYNCHRONIZE">
<pharConfigPath>$PROJECT_DIR$/composer.json</pharConfigPath>
</component>
<component name="FileEditorManager">
<leaf>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/appinfo/info.xml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="300">
<caret line="20" selection-start-line="20" selection-end-line="20" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/lib/Cron/AppsAutoUpdateTask.php">
<provider selected="true" editor-type-id="text-editor" />
</entry>
</file>
</leaf>
</component>
<component name="FindInProjectRecents">
<findStrings>
<find>applicationsautoupdater</find>
<find>ApplicationsAutoUpdater</find>
</findStrings>
<replaceStrings>
<replace>appsautoupdater</replace>
<replace>AppsAutoUpdater</replace>
</replaceStrings>
<dirStrings>
<dir>$PROJECT_DIR$</dir>
</dirStrings>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/appinfo/info.xml" />
</list>
</option>
</component>
<component name="ProjectFrameBounds" extendedState="6">
<option name="width" value="1680" />
<option name="height" value="1050" />
</component>
<component name="ProjectView">
<navigator proportions="" version="1">
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="PackagesPane" />
<pane id="ProjectPane">
<subPane>
<expand>
<path>
<item name="appsautoupdater" type="b2602c69:ProjectViewProjectNode" />
<item name="appsautoupdater" type="462c0819:PsiDirectoryNode" />
</path>
</expand>
<select />
</subPane>
</pane>
<pane id="Scope" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="android.sdk.path" value="$USER_HOME$/Library/Android/sdk" />
<property name="aspect.path.notification.shown" value="true" />
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1548771220511" />
<property name="go.gopath.indexing.explicitly.defined" value="true" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
<property name="settings.editor.selected.configurable" value="preferences.lookFeel" />
<property name="show.migrate.to.gradle.popup" value="false" />
</component>
<component name="RunDashboard">
<option name="ruleStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
</list>
</option>
</component>
<component name="SvnConfiguration">
<configuration />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="367d3a25-d88d-4f86-9b34-4a1f3b464a73" name="Default Changelist" comment="" />
<created>1548770653075</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1548770653075</updated>
<workItem from="1548770654839" duration="226000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="226000" />
</component>
<component name="ToolWindowManager">
<frame x="0" y="23" width="1680" height="1027" extended-state="6" />
<layout>
<window_info id="Designer" />
<window_info id="Image Layers" />
<window_info id="UI Designer" />
<window_info id="Favorites" side_tool="true" />
<window_info id="Capture Tool" />
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24969475" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info anchor="bottom" id="Terminal" />
<window_info anchor="bottom" id="Event Log" side_tool="true" />
<window_info anchor="bottom" id="Statistic" />
<window_info anchor="bottom" id="Database Changes" />
<window_info anchor="bottom" id="Version Control" />
<window_info anchor="bottom" id="Flutter Performance" side_tool="true" />
<window_info anchor="bottom" id="Docker" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" />
<window_info anchor="bottom" id="Run" order="2" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="right" id="Maven" />
<window_info anchor="right" id="Palette" />
<window_info anchor="right" id="Capture Analysis" />
<window_info anchor="right" id="Mongo Explorer" />
<window_info anchor="right" id="Database" />
<window_info anchor="right" id="Flutter Outline" />
<window_info anchor="right" id="Flutter Inspector" />
<window_info anchor="right" id="Drawable Viewer" />
<window_info anchor="right" id="Material Palette" />
<window_info anchor="right" id="Palette&#9;" />
<window_info anchor="right" id="Theme Preview" />
<window_info anchor="right" id="SciView" />
<window_info anchor="right" id="Consul" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
</layout>
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/appinfo/info.xml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="300">
<caret line="20" selection-start-line="20" selection-end-line="20" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lib/Cron/AppsAutoUpdateTask.php">
<provider selected="true" editor-type-id="text-editor" />
</entry>
</component>
<component name="masterDetails">
<states>
<state key="ProjectJDKs.UI">
<settings>
<last-edited>11</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
</states>
</component>
</project>

View File

@ -35,7 +35,7 @@ before_install:
# install core
- cd ../
- git clone https://github.com/nextcloud/server.git --recursive --depth 1 -b $CORE_BRANCH nextcloud
- mv "$TRAVIS_BUILD_DIR" nextcloud/apps/applicationsautoupdater
- mv "$TRAVIS_BUILD_DIR" nextcloud/apps/appsautoupdater
before_script:
- if [[ "$DB" == 'pgsql' ]]; then createuser -U travis -s oc_autotest; fi
@ -45,9 +45,9 @@ before_script:
- cd nextcloud
- mkdir data
- ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database $DB --database-pass=''
- ./occ app:enable applicationsautoupdater
- ./occ app:enable appsautoupdater
- php -S localhost:8080 &
- cd apps/applicationsautoupdater
- cd apps/appsautoupdater
script:
- make test

View File

@ -128,8 +128,7 @@ source:
appstore:
rm -rf $(appstore_build_directory)
mkdir -p $(appstore_build_directory)
tar cvzf $(appstore_package_name).tar.gz ../$(app_name) \
--exclude-vcs \
tar cvzf $(appstore_package_name).tar.gz --exclude-vcs \
--exclude="../$(app_name)/build" \
--exclude="../$(app_name)/tests" \
--exclude="../$(app_name)/Makefile" \
@ -150,6 +149,7 @@ appstore:
--exclude="../$(app_name)/protractor\.*" \
--exclude="../$(app_name)/.*" \
--exclude="../$(app_name)/js/.*" \
../$(app_name)
.PHONY: test
test: composer

View File

@ -1,20 +1,20 @@
<?xml version="1.0"?>
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
<id>applicationsautoupdater</id>
<id>appsautoupdater</id>
<name>Applications Auto Updater</name>
<summary>Apllications auto updater</summary>
<description><![CDATA[Update applications automatically]]></description>
<version>0.0.1</version>
<licence>agpl</licence>
<author mail="adphi.apps@gmail.com" >Adphi Apps</author>
<namespace>ApplicationsAutoUpdater</namespace>
<namespace>AppsAutoUpdater</namespace>
<category>tools</category>
<bugs>https://git.adphi.net/Adphi/ApplicationsAutoUpdater/issues</bugs>
<bugs>https://git.adphi.net/Adphi/AppsAutoUpdater/issues</bugs>
<dependencies>
<nextcloud min-version="13" max-version="15"/>
</dependencies>
<background-jobs>
<job>OCA\ApplicationsAutoUpdater\Cron\AppsAutoUpdateTask</job>
<job>OCA\AppsAutoUpdater\Cron\AppsAutoUpdateTask</job>
</background-jobs>
</info>

View File

@ -2,7 +2,7 @@
/**
* Create your routes in here. The name is the lowercase name of the controller
* without the controller part, the stuff after the hash is the method.
* e.g. page#index -> OCA\ApplicationsAutoUpdater\Controller\PageController->index()
* e.g. page#index -> OCA\AppsAutoUpdater\Controller\PageController->index()
*
* The controller class has to be registered in the application.php file since
* it's instantiated in there

Binary file not shown.

Binary file not shown.

View File

@ -1,5 +1,5 @@
<?php
namespace OCA\ApplicationsAutoUpdater\Controller;
namespace OCA\AppsAutoUpdater\Controller;
use OCP\IRequest;
use OCP\AppFramework\Http\TemplateResponse;

View File

@ -6,7 +6,7 @@
* Time: 15:18
*/
namespace OCA\ApplicationsAutoUpdater\Cron;
namespace OCA\AppsAutoUpdater\Cron;
use OC\BackgroundJob\TimedJob;

View File

@ -1,6 +1,6 @@
<?php
namespace OCA\ApplicationsAutoUpdater\Tests\Integration\Controller;
namespace OCA\AppsAutoUpdater\Tests\Integration\Controller;
use OCP\AppFramework\App;
use Test\TestCase;
@ -17,13 +17,13 @@ class AppTest extends TestCase {
public function setUp() {
parent::setUp();
$app = new App('applicationsautoupdater');
$app = new App('appsautoupdater');
$this->container = $app->getContainer();
}
public function testAppInstalled() {
$appManager = $this->container->query('OCP\App\IAppManager');
$this->assertTrue($appManager->isInstalled('applicationsautoupdater'));
$this->assertTrue($appManager->isInstalled('appsautoupdater'));
}
}

View File

@ -1,12 +1,12 @@
<?php
namespace OCA\ApplicationsAutoUpdater\Tests\Unit\Controller;
namespace OCA\AppsAutoUpdater\Tests\Unit\Controller;
use PHPUnit_Framework_TestCase;
use OCP\AppFramework\Http\TemplateResponse;
use OCA\ApplicationsAutoUpdater\Controller\AppsAutoUpdateController;
use OCA\AppsAutoUpdater\Controller\AppsAutoUpdateController;
class PageControllerTest extends PHPUnit_Framework_TestCase {
@ -17,7 +17,7 @@ class PageControllerTest extends PHPUnit_Framework_TestCase {
$request = $this->getMockBuilder('OCP\IRequest')->getMock();
$this->controller = new AppsAutoUpdateController(
'applicationsautoupdater', $request, $this->userId
'appsautoupdater', $request, $this->userId
);
}

View File

@ -9,8 +9,8 @@ require_once __DIR__.'/../../../lib/base.php';
// Fix for "Autoload path not allowed: .../tests/lib/testcase.php"
\OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
// Fix for "Autoload path not allowed: .../applicationsautoupdater/tests/testcase.php"
\OC_App::loadApp('applicationsautoupdater');
// Fix for "Autoload path not allowed: .../appsautoupdater/tests/testcase.php"
\OC_App::loadApp('appsautoupdater');
if(!class_exists('PHPUnit_Framework_TestCase')) {
require_once('PHPUnit/Autoload.php');