diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 55d8ef1e7..0d6952667 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: dart-lang/setup-dart@v1 - name: Check Dart Format run: | # Check for differences in dart format diff --git a/lib/src/impl/platform/io/native_iris_api_engine_bindings.dart b/lib/src/impl/platform/io/native_iris_api_engine_bindings.dart index 5a5ee79bb..79222097f 100644 --- a/lib/src/impl/platform/io/native_iris_api_engine_bindings.dart +++ b/lib/src/impl/platform/io/native_iris_api_engine_bindings.dart @@ -157,8 +157,8 @@ class NativeIrisApiEngineBinding { } late final _FreeIrisVideoFrameBufferManagerPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(IrisVideoFrameBufferManagerPtr)>>( + ffi + .NativeFunction>( 'FreeIrisVideoFrameBufferManager'); late final _FreeIrisVideoFrameBufferManager = _FreeIrisVideoFrameBufferManagerPtr.asFunction< @@ -297,9 +297,9 @@ class NativeIrisApiEngineBinding { } late final _DisableAllVideoFrameBufferPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - IrisVideoFrameBufferManagerPtr)>>('DisableAllVideoFrameBuffer'); + ffi + .NativeFunction>( + 'DisableAllVideoFrameBuffer'); late final _DisableAllVideoFrameBuffer = _DisableAllVideoFrameBufferPtr .asFunction(); @@ -386,8 +386,9 @@ class NativeIrisApiEngineBinding { } late final _StopDumpVideoPtr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function(IrisVideoFrameBufferManagerPtr)>>('StopDumpVideo'); + ffi + .NativeFunction>( + 'StopDumpVideo'); late final _StopDumpVideo = _StopDumpVideoPtr.asFunction< int Function(IrisVideoFrameBufferManagerPtr)>(); diff --git a/test_shard/iris_tester/lib/src/iris_tester_bindings.dart b/test_shard/iris_tester/lib/src/iris_tester_bindings.dart index 77715e1e7..4a8092bd0 100644 --- a/test_shard/iris_tester/lib/src/iris_tester_bindings.dart +++ b/test_shard/iris_tester/lib/src/iris_tester_bindings.dart @@ -71,9 +71,9 @@ class NativeIrisTesterBinding { } late final _MockApiReturnCodePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, ffi.Int32)>>('MockApiReturnCode'); + ffi + .NativeFunction, ffi.Int32)>>( + 'MockApiReturnCode'); late final _MockApiReturnCode = _MockApiReturnCodePtr.asFunction< void Function(ffi.Pointer, int)>();