diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ca4b87..10b52cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## Plugin Manager (dd-mm-yyyy) +### 1.0.6 (26-12-2023) + +- Fixed plugin manager throwing errors on older builds + ### 1.0.5 (11-12-2023) - Fix a typo. diff --git a/plugins/utilities.json b/plugins/utilities.json index 323ebbb..8ca8c3d 100644 --- a/plugins/utilities.json +++ b/plugins/utilities.json @@ -607,6 +607,12 @@ } ], "versions": { + "3.0.1": { + "api_version": 8, + "commit_sha": "78f3c44", + "released_on": "27-12-2023", + "md5sum": "b7756605a4bc382329c078c4e399b96b" + }, "3.0.0": { "api_version": 8, "commit_sha": "02da437", diff --git a/plugins/utilities/icons_keyboard.py b/plugins/utilities/icons_keyboard.py index 1b69711..ff29a50 100644 --- a/plugins/utilities/icons_keyboard.py +++ b/plugins/utilities/icons_keyboard.py @@ -9,6 +9,7 @@ # ba_meta require api 8 +import bauiv1 import babase from babase import charstr @@ -20,8 +21,7 @@ for i in range(26 - (len(list_of_icons) % 26)): list_of_icons.append('‎') -# ba_meta export keyboard -class IconKeyboard(babase.Keyboard): +class IconKeyboard(babase.Keyboard if hasattr(babase, 'Keyboard') else bauiv1.Keyboard): """Keyboard go brrrrrrr""" name = 'Icons by \ue048Freaku' chars = [(list_of_icons[0:10]), @@ -32,3 +32,10 @@ class IconKeyboard(babase.Keyboard): f'icon{i//26+1}': tuple(list_of_icons[i:i+26]) for i in range(26, len(list_of_icons), 26) } + + +# ba_meta export plugin +class byFreaku(babase.Plugin): + def __init__(self): + babase.app.meta.scanresults.exports['babase.Keyboard' if hasattr( + babase, 'Keyboard') else 'bauiv1.Keyboard'].append(__name__+'.IconKeyboard')