Skip to content

Commit a93cb6c

Browse files
authored
Merge pull request #11381 from wordpress-mobile/cocoapods-1-6-xcode-10-2
Xcode 10.2 compatibility
2 parents 4717860 + 74e5b05 commit a93cb6c

File tree

38 files changed

+90
-116
lines changed

38 files changed

+90
-116
lines changed

.circleci/config.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
version: 2.1
22

33
orbs:
4-
ios: wordpress-mobile/ios@0.0.20
4+
ios: wordpress-mobile/ios@0.0.25
55

66
workflows:
77
wordpress_ios:
88
jobs:
99
- ios/test:
1010
name: build_and_test
11+
xcode-version: "10.2.0"
1112
workspace: WordPress.xcworkspace
1213
scheme: WordPress
1314
device: iPhone XS
14-
ios-version: "12.1"
15+
ios-version: "12.2"
1516
# If you want to reset the CircleCI cache, increment the number in the cache prefix below
1617
cache-prefix: dependency-cache-v1

Podfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def aztec
2929
#pod 'WordPress-Aztec-iOS', :git => 'https://github.com/wordpress-mobile/AztecEditor-iOS.git', :commit => 'a916afc713e5d650f47fd03772022c01ca0ac8a8'
3030
#pod 'WordPress-Editor-iOS', :git => 'https://github.com/wordpress-mobile/AztecEditor-iOS.git', :commit => 'a916afc713e5d650f47fd03772022c01ca0ac8a8'
3131
##pod 'WordPress-Editor-iOS', :git => 'https://github.com/wordpress-mobile/AztecEditor-iOS.git', :tag => '1.5.0.beta.1'
32-
pod 'WordPress-Editor-iOS', '1.5.2'
32+
pod 'WordPress-Editor-iOS', '~> 1.6.0-beta'
3333
end
3434

3535
def wordpress_ui
@@ -120,7 +120,7 @@ target 'WordPress' do
120120
pod 'MRProgress', '0.8.3'
121121
pod 'Starscream', '3.0.6'
122122
pod 'SVProgressHUD', '2.2.5'
123-
pod 'ZendeskSDK', '2.2.0'
123+
pod 'ZendeskSDK', '2.3.1'
124124
pod 'ZIPFoundation', '~> 0.9.8'
125125

126126
## Automattic libraries
@@ -133,7 +133,7 @@ target 'WordPress' do
133133
#pod 'Automattic-Tracks-iOS', :git => 'https://github.com/Automattic/Automattic-Tracks-iOS.git', :commit => 'f6332b67448a4e9c2661513cbb98fa5bb12b7c8f'
134134

135135
pod 'NSURL+IDN', '0.3'
136-
pod 'WPMediaPicker', '1.3.2'
136+
pod 'WPMediaPicker', '1.3.3'
137137
pod 'Gridicons', '~> 0.16'
138138
## while PR is in review:
139139
## pod 'WPMediaPicker', :git => 'https://github.com/wordpress-mobile/MediaPicker-iOS.git', :commit => 'e546205cd2a992838837b0a4de502507b89b6e63'

Podfile.lock

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,9 @@ PODS:
193193
- Starscream (3.0.6)
194194
- SVProgressHUD (2.2.5)
195195
- UIDeviceIdentifier (1.1.4)
196-
- WordPress-Aztec-iOS (1.5.2)
197-
- WordPress-Editor-iOS (1.5.2):
198-
- WordPress-Aztec-iOS (= 1.5.2)
196+
- WordPress-Aztec-iOS (1.6.0-beta.1)
197+
- WordPress-Editor-iOS (1.6.0-beta.1):
198+
- WordPress-Aztec-iOS (= 1.6.0-beta.1)
199199
- WordPressAuthenticator (1.4.0-beta.1):
200200
- 1PasswordExtension (= 1.8.5)
201201
- Alamofire (= 4.7.3)
@@ -219,16 +219,16 @@ PODS:
219219
- CocoaLumberjack (~> 3.4)
220220
- FormatterKit/TimeIntervalFormatter (= 1.8.2)
221221
- WordPressUI (1.2.0)
222-
- WPMediaPicker (1.3.2)
222+
- WPMediaPicker (1.3.3)
223223
- wpxmlrpc (0.8.4)
224224
- yoga (0.59.3.React)
225-
- ZendeskSDK (2.2.0):
226-
- ZendeskSDK/Providers (= 2.2.0)
227-
- ZendeskSDK/UI (= 2.2.0)
228-
- ZendeskSDK/Core (2.2.0)
229-
- ZendeskSDK/Providers (2.2.0):
225+
- ZendeskSDK (2.3.1):
226+
- ZendeskSDK/Providers (= 2.3.1)
227+
- ZendeskSDK/UI (= 2.3.1)
228+
- ZendeskSDK/Core (2.3.1)
229+
- ZendeskSDK/Providers (2.3.1):
230230
- ZendeskSDK/Core
231-
- ZendeskSDK/UI (2.2.0):
231+
- ZendeskSDK/UI (2.3.1):
232232
- ZendeskSDK/Core
233233
- ZendeskSDK/Providers
234234
- ZIPFoundation (0.9.9)
@@ -265,14 +265,14 @@ DEPENDENCIES:
265265
- SimulatorStatusMagic
266266
- Starscream (= 3.0.6)
267267
- SVProgressHUD (= 2.2.5)
268-
- WordPress-Editor-iOS (= 1.5.2)
268+
- WordPress-Editor-iOS (~> 1.6.0-beta)
269269
- WordPressAuthenticator (~> 1.4.0-beta)
270270
- WordPressKit (~> 4.0.0-beta)
271271
- WordPressShared (~> 1.7.3)
272272
- WordPressUI (from `https://github.com/wordpress-mobile/WordPressUI-iOS.git`, tag `1.2.0`)
273-
- WPMediaPicker (= 1.3.2)
273+
- WPMediaPicker (= 1.3.3)
274274
- yoga (from `https://raw.githubusercontent.com/wordpress-mobile/gutenberg-mobile/v1.2.0/react-native-gutenberg-bridge/third-party-podspecs/yoga.podspec.json`)
275-
- ZendeskSDK (= 2.2.0)
275+
- ZendeskSDK (= 2.3.1)
276276
- ZIPFoundation (~> 0.9.8)
277277

