Repository navigation
overview
iCloud Storage Plus is a Flutter plugin for local file operations inside an Apple-managed iCloud Drive ubiquity container. It supports iOS 13 and macOS 10.15 or later, with a Dart API and Swift implementations on both platforms (pubspec.yaml, ios/icloud_storage_plus.podspec, macos/icloud_storage_plus.podspec).
The public facade in lib/icloud_storage.dart provides:
- Path-only copy-in and copy-out for large files.
- In-place text and binary reads and writes, including batch binary reads for many small files.
- Moving local files or directories into and out of the container, plus coordinated directory creation.
- Delete, move, rename, copy, and filesystem existence checks.
- Metadata discovery, immediate directory listing, and document-change observation.
- Explicit access to unresolved conflict versions.
Apple owns synchronization, materialization, metadata freshness, eviction, and document conflicts. Successful local operations do not promise that another device has received the change. The plugin does not run a sync scheduler or impose a deadline for an item to become current (AGENTS.md).
| Goal | Page |
|---|---|
| Configure a consuming app | Getting started |
| Understand the platform boundary | Architecture |
| Choose a file API | File access |
| Choose a listing API | Listing and metadata |
| Observe existing documents | Document observation |
| Inspect conflict versions | Conflict versions |
| Change or test the plugin | Contributing |
lib/ contains the public API, typed models, and method/event-channel adapter. ios/ and macos/ contain native document implementations and Foundation helpers. example/lib/ is the interactive demonstration app. test/ and the native Foundation package test directories check plugin-owned rules. See Systems for implementation entry points.
This wiki describes the checked-out source, not a guarantee about iCloud network behavior. Historical design notes in ai_specs/ and docs/ may describe removed behavior; current code and AGENTS.md take precedence.