Skip to content

Commit

Permalink
Add proper support for Moodle 4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
bwalkerl committed Nov 14, 2024
1 parent 9addf95 commit 201a333
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 25 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,4 @@ jobs:
with:
disable_behat: true
disable_grunt: true
disable_mustache: true
extra_plugin_runners: |
moodle-plugin-ci add-plugin catalyst/moodle-local_aws
disable_mustache: true
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ A rough roadmap with no set timelines:
## Branches
The following lists the supported branch to use based on your Moodle version.

| Moodle version | Branch |
|----------------|------------------|
| Moodle 3.9+ | MOODLE_39_STABLE |
| Moodle version | Branch |
|----------------|-------------------|
| Moodle 3.9-4.3 | MOODLE_39_STABLE |
| Moodle 4.4+ | MOODLE_404_STABLE |

## Installation

Expand Down
2 changes: 0 additions & 2 deletions classes/sns_client.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@

defined('MOODLE_INTERNAL') || die;

require_once($CFG->dirroot . '/local/aws/sdk/aws-autoloader.php');

use Aws\Sns\Exception\InvalidSnsMessageException;
use Aws\Sns\Message;
use Aws\Sns\MessageValidator;
Expand Down
6 changes: 0 additions & 6 deletions classes/task/update_suppression_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@

defined('MOODLE_INTERNAL') || die();

if (!class_exists('\Aws\SesV2\SesV2Client')) {
if (file_exists($CFG->dirroot . '/local/aws/sdk/aws-autoloader.php')) {
require_once($CFG->dirroot . '/local/aws/sdk/aws-autoloader.php');
}
}

/**
* Scheduled task class for updating the email suppression list.
*
Expand Down
6 changes: 0 additions & 6 deletions tests/suppressionlist_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@

global $CFG;

if (!class_exists('\Aws\SesV2\SesV2Client')) {
if (file_exists($CFG->dirroot . '/local/aws/sdk/aws-autoloader.php')) {
require_once($CFG->dirroot . '/local/aws/sdk/aws-autoloader.php');
}
}

/**
* Test case for suppression list functionality.
*
Expand Down
9 changes: 4 additions & 5 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2024101700;
$plugin->release = 2024101700;
$plugin->requires = 2020061500;
$plugin->version = 2024111300;
$plugin->release = 2024111300;
$plugin->requires = 2024042200;
$plugin->component = 'tool_emailutils';
$plugin->dependencies = ['local_aws' => 2020061500];
$plugin->maturity = MATURITY_STABLE;
$plugin->supported = [39, 404];
$plugin->supported = [404, 405];

0 comments on commit 201a333

Please sign in to comment.