Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use better default path on Flutter #665

Merged
merged 19 commits into from
Jun 14, 2022
Merged

Use better default path on Flutter #665

merged 19 commits into from
Jun 14, 2022

Conversation

blagoev
Copy link
Contributor

@blagoev blagoev commented Jun 10, 2022

This introduces better default paths on Flutter.
/// On Flutter Android and iOS this is the application's data directory.
/// On Flutter Windows this is the C:\Users\username\AppData\Roaming\app_name directory.
/// On Flutter macOS this is the /Users/username/Library/Containers/app_name/Data/Library/Application Support directory.
/// On Flutter Linux this is the /home/username/.local/share/app_name directory.
/// On Dart standalone Windows, macOS and Linux this is the current directory.

fixes #450
This also reintroduces Configuration.defaultRealmName and Configuration.defaultRealmPath which the user can set once and all realms will use these fields by default.
This also introduces Configuration.defaultStoragePath static getter which point to the platform specific writable application directory on Flutter and the current directory on Dart.

@cla-bot cla-bot bot added the cla: yes label Jun 10, 2022
@blagoev blagoev marked this pull request as ready for review June 13, 2022 22:06
.vscode/settings.json Show resolved Hide resolved
lib/src/app.dart Show resolved Hide resolved
lib/src/configuration.dart Show resolved Hide resolved
test/test.dart Show resolved Hide resolved
@blagoev blagoev self-assigned this Jun 14, 2022
@blagoev blagoev merged commit 0fbc34b into master Jun 14, 2022
@blagoev blagoev deleted the blagoev/default-path branch June 14, 2022 13:39
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use better default path for Flutter Desktop & Dart
3 participants