Skip to content

Commit 4b5acb3

Browse files
committed
fix: capacitor upload file bug- use new plugin (#4083)
1 parent 6900d1d commit 4b5acb3

36 files changed

+1095
-838
lines changed

android/app/capacitor.build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ dependencies {
2525
implementation project(':capacitor-status-bar')
2626
implementation project(':capacitor-text-zoom')
2727
implementation project(':capawesome-capacitor-app-shortcuts')
28+
implementation project(':whiteguru-capacitor-plugin-file-picker')
2829
implementation project(':capacitor-native-settings')
2930
implementation project(':capacitor-secure-storage-plugin')
3031
implementation "com.google.android.gms:play-services-auth:15.0.1"

android/app/src/main/assets/capacitor.plugins.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@
6363
"pkg": "@capawesome/capacitor-app-shortcuts",
6464
"classpath": "io.capawesome.capacitorjs.plugins.appshortcuts.AppShortcutsPlugin"
6565
},
66+
{
67+
"pkg": "@whiteguru/capacitor-plugin-file-picker",
68+
"classpath": "com.whiteguru.capacitor.plugin.filepicker.FilePickerPlugin"
69+
},
6670
{
6771
"pkg": "capacitor-native-settings",
6872
"classpath": "nl.raphael.settings.NativeSettingsPlugin"

android/capacitor.settings.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ project(':capacitor-text-zoom').projectDir = new File('../node_modules/@capacito
5050
include ':capawesome-capacitor-app-shortcuts'
5151
project(':capawesome-capacitor-app-shortcuts').projectDir = new File('../node_modules/@capawesome/capacitor-app-shortcuts/android')
5252

53+
include ':whiteguru-capacitor-plugin-file-picker'
54+
project(':whiteguru-capacitor-plugin-file-picker').projectDir = new File('../node_modules/@whiteguru/capacitor-plugin-file-picker/android')
55+
5356
include ':capacitor-native-settings'
5457
project(':capacitor-native-settings').projectDir = new File('../node_modules/capacitor-native-settings/android')
5558

ios/App/App/capacitor.config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"StatusBarPlugin",
5858
"TextZoomPlugin",
5959
"AppShortcutsPlugin",
60+
"FilePickerPlugin",
6061
"NativeSettingsPlugin",
6162
"SecureStoragePlugin",
6263
"CDVPlugin"

ios/App/Podfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def capacitor_pods
2727
pod 'CapacitorStatusBar', :path => '../../node_modules/@capacitor/status-bar'
2828
pod 'CapacitorTextZoom', :path => '../../node_modules/@capacitor/text-zoom'
2929
pod 'CapawesomeCapacitorAppShortcuts', :path => '../../node_modules/@capawesome/capacitor-app-shortcuts'
30+
pod 'WhiteguruCapacitorPluginFilePicker', :path => '../../node_modules/@whiteguru/capacitor-plugin-file-picker'
3031
pod 'CapacitorNativeSettings', :path => '../../node_modules/capacitor-native-settings'
3132
pod 'CapacitorSecureStoragePlugin', :path => '../../node_modules/capacitor-secure-storage-plugin'
3233
pod 'CordovaPlugins', :path => '../capacitor-cordova-ios-plugins'

ios/App/Podfile.lock

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ PODS:
132132
- nanopb/encode (2.30908.0)
133133
- PromisesObjC (1.2.12)
134134
- SwiftKeychainWrapper (4.0.1)
135+
- WhiteguruCapacitorPluginFilePicker (7.0.1):
136+
- Capacitor
135137

136138
DEPENDENCIES:
137139
- "Capacitor (from `../../node_modules/@capacitor/ios`)"
@@ -157,6 +159,7 @@ DEPENDENCIES:
157159
- CordovaPlugins (from `../capacitor-cordova-ios-plugins`)
158160
- CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`)
159161
- FirebaseMessaging
162+
- "WhiteguruCapacitorPluginFilePicker (from `../../node_modules/@whiteguru/capacitor-plugin-file-picker`)"
160163

161164
SPEC REPOS:
162165
trunk:
@@ -221,6 +224,8 @@ EXTERNAL SOURCES:
221224
:path: "../capacitor-cordova-ios-plugins"
222225
CordovaPluginsStatic:
223226
:path: "../capacitor-cordova-ios-plugins"
227+
WhiteguruCapacitorPluginFilePicker:
228+
:path: "../../node_modules/@whiteguru/capacitor-plugin-file-picker"
224229

225230
SPEC CHECKSUMS:
226231
AppAuth: d4f13a8fe0baf391b2108511793e4b479691fb73
@@ -260,7 +265,8 @@ SPEC CHECKSUMS:
260265
nanopb: a0ba3315591a9ae0a16a309ee504766e90db0c96
261266
PromisesObjC: 3113f7f76903778cf4a0586bd1ab89329a0b7b97
262267
SwiftKeychainWrapper: 807ba1d63c33a7d0613288512399cd1eda1e470c
268+
WhiteguruCapacitorPluginFilePicker: 2a56042cdc8764ed011c672917edc33a95f9d4f4
263269

264-
PODFILE CHECKSUM: e8d2d5b2c4afd01caa869215f1a8143a4bb26265
270+
PODFILE CHECKSUM: 3bfe50c70173259abe6c00635d38652737b9b836
265271

266272
COCOAPODS: 1.16.2

0 commit comments

Comments
 (0)