-
Notifications
You must be signed in to change notification settings - Fork 117
Move all remaining frameworks to SwiftPM modules #15678
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
base: trunk
Are you sure you want to change the base?
Conversation
Generated by 🚫 Danger |
|
edf38c1
to
be91cf8
Compare
b0bc779
to
8fb55fd
Compare
project: | ||
file: ../../../../../Hardware/Hardware.xcodeproj | ||
target: | ||
name: Hardware | ||
sources: | ||
include: | ||
- ../../../../../Modules/Sources/Hardware/ |
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.
See #15707 for the motivation of these and all the other changes to the Sourcery configuration files.
gravatarUrl: .fake() | ||
) | ||
} | ||
} |
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.
All the types removed from here went into NetworkingCore.
8fb55fd
to
dad29d7
Compare
95edd0f
to
5036ef3
Compare
5036ef3
to
95e7c48
Compare
BlueprintIdentifier = "Hardware" | ||
BuildableName = "Hardware" | ||
BlueprintName = "Hardware" | ||
ReferencedContainer = "container:"> |
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.
A bit frustrating the diff considers this the Storage scheme being moved and update to Hardware, rather than it being the Hardware scheme being moved.
Or maybe something got lost in creating the schemes for the modules and that's why the diff can't pair them 🤔
public func validate(data: Data) throws { | ||
// no-op | ||
} | ||
} |
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 looks like a new file, but existed already. I guess the new init
and the various public
are too much for the diff engine.
woocommerce-ios/Networking/Sources/Core/Validators/PlaceholderDataValidator.swift
Lines 1 to 9 in ae05dab
import Foundation | |
/// Placeholder implementation for `ResponseDataValidator`. | |
/// | |
final class PlaceholderDataValidator: ResponseDataValidator { | |
func validate(data: Data) throws { | |
// no-op | |
} | |
} |
@@ -10,7 +10,7 @@ final class FileStorageTests: XCTestCase { | |||
override func setUp() { | |||
super.setUp() | |||
subject = PListFileStorage() | |||
fileURL = Bundle(for: FileStorageTests.self) | |||
fileURL = Bundle.module |
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.
Uses .module
instead of .storage
because in this case we want to load from the test module, not the Storage module under test.
/// Default Expectation Timeout | ||
/// | ||
static let expectationTimeout = TimeInterval(10) | ||
} |
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.
Was referenced from Yosemite. Duplicated it for clarity.
public func responseDataValidator() -> ResponseDataValidator { | ||
PlaceholderDataValidator() | ||
} | ||
} |
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.
Looks like a new file but is a modification of an existing one:
woocommerce-ios/Networking/Sources/Extended/Extensions/URLRequest+Request.swift
Lines 1 to 8 in ae05dab
import Foundation | |
/// Makes URLRequest conform to Request. | |
extension URLRequest: Request { | |
func responseDataValidator() -> ResponseDataValidator { | |
PlaceholderDataValidator() | |
} | |
} |
95e7c48
to
5c36aba
Compare
4c41378
to
4229c39
Compare
…esConfigurationViewModel`.
Tests fail because of Fakes, which hasn't been migrated yet.
This is required to make the watchOS app compile with the new setup. Before, the code relied on `canImport(Aztec)`, but that check always passes in SwiftPM.
Tests fail because of the dependency on Fakes
It was simpler than iterating build after build to identify the ones that needed it.
4229c39
to
47efd82
Compare
Description
Moves the following frameworks and their tests to Swift packages in
Modules/
:The only framework that hasn't been moved is WordPressAuthenticator because of circular Obective-C-Swift dependencies. Addressing that is out of scope.
Steps to reproduce
Testing information
Screenshots
RELEASE-NOTES.txt
if necessary.