Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .fvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"flutter": "stable"
}
17 changes: 11 additions & 6 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,17 @@ jobs:

steps:
- uses: actions/checkout@v4

- uses: subosito/flutter-action@v2
with:
flutter-version: '3.x'
channel: 'stable'
cache: true

- name: Setup FVM
run: |
dart pub global activate fvm
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH

- name: Install Flutter with FVM
run: fvm install

- name: Add FVM Flutter to PATH
run: echo "${{ github.workspace }}/.fvm/flutter_sdk/bin" >> $GITHUB_PATH

- name: Install dependencies
run: |
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,7 @@ packages/**/pubspec.lock
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3

/packages/*/coverage
/packages/*/coverage

# FVM Version Cache
.fvm/
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@ Flutter Client library for [Supabase](https://supabase.com/).

This repo is a monorepo powered by [Melos](https://melos.invertase.dev/) containing [supabase_flutter](https://github.com/supabase/supabase-flutter/tree/main/packages/supabase_flutter) and its sub-libraries. All packages are located in the `packages` directory.

### Flutter SDK (FVM)

This project uses [FVM](https://fvm.app/) to manage the Flutter SDK
version. Contributors should install FVM and use it when running Flutter
or Dart commands.

Steps for contributors:

- Install FVM (see https://fvm.app/)
- Install the project's Flutter SDK: `fvm install stable`
- Use the SDK in this repo: `fvm use stable`
- Run Flutter/Dart via FVM, e.g. `fvm flutter --version`

To install on a locally developed app:

- Clone this repo
Expand Down Expand Up @@ -38,7 +51,7 @@ Run the Dart tests within the package directory in `packages/<package>` with the
The `-j 1` flag runs the tests not concurrently, which works better since the tests are running against the same services.

```bash
dart test -j 1
fvm dart test -j 1
```

To stop the services run the following command in the `infra/<package>` directory:
Expand Down
2 changes: 1 addition & 1 deletion melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ scripts:
rm packages/yet_another_json_isolate/lib/src/version.dart
# Stage the version.dart file change
git add packages/*/lib/src/version.dart
sdkPath: .fvm/flutter_sdk
Loading