This repository was archived by the owner on Jan 14, 2021. It is now read-only.
Commit 6d6714b
Merge to master (#102)
* Added support for file types across platforms (#26)
* Added support for file types across platforms
- Added per platform file type support, so you can specify what kind of files you want the picker to support
- Updated iOS's picker to use the non-deprecated `UIDocumentPickerViewController`
- Minor tweaks, such as package updates
* Fixed an issue with the iOS implementation, where the returned path wasn't properly formatted/absolute, which in turn meant that the path wasn't valid as is.
* A few iOS specific improvements
* Get latest changes to master (#51)
* pull master into develop before merging back (#47)
* Resolved issues with referencing from NuGet package (#29)
Simplified the nuspec file to work with wildcards and fixed macOS assembly name.
Also added development NuGet feed to readme along with some other tweaks
* Project fixes (#35)
* fixed paths to NuGet packages folder; always relative to the .sln file
* converted samples solution file to VS 2017 and fixed "Deploy" flag for Android app
* ignore Android Resource designer generated files
# Conflicts:
# .gitignore
* changes automatically applied by VS 2017 when opening iOS project file
* Added issue template
* fixes crash in Xamarin.Forms sample when user doesn't select file; also added example code in README file (#50)
* fixed picking files from the download folder; on newer devices the document ID may not be a number, but the real filename prefixed with "raw:" (#49)
* Updated dependencies
* Revert "Fixed Path" (#65)
* Revert "Fixed Path (#54)"
* when opening files with the sample app, ignore if filename extension is uppercase or lowercase
* removed unused method DidPickDocumentPicker() in iOS implementation
* added troubleshooting chapter to readme with common errors and their solutions
* updated sample projects to use PackageReference to reference NuGet packages
* removed obsolete project property AndroidUseLatestPlatformSdk and set target framework to Android 9.0 (API 28)
* updated Plugin.FilePicker.UWP to use PackageReference
* removed obsolete property AndroidUseLatestPlatformSdk and target Android 9.0, in Plugin.FilePicker.Android project
* updated sample projects to use Xamarin.Forms 3.3.0 NuGet package
* updated UWP project to latest stable UWP NuGet package
* fixed Android sample project by re-adding Xamarin.Forms NuGet package
* added UWP sample project
* find correct view controller to present document picker, by finding currently presented view controller
* Android: return from task with Exception that was thrown during file picking
before that, the caller only got a null FileData object without knowing what happened
* Android: also pass exception to task when setting up picking
* iOS: pass exceptions in DocumentPicker handler to picker task
* renamed Forms project folder to a shorter name and renamed the only page to MainPage
* added try-catch to call to PickFile() in order to display exceptions from picking
* delete Resource.designer.cs file from repository that is being regenerated by the compiler
* converted Xamarin.Forms sample project to use Project Sdk style .csproj proect file
* added second button to samples to pick image files
* added check if Android permission was granted
* fix android mime types implementation (#85)
(cherry picked from commit 04a5292)
* added explanation for requesting permissions on Android (#89)
* fixed exception when trying to pick a downloaded file; the Android DownloadManager won't return an actual file path; downloaded files can only be resolved using ContentResolver (#86)
* added solution folders to organize projects
* added UTType.Image file types value for picking on iOS
* Forms sample project can use .NET Standard 1.0; no need for version 2.0, which might not be installed
* added README.md for samples folder
* added Plugin.Permissions NuGet package to sample project, in order to check for permissions
* added checking Storage permission when on Android device
* iOS: simplified getting filename from pathname
* iOS: fixed getting pathname from FileUrl (fix of PR #54 that was reverted in PR #65); tested on iOS 11 device
* added documentation about FileData class to README
* Fix FileName for Mac
FileName on Mac returned the path instead.
* Fix OpenFile for Mac
* fixed getting path from OneDrive (#79)
the content provider only returned a relative filename in the data column, so it's better to use the content:// uri to access the file
* fixed indentation of release notes text in .nuspec - it should look nice on the nuget.org page now
* Android: file bytes are not read directly after picking, but only when FileData.DataArray is accessed or FileData.GetStream() is called; this fixes accessing large files that wouldn't fit in the device's memory, e.g. videos (#38)
* iOS: also removed getting data bytes when it's not used in FilePickerEventArgs
* added a troubleshooting section to explain why picked files on iOS may be gone after some time (#87, #74)
* added SourceLink integration, see https://github.com/dotnet/sourcelink
* added documentation for method PickFile(), in order to document how to use allowedTypes (#59)
* Revert "added SourceLink integration, see https://github.com/dotnet/sourcelink"
This reverts commit 1ca5796.
* documented classes in Plugin.FilePicker.Abstractions and fixed line endings1 parent ce173b2 commit 6d6714b
File tree
10 files changed
+191
-90
lines changed- nuget
- src/Plugin.FilePicker
- Plugin.FilePicker.Abstractions
- Plugin.FilePicker.Android
- Plugin.FilePicker.Mac
- Plugin.FilePicker.iOS
10 files changed
+191
-90
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
58 | 75 | | |
59 | 76 | | |
60 | 77 | | |
| |||
119 | 136 | | |
120 | 137 | | |
121 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
122 | 150 | | |
123 | 151 | | |
124 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
Lines changed: 71 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
12 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
13 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
14 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
15 | 34 | | |
16 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
17 | 39 | | |
18 | | - | |
| 40 | + | |
| 41 | + | |
19 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
20 | 58 | | |
21 | 59 | | |
22 | 60 | | |
| |||
40 | 78 | | |
41 | 79 | | |
42 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
43 | 87 | | |
44 | 88 | | |
45 | 89 | | |
| |||
52 | 96 | | |
53 | 97 | | |
54 | 98 | | |
55 | | - | |
| 99 | + | |
56 | 100 | | |
57 | 101 | | |
58 | 102 | | |
| |||
74 | 118 | | |
75 | 119 | | |
76 | 120 | | |
77 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
78 | 125 | | |
79 | 126 | | |
80 | 127 | | |
| |||
96 | 143 | | |
97 | 144 | | |
98 | 145 | | |
99 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
100 | 149 | | |
101 | 150 | | |
102 | 151 | | |
| |||
107 | 156 | | |
108 | 157 | | |
109 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
110 | 163 | | |
111 | 164 | | |
112 | 165 | | |
113 | 166 | | |
114 | 167 | | |
115 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
116 | 175 | | |
117 | 176 | | |
118 | 177 | | |
| 178 | + | |
119 | 179 | | |
| 180 | + | |
120 | 181 | | |
121 | 182 | | |
122 | 183 | | |
123 | 184 | | |
124 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
125 | 189 | | |
126 | 190 | | |
127 | 191 | | |
128 | 192 | | |
| 193 | + | |
129 | 194 | | |
130 | | - | |
| 195 | + | |
Lines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | | - | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
13 | | - | |
| 16 | + | |
14 | 17 | | |
15 | | - | |
16 | 18 | | |
17 | 19 | | |
18 | | - | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | | - | |
24 | | - | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | | - | |
30 | | - | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | | - | |
| 37 | + | |
Lines changed: 55 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
17 | 60 | | |
18 | | - | |
| 61 | + | |
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 62 | | |
68 | 63 | | |
69 | 64 | | |
70 | | - | |
| 65 | + | |
71 | 66 | | |
72 | 67 | | |
73 | 68 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
| |||
0 commit comments