cloud_sync_drive 0.1.1
cloud_sync_drive: ^0.1.1 copied to clipboard
Google Drive adapter for the cloud_sync family. Supports drive, drive.file, and drive.appdata scopes. Implements StorageAdapter so it plugs directly into SyncClient.
0.1.1 #
Initial release as part of the cloud_sync family. Behavior ported from drive_sync_flutter 1.2.0.
DriveAdapter(renamed fromGoogleDriveAdapter) implementsStorageAdapterfromcloud_sync_core- Three factory constructors for OAuth scope selection:
DriveAdapter.userDrive(basePath:, subPath:)— fulldrivescopeDriveAdapter.appFiles(folderName:, subPath:)—drive.filescopeDriveAdapter.appData(subPath:)—drive.appdatascope
DriveAuthClient—http.BaseClientwrapper that injects Google auth headersDriveScopeenum +DriveScopeErrorfor scope-mismatch detection- Legacy constructors (
sandboxed,withPath, default positional) removed — not ported fromdrive_sync_flutter
Not backward-compatible with drive_sync_flutter — this is a fresh package with clean naming. Consumers of drive_sync_flutter 1.2.0 migrate by renaming classes and updating imports.