· 3 years ago · Aug 04, 2022, 12:00 PM
1# (str) Title of your application
2title = Myapp
3
4# (str) Package name
5package.name = myapp
6
7# (str) Package domain (needed for android/ios packaging)
8package.domain = org.myapp
9
10# (str) Source code where the main.py live
11source.dir = .
12
13# (list) List of inclusions using pattern matching
14#source.include_patterns = assets/*,images/*.png
15
16# (list) Source files to exclude (let empty to not exclude anything)
17source.exclude_exts = py,png,jpg,txt,kv,atlas,json,wav,ogg,jpeg,ttf,mp4,spec
18
19# (list) List of directory to exclude (let empty to not exclude anything)
20#source.exclude_dirs = tests, bin, venv
21
22# (list) List of exclusions using pattern matching
23# Do not prefix with './'
24#source.exclude_patterns = license,images/*/*.jpg
25
26# (str) Application versioning (method 1)
27version = 0.1
28
29# (str) Application versioning (method 2)
30# version.regex = __version__ = ['"](.*)['"]
31# version.filename = %(source.dir)s/main.py
32
33# (list) Application requirements
34# comma separated e.g. requirements = sqlite3,kivy
35requirements = python3,gTTS,kivy==2.1.0,requests,kivymd,pygments,sdl2_ttf==2.0.15,pillow,urllib3,chardet,certifi,idna,sdl2,openssl
36
37# (str) Custom source folders for requirements
38# Sets custom source for any requirements with recipes
39# requirements.source.kivy = ../../kivy
40
41# (str) Presplash of the application
42presplash.filename = i/logo/Gneppa.png
43
44# (str) Icon of the application
45icon.filename = i/logo/gneppa4.png
46
47# (str) Supported orientation (one of landscape, sensorLandscape, portrait or all)
48orientation = portrait
49
50# (list) List of service to declare
51#services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY
52
53#
54# OSX Specific
55#
56
57#
58# author = © Copyright Info
59
60# change the major version of python used by the app
61osx.python_version = 3
62
63# Kivy version to use
64osx.kivy_version = 1.9.1
65
66#
67# Android specific
68#
69
70# (bool) Indicate if the application should be fullscreen or not
71fullscreen = 0
72
73# (string) Presplash background color (for android toolchain)
74# Supported formats are: #RRGGBB #AARRGGBB or one of the following names:
75# red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray,
76# darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,
77# olive, purple, silver, teal.
78android.presplash_color = black
79
80# (string) Presplash animation using Lottie format.
81# see https://lottiefiles.com/ for examples and https://airbnb.design/lottie/
82# for general documentation.
83# Lottie files can be created using various tools, like Adobe After Effect or Synfig.
84#android.presplash_lottie = "path/to/lottie/file.json"
85
86# (str) Adaptive icon of the application (used if Android API level is 26+ at runtime)
87#icon.adaptive_foreground.filename = %(source.dir)s/data/icon_fg.png
88#icon.adaptive_background.filename = %(source.dir)s/data/icon_bg.png
89
90# (list) Permissions
91android.permissions = INTERNET,WRITE_EXTERNAL_STORAGE,READ_EXTERNAL_STORAGE
92
93# (list) features (adds uses-feature -tags to manifest)
94#android.features = android.hardware.usb.host
95
96# (int) Target Android API, should be as high as possible.
97#android.api = 27
98
99# (int) Minimum API your APK / AAB will support.
100#android.minapi = 21
101
102# (int) Android SDK version to use
103#android.sdk = 20
104
105# (str) Android NDK version to use
106#android.ndk = 23b
107
108# (int) Android NDK API to use. This is the minimum API your app will support, it should usually match android.minapi.
109#android.ndk_api = 21
110
111# (bool) Use --private data storage (True) or --dir public storage (False)
112#android.private_storage = True
113
114# (str) Android NDK directory (if empty, it will be automatically downloaded.)
115#android.ndk_path =
116
117# (str) Android SDK directory (if empty, it will be automatically downloaded.)
118#android.sdk_path =
119
120# (str) ANT directory (if empty, it will be automatically downloaded.)
121#android.ant_path =
122
123# (bool) If True, then skip trying to update the Android sdk
124# This can be useful to avoid excess Internet downloads or save time
125# when an update is due and you just want to test/build your package
126# android.skip_update = False
127
128# (bool) If True, then automatically accept SDK license
129# agreements. This is intended for automation only. If set to False,
130# the default, you will be shown the license when first running
131# buildozer.
132# android.accept_sdk_license = False
133
134# (str) Android entry point, default is ok for Kivy-based app
135#android.entrypoint = org.kivy.android.PythonActivity
136
137# (str) Full name including package path of the Java class that implements Android Activity
138# use that parameter together with android.entrypoint to set custom Java class instead of PythonActivity
139#android.activity_class_name = org.kivy.android.PythonActivity
140
141# (str) Extra xml to write directly inside the <manifest> element of AndroidManifest.xml
142# use that parameter to provide a filename from where to load your custom XML code
143#android.extra_manifest_xml = ./src/android/extra_manifest.xml
144
145# (str) Extra xml to write directly inside the <manifest><application> tag of AndroidManifest.xml
146# use that parameter to provide a filename from where to load your custom XML arguments:
147#android.extra_manifest_application_arguments = ./src/android/extra_manifest_application_arguments.xml
148
149# (str) Full name including package path of the Java class that implements Python Service
150# use that parameter to set custom Java class instead of PythonService
151#android.service_class_name = org.kivy.android.PythonService
152
153# (str) Android app theme, default is ok for Kivy-based app
154# android.apptheme = "@android:style/Theme.NoTitleBar"
155
156# (list) Pattern to whitelist for the whole project
157#android.whitelist =
158
159# (str) Path to a custom whitelist file
160#android.whitelist_src =
161
162# (str) Path to a custom blacklist file
163#android.blacklist_src =
164
165# (list) List of Java .jar files to add to the libs so that pyjnius can access
166# their classes. Don't add jars that you do not need, since extra jars can slow
167# down the build process. Allows wildcards matching, for example:
168# OUYA-ODK/libs/*.jar
169#android.add_jars = foo.jar,bar.jar,path/to/more/*.jar
170
171# (list) List of Java files to add to the android project (can be java or a
172# directory containing the files)
173#android.add_src =
174
175# (list) Android AAR archives to add
176#android.add_aars =
177
178# (list) Put these files or directories in the apk assets directory.
179# Either form may be used, and assets need not be in 'source.include_exts'.
180# 1) android.add_assets = source_asset_relative_path
181# 2) android.add_assets = source_asset_path:destination_asset_relative_path
182#android.add_assets =
183
184# (list) Gradle dependencies to add
185#android.gradle_dependencies =
186
187# (bool) Enable AndroidX support. Enable when 'android.gradle_dependencies'
188# contains an 'androidx' package, or any package from Kotlin source.
189# android.enable_androidx requires android.api >= 28
190#android.enable_androidx = False
191
192# (list) add java compile options
193# this can for example be necessary when importing certain java libraries using the 'android.gradle_dependencies' option
194# see https://developer.android.com/studio/write/java8-support for further information
195# android.add_compile_options = "sourceCompatibility = 1.8", "targetCompatibility = 1.8"
196
197# (list) Gradle repositories to add {can be necessary for some android.gradle_dependencies}
198# please enclose in double quotes
199# e.g. android.gradle_repositories = "maven { url 'https://kotlin.bintray.com/ktor' }"
200#android.add_gradle_repositories =
201
202# (list) packaging options to add
203# see https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.PackagingOptions.html
204# can be necessary to solve conflicts in gradle_dependencies
205# please enclose in double quotes
206# e.g. android.add_packaging_options = "exclude 'META-INF/common.kotlin_module'", "exclude 'META-INF/*.kotlin_module'"
207#android.add_packaging_options =
208
209# (list) Java classes to add as activities to the manifest.
210#android.add_activities = com.example.ExampleActivity
211
212# (str) OUYA Console category. Should be one of GAME or APP
213# If you leave this blank, OUYA support will not be enabled
214#android.ouya.category = GAME
215
216# (str) Filename of OUYA Console icon. It must be a 732x412 png image.
217#android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png
218
219# (str) XML file to include as an intent filters in <activity> tag
220#android.manifest.intent_filters =
221
222# (str) launchMode to set for the main activity
223#android.manifest.launch_mode = standard
224
225# (list) Android additional libraries to copy into libs/armeabi
226#android.add_libs_armeabi = libs/android/*.so
227#android.add_libs_armeabi_v7a = libs/android-v7/*.so
228#android.add_libs_arm64_v8a = libs/android-v8/*.so
229#android.add_libs_x86 = libs/android-x86/*.so
230#android.add_libs_mips = libs/android-mips/*.so
231
232# (bool) Indicate whether the screen should stay on
233# Don't forget to add the WAKE_LOCK permission if you set this to True
234#android.wakelock = False
235
236# (list) Android application meta-data to set (key=value format)
237#android.meta_data =
238
239# (list) Android library project to add (will be added in the
240# project.properties automatically.)
241#android.library_references =
242
243# (list) Android shared libraries which will be added to AndroidManifest.xml using <uses-library> tag
244#android.uses_library =
245
246# (str) Android logcat filters to use
247#android.logcat_filters = *:S python:D
248
249# (bool) Android logcat only display log for activity's pid
250#android.logcat_pid_only = False
251
252# (str) Android additional adb arguments
253#android.adb_args = -H host.docker.internal
254
255# (bool) Copy library instead of making a libpymodules.so
256#android.copy_libs = 1
257
258# (list) The Android archs to build for, choices: armeabi-v7a, arm64-v8a, x86, x86_64
259# In past, was `android.arch` as we weren't supporting builds for multiple archs at the same time.
260android.archs = arm64-v8a, armeabi-v7a
261
262# (int) overrides automatic versionCode computation (used in build.gradle)
263# this is not the same as app version and should only be edited if you know what you're doing
264# android.numeric_version = 1
265
266# (bool) enables Android auto backup feature (Android API >=23)
267android.allow_backup = True
268
269# (str) XML file for custom backup rules (see official auto backup documentation)
270# android.backup_rules =
271
272# (str) If you need to insert variables into your AndroidManifest.xml file,
273# you can do so with the manifestPlaceholders property.
274# This property takes a map of key-value pairs. (via a string)
275# Usage example : android.manifest_placeholders = [myCustomUrl:\"org.kivy.customurl\"]
276# android.manifest_placeholders = [:]
277
278# (bool) disables the compilation of py to pyc/pyo files when packaging
279# android.no-compile-pyo = True
280
281# (str) The format used to package the app for release mode (aab or apk or aar).
282# android.release_artifact = aab
283
284# (str) The format used to package the app for debug mode (apk or aar).
285# android.debug_artifact = apk
286
287#
288# Python for android (p4a) specific
289#
290
291# (str) python-for-android URL to use for checkout
292#p4a.url =
293
294# (str) python-for-android fork to use in case if p4a.url is not specified, defaults to upstream (kivy)
295#p4a.fork = kivy
296
297#android.release_artifact = aab
298# (str) python-for-android branch to use, defaults to master
299#p4a.branch = master
300p4a.branch = develop
301
302# (str) python-for-android specific commit to use, defaults to HEAD, must be within p4a.branch
303#p4a.commit = HEAD
304
305# (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
306#p4a.source_dir =
307
308# (str) The directory in which python-for-android should look for your own build recipes (if any)
309#p4a.local_recipes =
310
311# (str) Filename to the hook for p4a
312#p4a.hook =
313
314# (str) Bootstrap to use for android builds
315# p4a.bootstrap = sdl2
316
317# (int) port number to specify an explicit --port= p4a argument (eg for bootstrap flask)
318#p4a.port =
319
320# Control passing the --use-setup-py vs --ignore-setup-py to p4a
321# "in the future" --use-setup-py is going to be the default behaviour in p4a, right now it is not
322# Setting this to false will pass --ignore-setup-py, true will pass --use-setup-py
323# NOTE: this is general setuptools integration, having pyproject.toml is enough, no need to generate
324# setup.py if you're using Poetry, but you need to add "toml" to source.include_exts.
325#p4a.setup_py = false
326
327# (str) extra command line arguments to pass when invoking pythonforandroid.toolchain
328#p4a.extra_args =
329
330
331#
332# iOS specific
333#
334
335# (str) Path to a custom kivy-ios folder
336#ios.kivy_ios_dir = ../kivy-ios
337# Alternately, specify the URL and branch of a git checkout:
338ios.kivy_ios_url = https://github.com/kivy/kivy-ios
339ios.kivy_ios_branch = master
340
341# Another platform dependency: ios-deploy
342# Uncomment to use a custom checkout
343#ios.ios_deploy_dir = ../ios_deploy
344# Or specify URL and branch
345ios.ios_deploy_url = https://github.com/phonegap/ios-deploy
346ios.ios_deploy_branch = 1.10.0
347
348# (bool) Whether or not to sign the code
349ios.codesign.allowed = false
350
351# (str) Name of the certificate to use for signing the debug version
352# Get a list of available identities: buildozer ios list_identities
353#ios.codesign.debug = "iPhone Developer: <lastname> <firstname> (<hexstring>)"
354
355# (str) The development team to use for signing the debug version
356#ios.codesign.development_team.debug = <hexstring>
357
358# (str) Name of the certificate to use for signing the release version
359#ios.codesign.release = %(ios.codesign.debug)s
360
361# (str) The development team to use for signing the release version
362#ios.codesign.development_team.release = <hexstring>
363
364# (str) URL pointing to .ipa file to be installed
365# This option should be defined along with `display_image_url` and `full_size_image_url` options.
366#ios.manifest.app_url =
367
368# (str) URL pointing to an icon (57x57px) to be displayed during download
369# This option should be defined along with `app_url` and `full_size_image_url` options.
370#ios.manifest.display_image_url =
371
372# (str) URL pointing to a large icon (512x512px) to be used by iTunes
373# This option should be defined along with `app_url` and `display_image_url` options.
374#ios.manifest.full_size_image_url =
375
376
377[buildozer]
378
379# (int) Log level (0 = error only, 1 = info, 2 = debug (with command output))
380log_level = 2
381
382# (int) Display warning if buildozer is run as root (0 = False, 1 = True)
383warn_on_root = 1
384
385# (str) Path to build artifact storage, absolute or relative to spec file
386# build_dir = ./.buildozer
387
388# (str) Path to build output (i.e. .apk, .aab, .ipa) storage
389# bin_dir = ./bin
390
391# -----------------------------------------------------------------------------
392# List as sections
393#
394# You can define all the "list" as [section:key].
395# Each line will be considered as a option to the list.
396# Let's take [app] / source.exclude_patterns.
397# Instead of doing:
398#
399#[app]
400#source.exclude_patterns = license,data/audio/*.wav,data/images/original/*
401#
402# This can be translated into:
403#
404#[app:source.exclude_patterns]
405#license
406#data/audio/*.wav
407#data/images/original/*
408#
409
410
411# -----------------------------------------------------------------------------
412# Profiles
413#
414# You can extend section / key with a profile
415# For example, you want to deploy a demo version of your application without
416# HD content. You could first change the title to add "(demo)" in the name
417# and extend the excluded directories to remove the HD content.
418#
419#[app@demo]
420#title = My Application (demo)
421#
422#[app:source.exclude_patterns@demo]
423#images/hd/*
424#
425# Then, invoke the command line with the "demo" profile:
426#
427#buildozer --profile demo android debug