Commit Graph

65 Commits

Author SHA1 Message Date
Miguel Ruivo b690afe33e Adds missing extension to name property of PlatformFile (#444) 2020-10-22 11:07:24 +01:00
Miguel Ruivo 626ab4d4a8 Adds visibility queries to support apps targeting Android 11 and later (#440) 2020-10-20 20:28:16 +01:00
Miguel Ruivo 000f05833e Updates iOS media picker to launch in app context (instead of modal) 2020-10-20 11:19:20 +01:00
Miguel Ruivo a4d5478669 Fixes #431
Fixes an issue on iOS 14, where canceling with swipe gestures, could result in cancel event not being dispatched.
2020-10-19 21:04:37 +01:00
Miguel Ruivo b2668dbbd0 Fixes #425 and updates iOS to use NSDocumentDirectory on iOS 12 or lower 2020-10-07 15:16:56 +01:00
Miguel Ruivo 1479f8a8cd Fixes iOS 14 media picker (image & video) (#405, #407) 2020-09-29 18:03:09 +01:00
Miguel Ruivo d2ecbd3d30 Fixes NPE when activity is destroyed by OS (#402)
Closes #402.
2020-09-28 21:41:59 +01:00
Miguel Ruivo 0609cae84a Fixes directory pick on Linux 2020-09-28 13:45:17 +01:00
Miguel Ruivo f731f4ae26 Fixes out of memory issue on some devices when picking big files (#392) 2020-09-25 18:25:01 +01:00
Miguel Ruivo b46422a195 Fixes multi-pick example on README 2020-09-25 15:28:01 +01:00
Miguel Ruivo 9aa951b4ad Fixes conditional imports for backwards compatibility with Xcode 11 2020-09-25 15:24:12 +01:00
Miguel Ruivo ba19a7eccf Adds mobile Safari support (Web) and conditional imports for backwards compatibility with Xcode 11 (iOS) 2020-09-24 21:59:18 +01:00
Miguel Ruivo acf3f1b248 Addresses an issue that could prevent iOS 14 users from accessing media data 2020-09-23 16:08:42 +01:00
Miguel Ruivo 346caf94d9 Fixes README screenshots 2020-09-23 10:30:48 +01:00
Miguel Ruivo 24b4337d39 Adds PHPickerController support for iOS 14 or later
Updates picker to use new PHPickerController for both single and multi media (image/video) picks (iOS 14 and above only).
2020-09-23 10:23:38 +01:00
Miguel Ruivo 4da8c0f180 Updates docs 2020-09-11 18:52:07 +01:00
Miguel Ruivo 1239c39113 Unifies all platforms in a single plugin with addition of new features 2020-09-11 18:52:07 +01:00
Miguel Ruivo 93b32ebedd Web support
Splits the package into:
- file_picker (io);
- file_picker_web (web);
- file_picker_interface — shared interface to be used with all file_picker implementations;
2020-06-11 19:29:13 +01:00
Miguel Ruivo b1f8cd6064 Allow picking directory path
Adds support for picking directory paths on both iOS & Android through getDirectoryPath() method.
2020-06-04 22:49:39 +01:00
Miguel Ruivo 02b3056a1e Adds temporary workaround due to Flutter issue #49364 2020-05-04 23:03:57 +01:00
Miguel Ruivo 030a34d72c Adds clearTemporaryFiles() method to explicitly remove cached files
- Adds Android implementation of clearTemporaryFiles();
- Adds iOS implementation of clearTemporaryFiles();
2020-05-01 17:49:35 +01:00
Miguel Ruivo 29c95c6b27 Updates podspec to use only PhotoGallery from DKImagePickerController 2020-04-29 23:52:50 +01:00
Miguel Ruivo 43a27cd117 Refactors CUSTOM to custom on getFile() 2020-04-28 10:30:59 +01:00
Miguel Ruivo 4b1c047581 Adds FileType.media for picking both images & video at same time 2020-04-27 22:25:57 +01:00
Miguel Ruivo 6afd2aa1a8 Replaces BSImagePicker with DKImagePickerController for multi picks of Photos app on iOS (#233) 2020-04-26 21:47:49 +01:00
Miguel Ruivo 7d6bffd692 Adds support for picking remote images on iOS (multi-picking from Gallery) 2020-04-25 19:00:23 +01:00
Miguel Ruivo d94aaaac30 Prevents a crash when a file can't be resolved on Android (#221) 2020-04-20 00:06:04 +01:00
Miguel Ruivo c13124f9bb Addresses an issue with plugin calls on Go (Desktop) (#241) 2020-04-17 13:26:15 +01:00
Miguel Ruivo d67b369715 Updates GO (Desktop) to support multiple extension filters 2020-04-08 12:45:06 +01:00
Miguel Ruivo 8fdecd6b8b Addresses an issue that could result in permission handler resolving requests from other activities 2020-04-07 18:30:04 +01:00
Miguel Ruivo 0741603151 Adds multiple file extensions support (iOS) and updates channel name 2020-04-05 23:06:48 +01:00
Miguel Ruivo 8eb61af343 Fixes (#200) and other minor improvements
- Fixes an issue that could result in a crash when selecting files (with repeated taps) from 3rd party remote providers (Google Drive, Dropbox etc.);
- Go: Updates channel name;
- Adds check that ensures that you one uses `FileType.custom` when providing a custom file extension filter;
2020-03-29 23:23:17 +01:00
Miguel Ruivo 5e3bd61bf3 Updates MethodChannel name on iOS 2020-03-15 16:55:43 +00:00
Miguel Ruivo cabddf7790 Temporary workaround for #49365 (Flutter)
Adds temporary workaround for (#49365)(https://github.com/flutter/flutter/issues/49365) until 1.14.6 lands on stable channel.
2020-03-15 14:23:41 +00:00
Miguel Ruivo a9cc55f5f5 Android V2 embedding
- Adds support for Android V2 embedding;
- Refactors FileType to match camelCase enum Dart guideline;
2020-03-14 17:32:05 +00:00
Miguel Ruivo b68ee11c6a ## 1.4.3+1
Updates dependencies
2019-12-18 10:49:02 +00:00
Miguel Ruivo c99e22e958 Fix #171
Fixes an issue that could result in a crash when tapping multiple times in the same media file while picking, on some iOS devices.
2019-11-20 00:48:53 +00:00
Miguel Ruivo 23934697c1 Update go-flutter dependencies (#162) 2019-11-17 14:11:01 +00:00
Miguel Ruivo e9f180ae01
see changelog (v1.4.2)
* Better handling on Android of buggy file managers that return no intent when canceling the file selection even though it returns Activity.RESULT_OK (#111)

* removes deprecated Android SDK code and fixes an issue that could prevent some downloaded files from being picked

* adds getMultiFile and prevents UI blocking when picking large remote files

* updates readme file

* fixes an issue that could prevent internal storage files from being properly picked

* fixes an issue that could result in a crash when picking video files on iOS 13 or above and updates go-flutter version
2019-09-24 10:59:01 +01:00
Miguel Ruivo b4524e3ee9 see changelog (v1.4.1)
* Better handling on Android of buggy file managers that return no intent when canceling the file selection even though it returns Activity.RESULT_OK (#111)

* removes deprecated Android SDK code and fixes an issue that could prevent some downloaded files from being picked

* adds getMultiFile and prevents UI blocking when picking large remote files

* updates readme file

* fixes an issue that could prevent internal storage files from being properly picked

* fixes #126
2019-09-17 10:16:41 +01:00
Miguel Ruivo a9eb2abbb9
see changelog (v1.4.0+1)
* Better handling on Android of buggy file managers that return no intent when canceling the file selection even though it returns Activity.RESULT_OK (#111)

* removes deprecated Android SDK code and fixes an issue that could prevent some downloaded files from being picked

* adds getMultiFile and prevents UI blocking when picking large remote files

* updates readme file

* fixes an issue that could prevent internal storage files from being properly picked
2019-09-02 13:20:23 +01:00
Miguel Ruivo f502423ab2 see changelog (v1.4.0)
* Better handling on Android of buggy file managers that return no intent when canceling the file selection even though it returns Activity.RESULT_OK (#111)

* Add file_picker Go support. (#132)

* Add file_picker Go support.

Originally written by @chunhunghan, cleaned up and fixed for MacOS by Geert-Johan Riemer.

Co-authored-by: chunhunghan <chunhunghan@gmail.com>

* Add improved instructions to go/README.md

* removes deprecated Android SDK code and fixes an issue that could prevent some downloaded files from being picked

* adds getMultiFile and prevents UI blocking when picking large remote files

* updates readme file
2019-08-31 15:18:04 +01:00
Miguel Ruivo 3f67653fed
Fixes #104 (#109) 2019-07-16 01:19:58 +01:00
Miguel Ruivo c8f5d4fe69 see changelog (1.3.7) (#102) 2019-06-24 11:12:58 +01:00
Miguel Ruivo b72483dc66
Adds the document picker delegate for versions below iOS 11 (#87)
* If file not choosen getFile() should return null

* minor fix

* fixes an issue where sometimes getFilePath could return a List instead of a String

* minor fixes

* Update README.md

* Fix for background activities trying to register the plugin (#66)

* Beta (#55)

* If picker is canceled in `getFile()`, it should return `null`

* Beta (#60)

* Added a check to registerWith to prevent background flutter view from trying to register the plugin, as there won't be any activity.

* 1.3.3 > 1.3.4

* removes a build.gradle depdency that should't have been added in the last commit

* Adds the document picker delegate for versions below iOS 11
2019-05-29 14:02:26 +01:00
Miguel Ruivo 31fe52d9fa
Beta (#73)
* If file not choosen getFile() should return null

* minor fix

* fixes an issue where sometimes getFilePath could return a List instead of a String

* minor fixes

* Update README.md

* Fix for background activities trying to register the plugin (#66)

* Beta (#55)

* If picker is canceled in `getFile()`, it should return `null`

* Beta (#60)

* Added a check to registerWith to prevent background flutter view from trying to register the plugin, as there won't be any activity.

* 1.3.3 > 1.3.4

* removes a build.gradle depdency that should't have been added in the last commit
2019-04-21 02:08:58 +01:00
Miguel Ruivo 7751df32ad
1.3.3 > 1.3.4 (#71)
* If file not choosen getFile() should return null

* minor fix

* fixes an issue where sometimes getFilePath could return a List instead of a String

* minor fixes

* Update README.md

* Fix for background activities trying to register the plugin (#66)

* Beta (#55)

* If picker is canceled in `getFile()`, it should return `null`

* Beta (#60)

* Added a check to registerWith to prevent background flutter view from trying to register the plugin, as there won't be any activity.

* 1.3.3 > 1.3.4
2019-04-20 17:21:19 +01:00
Miguel Ruivo 8f6c488fb4 Beta (#60) 2019-03-24 13:39:43 +00:00
Miguel Ruivo 43796d2a21
Beta (#55)
* If picker is canceled in `getFile()`, it should return `null`
2019-03-16 12:18:10 +00:00
Miguel Ruivo f4c718608f minor fix on Android 2019-03-13 11:48:00 +00:00