Skip to content

Commit

Permalink
Support Moodle 4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Nguyen committed Nov 13, 2024
1 parent 9addf95 commit caa958b
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 23 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ jobs:
disable_behat: true
disable_grunt: true
disable_mustache: true
extra_plugin_runners: |
moodle-plugin-ci add-plugin catalyst/moodle-local_aws
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+ | MOODLE_39_STABLE |
| Moodle 4.5+ | MOODLE_405_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
8 changes: 0 additions & 8 deletions tests/suppressionlist_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@
namespace tool_emailutils;
defined('MOODLE_INTERNAL') || die();

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
3 changes: 1 addition & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@
$plugin->release = 2024101700;
$plugin->requires = 2020061500;
$plugin->component = 'tool_emailutils';
$plugin->dependencies = ['local_aws' => 2020061500];
$plugin->maturity = MATURITY_STABLE;
$plugin->supported = [39, 404];
$plugin->supported = [405, 405];

0 comments on commit caa958b

Please sign in to comment.