Skip to content

Commit e42e6df

Browse files
authored
Update buildozer.spec
1 parent 56045da commit e42e6df

1 file changed

Lines changed: 59 additions & 18 deletions

File tree

buildozer.spec

Lines changed: 59 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,84 @@
11
[app]
22

3+
# App metadata
34
title = KingWatch Pro
45
package.name = kingwatchpro
5-
package.domain = org.kingai
6+
package.domain = com.kingwatch
67

8+
# Source
79
source.dir = .
8-
source.include_exts = py,kv,png,jpg,json
10+
source.include_exts = py,png,jpg,kv,atlas,json,ttf,otf,wav,mp3,ogg
11+
source.exclude_dirs = tests, bin, .buildozer, .git, __pycache__, venv, .venv
912

10-
version = 1.0
13+
# Entry point — must match your actual filename
14+
source.main = main.py
1115

12-
# Dependencies
13-
requirements = python3,kivy==2.2.1,pyjnius
16+
# Version
17+
version = 1.0.0
1418

15-
# UI
19+
# Requirements — keep minimal; psutil must be compiled via recipe
20+
requirements = python3,kivy==2.3.0,plyer,psutil
21+
22+
# Orientation
1623
orientation = portrait
24+
25+
# Fullscreen
1726
fullscreen = 0
1827

1928
# Android configuration
29+
android.permissions = INTERNET,READ_PHONE_STATE,ACCESS_NETWORK_STATE,ACCESS_WIFI_STATE,BATTERY_STATS,FOREGROUND_SERVICE,RECEIVE_BOOT_COMPLETED,WAKE_LOCK,VIBRATE,READ_EXTERNAL_STORAGE,WRITE_EXTERNAL_STORAGE
30+
2031
android.api = 33
2132
android.minapi = 21
22-
android.ndk = 25c
33+
android.ndk = 25b
34+
android.sdk = 33
35+
android.ndk_api = 21
36+
37+
# Architecture — build both for wide compatibility
38+
android.archs = arm64-v8a, armeabi-v7a
39+
40+
# Accept SDK licenses automatically
2341
android.accept_sdk_license = True
42+
43+
# Gradle
44+
android.gradle_dependencies =
45+
46+
# Enable AndroidX
2447
android.enable_androidx = True
2548

26-
# Build architectures
27-
android.archs = arm64-v8a,armeabi-v7a
49+
# Release / debug
50+
android.release_artifact = apk
51+
android.debug_artifact = apk
2852

29-
# Permissions
30-
android.permissions = INTERNET,ACCESS_NETWORK_STATE,WAKE_LOCK,FOREGROUND_SERVICE,POST_NOTIFICATIONS
53+
# logcat filters
54+
android.logcat_filters = *:S python:D
3155

32-
# AndroidX dependencies
33-
android.gradle_dependencies = androidx.appcompat:appcompat:1.6.1,androidx.core:core:1.12.0
56+
# Copy libs
57+
android.add_libs_armeabi_v7a =
3458

35-
# Logging
36-
log_level = 2
59+
# Wakelock
60+
android.wakelock = False
61+
62+
# Activity launch mode
63+
android.activity_launch_mode = standard
3764

38-
# Kivy bootstrap
39-
p4a.bootstrap = sdl2
65+
# Allow backup
66+
android.allow_backup = True
4067

68+
# Icons — optional; comment out if you don't have icon.png
69+
# icon.filename = %(source.dir)s/icon.png
70+
# presplash.filename = %(source.dir)s/presplash.png
4171

4272
[buildozer]
43-
warn_on_root = 1
73+
74+
# Log level: 0=error, 1=info, 2=debug
75+
log_level = 2
76+
77+
# Warn on root
78+
warn_on_root = 1
79+
80+
# Build directory
81+
build_dir = ./.buildozer
82+
83+
# Bin dir
84+
bin_dir = ./bin

0 commit comments

Comments
 (0)