278278
SPEC REPOS:
@@ -403,18 +403,18 @@ SPEC CHECKSUMS:
403403
Starscream: ef3ece99d765eeccb67de105bfa143f929026cf5
404404
SVProgressHUD: 1428aafac632c1f86f62aa4243ec12008d7a51d6
405405
UIDeviceIdentifier: 8f8a24b257a4d978c8d40ad1e7355b944ffbfa8c
406-
WordPress-Aztec-iOS: 16339a831d5d605ba9300b3722b75ba78e53cf09
407-
WordPress-Editor-iOS: b90649909f99c1d02cef2bb79c0641322b31fa52
406+
WordPress-Aztec-iOS: 3b12eea844ff38b3b82c66f3ed5b01b0fc2f6327
407+
WordPress-Editor-iOS: d3352429009ba5a75f6ae81deded7156b7a6ffb8
408408
WordPressAuthenticator: f0e30e8e555e33bea8e13e6f1245172d557a8ee4
409409
WordPressKit: 1ddb164dcca4a03ed8e9bd7c6050a8deea1264e0
410410
WordPressShared: 0853172642668b0fbf5c8d56e743896ebf9aae01
411411
WordPressUI: 44fe43a9c5c504dfd534286e39e1ce6ebcd69ff5
412-
WPMediaPicker: e50edd8f30f5d87288840941ef3ff9cd11860937
412+
WPMediaPicker: 6d23120b16c0f66987fd98ec2b294864e1df03bf
413413
wpxmlrpc: 6ba55c773cfa27083ae4a2173e69b19f46da98e2
414414
yoga: 0cb6e1c4f763ba12d1c825f2d6f863da6614a2a4
415-
ZendeskSDK: 44ee00338dd718495f0364369420ae11b389c878
415+
ZendeskSDK: cbd49d65efb2f2cdbdcaac84e618896ae87b861e
416416
ZIPFoundation: 89df685c971926b0323087952320bdfee9f0b6ef
417417

418-
PODFILE CHECKSUM: 7466f8cf3ef2c83e65afe23ae3659aa3f78b7ed0
418+
PODFILE CHECKSUM: 36cf7950699299ed7f9a616e828f39058dd614d9
419419

420420
COCOAPODS: 1.6.1

WordPress/Classes/Models/JetpackSiteRef.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ struct JetpackSiteRef: Hashable, Codable {
2323
self.username = username
2424
}
2525

