Configuration Reference (app.json & TOML)
This content is for v1.2.0. Switch to the latest version for up-to-date documentation.
ZKite 1.2.0 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.2.0)
Section titled “1. app.json Specification (ZKite 1.2.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", "RECORD_AUDIO", "VIBRATE"], "inferred_permissions": ["RECORD_AUDIO", "VIBRATE"], "capabilities": ["audio.record", "haptics"], "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] |
(Legacy only) Merged with deprecation warning; prefer requirements.txt or [project].dependencies in 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"] |
Manual and inferred manifest permissions, synchronized before run/build. |
inferred_permissions |
list[str] |
[] |
(New in 1.2.0) Permissions managed by the automatic scanner. Obsolete entries are automatically pruned. |
capabilities |
list[str] |
[] |
(New in 1.2.0) Explicit device capability names for dynamic uses the scanner cannot deduce. |
icon |
string |
(ZKite logo) | Project-relative path to launcher icon PNG (e.g. "assets/icon.png"). Builds wrap this as a full-bleed adaptive icon. |
Automatic Permission Management & Keystores
- Permissions Synchronization (1.2.0):
zkite runandzkite buildstatically analyze your Python source and updatepermissionsandinferred_permissions. Reasons are logged to.zkite/permissions.json. - Automatic Signing Keys: Release keys are stored under
keystore/(e.g.keystore/release.pemandkeystore/release.p12). The folder is automatically added to.gitignore. Keep secure backups of your release signing identity.
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.
