Skip to content

Commit 3427e0a

Browse files
committed
Centralize WordPressKit pod definition in Podfile
1 parent c203f0f commit 3427e0a

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
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:

0 commit comments

Comments
 (0)