-
Notifications
You must be signed in to change notification settings - Fork 520
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
Add enable_androidx #1311
Add enable_androidx #1311
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
running pep8
(or rather pycodestyle
) localy on this module would help make sure what makes the CI unhappy, but i think it's worth trying the trailing space for a start.
buildozer/default.spec
Outdated
@@ -162,6 +162,11 @@ fullscreen = 0 | |||
# (list) Gradle dependencies to add | |||
#android.gradle_dependencies = | |||
|
|||
# (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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe pep8 is unhappy about the trailing space
# android.enable_androidx requires android.api >= 28 | |
# android.enable_androidx requires android.api >= 28 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. It was trailing whitespace.
Shouldn't there be a check for the target API level? It could help users avoid unhelpful errors later in the build process. if int(self.android_api) < 28:
raise BuildozerException("android.enable_androidx requires android.api >= 28.") |
I expect there could be, but the current documentation approach works as shown by the existence of this proposal. The same issue came up with the p4a PR review kivy/python-for-android#2385 (review) where the review comment was "I guess it doesn't really matter". |
Complement to kivy/python-for-android#2385 now merged into p4a develop.