-
Notifications
You must be signed in to change notification settings - Fork 1
Add Nextcloud 30 & 31 support #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 4 commits
8159365
6587665
c61d749
a279bfb
71f6d63
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,7 +35,7 @@ To more informations about how this app works or to get examples, look at the ad | |
| <bugs>https://github.com/librecodecoop/l10n_override/issues</bugs> | ||
| <repository type="git">https://github.com/librecodecoop/l10n_override</repository> | ||
| <dependencies> | ||
| <nextcloud min-version="28" max-version="28"/> | ||
| <nextcloud min-version="30" max-version="31"/> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Another point.... I know that could be a bit complex to make backports but we can set the min and max versionto 32 and after this, send the backport to a branch stable31. We also can drop Nextcloud 30 because the official support by server will finish into September as we can see here: https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, I just realized I got the PR title wrong. NC 32 is not even out yet, i meant 30 and 31. And AFAIK apps should not mark themselves compatible with a version until that version is at least very close to a release.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there any upside to going the backport way ? |
||
| </dependencies> | ||
| <commands> | ||
| <command>OCA\L10nOverride\Command\Add</command> | ||
|
|
||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace OCA\L10nOverride\Listener; | ||
|
|
||
| use OCA\L10nOverride\Service\OverrideService; | ||
| use OCP\App\Events\AppDisableEvent; | ||
| use OCP\App\Events\AppEnableEvent; | ||
| use OCP\EventDispatcher\Event; | ||
|
|
||
| use OCP\EventDispatcher\IEventListener; | ||
|
|
||
| /** | ||
| * @template-implements IEventListener<AppEnableEvent|AppDisableEvent> | ||
| */ | ||
| class AppEnabledDisabledListener implements IEventListener { | ||
|
|
||
| public function __construct( | ||
| private readonly OverrideService $overrideService, | ||
| ) { | ||
| } | ||
|
|
||
| public function handle(Event $event): void { | ||
| if ($event instanceof AppEnableEvent) { | ||
| $this->overrideService->updateAllLanguages($event->getAppId()); | ||
| } elseif ($event instanceof AppDisableEvent) { | ||
| $this->overrideService->deleteAllLanguages($event->getAppId()); | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| <?php | ||
|
|
||
| /** | ||
| * @copyright Copyright (c) 2023 Vitor Mattos <vitor@php.rio> | ||
| * | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| <?php | ||
|
|
||
| /** | ||
| * @copyright Copyright (c) 2016 Lukas Reschke <lukas@statuscode.ch> | ||
| * | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also will be necessary bump the version:
Considering that is to be compatible with a newest version of Nextcloud server and considering the Nextcloud server as a framework, we can talk that it's should be a major increment.
What's you think about this? Maybe could be 3.0.0
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As there are no breaking changes to public interfaces per Semantic Versioning the correct version would be 2.1.0, but I personally would also be OK with 3.0.0, if you prefer that