Skip to content

Commit

Permalink
Merge pull request #846 from pax0r/uses-library
Browse files Browse the repository at this point in the history
Support p4a uses-library argument
  • Loading branch information
AndreMiras authored Mar 29, 2019
2 parents dfd2ceb + 37d6a55 commit 4183428
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buildozer/default.spec
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ fullscreen = 0
# project.properties automatically.)
#android.library_references =

# (list) Android shared libraries which will be added to AndroidManifest.xml using <uses-library> tag
#android.uses_library =

# (str) Android logcat filters to use
#android.logcat_filters = *:S python:D

Expand Down
6 changes: 6 additions & 0 deletions buildozer/targets/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,12 @@ def execute_build_package(self, build_cmd):
cmd.append('--add-aar')
cmd.append(realpath(aar))

# support for uses-lib
uses_library = self.buildozer.config.getlist(
'app', 'android.uses_library', '')
for lib in uses_library:
cmd.append('--uses-library={}'.format(lib))

# support for gradle dependencies
gradle_dependencies = self.buildozer.config.getlist('app', 'android.gradle_dependencies', [])
for gradle_dependency in gradle_dependencies:
Expand Down

0 comments on commit 4183428

Please sign in to comment.