Skip to content

Commit ba03817

Browse files
rahul0x24andersio
authored andcommitted
Update to Xcode 10.2 (#13)
* Update to Xcode 10.2 * Update macOS test target to 10.10
1 parent 5fad7b9 commit ba03817

10 files changed

Lines changed: 44 additions & 19 deletions

File tree

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0
1+
5.0

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: objective-c
2-
osx_image: xcode10
2+
osx_image: xcode10.2
33
install: true
44
branches:
55
only:
@@ -14,7 +14,7 @@ cache:
1414

1515
jobs:
1616
include:
17-
- osx_image: xcode10
17+
- osx_image: xcode10.2
1818
script:
1919
- XCODE_SCHEME=FlexibleDiff-macOS
2020
XCODE_SDK=macosx

Cartfile.private

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github "Quick/Nimble" ~> 7.0
2-
github "Quick/Quick" ~> 1.2
1+
github "Quick/Nimble" ~> 8.0
2+
github "Quick/Quick" ~> 2.0

Cartfile.resolved

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
github "Quick/Nimble" "v7.3.1"
2-
github "Quick/Quick" "v1.3.2"
1+
github "Quick/Nimble" "v8.0.1"
2+
github "Quick/Quick" "v2.0.0"
33
github "jspahrsummers/xcconfigs" "0.12"

Carthage/Checkouts/Nimble

Submodule Nimble updated 97 files

Carthage/Checkouts/Quick

Submodule Quick updated 49 files

FlexibleDiff.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "FlexibleDiff"
3-
s.version = "0.0.7"
3+
s.version = "0.0.8"
44
s.summary = "A Swift collection diffing μframework."
55
s.description = <<-DESC
66
A Swift collection diffing μframework implementing the O(N) Paul Heckel diff algorithm.
@@ -16,5 +16,5 @@ Pod::Spec.new do |s|
1616
s.source = { :git => "https://github.com/RACCommunity/FlexibleDiff.git", :tag => "#{s.version}" }
1717

1818
s.source_files = "FlexibleDiff/*.{swift}"
19-
s.swift_version = "4.0"
19+
s.swift_version = "5.0"
2020
end

FlexibleDiff.xcodeproj/project.pbxproj

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,7 @@
612612
};
613613
65F8C21621836A8E00924657 = {
614614
CreatedOnToolsVersion = 10.0;
615+
LastSwiftMigration = 1020;
615616
ProvisioningStyle = Automatic;
616617
};
617618
65F8C22521836AA300924657 = {
@@ -628,7 +629,7 @@
628629
};
629630
9A4CCB171F95DEF000ACF758 = {
630631
CreatedOnToolsVersion = 9.0;
631-
LastSwiftMigration = 0900;
632+
LastSwiftMigration = 1020;
632633
ProvisioningStyle = Manual;
633634
};
634635
};
@@ -944,7 +945,7 @@
944945
PRODUCT_NAME = FlexibleDiffTests;
945946
SDKROOT = iphoneos;
946947
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
947-
SWIFT_VERSION = 4.2;
948+
SWIFT_VERSION = 5.0;
948949
TARGETED_DEVICE_FAMILY = "1,2";
949950
};
950951
name = Debug;
@@ -1002,7 +1003,7 @@
10021003
PRODUCT_NAME = FlexibleDiffTests;
10031004
SDKROOT = iphoneos;
10041005
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
1005-
SWIFT_VERSION = 4.2;
1006+
SWIFT_VERSION = 5.0;
10061007
TARGETED_DEVICE_FAMILY = "1,2";
10071008
VALIDATE_PRODUCT = YES;
10081009
};
@@ -1186,6 +1187,7 @@
11861187
GCC_WARN_UNUSED_VARIABLE = YES;
11871188
INFOPLIST_FILE = FlexibleDiffTests/Info.plist;
11881189
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
1190+
MACOSX_DEPLOYMENT_TARGET = 10.10;
11891191
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
11901192
MTL_FAST_MATH = YES;
11911193
ONLY_ACTIVE_ARCH = YES;
@@ -1245,6 +1247,7 @@
12451247
GCC_WARN_UNUSED_VARIABLE = YES;
12461248
INFOPLIST_FILE = FlexibleDiffTests/Info.plist;
12471249
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
1250+
MACOSX_DEPLOYMENT_TARGET = 10.10;
12481251
MTL_FAST_MATH = YES;
12491252
PRODUCT_BUNDLE_IDENTIFIER = org.reactivecocoa.FlexibleDiffTests;
12501253
PRODUCT_NAME = FlexibleDiffTests;
@@ -1335,6 +1338,7 @@
13351338
PRODUCT_BUNDLE_IDENTIFIER = org.reactivecocoa.FlexibleDiff;
13361339
PRODUCT_NAME = FlexibleDiff;
13371340
SDKROOT = iphoneos;
1341+
SWIFT_VERSION = 5.0;
13381342
};
13391343
name = Debug;
13401344
};
@@ -1349,6 +1353,7 @@
13491353
PRODUCT_BUNDLE_IDENTIFIER = org.reactivecocoa.FlexibleDiff;
13501354
PRODUCT_NAME = FlexibleDiff;
13511355
SDKROOT = iphoneos;
1356+
SWIFT_VERSION = 5.0;
13521357
};
13531358
name = Release;
13541359
};

FlexibleDiff/Changeset.swift

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -468,11 +468,12 @@ private struct MovePath: Hashable {
468468
let source: Int
469469
let destination: Int
470470

471-
var hashValue: Int {
471+
func hash(into hasher: inout Hasher) {
472472
let sum = source + destination
473-
return (sum * (sum + 1)) >> 1 + destination
473+
let hash = (sum * (sum + 1)) >> 1 + destination
474+
hasher.combine(hash)
474475
}
475-
476+
476477
func shifted(by offset: Int) -> MovePath {
477478
return MovePath(source: source + offset, destination: destination + offset)
478479
}
@@ -497,9 +498,10 @@ extension Set where Element == Int {
497498
}
498499

499500
extension Changeset.Move: Hashable {
500-
public var hashValue: Int {
501+
public func hash(into hasher: inout Hasher) {
501502
let sum = source + destination
502-
return (sum * (sum + 1)) >> 1 + destination
503+
let hash = (sum * (sum + 1)) >> 1 + destination
504+
hasher.combine(hash)
503505
}
504506

505507
public static func == (left: Changeset.Move, right: Changeset.Move) -> Bool {

Package@swift-5.swift

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// swift-tools-version:5.0
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "FlexibleDiff",
6+
products: [
7+
.library(name: "FlexibleDiff", targets: ["FlexibleDiff"]),
8+
],
9+
dependencies: [
10+
.package(url: "https://github.com/Quick/Quick.git", from: "2.0.0"),
11+
.package(url: "https://github.com/Quick/Nimble.git", from: "8.0.0"),
12+
],
13+
targets: [
14+
.target(name: "FlexibleDiff", path: "FlexibleDiff"),
15+
.testTarget(name: "FlexibleDiffTests", dependencies: ["FlexibleDiff", "Quick", "Nimble"], path: "FlexibleDiffTests"),
16+
],
17+
swiftLanguageVersions: [.v5]
18+
)

0 commit comments

Comments
 (0)