Skip to content

Commit

Permalink
[native_assets_cli] Refactor into BuildInput (#1871)
Browse files Browse the repository at this point in the history
This PR changes the public API according to #1738, and should have minimal behavior changes.

Everything in `HookConfig` causes a different `input.outputDirectory`, all the other elements in the `input` do not.

* This leads to the `packageName` no longer influencing the checksum, so the default output directory has been changed to `.dart_tool/native_assets_builder/$packageName/$checksum`.

Follow up PRs:

* Serialize to a new JSON format
* get rid of cCompiler envScript

Design:

* #1738
  • Loading branch information
dcharkes authored Jan 8, 2025
1 parent d9bb34c commit e4c4bd6
Show file tree
Hide file tree
Showing 128 changed files with 1,783 additions and 1,647 deletions.
4 changes: 2 additions & 2 deletions pkgs/native_assets_builder/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 0.10.3-wip
## 0.11.0-wip

- Nothing yet.
- Bump `package:native_assets_cli` to 0.11.0.

## 0.10.2

Expand Down
8 changes: 4 additions & 4 deletions pkgs/native_assets_builder/lib/native_assets_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
export 'package:native_assets_builder/src/build_runner/build_runner.dart'
show
ApplicationAssetValidator,
BuildConfigCreator,
BuildConfigValidator,
BuildInputCreator,
BuildInputValidator,
BuildValidator,
LinkConfigCreator,
LinkConfigValidator,
LinkInputCreator,
LinkInputValidator,
LinkValidator,
NativeAssetsBuildRunner;
export 'package:native_assets_builder/src/model/build_result.dart';
Expand Down
Loading

0 comments on commit e4c4bd6

Please sign in to comment.