Supported Platforms
note
Couchbase Lite for Dart requires Dart SDK ^3.10.0.
| Platform | Version |
|---|---|
| iOS | >= 10.0 |
| macOS | >= 10.14 |
| Android | >= 22 |
| Linux | >= Ubuntu 20.04 x86_64 |
| Windows | >= 10 x86_64 |
Default database directory​
When opening a database without specifying a directory, Couchbase Lite uses
Database.defaultDirectory. For Flutter apps it resolves to a
CouchbaseLite subdirectory of the platform's standard app data directory. For
standalone Dart processes (e.g. dart run, compiled CLI executables), the
current working directory is used.
| Platform | App data directory |
|---|---|
| iOS | Application Support (via NSSearchPathForDirectoriesInDomains) |
| macOS | <Application Support>/<bundleId> |
| Android | /data/user/<userId>/<packageName>/files |
| Linux | <XDG_DATA_HOME>/<appName> (respects Snap/Flatpak sandboxes) |
| Windows | <LocalAppData>/<appName> |
You can override the default directory by setting
Database.defaultDirectory to a custom path.