Skip to content

Commit 2ad2058

Browse files
authored
[native_assets_cli] code_assets and data_assets packages (#2153)
1 parent 4b63484 commit 2ad2058

File tree

8 files changed

+129
-0
lines changed

8 files changed

+129
-0
lines changed

pkgs/code_assets/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 0.1.0-wip
2+
3+
- Initial version.

pkgs/code_assets/LICENSE

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright 2025, the Dart project authors.
2+
3+
Redistribution and use in source and binary forms, with or without
4+
modification, are permitted provided that the following conditions are
5+
met:
6+
7+
* Redistributions of source code must retain the above copyright
8+
notice, this list of conditions and the following disclaimer.
9+
* Redistributions in binary form must reproduce the above
10+
copyright notice, this list of conditions and the following
11+
disclaimer in the documentation and/or other materials provided
12+
with the distribution.
13+
* Neither the name of Google LLC nor the names of its
14+
contributors may be used to endorse or promote products derived
15+
from this software without specific prior written permission.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

pkgs/code_assets/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[![package:code_assets](https://github.com/dart-lang/native/actions/workflows/native.yaml/badge.svg)](https://github.com/dart-lang/native/actions/workflows/native.yaml)
2+
[![Coverage Status](https://coveralls.io/repos/github/dart-lang/native/badge.svg?branch=main)](https://coveralls.io/github/dart-lang/native?branch=main)
3+
[![pub package](https://img.shields.io/pub/v/code_assets.svg)](https://pub.dev/packages/code_assets)
4+
[![package publisher](https://img.shields.io/pub/publisher/code_assets.svg)](https://pub.dev/packages/code_assets/publisher)
5+
6+
This library contains the hook protocol specification for bundling native code
7+
with Dart packages.
8+
9+
## This package is documentation only for the moment.
10+
11+
For using this feature, please refer to `package:native_assets_cli` for now.
12+
In the future, we'll split up that package into here.
13+
14+
## Status: Experimental
15+
16+
**NOTE**: This package is currently experimental and published under the
17+
[labs.dart.dev](https://dart.dev/dart-team-packages) pub publisher in order to
18+
solicit feedback.
19+
20+
For packages in the labs.dart.dev publisher we generally plan to either graduate
21+
the package into a supported publisher (dart.dev, tools.dart.dev) after a period
22+
of feedback and iteration, or discontinue the package. These packages have a
23+
much higher expected rate of API and breaking changes.
24+
25+
Your feedback is valuable and will help us evolve this package.
26+
For bugs, please file an issue in the
27+
[bug tracker](https://github.com/dart-lang/native/issues).
28+
For general feedback and suggestions for the native assets feature in Dart and
29+
Flutter, please comment in [dart-lang#50565] or [flutter#129757].
30+
31+
[dart-lang#50565]: https://github.com/dart-lang/sdk/issues/50565
32+
[flutter#129757]: https://github.com/flutter/flutter/issues/129757
33+

pkgs/code_assets/pubspec.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: code_assets
22
version: 0.1.0-wip
33
repository: https://github.com/dart-lang/native/tree/main/pkgs/code_assets
44

5+
description: >-
6+
This library contains the hook protocol specification for bundling native code
7+
with Dart packages.
8+
59
publish_to: none
610

711
environment:

pkgs/data_assets/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 0.1.0-wip
2+
3+
- Initial version.

pkgs/data_assets/LICENSE

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright 2025, the Dart project authors.
2+
3+
Redistribution and use in source and binary forms, with or without
4+
modification, are permitted provided that the following conditions are
5+
met:
6+
7+
* Redistributions of source code must retain the above copyright
8+
notice, this list of conditions and the following disclaimer.
9+
* Redistributions in binary form must reproduce the above
10+
copyright notice, this list of conditions and the following
11+
disclaimer in the documentation and/or other materials provided
12+
with the distribution.
13+
* Neither the name of Google LLC nor the names of its
14+
contributors may be used to endorse or promote products derived
15+
from this software without specific prior written permission.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

pkgs/data_assets/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[![package:data_assets](https://github.com/dart-lang/native/actions/workflows/native.yaml/badge.svg)](https://github.com/dart-lang/native/actions/workflows/native.yaml)
2+
[![Coverage Status](https://coveralls.io/repos/github/dart-lang/native/badge.svg?branch=main)](https://coveralls.io/github/dart-lang/native?branch=main)
3+
[![pub package](https://img.shields.io/pub/v/data_assets.svg)](https://pub.dev/packages/data_assets)
4+
[![package publisher](https://img.shields.io/pub/publisher/data_assets.svg)](https://pub.dev/packages/data_assets/publisher)
5+
6+
This library contains the hook protocol specification for bundling data assets
7+
with Dart packages.
8+
9+
## This package is documentation only for the moment.
10+
11+
For using this feature, please refer to `package:native_assets_cli` for now.
12+
In the future, we'll split up that package into here.
13+
14+
## Status: Experimental
15+
16+
**NOTE**: This package is currently experimental and published under the
17+
[labs.dart.dev](https://dart.dev/dart-team-packages) pub publisher in order to
18+
solicit feedback.
19+
20+
For packages in the labs.dart.dev publisher we generally plan to either graduate
21+
the package into a supported publisher (dart.dev, tools.dart.dev) after a period
22+
of feedback and iteration, or discontinue the package. These packages have a
23+
much higher expected rate of API and breaking changes.
24+
25+
Your feedback is valuable and will help us evolve this package.
26+
For bugs, please file an issue in the
27+
[bug tracker](https://github.com/dart-lang/native/issues).
28+

pkgs/data_assets/pubspec.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: data_assets
22
version: 0.1.0-wip
33
repository: https://github.com/dart-lang/native/tree/main/pkgs/data_assets
44

5+
description: >-
6+
This library contains the hook protocol specification for bundling data assets
7+
with Dart packages.
8+
59
publish_to: none
610

711
environment:

0 commit comments

Comments
 (0)