Advertisement
Guest User

Full buildozer.spec file

a guest
Oct 4th, 2021
641
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RPM Spec 14.64 KB | None | 0 0
  1. [app]
  2.  
  3. # (str) Title of your application
  4. title = AudioTest
  5.  
  6. # (str) Package name
  7. package.name = audiotest
  8.  
  9. # (str) Package domain (needed for android/ios packaging)
  10. package.domain = org.test
  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,mp3
  17.  
  18. # (list) List of inclusions using pattern matching
  19. source.include_patterns = music/10_poker_face.mp3,
  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==2.0.0,ffpyplayer
  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 Info
  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.9.1
  69.  
  70. #
  71. # Android specific
  72. #
  73.  
  74. # (bool) Indicate if the application should be fullscreen or not
  75. fullscreen = 0
  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. # (str) Adaptive icon of the application (used if Android API level is 26+ at runtime)
  91. #icon.adaptive_foreground.filename = %(source.dir)s/data/icon_fg.png
  92. #icon.adaptive_background.filename = %(source.dir)s/data/icon_bg.png
  93.  
  94. # (list) Permissions
  95. #android.permissions = INTERNET
  96.  
  97. # (list) features (adds uses-feature -tags to manifest)
  98. #android.features = android.hardware.usb.host
  99.  
  100. # (int) Target Android API, should be as high as possible.
  101. #android.api = 27
  102.  
  103. # (int) Minimum API your APK will support.
  104. #android.minapi = 21
  105.  
  106. # (int) Android SDK version to use
  107. #android.sdk = 20
  108.  
  109. # (str) Android NDK version to use
  110. #android.ndk = 19b
  111.  
  112. # (int) Android NDK API to use. This is the minimum API your app will support, it should usually match android.minapi.
  113. #android.ndk_api = 21
  114.  
  115. # (bool) Use --private data storage (True) or --dir public storage (False)
  116. #android.private_storage = True
  117.  
  118. # (str) Android NDK directory (if empty, it will be automatically downloaded.)
  119. #android.ndk_path =
  120.  
  121. # (str) Android SDK directory (if empty, it will be automatically downloaded.)
  122. #android.sdk_path =
  123.  
  124. # (str) ANT directory (if empty, it will be automatically downloaded.)
  125. #android.ant_path =
  126.  
  127. # (bool) If True, then skip trying to update the Android sdk
  128. # This can be useful to avoid excess Internet downloads or save time
  129. # when an update is due and you just want to test/build your package
  130. # android.skip_update = False
  131.  
  132. # (bool) If True, then automatically accept SDK license
  133. # agreements. This is intended for automation only. If set to False,
  134. # the default, you will be shown the license when first running
  135. # buildozer.
  136. # android.accept_sdk_license = False
  137.  
  138. # (str) Android entry point, default is ok for Kivy-based app
  139. #android.entrypoint = org.kivy.android.PythonActivity
  140.  
  141. # (str) Full name including package path of the Java class that implements Android Activity
  142. # use that parameter together with android.entrypoint to set custom Java class instead of PythonActivity
  143. #android.activity_class_name = org.kivy.android.PythonActivity
  144.  
  145. # (str) Extra xml to write directly inside the <manifest> element of AndroidManifest.xml
  146. # use that parameter to provide a filename from where to load your custom XML code
  147. #android.extra_manifest_xml = ./src/android/extra_manifest.xml
  148.  
  149. # (str) Extra xml to write directly inside the <manifest><application> tag of AndroidManifest.xml
  150. # use that parameter to provide a filename from where to load your custom XML arguments:
  151. #android.extra_manifest_application_arguments = ./src/android/extra_manifest_application_arguments.xml
  152.  
  153. # (str) Full name including package path of the Java class that implements Python Service
  154. # use that parameter to set custom Java class instead of PythonService
  155. #android.service_class_name = org.kivy.android.PythonService
  156.  
  157. # (str) Android app theme, default is ok for Kivy-based app
  158. # android.apptheme = "@android:style/Theme.NoTitleBar"
  159.  
  160. # (list) Pattern to whitelist for the whole project
  161. #android.whitelist =
  162.  
  163. # (str) Path to a custom whitelist file
  164. #android.whitelist_src =
  165.  
  166. # (str) Path to a custom blacklist file
  167. #android.blacklist_src =
  168.  
  169. # (list) List of Java .jar files to add to the libs so that pyjnius can access
  170. # their classes. Don't add jars that you do not need, since extra jars can slow
  171. # down the build process. Allows wildcards matching, for example:
  172. # OUYA-ODK/libs/*.jar
  173. #android.add_jars = foo.jar,bar.jar,path/to/more/*.jar
  174.  
  175. # (list) List of Java files to add to the android project (can be java or a
  176. # directory containing the files)
  177. #android.add_src =
  178.  
  179. # (list) Android AAR archives to add
  180. #android.add_aars =
  181.  
  182. # (list) Gradle dependencies to add
  183. #android.gradle_dependencies =
  184.  
  185. # (bool) Enable AndroidX support. Enable when 'android.gradle_dependencies'
  186. # contains an 'androidx' package, or any package from Kotlin source.
  187. # android.enable_androidx requires android.api >= 28
  188. #android.enable_androidx = False
  189.  
  190. # (list) add java compile options
  191. # this can for example be necessary when importing certain java libraries using the 'android.gradle_dependencies' option
  192. # see https://developer.android.com/studio/write/java8-support for further information
  193. # android.add_compile_options = "sourceCompatibility = 1.8", "targetCompatibility = 1.8"
  194.  
  195. # (list) Gradle repositories to add {can be necessary for some android.gradle_dependencies}
  196. # please enclose in double quotes
  197. # e.g. android.gradle_repositories = "maven { url 'https://kotlin.bintray.com/ktor' }"
  198. #android.add_gradle_repositories =
  199.  
  200. # (list) packaging options to add
  201. # see https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.PackagingOptions.html
  202. # can be necessary to solve conflicts in gradle_dependencies
  203. # please enclose in double quotes
  204. # e.g. android.add_packaging_options = "exclude 'META-INF/common.kotlin_module'", "exclude 'META-INF/*.kotlin_module'"
  205. #android.add_packaging_options =
  206.  
  207. # (list) Java classes to add as activities to the manifest.
  208. #android.add_activities = com.example.ExampleActivity
  209.  
  210. # (str) OUYA Console category. Should be one of GAME or APP
  211. # If you leave this blank, OUYA support will not be enabled
  212. #android.ouya.category = GAME
  213.  
  214. # (str) Filename of OUYA Console icon. It must be a 732x412 png image.
  215. #android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png
  216.  
  217. # (str) XML file to include as an intent filters in <activity> tag
  218. #android.manifest.intent_filters =
  219.  
  220. # (str) launchMode to set for the main activity
  221. #android.manifest.launch_mode = standard
  222.  
  223. # (list) Android additional libraries to copy into libs/armeabi
  224. #android.add_libs_armeabi = libs/android/*.so
  225. #android.add_libs_armeabi_v7a = libs/android-v7/*.so
  226. #android.add_libs_arm64_v8a = libs/android-v8/*.so
  227. #android.add_libs_x86 = libs/android-x86/*.so
  228. #android.add_libs_mips = libs/android-mips/*.so
  229.  
  230. # (bool) Indicate whether the screen should stay on
  231. # Don't forget to add the WAKE_LOCK permission if you set this to True
  232. #android.wakelock = False
  233.  
  234. # (list) Android application meta-data to set (key=value format)
  235. #android.meta_data =
  236.  
  237. # (list) Android library project to add (will be added in the
  238. # project.properties automatically.)
  239. #android.library_references =
  240.  
  241. # (list) Android shared libraries which will be added to AndroidManifest.xml using <uses-library> tag
  242. #android.uses_library =
  243.  
  244. # (str) Android logcat filters to use
  245. android.logcat_filters = *:S python:D
  246.  
  247. # (bool) Android logcat only display log for activity's pid
  248. #android.logcat_pid_only = False
  249.  
  250. # (str) Android additional adb arguments
  251. #android.adb_args = -H host.docker.internal
  252.  
  253. # (bool) Copy library instead of making a libpymodules.so
  254. #android.copy_libs = 1
  255.  
  256. # (str) The Android arch to build for, choices: armeabi-v7a, arm64-v8a, x86, x86_64
  257. android.arch = armeabi-v7a
  258.  
  259. # (int) overrides automatic versionCode computation (used in build.gradle)
  260. # this is not the same as app version and should only be edited if you know what you're doing
  261. # android.numeric_version = 1
  262.  
  263. # (bool) enables Android auto backup feature (Android API >=23)
  264. android.allow_backup = True
  265.  
  266. # (str) XML file for custom backup rules (see official auto backup documentation)
  267. # android.backup_rules =
  268.  
  269. # (str) If you need to insert variables into your AndroidManifest.xml file,
  270. # you can do so with the manifestPlaceholders property.
  271. # This property takes a map of key-value pairs. (via a string)
  272. # Usage example : android.manifest_placeholders = [myCustomUrl:\"org.kivy.customurl\"]
  273. # android.manifest_placeholders = [:]
  274.  
  275. # (bool) disables the compilation of py to pyc/pyo files when packaging
  276. # android.no-compile-pyo = True
  277.  
  278. #
  279. # Python for android (p4a) specific
  280. #
  281.  
  282. # (str) python-for-android URL to use for checkout
  283. #p4a.url =
  284.  
  285. # (str) python-for-android fork to use in case if p4a.url is not specified, defaults to upstream (kivy)
  286. #p4a.fork = kivy
  287.  
  288. # (str) python-for-android branch to use, defaults to master
  289. #p4a.branch = master
  290.  
  291. # (str) python-for-android specific commit to use, defaults to HEAD, must be within p4a.branch
  292. #p4a.commit = HEAD
  293.  
  294. # (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
  295. #p4a.source_dir =
  296.  
  297. # (str) The directory in which python-for-android should look for your own build recipes (if any)
  298. #p4a.local_recipes =
  299.  
  300. # (str) Filename to the hook for p4a
  301. #p4a.hook =
  302.  
  303. # (str) Bootstrap to use for android builds
  304. # p4a.bootstrap = sdl2
  305.  
  306. # (int) port number to specify an explicit --port= p4a argument (eg for bootstrap flask)
  307. #p4a.port =
  308.  
  309. # Control passing the --use-setup-py vs --ignore-setup-py to p4a
  310. # "in the future" --use-setup-py is going to be the default behaviour in p4a, right now it is not
  311. # Setting this to false will pass --ignore-setup-py, true will pass --use-setup-py
  312. # NOTE: this is general setuptools integration, having pyproject.toml is enough, no need to generate
  313. # setup.py if you're using Poetry, but you need to add "toml" to source.include_exts.
  314. #p4a.setup_py = false
  315.  
  316.  
  317. #
  318. # iOS specific
  319. #
  320.  
  321. # (str) Path to a custom kivy-ios folder
  322. #ios.kivy_ios_dir = ../kivy-ios
  323. # Alternately, specify the URL and branch of a git checkout:
  324. ios.kivy_ios_url = https://github.com/kivy/kivy-ios
  325. ios.kivy_ios_branch = master
  326.  
  327. # Another platform dependency: ios-deploy
  328. # Uncomment to use a custom checkout
  329. #ios.ios_deploy_dir = ../ios_deploy
  330. # Or specify URL and branch
  331. ios.ios_deploy_url = https://github.com/phonegap/ios-deploy
  332. ios.ios_deploy_branch = 1.10.0
  333.  
  334. # (bool) Whether or not to sign the code
  335. ios.codesign.allowed = false
  336.  
  337. # (str) Name of the certificate to use for signing the debug version
  338. # Get a list of available identities: buildozer ios list_identities
  339. #ios.codesign.debug = "iPhone Developer: <lastname> <firstname> (<hexstring>)"
  340.  
  341. # (str) The development team to use for signing the debug version
  342. #ios.codesign.development_team.debug = <hexstring>
  343.  
  344. # (str) Name of the certificate to use for signing the release version
  345. #ios.codesign.release = %(ios.codesign.debug)s
  346.  
  347. # (str) The development team to use for signing the release version
  348. #ios.codesign.development_team.release = <hexstring>
  349.  
  350. # (str) URL pointing to .ipa file to be installed
  351. # This option should be defined along with `display_image_url` and `full_size_image_url` options.
  352. #ios.manifest.app_url =
  353.  
  354. # (str) URL pointing to an icon (57x57px) to be displayed during download
  355. # This option should be defined along with `app_url` and `full_size_image_url` options.
  356. #ios.manifest.display_image_url =
  357.  
  358. # (str) URL pointing to a large icon (512x512px) to be used by iTunes
  359. # This option should be defined along with `app_url` and `display_image_url` options.
  360. #ios.manifest.full_size_image_url =
  361.  
  362.  
  363. [buildozer]
  364.  
  365. # (int) Log level (0 = error only, 1 = info, 2 = debug (with command output))
  366. log_level = 2
  367.  
  368. # (int) Display warning if buildozer is run as root (0 = False, 1 = True)
  369. warn_on_root = 1
  370.  
  371. # (str) Path to build artifact storage, absolute or relative to spec file
  372. # build_dir = ./.buildozer
  373.  
  374. # (str) Path to build output (i.e. .apk, .ipa) storage
  375. # bin_dir = ./bin
  376.  
  377. #    -----------------------------------------------------------------------------
  378. #    List as sections
  379. #
  380. #    You can define all the "list" as [section:key].
  381. #    Each line will be considered as a option to the list.
  382. #    Let's take [app] / source.exclude_patterns.
  383. #    Instead of doing:
  384. #
  385. #[app]
  386. #source.exclude_patterns = license,data/audio/*.wav,data/images/original/*
  387. #
  388. #    This can be translated into:
  389. #
  390. #[app:source.exclude_patterns]
  391. #license
  392. #data/audio/*.wav
  393. #data/images/original/*
  394. #
  395.  
  396.  
  397. #    -----------------------------------------------------------------------------
  398. #    Profiles
  399. #
  400. #    You can extend section / key with a profile
  401. #    For example, you want to deploy a demo version of your application without
  402. #    HD content. You could first change the title to add "(demo)" in the name
  403. #    and extend the excluded directories to remove the HD content.
  404. #
  405. #[app@demo]
  406. #title = My Application (demo)
  407. #
  408. #[app:source.exclude_patterns@demo]
  409. #images/hd/*
  410. #
  411. #    Then, invoke the command line with the "demo" profile:
  412. #
  413. #buildozer --profile demo android debug
  414.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement