{"id":50315820,"url":"https://github.com/oriolpiera/shoppingcomparationapp","last_synced_at":"2026-06-05T23:01:10.200Z","repository":{"id":360541967,"uuid":"1250604196","full_name":"oriolpiera/ShoppingComparationApp","owner":"oriolpiera","description":"App to compare groceries products prices","archived":false,"fork":false,"pushed_at":"2026-05-26T20:59:33.000Z","size":62,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-26T22:20:38.093Z","etag":null,"topics":["comparation","flutter","shopping"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oriolpiera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-26T19:50:26.000Z","updated_at":"2026-05-26T20:59:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/oriolpiera/ShoppingComparationApp","commit_stats":null,"previous_names":["oriolpiera/shoppingcomparationapp"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/oriolpiera/ShoppingComparationApp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oriolpiera%2FShoppingComparationApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oriolpiera%2FShoppingComparationApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oriolpiera%2FShoppingComparationApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oriolpiera%2FShoppingComparationApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oriolpiera","download_url":"https://codeload.github.com/oriolpiera/ShoppingComparationApp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oriolpiera%2FShoppingComparationApp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33630999,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["comparation","flutter","shopping"],"created_at":"2026-05-29T00:01:10.960Z","updated_at":"2026-06-05T23:01:10.172Z","avatar_url":"https://github.com/oriolpiera.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ShoppingComparationApp\n\nApp to compare grocery product prices.\n\n## Repository scaffolding conventions\n\nThe project follows a **feature-first** structure with separation between UI, domain logic, and data access.\n\n### Top-level Flutter layout\n\n- `lib/main.dart` → process entrypoint (`runApp`)\n- `lib/app/` → app shell (theme, root widget wiring)\n- `lib/core/` → shared cross-feature infrastructure\n- `lib/features/` → isolated feature modules\n- `test/` → automated tests\n\n### Feature module convention\n\nEach feature should keep layers separated:\n\n- `presentation/` → screens and widgets (UI only)\n- `domain/` → entities and business rules\n- `data/` → repositories, datasources, mappers\n\nExample (current `home` feature):\n\n- `lib/features/home/presentation/home_page.dart`\n- `lib/features/home/domain/entities/home_section.dart`\n- `lib/features/home/data/repositories/home_sections_repository.dart`\n\n## Current status\n\n- App boots through `PriceComparatorApp`\n- Root screen delegated to `HomePage`\n- Base folders are ready for adding new features without mixing UI and business logic\n\n## Local checks\n\nThis repo includes a local `.pre-commit-config.yaml` with:\n- `dart format --output=none --set-exit-if-changed`\n- `flutter analyze --no-fatal-infos`\n\nNotes:\n- `dart format` is enforced in check mode, so it fails if a file would be reformatted.\n- `flutter analyze` currently ignores `info` diagnostics in pre-commit because the repo still has 4 inherited `use_build_context_synchronously` infos in `lib/features/home/presentation/model_records_pages.dart`.\n- To run the hooks locally, make sure `pre-commit` is available in your shell. In this environment that means activating `pyenv` env `py3` first.\n\nExample:\n\n```bash\npyenv activate py3\npre-commit run --all-files\n```\n\n## PR web preview workflow\n\nPull requests trigger `.github/workflows/preview.yml`, which runs:\n- `flutter pub get`\n- `dart run build_runner build --delete-conflicting-outputs`\n- `flutter test`\n- `flutter build web --release --dart-define=WEB_PREVIEW=true`\n- Firebase Hosting preview deploy\n- PR comment with the preview URL\n\n### Required GitHub secrets\n\nConfigure these repository secrets for preview deploys:\n- `FIREBASE_SERVICE_ACCOUNT`: service account JSON for Firebase Hosting deploy\n- `FIREBASE_PROJECT_ID`: Firebase project id\n\n## Android release APK workflow\n\nPublishing a GitHub Release triggers `.github/workflows/release-android-apk.yml` (also runnable manually via `workflow_dispatch`), which runs:\n- `flutter pub get`\n- `dart run build_runner build --delete-conflicting-outputs`\n- `flutter create . --platforms android`\n- `flutter build apk --release`\n- Upload `build/app/outputs/flutter-apk/*.apk` as an Actions artifact\n- When triggered by a published GitHub Release, attach the APK to the Release assets\n\n### Signing strategy\n\nCurrent workflow builds a release APK with the default Android signing available in CI (no custom upload keystore configured yet).\n\nIf you want Play Store-ready signing, add your own keystore and `key.properties` wiring for the Android project, then provide the required secrets in GitHub Actions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foriolpiera%2Fshoppingcomparationapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foriolpiera%2Fshoppingcomparationapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foriolpiera%2Fshoppingcomparationapp/lists"}