diff --git a/CHANGELOG.md b/CHANGELOG.md index fd9e27a..f04a49e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 0.0.14 +## 0.0.15 * Login at web should work diff --git a/example/pubspec.lock b/example/pubspec.lock index b13d72d..f3fc9f0 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -63,7 +63,7 @@ packages: path: ".." relative: true source: path - version: "0.0.8" + version: "0.0.14" flutter: dependency: "direct main" description: flutter diff --git a/lib/fl_cloud_storage/vendor/google_drive/google_drive_service.dart b/lib/fl_cloud_storage/vendor/google_drive/google_drive_service.dart index 0e70099..f4bc526 100644 --- a/lib/fl_cloud_storage/vendor/google_drive/google_drive_service.dart +++ b/lib/fl_cloud_storage/vendor/google_drive/google_drive_service.dart @@ -133,6 +133,9 @@ class GoogleDriveService return (await googleSignIn.signInSilently(suppressErrors: false)) ?? (interactiveLogin ? await googleSignIn.signIn() : null); } catch (e) { + if (!interactiveLogin) { + return googleSignIn.signIn(); + } log.e(e); } return null; @@ -410,4 +413,4 @@ class GoogleDriveService ? GoogleDriveFolder(folder: res.files![0]) : null; } -} +} \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index 5c8fd0f..1765a7c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: fl_cloud_storage description: Store files in the cloud from Flutter apps. In the first step we only support Google Drive but adding other clouds is much appreciated. -version: 0.0.14 +version: 0.0.15 homepage: https://github.com/ehwplus/fl_cloud_storage environment: