Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions buildozer/default.spec
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,20 @@ fullscreen = 0
# 2) android.add_assets = source_asset_path:destination_asset_relative_path
#android.add_assets =

# Copy/overwrite directories and its files in the android res directory in res/
# from within the "android_resources" directory, as in the example below.
# Example, create:
# android_resources/
# drawable/
# graphic.png
# anim/
# anim.xml
# xml/
# strings.xml
# And then, you must pass the "android_resources" directory path to the add_res argument
# For general documentation see https://developer.android.com/guide/topics/resources/providing-resources
# android.add_res = "path/to/android_resources"

# (list) Gradle dependencies to add
#android.gradle_dependencies =

Expand Down
5 changes: 5 additions & 0 deletions buildozer/targets/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,11 @@ def build_package(self):
meta = '{}={}'.format(key.strip(), value.strip())
build_cmd += [("--meta-data", meta)]

# add res
res = config.getdefault('app', 'android.add_res', '')
if res:
build_cmd += [("--add-res", join(self.buildozer.root_dir, res))]

# add extra Java jar files
add_jars = config.getlist('app', 'android.add_jars', [])
for pattern in add_jars:
Expand Down