summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2026-03-04 21:07:22 +0100
committerxengineering <me@xengineering.eu>2026-03-04 21:18:43 +0100
commitda482d1327360f814c0f63f876d655e8001deb10 (patch)
treeef873ef815a6e152ab04a8cdcb52c04b5b0ffa9f /check.py
parent181ab8ddcb7ebfc836057050bcda0199c27081c7 (diff)
downloadsia-app-da482d1327360f814c0f63f876d655e8001deb10.tar
sia-app-da482d1327360f814c0f63f876d655e8001deb10.tar.zst
sia-app-da482d1327360f814c0f63f876d655e8001deb10.zip
icon: Add convert.py for Android Adaptive Icons
Android Adaptive Icons allow the OS to display the icon in different variations and styles. For this to work Android requires PNG images with e.g. only the foreground or only the background. The added script can generate these files from main.svg. [1]: https://developer.android.com/develop/ui/views/launch/icon_design_adaptive
Diffstat (limited to 'check.py')
-rwxr-xr-xcheck.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/check.py b/check.py
index 858309c..9c45f4d 100755
--- a/check.py
+++ b/check.py
@@ -6,9 +6,9 @@ import subprocess
import shutil
import sys
-
SCRIPT = pathlib.Path(__file__).resolve()
ROOT = SCRIPT.parent
+ICON = ROOT / "icon"
def main() -> None:
@@ -67,7 +67,13 @@ def black() -> None:
def get_python_files() -> tuple[pathlib.Path, ...]:
- return tuple(ROOT.glob("*.py"))
+ files: list[pathlib.Path] = []
+
+ for directory in (ROOT, ICON):
+ for file in directory.glob("*.py"):
+ files.append(file)
+
+ return tuple(files)
def flutter_analyze() -> None: