diff --git a/Zom/Cartfile b/Zom/Cartfile index 0e9dcd9..19c5791 100644 --- a/Zom/Cartfile +++ b/Zom/Cartfile @@ -1,5 +1,5 @@ github "ChatSecure/Mantle" "2.1.0_headerfix" -github "nolanw/HTMLReader" "1d0dda3" +github "nolanw/HTMLReader" ~> 2.1.1 github "AFNetworking/AFNetworking" ~> 3.1 github "TheLevelUp/ZXingObjC" ~> 3.2.2 github "soffes/SAMKeychain" ~> 1.5 diff --git a/Zom/Cartfile.resolved b/Zom/Cartfile.resolved index 2719415..ed4a6a6 100644 --- a/Zom/Cartfile.resolved +++ b/Zom/Cartfile.resolved @@ -1,4 +1,4 @@ -github "AFNetworking/AFNetworking" "3.1.0" +github "AFNetworking/AFNetworking" "3.2.0" github "ChatSecure/Mantle" "4c1a09cb0c0811956cd35262340e42b940971cbb" github "PureLayout/PureLayout" "v3.0.2" github "TTTAttributedLabel/TTTAttributedLabel" "2.0.0" @@ -6,6 +6,6 @@ github "TheLevelUp/ZXingObjC" "3.2.2" github "facebook/KVOController" "v1.2.0" github "jdg/MBProgressHUD" "1.1.0" github "mattt/FormatterKit" "1.8.2" -github "nolanw/HTMLReader" "1d0dda3849ff719fa15a0c4cac0118c70ef2217c" +github "nolanw/HTMLReader" "v2.1.1" github "soffes/SAMKeychain" "v1.5.3" github "xmartlabs/XLForm" "4.0.0" diff --git a/Zom/Zom.xcodeproj/project.pbxproj b/Zom/Zom.xcodeproj/project.pbxproj index f72549d..fe142c4 100644 --- a/Zom/Zom.xcodeproj/project.pbxproj +++ b/Zom/Zom.xcodeproj/project.pbxproj @@ -1664,7 +1664,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0920; - LastUpgradeCheck = 0910; + LastUpgradeCheck = 0930; TargetAttributes = { A065EDA2202C50640084D788 = { CreatedOnToolsVersion = 9.2; @@ -3066,11 +3066,13 @@ CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; @@ -3103,11 +3105,13 @@ CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; diff --git a/Zom/Zom/Classes/View Controllers/ZomFingerprintBaseViewController.swift b/Zom/Zom/Classes/View Controllers/ZomFingerprintBaseViewController.swift index 7a109f1..b4b97ee 100644 --- a/Zom/Zom/Classes/View Controllers/ZomFingerprintBaseViewController.swift +++ b/Zom/Zom/Classes/View Controllers/ZomFingerprintBaseViewController.swift @@ -71,6 +71,9 @@ class ZomFingerprintBaseViewController: UIViewController { .filter() { (device) -> Bool in return device.publicIdentityKeyData != nil && device.trustLevel != .removed } + .sorted(by: { (device1, device2) -> Bool in + return device1.lastSeenDate.compare(device2.lastSeenDate) == .orderedDescending + }) if let account = buddy.account(with: transaction) { self.otrFingerprints = OTRProtocolManager.encryptionManager.otrKit.fingerprints( @@ -165,7 +168,7 @@ class ZomFingerprintBaseViewController: UIViewController { } /** - - returns: the buddy' `displayName` or "your buddy" as a default value, if no buddy or no + - returns: the buddy's `displayName` or "your buddy" as a default value, if no buddy or no `displayName`. */ func buddyName() -> String { diff --git a/Zom/Zom/Classes/View Controllers/ZomVerificationDetailViewController.swift b/Zom/Zom/Classes/View Controllers/ZomVerificationDetailViewController.swift index faa777d..636a326 100644 --- a/Zom/Zom/Classes/View Controllers/ZomVerificationDetailViewController.swift +++ b/Zom/Zom/Classes/View Controllers/ZomVerificationDetailViewController.swift @@ -24,8 +24,8 @@ class ZomVerificationDetailViewController: ZomFingerprintBaseViewController, UIT super.viewDidLoad() if let titleView = navigationItem.titleView as? OTRTitleSubtitleView { - titleView.titleLabel.text = NSLocalizedString("Zom Codes", - comment: "Title for code verification detail scene") + titleView.titleLabel.text = NSLocalizedString("Zom Codes", comment: + "Title for code verification detail scene") } descriptionLb.text = NSLocalizedString("Make sure the codes match your friend's latest Zom codes on his or her phone.", diff --git a/Zom/Zom/Classes/View Controllers/ZomVerificationViewController.xib b/Zom/Zom/Classes/View Controllers/ZomVerificationViewController.xib index 5d10a29..71a4c7c 100644 --- a/Zom/Zom/Classes/View Controllers/ZomVerificationViewController.xib +++ b/Zom/Zom/Classes/View Controllers/ZomVerificationViewController.xib @@ -1,11 +1,11 @@ - + - + @@ -38,17 +38,17 @@ -