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
5 changes: 5 additions & 0 deletions buildozer/default.spec
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ fullscreen = 0
# (list) Gradle dependencies to add
#android.gradle_dependencies =

# (bool) Enable the AndroidX support library when True, the default is False.
# When enabled, add a specific AndroidX package using android.gradle_dependencies
# AndroidX packages require android.api = 28 or greater
#android.enable_androidx = False

# (list) add java compile options
# this can for example be necessary when importing certain java libraries using the 'android.gradle_dependencies' option
# see https://developer.android.com/studio/write/java8-support for further information
Expand Down
5 changes: 5 additions & 0 deletions buildozer/targets/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -1157,6 +1157,11 @@ def build_package(self):
if wakelock:
build_cmd += [("--wakelock", )]

# AndroidX ?
enable_androidx = config.getbooldefault('app', 'android.enable_androidx', False)
if enable_androidx:
build_cmd += [("--enable-androidx", )]

# intent filters
intent_filters = config.getdefault(
'app', 'android.manifest.intent_filters', '')
Expand Down