Skip to content

Commit 7c617df

Browse files
committed
Create PointOfSale module and move files
1 parent a26c057 commit 7c617df

File tree

288 files changed

+179
-1585
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

288 files changed

+179
-1585
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "2600"
4+
version = "1.7">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES"
8+
buildArchitectures = "Automatic">
9+
<BuildActionEntries>
10+
<BuildActionEntry
11+
buildForTesting = "YES"
12+
buildForRunning = "YES"
13+
buildForProfiling = "YES"
14+
buildForArchiving = "YES"
15+
buildForAnalyzing = "YES">
16+
<BuildableReference
17+
BuildableIdentifier = "primary"
18+
BlueprintIdentifier = "PointOfSale"
19+
BuildableName = "PointOfSale"
20+
BlueprintName = "PointOfSale"
21+
ReferencedContainer = "container:">
22+
</BuildableReference>
23+
</BuildActionEntry>
24+
</BuildActionEntries>
25+
</BuildAction>
26+
<TestAction
27+
buildConfiguration = "Debug"
28+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
29+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
30+
shouldUseLaunchSchemeArgsEnv = "YES"
31+
shouldAutocreateTestPlan = "YES">
32+
</TestAction>
33+
<LaunchAction
34+
buildConfiguration = "Debug"
35+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
36+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
37+
launchStyle = "0"
38+
useCustomWorkingDirectory = "NO"
39+
ignoresPersistentStateOnLaunch = "NO"
40+
debugDocumentVersioning = "YES"
41+
debugServiceExtension = "internal"
42+
allowLocationSimulation = "YES">
43+
</LaunchAction>
44+
<ProfileAction
45+
buildConfiguration = "Release"
46+
shouldUseLaunchSchemeArgsEnv = "YES"
47+
savedToolIdentifier = ""
48+
useCustomWorkingDirectory = "NO"
49+
debugDocumentVersioning = "YES">
50+
<MacroExpansion>
51+
<BuildableReference
52+
BuildableIdentifier = "primary"
53+
BlueprintIdentifier = "PointOfSale"
54+
BuildableName = "PointOfSale"
55+
BlueprintName = "PointOfSale"
56+
ReferencedContainer = "container:">
57+
</BuildableReference>
58+
</MacroExpansion>
59+
</ProfileAction>
60+
<AnalyzeAction
61+
buildConfiguration = "Debug">
62+
</AnalyzeAction>
63+
<ArchiveAction
64+
buildConfiguration = "Release"
65+
revealArchiveInOrganizer = "YES">
66+
</ArchiveAction>
67+
</Scheme>

Modules/Package.swift

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ let package = Package(
6767
name: "Yosemite",
6868
targets: ["Yosemite"]
6969
),
70+
.library(
71+
name: "PointOfSale",
72+
targets: ["PointOfSale"]
73+
),
7074
],
7175
dependencies: [
7276
.package(url: "https://github.com/Alamofire/Alamofire", from: "5.2.0"),
@@ -230,6 +234,17 @@ let package = Package(
230234
.product(name: "WordPressEditor", package: "AztecEditor-iOS"),
231235
]
232236
),
237+
.target(
238+
name: "PointOfSale",
239+
dependencies: [
240+
"Experiments",
241+
"WooFoundation",
242+
"Yosemite",
243+
.product(name: "CocoaLumberjackSwift", package: "CocoaLumberjack"),
244+
.product(name: "Shimmer", package: "SwiftUI-Shimmer"),
245+
.product(name: "Kingfisher", package: "Kingfisher"),
246+
]
247+
),
233248
.testTarget(
234249
name: "ExperimentsTests",
235250
dependencies: [
@@ -295,7 +310,13 @@ let package = Package(
295310
.process("Resources"),
296311
.process("../NetworkingTests/Responses")
297312
]
298-
)
313+
),
314+
.testTarget(
315+
name: "PointOfSaleTests",
316+
dependencies: [
317+
"PointOfSale"
318+
]
319+
),
299320
]
300321
)
301322

@@ -374,6 +395,7 @@ enum XcodeSupport {
374395
"WordPressUI",
375396
"WPMediaPicker",
376397
"Yosemite",
398+
"PointOfSale",
377399
.product(name: "Alamofire", package: "Alamofire"),
378400
.product(name: "Algorithms", package: "swift-algorithms"),
379401
.product(name: "AutomatticAbout", package: "AutomatticAbout-swift"),

WooCommerce/Classes/POS/Analytics/WooAnalyticsEvent+PointOfSale.swift renamed to Modules/Sources/PointOfSale/Analytics/WooAnalyticsEvent+PointOfSale.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import struct Yosemite.POSSimpleProduct
55
import struct Yosemite.POSVariation
66
import enum WooFoundation.CountryCode
77
import enum Yosemite.PaymentMethod
8+
import struct WooFoundation.WooAnalyticsEvent
89

910
extension WooAnalyticsEvent {
1011
enum PointOfSale {

WooCommerce/Classes/POS/Analytics/WooAnalyticsEvent+PointOfSaleIneligibleUI.swift renamed to Modules/Sources/PointOfSale/Analytics/WooAnalyticsEvent+PointOfSaleIneligibleUI.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import struct WooFoundation.WooAnalyticsEvent
2+
13
extension WooAnalyticsEvent {
24
enum PointOfSaleIneligibleUI {
35
/// Event property key.

0 commit comments

Comments
 (0)