diff --git a/index.json b/index.json index e4e02ca..33245fb 100644 --- a/index.json +++ b/index.json @@ -1,6 +1,12 @@ { - "plugin_manager_url": "http://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py", + "plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py", "versions": { + "0.1.8": { + "api_version": 7, + "commit_sha": "bbce3bd", + "released_on": "30-11-2022", + "md5sum": "0218c7d6b08896f18479467fdd45aa27" + }, "0.1.7": { "api_version": 7, "commit_sha": "2fe966c", @@ -27,9 +33,9 @@ } }, "categories": [ - "http://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/utilities.json", - "http://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/minigames.json", - "http://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/maps.json" + "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/utilities.json", + "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/minigames.json", + "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/maps.json" ], - "external_source_url": "http://github.com/{repository}/{content_type}/{tag}/category.json" + "external_source_url": "https://github.com/{repository}/{content_type}/{tag}/category.json" } \ No newline at end of file diff --git a/plugin_manager.py b/plugin_manager.py index e1db5b8..cd794df 100644 --- a/plugin_manager.py +++ b/plugin_manager.py @@ -20,12 +20,9 @@ _env = _ba.env() _uiscale = ba.app.ui.uiscale -PLUGIN_MANAGER_VERSION = "0.1.7" -REPOSITORY_URL = "http://github.com/bombsquad-community/plugin-manager" +PLUGIN_MANAGER_VERSION = "0.1.8" +REPOSITORY_URL = "https://github.com/bombsquad-community/plugin-manager" CURRENT_TAG = "main" -# XXX: Using https with `ba.open_url` seems to trigger a pop-up dialog box on -# Android currently (v1.7.6) and won't open the actual URL in a web-browser. -# Let's fallback to http for now until this gets resolved. INDEX_META = "{repository_url}/{content_type}/{tag}/index.json" HEADERS = { "User-Agent": _env["user_agent_string"], @@ -36,7 +33,7 @@ REGEXP = { "plugin_entry_points": re.compile(b"(ba_meta export plugin\n+class )(.*)\\("), "minigames": re.compile(b"(ba_meta export game\n+class )(.*)\\("), } -DISCORD_URL = "http://ballistica.net/discord" +DISCORD_URL = "https://ballistica.net/discord" _CACHE = {} diff --git a/plugins/maps.json b/plugins/maps.json index 4aa2611..055d4b8 100644 --- a/plugins/maps.json +++ b/plugins/maps.json @@ -1,6 +1,6 @@ { "name": "Maps", "description": "Maps", - "plugins_base_url": "http://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/maps", + "plugins_base_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/maps", "plugins": {} } diff --git a/plugins/minigames.json b/plugins/minigames.json index 4bfc496..b1fb800 100644 --- a/plugins/minigames.json +++ b/plugins/minigames.json @@ -1,7 +1,7 @@ { "name": "Minigames", "description": "Minigames", - "plugins_base_url": "http://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/minigames", + "plugins_base_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/minigames", "plugins": { "soccer": { "description": "Shoot the ball in left or right edge of the map to score", diff --git a/plugins/utilities.json b/plugins/utilities.json index f9fea7d..4200271 100644 --- a/plugins/utilities.json +++ b/plugins/utilities.json @@ -1,7 +1,7 @@ { "name": "Utilities", "description": "Utilities", - "plugins_base_url": "http://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/utilities", + "plugins_base_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/utilities", "plugins": { "share_replay": { "description": "Export replays to mods folder and share them with friends or have a backup", @@ -161,7 +161,7 @@ }, "colorscheme": { "description": "Create custom UI colorschemes!", - "external_url": "http://www.youtube.com/watch?v=qatwWrBAvjc", + "external_url": "https://www.youtube.com/watch?v=qatwWrBAvjc", "authors": [ { "name": "Rikko", diff --git a/test/test_checks.py b/test/test_checks.py index cddc1be..a862f8f 100644 --- a/test/test_checks.py +++ b/test/test_checks.py @@ -95,7 +95,7 @@ class BaseCategoryMetadataTestCases: def test_keys(self): self.assertEqual(self.content["name"], self.name) self.assertTrue(isinstance(self.content["description"], str)) - self.assertTrue(self.content["plugins_base_url"].startswith("http")) + self.assertTrue(self.content["plugins_base_url"].startswith("https")) self.assertTrue(isinstance(self.content["plugins"], dict)) def test_versions_order(self):