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

Removes broken and unneeded checks, now we can support additional permission syntaxes. #1549

Merged
merged 1 commit into from
Jan 23, 2023

Conversation

misl6
Copy link
Member

@misl6 misl6 commented Jan 22, 2023

Related python-for-android PR: kivy/python-for-android#2725

android.permissions now accepts all the syntaxes supported by python-for-android.

Removed broken and un-needed checks related to android permissions:

  • _get_available_permissions is looking for a file that does not exist anymore at the provided location, so everything is already considered "ok". Basically the check is already skipped.
  • Forcing the last component to be uppercase can lead to multiple issues.

In general, IMHO is better to leave the error-handling for Android-specific things to the Android toolchain (or to python-for-android if it makes sense), as these things change fast .

@misl6 misl6 requested a review from AndreMiras January 22, 2023 17:09
Copy link
Member

@AndreMiras AndreMiras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
One thing, the commit description says "Allow additional control around Android permissions", but I don't see the related change

@misl6 misl6 changed the title Allow additional control around Android permissions. Removes broken and un-needed checks. Removes broken and unneeded checks, now we can support additional permission syntaxes. Jan 23, 2023
@misl6
Copy link
Member Author

misl6 commented Jan 23, 2023

LGTM
One thing, the commit description says "Allow additional control around Android permissions", but I don't see the related change

Changed to "Removes broken and unneeded checks, now we can support additional permission syntaxes."
For the records: The broken and unneeded checks were preventing the chance to use the additional permission syntaxes.

@misl6 misl6 merged commit 7b6111a into kivy:master Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants