Skip to content

Commit

Permalink
Update to use Swift 4.2 and Xcode 10.2 (#42)
Browse files Browse the repository at this point in the history
* Update to use Swift 4.2 and Xcode 10.2

* Updated Podspec and Podfile
Locked all the dependencies to use Swift 4.2.

* Update the Swift version in the different targets

* Updated the actual example

* Unsure why these weren't set.

* There's hope.

* Updated SPM file

* Let's try something else

* Trying a different approach

* Revert "Trying a different approach"

This reverts commit 1c16e1c.

* This should fix this issue from carthage SwipeCellKit/SwipeCellKit#297
  • Loading branch information
RuiAAPeres authored Apr 18, 2019
1 parent b74d3a7 commit 2b3ae69
Show file tree
Hide file tree
Showing 14 changed files with 76 additions and 67 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ references:
jobs:
build:
macos:
xcode: "10.0.0"
xcode: "10.2.0"
working_directory: /Users/distiller/project
shell: /bin/bash --login -eo pipefail
steps:
Expand Down
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0
4.2
2 changes: 1 addition & 1 deletion Cartfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "ReactiveCocoa/ReactiveSwift" ~> 4.0
github "ReactiveCocoa/ReactiveSwift" ~> 5.0
6 changes: 3 additions & 3 deletions Cartfile.private
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Example app.
github "ReactiveCocoa/ReactiveCocoa" ~> 8.0
github "onevcat/Kingfisher" ~> 4.0
github "ReactiveCocoa/ReactiveCocoa" ~> 9.0.0
github "onevcat/Kingfisher" ~> 5.2

# Tests
github "Quick/Nimble" ~> 7.0
github "Quick/Nimble" ~> 8.0
10 changes: 5 additions & 5 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github "Quick/Nimble" "v7.3.1"
github "ReactiveCocoa/ReactiveCocoa" "8.0.2"
github "ReactiveCocoa/ReactiveSwift" "4.0.0"
github "antitypical/Result" "4.0.0"
github "onevcat/Kingfisher" "4.10.0"
github "Quick/Nimble" "v8.0.1"
github "ReactiveCocoa/ReactiveCocoa" "9.0.0"
github "ReactiveCocoa/ReactiveSwift" "5.0.1"
github "antitypical/Result" "4.1.0"
github "onevcat/Kingfisher" "5.3.1"
2 changes: 1 addition & 1 deletion Example/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
return true
}
}
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source 'https://rubygems.org'

gem 'xcpretty'
gem 'cocoapods', '~> 1.5.0'
gem 'cocoapods', '~> 1.6.1'
16 changes: 8 additions & 8 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,35 @@
"repositoryURL": "https://github.com/Quick/Nimble.git",
"state": {
"branch": null,
"revision": "cd6dfb86f496fcd96ce0bc6da962cd936bf41903",
"version": "7.3.1"
"revision": "43304bf2b1579fd555f2fdd51742771c1e4f2b98",
"version": "8.0.1"
}
},
{
"package": "Quick",
"repositoryURL": "https://github.com/Quick/Quick.git",
"state": {
"branch": null,
"revision": "5fbf13871d185526993130c3a1fad0b70bfe37ce",
"version": "1.3.2"
"revision": "0b4ed6c706dd0cce923b5019a605a9bcc6b1b600",
"version": "2.0.0"
}
},
{
"package": "ReactiveSwift",
"repositoryURL": "https://github.com/ReactiveCocoa/ReactiveSwift",
"state": {
"branch": null,
"revision": "4f6a12ae6762e825b0e19a4f7076eafa43847e6e",
"version": "4.0.0"
"revision": "c37950dc5020544c58d4bf47c0d028893686b9e6",
"version": "5.0.1"
}
},
{
"package": "Result",
"repositoryURL": "https://github.com/antitypical/Result.git",
"state": {
"branch": null,
"revision": "8fc088dcf72802801efeecba76ea8fb041fb773d",
"version": "4.0.0"
"revision": "2ca499ba456795616fbc471561ff1d963e6ae160",
"version": "4.1.0"
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ let package = Package(
.library(name: "ReactiveFeedback", targets: ["ReactiveFeedback"]),
],
dependencies: [
.package(url: "https://github.com/ReactiveCocoa/ReactiveSwift", from: "4.0.0"),
.package(url: "https://github.com/Quick/Nimble.git", from: "7.0.0"),
.package(url: "https://github.com/ReactiveCocoa/ReactiveSwift", from: "5.0.0"),
.package(url: "https://github.com/Quick/Nimble.git", from: "8.0.0"),
],
targets: [
.target(name: "ReactiveFeedback", dependencies: ["ReactiveSwift"], path: "ReactiveFeedback"),
Expand Down
23 changes: 15 additions & 8 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ install! 'cocoapods',
use_frameworks!

def shared_pods
pod "ReactiveSwift", "~> 4.0"
pod "ReactiveSwift", "~> 5.0"
end

target "Example" do
platform :ios, "8.0"
pod "Kingfisher"
shared_pods
end

target "ReactiveFeedback" do
Expand All @@ -14,12 +20,13 @@ end
target "ReactiveFeedbackTests" do
platform :ios, "8.0"
shared_pods
pod "Nimble", "~> 7.0"
pod "Nimble", "~> 8.0"
end

target "Example" do
platform :ios, "10.0"
shared_pods
pod "Kingfisher", "~> 4.0"
pod "ReactiveCocoa", "~> 8.0"
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.2'
end
end
end
33 changes: 14 additions & 19 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,33 +1,28 @@
PODS:
- Kingfisher (4.1.0)
- Nimble (7.0.2)
- ReactiveCocoa (8.0.0):
- ReactiveSwift (~> 4.0)
- ReactiveSwift (4.0.0):
- Result (~> 4.0)
- Result (4.0.0)
- Kingfisher (4.10.1)
- Nimble (8.0.1)
- ReactiveSwift (5.0.1):
- Result (~> 4.1)
- Result (4.1.0)

DEPENDENCIES:
- Kingfisher (~> 4.0)
- Nimble (~> 7.0)
- ReactiveCocoa (~> 8.0)
- ReactiveSwift (~> 4.0)
- Kingfisher
- Nimble (~> 8.0)
- ReactiveSwift (~> 5.0)

SPEC REPOS:
https://github.com/cocoapods/specs.git:
- Kingfisher
- Nimble
- ReactiveCocoa
- ReactiveSwift
- Result

SPEC CHECKSUMS:
Kingfisher: f14df8cbe576bf55f211fa589e9869bceb4ea87d
Nimble: bfe1f814edabba69ff145cb1283e04ed636a67f2
ReactiveCocoa: 87cb64d78424d749a0bbfd9b07e4825e8d834066
ReactiveSwift: a2bb9ace428a109e9c0209615645d9d286c8c433
Result: 7645bb3f50c2ce726dd0ff2fa7b6f42bbe6c3713
Kingfisher: c148cd7b47ebde9989f6bc7c27dcaa79d81279a0
Nimble: 45f786ae66faa9a709624227fae502db55a8bdd0
ReactiveSwift: cac20a5bbe560c5806bd29c0fccf90d03b996ac1
Result: bd966fac789cc6c1563440b348ab2598cc24d5c7

PODFILE CHECKSUM: cb3e36c06f0aad276b3bae5804f78b4c467c2030
PODFILE CHECKSUM: c48887843d650c5ab915d0ed50cb30912a276222

COCOAPODS: 1.5.3
COCOAPODS: 1.6.1
4 changes: 2 additions & 2 deletions ReactiveFeedback.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "ReactiveFeedback"
s.version = "0.5.0"
s.version = "0.6.0"
s.summary = "Unidirectional reactive architecture"

s.description = <<-DESC
Expand All @@ -18,5 +18,5 @@ Pod::Spec.new do |s|
s.source = { :git => "https://github.com/Babylonpartners/ReactiveFeedback.git", :tag => "#{s.version}" }
s.source_files = "ReactiveFeedback/*.{swift}"

s.dependency "ReactiveSwift", "~> 4.0"
s.dependency "ReactiveSwift", "~> 5.0"
end
35 changes: 21 additions & 14 deletions ReactiveFeedback.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -496,8 +496,12 @@
};
25E1D21C1F5493D000D90192 = {
CreatedOnToolsVersion = 8.3;
LastSwiftMigration = 1020;
ProvisioningStyle = Automatic;
};
65F8C25E218371A800924657 = {
LastSwiftMigration = 1020;
};
9AE181B51F95A71B00A07551 = {
CreatedOnToolsVersion = 9.0;
};
Expand All @@ -508,6 +512,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
Base,
);
Expand Down Expand Up @@ -707,7 +712,7 @@
PRODUCT_NAME = ReactiveFeedback;
SDKROOT = macosx;
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
Expand All @@ -727,7 +732,7 @@
PRODUCT_NAME = ReactiveFeedback;
SDKROOT = macosx;
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
Expand Down Expand Up @@ -791,6 +796,7 @@
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
TVOS_DEPLOYMENT_TARGET = 9.0;
};
name = Debug;
Expand Down Expand Up @@ -845,6 +851,7 @@
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 4.2;
TVOS_DEPLOYMENT_TARGET = 9.0;
VALIDATE_PRODUCT = YES;
};
Expand All @@ -865,7 +872,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.babylonhealth.Example;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
};
name = Debug;
};
Expand All @@ -884,7 +891,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.babylonhealth.Example;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
};
name = Release;
};
Expand All @@ -903,7 +910,7 @@
PRODUCT_NAME = ReactiveFeedback;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
Expand All @@ -924,7 +931,7 @@
PRODUCT_NAME = ReactiveFeedback;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
Expand All @@ -944,7 +951,7 @@
PRODUCT_NAME = ReactiveFeedback;
SDKROOT = appletvos;
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
Expand All @@ -964,7 +971,7 @@
PRODUCT_NAME = ReactiveFeedback;
SDKROOT = appletvos;
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
Expand All @@ -984,7 +991,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.babylonhealth.ReactiveFeedbackTests;
PRODUCT_NAME = ReactiveFeedbackTests;
SDKROOT = iphoneos;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
};
name = Debug;
};
Expand All @@ -1002,7 +1009,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.babylonhealth.ReactiveFeedbackTests;
PRODUCT_NAME = ReactiveFeedbackTests;
SDKROOT = iphoneos;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
};
name = Release;
};
Expand All @@ -1020,7 +1027,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.babylonhealth.ReactiveFeedbackTests;
PRODUCT_NAME = ReactiveFeedbackTests;
SDKROOT = iphoneos;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
};
name = Debug;
};
Expand All @@ -1038,7 +1045,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.babylonhealth.ReactiveFeedbackTests;
PRODUCT_NAME = ReactiveFeedbackTests;
SDKROOT = iphoneos;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
};
name = Release;
};
Expand All @@ -1056,7 +1063,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.babylonhealth.ReactiveFeedbackTests;
PRODUCT_NAME = ReactiveFeedbackTests;
SDKROOT = macosx;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
};
name = Debug;
};
Expand All @@ -1074,7 +1081,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.babylonhealth.ReactiveFeedbackTests;
PRODUCT_NAME = ReactiveFeedbackTests;
SDKROOT = macosx;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
};
name = Release;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
Expand Down

0 comments on commit 2b3ae69

Please sign in to comment.