From 4d42971fc0bbab4a06530a4e7add1a23a975be01 Mon Sep 17 00:00:00 2001 From: Enzo Lizama Date: Tue, 3 Sep 2024 13:15:33 -0500 Subject: [PATCH 1/5] chore: add hotelyn models package --- packages/hotelyn_models/.gitignore | 44 ++++++++++++ packages/hotelyn_models/README.md | 67 +++++++++++++++++++ packages/hotelyn_models/analysis_options.yaml | 1 + packages/hotelyn_models/coverage_badge.svg | 20 ++++++ .../hotelyn_models/lib/hotelyn_models.dart | 4 ++ packages/hotelyn_models/lib/src/hotel.dart | 31 +++++++++ packages/hotelyn_models/lib/src/models.dart | 2 + packages/hotelyn_models/lib/src/user.dart | 20 ++++++ packages/hotelyn_models/pubspec.yaml | 16 +++++ .../test/src/hotelyn_models_test.dart | 11 +++ 10 files changed, 216 insertions(+) create mode 100644 packages/hotelyn_models/.gitignore create mode 100644 packages/hotelyn_models/README.md create mode 100644 packages/hotelyn_models/analysis_options.yaml create mode 100644 packages/hotelyn_models/coverage_badge.svg create mode 100644 packages/hotelyn_models/lib/hotelyn_models.dart create mode 100644 packages/hotelyn_models/lib/src/hotel.dart create mode 100644 packages/hotelyn_models/lib/src/models.dart create mode 100644 packages/hotelyn_models/lib/src/user.dart create mode 100644 packages/hotelyn_models/pubspec.yaml create mode 100644 packages/hotelyn_models/test/src/hotelyn_models_test.dart diff --git a/packages/hotelyn_models/.gitignore b/packages/hotelyn_models/.gitignore new file mode 100644 index 0000000..06ef8e6 --- /dev/null +++ b/packages/hotelyn_models/.gitignore @@ -0,0 +1,44 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ +migrate_working_dir/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# VSCode related +.vscode/* + +# Flutter/Dart/Pub related +**/doc/api/ +**/ios/Flutter/.last_build_id +.dart_tool/ +.flutter-plugins +.flutter-plugins-dependencies +.packages +.pub-cache/ +.pub/ +/build/ +pubspec.lock + +# Web related +lib/generated_plugin_registrant.dart + +# Symbolication related +app.*.symbols + +# Obfuscation related +app.*.map.json + +# Test related +coverage \ No newline at end of file diff --git a/packages/hotelyn_models/README.md b/packages/hotelyn_models/README.md new file mode 100644 index 0000000..ac16a7e --- /dev/null +++ b/packages/hotelyn_models/README.md @@ -0,0 +1,67 @@ +# Hotelyn Models + +[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link] +[![Powered by Mason](https://img.shields.io/endpoint?url=https%3A%2F%2Ftinyurl.com%2Fmason-badge)](https://github.com/felangel/mason) +[![License: MIT][license_badge]][license_link] + +Models for Hotelyn app + +## Installation ๐Ÿ’ป + +**โ— In order to start using Hotelyn Models you must have the [Flutter SDK][flutter_install_link] installed on your machine.** + +Install via `flutter pub add`: + +```sh +dart pub add hotelyn_models +``` + +--- + +## Continuous Integration ๐Ÿค– + +Hotelyn Models comes with a built-in [GitHub Actions workflow][github_actions_link] powered by [Very Good Workflows][very_good_workflows_link] but you can also add your preferred CI/CD solution. + +Out of the box, on each pull request and push, the CI `formats`, `lints`, and `tests` the code. This ensures the code remains consistent and behaves correctly as you add functionality or make changes. The project uses [Very Good Analysis][very_good_analysis_link] for a strict set of analysis options used by our team. Code coverage is enforced using the [Very Good Workflows][very_good_coverage_link]. + +--- + +## Running Tests ๐Ÿงช + +For first time users, install the [very_good_cli][very_good_cli_link]: + +```sh +dart pub global activate very_good_cli +``` + +To run all unit tests: + +```sh +very_good test --coverage +``` + +To view the generated coverage report you can use [lcov](https://github.com/linux-test-project/lcov). + +```sh +# Generate Coverage Report +genhtml coverage/lcov.info -o coverage/ + +# Open Coverage Report +open coverage/index.html +``` + +[flutter_install_link]: https://docs.flutter.dev/get-started/install +[github_actions_link]: https://docs.github.com/en/actions/learn-github-actions +[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg +[license_link]: https://opensource.org/licenses/MIT +[logo_black]: https://raw.githubusercontent.com/VGVentures/very_good_brand/main/styles/README/vgv_logo_black.png#gh-light-mode-only +[logo_white]: https://raw.githubusercontent.com/VGVentures/very_good_brand/main/styles/README/vgv_logo_white.png#gh-dark-mode-only +[mason_link]: https://github.com/felangel/mason +[very_good_analysis_badge]: https://img.shields.io/badge/style-very_good_analysis-B22C89.svg +[very_good_analysis_link]: https://pub.dev/packages/very_good_analysis +[very_good_cli_link]: https://pub.dev/packages/very_good_cli +[very_good_coverage_link]: https://github.com/marketplace/actions/very-good-coverage +[very_good_ventures_link]: https://verygood.ventures +[very_good_ventures_link_light]: https://verygood.ventures#gh-light-mode-only +[very_good_ventures_link_dark]: https://verygood.ventures#gh-dark-mode-only +[very_good_workflows_link]: https://github.com/VeryGoodOpenSource/very_good_workflows diff --git a/packages/hotelyn_models/analysis_options.yaml b/packages/hotelyn_models/analysis_options.yaml new file mode 100644 index 0000000..bb72091 --- /dev/null +++ b/packages/hotelyn_models/analysis_options.yaml @@ -0,0 +1 @@ +include: package:very_good_analysis/analysis_options.6.0.0.yaml diff --git a/packages/hotelyn_models/coverage_badge.svg b/packages/hotelyn_models/coverage_badge.svg new file mode 100644 index 0000000..499e98c --- /dev/null +++ b/packages/hotelyn_models/coverage_badge.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + coverage + coverage + 100% + 100% + + diff --git a/packages/hotelyn_models/lib/hotelyn_models.dart b/packages/hotelyn_models/lib/hotelyn_models.dart new file mode 100644 index 0000000..3d82cc2 --- /dev/null +++ b/packages/hotelyn_models/lib/hotelyn_models.dart @@ -0,0 +1,4 @@ +/// Models for Hotelyn app +library; + +export 'src/models.dart'; diff --git a/packages/hotelyn_models/lib/src/hotel.dart b/packages/hotelyn_models/lib/src/hotel.dart new file mode 100644 index 0000000..b905f88 --- /dev/null +++ b/packages/hotelyn_models/lib/src/hotel.dart @@ -0,0 +1,31 @@ +import 'package:equatable/equatable.dart'; + +class Hotel extends Equatable { + const Hotel({ + required this.name, + required this.price, + required this.location, + required this.perks, + }); + + final String name; + final String price; + final String location; + final List perks; + + @override + List get props => [name, price, location, perks]; +} + +class Perk extends Equatable { + const Perk({ + required this.name, + required this.iconData, + }); + + final String name; + final String iconData; + + @override + List get props => [name, iconData]; +} diff --git a/packages/hotelyn_models/lib/src/models.dart b/packages/hotelyn_models/lib/src/models.dart new file mode 100644 index 0000000..b22b0e7 --- /dev/null +++ b/packages/hotelyn_models/lib/src/models.dart @@ -0,0 +1,2 @@ +export 'hotel.dart'; +export 'user.dart'; diff --git a/packages/hotelyn_models/lib/src/user.dart b/packages/hotelyn_models/lib/src/user.dart new file mode 100644 index 0000000..24e51b3 --- /dev/null +++ b/packages/hotelyn_models/lib/src/user.dart @@ -0,0 +1,20 @@ +import 'package:equatable/equatable.dart'; + +class User extends Equatable { + const User({ + required this.name, + required this.lastName, + required this.photoUrl, + required this.phone, + required this.email, + }); + + final String name; + final String lastName; + final String phone; + final String photoUrl; + final String email; + + @override + List get props => [name, lastName, phone, photoUrl, email]; +} diff --git a/packages/hotelyn_models/pubspec.yaml b/packages/hotelyn_models/pubspec.yaml new file mode 100644 index 0000000..9a19b66 --- /dev/null +++ b/packages/hotelyn_models/pubspec.yaml @@ -0,0 +1,16 @@ +name: hotelyn_models +description: Models for Hotelyn app +version: 0.1.0+1 +publish_to: none + +environment: + sdk: ^3.5.0 + +dependencies: + equatable: ^2.0.5 + json_annotation: ^4.8.1 + +dev_dependencies: + test: ^1.25.2 + mocktail: ^1.0.4 + very_good_analysis: ^6.0.0 diff --git a/packages/hotelyn_models/test/src/hotelyn_models_test.dart b/packages/hotelyn_models/test/src/hotelyn_models_test.dart new file mode 100644 index 0000000..bb06813 --- /dev/null +++ b/packages/hotelyn_models/test/src/hotelyn_models_test.dart @@ -0,0 +1,11 @@ +// ignore_for_file: prefer_const_constructors + +import 'package:test/test.dart'; + +void main() { + group('HotelynModels', () { + test('can be instantiated', () { + // expect(HotelynModels(), isNotNull); + }); + }); +} From bc41e0b391db53f60df647b00f68ea799680ae13 Mon Sep 17 00:00:00 2001 From: Enzo Lizama Date: Tue, 3 Sep 2024 13:15:46 -0500 Subject: [PATCH 2/5] chore: add mocks for hotelyn package --- .../.github/ISSUE_TEMPLATE/bug_report.md | 29 +++++++++ .../.github/ISSUE_TEMPLATE/build.md | 14 +++++ .../.github/ISSUE_TEMPLATE/chore.md | 14 +++++ .../.github/ISSUE_TEMPLATE/ci.md | 14 +++++ .../.github/ISSUE_TEMPLATE/config.yml | 1 + .../.github/ISSUE_TEMPLATE/documentation.md | 14 +++++ .../.github/ISSUE_TEMPLATE/feature_request.md | 18 ++++++ .../.github/ISSUE_TEMPLATE/performance.md | 14 +++++ .../.github/ISSUE_TEMPLATE/refactor.md | 14 +++++ .../.github/ISSUE_TEMPLATE/revert.md | 16 +++++ .../.github/ISSUE_TEMPLATE/style.md | 14 +++++ .../.github/ISSUE_TEMPLATE/test.md | 14 +++++ .../.github/PULL_REQUEST_TEMPLATE.md | 27 ++++++++ packages/hotelyn_mocks/.github/cspell.json | 21 +++++++ .../hotelyn_mocks/.github/dependabot.yaml | 11 ++++ .../hotelyn_mocks/.github/workflows/main.yaml | 27 ++++++++ packages/hotelyn_mocks/.gitignore | 7 +++ packages/hotelyn_mocks/README.md | 62 +++++++++++++++++++ packages/hotelyn_mocks/analysis_options.yaml | 1 + packages/hotelyn_mocks/coverage_badge.svg | 20 ++++++ packages/hotelyn_mocks/lib/hotelyn_mocks.dart | 4 ++ packages/hotelyn_mocks/lib/src/hotels.dart | 14 +++++ packages/hotelyn_mocks/lib/src/mocks.dart | 1 + packages/hotelyn_mocks/pubspec.yaml | 16 +++++ .../test/src/hotelyn_mocks_test.dart | 10 +++ 25 files changed, 397 insertions(+) create mode 100644 packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/bug_report.md create mode 100644 packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/build.md create mode 100644 packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/chore.md create mode 100644 packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/ci.md create mode 100644 packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/config.yml create mode 100644 packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/documentation.md create mode 100644 packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/feature_request.md create mode 100644 packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/performance.md create mode 100644 packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/refactor.md create mode 100644 packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/revert.md create mode 100644 packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/style.md create mode 100644 packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/test.md create mode 100644 packages/hotelyn_mocks/.github/PULL_REQUEST_TEMPLATE.md create mode 100644 packages/hotelyn_mocks/.github/cspell.json create mode 100644 packages/hotelyn_mocks/.github/dependabot.yaml create mode 100644 packages/hotelyn_mocks/.github/workflows/main.yaml create mode 100644 packages/hotelyn_mocks/.gitignore create mode 100644 packages/hotelyn_mocks/README.md create mode 100644 packages/hotelyn_mocks/analysis_options.yaml create mode 100644 packages/hotelyn_mocks/coverage_badge.svg create mode 100644 packages/hotelyn_mocks/lib/hotelyn_mocks.dart create mode 100644 packages/hotelyn_mocks/lib/src/hotels.dart create mode 100644 packages/hotelyn_mocks/lib/src/mocks.dart create mode 100644 packages/hotelyn_mocks/pubspec.yaml create mode 100644 packages/hotelyn_mocks/test/src/hotelyn_mocks_test.dart diff --git a/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/bug_report.md b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..50a4c7b --- /dev/null +++ b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,29 @@ +--- +name: Bug Report +about: Create a report to help us improve +title: "fix: " +labels: bug +--- + +**Description** + +A clear and concise description of what the bug is. + +**Steps To Reproduce** + +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected Behavior** + +A clear and concise description of what you expected to happen. + +**Screenshots** + +If applicable, add screenshots to help explain your problem. + +**Additional Context** + +Add any other context about the problem here. diff --git a/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/build.md b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/build.md new file mode 100644 index 0000000..0cf8e62 --- /dev/null +++ b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/build.md @@ -0,0 +1,14 @@ +--- +name: Build System +about: Changes that affect the build system or external dependencies +title: "build: " +labels: build +--- + +**Description** + +Describe what changes need to be done to the build system and why. + +**Requirements** + +- [ ] The build system is passing diff --git a/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/chore.md b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/chore.md new file mode 100644 index 0000000..498ebfd --- /dev/null +++ b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/chore.md @@ -0,0 +1,14 @@ +--- +name: Chore +about: Other changes that don't modify src or test files +title: "chore: " +labels: chore +--- + +**Description** + +Clearly describe what change is needed and why. If this changes code then please use another issue type. + +**Requirements** + +- [ ] No functional changes to the code diff --git a/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/ci.md b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/ci.md new file mode 100644 index 0000000..fa2dd9e --- /dev/null +++ b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/ci.md @@ -0,0 +1,14 @@ +--- +name: Continuous Integration +about: Changes to the CI configuration files and scripts +title: "ci: " +labels: ci +--- + +**Description** + +Describe what changes need to be done to the ci/cd system and why. + +**Requirements** + +- [ ] The ci system is passing diff --git a/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/config.yml b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..ec4bb38 --- /dev/null +++ b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: false \ No newline at end of file diff --git a/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/documentation.md b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/documentation.md new file mode 100644 index 0000000..f494a4d --- /dev/null +++ b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/documentation.md @@ -0,0 +1,14 @@ +--- +name: Documentation +about: Improve the documentation so all collaborators have a common understanding +title: "docs: " +labels: documentation +--- + +**Description** + +Clearly describe what documentation you are looking to add or improve. + +**Requirements** + +- [ ] Requirements go here diff --git a/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/feature_request.md b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..ddd2fcc --- /dev/null +++ b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,18 @@ +--- +name: Feature Request +about: A new feature to be added to the project +title: "feat: " +labels: feature +--- + +**Description** + +Clearly describe what you are looking to add. The more context the better. + +**Requirements** + +- [ ] Checklist of requirements to be fulfilled + +**Additional Context** + +Add any other context or screenshots about the feature request go here. diff --git a/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/performance.md b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/performance.md new file mode 100644 index 0000000..699b8d4 --- /dev/null +++ b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/performance.md @@ -0,0 +1,14 @@ +--- +name: Performance Update +about: A code change that improves performance +title: "perf: " +labels: performance +--- + +**Description** + +Clearly describe what code needs to be changed and what the performance impact is going to be. Bonus point's if you can tie this directly to user experience. + +**Requirements** + +- [ ] There is no drop in test coverage. diff --git a/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/refactor.md b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/refactor.md new file mode 100644 index 0000000..1626c57 --- /dev/null +++ b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/refactor.md @@ -0,0 +1,14 @@ +--- +name: Refactor +about: A code change that neither fixes a bug nor adds a feature +title: "refactor: " +labels: refactor +--- + +**Description** + +Clearly describe what needs to be refactored and why. Please provide links to related issues (bugs or upcoming features) in order to help prioritize. + +**Requirements** + +- [ ] There is no drop in test coverage. diff --git a/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/revert.md b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/revert.md new file mode 100644 index 0000000..9d121dc --- /dev/null +++ b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/revert.md @@ -0,0 +1,16 @@ +--- +name: Revert Commit +about: Reverts a previous commit +title: "revert: " +labels: revert +--- + +**Description** + +Provide a link to a PR/Commit that you are looking to revert and why. + +**Requirements** + +- [ ] Change has been reverted +- [ ] No change in test coverage has happened +- [ ] A new ticket is created for any follow on work that needs to happen diff --git a/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/style.md b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/style.md new file mode 100644 index 0000000..02244a7 --- /dev/null +++ b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/style.md @@ -0,0 +1,14 @@ +--- +name: Style Changes +about: Changes that do not affect the meaning of the code (white space, formatting, missing semi-colons, etc) +title: "style: " +labels: style +--- + +**Description** + +Clearly describe what you are looking to change and why. + +**Requirements** + +- [ ] There is no drop in test coverage. diff --git a/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/test.md b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/test.md new file mode 100644 index 0000000..431a7ea --- /dev/null +++ b/packages/hotelyn_mocks/.github/ISSUE_TEMPLATE/test.md @@ -0,0 +1,14 @@ +--- +name: Test +about: Adding missing tests or correcting existing tests +title: "test: " +labels: test +--- + +**Description** + +List out the tests that need to be added or changed. Please also include any information as to why this was not covered in the past. + +**Requirements** + +- [ ] There is no drop in test coverage. diff --git a/packages/hotelyn_mocks/.github/PULL_REQUEST_TEMPLATE.md b/packages/hotelyn_mocks/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..1169936 --- /dev/null +++ b/packages/hotelyn_mocks/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,27 @@ + + +## Status + +**READY/IN DEVELOPMENT/HOLD** + +## Description + + + +## Type of Change + + + +- [ ] โœจ New feature (non-breaking change which adds functionality) +- [ ] ๐Ÿ› ๏ธ Bug fix (non-breaking change which fixes an issue) +- [ ] โŒ Breaking change (fix or feature that would cause existing functionality to change) +- [ ] ๐Ÿงน Code refactor +- [ ] โœ… Build configuration change +- [ ] ๐Ÿ“ Documentation +- [ ] ๐Ÿ—‘๏ธ Chore diff --git a/packages/hotelyn_mocks/.github/cspell.json b/packages/hotelyn_mocks/.github/cspell.json new file mode 100644 index 0000000..e50c6fd --- /dev/null +++ b/packages/hotelyn_mocks/.github/cspell.json @@ -0,0 +1,21 @@ +{ + "version": "0.2", + "$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json", + "dictionaries": ["vgv_allowed", "vgv_forbidden"], + "dictionaryDefinitions": [ + { + "name": "vgv_allowed", + "path": "https://raw.githubusercontent.com/verygoodopensource/very_good_dictionaries/main/allowed.txt", + "description": "Allowed VGV Spellings" + }, + { + "name": "vgv_forbidden", + "path": "https://raw.githubusercontent.com/verygoodopensource/very_good_dictionaries/main/forbidden.txt", + "description": "Forbidden VGV Spellings" + } + ], + "useGitignore": true, + "words": [ + "hotelyn_mocks" + ] +} diff --git a/packages/hotelyn_mocks/.github/dependabot.yaml b/packages/hotelyn_mocks/.github/dependabot.yaml new file mode 100644 index 0000000..63b035c --- /dev/null +++ b/packages/hotelyn_mocks/.github/dependabot.yaml @@ -0,0 +1,11 @@ +version: 2 +enable-beta-ecosystems: true +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + - package-ecosystem: "pub" + directory: "/" + schedule: + interval: "daily" diff --git a/packages/hotelyn_mocks/.github/workflows/main.yaml b/packages/hotelyn_mocks/.github/workflows/main.yaml new file mode 100644 index 0000000..c7146c3 --- /dev/null +++ b/packages/hotelyn_mocks/.github/workflows/main.yaml @@ -0,0 +1,27 @@ +name: ci + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + semantic_pull_request: + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1 + + spell-check: + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/spell_check.yml@v1 + with: + includes: "**/*.md" + modified_files_only: false + + build: + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1 + diff --git a/packages/hotelyn_mocks/.gitignore b/packages/hotelyn_mocks/.gitignore new file mode 100644 index 0000000..526da15 --- /dev/null +++ b/packages/hotelyn_mocks/.gitignore @@ -0,0 +1,7 @@ +# See https://www.dartlang.org/guides/libraries/private-files + +# Files and directories created by pub +.dart_tool/ +.packages +build/ +pubspec.lock \ No newline at end of file diff --git a/packages/hotelyn_mocks/README.md b/packages/hotelyn_mocks/README.md new file mode 100644 index 0000000..f15b3c7 --- /dev/null +++ b/packages/hotelyn_mocks/README.md @@ -0,0 +1,62 @@ +# Hotelyn Mocks + +[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link] +[![Powered by Mason](https://img.shields.io/endpoint?url=https%3A%2F%2Ftinyurl.com%2Fmason-badge)](https://github.com/felangel/mason) +[![License: MIT][license_badge]][license_link] + +Mocks for the project, only for testing purposes + +## Installation ๐Ÿ’ป + +**โ— In order to start using Hotelyn Mocks you must have the [Dart SDK][dart_install_link] installed on your machine.** + +Install via `dart pub add`: + +```sh +dart pub add hotelyn_mocks +``` + +--- + +## Continuous Integration ๐Ÿค– + +Hotelyn Mocks comes with a built-in [GitHub Actions workflow][github_actions_link] powered by [Very Good Workflows][very_good_workflows_link] but you can also add your preferred CI/CD solution. + +Out of the box, on each pull request and push, the CI `formats`, `lints`, and `tests` the code. This ensures the code remains consistent and behaves correctly as you add functionality or make changes. The project uses [Very Good Analysis][very_good_analysis_link] for a strict set of analysis options used by our team. Code coverage is enforced using the [Very Good Workflows][very_good_coverage_link]. + +--- + +## Running Tests ๐Ÿงช + +To run all unit tests: + +```sh +dart pub global activate coverage 1.2.0 +dart test --coverage=coverage +dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info +``` + +To view the generated coverage report you can use [lcov](https://github.com/linux-test-project/lcov). + +```sh +# Generate Coverage Report +genhtml coverage/lcov.info -o coverage/ + +# Open Coverage Report +open coverage/index.html +``` + +[dart_install_link]: https://dart.dev/get-dart +[github_actions_link]: https://docs.github.com/en/actions/learn-github-actions +[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg +[license_link]: https://opensource.org/licenses/MIT +[logo_black]: https://raw.githubusercontent.com/VGVentures/very_good_brand/main/styles/README/vgv_logo_black.png#gh-light-mode-only +[logo_white]: https://raw.githubusercontent.com/VGVentures/very_good_brand/main/styles/README/vgv_logo_white.png#gh-dark-mode-only +[mason_link]: https://github.com/felangel/mason +[very_good_analysis_badge]: https://img.shields.io/badge/style-very_good_analysis-B22C89.svg +[very_good_analysis_link]: https://pub.dev/packages/very_good_analysis +[very_good_coverage_link]: https://github.com/marketplace/actions/very-good-coverage +[very_good_ventures_link]: https://verygood.ventures +[very_good_ventures_link_light]: https://verygood.ventures#gh-light-mode-only +[very_good_ventures_link_dark]: https://verygood.ventures#gh-dark-mode-only +[very_good_workflows_link]: https://github.com/VeryGoodOpenSource/very_good_workflows diff --git a/packages/hotelyn_mocks/analysis_options.yaml b/packages/hotelyn_mocks/analysis_options.yaml new file mode 100644 index 0000000..bb72091 --- /dev/null +++ b/packages/hotelyn_mocks/analysis_options.yaml @@ -0,0 +1 @@ +include: package:very_good_analysis/analysis_options.6.0.0.yaml diff --git a/packages/hotelyn_mocks/coverage_badge.svg b/packages/hotelyn_mocks/coverage_badge.svg new file mode 100644 index 0000000..499e98c --- /dev/null +++ b/packages/hotelyn_mocks/coverage_badge.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + coverage + coverage + 100% + 100% + + diff --git a/packages/hotelyn_mocks/lib/hotelyn_mocks.dart b/packages/hotelyn_mocks/lib/hotelyn_mocks.dart new file mode 100644 index 0000000..28f6eae --- /dev/null +++ b/packages/hotelyn_mocks/lib/hotelyn_mocks.dart @@ -0,0 +1,4 @@ +/// Mocks for the project, only for testing purposes +library; + +export 'src/mocks.dart'; diff --git a/packages/hotelyn_mocks/lib/src/hotels.dart b/packages/hotelyn_mocks/lib/src/hotels.dart new file mode 100644 index 0000000..ec084c1 --- /dev/null +++ b/packages/hotelyn_mocks/lib/src/hotels.dart @@ -0,0 +1,14 @@ +import 'package:hotelyn_models/hotelyn_models.dart'; + +final mockHotels = [ + const Hotel( + name: 'Hotel 1', + price: '230.1', + location: 'Av. Peru 123, Lima.', + perks: [ + Perk(name: 'Pool', iconData: 'pool.png'), + Perk(name: 'Breakfast', iconData: 'breakfast.png'), + Perk(name: 'Spa', iconData: 'spa.png'), + ], + ), +]; diff --git a/packages/hotelyn_mocks/lib/src/mocks.dart b/packages/hotelyn_mocks/lib/src/mocks.dart new file mode 100644 index 0000000..ebf8a84 --- /dev/null +++ b/packages/hotelyn_mocks/lib/src/mocks.dart @@ -0,0 +1 @@ +export 'hotels.dart'; diff --git a/packages/hotelyn_mocks/pubspec.yaml b/packages/hotelyn_mocks/pubspec.yaml new file mode 100644 index 0000000..a60bc84 --- /dev/null +++ b/packages/hotelyn_mocks/pubspec.yaml @@ -0,0 +1,16 @@ +name: hotelyn_mocks +description: Mocks for the project, only for testing purposes +version: 0.1.0+1 +publish_to: none + +environment: + sdk: ^3.5.0 + +dependencies: + hotelyn_models: + path: ../hotelyn_models + +dev_dependencies: + mocktail: ^1.0.4 + test: ^1.25.8 + very_good_analysis: ^6.0.0 diff --git a/packages/hotelyn_mocks/test/src/hotelyn_mocks_test.dart b/packages/hotelyn_mocks/test/src/hotelyn_mocks_test.dart new file mode 100644 index 0000000..bcf903a --- /dev/null +++ b/packages/hotelyn_mocks/test/src/hotelyn_mocks_test.dart @@ -0,0 +1,10 @@ +// ignore_for_file: prefer_const_constructors +import 'package:test/test.dart'; + +void main() { + group('HotelynMocks', () { + test('can be instantiated', () { + // expect(HotelynMocks(), isNotNull); + }); + }); +} From 8a084dcc0f1c59bcbb1369e2eaf584ef6d26a6c2 Mon Sep 17 00:00:00 2001 From: Enzo Lizama Date: Tue, 3 Sep 2024 13:16:04 -0500 Subject: [PATCH 3/5] chore: update depedencies and workflows --- .github/workflows/hotelyn_models.yaml | 19 ++ .idea/runConfigurations/main_dart.xml | 4 +- lib/app/bloc/app_bloc.dart | 5 +- lib/components/cards/search_hotel_card.dart | 2 +- lib/core/data/mocks/hotels.dart | 14 -- lib/core/domain/models/hotel.dart | 31 --- lib/core/domain/models/models.dart | 2 - lib/core/domain/models/user.dart | 20 -- pubspec.lock | 226 +++++++++++--------- pubspec.yaml | 4 + 10 files changed, 152 insertions(+), 175 deletions(-) create mode 100644 .github/workflows/hotelyn_models.yaml delete mode 100644 lib/core/data/mocks/hotels.dart delete mode 100644 lib/core/domain/models/hotel.dart delete mode 100644 lib/core/domain/models/models.dart delete mode 100644 lib/core/domain/models/user.dart diff --git a/.github/workflows/hotelyn_models.yaml b/.github/workflows/hotelyn_models.yaml new file mode 100644 index 0000000..5195c26 --- /dev/null +++ b/.github/workflows/hotelyn_models.yaml @@ -0,0 +1,19 @@ +name: hotelyn_models + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: + pull_request: + paths: + - "packages/hotelyn_models/**" + - ".github/workflows/hotelyn_models.yaml" + branches: + - master + +jobs: + build: + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1 + with: + working_directory: packages/esusu_models diff --git a/.idea/runConfigurations/main_dart.xml b/.idea/runConfigurations/main_dart.xml index aab7b5c..e1ef0d2 100644 --- a/.idea/runConfigurations/main_dart.xml +++ b/.idea/runConfigurations/main_dart.xml @@ -1,6 +1,6 @@ - \ No newline at end of file diff --git a/lib/app/bloc/app_bloc.dart b/lib/app/bloc/app_bloc.dart index a6d6adb..e968482 100644 --- a/lib/app/bloc/app_bloc.dart +++ b/lib/app/bloc/app_bloc.dart @@ -10,8 +10,9 @@ part 'app_event.dart'; part 'app_state.dart'; class AppBloc extends Bloc { - AppBloc({required UserRepository userRepository}) - : _userRepository = userRepository, + AppBloc({ + required UserRepository userRepository, + }) : _userRepository = userRepository, super(LoadingAuthStatus()) { on(_onFetchAuthenticationStatus); } diff --git a/lib/components/cards/search_hotel_card.dart b/lib/components/cards/search_hotel_card.dart index 545484f..688400a 100644 --- a/lib/components/cards/search_hotel_card.dart +++ b/lib/components/cards/search_hotel_card.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:hotelyn/core/domain/models/hotel.dart'; +import 'package:hotelyn_models/hotelyn_models.dart'; class SearchHotelCard extends StatelessWidget { const SearchHotelCard({required this.hotel, super.key}); diff --git a/lib/core/data/mocks/hotels.dart b/lib/core/data/mocks/hotels.dart deleted file mode 100644 index e5cc36c..0000000 --- a/lib/core/data/mocks/hotels.dart +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:hotelyn/core/domain/models/models.dart'; - -final mockHotels = [ - const Hotel( - name: 'Hotel 1', - price: '230.1', - location: 'Av. Peru 123, Lima.', - perks: [ - Perk(name: 'Pool', iconData: 'pool.png'), - Perk(name: 'Breakfast', iconData: 'breakfast.png'), - Perk(name: 'Spa', iconData: 'spa.png'), - ], - ), -]; diff --git a/lib/core/domain/models/hotel.dart b/lib/core/domain/models/hotel.dart deleted file mode 100644 index b905f88..0000000 --- a/lib/core/domain/models/hotel.dart +++ /dev/null @@ -1,31 +0,0 @@ -import 'package:equatable/equatable.dart'; - -class Hotel extends Equatable { - const Hotel({ - required this.name, - required this.price, - required this.location, - required this.perks, - }); - - final String name; - final String price; - final String location; - final List perks; - - @override - List get props => [name, price, location, perks]; -} - -class Perk extends Equatable { - const Perk({ - required this.name, - required this.iconData, - }); - - final String name; - final String iconData; - - @override - List get props => [name, iconData]; -} diff --git a/lib/core/domain/models/models.dart b/lib/core/domain/models/models.dart deleted file mode 100644 index b22b0e7..0000000 --- a/lib/core/domain/models/models.dart +++ /dev/null @@ -1,2 +0,0 @@ -export 'hotel.dart'; -export 'user.dart'; diff --git a/lib/core/domain/models/user.dart b/lib/core/domain/models/user.dart deleted file mode 100644 index 24e51b3..0000000 --- a/lib/core/domain/models/user.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:equatable/equatable.dart'; - -class User extends Equatable { - const User({ - required this.name, - required this.lastName, - required this.photoUrl, - required this.phone, - required this.email, - }); - - final String name; - final String lastName; - final String phone; - final String photoUrl; - final String email; - - @override - List get props => [name, lastName, phone, photoUrl, email]; -} diff --git a/pubspec.lock b/pubspec.lock index 276947f..e712138 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,26 +5,31 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: eb376e9acf6938204f90eb3b1f00b578640d3188b4c8a8ec054f9f479af8d051 + sha256: f256b0c0ba6c7577c15e2e4e114755640a875e885099367bf6e012b19314c834 url: "https://pub.dev" source: hosted - version: "64.0.0" + version: "72.0.0" _flutterfire_internals: dependency: transitive description: name: _flutterfire_internals - sha256: "2350805d7afefb0efe7acd325cb19d3ae8ba4039b906eade3807ffb69938a01f" + sha256: "37a42d06068e2fe3deddb2da079a8c4d105f241225ba27b7122b37e9865fd8f7" url: "https://pub.dev" source: hosted - version: "1.3.33" + version: "1.3.35" + _macros: + dependency: transitive + description: dart + source: sdk + version: "0.3.2" analyzer: dependency: transitive description: name: analyzer - sha256: "69f54f967773f6c26c7dcb13e93d7ccee8b17a641689da39e878d5cf13b06893" + sha256: b652861553cd3990d8ed361f7979dc6d7053a9ac8843fa73820ab68ce5410139 url: "https://pub.dev" source: hosted - version: "6.2.0" + version: "6.7.0" ansi_styles: dependency: transitive description: @@ -37,10 +42,10 @@ packages: dependency: transitive description: name: args - sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a" url: "https://pub.dev" source: hosted - version: "2.4.2" + version: "2.5.0" async: dependency: transitive description: @@ -109,18 +114,18 @@ packages: dependency: "direct dev" description: name: build_runner - sha256: "644dc98a0f179b872f612d3eb627924b578897c629788e858157fa5e704ca0c7" + sha256: dd09dd4e2b078992f42aac7f1a622f01882a8492fef08486b27ddde929c19f04 url: "https://pub.dev" source: hosted - version: "2.4.11" + version: "2.4.12" build_runner_core: dependency: transitive description: name: build_runner_core - sha256: "4ae8ffe5ac758da294ecf1802f2aff01558d8b1b00616aa7538ea9a8a5d50799" + sha256: f8126682b87a7282a339b871298cc12009cb67109cfa1614d6436fb0289193e0 url: "https://pub.dev" source: hosted - version: "7.3.0" + version: "7.3.2" built_collection: dependency: transitive description: @@ -221,18 +226,18 @@ packages: dependency: transitive description: name: coverage - sha256: "8acabb8306b57a409bf4c83522065672ee13179297a6bb0cb9ead73948df7c76" + sha256: c1fb2dce3c0085f39dc72668e85f8e0210ec7de05345821ff58530567df345a5 url: "https://pub.dev" source: hosted - version: "1.7.2" + version: "1.9.2" crypto: dependency: transitive description: name: crypto - sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab + sha256: ec30d999af904f33454ba22ed9a86162b35e52b44ac4807d1d93c288041d7d27 url: "https://pub.dev" source: hosted - version: "3.0.3" + version: "3.0.5" cupertino_icons: dependency: "direct main" description: @@ -277,10 +282,10 @@ packages: dependency: transitive description: name: ffi - sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878" + sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6" url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.3" file: dependency: transitive description: @@ -293,50 +298,50 @@ packages: dependency: "direct main" description: name: firebase_auth - sha256: f0a75f61992d036e4c46ad0e9febd364d98aa2c092690a5475cb1421a8243cfe + sha256: cfc2d970829202eca09e2896f0a5aa7c87302817ecc0bdfa954f026046bf10ba url: "https://pub.dev" source: hosted - version: "4.19.5" + version: "4.20.0" firebase_auth_platform_interface: dependency: transitive description: name: firebase_auth_platform_interface - sha256: feb77258404309ffc7761c78e1c0ad2ed5e4fdc378e035619e2cc13be4397b62 + sha256: a0270e1db3b2098a14cb2a2342b3cd2e7e458e0c391b1f64f6f78b14296ec093 url: "https://pub.dev" source: hosted - version: "7.2.6" + version: "7.3.0" firebase_auth_web: dependency: transitive description: name: firebase_auth_web - sha256: "6d527f357da2bf93a67a42b423aa92943104a0c290d1d72ad9a42c779d501cd2" + sha256: "64e067e763c6378b7e774e872f0f59f6812885e43020e25cde08f42e9459837b" url: "https://pub.dev" source: hosted - version: "5.11.5" + version: "5.12.0" firebase_core: dependency: "direct main" description: name: firebase_core - sha256: "372d94ced114b9c40cb85e18c50ac94a7e998c8eec630c50d7aec047847d27bf" + sha256: "26de145bb9688a90962faec6f838247377b0b0d32cc0abecd9a4e43525fc856c" url: "https://pub.dev" source: hosted - version: "2.31.0" + version: "2.32.0" firebase_core_platform_interface: dependency: transitive description: name: firebase_core_platform_interface - sha256: c437ae5d17e6b5cc7981cf6fd458a5db4d12979905f9aafd1fea930428a9fe63 + sha256: f7d7180c7f99babd4b4c517754d41a09a4943a0f7a69b65c894ca5c68ba66315 url: "https://pub.dev" source: hosted - version: "5.0.0" + version: "5.2.1" firebase_core_web: dependency: transitive description: name: firebase_core_web - sha256: "43d9e951ac52b87ae9cc38ecdcca1e8fa7b52a1dd26a96085ba41ce5108db8e9" + sha256: "362e52457ed2b7b180964769c1e04d1e0ea0259fdf7025fdfedd019d4ae2bd88" url: "https://pub.dev" source: hosted - version: "2.17.0" + version: "2.17.5" fixnum: dependency: transitive description: @@ -385,10 +390,10 @@ packages: dependency: transitive description: name: frontend_server_client - sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" + sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694 url: "https://pub.dev" source: hosted - version: "3.2.0" + version: "4.0.0" glob: dependency: transitive description: @@ -401,26 +406,33 @@ packages: dependency: "direct main" description: name: go_router - sha256: "39dd52168d6c59984454183148dc3a5776960c61083adfc708cc79a7b3ce1ba8" + sha256: "2ddb88e9ad56ae15ee144ed10e33886777eb5ca2509a914850a5faa7b52ff459" url: "https://pub.dev" source: hosted - version: "14.2.1" + version: "14.2.7" graphs: dependency: transitive description: name: graphs - sha256: aedc5a15e78fc65a6e23bcd927f24c64dd995062bcd1ca6eda65a3cff92a4d19 + sha256: "741bbf84165310a68ff28fe9e727332eef1407342fca52759cb21ad8177bb8d0" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.3.2" + hotelyn_models: + dependency: "direct main" + description: + path: "packages/hotelyn_models" + relative: true + source: path + version: "0.1.0+1" http: dependency: transitive description: name: http - sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938" + sha256: b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010 url: "https://pub.dev" source: hosted - version: "1.2.1" + version: "1.2.2" http_multi_server: dependency: transitive description: @@ -457,10 +469,10 @@ packages: dependency: transitive description: name: js - sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf url: "https://pub.dev" source: hosted - version: "0.6.7" + version: "0.7.1" json_annotation: dependency: "direct main" description: @@ -481,18 +493,18 @@ packages: dependency: transitive description: name: leak_tracker - sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" + sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" url: "https://pub.dev" source: hosted - version: "10.0.4" + version: "10.0.5" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" + sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" url: "https://pub.dev" source: hosted - version: "3.0.3" + version: "3.0.5" leak_tracker_testing: dependency: transitive description: @@ -508,15 +520,15 @@ packages: sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235" url: "https://pub.dev" source: hosted - version: "3.0.0" + version: "4.0.0" logger: dependency: "direct main" description: name: logger - sha256: af05cc8714f356fd1f3888fb6741cbe9fbe25cdb6eedbab80e1a6db21047d4a4 + sha256: "697d067c60c20999686a0add96cf6aba723b3aa1f83ecf806a8097231529ec32" url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "2.4.0" logging: dependency: transitive description: @@ -525,6 +537,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.2.0" + macros: + dependency: transitive + description: + name: macros + sha256: "0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536" + url: "https://pub.dev" + source: hosted + version: "0.1.2-main.4" matcher: dependency: transitive description: @@ -537,10 +557,10 @@ packages: dependency: transitive description: name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.8.0" + version: "0.11.1" melos: dependency: "direct dev" description: @@ -553,18 +573,18 @@ packages: dependency: transitive description: name: meta - sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 url: "https://pub.dev" source: hosted - version: "1.12.0" + version: "1.15.0" mime: dependency: transitive description: name: mime - sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e + sha256: "801fd0b26f14a4a58ccb09d5892c3fbdeff209594300a542492cf13fba9d247a" url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "1.0.6" mocktail: dependency: "direct dev" description: @@ -633,18 +653,18 @@ packages: dependency: transitive description: name: path_provider_windows - sha256: "8bc9f22eee8690981c22aa7fc602f5c85b497a6fb2ceb35ee5a5e5ed85ad8170" + sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 url: "https://pub.dev" source: hosted - version: "2.2.1" + version: "2.3.0" platform: dependency: transitive description: name: platform - sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec" + sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65" url: "https://pub.dev" source: hosted - version: "3.1.4" + version: "3.1.5" plugin_platform_interface: dependency: transitive description: @@ -681,10 +701,10 @@ packages: dependency: transitive description: name: provider - sha256: "9a96a0a19b594dbc5bf0f1f27d2bc67d5f95957359b461cd9feb44ed6ae75096" + sha256: c8a055ee5ce3fd98d6fc872478b03823ffdb448699c6ebdbbc71d59b596fd48c url: "https://pub.dev" source: hosted - version: "6.1.1" + version: "6.1.2" pub_semver: dependency: transitive description: @@ -713,74 +733,74 @@ packages: dependency: transitive description: name: pubspec_parse - sha256: c63b2876e58e194e4b0828fcb080ad0e06d051cb607a6be51a9e084f47cb9367 + sha256: c799b721d79eb6ee6fa56f00c04b472dcd44a30d258fac2174a6ec57302678f8 url: "https://pub.dev" source: hosted - version: "1.2.3" + version: "1.3.0" quiver: dependency: transitive description: name: quiver - sha256: b1c1ac5ce6688d77f65f3375a9abb9319b3cb32486bdc7a1e0fdf004d7ba4e47 + sha256: ea0b925899e64ecdfbf9c7becb60d5b50e706ade44a85b2363be2a22d88117d2 url: "https://pub.dev" source: hosted - version: "3.2.1" + version: "3.2.2" shared_preferences: dependency: "direct main" description: name: shared_preferences - sha256: d3bbe5553a986e83980916ded2f0b435ef2e1893dfaa29d5a7a790d0eca12180 + sha256: "746e5369a43170c25816cc472ee016d3a66bc13fcf430c0bc41ad7b4b2922051" url: "https://pub.dev" source: hosted - version: "2.2.3" + version: "2.3.2" shared_preferences_android: dependency: transitive description: name: shared_preferences_android - sha256: "8568a389334b6e83415b6aae55378e158fbc2314e074983362d20c562780fb06" + sha256: "480ba4345773f56acda9abf5f50bd966f581dac5d514e5fc4a18c62976bbba7e" url: "https://pub.dev" source: hosted - version: "2.2.1" + version: "2.3.2" shared_preferences_foundation: dependency: transitive description: name: shared_preferences_foundation - sha256: "7708d83064f38060c7b39db12aefe449cb8cdc031d6062280087bc4cdb988f5c" + sha256: c4b35f6cb8f63c147312c054ce7c2254c8066745125264f0c88739c417fc9d9f url: "https://pub.dev" source: hosted - version: "2.3.5" + version: "2.5.2" shared_preferences_linux: dependency: transitive description: name: shared_preferences_linux - sha256: "9f2cbcf46d4270ea8be39fa156d86379077c8a5228d9dfdb1164ae0bb93f1faa" + sha256: "580abfd40f415611503cae30adf626e6656dfb2f0cee8f465ece7b6defb40f2f" url: "https://pub.dev" source: hosted - version: "2.3.2" + version: "2.4.1" shared_preferences_platform_interface: dependency: transitive description: name: shared_preferences_platform_interface - sha256: "22e2ecac9419b4246d7c22bfbbda589e3acf5c0351137d87dd2939d984d37c3b" + sha256: "57cbf196c486bc2cf1f02b85784932c6094376284b3ad5779d1b1c6c6a816b80" url: "https://pub.dev" source: hosted - version: "2.3.2" + version: "2.4.1" shared_preferences_web: dependency: transitive description: name: shared_preferences_web - sha256: "9aee1089b36bd2aafe06582b7d7817fd317ef05fc30e6ba14bff247d0933042a" + sha256: d2ca4132d3946fec2184261726b355836a82c33d7d5b67af32692aff18a4684e url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "2.4.2" shared_preferences_windows: dependency: transitive description: name: shared_preferences_windows - sha256: "841ad54f3c8381c480d0c9b508b89a34036f512482c407e6df7a9c4aa2ef8f59" + sha256: "94ef0f72b2d71bc3e700e025db3710911bd51a71cefb65cc609dd0d9a982e3c1" url: "https://pub.dev" source: hosted - version: "2.3.2" + version: "2.4.1" shelf: dependency: transitive description: @@ -809,10 +829,10 @@ packages: dependency: transitive description: name: shelf_web_socket - sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" + sha256: "073c147238594ecd0d193f3456a5fe91c4b0abbcc68bf5cd95b36c4e194ac611" url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "2.0.0" sky_engine: dependency: transitive description: flutter @@ -838,10 +858,10 @@ packages: dependency: transitive description: name: source_map_stack_trace - sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" + sha256: c0713a43e323c3302c2abe2a1cc89aa057a387101ebd280371d6a6c9fa68516b url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" source_maps: dependency: transitive description: @@ -902,26 +922,26 @@ packages: dependency: "direct dev" description: name: test - sha256: "7ee446762c2c50b3bd4ea96fe13ffac69919352bd3b4b17bac3f3465edc58073" + sha256: "7ee44229615f8f642b68120165ae4c2a75fe77ae2065b1e55ae4711f6cf0899e" url: "https://pub.dev" source: hosted - version: "1.25.2" + version: "1.25.7" test_api: dependency: transitive description: name: test_api - sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" + sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" url: "https://pub.dev" source: hosted - version: "0.7.0" + version: "0.7.2" test_core: dependency: transitive description: name: test_core - sha256: "2bc4b4ecddd75309300d8096f781c0e3280ca1ef85beda558d33fcbedc2eead4" + sha256: "55ea5a652e38a1dfb32943a7973f3681a60f872f8c3a05a14664ad54ef9c6696" url: "https://pub.dev" source: hosted - version: "0.6.0" + version: "0.6.4" timing: dependency: transitive description: @@ -966,10 +986,10 @@ packages: dependency: transitive description: name: vm_service - sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" + sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" url: "https://pub.dev" source: hosted - version: "14.2.1" + version: "14.2.5" watcher: dependency: transitive description: @@ -986,14 +1006,22 @@ packages: url: "https://pub.dev" source: hosted version: "0.5.1" + web_socket: + dependency: transitive + description: + name: web_socket + sha256: "3c12d96c0c9a4eec095246debcea7b86c0324f22df69893d538fcc6f1b8cce83" + url: "https://pub.dev" + source: hosted + version: "0.1.6" web_socket_channel: dependency: transitive description: name: web_socket_channel - sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b + sha256: "9f187088ed104edd8662ca07af4b124465893caf063ba29758f97af57e61da8f" url: "https://pub.dev" source: hosted - version: "2.4.0" + version: "3.0.1" webkit_inspection_protocol: dependency: transitive description: @@ -1002,14 +1030,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.2.1" - win32: - dependency: transitive - description: - name: win32 - sha256: "464f5674532865248444b4c3daca12bd9bf2d7c47f759ce2617986e7229494a8" - url: "https://pub.dev" - source: hosted - version: "5.2.0" xdg_directories: dependency: transitive description: @@ -1030,10 +1050,10 @@ packages: dependency: transitive description: name: yaml_edit - sha256: "1579d4a0340a83cf9e4d580ea51a16329c916973bffd5bd4b45e911b25d46bfd" + sha256: e9c1a3543d2da0db3e90270dbb1e4eebc985ee5e3ffe468d83224472b2194a5f url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.2.1" sdks: - dart: ">=3.4.0 <4.0.0" - flutter: ">=3.19.0" + dart: ">=3.5.0 <4.0.0" + flutter: ">=3.22.0" diff --git a/pubspec.yaml b/pubspec.yaml index 442cfe4..eeb918f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -18,6 +18,10 @@ dependencies: flutter_localizations: sdk: flutter go_router: ^14.1.1 + + hotelyn_models: + path: packages/hotelyn_models + intl: 0.19.0 json_annotation: ^4.8.1 logger: ^2.3.0 From 4336d2e1d9cbe520c9678fac5a46b2043e4fdf67 Mon Sep 17 00:00:00 2001 From: Enzo Lizama Date: Tue, 3 Sep 2024 13:20:26 -0500 Subject: [PATCH 4/5] chore: update naming --- .github/workflows/hotelyn_models.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hotelyn_models.yaml b/.github/workflows/hotelyn_models.yaml index 5195c26..c60e633 100644 --- a/.github/workflows/hotelyn_models.yaml +++ b/.github/workflows/hotelyn_models.yaml @@ -16,4 +16,4 @@ jobs: build: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1 with: - working_directory: packages/esusu_models + working_directory: packages/hotelyn_models From 4a714449056cd267176c02018f58258984580711 Mon Sep 17 00:00:00 2001 From: Enzo Lizama Date: Tue, 3 Sep 2024 13:25:10 -0500 Subject: [PATCH 5/5] fix: update workflows --- .github/workflows/hotelyn_models.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hotelyn_models.yaml b/.github/workflows/hotelyn_models.yaml index c60e633..8155ea6 100644 --- a/.github/workflows/hotelyn_models.yaml +++ b/.github/workflows/hotelyn_models.yaml @@ -10,7 +10,7 @@ on: - "packages/hotelyn_models/**" - ".github/workflows/hotelyn_models.yaml" branches: - - master + - main jobs: build: