Merge pull request #276 from bombsquad-community/pre_release

bs 1.7.35 compatibility
This commit is contained in:
Vishal 2024-05-13 18:05:21 +05:30 committed by GitHub
commit c42ffea998
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 22 additions and 3 deletions

View file

@ -1,5 +1,11 @@
## Plugin Manager (dd-mm-yyyy) ## Plugin Manager (dd-mm-yyyy)
### 1.0.20 (13-05-2024)
- Now compatible with BS version 1.7.35+.
- Updated build_number and version attributes to latest.
- FIX: Changelog for all version was shown after refreshing
### 1.0.19 (05-05-2024) ### 1.0.19 (05-05-2024)
- Fixed an issue where changelogs were not displayed. - Fixed an issue where changelogs were not displayed.

View file

@ -1,6 +1,12 @@
{ {
"plugin_manager_url": "https://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": { "versions": {
"1.0.20": {
"api_version": 8,
"commit_sha": "5ce10ce",
"released_on": "13-05-2024",
"md5sum": "eb49f952e59effaf4529017f4bed4f72"
},
"1.0.19": { "1.0.19": {
"api_version": 8, "api_version": 8,
"commit_sha": "b439c4b", "commit_sha": "b439c4b",

View file

@ -31,7 +31,7 @@ from datetime import datetime
from threading import Thread from threading import Thread
import logging import logging
PLUGIN_MANAGER_VERSION = "1.0.19" PLUGIN_MANAGER_VERSION = "1.0.20"
REPOSITORY_URL = "https://github.com/bombsquad-community/plugin-manager" REPOSITORY_URL = "https://github.com/bombsquad-community/plugin-manager"
# Current tag can be changed to "staging" or any other branch in # Current tag can be changed to "staging" or any other branch in
# plugin manager repo for testing purpose. # plugin manager repo for testing purpose.
@ -47,10 +47,10 @@ if TARGET_BALLISTICA_BUILD < 21282:
babase.app.env = Dummy() babase.app.env = Dummy()
babase.app.env.build_number = babase.app.build_number babase.app.env.engine_build_number = babase.app.build_number
babase.app.env.device_name = babase.app.device_name babase.app.env.device_name = babase.app.device_name
babase.app.env.config_file_path = babase.app.config_file_path babase.app.env.config_file_path = babase.app.config_file_path
babase.app.env.version = babase.app.version babase.app.env.engine_version = babase.app.version
babase.app.env.debug = babase.app.debug_build babase.app.env.debug = babase.app.debug_build
babase.app.env.test = babase.app.test_build babase.app.env.test = babase.app.test_build
babase.app.env.data_directory = babase.app.data_directory babase.app.env.data_directory = babase.app.data_directory
@ -66,6 +66,12 @@ if TARGET_BALLISTICA_BUILD < 21282:
_bascenev1.protocol_version = lambda: babase.app.protocol_version _bascenev1.protocol_version = lambda: babase.app.protocol_version
_bauiv1.toolbar_test = lambda: babase.app.toolbar_test _bauiv1.toolbar_test = lambda: babase.app.toolbar_test
if TARGET_BALLISTICA_BUILD < 21852:
class Dummy(babase.app.env):
engine_build_number = babase.app.env.build_number
engine_version = babase.app.env.version
babase.app.env = Dummy
_env = _babase.env() _env = _babase.env()
_uiscale = bui.app.ui_v1.uiscale _uiscale = bui.app.ui_v1.uiscale
@ -1460,6 +1466,7 @@ class PluginManager:
category.cleanup() category.cleanup()
self.categories.clear() self.categories.clear()
self._index.clear() self._index.clear()
self._changelog = None
self.unset_index_global_cache() self.unset_index_global_cache()
async def refresh(self): async def refresh(self):