Skip to content

Commit a66a51f

Browse files
committed
Updates for Xcode 11/ Swift 5.1 (+ rename to Then)
1 parent b17c854 commit a66a51f

37 files changed

+118
-122
lines changed

Package.swift

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,28 @@
44
import PackageDescription
55

66
let package = Package(
7-
name: "then",
7+
name: "Then",
88
products: [
99
// Products define the executables and libraries produced by a package, and make them visible to other packages.
1010
.library(
11-
name: "then",
12-
targets: ["then"]),
11+
name: "Then",
12+
targets: ["Then"])
1313
],
1414
dependencies: [
1515
// Dependencies declare other packages that this package depends on.
1616
// .package(url: /* package url */, from: "1.0.0"),
1717
],
1818
targets: [
1919
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
20-
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
20+
// Targets can depend on other targets in this package, and on products
21+
// in packages which this package depends on.
2122
.target(
22-
name: "then",
23+
name: "Then",
2324
dependencies: [],
2425
path: "Source"),
2526
.testTarget(
2627
name: "thenTests",
27-
dependencies: ["then"],
28-
path: "thenTests"),
28+
dependencies: ["Then"],
29+
path: "thenTests")
2930
]
3031
)

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fetchUserId().then { id in
1818
print("UserID : \(id)")
1919
}.onError { e in
2020
print("An error occured : \(e)")
21-
}.finally {
21+
}.finally {M
2222
print("Everything is Done :)")
2323
}
2424
```
@@ -424,6 +424,7 @@ Grab this repository and build the Framework target on the example project. Then
424424
- Swift 4.2 -> version [**4.2.0**](https://github.com/freshOS/then/releases/tag/4.2.0)
425425
- Swift 4.2.1 -> version [**4.2.0**](https://github.com/freshOS/then/releases/tag/4.2.1)
426426
- Swift 5.0 -> version [**5.0.0**](https://github.com/freshOS/then/releases/tag/5.0.0)
427+
- Swift 5.1 -> version [**5.1.0**](https://github.com/freshOS/then/releases/tag/5.1.0)
427428

428429

429430
### Backers

Source/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>5.0.0</string>
18+
<string>$(MARKETING_VERSION)</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

then.xcodeproj/project.pbxproj renamed to Then.xcodeproj/project.pbxproj

Lines changed: 59 additions & 53 deletions
Large diffs are not rendered by default.

then.xcodeproj/project.xcworkspace/contents.xcworkspacedata renamed to Then.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

then.xcodeproj/xcshareddata/xcschemes/then.xcscheme renamed to Then.xcodeproj/xcshareddata/xcschemes/then.xcscheme

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
<BuildableReference
1616
BuildableIdentifier = "primary"
1717
BlueprintIdentifier = "99B5AC961C66831C005CDA28"
18-
BuildableName = "then.framework"
19-
BlueprintName = "then"
18+
BuildableName = "Then.framework"
19+
BlueprintName = "Then"
2020
ReferencedContainer = "container:then.xcodeproj">
2121
</BuildableReference>
2222
</BuildActionEntry>
@@ -27,29 +27,27 @@
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<MacroExpansion>
31+
<BuildableReference
32+
BuildableIdentifier = "primary"
33+
BlueprintIdentifier = "99B5AC961C66831C005CDA28"
34+
BuildableName = "Then.framework"
35+
BlueprintName = "Then"
36+
ReferencedContainer = "container:then.xcodeproj">
37+
</BuildableReference>
38+
</MacroExpansion>
3039
<Testables>
3140
<TestableReference
3241
skipped = "NO">
3342
<BuildableReference
3443
BuildableIdentifier = "primary"
3544
BlueprintIdentifier = "99B5ACA01C66831C005CDA28"
36-
BuildableName = "thenTests.xctest"
37-
BlueprintName = "thenTests"
45+
BuildableName = "ThenTests.xctest"
46+
BlueprintName = "ThenTests"
3847
ReferencedContainer = "container:then.xcodeproj">
3948
</BuildableReference>
4049
</TestableReference>
4150
</Testables>
42-
<MacroExpansion>
43-
<BuildableReference
44-
BuildableIdentifier = "primary"
45-
BlueprintIdentifier = "99B5AC961C66831C005CDA28"
46-
BuildableName = "then.framework"
47-
BlueprintName = "then"
48-
ReferencedContainer = "container:then.xcodeproj">
49-
</BuildableReference>
50-
</MacroExpansion>
51-
<AdditionalOptions>
52-
</AdditionalOptions>
5351
</TestAction>
5452
<LaunchAction
5553
buildConfiguration = "Debug"
@@ -65,13 +63,11 @@
6563
<BuildableReference
6664
BuildableIdentifier = "primary"
6765
BlueprintIdentifier = "99B5AC961C66831C005CDA28"
68-
BuildableName = "then.framework"
69-
BlueprintName = "then"
66+
BuildableName = "Then.framework"
67+
BlueprintName = "Then"
7068
ReferencedContainer = "container:then.xcodeproj">
7169
</BuildableReference>
7270
</MacroExpansion>
73-
<AdditionalOptions>
74-
</AdditionalOptions>
7571
</LaunchAction>
7672
<ProfileAction
7773
buildConfiguration = "Release"
@@ -83,8 +79,8 @@
8379
<BuildableReference
8480
BuildableIdentifier = "primary"
8581
BlueprintIdentifier = "99B5AC961C66831C005CDA28"
86-
BuildableName = "then.framework"
87-
BlueprintName = "then"
82+
BuildableName = "Then.framework"
83+
BlueprintName = "Then"
8884
ReferencedContainer = "container:then.xcodeproj">
8985
</BuildableReference>
9086
</MacroExpansion>

then.xcodeproj/xcshareddata/xcschemes/thenMacOS.xcscheme renamed to Then.xcodeproj/xcshareddata/xcschemes/thenMacOS.xcscheme

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
BuildableIdentifier = "primary"
1717
BlueprintIdentifier = "99FA7FB11D93C153002274B0"
1818
BuildableName = "then.framework"
19-
BlueprintName = "thenMacOS"
19+
BlueprintName = "ThenMacOS"
2020
ReferencedContainer = "container:then.xcodeproj">
2121
</BuildableReference>
2222
</BuildActionEntry>
@@ -29,8 +29,6 @@
2929
shouldUseLaunchSchemeArgsEnv = "YES">
3030
<Testables>
3131
</Testables>
32-
<AdditionalOptions>
33-
</AdditionalOptions>
3432
</TestAction>
3533
<LaunchAction
3634
buildConfiguration = "Debug"
@@ -47,12 +45,10 @@
4745
BuildableIdentifier = "primary"
4846
BlueprintIdentifier = "99FA7FB11D93C153002274B0"
4947
BuildableName = "then.framework"
50-
BlueprintName = "thenMacOS"
48+
BlueprintName = "ThenMacOS"
5149
ReferencedContainer = "container:then.xcodeproj">
5250
</BuildableReference>
5351
</MacroExpansion>
54-
<AdditionalOptions>
55-
</AdditionalOptions>
5652
</LaunchAction>
5753
<ProfileAction
5854
buildConfiguration = "Release"
@@ -65,7 +61,7 @@
6561
BuildableIdentifier = "primary"
6662
BlueprintIdentifier = "99FA7FB11D93C153002274B0"
6763
BuildableName = "then.framework"
68-
BlueprintName = "thenMacOS"
64+
BlueprintName = "ThenMacOS"
6965
ReferencedContainer = "container:then.xcodeproj">
7066
</BuildableReference>
7167
</MacroExpansion>

then.xcodeproj/xcshareddata/xcschemes/thenTvOS.xcscheme renamed to Then.xcodeproj/xcshareddata/xcschemes/thenTvOS.xcscheme

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
BuildableIdentifier = "primary"
1717
BlueprintIdentifier = "17D4C41B1F4703B1002EF805"
1818
BuildableName = "then.framework"
19-
BlueprintName = "thenTvOS"
19+
BlueprintName = "ThenTvOS"
2020
ReferencedContainer = "container:then.xcodeproj">
2121
</BuildableReference>
2222
</BuildActionEntry>
@@ -29,8 +29,6 @@
2929
shouldUseLaunchSchemeArgsEnv = "YES">
3030
<Testables>
3131
</Testables>
32-
<AdditionalOptions>
33-
</AdditionalOptions>
3432
</TestAction>
3533
<LaunchAction
3634
buildConfiguration = "Debug"
@@ -47,12 +45,10 @@
4745
BuildableIdentifier = "primary"
4846
BlueprintIdentifier = "17D4C41B1F4703B1002EF805"
4947
BuildableName = "then.framework"
50-
BlueprintName = "thenTvOS"
48+
BlueprintName = "ThenTvOS"
5149
ReferencedContainer = "container:then.xcodeproj">
5250
</BuildableReference>
5351
</MacroExpansion>
54-
<AdditionalOptions>
55-
</AdditionalOptions>
5652
</LaunchAction>
5753
<ProfileAction
5854
buildConfiguration = "Release"
@@ -65,7 +61,7 @@
6561
BuildableIdentifier = "primary"
6662
BlueprintIdentifier = "17D4C41B1F4703B1002EF805"
6763
BuildableName = "then.framework"
68-
BlueprintName = "thenTvOS"
64+
BlueprintName = "ThenTvOS"
6965
ReferencedContainer = "container:then.xcodeproj">
7066
</BuildableReference>
7167
</MacroExpansion>

thenMacOS/Info.plist renamed to ThenMacOS/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>5.0.0</string>
18+
<string>$(MARKETING_VERSION)</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSHumanReadableCopyright</key>
File renamed without changes.

thenTests/AsyncAwaitTests.swift renamed to ThenTests/AsyncAwaitTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import XCTest
10-
import then
10+
import Then
1111

1212
class AsyncAwaitTests: XCTestCase {
1313

thenTests/BridgeErrorTests.swift renamed to ThenTests/BridgeErrorTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import XCTest
10-
@testable import then
10+
@testable import Then
1111

1212
class BridgeErrorTests: XCTestCase {
1313

thenTests/ChainTests.swift renamed to ThenTests/ChainTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import XCTest
10-
import then
10+
import Then
1111

1212
class ChainTests: XCTestCase {
1313

thenTests/DelayTests.swift renamed to ThenTests/DelayTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import XCTest
10-
import then
10+
import Then
1111

1212
class DelayTests: XCTestCase {
1313

thenTests/FinallyTests.swift renamed to ThenTests/FinallyTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import XCTest
10-
import then
10+
import Then
1111

1212
class FinallyTests: XCTestCase {
1313

thenTests/Helpers.swift renamed to ThenTests/Helpers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import XCTest
10-
@testable import then
10+
@testable import Then
1111
import Dispatch
1212

1313
var globalCount = 0
File renamed without changes.

thenTests/MemoryTests.swift renamed to ThenTests/MemoryTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import XCTest
10-
@testable import then
10+
@testable import Then
1111

1212
class MemoryTests: XCTestCase {
1313

thenTests/NoMatterWhatTests.swift renamed to ThenTests/NoMatterWhatTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import XCTest
10-
import then
10+
import Then
1111

1212
class NoMatterWhatTests: XCTestCase {
1313

thenTests/OnErrorTests.swift renamed to ThenTests/OnErrorTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import XCTest
10-
import then
10+
import Then
1111

1212
class OnErrorTests: XCTestCase {
1313

thenTests/ProgressTests.swift renamed to ThenTests/ProgressTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import XCTest
10-
import then
10+
import Then
1111

1212
class ProgressTests: XCTestCase {
1313

thenTests/RaceTests.swift renamed to ThenTests/RaceTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import XCTest
10-
import then
10+
import Then
1111

1212
class RaceTests: XCTestCase {
1313

thenTests/RecoverTests.swift renamed to ThenTests/RecoverTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import XCTest
10-
import then
10+
import Then
1111

1212
class RecoverTests: XCTestCase {
1313

thenTests/RegisterThenTests.swift renamed to ThenTests/RegisterThenTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import XCTest
10-
import then
10+
import Then
1111

1212
class RegisterThenTests: XCTestCase {
1313

thenTests/RetryTests.swift renamed to ThenTests/RetryTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import XCTest
10-
import then
10+
import Then
1111

1212
class RetryTests: XCTestCase {
1313

thenTests/ThenTests.swift renamed to ThenTests/ThenTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import XCTest
10-
@testable import then
10+
@testable import Then
1111

1212
class ThenTests: XCTestCase {
1313

thenTests/TimeoutTests.swift renamed to ThenTests/TimeoutTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import XCTest
10-
import then
10+
import Then
1111

1212
class TimeoutTests: XCTestCase {
1313

thenTests/UnwrapTests.swift renamed to ThenTests/UnwrapTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import XCTest
10-
import then
10+
import Then
1111

1212
class UnwrapTests: XCTestCase {
1313

0 commit comments

Comments
 (0)