Skip to content
Open
Show file tree
Hide file tree
Changes from 3 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
7 changes: 7 additions & 0 deletions buildozer/default.spec
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,16 @@ fullscreen = 0
# (str) XML file to include as an intent filters in <activity> tag
#android.manifest.intent_filters =

# (str) XML file to include at the end of the <application> tag
#android.manifest.content_providers =

# (str) launchMode to set for the main activity
#android.manifest.launch_mode = standard

# (list) XML files to add to the src/main/res/xml subdirectory of the build
# such files are usually referenced in the manifest, e.g. to specifiy file paths for a content provider
#android.add_xml_resources =

# (list) Android additional libraries to copy into libs/armeabi
#android.add_libs_armeabi = libs/android/*.so
#android.add_libs_armeabi_v7a = libs/android-v7/*.so
Expand Down
14 changes: 14 additions & 0 deletions buildozer/targets/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,20 @@ def build_package(self):
build_cmd += [("--intent-filters", join(self.buildozer.root_dir,
intent_filters))]

# content providers
content_providers = config.getdefault(
'app', 'android.manifest.content_providers', '')
if content_providers:
build_cmd += [('--content-providers', join(self.buildozer.root_dir,
content_providers))]

# extra xml resources
add_xml_resources = config.getlist(
'app', 'android.add_xml_resources', [])
for xml_resource in add_xml_resources:
build_cmd += [('--add-xml-resource', join(self.buildozer.root_dir,
xml_resource))]

# activity launch mode
launch_mode = config.getdefault(
'app', 'android.manifest.launch_mode', '')
Expand Down