26-
var hashValue: Int {
27-
return "\(username)-\(siteID)".hashValue
26+
public func hash(into hasher: inout Hasher) {
27+
hasher.combine("\(username)-\(siteID)")
2828
}
2929

3030
static func ==(lhs: JetpackSiteRef, rhs: JetpackSiteRef) -> Bool {

WordPress/Classes/Stores/StatsInsightsStore.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ enum InsightAction: Action {
1616
case receivedTodaysStats(_ todaysStats: StatsTodayInsight?)
1717
case receivedPostingActivity(_ postingActivity: StatsPostingStreakInsight?)
1818
case receivedTagsAndCategories(_ tagsAndCategories: StatsTagsAndCategoriesInsight?)
19-
case refreshInsights()
19+
case refreshInsights
2020

2121
// Insights details
2222
case receivedAllDotComFollowers(_ allDotComFollowers: StatsDotComFollowersInsight?)
2323
case receivedAllEmailFollowers(_ allDotComFollowers: StatsEmailFollowersInsight?)
24-
case refreshFollowers()
24+
case refreshFollowers
2525

2626
case receivedAllCommentsInsight(_ commentsInsight: StatsCommentsInsight?)
27-
case refreshComments()
27+
case refreshComments
2828

2929
case receivedAllTagsAndCategories(_ allTagsAndCategories: StatsTagsAndCategoriesInsight?)
30-
case refreshTagsAndCategories()
30+
case refreshTagsAndCategories
3131
}
3232

3333
enum InsightQuery {

WordPress/Classes/Utility/Analytics/WPAppAnalytics+Media.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public extension WPAppAnalytics {
88
/// - selectionMethod: The Media's method of selection.
99
/// - Returns: Dictionary
1010
///
11-
public class func properties(for media: Media, selectionMethod: MediaSelectionMethod) -> [String: Any] {
11+
class func properties(for media: Media, selectionMethod: MediaSelectionMethod) -> [String: Any] {
1212
var properties = WPAppAnalytics.properties(for: media)
1313
properties[MediaOriginKey] = String(describing: selectionMethod)
1414
return properties
@@ -19,7 +19,7 @@ public extension WPAppAnalytics {
1919
- parameter media: the Media object
2020
- returns: Dictionary
2121
*/
22-
@objc public class func properties(for media: Media) -> Dictionary<String, Any> {
22+
@objc class func properties(for media: Media) -> Dictionary<String, Any> {
2323
var properties = [String: Any]()
2424
properties[MediaProperties.mime] = media.mimeType()
2525
if let fileExtension = media.fileExtension(), !fileExtension.isEmpty {

WordPress/Classes/Utility/CoreDataHelper.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ extension NSManagedObjectContext {
6060
do {
6161
result = try count(for: request)
6262
} catch {
63-
DDLogError("Error counting objects [\(T.entityName)]: \(error)")
63+
DDLogError("Error counting objects [\(String(describing: T.entityName))]: \(error)")
6464
assertionFailure()
6565
}
6666

@@ -113,7 +113,7 @@ extension NSManagedObjectContext {
113113
do {
114114
result = try existingObject(with: objectID) as? T
115115
} catch {
116-
DDLogError("Error loading Object [\(T.entityName)]")
116+
DDLogError("Error loading Object [\(String(describing: T.entityName))]")
117117
}
118118

119119
return result
@@ -140,7 +140,7 @@ extension NSManagedObjectContext {
140140
do {
141141
objects = try fetch(request) as? [T]
142142
} catch {
143-
DDLogError("Error loading Objects [\(T.entityName)")
143+
DDLogError("Error loading Objects [\(String(describing: T.entityName))")
144144
assertionFailure()
145145
}
146146

WordPress/Classes/Utility/FormattableContent/FormattableContentRange.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extension FormattableContentRange {
3232
}
3333

3434
public extension FormattableContentRange where Self: LinkContentRange {
35-
public func apply(_ styles: FormattableContentStyles, to string: NSMutableAttributedString, withShift shift: Int) -> Shift {
35+
func apply(_ styles: FormattableContentStyles, to string: NSMutableAttributedString, withShift shift: Int) -> Shift {
3636
let shiftedRange = rangeShifted(by: shift)
3737

3838
apply(styles, to: string, at: shiftedRange)

WordPress/Classes/Utility/FormattableContent/FormattableMediaContent.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ extension FormattableMediaItem {
6262
public extension FormattableMediaItem {
6363
/// Known kinds of Media Entities
6464
///
65-
public enum Kind: String {
65+
enum Kind: String {
6666
case image = "image"
6767
case badge = "badge"
6868
}

WordPress/Classes/ViewRelated/Blog/SiteManagement/SiteSettingsViewController+SiteManagement.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public extension SiteSettingsViewController {
99

1010
/// Presents confirmation alert for Export Content
1111
///
12-
@objc public func confirmExportContent() {
12+
@objc func confirmExportContent() {
1313
tableView.deselectSelectedRowWithAnimation(true)
1414

1515
WPAppAnalytics.track(.siteSettingsExportSiteAccessed, with: self.blog)
@@ -72,7 +72,7 @@ public extension SiteSettingsViewController {
7272

7373
/// Requests site purchases to determine whether site is deletable
7474
///
75-
@objc public func checkSiteDeletable() {
75+
@objc func checkSiteDeletable() {
7676
tableView.deselectSelectedRowWithAnimation(true)
7777

7878
let status = NSLocalizedString("Checking purchases…", comment: "Overlay message displayed while checking if site has premium purchases")

0 commit comments

Comments
 (0)