-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Share - Android Updates #1253
Share - Android Updates #1253
Conversation
Updated to new android file permission requirements when sharing. You will need to override the android_share_paths.xml(via AndroidShareImpl.uno) if you would like to add custom paths of folders you would like to give share access to.
Source/Fuse.Share/ShareModule.uno
Outdated
@@ -144,8 +144,8 @@ namespace Fuse.Share | |||
{ | |||
var description = args.Length>2 ? "" + args[2] : ""; | |||
if defined(android) | |||
{ | |||
AndroidShareImpl.ShareFile("file://" + path, type, description); | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I doubt you meant to add this tab...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol, my bad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please squash the fix into the right commit :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know what you mean; what is the "right commit", please explain.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We try to avoid introducing a mistake in one commit and then fixing it in a later. Instead, you should rebase your branch so this white-space isn't inserted in the first place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh my gosh, sigh, okay...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There you go, if I rebase to my original commit, I think this PR will close automatically.
:/ |
It can't create or copy the java file? |
I just tried an |
Ok, figured it out, its sorted. |
I test it and solve the crash when I try to share a image! |
I've added the description to the subject of an email if sharing to email app or any app that uses the subject field Fixed android only condition + removed a tab typo :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me!
Updated to new android file permission requirements when sharing.
You will need to override the android_share_paths.xml(via AndroidShareImpl.uno) if you would like to add custom paths of folders you would like to give share access to.
https://medium.com/@andrewq/hello-world-eaa996c594b7
This PR contains: