Skip to content

[native_assets_cli] Rename package:hook to package:hooks #2136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 3 additions & 3 deletions .github/workflows/hook.yaml → .github/workflows/hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ on:
# No `branches:` to enable stacked PRs on GitHub.
paths:
- ".github/workflows/hook.yaml"
- "pkgs/hook/**"
- "pkgs/hooks/**"
- "pkgs/code_assets/**"
- "pkgs/data_assets/**"
push:
branches: [main]
paths:
- ".github/workflows/native.yaml"
- "pkgs/hook/**"
- "pkgs/hooks/**"
- "pkgs/code_assets/**"
- "pkgs/data_assets/**"
schedule:
Expand All @@ -30,7 +30,7 @@ jobs:
matrix:
os: [ubuntu, windows]
sdk: [dev]
package: [hook, code_assets, data_assets]
package: [hooks, code_assets, data_assets]

runs-on: ${{ matrix.os }}-latest

Expand Down
2 changes: 1 addition & 1 deletion pkgs/code_assets/doc/schema/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ These schemas document the protocol for build and link hooks with code assets.

These schemas are an extension of the base protocol:

* [`package:hook`/doc/schema](../../../hook/doc/schema/)
* [`package:hooks`/doc/schema](../../../hooks/doc/schema/)
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"$ref": "#/definitions/HookInput"
},
{
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/BuildInput"
"$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/BuildInput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildInput"
Expand All @@ -25,7 +25,7 @@
"$ref": "#/definitions/HookOutput"
},
{
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/BuildOutput"
"$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/BuildOutput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildOutput"
Expand All @@ -38,7 +38,7 @@
"HookInput": {
"allOf": [
{
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/HookInput"
"$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/HookInput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookInput"
Expand All @@ -51,7 +51,7 @@
"HookOutput": {
"allOf": [
{
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/HookOutput"
"$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/HookOutput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookOutput"
Expand All @@ -67,7 +67,7 @@
"$ref": "#/definitions/HookInput"
},
{
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/LinkInput"
"$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/LinkInput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkInput"
Expand All @@ -83,7 +83,7 @@
"$ref": "#/definitions/HookOutput"
},
{
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/LinkOutput"
"$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/LinkOutput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkOutput"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"$ref": "#/definitions/HookInput"
},
{
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/BuildInput"
"$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/BuildInput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildInput"
Expand All @@ -25,7 +25,7 @@
"$ref": "#/definitions/HookOutput"
},
{
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/BuildOutput"
"$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/BuildOutput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildOutput"
Expand All @@ -38,7 +38,7 @@
"HookInput": {
"allOf": [
{
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/HookInput"
"$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/HookInput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookInput"
Expand All @@ -51,7 +51,7 @@
"HookOutput": {
"allOf": [
{
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/HookOutput"
"$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/HookOutput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookOutput"
Expand All @@ -67,7 +67,7 @@
"$ref": "#/definitions/HookInput"
},
{
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/LinkInput"
"$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/LinkInput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkInput"
Expand All @@ -83,7 +83,7 @@
"$ref": "#/definitions/HookOutput"
},
{
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/LinkOutput"
"$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/LinkOutput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkOutput"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"$ref": "#/definitions/HookInput"
},
{
"$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/BuildInput"
"$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/BuildInput"
}
]
},
Expand All @@ -19,7 +19,7 @@
"$ref": "#/definitions/HookOutput"
},
{
"$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/BuildOutput"
"$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/BuildOutput"
},
{
"properties": {
Expand Down Expand Up @@ -48,7 +48,7 @@
"Config": {
"allOf": [
{
"$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/Config"
"$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/Config"
},
{
"$ref": "shared_definitions.schema.json#/definitions/Config"
Expand All @@ -58,7 +58,7 @@
"HookInput": {
"allOf": [
{
"$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/HookInput"
"$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/HookInput"
},
{
"properties": {
Expand All @@ -72,7 +72,7 @@
"HookOutput": {
"allOf": [
{
"$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/HookOutput"
"$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/HookOutput"
},
{
"properties": {
Expand All @@ -92,7 +92,7 @@
"$ref": "#/definitions/HookInput"
},
{
"$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/LinkInput"
"$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/LinkInput"
},
{
"properties": {
Expand All @@ -112,7 +112,7 @@
"$ref": "#/definitions/HookOutput"
},
{
"$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/LinkOutput"
"$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/LinkOutput"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
]
},
"file": {
"$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath"
"$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath"
},
"id": {
"type": "string"
Expand Down Expand Up @@ -110,13 +110,13 @@
"type": "object",
"properties": {
"ar": {
"$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath"
"$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath"
},
"cc": {
"$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath"
"$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath"
},
"env_script": {
"$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath"
"$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath"
},
"env_script_arguments": {
"type": "array",
Expand All @@ -125,7 +125,7 @@
}
},
"ld": {
"$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath"
"$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath"
},
"windows": {
"type": "object",
Expand All @@ -140,7 +140,7 @@
}
},
"script": {
"$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath"
"$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath"
}
},
"required": [
Expand Down Expand Up @@ -318,7 +318,7 @@
"then": {
"properties": {
"uri": {
"$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/relativePath"
"$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/relativePath"
}
},
"required": [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/code_assets/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ environment:
sdk: '>=3.7.0 <4.0.0'

dependencies:
hook:
path: ../hook/
hooks:
path: ../hooks/

dev_dependencies:
dart_flutter_team_lints: ^2.1.1
Expand Down
2 changes: 1 addition & 1 deletion pkgs/code_assets/test/schema/helpers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

export '../../../hook/test/schema/helpers.dart';
export '../../../hooks/test/schema/helpers.dart';
2 changes: 1 addition & 1 deletion pkgs/code_assets/test/schema/schema_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import 'helpers.dart';

void main() {
final schemasUri = packageUri.resolve('doc/schema/');
final hookSchemasUri = packageUri.resolve('../hook/doc/schema/');
final hookSchemasUri = packageUri.resolve('../hooks/doc/schema/');
final allSchemas = loadSchemas([schemasUri, hookSchemasUri]);

final testDataUri = packageUri.resolve('test/data/');
Expand Down
2 changes: 1 addition & 1 deletion pkgs/data_assets/doc/schema/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ These schemas document the protocol for build and link hooks with data assets.

These schemas are an extension of the base protocol:

* [`package:hook`/doc/schema](../../../hook/doc/schema/)
* [`package:hooks`/doc/schema](../../../hooks/doc/schema/)
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"$ref": "#/definitions/HookInput"
},
{
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/BuildInput"
"$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/BuildInput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildInput"
Expand All @@ -22,7 +22,7 @@
"$ref": "#/definitions/HookOutput"
},
{
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/BuildOutput"
"$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/BuildOutput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildOutput"
Expand All @@ -32,7 +32,7 @@
"HookInput": {
"allOf": [
{
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/HookInput"
"$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/HookInput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookInput"
Expand All @@ -42,7 +42,7 @@
"HookOutput": {
"allOf": [
{
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/HookOutput"
"$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/HookOutput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookOutput"
Expand All @@ -55,7 +55,7 @@
"$ref": "#/definitions/HookInput"
},
{
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/LinkInput"
"$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/LinkInput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkInput"
Expand All @@ -68,7 +68,7 @@
"$ref": "#/definitions/HookOutput"
},
{
"$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/LinkOutput"
"$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/LinkOutput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkOutput"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"$ref": "#/definitions/HookInput"
},
{
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/BuildInput"
"$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/BuildInput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildInput"
Expand All @@ -22,7 +22,7 @@
"$ref": "#/definitions/HookOutput"
},
{
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/BuildOutput"
"$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/BuildOutput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildOutput"
Expand All @@ -32,7 +32,7 @@
"HookInput": {
"allOf": [
{
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/HookInput"
"$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/HookInput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookInput"
Expand All @@ -42,7 +42,7 @@
"HookOutput": {
"allOf": [
{
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/HookOutput"
"$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/HookOutput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookOutput"
Expand All @@ -55,7 +55,7 @@
"$ref": "#/definitions/HookInput"
},
{
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/LinkInput"
"$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/LinkInput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkInput"
Expand All @@ -68,7 +68,7 @@
"$ref": "#/definitions/HookOutput"
},
{
"$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/LinkOutput"
"$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/LinkOutput"
},
{
"$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkOutput"
Expand Down
Loading