Skip to content

Commit

Permalink
Dev-01-08-2021 (#61) (#65)
Browse files Browse the repository at this point in the history
* refact(Service): Add secure storage option for password and token

* refact(Interceptors): Access providers using a provider reference instead of provider container

Instantiating a new ProviderContainer to read providers resulted in auth provider being recreated on every network request. The only reason it worked and slipped by is because it restored it's values using local preferences. However, loading the token asynchronously from the secure storage resulted in the initial empty token being attached and therefore a TokenMissingException. Same goes for other user details in refresh token interceptor.

* refact(Providers): Refactor ApiService to inject Dio and DioService through external dependency providers.

* chore(Pubspec): Updated dependencies

Signed-off-by: arafaysaleem <[email protected]>

* refact(Widgets): refactor form validation logic into an external utility class (#53)

* Add unit tests for form validations (#54)

test(Helpers): Add unit tests for form validator methods

Signed-off-by: arafaysaleem <[email protected]>

* Add units tests for (de)serialization of models  (#55)

* wip(Test-Models): add unit tests for user model

* wip(Test-Models): add unit tests for genre model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for role model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for seat model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): refactor unit tests for user model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for movie role model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for user booking show model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): refactor unit tests for all models

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for booking model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for user payment model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for user booking model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): refactor unit tests for user payment model to setup common variables

* wip(Test-Models): refactor unit tests for user booking show model to setup common variables

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): refactor unit tests for movie role model to setup common variables

Signed-off-by: arafaysaleem <[email protected]>

* refact(Test-Helpers): Add parent group for all groups and align folder structure

Signed-off-by: arafaysaleem <[email protected]>

* chore(Coverage): Setup codeCov and coverage helper script

Signed-off-by: arafaysaleem <[email protected]>

* ci(Test-PR): Add flutter tests and coverage reporting

Signed-off-by: arafaysaleem <[email protected]>

* ci(Test-PR): reduce min coverage to 4.5

* chore(Coverage): adding PR base coverage report

Signed-off-by: arafaysaleem <[email protected]>

* chore(Coverage): add more exclusions to code cov

Signed-off-by: arafaysaleem <[email protected]>

* ci(Test-PR): include workflow to run on PRs to test branches

Signed-off-by: arafaysaleem <[email protected]>

* Supply base URL from dart define (#56)

* refact(Services): Add a base url to Api endpoints helper from dart environment

Signed-off-by: arafaysaleem <[email protected]>

* refact(Providers): Load base url from Api Endpoints class instead

Signed-off-by: arafaysaleem <[email protected]>

* ci(Test/Release): use dart define arg to supply base url at runtime/build

Signed-off-by: arafaysaleem <[email protected]>

* ci(Labeler): add tests label incase of changes to test dir

Signed-off-by: arafaysaleem <[email protected]>

* hotfix(Screen): use hook's value notifier to update form state instead

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for payment model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): refactor unit tests for all models

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for show time model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for show model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for theater model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for movie model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for show seating model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add update json unit test for booking model

Signed-off-by: arafaysaleem <[email protected]>

* refact: replace all DateTime.now() with clock.now()

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add initial factory unit test for all relavant models

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): refactor toUpdateJson unit test in all models for max coverage

Signed-off-by: arafaysaleem <[email protected]>

* test(Models): add flutter test to pre-release analysis (#57)

* wip(Test-Models): add unit tests for user model

* wip(Test-Models): add unit tests for genre model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for role model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for seat model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): refactor unit tests for user model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for movie role model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for user booking show model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): refactor unit tests for all models

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for booking model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for user payment model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for user booking model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): refactor unit tests for user payment model to setup common variables

* wip(Test-Models): refactor unit tests for user booking show model to setup common variables

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): refactor unit tests for movie role model to setup common variables

Signed-off-by: arafaysaleem <[email protected]>

* refact(Test-Helpers): Add parent group for all groups and align folder structure

Signed-off-by: arafaysaleem <[email protected]>

* chore(Coverage): Setup codeCov and coverage helper script

Signed-off-by: arafaysaleem <[email protected]>

* ci(Test-PR): Add flutter tests and coverage reporting

Signed-off-by: arafaysaleem <[email protected]>

* ci(Test-PR): reduce min coverage to 4.5

* chore(Coverage): adding PR base coverage report

Signed-off-by: arafaysaleem <[email protected]>

* chore(Coverage): add more exclusions to code cov

Signed-off-by: arafaysaleem <[email protected]>

* ci(Test-PR): include workflow to run on PRs to test branches

Signed-off-by: arafaysaleem <[email protected]>

* Supply base URL from dart define (#56)

* refact(Services): Add a base url to Api endpoints helper from dart environment

Signed-off-by: arafaysaleem <[email protected]>

* refact(Providers): Load base url from Api Endpoints class instead

Signed-off-by: arafaysaleem <[email protected]>

* ci(Test/Release): use dart define arg to supply base url at runtime/build

Signed-off-by: arafaysaleem <[email protected]>

* ci(Labeler): add tests label incase of changes to test dir

Signed-off-by: arafaysaleem <[email protected]>

* hotfix(Screen): use hook's value notifier to update form state instead

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for payment model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): refactor unit tests for all models

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for show time model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for show model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for theater model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for movie model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add unit tests for show seating model

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add update json unit test for booking model

Signed-off-by: arafaysaleem <[email protected]>

* refact: replace all DateTime.now() with clock.now()

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): add initial factory unit test for all relavant models

Signed-off-by: arafaysaleem <[email protected]>

* wip(Test-Models): refactor toUpdateJson unit test in all models for max coverage

Signed-off-by: arafaysaleem <[email protected]>

* ci(Release-Build): add flutter test to pre release analysis

Signed-off-by: arafaysaleem <[email protected]>

* test(Enums): add unit tests for extensions on enums (#58)

* refact(Enums): Fix names of extension classes on enums

Signed-off-by: arafaysaleem <[email protected]>

* test(Enums): add unit tests for extensions on enums

Signed-off-by: arafaysaleem <[email protected]>

* chore(Coverage): generate new coverage suite (#59)

Signed-off-by: arafaysaleem <[email protected]>

* Upgrade linting to flutter_lints and update dependencies (#60)

* chore(Pubspec): update dependencies

Signed-off-by: arafaysaleem <[email protected]>

* chore(Lint): Replace effective dart with flutter_lints

Signed-off-by: arafaysaleem <[email protected]>

* refact: fix linting errors in all files

Signed-off-by: arafaysaleem <[email protected]>
  • Loading branch information
arafaysaleem authored Aug 1, 2021
2 parents 32f0c7c + dec0b9b commit 33045c4
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 33045c4

Please sign in to comment.