-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#258] Update the base template structure to follow the Clean Architecture folder structure #262
Conversation
@doannimble please rebase to clean up merge commit, and add necessary meta info for this PR 🙏 |
0c90961
to
3eaf713
Compare
@luongvo Rebased. Please let me know if we need to add more necessary infor 🙏 |
bricks/template/__brick__/{{project_name.snakeCase()}}/lib/main.dart
Outdated
Show resolved
Hide resolved
...late/__brick__/{{project_name.snakeCase()}}/lib/domain/usecases/user/get_users_use_case.dart
Outdated
Show resolved
Hide resolved
bricks/template/__brick__/{{project_name.snakeCase()}}/lib/core/errors/network_exceptions.dart
Outdated
Show resolved
Hide resolved
...template/__brick__/{{project_name.snakeCase()}}/lib/data/datasources/remote/api_service.dart
Outdated
Show resolved
Hide resolved
...e/__brick__/{{project_name.snakeCase()}}/test/api/repository/credential_repository_test.dart
Outdated
Show resolved
Hide resolved
...template/__brick__/{{project_name.snakeCase()}}/test/mocks/response/user_response_mocks.dart
Outdated
Show resolved
Hide resolved
...plate/__brick__/{{project_name.snakeCase()}}/test/usecases/user/get_users_use_case_test.dart
Outdated
Show resolved
Hide resolved
bricks/template/__brick__/{{project_name.snakeCase()}}/test/viewmodel/home_view_model_test.dart
Outdated
Show resolved
Hide resolved
@doannimble why do we have some commits tagged with #169 task in this PR? 🤔 If they belong to this #258, could you please "reword" them? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rest lgtm. You're getting familiar with Mason quite fast 💪
bricks/template/__brick__/{{project_name.snakeCase()}}/integration_test/my_home_page_test.dart
Outdated
Show resolved
Hide resolved
bricks/template/__brick__/{{project_name.snakeCase()}}/lib/app/screens/home/home_screen.dart
Show resolved
Hide resolved
db39886
to
1a5798a
Compare
1a5798a
to
fd3e46f
Compare
@doannimble We currently do not have any files in the |
Possible, nice suggestion imo cc @doannimble |
What happened 👀
Our current template base structure under lib/ folder is not up to date with the Clean Architecture folder structure. There is no clear separation between the data, domain, and presentation layers. Also, the current structure does not fully follow the Clean Architecture components naming. Therefore, the project outcome lacks a sound foundation to commence development.
Insight 📝
core
,app
,domain
,data
folderresponse
,api service
,repository_impl
todata
view model
,state
,screen
toapp
network exception
to `core_errors``models
,repository_abstract
,usecases
todomain
Proof Of Work 📹
The template is able to be built normally.