Skip to content

Commit 5a8e7ab

Browse files
Merge pull request #1098 from ChatSecure/xcode_10.2
Xcode 10.2
2 parents f0a8a94 + 81d5826 commit 5a8e7ab

File tree

53 files changed

+203
-182
lines changed

Some content is hidden

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

53 files changed

+203
-182
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
osx_image: xcode10.1
1+
osx_image: xcode10.2
22
language: objective-c
33

44
# Handle git submodules yourself
@@ -9,7 +9,7 @@ git:
99
# Use sed to replace the SSH URL with the public URL, then initialize submodules
1010
before_install:
1111
# Fix Travis xcodebuild exited with 65 https://github.com/travis-ci/travis-ci/issues/6675#issuecomment-257964767
12-
- export IOS_SIMULATOR_UDID=`instruments -s devices | grep -m 1 "iPhone 8 (11" | awk -F '[ ]' '{print $4}' | awk -F '[\[]' '{print $2}' | sed 's/.$//'`
12+
- export IOS_SIMULATOR_UDID=`instruments -s devices | grep -m 1 "iPhone 8 (12" | awk -F '[ ]' '{print $4}' | awk -F '[\[]' '{print $2}' | sed 's/.$//'`
1313
- echo $IOS_SIMULATOR_UDID
1414
- bundle install # We need a pre-release CocoaPods version
1515
- sed -i -e 's/[email protected]:/git:\/\/github.com\//' .gitmodules

Cartfile.resolved

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ github "AFNetworking/AFNetworking" "3.2.1"
22
github "Mantle/Mantle" "098746782c421837a154b3defcf7bc26331f18ba"
33
github "PureLayout/PureLayout" "v3.1.4"
44
github "TTTAttributedLabel/TTTAttributedLabel" "2.0.0"
5-
github "TheLevelUp/ZXingObjC" "3.6.3"
5+
github "TheLevelUp/ZXingObjC" "3.6.4"
66
github "facebook/KVOController" "v1.2.0"
77
github "jdg/MBProgressHUD" "1.1.0"
88
github "mattt/FormatterKit" "1.8.2"

ChatSecure.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2513,7 +2513,7 @@
25132513
};
25142514
buildConfigurationList = 6396AF951A169D54009F3E6C /* Build configuration list for PBXProject "ChatSecure" */;
25152515
compatibilityVersion = "Xcode 3.2";
2516-
developmentRegion = English;
2516+
developmentRegion = en;
25172517
hasScannedForEncodings = 0;
25182518
knownRegions = (
25192519
en,
@@ -2906,7 +2906,7 @@
29062906
);
29072907
runOnlyForDeploymentPostprocessing = 0;
29082908
shellPath = /bin/sh;
2909-
shellScript = "if [ $CONFIGURATION = \"Debug\" ]; then\n${PODS_ROOT}/LicensePlist/license-plist --output-path $PRODUCT_NAME/Settings.bundle --add-version-numbers --suppress-opening-directory\nfi\n";
2909+
shellScript = "if [ $CONFIGURATION = \"Debug\" ]; then\n${PODS_ROOT}/LicensePlist/license-plist --output-path $PRODUCT_NAME/Settings.bundle --add-version-numbers --suppress-opening-directory || true\nfi\n";
29102910
};
29112911
D97B6BA21E4A869C005C7B11 /* Update OTRStrings from strings.json */ = {
29122912
isa = PBXShellScriptBuildPhase;
@@ -3459,7 +3459,7 @@
34593459
STRIP_INSTALLED_PRODUCT = NO;
34603460
STRIP_STYLE = debugging;
34613461
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
3462-
SWIFT_VERSION = 4.2;
3462+
SWIFT_VERSION = 5.0;
34633463
TARGETED_DEVICE_FAMILY = "1,2";
34643464
};
34653465
name = Debug;
@@ -3511,7 +3511,7 @@
35113511
STRIP_INSTALLED_PRODUCT = YES;
35123512
STRIP_STYLE = debugging;
35133513
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
3514-
SWIFT_VERSION = 4.2;
3514+
SWIFT_VERSION = 5.0;
35153515
TARGETED_DEVICE_FAMILY = "1,2";
35163516
VALIDATE_PRODUCT = YES;
35173517
};

ChatSecure.xcodeproj/xcshareddata/xcschemes/ChatSecure.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0940"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

ChatSecure.xcodeproj/xcshareddata/xcschemes/ChatSecureCore.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0940"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

ChatSecure.xcodeproj/xcshareddata/xcschemes/ChatSecureTests.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0940"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

ChatSecure.xcodeproj/xcshareddata/xcschemes/ChatSecureUITests.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0940"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

ChatSecure/Classes/Categories/NSData+ChatSecure.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
import Foundation
1010

1111

12-
public extension NSData {
12+
extension NSData {
1313
@objc public func hexString() -> String {
1414
return (self as Data).hexString()
1515
}
1616
}
1717

1818
// http://stackoverflow.com/a/26502285/805882
19-
public extension NSString {
19+
extension NSString {
2020

2121
/// Create `Data` from hexadecimal string representation
2222
///

ChatSecure/Classes/Categories/UIApplication+ChatSecure.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ extension NotificationType: RawRepresentable {
4949
public typealias RawValue = String
5050
}
5151

52-
public extension UIApplication {
52+
extension UIApplication {
5353

5454
/// Removes all but one foreground notifications for typing and message events sent from APNS
5555
@objc public func removeExtraForegroundNotifications() {
@@ -296,6 +296,8 @@ public extension UIApplication {
296296
case .otherError:
297297
// this is probably a SSL error
298298
body = body + " \(CONNECTION_ERROR_CERTIFICATE_VERIFY_STRING())"
299+
@unknown default:
300+
return
299301
}
300302
} else if error.domain == "kCFStreamErrorDomainSSL" {
301303
body = body + " \(CONNECTION_ERROR_CERTIFICATE_VERIFY_STRING())"

ChatSecure/Classes/Categories/UINavigationController+ChatSecure.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Foundation
1010
import UIKit
1111

1212

13-
public extension UINavigationController {
13+
extension UINavigationController {
1414

1515
@objc public func otr_baseViewContorllers() -> [UIViewController] {
1616
var result:[UIViewController] = []

0 commit comments

Comments
 (0)