cloud_sync_drive 0.1.1 copy "cloud_sync_drive: ^0.1.1" to clipboard
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 from GoogleDriveAdapter) implements StorageAdapter from cloud_sync_core
  • Three factory constructors for OAuth scope selection:
    • DriveAdapter.userDrive(basePath:, subPath:) — full drive scope
    • DriveAdapter.appFiles(folderName:, subPath:)drive.file scope
    • DriveAdapter.appData(subPath:)drive.appdata scope
  • DriveAuthClienthttp.BaseClient wrapper that injects Google auth headers
  • DriveScope enum + DriveScopeError for scope-mismatch detection
  • Legacy constructors (sandboxed, withPath, default positional) removed — not ported from drive_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.

0
likes
160
points
141
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Google Drive adapter for the cloud_sync family. Supports drive, drive.file, and drive.appdata scopes. Implements StorageAdapter so it plugs directly into SyncClient.

Repository (GitHub)
View/report issues
Contributing

Topics

#google-drive #sync #backup

License

MIT (license)

Dependencies

cloud_sync_core, googleapis, http

More

Packages that depend on cloud_sync_drive