Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion .github/workflows/ffigen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,4 @@ jobs:
- name: Build test dylib and bindings
run: dart --enable-asserts test/setup.dart
- name: Run VM tests
run: flutter pub run test test_flutter/
run: dart run test test_flutter/
4 changes: 2 additions & 2 deletions pkgs/hooks/example/build/download_asset/ffigen.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Run with `flutter pub run ffigen --config ffigen.yaml`.
# Run with `dart run ffigen --config ffigen.yaml`.
name: NativeAddBindings
description: |
Bindings for `src/native_add.h`.

Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
output: 'lib/native_add.dart'
headers:
entry-points:
Expand Down
4 changes: 2 additions & 2 deletions pkgs/hooks/example/build/native_add_library/ffigen.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Run with `flutter pub run ffigen --config ffigen.yaml`.
# Run with `dart run ffigen --config ffigen.yaml`.
name: NativeAddBindings
description: |
Bindings for `src/native_add_library.h`.

Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
output: 'lib/native_add_library.dart'
headers:
entry-points:
Expand Down
4 changes: 2 additions & 2 deletions pkgs/hooks/example/build/native_dynamic_linking/ffigen.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Run with `flutter pub run ffigen --config ffigen.yaml`.
# Run with `dart run ffigen --config ffigen.yaml`.
name: AddBindings
description: |
Bindings for `src/add.h`.

Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
output: 'lib/add.dart'
headers:
entry-points:
Expand Down
4 changes: 2 additions & 2 deletions pkgs/hooks/example/build/use_dart_api/ffigen.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Run with `flutter pub run ffigen --config ffigen.yaml`.
# Run with `dart run ffigen --config ffigen.yaml`.
name: NativeAddBindings
description: |
Bindings for `src/use_dart_api.h`.

Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
output: "lib/src/use_dart_api_bindings_generated.dart"
headers:
entry-points:
Expand Down
4 changes: 2 additions & 2 deletions pkgs/hooks_runner/test_data/native_add/ffigen.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Run with `flutter pub run ffigen --config ffigen.yaml`.
# Run with `dart run ffigen --config ffigen.yaml`.
name: NativeAddBindings
description: |
Bindings for `src/native_add.h`.

Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
output: "lib/src/native_add_bindings_generated.dart"
headers:
entry-points:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Run with `flutter pub run ffigen --config ffigen.yaml`.
# Run with `dart run ffigen --config ffigen.yaml`.
name: NativeAddBindings
description: |
Bindings for `src/native_add.h`.

Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
output: 'lib/src/native_add_bindings_generated.dart'
headers:
entry-points:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Run with `flutter pub run ffigen --config ffigen.yaml`.
# Run with `dart run ffigen --config ffigen.yaml`.
name: AddBindings
description: |
Bindings for `src/add.h`.

Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
output: 'lib/add.dart'
headers:
entry-points:
Expand Down
4 changes: 2 additions & 2 deletions pkgs/hooks_runner/test_data/native_subtract/ffigen.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Run with `flutter pub run ffigen --config ffigen.yaml`.
# Run with `dart run ffigen --config ffigen.yaml`.
name: NativeAddBindings
description: |
Bindings for `src/native_subtract.h`.

Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
output: "lib/src/native_subtract_bindings_generated.dart"
headers:
entry-points:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Run with `flutter pub run ffigen --config ffigen.yaml`.
# Run with `dart run ffigen --config ffigen.yaml`.
name: AddBindings
description: |
Bindings for `src/add.h`.

Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
output: 'lib/add.dart'
headers:
entry-points:
Expand Down
4 changes: 2 additions & 2 deletions pkgs/hooks_runner/test_data/reuse_dynamic_library/ffigen.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Run with `flutter pub run ffigen --config ffigen.yaml`.
# Run with `dart run ffigen --config ffigen.yaml`.
name: AddBindings
description: |
Bindings for `src/my_add.h`.

Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
output: 'lib/my_add.dart'
headers:
entry-points:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Run with `flutter pub run ffigen --config ffigen.yaml`.
# Run with `dart run ffigen --config ffigen.yaml`.
name: NativeCalcBindings
description: |
Bindings for `src/native_add.h` and `src/native_multiply.h`.

Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
output: "lib/src/treeshaking_native_libs_bindings_generated.dart"
headers:
entry-points:
Expand Down
2 changes: 1 addition & 1 deletion pkgs/jni/ffigen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: |

However, functions prefixed JNI_ are not usable because they are in a different shared library.

Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
output: 'lib/src/third_party/jni_bindings_generated.dart'
headers:
entry-points:
Expand Down
2 changes: 1 addition & 1 deletion pkgs/jni/lib/src/third_party/jni_bindings_generated.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import 'dart:ffi' as ffi;
///
/// However, functions prefixed JNI_ are not usable because they are in a different shared library.
///
/// Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
/// Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
///
class JniBindings {
/// Holds the symbol lookup function.
Expand Down
2 changes: 1 addition & 1 deletion pkgs/jnigen/example/kotlin_plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This example generates bindings for a Kotlin-based library. It showcases the con

The command to regenerate JNI bindings is:
```
flutter pub run jnigen --config jnigen.yaml # run from kotlin_plugin project root
dart run jnigen --config jnigen.yaml # run from kotlin_plugin project root
```

The `example/` app must be built at least once in _release_ mode (eg `flutter build apk`) before running JNIgen. This is the equivalent of Gradle Sync in Android Studio, and enables JNIgen to run a Gradle stub and determine release build's classpath, which contains the paths to relevant dependencies. Therefore a build must have been run after cleaning build directories, or updating Java dependencies. This is a known complexity of the Gradle build system, and if you know a solution, please contribute to issue discussion at #33.
Expand Down
2 changes: 1 addition & 1 deletion pkgs/jnigen/example/notification_plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This plugin project contains [custom code](android/src/main/java/com/example/not

The command to regenerate JNI bindings is:
```
flutter pub run jnigen --config jnigen.yaml # run from notification_plugin project root
dart run jnigen --config jnigen.yaml # run from notification_plugin project root
```

The `example/` app must be built at least once in _release_ mode (eg `flutter build apk`) before running JNIgen. This is the equivalent of Gradle Sync in Android Studio, and enables JNIgen to run a Gradle stub and determine release build's classpath, which contains the paths to relevant dependencies. Therefore a build must have been run after cleaning build directories, or updating Java dependencies. This is a known complexity of the Gradle build system, and if you know a solution, please contribute to issue discussion at #33.
Expand Down
Loading