@capgo/capacitor-file-picker 8.1.11 → 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
- <a href="https://capgo.app/"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-file-picker" alt="Capgo - Instant updates for Capacitor" /></a>
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
- <h2><a href="https://capgo.app/?ref=plugin_file_picker"> ➡️ Get Instant updates for your App with Capgo</a></h2>
6
- <h2><a href="https://capgo.app/consulting/?ref=plugin_file_picker"> Missing a feature? We'll build the plugin for you 💪</a></h2>
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
- File picker Capacitor plugin - Pick files, images, videos, and directories
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
 
@@ -50,7 +50,7 @@ import org.json.JSONException;
50
50
  )
51
51
  public class CapgoFilePickerPlugin extends Plugin {
52
52
 
53
- private final String pluginVersion = "8.1.11";
53
+ private final String pluginVersion = "8.2.1";
54
54
  private boolean readData = false;
55
55
 
56
56
  // MARK: - Pick Files
@@ -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.1.11"
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-file-picker",
3
- "version": "8.1.11",
3
+ "version": "8.2.1",
4
4
  "description": "File picker Capacitor plugin - Pick files, images, videos, and directories",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -37,10 +37,10 @@
37
37
  "gallery"
38
38
  ],
39
39
  "scripts": {
40
- "verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
40
+ "verify": "bun run verify:ios && bun run verify:android && bun run verify:web",
41
41
  "verify:ios": "xcodebuild -scheme CapgoCapacitorFilePicker -destination generic/platform=iOS",
42
42
  "verify:android": "cd android && ./gradlew clean build test && cd ..",
43
- "verify:web": "npm run build",
43
+ "verify:web": "bun run build",
44
44
  "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
45
45
  "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
46
46
  "eslint": "eslint . --ext ts",
@@ -51,7 +51,13 @@
51
51
  "clean": "rimraf ./dist",
52
52
  "watch": "tsc --watch",
53
53
  "prepublishOnly": "npm run build",
54
- "check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs"
54
+ "check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs",
55
+ "check:cap9-deprecated": "bun scripts/check-cap9-deprecated.mjs",
56
+ "example:install": "cd example-app && bun install --frozen-lockfile",
57
+ "example:build": "bun run build && cd example-app && bun install --frozen-lockfile && bun run build",
58
+ "capgo:app:add": "bunx @capgo/cli@latest app add app.capgo.file.picker --name \"Capgo File Picker\" --icon example-app/assets/capgo-icon.png",
59
+ "deploy:capgo:example": "bun run example:build && cd example-app && bunx @capgo/cli@latest bundle upload app.capgo.file.picker --path dist --channel production --package-json package.json,../package.json --node-modules node_modules,../node_modules --delta --no-key --ignore-checksum-check --version-exists-ok",
60
+ "changelog:ai": "node scripts/generate-ai-changelog.mjs"
55
61
  },
56
62
  "devDependencies": {
57
63
  "@capacitor/android": "^8.0.0",