@capgo/capacitor-file-picker 8.2.0 → 8.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
# @capgo/capacitor-file-picker
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Let users pick files, images, videos and folders with the native pickers on iOS and Android, with a web fallback. Handle HEIC photos and copy picked files where you need them.
|
|
4
|
+
|
|
5
|
+
<a href="https://capgo.app/?ref=plugin_file_picker"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-file-picker" alt="Capgo - Instant updates for Capacitor" /></a>
|
|
3
6
|
|
|
4
7
|
<div align="center">
|
|
5
|
-
<
|
|
6
|
-
<h2><a href="https://capgo.app/
|
|
8
|
+
<p><b>Capgo</b>: open-source live updates for Ionic and Capacitor apps. Ship OTA fixes and features instantly, without waiting for app store review.</p>
|
|
9
|
+
<h2><a href="https://capgo.app/register/?ref=plugin_file_picker">➡️ Get started for free</a></h2>
|
|
10
|
+
<p>14-day unlimited free trial. No credit card required</p>
|
|
11
|
+
<p><a href="https://capgo.app/consulting/?ref=plugin_file_picker">Missing a feature? We'll build the plugin for you 💪</a></p>
|
|
7
12
|
</div>
|
|
8
13
|
|
|
9
|
-
|
|
14
|
+
<p align="center">
|
|
15
|
+
<img src="https://raw.githubusercontent.com/Cap-go/capacitor-file-picker/main/assets/github-social-preview.png" alt="@capgo/capacitor-file-picker for Capacitor apps" width="300" />
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
## Key features
|
|
19
|
+
|
|
20
|
+
- **Files**: `pickFiles()` picks one or more files of any type.
|
|
21
|
+
- **Media**: `pickImages()`, `pickVideos()` and `pickMedia()` open the photo library picker.
|
|
22
|
+
- **Folders**: `pickDirectory()` returns a directory on iOS and Android.
|
|
23
|
+
- **HEIC and copy**: `convertHeicToJpeg()` converts photos and `copyFile()` moves a picked file to a new location.
|
|
24
|
+
- **Picker events**: a `pickerDismissed` listener plus storage permission helpers.
|
|
25
|
+
- **Platforms**: iOS, Android and Web. Directory picking, HEIC conversion and file copy are native only.
|
|
10
26
|
|
|
11
27
|
## Why Capacitor File Picker?
|
|
12
28
|
|
|
@@ -11,7 +11,7 @@ import UniformTypeIdentifiers
|
|
|
11
11
|
*/
|
|
12
12
|
@objc(CapgoFilePickerPlugin)
|
|
13
13
|
public class CapgoFilePickerPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
14
|
-
private let pluginVersion: String = "8.2.
|
|
14
|
+
private let pluginVersion: String = "8.2.1"
|
|
15
15
|
public let identifier = "CapgoFilePickerPlugin"
|
|
16
16
|
public let jsName = "CapgoFilePicker"
|
|
17
17
|
public let pluginMethods: [CAPPluginMethod] = [
|
package/package.json
CHANGED