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 file ops for file:// and document ops for content:// #1495

Merged
merged 3 commits into from Nov 3, 2020

Conversation

stuartmscott
Copy link
Member

Description:

This enables apps to access app-specific directories using the file:// scheme, whilst still allowing apps to access other directories using the Document API.

Checklist:

  • Tests included.
  • Lint and formatter run with no errors.
  • Tests all pass.

Copy link
Member

@andydotxyz andydotxyz left a comment

Choose a reason for hiding this comment

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

Just structural stuff, this is a great addition


char *str = getString(jni_env, ctx, type);
return strcmp(str, "vnd.android.document/directory") == 0;
}
Copy link
Member

Choose a reason for hiding this comment

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

I think we should log here that the URI scheme was not known - there will be no other errors logged to help figure such a corner case out.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup good idea, should this be log_fatal, or just log_info?

internal/driver/gomobile/android.c Outdated Show resolved Hide resolved
@stuartmscott stuartmscott merged commit 4566b50 into fyne-io:develop Nov 3, 2020
@stuartmscott stuartmscott deleted the androidfiles branch November 3, 2020 14:31
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