Skip to content

Commit

Permalink
update to extra_manifest_application_entry
Browse files Browse the repository at this point in the history
  • Loading branch information
dvjdjvu committed Dec 14, 2022
1 parent 5665e2e commit 28af497
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion buildozer/default.spec
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ fullscreen = 0

# (str) Extra xml to write directly inside the <manifest><application> element of AndroidManifest.xml
# use that parameter to provide a filename from where to load your custom XML code
#android.extra_manifest_application = ./src/android/extra_manifest_application.xml
#android.extra_manifest_application_entry = ./src/android/extra_manifest_application_entry.xml

# (str) Extra xml to write directly inside the <manifest><application> tag of AndroidManifest.xml
# use that parameter to provide a filename from where to load your custom XML arguments:
Expand Down
6 changes: 3 additions & 3 deletions buildozer/targets/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -956,10 +956,10 @@ def execute_build_package(self, build_cmd):
cmd.append('--extra-manifest-xml="{}"'.format(open(extra_manifest_xml, 'rt').read()))

# support for extra-manifest-application
extra_manifest_application = self.buildozer.config.getdefault(
'app', 'android.extra_manifest_application', '')
extra_manifest_application_entry = self.buildozer.config.getdefault(
'app', 'android.extra_manifest_application_entry', '')
if extra_manifest_application:
cmd.append('--extra-manifest-application="{}"'.format(open(extra_manifest_application, 'rt').read().replace('"', '\\"')))
cmd.append('--extra-manifest-application-entry="{}"'.format(open(extra_manifest_application_entry, 'rt').read().replace('"', '\\"')))

# support for extra-manifest-application-arguments
extra_manifest_application_arguments = self.buildozer.config.getdefault(
Expand Down

0 comments on commit 28af497

Please sign in to comment.