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 permissions callback hook. #83

Merged
merged 5 commits into from
Jan 31, 2024
Merged

Add permissions callback hook. #83

merged 5 commits into from
Jan 31, 2024

Conversation

freakboy3742
Copy link
Member

In order to resolve permissions requests, we need a callback hook on the Java side of an Android app.

Also bumps the appcompat version to ensure availability of the CurrentContext helper, needed to evaluate permissions.

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

Co-authored-by: Malcolm Smith <smith@chaquo.com>
@@ -13,4 +13,6 @@ public interface IPythonApp {
void onConfigurationChanged(Configuration newConfig);
boolean onOptionsItemSelected(MenuItem menuitem);
boolean onPrepareOptionsMenu(Menu menu);
// There's no need to add any more methods to this interface, as the Python
Copy link
Member

Choose a reason for hiding this comment

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

Oops, pre-commit whitespace failure.

Suggested change
// There's no need to add any more methods to this interface, as the Python
// There's no need to add any more methods to this interface, as the Python

@freakboy3742
Copy link
Member Author

Queuing for re-review, as I've added the file provider declaration to this PR.

@freakboy3742
Copy link
Member Author

I've merged this with the changes from #82 that landed. As a result, this PR should be mergable without any risk to main usage of briefcase; and when it has been merged, beeware/toga#2353 should pass.

@mhsmith mhsmith merged commit c7e486c into main Jan 31, 2024
16 checks passed
@freakboy3742 freakboy3742 deleted the permissions branch January 31, 2024 22:11
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.

2 participants