You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[infra] Split up package:native_assets_cli (#2259)
Closes: #999
Splits up `package:native_assets_cli` in `package:hooks`, `package:code_assets` and `package:data_assets`.
Renames `package:native_assets_builder` to `package:hooks_runner`.
The dependencies are as follows:
* `hooks` has dev dependencies on `code_assets` and `data_assets` because all the integration tests use these asset types.
* `hooks_runner` has a dependency on `code_assets` due to the kernel-encoding `KernelAssets` which is used to bundle the code-assets asset-mapping in various SDKs.
* `hooks_runner` has a dev dependency on `data_assets` because the integration tests use it.
Versions:
* The split up packages continue numbering from the original version. (It doesn't really matter, we'll need to go to 1.0.0 in the future anyway.)
Internal package structure:
* This PR does not reorganize packages. It moves the files exactly to the same path. This could use cleanup, but let's try to get this PR as small as possible.
CI:
* Two workflows are combined. (This could likely use some cleanup, especially trying to collect coverage across all packages in the workspace instead of a single package at the time.)
Publishing:
* These packages will now need their autopublishing set up. I'll do this after we bump the version to non-wip.
Rolling:
* This will need to be rolled into the Dart and Flutter SDKs. Changing the dependencies there and fixing whatever test setup explicitly mentioning the package names.
Copy file name to clipboardExpand all lines: README.md
+8-4
Original file line number
Diff line number
Diff line change
@@ -9,23 +9,27 @@ building and bundling.
9
9
10
10
| Package | Description | Issues | Version |
11
11
| --- | --- | --- | --- |
12
+
|[code_assets](pkgs/code_assets/)| This package contains the Dart API for code assets in `hook/build.dart` and `hook/link.dart`. |[][code_assets_issues]||
13
+
|[data_assets](pkgs/data_assets/)| This package contains the Dart API for data assets in `hook/build.dart` and `hook/link.dart`. |[][data_assets_issues]||
12
14
|[ffi](pkgs/ffi/)| Utilities for working with Foreign Function Interface (FFI) code. |[][ffi_issues]|[](https://pub.dev/packages/ffi)|
13
15
|[ffigen](pkgs/ffigen/)| Generator for FFI bindings, using LibClang to parse C, Objective-C, and Swift files. |[][ffigen_issues]|[](https://pub.dev/packages/ffigen)|
16
+
|[hooks](pkgs/hooks/)| This package contains the API for `hook/build.dart` and `hook/link.dart`. |[][hooks_issues]||
17
+
|[hooks_runner](pkgs/hooks_runner/)| This package is the backend that invokes `hook/build.dart` and `hook/link.dart` from Dart and Flutter. |[][hooks_runner_issues]||
14
18
|[jni](pkgs/jni/)| A library to access JNI from Dart and Flutter that acts as a support library for package:jnigen. |[][jni_issues]|[](https://pub.dev/packages/jni)|
15
19
|[jnigen](pkgs/jnigen/)| A Dart bindings generator for Java and Kotlin that uses JNI under the hood to interop with Java virtual machine. |[][jnigen_issues]|[](https://pub.dev/packages/jnigen)|
16
-
|[native_assets_builder](pkgs/native_assets_builder/)| This package is the backend that invokes build hooks. |[][native_assets_builder_issues]||
17
-
|[native_assets_cli](pkgs/native_assets_cli/)| A library that contains the argument and file formats for implementing a native assets CLI. |[][native_assets_cli_issues]||
18
20
|[native_toolchain_c](pkgs/native_toolchain_c/)| A library to invoke the native C compiler installed on the host machine. |[][native_toolchain_c_issues]||
19
21
|[objective_c](pkgs/objective_c/)| A library to access Objective C from Flutter that acts as a support library for package:ffigen. |[][objective_c_issues]|[](https://pub.dev/packages/objective_c)|
20
22
|[swift2objc](pkgs/swift2objc/)| A tool for generating bindings that allow interop between Dart and Swift code. |[][swift2objc_issues]|[](https://pub.dev/packages/swift2objc)|
21
23
|[swiftgen](pkgs/swiftgen/)| A tool for generating bindings that allow interop between Dart and Swift code. |[][swiftgen_issues]|[](https://pub.dev/packages/swiftgen)|
0 commit comments