Advertisement
Guest User

Buildozer.spec

a guest
Sep 11th, 2020
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.02 KB | None | 0 0
  1. [app]
  2.  
  3. # (str) Title of your application
  4. title = My Application
  5.  
  6. # (str) Package name
  7. package.name = myapp
  8.  
  9. # (str) Package domain (needed for android/ios packaging)
  10. package.domain = com.my_company
  11.  
  12. # (str) Source code where the main.py live
  13. source.dir = src
  14.  
  15. # (list) Source files to include (let empty to include all the files)
  16. source.include_exts = py,png,jpg,kv,atlas
  17.  
  18. # (list) List of inclusions using pattern matching
  19. #source.include_patterns = assets/*,images/*.png
  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 = tests, bin, venv
  26.  
  27. # (list) List of exclusions using pattern matching
  28. #source.exclude_patterns = license,images/*/*.jpg
  29.  
  30. # (str) Application versioning (method 1)
  31. version = 0.1
  32.  
  33. # (str) Application versioning (method 2)
  34. # version.regex = __version__ = ['"](.*)['"]
  35. # version.filename = %(source.dir)s/main.py
  36.  
  37. # (list) Application requirements
  38. # comma separated e.g. requirements = sqlite3,kivy
  39. requirements = python3,kivy
  40.  
  41. # (str) Custom source folders for requirements
  42. # Sets custom source for any requirements with recipes
  43. # requirements.source.kivy = ../../kivy
  44.  
  45. # (str) Presplash of the application
  46. #presplash.filename = %(source.dir)s/data/presplash.png
  47.  
  48. # (str) Icon of the application
  49. #icon.filename = %(source.dir)s/data/icon.png
  50.  
  51. # (str) Supported orientation (one of landscape, sensorLandscape, portrait or all)
  52. orientation = portrait
  53.  
  54. # (list) List of service to declare
  55. #services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY
  56.  
  57. #
  58. # OSX Specific
  59. #
  60.  
  61. #
  62. # author = © Copyright My Name
  63.  
  64. # change the major version of python used by the app
  65. osx.python_version = 3
  66.  
  67. # Kivy version to use
  68. osx.kivy_version = 1.11.1
  69.  
  70. #
  71. # Android specific
  72. #
  73.  
  74. # (bool) Indicate if the application should be fullscreen or not
  75. fullscreen = 1
  76.  
  77. # (string) Presplash background color (for android toolchain)
  78. # Supported formats are: #RRGGBB #AARRGGBB or one of the following names:
  79. # red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray,
  80. # darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,
  81. # olive, purple, silver, teal.
  82. #android.presplash_color = #FFFFFF
  83.  
  84. # (string) Presplash animation using Lottie format.
  85. # see https://lottiefiles.com/ for examples and https://airbnb.design/lottie/
  86. # for general documentation.
  87. # Lottie files can be created using various tools, like Adobe After Effect or Synfig.
  88. #android.presplash_lottie = "path/to/lottie/file.json"
  89.  
  90. # (list) Permissions
  91. #android.permissions = INTERNET
  92. #android.permissions = WAKE_LOCK
  93.  
  94. # (int) Target Android API, should be as high as possible.
  95. #android.api = 27
  96.  
  97. # (int) Minimum API your APK will support.
  98. #android.minapi = 21
  99.  
  100. # (int) Android SDK version to use
  101. #android.sdk = 20
  102.  
  103. # (str) Android NDK version to use
  104. #android.ndk = 19b
  105.  
  106. # (int) Android NDK API to use. This is the minimum API your app will support, it should usually match android.minapi.
  107. #android.ndk_api = 21
  108.  
  109. # (bool) Use --private data storage (True) or --dir public storage (False)
  110. #android.private_storage = True
  111.  
  112. # (str) Android NDK directory (if empty, it will be automatically downloaded.)
  113. #android.ndk_path =
  114.  
  115. # (str) Android SDK directory (if empty, it will be automatically downloaded.)
  116. #android.sdk_path =
  117.  
  118. # (str) ANT directory (if empty, it will be automatically downloaded.)
  119. #android.ant_path =
  120.  
  121. # (bool) If True, then skip trying to update the Android sdk
  122. # This can be useful to avoid excess Internet downloads or save time
  123. # when an update is due and you just want to test/build your package
  124. # android.skip_update = False
  125.  
  126. # (bool) If True, then automatically accept SDK license
  127. # agreements. This is intended for automation only. If set to False,
  128. # the default, you will be shown the license when first running
  129. # buildozer.
  130. # android.accept_sdk_license = False
  131.  
  132. # (str) Android entry point, default is ok for Kivy-based app
  133. #android.entrypoint = org.renpy.android.PythonActivity
  134.  
  135. # (str) Android app theme, default is ok for Kivy-based app
  136. # android.apptheme = "@android:style/Theme.NoTitleBar"
  137.  
  138. # (list) Pattern to whitelist for the whole project
  139. #android.whitelist =
  140.  
  141. # (str) Path to a custom whitelist file
  142. #android.whitelist_src =
  143.  
  144. # (str) Path to a custom blacklist file
  145. #android.blacklist_src =
  146.  
  147. # (list) List of Java .jar files to add to the libs so that pyjnius can access
  148. # their classes. Don't add jars that you do not need, since extra jars can slow
  149. # down the build process. Allows wildcards matching, for example:
  150. # OUYA-ODK/libs/*.jar
  151. #android.add_jars = foo.jar,bar.jar,path/to/more/*.jar
  152.  
  153. # (list) List of Java files to add to the android project (can be java or a
  154. # directory containing the files)
  155. #android.add_src =
  156.  
  157. # (list) Android AAR archives to add (currently works only with sdl2_gradle
  158. # bootstrap)
  159. #android.add_aars =
  160.  
  161. # (list) Gradle dependencies to add (currently works only with sdl2_gradle
  162. # bootstrap)
  163. #android.gradle_dependencies =
  164.  
  165. # (list) add java compile options
  166. # this can for example be necessary when importing certain java libraries using the 'android.gradle_dependencies' option
  167. # see https://developer.android.com/studio/write/java8-support for further information
  168. # android.add_compile_options = "sourceCompatibility = 1.8", "targetCompatibility = 1.8"
  169.  
  170. # (list) Gradle repositories to add {can be necessary for some android.gradle_dependencies}
  171. # please enclose in double quotes
  172. # e.g. android.gradle_repositories = "maven { url 'https://kotlin.bintray.com/ktor' }"
  173. #android.add_gradle_repositories =
  174.  
  175. # (list) packaging options to add
  176. # see https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.PackagingOptions.html
  177. # can be necessary to solve conflicts in gradle_dependencies
  178. # please enclose in double quotes
  179. # e.g. android.add_packaging_options = "exclude 'META-INF/common.kotlin_module'", "exclude 'META-INF/*.kotlin_module'"
  180. #android.add_gradle_repositories =
  181.  
  182. # (list) Java classes to add as activities to the manifest.
  183. #android.add_activities = com.example.ExampleActivity
  184.  
  185. # (str) OUYA Console category. Should be one of GAME or APP
  186. # If you leave this blank, OUYA support will not be enabled
  187. #android.ouya.category = GAME
  188.  
  189. # (str) Filename of OUYA Console icon. It must be a 732x412 png image.
  190. #android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png
  191.  
  192. # (str) XML file to include as an intent filters in <activity> tag
  193. #android.manifest.intent_filters =
  194.  
  195. # (str) launchMode to set for the main activity
  196. #android.manifest.launch_mode = standard
  197.  
  198. # (list) Android additional libraries to copy into libs/armeabi
  199. #android.add_libs_armeabi = libs/android/*.so
  200. #android.add_libs_armeabi_v7a = libs/android-v7/*.so
  201. #android.add_libs_arm64_v8a = libs/android-v8/*.so
  202. #android.add_libs_x86 = libs/android-x86/*.so
  203. #android.add_libs_mips = libs/android-mips/*.so
  204.  
  205. # (bool) Indicate whether the screen should stay on
  206. # Don't forget to add the WAKE_LOCK permission if you set this to True
  207. #android.wakelock = True
  208.  
  209. # (list) Android application meta-data to set (key=value format)
  210. #android.meta_data =
  211.  
  212. # (list) Android library project to add (will be added in the
  213. # project.properties automatically.)
  214. #android.library_references =
  215.  
  216. # (list) Android shared libraries which will be added to AndroidManifest.xml using <uses-library> tag
  217. #android.uses_library =
  218.  
  219. # (str) Android logcat filters to use
  220. #android.logcat_filters = *:S python:D
  221.  
  222. # (bool) Copy library instead of making a libpymodules.so
  223. #android.copy_libs = 1
  224.  
  225. # (str) The Android arch to build for, choices: armeabi-v7a, arm64-v8a, x86, x86_64
  226. android.arch = arm64-v8a
  227.  
  228. # (int) overrides automatic versionCode computation (used in build.gradle)
  229. # this is not the same as app version and should only be edited if you know what you're doing
  230. # android.numeric_version = 1
  231.  
  232. # (bool) enables Android auto backup feature (Android API >=23)
  233. android.allow_backup = True
  234.  
  235. #
  236. # Python for android (p4a) specific
  237. #
  238.  
  239. # (str) python-for-android fork to use, defaults to upstream (kivy)
  240. #p4a.fork = kivy
  241.  
  242. # (str) python-for-android branch to use, defaults to master
  243. #p4a.branch = master
  244.  
  245. # (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
  246. #p4a.source_dir =
  247.  
  248. # (str) The directory in which python-for-android should look for your own build recipes (if any)
  249. #p4a.local_recipes =
  250.  
  251. # (str) Filename to the hook for p4a
  252. #p4a.hook =
  253.  
  254. # (str) Bootstrap to use for android builds
  255. # p4a.bootstrap = sdl2
  256.  
  257. # (int) port number to specify an explicit --port= p4a argument (eg for bootstrap flask)
  258. #p4a.port =
  259.  
  260.  
  261. #
  262. # iOS specific
  263. #
  264.  
  265. # (str) Path to a custom kivy-ios folder
  266. #ios.kivy_ios_dir = ../kivy-ios
  267. # Alternately, specify the URL and branch of a git checkout:
  268. ios.kivy_ios_url = https://github.com/kivy/kivy-ios
  269. ios.kivy_ios_branch = master
  270.  
  271. # Another platform dependency: ios-deploy
  272. # Uncomment to use a custom checkout
  273. #ios.ios_deploy_dir = ../ios_deploy
  274. # Or specify URL and branch
  275. ios.ios_deploy_url = https://github.com/phonegap/ios-deploy
  276. ios.ios_deploy_branch = 1.10.0
  277.  
  278. # (bool) Whether or not to sign the code
  279. ios.codesign.allowed = false
  280.  
  281. # (str) Name of the certificate to use for signing the debug version
  282. # Get a list of available identities: buildozer ios list_identities
  283. #ios.codesign.debug = "iPhone Developer: <lastname> <firstname> (<hexstring>)"
  284.  
  285. # (str) Name of the certificate to use for signing the release version
  286. #ios.codesign.release = %(ios.codesign.debug)s
  287.  
  288.  
  289. [buildozer]
  290.  
  291. # (int) Log level (0 = error only, 1 = info, 2 = debug (with command output))
  292. log_level = 2
  293.  
  294. # (int) Display warning if buildozer is run as root (0 = False, 1 = True)
  295. warn_on_root = 1
  296.  
  297. # (str) Path to build artifact storage, absolute or relative to spec file
  298. # build_dir = ./.buildozer
  299.  
  300. # (str) Path to build output (i.e. .apk, .ipa) storage
  301. # bin_dir = ./bin
  302.  
  303. # -----------------------------------------------------------------------------
  304. # List as sections
  305. #
  306. # You can define all the "list" as [section:key].
  307. # Each line will be considered as a option to the list.
  308. # Let's take [app] / source.exclude_patterns.
  309. # Instead of doing:
  310. #
  311. #[app]
  312. #source.exclude_patterns = license,data/audio/*.wav,data/images/original/*
  313. #
  314. # This can be translated into:
  315. #
  316. #[app:source.exclude_patterns]
  317. #license
  318. #data/audio/*.wav
  319. #data/images/original/*
  320. #
  321.  
  322.  
  323. # -----------------------------------------------------------------------------
  324. # Profiles
  325. #
  326. # You can extend section / key with a profile
  327. # For example, you want to deploy a demo version of your application without
  328. # HD content. You could first change the title to add "(demo)" in the name
  329. # and extend the excluded directories to remove the HD content.
  330. #
  331. #[app@demo]
  332. #title = My Application (demo)
  333. #
  334. #[app:source.exclude_patterns@demo]
  335. #images/hd/*
  336. #
  337. # Then, invoke the command line with the "demo" profile:
  338. #
  339. #buildozer --profile demo android debug
  340.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement