Skip to content

Commit

Permalink
Merge pull request #276 from bombsquad-community/pre_release
Browse files Browse the repository at this point in the history
bs 1.7.35 compatibility
  • Loading branch information
vishal332008 authored May 13, 2024
2 parents 9032cb7 + ab44527 commit c42ffea
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## 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)

- Fixed an issue where changelogs were not displayed.
Expand Down
6 changes: 6 additions & 0 deletions index.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py",
"versions": {
"1.0.20": {
"api_version": 8,
"commit_sha": "5ce10ce",
"released_on": "13-05-2024",
"md5sum": "eb49f952e59effaf4529017f4bed4f72"
},
"1.0.19": {
"api_version": 8,
"commit_sha": "b439c4b",
Expand Down
13 changes: 10 additions & 3 deletions plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from threading import Thread
import logging

PLUGIN_MANAGER_VERSION = "1.0.19"
PLUGIN_MANAGER_VERSION = "1.0.20"
REPOSITORY_URL = "https://github.com/bombsquad-community/plugin-manager"
# Current tag can be changed to "staging" or any other branch in
# plugin manager repo for testing purpose.
Expand All @@ -47,10 +47,10 @@ class 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.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.test = babase.app.test_build
babase.app.env.data_directory = babase.app.data_directory
Expand All @@ -66,6 +66,12 @@ class Dummy:
_bascenev1.protocol_version = lambda: babase.app.protocol_version
_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()
_uiscale = bui.app.ui_v1.uiscale
Expand Down Expand Up @@ -1460,6 +1466,7 @@ def cleanup(self):
category.cleanup()
self.categories.clear()
self._index.clear()
self._changelog = None
self.unset_index_global_cache()

async def refresh(self):
Expand Down

0 comments on commit c42ffea

Please sign in to comment.