diff --git a/README.md b/README.md index debda7d1..a12acec8 100644 --- a/README.md +++ b/README.md @@ -270,25 +270,14 @@ or You can add any package of the `packages/` sub directory in your project. -```yaml -dependencies: - wyatt_analysis: - git: - url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages - ref: wyatt_analysis-v2.4.1 - path: packages/wyatt_analysis -``` - -or the hosted version : - ```yaml dependencies: wyatt_analysis: hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub/ - version: 2.4.1 + version: ^2.4.1 ``` -Here you can change `package name` and `package version` . +> You can also use the `git` protocol. But it's not recommended since it's not handle version constraints. --- diff --git a/packages/wyatt_architecture/example/pubspec.yaml b/packages/wyatt_architecture/example/pubspec.yaml index 6bdb8d97..f550111d 100644 --- a/packages/wyatt_architecture/example/pubspec.yaml +++ b/packages/wyatt_architecture/example/pubspec.yaml @@ -27,48 +27,41 @@ environment: # the latest version available on pub.dev. To see which dependencies have newer # versions available, run `flutter pub outdated`. dependencies: - flutter: - sdk: flutter + flutter: { sdk: flutter } - flutter_bloc: ^8.1.1 wyatt_architecture: path: "../" - wyatt_type_utils: - hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub - version: ^0.0.5 - - wyatt_http_client: - git: - url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages - ref: wyatt_http_client-v2.0.0 - path: packages/wyatt_http_client + flutter_bloc: ^8.1.1 get_it: ^7.2.0 hive: ^2.2.3 hive_flutter: ^1.1.0 - - wyatt_bloc_helper: - hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub/ - version: ^2.0.1 equatable: ^2.0.5 stream_transform: ^2.1.0 bloc_concurrency: ^0.2.0 freezed_annotation: ^2.2.0 json_annotation: ^4.7.0 + wyatt_bloc_helper: + hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub/ + version: ^2.0.1 + wyatt_http_client: + hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub/ + version: ^2.0.0 + wyatt_type_utils: + hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub + version: ^0.0.5 + dev_dependencies: build_runner: ^2.3.2 - flutter_test: - sdk: flutter - + flutter_test: { sdk: flutter } freezed: ^2.2.1 hive_generator: ^2.0.0 json_serializable: ^6.5.4 + wyatt_analysis: - git: - url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages - ref: wyatt_analysis-v2.4.2 - path: packages/wyatt_analysis + hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub/ + version: ^2.4.2 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec diff --git a/packages/wyatt_bloc_layout/example/pubspec.yaml b/packages/wyatt_bloc_layout/example/pubspec.yaml index 241b3f1f..1709f123 100644 --- a/packages/wyatt_bloc_layout/example/pubspec.yaml +++ b/packages/wyatt_bloc_layout/example/pubspec.yaml @@ -27,50 +27,39 @@ environment: # the latest version available on pub.dev. To see which dependencies have newer # versions available, run `flutter pub outdated`. dependencies: - flutter: - sdk: flutter - - flutter_bloc: ^8.1.2 + flutter: { sdk: flutter } wyatt_bloc_layout: path: "../" + flutter_bloc: ^8.1.2 + wyatt_bloc_helper: hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub version: ^2.0.1 - wyatt_ui_layout: hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub version: ^0.0.2 - wyatt_crud_bloc: hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub version: ^0.1.1 - wyatt_ui_components: hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub version: ^0.1.0 - wyatt_component_copy_with_extension: - git: - url: ssh://git@git.wyatt-studio.fr:993/Wyatt-FOSS/wyatt-packages.git - path: packages/wyatt_component_copy_with_extension + hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub + version: ^1.0.0 dev_dependencies: - flutter_test: - sdk: flutter - + flutter_test: { sdk: flutter } build_runner: ^2.3.3 - wyatt_component_copy_with_gen: - git: - url: ssh://git@git.wyatt-studio.fr:993/Wyatt-FOSS/wyatt-packages.git - path: packages/wyatt_component_copy_with_gen + wyatt_component_copy_with_gen: + hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub + version: ^1.0.0 wyatt_analysis: - git: - url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages - ref: wyatt_analysis-v2.4.2 - path: packages/wyatt_analysis + hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub + version: ^2.4.2 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec diff --git a/packages/wyatt_component_copy_with_gen/example/pubspec.yaml b/packages/wyatt_component_copy_with_gen/example/pubspec.yaml index ead8d7d2..71fd328e 100644 --- a/packages/wyatt_component_copy_with_gen/example/pubspec.yaml +++ b/packages/wyatt_component_copy_with_gen/example/pubspec.yaml @@ -8,21 +8,21 @@ environment: sdk: ">=2.19.0 <3.0.0" dependencies: - flutter: - sdk: flutter + flutter: { sdk: flutter } wyatt_component_copy_with_extension: path: "../../wyatt_component_copy_with_extension" wyatt_ui_components: - git: - url: ssh://git@git.wyatt-studio.fr:993/Wyatt-FOSS/wyatt-packages.git - path: packages/wyatt_ui_components + hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub + version: ^1.0.0 dev_dependencies: build_runner: ^2.3.3 + wyatt_component_copy_with_gen: path: "../" + wyatt_analysis: hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub version: ^2.4.2 diff --git a/packages/wyatt_type_utils/example/pubspec.yaml b/packages/wyatt_type_utils/example/pubspec.yaml index 89bbd10e..5b5ab179 100644 --- a/packages/wyatt_type_utils/example/pubspec.yaml +++ b/packages/wyatt_type_utils/example/pubspec.yaml @@ -34,10 +34,5 @@ dependencies: dev_dependencies: wyatt_analysis: - git: - url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages - ref: wyatt_analysis-v2.4.2 - path: packages/wyatt_analysis -# For information on the generic Dart part of this file, see the -# following page: https://dart.dev/tools/pub/pubspec - + hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub + version: ^2.4.2 diff --git a/packages/wyatt_ui_components/example/pubspec.yaml b/packages/wyatt_ui_components/example/pubspec.yaml index ee67d07f..cc736ef5 100644 --- a/packages/wyatt_ui_components/example/pubspec.yaml +++ b/packages/wyatt_ui_components/example/pubspec.yaml @@ -27,32 +27,26 @@ environment: # the latest version available on pub.dev. To see which dependencies have newer # versions available, run `flutter pub outdated`. dependencies: - flutter: - sdk: flutter + flutter: { sdk: flutter } wyatt_ui_components: path: "../" wyatt_component_copy_with_extension: - git: - url: ssh://git@git.wyatt-studio.fr:993/Wyatt-FOSS/wyatt-packages.git - path: packages/wyatt_component_copy_with_extension + hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub + version: ^2.0.0 dev_dependencies: - flutter_test: - sdk: flutter - + flutter_test: { sdk: flutter } build_runner: ^2.3.3 + wyatt_component_copy_with_gen: - git: - url: ssh://git@git.wyatt-studio.fr:993/Wyatt-FOSS/wyatt-packages.git - path: packages/wyatt_component_copy_with_gen + hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub + version: ^2.0.0 wyatt_analysis: - git: - url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages - ref: wyatt_analysis-v2.4.2 - path: packages/wyatt_analysis + hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub + version: ^2.4.2 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec diff --git a/packages/wyatt_ui_kit/example/pubspec.yaml b/packages/wyatt_ui_kit/example/pubspec.yaml index 23202ff7..9916e77c 100644 --- a/packages/wyatt_ui_kit/example/pubspec.yaml +++ b/packages/wyatt_ui_kit/example/pubspec.yaml @@ -10,20 +10,18 @@ environment: dependencies: flutter: { sdk: flutter } + wyatt_ui_kit: + path: "../" + flutter_bloc: ^8.1.2 flutter_localizations: { sdk: flutter } - gap: ^2.0.1 google_fonts: ^4.0.3 adaptive_theme: ^3.2.0 - wyatt_ui_kit: - path: "../" - wyatt_ui_components: - git: - url: ssh://git@git.wyatt-studio.fr:993/Wyatt-FOSS/wyatt-packages.git - path: packages/wyatt_ui_components + hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub + version: ^1.0.0 dev_dependencies: flutter_test: { sdk: flutter } diff --git a/packages/wyatt_ui_layout/example/pubspec.yaml b/packages/wyatt_ui_layout/example/pubspec.yaml index 02f37072..7de95412 100644 --- a/packages/wyatt_ui_layout/example/pubspec.yaml +++ b/packages/wyatt_ui_layout/example/pubspec.yaml @@ -27,38 +27,32 @@ environment: # the latest version available on pub.dev. To see which dependencies have newer # versions available, run `flutter pub outdated`. dependencies: - flutter: - sdk: flutter + flutter: { sdk: flutter } wyatt_ui_layout: path: "../" - wyatt_ui_components: - git: - url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages - path: packages/wyatt_ui_components - - wyatt_component_copy_with_extension: - git: - url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages - path: packages/wyatt_component_copy_with_extension go_router: ^5.0.1 + wyatt_ui_components: + hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub + version: ^1.0.0 + wyatt_component_copy_with_extension: + hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub + version: ^1.0.0 + dev_dependencies: flutter_test: sdk: flutter build_runner: ^2.3.3 - wyatt_component_copy_with_gen: - git: - url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages - path: packages/wyatt_component_copy_with_gen + wyatt_component_copy_with_gen: + hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub + version: ^1.0.0 wyatt_analysis: - git: - url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages - ref: wyatt_analysis-v2.4.2 - path: packages/wyatt_analysis + hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub + version: ^2.4.2 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec