Skip to content
Merged
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
15 changes: 13 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
pull_request:
branches: [develop]

env:
FLUTTER_VERSION: "3.47.4"

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
format:
Expand All @@ -33,6 +36,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: ${{ env.FLUTTER_VERSION }}
architecture: x64
cache: true

Expand Down Expand Up @@ -65,6 +69,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: ${{ env.FLUTTER_VERSION }}
architecture: x64
cache: true

Expand Down Expand Up @@ -104,6 +109,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: ${{ env.FLUTTER_VERSION }}
architecture: x64
cache: true

Expand Down Expand Up @@ -137,7 +143,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: "stable"
architecture: x64
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true

# Download all Flutter packages
Expand Down Expand Up @@ -170,7 +176,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: "stable"
architecture: x64
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true

# Enable platform support
Expand Down Expand Up @@ -208,6 +214,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: ${{ env.FLUTTER_VERSION }}
architecture: x64
cache: true

Expand Down Expand Up @@ -250,6 +257,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: ${{ env.FLUTTER_VERSION }}
architecture: x64
cache: true

Expand Down Expand Up @@ -293,6 +301,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: ${{ env.FLUTTER_VERSION }}
architecture: x64
cache: true

Expand Down Expand Up @@ -324,6 +333,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: ${{ env.FLUTTER_VERSION }}
architecture: x64
cache: true

Expand Down Expand Up @@ -380,6 +390,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: ${{ env.FLUTTER_VERSION }}
architecture: x64
cache: true

Expand Down
9 changes: 6 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Conduct](CODE_OF_CONDUCT.md).
### Prerequisites

- Basic Dart and Flutter knowledge
- A working Flutter SDK installation, stable channel (see Commands below for
what CI actually installs)
- A working Flutter SDK installation, stable channel, matching CI, currently
Flutter **3.47.4** (`FLUTTER_VERSION` in `.github/workflows/build.yaml`)
- For running or building the example on iOS/macOS, access to a Mac is required
- Android example builds require JDK 17

Expand Down Expand Up @@ -133,7 +133,10 @@ flutter analyze
flutter test
```

CI runs the same commands with stricter flags, on the Flutter stable channel:
CI runs the same commands with stricter flags, on the pinned Flutter version
above. Bump `FLUTTER_VERSION` in `.github/workflows/build.yaml` in its own PR,
which needs a green run of its own, and keep it in step with the version
`flutter_cache_manager` pins.

```bash
dart format --set-exit-if-changed .
Expand Down
3 changes: 3 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
analyzer:
exclude:
- build/**
include: package:flutter_lints/flutter.yaml
9 changes: 9 additions & 0 deletions example/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
analyzer:
exclude:
- build/**
- android/**
- ios/**
- web/**
- windows/**
- macos/**
- linux/**
include: package:flutter_lints/flutter.yaml
8 changes: 8 additions & 0 deletions example/linux/flutter/generated_plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
list(APPEND FLUTTER_PLUGIN_LIST
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
)

set(PLUGIN_BUNDLED_LIBRARIES)

foreach(plugin ${FLUTTER_PLUGIN_LIST})
Expand All @@ -13,3 +16,8 @@ foreach(plugin ${FLUTTER_PLUGIN_LIST})
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
endforeach(plugin)

foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
endforeach(ffi_plugin)
Loading