mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
ba.open_url seems to work with http on Android
This commit is contained in:
parent
256fc8a23b
commit
5a2144fa88
5 changed files with 13 additions and 10 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"categories": [
|
||||
"https://github.com/bombsquad-community/plugin-manager/{content_type}/main/plugins/utilities.json",
|
||||
"https://github.com/bombsquad-community/plugin-manager/{content_type}/main/plugins/minigames.json",
|
||||
"https://github.com/bombsquad-community/plugin-manager/{content_type}/main/plugins/maps.json"
|
||||
"http://github.com/bombsquad-community/plugin-manager/{content_type}/main/plugins/utilities.json",
|
||||
"http://github.com/bombsquad-community/plugin-manager/{content_type}/main/plugins/minigames.json",
|
||||
"http://github.com/bombsquad-community/plugin-manager/{content_type}/main/plugins/maps.json"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,10 @@ from typing import Union, Optional
|
|||
_env = _ba.env()
|
||||
_uiscale = ba.app.ui.uiscale
|
||||
|
||||
INDEX_META = "https://github.com/bombsquad-community/plugin-manager/{content_type}/main/index.json"
|
||||
# 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 = "http://github.com/bombsquad-community/plugin-manager/{content_type}/main/index.json"
|
||||
HEADERS = {
|
||||
"User-Agent": _env["user_agent_string"],
|
||||
}
|
||||
|
|
@ -28,9 +31,9 @@ REGEXP = {
|
|||
}
|
||||
|
||||
VERSION = "0.1.1"
|
||||
GITHUB_REPO_LINK = "https://github.com/bombsquad-community/plugin-manager/"
|
||||
GITHUB_REPO_LINK = "http://github.com/bombsquad-community/plugin-manager/"
|
||||
|
||||
THIRD_PARTY_CATEGORY_URL = "https://github.com/{repository}/{content_type}/main/category.json"
|
||||
THIRD_PARTY_CATEGORY_URL = "http://github.com/{repository}/{content_type}/main/category.json"
|
||||
|
||||
_CACHE = {}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Maps",
|
||||
"description": "Maps",
|
||||
"plugins_base_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/main/plugins/maps",
|
||||
"plugins_base_url": "http://github.com/bombsquad-community/plugin-manager/{content_type}/main/plugins/maps",
|
||||
"plugins": {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "Minigames",
|
||||
"description": "Minigames",
|
||||
"plugins_base_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/main/plugins/minigames",
|
||||
"plugins_base_url": "http://github.com/bombsquad-community/plugin-manager/{content_type}/main/plugins/minigames",
|
||||
"plugins": {
|
||||
"alliance_elimination": {
|
||||
"description": "Fight in groups of duo, trio, or more. Last remaining alive wins.",
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"name": "Utilities",
|
||||
"description": "Utilities",
|
||||
"plugins_base_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/main/plugins/utilities",
|
||||
"plugins_base_url": "http://github.com/bombsquad-community/plugin-manager/{content_type}/main/plugins/utilities",
|
||||
"plugins": {
|
||||
"colorscheme": {
|
||||
"description": "Create custom UI colorschemes!",
|
||||
"external_url": "https://www.youtube.com/watch?v=qatwWrBAvjc",
|
||||
"external_url": "http://www.youtube.com/watch?v=qatwWrBAvjc",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Rikko",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue