Skip to content

Commit b84e421

Browse files
authored
Merge pull request #6973 from woocommerce/issue/5108-CurrencyFormatter-in-Tools
Create WooFoundation library and move CurrencyFormatter
2 parents 27d6e31 + 690e58a commit b84e421

File tree

126 files changed

+1009
-56
lines changed

Some content is hidden

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

126 files changed

+1009
-56
lines changed

.swiftlint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ included:
44
- Networking
55
- Storage
66
- Yosemite
7+
- WooFoundation
78

89
# Rules
910
whitelist_rules:

Podfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,30 @@ target 'YosemiteTests' do
110110
yosemite_pods
111111
end
112112

113+
# WooFoundation Layer:
114+
# ===============
115+
#
116+
def woofoundation_pods
117+
pod 'CocoaLumberjack', '~> 3.7.4'
118+
pod 'CocoaLumberjack/Swift', '~> 3.7.4'
119+
end
120+
121+
# Tools Target:
122+
# ================
123+
#
124+
target 'WooFoundation' do
125+
project 'WooFoundation/WooFoundation.xcodeproj'
126+
woofoundation_pods
127+
end
128+
129+
# Unit Tests
130+
# ==========
131+
#
132+
target 'WooFoundationTests' do
133+
project 'WooFoundation/WooFoundation.xcodeproj'
134+
woofoundation_pods
135+
end
136+
113137
# Networking Layer:
114138
# =================
115139
#

Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,6 @@ SPEC CHECKSUMS:
185185
ZendeskSupportProvidersSDK: 2bdf8544f7cd0fd4c002546f5704b813845beb2a
186186
ZendeskSupportSDK: 3a8e508ab1d9dd22dc038df6c694466414e037ba
187187

188-
PODFILE CHECKSUM: 2609413d245eaea4b659b95ba0990011105c7d20
188+
PODFILE CHECKSUM: 5159eb591fc5a50785fa061b8be01bc1bca1938b
189189

190190
COCOAPODS: 1.11.2

WooCommerce.xcworkspace/contents.xcworkspacedata

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

WooCommerce/Classes/Extensions/Order+CardPresentPayment.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Foundation
22
import Yosemite
3+
import WooFoundation
34
import protocol Storage.StorageManagerType
45

56
/// Extension helpers for `Order` related with Card Present Payments

WooCommerce/Classes/Model/Coupon+Woo.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Foundation
22
import Yosemite
33
import UIKit
4+
import WooFoundation
45

56
extension Coupon.DiscountType {
67
/// Localized name to be displayed for the discount type.

WooCommerce/Classes/Model/TopEarnerStatsItem+Woo.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Foundation
22
import Yosemite
3+
import WooFoundation
34

45

56
// MARK: - TopEarnerStatsItem Helper Methods

WooCommerce/Classes/ServiceLocator/ServiceLocator.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Experiments
44
import Storage
55
import Yosemite
66
import Hardware
7+
import WooFoundation
78

89
/// Provides global dependencies.
910
///

WooCommerce/Classes/Tools/AggregateData/AggregateDataHelper.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Foundation
22
import Yosemite
3+
import WooFoundation
34

45

56
// MARK: - A helper class for calculating aggregate data

WooCommerce/Classes/Tools/UnitInputFormatter/PriceInputFormatter.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Foundation
2+
import WooFoundation
23

34
/// `UnitInputFormatter` implementation for decimal price input.
45
///

0 commit comments

Comments
 (0)