Skip to content

Conversation

mikoto2000
Copy link
Contributor

This is part of #1494. (Implementation of save dialog and save text file for Android)

I implemented the save dialog for the dialog plugin and save_text_file for the fs plugin.

As mentioned in the following two comments, saving files on Android requires the use of activity.getContentResolver().openOutputStream(uri), so I use Uri instead of file path in the communication between the app and the plugin.

Also, since the fs plugin requires the use of activity.getContentResolver().openOutputStream(uri), I've added an Android implementation to the fs plugin.

tauri-plugin-dialog-android_002

@mikoto2000 mikoto2000 requested a review from a team as a code owner July 27, 2024 02:13
@mikoto2000 mikoto2000 force-pushed the save-file-on-android branch 2 times, most recently from 3414030 to e616ef9 Compare August 2, 2024 16:01
@mikoto2000 mikoto2000 changed the title Save file on android feat(dialog, fs): Save file on android Aug 2, 2024
@mikoto2000 mikoto2000 force-pushed the save-file-on-android branch from e616ef9 to df6d162 Compare August 10, 2024 14:52
@lucasfernog
Copy link
Member

Can you open separate PRs for each plugin change? Would be a lot easier to review / request changes / test ❤️

@mikoto2000
Copy link
Contributor Author

OK. I separate this PR.

@mikoto2000
Copy link
Contributor Author

@lucasfernog
I Separated this PR to #1657 and #1658.

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