Skip to content

Commit

Permalink
update native_toolcain_conan
Browse files Browse the repository at this point in the history
  • Loading branch information
rainyl committed Apr 21, 2024
1 parent f42685d commit 73321d0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build_test_native_assets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: ["native-assets"]
tags:
- "v*.*.*"
- "v2.*.*"
pull_request:
branches: ["native-assets"]

Expand Down Expand Up @@ -126,6 +126,7 @@ jobs:
- name: setup
run: |
brew install --force --overwrite ninja ccache ffmpeg@6 nasm conan
brew link --overwrite ffmpeg@6
conan profile detect -f
cd ${{github.workspace}}
- uses: subosito/flutter-action@v2
Expand Down Expand Up @@ -154,6 +155,7 @@ jobs:
run: |
# brew update
brew install --force --overwrite ninja ccache ffmpeg@6 nasm conan
brew link --overwrite ffmpeg@6
conan profile detect -f
cd ${{github.workspace}}
- uses: subosito/flutter-action@v2
Expand Down Expand Up @@ -181,6 +183,7 @@ jobs:
- name: setup
run: |
brew install --force --overwrite ninja ccache ffmpeg@6 nasm conan
brew link --overwrite ffmpeg@6
conan profile detect -f
cd ${{github.workspace}}
- name: Set up Flutter
Expand Down
4 changes: 0 additions & 4 deletions analysis_options.yaml

This file was deleted.

10 changes: 1 addition & 9 deletions hook/native_toolchain_conan.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ abstract class Builder {
}

class ConanBuilder implements Builder {
/// What kind of artifact to build.
final _BuilderType _type;

/// Name of the library or executable to build.
///
/// The filename will be decided by [BuildConfig.targetOS] and
Expand Down Expand Up @@ -66,7 +63,7 @@ class ConanBuilder implements Builder {
this.defines = const {},
this.dartBuildFiles = const [],
this.std,
}) : _type = _BuilderType.library;
});

@override
Future<void> run({
Expand Down Expand Up @@ -349,8 +346,3 @@ exitCode: $exitCode
stdout: $stdout
stderr: $stderr''';
}

enum _BuilderType {
executable,
library,
}
3 changes: 1 addition & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ environment:
sdk: '>=3.3.0 <4.0.0'

dependencies:
ffi: ^2.1.0
ffi: ^2.1.2
equatable: ^2.0.5
path: ^1.9.0
native_assets_cli: ^0.5.4
logging: ^1.2.0

dev_dependencies:
ffigen: ^11.0.0
flutter_lints: ^3.0.1
test: ^1.25.2

topics:
Expand Down

0 comments on commit 73321d0

Please sign in to comment.