Configuration Reference (app.json & TOML)
This content is for v1.1.1. Switch to the latest version for up-to-date documentation.
ZKite 1.1.1 uses a declarative app.json file for project identity, Android packaging, permissions, and build configuration. Legacy pyproject.toml configuration remains fully supported for backward compatibility.
1. app.json Specification (ZKite 1.1.1 & 1.1.0)
Section titled “1. app.json Specification (ZKite 1.1.1 & 1.1.0)”Run project commands in the directory beside app.json.
{ "name": "myapp", "version": "0.1.0", "backend": "native", "android": { "package": "com.yourcompany.myapp", "label": "My App", "version_code": 1, "min_sdk": 26, "target_sdk": 36, "permissions": ["INTERNET"], "icon": "assets/icon.png" }}Project Metadata Keys
Section titled “Project Metadata Keys”| Key | Type | Description |
|---|---|---|
name |
string |
Project/distribution-style name used by the application project. |
version |
string |
Application version text. Independent of the framework release. |
backend |
string |
Rendering backend. "native" is the default and supported path. |
dependencies |
list[str] |
Optional array of pure-Python dependencies to resolve (overrides pyproject.toml). |
Android Settings (android)
Section titled “Android Settings (android)”| Key | Type | Default | Purpose & Guidance |
|---|---|---|---|
package |
string |
Required | Android application ID (reverse-domain style, e.g. com.company.app). Must remain stable across store updates. |
label |
string |
Required | Human-readable app display name shown by the Android launcher. |
version_code |
integer |
1 |
Integer base used in generated Android versioning. Must increase for updates. |
min_sdk |
integer |
26 |
Minimum Android API level floor (API 26 = Android 8.0). |
target_sdk |
integer |
36 |
Target Android API level against which the app behavior is verified. |
permissions |
list[str] |
["INTERNET"] |
Manifest permission declarations required by application features. |
icon |
string |
(ZKite logo) | Project-relative path to launcher icon PNG (e.g. "assets/icon.png"). |
App Identity & Updates
Android decides whether an installation is an update to an existing app based on package and the Signing Identity. Changing label does not affect update identity, but changing package installs a separate application. Never decrease version_code on an intended update.
2. Legacy pyproject.toml Specification (ZKite 1.0.0)
Section titled “2. Legacy pyproject.toml Specification (ZKite 1.0.0)”If your project does not have an app.json, ZKite automatically reads legacy settings from pyproject.toml:
[project]name = "myapp"version = "0.1.0"dependencies = [ "requests==2.32.5",]
[tool.zkite]backend = "native"
[tool.zkite.android]package = "com.yourcompany.myapp"label = "My App"version_code = 1min_sdk = 26target_sdk = 36permissions = ["INTERNET"]icon = "icon.png"Precedence Rule
Section titled “Precedence Rule”- When
app.jsonexists in the project root, all application and Android settings are read exclusively fromapp.json. - Legacy
[tool.zkite]sections inpyproject.tomlare ignored whenapp.jsonis present. pyproject.tomlremains valid and useful for package managers (like uv) to track Python dependencies via[project].dependencies.
