-
Notifications
You must be signed in to change notification settings - Fork 116
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
Reorganize Core files #3040
Reorganize Core files #3040
Conversation
Affected Apps: Student, Teacher, Parent
|
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.
This is probably caused by an empty folder in your local repository. Git ignores empty folders but the project generation script doesn't. Please just remove the folder itself. It should not be there on a fresh checkout/clone.
I don't have any of these and since we can't affect empty folders in a commit I believe a local cleanup may be needed (or a clean checkout) if you have some leftovers. |
3630268
to
7209dc8
Compare
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.
I welcome these changes, thanks for taking the time to do them! Feedback:
-
I think we could omit the Common prefix on subfolders. I would also stick to the MVVM layer naming and rename
Models
toModel
and theUI
folder toView
as we have with other modules. -
We could also omit the
Extensions
suffix from these directories. I don't feel the added value but it's harder to read.
The Common prefix felt a bit more expressive to me in this case, but I'm not entirely against removing it.
I agree, will change them! (note to self: Webkit -> WebKit) |
Since we have I'd also drop the prefixes but I'm hesitant on the MVVM splitting here because they are not really implemented that way. In Horizon, I did split the common folder but it was easier because everything was written from scratch with separation of concerns in mind. |
affects: Student, Teacher, Parent release note: none
370426c
to
6cc1614
Compare
c8910f8
to
76e9de6
Compare
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.
Nice! 👍
affects: Student, Teacher, Parent
release note: none
Reorganized the files in
Core
project. See screenshot below.Common
andFeatures
now.CoreTests
structure withCore
structure.coverage/config.json
Some notes:
Logger
vsAnalytics
vsScreenViewLogger
vsPageViewAnalytics
. But they are all inCommonModels
andCommonUI
now.SwiftUIViews
,ViewModifiers
, UIViews, ViewModel, Viewables, etc. Plus there isInstUI
. But they are all inCommonUI
now.CommonUI
has both UIKit and SwiftUI related types. It was not trivial to separate the two, so I left them together.Test plan
Build and run all three apps.
I suggest to checkout and see locally because on github it's slow.
Screenshots