Skip to content

Commit 6e62c65

Browse files
authored
Merge pull request #45 from shawnkoh/master
Bump ReSwift dependency to 6.0.0
2 parents f5960f3 + e158020 commit 6e62c65

File tree

11 files changed

+67
-48
lines changed

11 files changed

+67
-48
lines changed

.travis.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,23 @@ env:
88

99
matrix:
1010
include:
11-
- osx_image: xcode9.3
12-
env: SCHEME="macOS" SDK="macosx10.13" DESTINATION="arch=x86_64" SWIFT_VERSION="4.1" ACTION="test"
1311
- osx_image: xcode10.1
1412
env: SCHEME="macOS" SDK="macosx10.14" DESTINATION="arch=x86_64" SWIFT_VERSION="4.2" ACTION="test"
15-
- osx_image: xcode10.2
16-
env: SCHEME="macOS" SDK="macosx10.14" DESTINATION="arch=x86_64" SWIFT_VERSION="5.0" ACTION="test" POD_LINT="YES"
17-
- osx_image: xcode10.2
18-
env: SCHEME="iOS" SDK="iphonesimulator" DESTINATION="OS=12.0,name=iPhone 8" SWIFT_VERSION="5.0" ACTION="test"
19-
- osx_image: xcode10.2
20-
env: SCHEME="tvOS" SDK="appletvsimulator" DESTINATION="OS=12.0,name=Apple TV 4K" SWIFT_VERSION="5.0" ACTION="test"
21-
- osx_image: xcode10.2
22-
env: SCHEME="watchOS" SDK="watchsimulator" DESTINATION="OS=4.0,name=Apple Watch - 42mm" SWIFT_VERSION="5.0" ACTION="build"
13+
- osx_image: xcode12
14+
env: SCHEME="macOS" SDK="macosx10.15" DESTINATION="arch=x86_64" SWIFT_VERSION="5.3" ACTION="test" POD_LINT="YES"
15+
- osx_image: xcode12
16+
env: SCHEME="iOS" SDK="iphonesimulator" DESTINATION="OS=14.0,name=iPhone 11" SWIFT_VERSION="5.3" ACTION="test"
17+
- osx_image: xcode12
18+
env: SCHEME="tvOS" SDK="appletvsimulator" DESTINATION="OS=14.0,name=Apple TV 4K" SWIFT_VERSION="5.3" ACTION="test"
19+
- osx_image: xcode12
20+
env: SCHEME="watchOS" SDK="watchsimulator" DESTINATION="OS=7.0,name=Apple Watch Series 6 - 44mm" SWIFT_VERSION="5.3" ACTION="build"
2321

2422
before_install:
2523
- if [ $POD_LINT == "YES" ]; then
2624
gem install cocoapods -v '1.7.5';
2725
pod repo update;
2826
fi
29-
- carthage bootstrap --platform "$SCHEME" --verbose
27+
- ./carthage.sh bootstrap --platform "$SCHEME" --verbose
3028

3129
install:
3230
- gem install xcpretty

CHANGELOG.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@
66

77
**Fixes:**
88

9-
**Other:**
10-
- Rename SwiftPM library to `ReSwiftThunk`, this makes naming consistent across all package manager (Cocoapods, Carthage and SwiftPM)
9+
# 2.0.0
1110

