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