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

Use sys.getandroidapilevel for more robust Android detection #670

Merged
merged 1 commit into from
Apr 19, 2022
Merged

Use sys.getandroidapilevel for more robust Android detection #670

merged 1 commit into from
Apr 19, 2022

Conversation

rdb
Copy link
Contributor

@rdb rdb commented Mar 12, 2022

Currently plyer uses the presence of the ANDROID_ARGUMENT environment variable to detect Android. As of Python 3.7, there is a sys.getandroidapilevel that can be checked instead, which is more reliable since it does not require on a particular implementation detail of p4a.

@akshayaurora akshayaurora merged commit 2179cd0 into kivy:master Apr 19, 2022
@akshayaurora
Copy link
Member

akshayaurora commented Apr 19, 2022

@rdb thanks 👍

@rdb rdb deleted the robust-android-detection branch May 5, 2022 07:39
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.

None yet

2 participants