-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Move AppColor to DesignSystem #24227
Conversation
b81b93d
to
8a517d9
Compare
Generated by 🚫 Danger |
56b38c6
to
2dabbc5
Compare
|
App Name | ![]() |
|
Configuration | Release-Alpha | |
Build Number | pr24227-6f5331a | |
Version | 25.8 | |
Bundle ID | com.jetpack.alpha | |
Commit | 6f5331a | |
App Center Build | jetpack-installable-builds #10759 |
|
App Name | ![]() |
|
Configuration | Release-Alpha | |
Build Number | pr24227-6f5331a | |
Version | 25.8 | |
Bundle ID | org.wordpress.alpha | |
Commit | 6f5331a | |
App Center Build | WPiOS - One-Offs #11731 |
2dabbc5
to
ff23ec8
Compare
ff23ec8
to
358e1ae
Compare
"target" : { | ||
"containerPath" : "container:..\/Modules", | ||
"identifier" : "DesignSystemTests", | ||
"name" : "DesignSystemTests" |
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.
Disabled this for now as running it from Xcode targets messed up module bundles.
@@ -7814,6 +7809,9 @@ | |||
sk, | |||
); | |||
mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */; | |||
packageReferences = ( |
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.
It seems Apple changed how you add local packages at some point. I updated it using the latest mechanism. It now seems to do a better job recognizing when something in the local modules changes.
|
||
extension AppBrand { | ||
static var current: AppBrand { | ||
// TODO: remove this when unit tests not longer rely on `BuildSettings.current`. |
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.
Unfortunately, I had to add this as there are too many unit tests that test UI components in the app.
24bae9e
to
a9e7a32
Compare
This PR extracts
AppColors.swift
- another file used across multiple targets - to the existingDesignSystem
module.DesignSystem
Previously, the thinking was to deprecate it, but I suggest evolving it to ensure it properly represents the WordPress Design System.
I added
DesignSystem
as a dependency toWordPressUI
and re-exported its APIs, so you need to import onlyWordPressUI
– similar toUIKit
.To test: smoke test that the apps run and have correct tint colors.
Regression Notes
Potential unintended areas of impact
What I did to test those areas of impact (or what existing automated tests I relied on)
What automated tests I added (or what prevented me from doing so)
PR submission checklist:
RELEASE-NOTES.txt
if necessary.Testing checklist: