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

Add enable_androidx #1311

Merged
merged 2 commits into from
Apr 22, 2021
Merged

Add enable_androidx #1311

merged 2 commits into from
Apr 22, 2021

Conversation

RobertFlatt
Copy link
Contributor

Complement to kivy/python-for-android#2385 now merged into p4a develop.

Copy link
Member

@tshirtman tshirtman left a 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.

@@ -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
Copy link
Member

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

Suggested change
# android.enable_androidx requires android.api >= 28
# android.enable_androidx requires android.api >= 28

Copy link
Contributor Author

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.

buildozer/targets/android.py Show resolved Hide resolved
@allerter allerter mentioned this pull request Mar 31, 2021
@allerter
Copy link

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.")

@RobertFlatt
Copy link
Contributor Author

RobertFlatt commented Mar 31, 2021

Shouldn't there be a check for the target API level?

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".

@tshirtman tshirtman merged commit 6dcbe7a into kivy:master Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants