Guest User

Untitled

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