"""LED Grab - Ambient lighting based on screen content."""

from importlib.metadata import version, PackageNotFoundError

# Fallback version — kept in sync with pyproject.toml.
# Used when the package isn't pip-installed (e.g. embedded via Chaquopy
# on Android, where the source is included directly via source sets).
_FALLBACK_VERSION = "0.3.0"

try:
    __version__ = version("ledgrab")
except PackageNotFoundError:
    __version__ = _FALLBACK_VERSION

__author__ = "Alexei Dolgolyov"
__email__ = "dolgolyov.alexei@gmail.com"

# ─── Project links ───────────────────────────────────────────
GITEA_BASE_URL = "https://git.dolgolyov-family.by"
GITEA_REPO = "alexei.dolgolyov/ledgrab"
REPO_URL = f"{GITEA_BASE_URL}/{GITEA_REPO}"
DONATE_URL = ""  # TODO: set once donation platform is chosen
