Advertisement
tubbadu

buildozer.spec

Mar 21st, 2022
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.30 KB | None | 0 0
  1. [app]
  2.  
  3. # (str) Title of your application
  4. title = tubbadu
  5.  
  6. # (str) Package name
  7. package.name = tubbadu
  8.  
  9. # (str) Package domain (needed for android/ios packaging)
  10. package.domain = org.tubbadu
  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
  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. # Do not prefix with './'
  29. #source.exclude_patterns = license,images/*/*.jpg
  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,kivy
  41.  
  42. # (str) Custom source folders for requirements
  43. # Sets custom source for any requirements with recipes
  44. # requirements.source.kivy = ../../kivy
  45.  
  46. # (str) Presplash of the application
  47. #presplash.filename = %(source.dir)s/data/presplash.png
  48.  
  49. # (str) Icon of the application
  50. #icon.filename = %(source.dir)s/data/icon.png
  51.  
  52. # (str) Supported orientation (one of landscape, sensorLandscape, portrait or all)
  53. orientation = portrait
  54.  
  55. # (list) List of service to declare
  56. #services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY
  57.  
  58. #
  59. # OSX Specific
  60. #
  61.  
  62. #
  63. # author = © Copyright Info
  64.  
  65. # change the major version of python used by the app
  66. osx.python_version = 3
  67.  
  68. # Kivy version to use
  69. osx.kivy_version = 1.9.1
  70.  
  71. #
  72. # Android specific
  73. #
  74.  
  75. # (bool) Indicate if the application should be fullscreen or not
  76. fullscreen = 0
  77.  
  78. # (string) Presplash background color (for android toolchain)
  79. # Supported formats are: #RRGGBB #AARRGGBB or one of the following names:
  80. # red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray,
  81. # darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,
  82. # olive, purple, silver, teal.
  83. #android.presplash_color = #FFFFFF
  84.  
  85. # (string) Presplash animation using Lottie format.
  86. # see https://lottiefiles.com/ for examples and https://airbnb.design/lottie/
  87. # for general documentation.
  88. # Lottie files can be created using various tools, like Adobe After Effect or Synfig.
  89. #android.presplash_lottie = "path/to/lottie/file.json"
  90.  
  91. # (str) Adaptive icon of the application (used if Android API level is 26+ at runtime)
  92. #icon.adaptive_foreground.filename = %(source.dir)s/data/icon_fg.png
  93. #icon.adaptive_background.filename = %(source.dir)s/data/icon_bg.png
  94.  
  95. # (list) Permissions
  96. #android.permissions = INTERNET
  97.  
  98. # (list) features (adds uses-feature -tags to manifest)
  99. #android.features = android.hardware.usb.host
  100.  
  101. # (int) Target Android API, should be as high as possible.
  102. #android.api = 27
  103.  
  104. # (int) Minimum API your APK / AAB will support.
  105. #android.minapi = 21
  106.  
  107. # (int) Android SDK version to use
  108. #android.sdk = 20
  109.  
  110. # (str) Android NDK version to use
  111. #android.ndk = 19b
  112.  
  113. # (int) Android NDK API to use. This is the minimum API your app will support, it should usually match android.minapi.
  114. #android.ndk_api = 21
  115.  
  116. # (bool) Use --private data storage (True) or --dir public storage (False)
  117. #android.private_storage = True
  118.  
  119. # (str) Android NDK directory (if empty, it will be automatically downloaded.)
  120. #android.ndk_path =
  121.  
  122. # (str) Android SDK directory (if empty, it will be automatically downloaded.)
  123. android.sdk_path =/home/tubbadu/Android/Sdk
  124.  
  125. # (str) ANT directory (if empty, it will be automatically downloaded.)
  126. #android.ant_path =
  127.  
  128. # (bool) If True, then skip trying to update the Android sdk
  129. # This can be useful to avoid excess Internet downloads or save time
  130. # when an update is due and you just want to test/build your package
  131. # android.skip_update = False
  132.  
  133. # (bool) If True, then automatically accept SDK license
  134. # agreements. This is intended for automation only. If set to False,
  135. # the default, you will be shown the license when first running
  136. # buildozer.
  137. #android.accept_sdk_license = True
  138.  
  139. # (str) Android entry point, default is ok for Kivy-based app
  140. #android.entrypoint = org.kivy.android.PythonActivity
  141.  
  142. # (str) Full name including package path of the Java class that implements Android Activity
  143. # use that parameter together with android.entrypoint to set custom Java class instead of PythonActivity
  144. #android.activity_class_name = org.kivy.android.PythonActivity
  145.  
  146. # (str) Extra xml to write directly inside the <manifest> element of AndroidManifest.xml
  147. # use that parameter to provide a filename from where to load your custom XML code
  148. #android.extra_manifest_xml = ./src/android/extra_manifest.xml
  149.  
  150. # (str) Extra xml to write directly inside the <manifest><application> tag of AndroidManifest.xml
  151. # use that parameter to provide a filename from where to load your custom XML arguments:
  152. #android.extra_manifest_application_arguments = ./src/android/extra_manifest_application_arguments.xml
  153.  
  154. # (str) Full name including package path of the Java class that implements Python Service
  155. # use that parameter to set custom Java class instead of PythonService
  156. #android.service_class_name = org.kivy.android.PythonService
  157.  
  158. # (str) Android app theme, default is ok for Kivy-based app
  159. # android.apptheme = "@android:style/Theme.NoTitleBar"
  160.  
  161. # (list) Pattern to whitelist for the whole project
  162. #android.whitelist =
  163.  
  164. # (str) Path to a custom whitelist file
  165. #android.whitelist_src =
  166.  
  167. # (str) Path to a custom blacklist file
  168. #android.blacklist_src =
  169.  
  170. # (list) List of Java .jar files to add to the libs so that pyjnius can access
  171. # their classes. Don't add jars that you do not need, since extra jars can slow
  172. # down the build process. Allows wildcards matching, for example:
  173. # OUYA-ODK/libs/*.jar
  174. #android.add_jars = foo.jar,bar.jar,path/to/more/*.jar
  175.  
  176. # (list) List of Java files to add to the android project (can be java or a
  177. # directory containing the files)
  178. #android.add_src =
  179.  
  180. # (list) Android AAR archives to add
  181. #android.add_aars =
  182.  
  183. # (list) Put these files or directories in the apk assets directory.
  184. # Either form may be used, and assets need not be in 'source.include_exts'.
  185. # 1) android.add_assets = source_asset_relative_path
  186. # 2) android.add_assets = source_asset_path:destination_asset_relative_path
  187. #android.add_assets =
  188.  
  189. # (list) Gradle dependencies to add
  190. #android.gradle_dependencies =
  191.  
  192. # (bool) Enable AndroidX support. Enable when 'android.gradle_dependencies'
  193. # contains an 'androidx' package, or any package from Kotlin source.
  194. # android.enable_androidx requires android.api >= 28
  195. #android.enable_androidx = False
  196.  
  197. # (list) add java compile options
  198. # this can for example be necessary when importing certain java libraries using the 'android.gradle_dependencies' option
  199. # see https://developer.android.com/studio/write/java8-support for further information
  200. # android.add_compile_options = "sourceCompatibility = 1.8", "targetCompatibility = 1.8"
  201.  
  202. # (list) Gradle repositories to add {can be necessary for some android.gradle_dependencies}
  203. # please enclose in double quotes
  204. # e.g. android.gradle_repositories = "maven { url 'https://kotlin.bintray.com/ktor' }"
  205. #android.add_gradle_repositories =
  206.  
  207. # (list) packaging options to add
  208. # see https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.PackagingOptions.html
  209. # can be necessary to solve conflicts in gradle_dependencies
  210. # please enclose in double quotes
  211. # e.g. android.add_packaging_options = "exclude 'META-INF/common.kotlin_module'", "exclude 'META-INF/*.kotlin_module'"
  212. #android.add_packaging_options =
  213.  
  214. # (list) Java classes to add as activities to the manifest.
  215. #android.add_activities = com.example.ExampleActivity
  216.  
  217. # (str) OUYA Console category. Should be one of GAME or APP
  218. # If you leave this blank, OUYA support will not be enabled
  219. #android.ouya.category = GAME
  220.  
  221. # (str) Filename of OUYA Console icon. It must be a 732x412 png image.
  222. #android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png
  223.  
  224. # (str) XML file to include as an intent filters in <activity> tag
  225. #android.manifest.intent_filters =
  226.  
  227. # (str) launchMode to set for the main activity
  228. #android.manifest.launch_mode = standard
  229.  
  230. # (list) Android additional libraries to copy into libs/armeabi
  231. #android.add_libs_armeabi = libs/android/*.so
  232. #android.add_libs_armeabi_v7a = libs/android-v7/*.so
  233. #android.add_libs_arm64_v8a = libs/android-v8/*.so
  234. #android.add_libs_x86 = libs/android-x86/*.so
  235. #android.add_libs_mips = libs/android-mips/*.so
  236.  
  237. # (bool) Indicate whether the screen should stay on
  238. # Don't forget to add the WAKE_LOCK permission if you set this to True
  239. #android.wakelock = False
  240.  
  241. # (list) Android application meta-data to set (key=value format)
  242. #android.meta_data =
  243.  
  244. # (list) Android library project to add (will be added in the
  245. # project.properties automatically.)
  246. #android.library_references =
  247.  
  248. # (list) Android shared libraries which will be added to AndroidManifest.xml using <uses-library> tag
  249. #android.uses_library =
  250.  
  251. # (str) Android logcat filters to use
  252. #android.logcat_filters = *:S python:D
  253.  
  254. # (bool) Android logcat only display log for activity's pid
  255. #android.logcat_pid_only = False
  256.  
  257. # (str) Android additional adb arguments
  258. #android.adb_args = -H host.docker.internal
  259.  
  260. # (bool) Copy library instead of making a libpymodules.so
  261. #android.copy_libs = 1
  262.  
  263. # (list) The Android archs to build for, choices: armeabi-v7a, arm64-v8a, x86, x86_64
  264. # In past, was `android.arch` as we weren't supporting builds for multiple archs at the same time.
  265. android.archs = arm64-v8a, armeabi-v7a
  266.  
  267. # (int) overrides automatic versionCode computation (used in build.gradle)
  268. # this is not the same as app version and should only be edited if you know what you're doing
  269. # android.numeric_version = 1
  270.  
  271. # (bool) enables Android auto backup feature (Android API >=23)
  272. android.allow_backup = True
  273.  
  274. # (str) XML file for custom backup rules (see official auto backup documentation)
  275. # android.backup_rules =
  276.  
  277. # (str) If you need to insert variables into your AndroidManifest.xml file,
  278. # you can do so with the manifestPlaceholders property.
  279. # This property takes a map of key-value pairs. (via a string)
  280. # Usage example : android.manifest_placeholders = [myCustomUrl:\"org.kivy.customurl\"]
  281. # android.manifest_placeholders = [:]
  282.  
  283. # (bool) disables the compilation of py to pyc/pyo files when packaging
  284. # android.no-compile-pyo = True
  285.  
  286. # (str) The format used to package the app for release mode (aab or apk).
  287. # android.release_artifact = aab
  288.  
  289. #
  290. # Python for android (p4a) specific
  291. #
  292.  
  293. # (str) python-for-android URL to use for checkout
  294. #p4a.url =
  295.  
  296. # (str) python-for-android fork to use in case if p4a.url is not specified, defaults to upstream (kivy)
  297. #p4a.fork = kivy
  298.  
  299. # (str) python-for-android branch to use, defaults to master
  300. #p4a.branch = master
  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:
  338. ios.kivy_ios_url = https://github.com/kivy/kivy-ios
  339. ios.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
  345. ios.ios_deploy_url = https://github.com/phonegap/ios-deploy
  346. ios.ios_deploy_branch = 1.10.0
  347.  
  348. # (bool) Whether or not to sign the code
  349. ios.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))
  380. log_level = 2
  381.  
  382. # (int) Display warning if buildozer is run as root (0 = False, 1 = True)
  383. warn_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
  428.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement