Skip to content

Commit e1d468d

Browse files
djtech42DivineDominion
authored andcommitted
Update to Swift 5 and Fix Carthage (#115)
Also replaces / closes #111
1 parent 1777395 commit e1d468d

8 files changed

Lines changed: 17 additions & 15 deletions

File tree

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ env:
1010
- FRAMEWORK_NAME="ReSwiftRouter"
1111
- UPDATE_DOCS="false"
1212

13-
osx_image: xcode10
13+
osx_image: xcode10.2
1414

1515
matrix:
1616
include:
1717
- env: SCHEME="macOS" SDK="macosx10.14" DESTINATION="arch=x86_64"
18-
- env: SCHEME="iOS" SDK="iphonesimulator12.0" DESTINATION="OS=12.0,name=iPhone X"
19-
- env: SCHEME="tvOS" SDK="appletvsimulator12.0" DESTINATION="OS=10.2,name=Apple TV 1080p"
18+
- env: SCHEME="iOS" SDK="iphonesimulator12.2" DESTINATION="OS=12.2,name=iPhone X"
19+
- env: SCHEME="tvOS" SDK="appletvsimulator12.2" DESTINATION="OS=10.2,name=Apple TV 1080p"
2020

2121
before_install:
2222
- carthage bootstrap --platform "$SCHEME" --verbose

Cartfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "ReSwift/ReSwift" ~> 4.0.0
1+
github "ReSwift/ReSwift" ~> 4.1.1

Cartfile.resolved

Lines changed: 3 additions & 3 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"
3-
github "ReSwift/ReSwift" "4.0.1"
1+
github "Quick/Nimble" "v8.0.1"
2+
github "Quick/Quick" "v2.1.0"
3+
github "ReSwift/ReSwift" "4.1.1"

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import PackageDescription
55
let package = Package(
66
name: "ReSwift-Router",
77
products: [
8-
.executable(name: "ReSwift-Router", targets: ["ReSwiftRouter"]),
8+
.library(name: "ReSwift-Router", targets: ["ReSwiftRouter"]),
99
],
1010
dependencies: [
11-
.package(url: "https://github.com/ReSwift/ReSwift", .upToNextMajor(from: "4.0.1"))
11+
.package(url: "https://github.com/ReSwift/ReSwift.git", .upToNextMajor(from: "4.1.1"))
1212
],
1313
targets: [
1414
.target(

ReSwiftRouter.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 = "ReSwiftRouter"
3-
s.version = "0.6.0"
3+
s.version = "0.6.1"
44
s.summary = "Declarative Routing for ReSwift"
55
s.description = <<-DESC
66
A declarative router for ReSwift. Allows developers to declare routes in a similar manner as
@@ -18,5 +18,5 @@ Pod::Spec.new do |s|
1818
s.watchos.deployment_target = '2.0'
1919
s.requires_arc = true
2020
s.source_files = 'ReSwiftRouter/**/*.swift'
21-
s.dependency 'ReSwift', '~> 4.0.0'
21+
s.dependency 'ReSwift', '~> 4.1.1'
2222
end

ReSwiftRouter.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@
10301030
ONLY_ACTIVE_ARCH = YES;
10311031
SDKROOT = iphoneos;
10321032
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
1033-
SWIFT_VERSION = 4.2;
1033+
SWIFT_VERSION = 5.0;
10341034
TARGETED_DEVICE_FAMILY = "1,2";
10351035
VERSIONING_SYSTEM = "apple-generic";
10361036
VERSION_INFO_PREFIX = "";
@@ -1082,7 +1082,7 @@
10821082
MTL_ENABLE_DEBUG_INFO = NO;
10831083
SDKROOT = iphoneos;
10841084
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
1085-
SWIFT_VERSION = 4.2;
1085+
SWIFT_VERSION = 5.0;
10861086
TARGETED_DEVICE_FAMILY = "1,2";
10871087
VALIDATE_PRODUCT = YES;
10881088
VERSIONING_SYSTEM = "apple-generic";

ReSwiftRouter/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.6.0</string>
18+
<string>0.6.1</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

ReSwiftRouter/NavigationState.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ public struct RouteHash: Hashable {
2020
self.routeHash = route.joined(separator: "/")
2121
}
2222

23-
public var hashValue: Int { return self.routeHash.hashValue }
23+
public func hash(into hasher: inout Hasher) {
24+
hasher.combine(routeHash)
25+
}
2426
}
2527

2628
public func == (lhs: RouteHash, rhs: RouteHash) -> Bool {

0 commit comments

Comments
 (0)