Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Defaults #1512

Merged
merged 6 commits into from
Nov 6, 2022
Merged
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
6 changes: 3 additions & 3 deletions buildozer/default.spec
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ fullscreen = 0
#android.features = android.hardware.usb.host

# (int) Target Android API, should be as high as possible.
#android.api = 27
#android.api = 31

# (int) Minimum API your APK / AAB will support.
#android.minapi = 21
Expand Down Expand Up @@ -152,7 +152,7 @@ fullscreen = 0
#android.extra_manifest_application_arguments = ./src/android/extra_manifest_application_arguments.xml

# (str) Full name including package path of the Java class that implements Python Service
# use that parameter to set custom Java class instead of PythonService
# use that parameter to set custom Java class which extends PythonService
#android.service_class_name = org.kivy.android.PythonService

# (str) Android app theme, default is ok for Kivy-based app
Expand Down Expand Up @@ -192,7 +192,7 @@ fullscreen = 0
# (bool) Enable AndroidX support. Enable when 'android.gradle_dependencies'
# contains an 'androidx' package, or any package from Kotlin source.
# android.enable_androidx requires android.api >= 28
#android.enable_androidx = False
android.enable_androidx = True
RobertFlatt marked this conversation as resolved.
Show resolved Hide resolved

# (list) add java compile options
# this can for example be necessary when importing certain java libraries using the 'android.gradle_dependencies' option
Expand Down
2 changes: 1 addition & 1 deletion buildozer/targets/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from platform import uname
WSL = 'microsoft' in uname()[2].lower()

ANDROID_API = '27'
ANDROID_API = '31'
ANDROID_MINAPI = '21'
APACHE_ANT_VERSION = '1.9.4'

Expand Down
5 changes: 5 additions & 0 deletions tests/targets/test_android.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ def test_build_package(self):
("--android-apptheme", "@android:style/Theme.NoTitleBar"),
("--orientation", "portrait"),
("--window",),
('--enable-androidx',),
("debug",),
]
)
Expand Down Expand Up @@ -324,6 +325,7 @@ def test_numeric_version(self):
("--android-apptheme", "@android:style/Theme.NoTitleBar"),
("--orientation", "portrait"),
("--window",),
('--enable-androidx',),
("--numeric-version", "1234"),
("debug",),
]
Expand Down Expand Up @@ -359,6 +361,7 @@ def test_build_package_intent_filters(self):
('--android-apptheme', '@android:style/Theme.NoTitleBar'),
('--orientation', 'portrait'),
('--window',),
('--enable-androidx',),
('--intent-filters', os.path.realpath(filters_path)),
('debug',),
]
Expand All @@ -385,6 +388,7 @@ def test_allow_backup(self):
("--android-apptheme", "@android:style/Theme.NoTitleBar"),
("--orientation", "portrait"),
("--window",),
('--enable-androidx',),
("--allow-backup", "false"),
("debug",),
]
Expand All @@ -411,6 +415,7 @@ def test_backup_rules(self):
("--android-apptheme", "@android:style/Theme.NoTitleBar"),
("--orientation", "portrait"),
("--window",),
('--enable-androidx',),
("--backup-rules", "{root_dir}/backup_rules.xml".format(root_dir=buildozer.root_dir)),
("debug",),
]
Expand Down