Metadata-Version: 2.5
Name: make-android
Version: 0.1.0
Summary: Android build, signing, device and release tasks for mkrun.
Project-URL: Homepage, https://make.optersoft.com
Author-email: "Optersoft, S.L." <david@optersoft.com>
License-Expression: MIT OR Apache-2.0
Keywords: aab,android,apk,gradle,mk,mkrun
Requires-Python: >=3.11
Requires-Dist: mkrun>=0.4.3
Description-Content-Type: text/markdown

# make-android

Android builds, signing, attached-device installs, APK publication and AAB production for
[`mkrun`](https://pypi.org/project/mkrun/).

```python
from make_android import android

android.Android.configure(module="app", pkg="com.example.app")
```

The defaults drive the conventional Gradle tasks and paths. A non-Gradle app names its own
commands, artifacts and version source instead:

```python
android.Android.configure(
    module="legacy-signing-config",
    pkg="com.example.app",
    apk_command=["python3", "tools/release.py"],
    aab_command=["python3", "tools/release.py"],
    apk_path="dist/app.apk",
    aab_path="dist/app.aab",
    version_path="app/pyproject.toml",
    version_format="toml",
    version_name_key="tool.example.app.version",
    version_code_key="",  # major*10000 + minor*100 + patch
)
```

`mk android.build` verifies the APK signature, `mk android.aab` builds without uploading,
and `mk android.publish` atomically replaces a configured web-download APK. Credentials are
requested only by the signing task and can come from mkrun's encrypted store.
