-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the bug report button to the product info page near the barcode. (#…
…14) * Increment version to 0.1.0(10) Signed-off-by: Dmytro Turskyi <[email protected]> * Add commit activity in README.md. Signed-off-by: Dmytro Turskyi <[email protected]> * Fixed commit activity in README.md. Signed-off-by: Dmytro Turskyi <[email protected]> * Changed link to successful release Android build in README.md. Signed-off-by: Dmytro Turskyi <[email protected]> * Renamed "core" to "domain" and "components" to "core". Signed-off-by: Dmytro Turskyi <[email protected]> * fixed the path to the interface adapters layer in ci Signed-off-by: Dmytro Turskyi <[email protected]> * refactoring Signed-off-by: Dmytro Turskyi <[email protected]> * refactoring Signed-off-by: Dmytro Turskyi <[email protected]> * refactoring and adding more tests to code quality ci Signed-off-by: Dmytro Turskyi <[email protected]> * Add mockito. Signed-off-by: Dmytro Turskyi <[email protected]> * add timeout 40 seconds to remote data source test Signed-off-by: Dmytro Turskyi <[email protected]> * added tests Signed-off-by: Dmytro Turskyi <[email protected]> * lower coverage expectation Signed-off-by: Dmytro Turskyi <[email protected]> * lower coverage expectation Signed-off-by: Dmytro Turskyi <[email protected]> * Update README.md. Signed-off-by: Dmytro Turskyi <[email protected]> * Update README.md. Signed-off-by: Dmytro Turskyi <[email protected]> * Update README.md. Signed-off-by: Dmytro Turskyi <[email protected]> * Renamed "core" to "components" to be even more closely to clean architecture. Signed-off-by: Dmytro Turskyi <[email protected]> * Add codecov coverage. Signed-off-by: Dmytro Turskyi <[email protected]> * Updated dependencies in pubspec.yaml for flutter_bloc, dart_openai, dio, envied, feedback, flutter_bloc, logger, openfoodfacts, package_info_plus, shared_preferences, build_runner, envied_generator, flutter_lints, and package_info_plus. Also added error handling in the Resources class in components/interface_adapters. Signed-off-by: Dmytro Turskyi <[email protected]> * feat(ui): 🖥️ Update product info body method signature - Updated the method signature of `_sendFeedback` in the `ProductInfoBody` widget to accept named parameters for `feedback` and `packageInfo`. - This change enhances readability and maintainability of the code. authored-by: Dmytro <[email protected]> Signed-off-by: Dmytro Turskyi <[email protected]> * Add bug report button. :recycle: Update dependencies versions in android/app/build.gradle and pubspec.lock, refactor code in components/interface_adapters In this commit, I updated the Firebase dependencies versions in android/app/build.gradle and pubspec.lock to the latest ones. Additionally, I refactored the code in components/interface_adapters to improve readability and maintainability. Signed-off-by: Dmytro Turskyi <[email protected]> --------- Signed-off-by: Dmytro Turskyi <[email protected]>
- Loading branch information
Showing
88 changed files
with
2,508 additions
and
622 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Code Quality | |
on: [ push ] | ||
|
||
jobs: | ||
check_lint_errors: | ||
check-code-quality-and-tests: | ||
if: ${{ !github.event.pull_request.draft }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -32,10 +32,22 @@ jobs: | |
- name: Get packages | ||
run: flutter pub get | ||
|
||
- name: Check format errors | ||
run: dart format --set-exit-if-changed . | ||
|
||
- name: Check lint errors | ||
run: flutter analyze . | ||
|
||
- name: Run tests with coverage and random order | ||
run: flutter test --coverage --test-randomize-ordering-seed random | ||
|
||
- name: Very Good Coverage | ||
uses: VeryGoodOpenSource/[email protected] | ||
with: | ||
min_coverage: 35 | ||
min_coverage: 33.9 | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
slug: Turskyi/ethical_scanner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
void main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...ore/entities/lib/src/barcode/barcode.dart → ...ib/src/localized_code/localized_code.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ties/lib/src/rest_client/rest_client.dart → ...ties/lib/src/rest_client/rest_client.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
void main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
.../use_cases/get_product_info_use_case.dart → .../use_cases/get_product_info_use_case.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
import 'package:entities/entities.dart'; | ||
import 'package:use_cases/use_cases.dart'; | ||
|
||
class GetProductInfoUseCase implements UseCase<Future<ProductInfo>, Barcode> { | ||
class GetProductInfoUseCase | ||
implements UseCase<Future<ProductInfo>, LocalizedCode> { | ||
const GetProductInfoUseCase(this._productInfoGateway); | ||
|
||
final ProductInfoGateway _productInfoGateway; | ||
|
||
@override | ||
Future<ProductInfo> call([Barcode barcode = const Barcode(code: '')]) => | ||
Future<ProductInfo> call([ | ||
LocalizedCode barcode = const LocalizedCode(code: ''), | ||
]) => | ||
_productInfoGateway.getProductInfoAsFuture(barcode); | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
components/interface_adapters/lib/src/ui/modules/home/home_event.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.