Skip to content
Open
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
36 changes: 6 additions & 30 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ name: Dart

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
workflow_dispatch:
branches: [main]

jobs:
test:
Expand All @@ -18,37 +17,14 @@ jobs:
uses: subosito/flutter-action@v2
with:
cache: true

- name: Setup melos
run: dart pub global activate melos

- run: flutter doctor -v

- run: flutter precache

- run: melos bootstrap

- run: melos run checkformat

- run: melos run analyze

- run: melos run test

can-test:
runs-on: doublecan

steps:
- uses: actions/checkout@v4

- name: Setup Dart SDK
uses: dart-lang/setup-dart@v1

- name: Setup melos
run: dart pub global activate melos

- run: melos bootstrap --no-flutter

- name: Test linux_can
working-directory: packages/linux_can
run:
dart test integration_test --tags "double-can"
- run: melos run test
3 changes: 2 additions & 1 deletion packages/_ardera_common_libc_bindings/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ description: |

version: 0.3.2+1
repository: https://github.com/ardera/flutter_packages/
resolution: workspace

environment:
sdk: '>=2.17.0 <3.0.0'
sdk: '>=3.5.0 <4.0.0'

dev_dependencies:
lints: ^3.0.0
Expand Down
3 changes: 2 additions & 1 deletion packages/_ardera_libc_bindings_generator/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: _ardera_libc_bindings_generator
description: A dart:ffi bindings generator for libc.
version: 0.1.1+1
repository: https://github.com/ardera/flutter_packages
resolution: workspace

dependencies:
ffigen: ^11.0.0
Expand All @@ -20,4 +21,4 @@ dependencies:
yaml: ^3.1.0

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: '>=3.5.0 <4.0.0'
3 changes: 2 additions & 1 deletion packages/flutter_gpiod/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ description:
version: 0.6.0
homepage: https://ardera.dev/
repository: https://github.com/ardera/flutter_packages
resolution: workspace

environment:
sdk: ">=2.17.0 <3.0.0"
sdk: '>=3.5.0 <4.0.0'

dependencies:
meta: ^1.3.0
Expand Down
5 changes: 3 additions & 2 deletions packages/flutter_gpiod_test_app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ name: flutter_gpiod_test_app
description: A flutter app for testing flutter_gpiod.
publish_to: 'none'
version: 1.0.0+1
resolution: workspace

environment:
sdk: ">=2.16.1 <3.0.0"
sdk: '>=3.5.0 <4.0.0'

dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
flutter_gpiod: ^0.5.1+6
flutter_gpiod:
dev_dependencies:
integration_test:
sdk: flutter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import FlutterMacOS
import Foundation

import audioplayers_darwin
import path_provider_foundation

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
AudioplayersDarwinPlugin.register(with: registry.registrar(forPlugin: "AudioplayersDarwinPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
}
3 changes: 2 additions & 1 deletion packages/flutterpi_audioplayers_test/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ description: A new Flutter project.
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
resolution: workspace

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
Expand All @@ -19,7 +20,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: '>=2.19.2 <3.0.0'
sdk: '>=3.5.0 <4.0.0'

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
Expand Down
3 changes: 2 additions & 1 deletion packages/flutterpi_gstreamer_video_player/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ name: flutterpi_gstreamer_video_player
description: video_player platform implementation for flutter-pi.
version: 0.1.1+1
repository: https://github.com/ardera/flutter_packages
resolution: workspace

environment:
sdk: '>=2.18.6 <3.0.0'
sdk: '>=3.5.0 <4.0.0'
flutter: ">=2.5.0"

dependencies:
Expand Down
3 changes: 2 additions & 1 deletion packages/linux_can/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ name: linux_can
description: Package for using CAN devices on linux.
version: 0.2.0+1
repository: https://github.com/ardera/flutter_packages
resolution: workspace

environment:
sdk: '>=3.0.0 <4.0.0'
sdk: '>=3.5.0 <4.0.0'

dev_dependencies:
lints: ^3.0.0
Expand Down
4 changes: 2 additions & 2 deletions packages/linux_can_test_app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ description: A new Flutter project.
publish_to: 'none'

version: 1.0.0+1
resolution: workspace

environment:
sdk: '>=3.0.0 <4.0.0'
sdk: '>=3.5.0 <4.0.0'

dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
linux_can:
path: ../linux_can

dev_dependencies:
flutter_test:
Expand Down
3 changes: 2 additions & 1 deletion packages/linux_serial/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ description: Dart package for accessing serial ports on Linux using dart:ffi.
version: 0.2.3+7
homepage: https://ardera.dev
repository: https://github.com/ardera/flutter_packages
resolution: workspace

environment:
sdk: '>=2.16.0 <3.0.0'
sdk: '>=3.5.0 <4.0.0'

dependencies:
ffi: ^2.0.0
Expand Down
3 changes: 2 additions & 1 deletion packages/linux_spidev/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ description: Dart package for accessing SPI on Linux using the spidev interface
version: 0.2.1+6
homepage: https://ardera.dev
repository: https://github.com/ardera/flutter_packages
resolution: workspace

environment:
sdk: '>=2.17.0 <3.0.0'
sdk: '>=3.5.0 <4.0.0'

dependencies:
ffi: ^2.0.0
Expand Down
3 changes: 2 additions & 1 deletion packages/omxplayer_video_player/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ description: A package that implements video_player_platform_interface using omx
version: 2.1.1
homepage: https://ardera.dev
repository: https://github.com/ardera/flutter_packages
resolution: workspace

environment:
sdk: '>=2.12.0 <3.0.0'
sdk: '>=3.5.0 <4.0.0'

dependencies:
video_player_platform_interface: ^6.2.2
Expand Down
27 changes: 20 additions & 7 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
name: arderas_flutter_packages_workspace

environment:
sdk: '>=2.18.0 <3.0.0'

dev_dependencies:
melos: ^3.1.0
name: arderas_flutter_packages_workspace

environment:
sdk: ">=3.5.0 <4.0.0"

workspace:
- packages/_ardera_common_libc_bindings
- packages/_ardera_libc_bindings_generator
- packages/flutter_gpiod
- packages/flutter_gpiod_test_app
- packages/flutterpi_audioplayers_test
- packages/flutterpi_gstreamer_video_player
- packages/linux_can
- packages/linux_can_test_app
- packages/linux_serial
- packages/linux_spidev
- packages/omxplayer_video_player

dev_dependencies:
melos: ^7.4.0
Loading