Skip to content

Commit 20ab06e

Browse files
committed
Centralize WordPressKit pod definition in Podfile
1 parent c203f0f commit 20ab06e

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

Podfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ def tracks
3333
# pod 'Automattic-Tracks-iOS', :path => '../Automattic-Tracks-iOS'
3434
end
3535

36+
def wordpress_kit
37+
# To allow pod to pick up beta versions use -beta. E.g., 1.1.7-beta.1
38+
pod 'WordPressKit', '~> 4.49.0'
39+
# pod 'WordPressKit', :git => 'https://github.com/wordpress-mobile/WordPressKit-iOS.git', :branch => ''
40+
end
41+
3642
def keychain
3743
pod 'KeychainAccess', '~> 4.2.2'
3844
end
@@ -115,10 +121,7 @@ def yosemite_pods
115121
alamofire
116122
stripe_terminal
117123
cocoa_lumberjack
118-
119-
# To allow pod to pick up beta versions use -beta. E.g., 1.1.7-beta.1
120-
pod 'WordPressKit', '~> 4.49.0'
121-
# pod 'WordPressKit', :git => 'https://github.com/wordpress-mobile/WordPressKit-iOS.git', :branch => ''
124+
wordpress_kit
122125

123126
aztec
124127
end
@@ -174,9 +177,7 @@ def networking_pods
174177
# Used for HTML parsing
175178
aztec
176179

177-
# To allow pod to pick up beta versions use -beta. E.g., 1.1.7-beta.1
178-
pod 'WordPressKit', '~> 4.49.0'
179-
# pod 'WordPressKit', :git => 'https://github.com/wordpress-mobile/WordPressKit-iOS.git', :branch => ''
180+
wordpress_kit
180181
end
181182

182183
# Networking Target:

Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,6 @@ SPEC CHECKSUMS:
178178
ZendeskSupportProvidersSDK: 2bdf8544f7cd0fd4c002546f5704b813845beb2a
179179
ZendeskSupportSDK: 3a8e508ab1d9dd22dc038df6c694466414e037ba
180180

181-
PODFILE CHECKSUM: 3b1ba1b6abc1062da9355f08123c1118559edf9c
181+
PODFILE CHECKSUM: 55531c64b396f477ea6e3814ab400e9b14d0bf48
182182

183183
COCOAPODS: 1.11.3

0 commit comments

Comments
 (0)