11+
**Breaking API Changes:**
12+
- Drop support for Swift 3.2, 4.0, and 4.1. (#45) - @shawnkoh, @mjarvis
13+
- Drop support for iOS 8 (#45) - @shawnkoh, @mjarvis
1214

13-
- `ExpectThunk`'s methods `dispatches` and `getsState` no longer have `@discardableResult` return values
15+
**Other:**
16+
- Rename SwiftPM library to `ReSwiftThunk`, this makes naming consistent across all package manager (Cocoapods, Carthage and SwiftPM) (#42) - @jookes
17+
- `ExpectThunk`'s methods `dispatches` and `getsState` no longer have `@discardableResult` return values (#40) - @xavierLowmiller
1418

1519
# 1.2.0
1620

Cartfile

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

Cartfile.resolved

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "ReSwift/ReSwift" "5.0.0"
1+
github "ReSwift/ReSwift" "6.0.0"

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ let package = Package(
88
.library(name: "ReSwiftThunk", targets: ["ReSwiftThunk"])
99
],
1010
dependencies: [
11-
.package(url: "https://github.com/ReSwift/ReSwift", .upToNextMajor(from: "5.0.0"))
11+
.package(url: "https://github.com/ReSwift/ReSwift", .upToNextMajor(from: "6.0.0"))
1212
],
1313
targets: [
1414
.target(

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Platform support](https://img.shields.io/badge/platform-ios%20%7C%20osx%20%7C%20tvos%20%7C%20watchos-lightgrey.svg?style=flat-square)](https://github.com/ReSwift/ReSwift-Thunk/blob/master/LICENSE.md)
77
[![License MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/ReSwift/ReSwift-Thunk/blob/master/LICENSE.md) [![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg?style=flat-square)](https://houndci.com)
88

9-
**Supported Swift Versions:** Swift 4.1, Swift 4.2, Swift 5.0
9+
**Supported Swift Versions:** Swift 4.2, Swift 5.0, Swift 5.3
1010

1111
When [ReSwift](https://github.com/ReSwift/ReSwift/) is a [Redux](https://github.com/reactjs/redux)-like implementation of the unidirectional data flow architecture in Swift, ReSwift-Thunk is like [redux-thunk](https://github.com/reduxjs/redux-thunk).
1212

ReSwift-Thunk.xcodeproj/project.pbxproj

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,16 @@
168168
isa = PBXProject;
169169
attributes = {
170170
LastSwiftUpdateCheck = 1000;
171-
LastUpgradeCheck = 1000;
171+
LastUpgradeCheck = 1200;
172172
ORGANIZATIONNAME = ReSwift;
173173
TargetAttributes = {
174174
65A3D6D4218B89A60075CB92 = {
175175
CreatedOnToolsVersion = 10.0;
176-
LastSwiftMigration = 1000;
176+
LastSwiftMigration = 1200;
177177
};
178178
65A3D6DD218B89A60075CB92 = {
179179
CreatedOnToolsVersion = 10.0;
180+
LastSwiftMigration = 1200;
180181
};
181182
};
182183
};
@@ -186,6 +187,7 @@
186187
hasScannedForEncodings = 0;
187188
knownRegions = (
188189
en,
190+
Base,
189191
);
190192
mainGroup = 65A3D6CB218B89A60075CB92;
191193
productRefGroup = 65A3D6D6218B89A60075CB92 /* Products */;
@@ -271,6 +273,7 @@
271273
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
272274
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
273275
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
276+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
274277
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
275278
CLANG_WARN_STRICT_PROTOTYPES = YES;
276279
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -303,7 +306,7 @@
303306
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
304307
GCC_WARN_UNUSED_FUNCTION = YES;
305308
GCC_WARN_UNUSED_VARIABLE = YES;
306-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
309+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
307310
MACOSX_DEPLOYMENT_TARGET = 10.10;
308311
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
309312
MTL_FAST_MATH = YES;
@@ -347,6 +350,7 @@
347350
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
348351
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
349352
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
353+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
350354
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
351355
CLANG_WARN_STRICT_PROTOTYPES = YES;
352356
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -373,7 +377,7 @@
373377
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
374378
GCC_WARN_UNUSED_FUNCTION = YES;
375379
GCC_WARN_UNUSED_VARIABLE = YES;
376-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
380+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
377381
MACOSX_DEPLOYMENT_TARGET = 10.10;
378382
MTL_ENABLE_DEBUG_INFO = NO;
379383
MTL_FAST_MATH = YES;
@@ -404,7 +408,6 @@
404408
DYLIB_INSTALL_NAME_BASE = "@rpath";
405409
INFOPLIST_FILE = "ReSwift-Thunk/Info.plist";
406410
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
407-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
408411
LD_RUNPATH_SEARCH_PATHS = (
409412
"$(inherited)",
410413
"@executable_path/Frameworks",
@@ -415,7 +418,7 @@
415418
PROVISIONING_PROFILE_SPECIFIER = "";
416419
SKIP_INSTALL = YES;
417420
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
418-
SWIFT_VERSION = 4.2;
421+
SWIFT_VERSION = 5.0;
419422
};
420423
name = Debug;
421424
};
@@ -432,7 +435,6 @@
432435
DYLIB_INSTALL_NAME_BASE = "@rpath";
433436
INFOPLIST_FILE = "ReSwift-Thunk/Info.plist";
434437
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
435-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
436438
LD_RUNPATH_SEARCH_PATHS = (
437439
"$(inherited)",
438440
"@executable_path/Frameworks",
@@ -442,7 +444,7 @@
442444
PRODUCT_NAME = ReSwiftThunk;
443445
PROVISIONING_PROFILE_SPECIFIER = "";
444446
SKIP_INSTALL = YES;
445-
SWIFT_VERSION = 4.2;
447+
SWIFT_VERSION = 5.0;
446448
};
447449
name = Release;
448450
};
@@ -465,7 +467,7 @@
465467
OTHER_SWIFT_FLAGS = "-D RESWIFT_THUNKTESTS";
466468
PRODUCT_BUNDLE_IDENTIFIER = "reswift.github.io.ReSwift-ThunkTests";
467469
PRODUCT_NAME = "$(TARGET_NAME)";
468-
SWIFT_VERSION = 4.2;
470+
SWIFT_VERSION = 5.0;
469471
};
470472
name = Debug;
471473
};
@@ -488,7 +490,7 @@
488490
OTHER_SWIFT_FLAGS = "-D RESWIFT_THUNKTESTS";
489491
PRODUCT_BUNDLE_IDENTIFIER = "reswift.github.io.ReSwift-ThunkTests";
490492
PRODUCT_NAME = "$(TARGET_NAME)";
491-
SWIFT_VERSION = 4.2;
493+
SWIFT_VERSION = 5.0;
492494
};
493495
name = Release;
494496
};

ReSwift-Thunk.xcodeproj/xcshareddata/xcschemes/ReSwift-Thunk.xcscheme

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1000"
3+
LastUpgradeVersion = "1200"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -27,6 +27,15 @@
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<MacroExpansion>
31+
<BuildableReference
32+
BuildableIdentifier = "primary"
33+
BlueprintIdentifier = "65A3D6D4218B89A60075CB92"
34+
BuildableName = "ReSwiftThunk.framework"
35+
BlueprintName = "ReSwift-Thunk"
36+
ReferencedContainer = "container:ReSwift-Thunk.xcodeproj">
37+
</BuildableReference>
38+
</MacroExpansion>
3039
<Testables>
3140
<TestableReference
3241
skipped = "NO">
@@ -39,17 +48,6 @@
3948
</BuildableReference>
4049
</TestableReference>
4150
</Testables>
42-
<MacroExpansion>
43-
<BuildableReference
44-
BuildableIdentifier = "primary"
45-
BlueprintIdentifier = "65A3D6D4218B89A60075CB92"
46-
BuildableName = "ReSwiftThunk.framework"
47-
BlueprintName = "ReSwift-Thunk"
48-
ReferencedContainer = "container:ReSwift-Thunk.xcodeproj">
49-
</BuildableReference>
50-
</MacroExpansion>
51-
<AdditionalOptions>
52-
</AdditionalOptions>
5351
</TestAction>
5452
<LaunchAction
5553
buildConfiguration = "Debug"
@@ -70,8 +68,6 @@
7068
ReferencedContainer = "container:ReSwift-Thunk.xcodeproj">
7169
</BuildableReference>
7270
</MacroExpansion>
73-
<AdditionalOptions>
74-
</AdditionalOptions>
7571
</LaunchAction>
7672
<ProfileAction
7773
buildConfiguration = "Release"

ReSwift-Thunk/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>1.2.0</string>
18+
<string>2.0.0</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
</dict>

ReSwiftThunk.podspec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |spec|
22
spec.name = "ReSwiftThunk"
3-
spec.version = "1.2.0"
3+
spec.version = "2.0.0"
44
spec.summary = "Thunk middleware for ReSwift."
55
spec.description = <<-DESC
66
ReSwift-Thunk allows you to write action creators that return a function instead of an action. Instead of dispatching an `Action` directly, you can dispatch a `Thunk` that creates an action at a later time, for example after a network request finishes.
@@ -10,13 +10,13 @@ Pod::Spec.new do |spec|
1010
spec.license = { :type => "MIT", :file => "LICENSE.md" }
1111
spec.authors = "ReSwift"
1212

13-
spec.ios.deployment_target = "8.0"
13+
spec.ios.deployment_target = "9.0"
1414
spec.osx.deployment_target = "10.10"
1515
spec.watchos.deployment_target = "2.0"
1616
spec.tvos.deployment_target = "9.0"
1717

1818
spec.module_name = "ReSwiftThunk"
19-
spec.swift_versions = ["5.0", "4.2", "4.1"]
19+
spec.swift_versions = ["5.2", "5.0", "4.2"]
2020
spec.source = {
2121
:git => "https://github.com/ReSwift/ReSwift-Thunk.git",
2222
:tag => spec.version.to_s }
@@ -26,7 +26,7 @@ Pod::Spec.new do |spec|
2626
end
2727

2828
spec.subspec "ExpectThunk" do |sp|
29-
sp.ios.deployment_target = "8.0"
29+
sp.ios.deployment_target = "9.0"
3030
sp.osx.deployment_target = "10.10"
3131
sp.tvos.deployment_target = "9.0"
3232
sp.dependency "ReSwiftThunk/Core"
@@ -37,5 +37,5 @@ Pod::Spec.new do |spec|
3737

3838
spec.default_subspec = "Core"
3939

40-
spec.dependency "ReSwift", "~> 5.0"
40+
spec.dependency "ReSwift", "~> 6.0"
4141
end

0 commit comments

Comments
 (0)