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

feature: pickFile() is now implemented for windows #90

Merged

Conversation

pcprinz
Copy link

@pcprinz pcprinz commented Nov 25, 2024

pickFile() now opens the native windows file picker.
But the options differ from the existing options for the other platforms, since the windows file picker works different. The native Filepicker doesn't support MIME types but therfore filters the fileExtensions. Additionally the options also allow to set a pickerType, so the user can actually pick singeFiles, multipleFiles as well as a folder.

Everything is tested with the example app. No breaking changes for the other pickers

@birdofpreyru birdofpreyru changed the base branch from master to dev-v2.30 November 27, 2024 00:31
@birdofpreyru birdofpreyru merged commit ed07560 into birdofpreyru:dev-v2.30 Nov 27, 2024
@birdofpreyru
Copy link
Owner

birdofpreyru commented Nov 27, 2024

Hey @pcprinz , first of all — thanks for your PRs!
I am still on testing them & releasing the next library version.

Just for you information, the TS code update you did in this PR breaks New Arch / Codegen, at least for Android-builds, because it
Screenshot from 2024-11-27 16-59-10
that's because of pickerType: 'singleFile' | 'multipleFiles' | 'folder';, I guess.

No worries, though, I fixed it (4720052).

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