Skip to content

Commit f9908ef

Browse files
committed
Final touches for Swift 3 release
1 parent 8259ca5 commit f9908ef

13 files changed

+49
-32
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Xcode
22
.DS_Store
33
.build/*
4+
Packages/*
45
build/*
56
*.pbxuser
67
!default.pbxuser

.travis.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,11 @@ matrix:
4141
before_install:
4242
- git submodule update --init --recursive
4343
- wget -q -O - https://swift.org/keys/all-keys.asc | gpg --import -
44-
- wget https://swift.org/builds/swift-3.0-preview-6/ubuntu1404/swift-3.0-PREVIEW-6/swift-3.0-PREVIEW-6-ubuntu14.04.tar.gz
45-
- tar xzf swift-3.0-PREVIEW-6-ubuntu14.04.tar.gz
46-
- export PATH=${PWD}/swift-3.0-PREVIEW-6-ubuntu14.04/usr/bin:"${PATH}"
44+
- wget https://swift.org/builds/swift-3.0-release/ubuntu1404/swift-3.0-RELEASE/swift-3.0-RELEASE-ubuntu14.04.tar.gz
45+
- tar xzf swift-3.0-RELEASE-ubuntu14.04.tar.gz
46+
- export PATH=${PWD}/swift-3.0-RELEASE-ubuntu14.04/usr/bin:"${PATH}"
4747
script:
48-
# Uncomment when releasing Swift 3.0
49-
# - swift build
48+
- swift build
5049
notifications:
5150
webhooks:
5251
urls:

Cartfile.private

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
github "typelift/Operadics" "swift-develop"
2-
github "typelift/SwiftCheck" "swift-develop"
1+
github "typelift/Operadics"
2+
github "typelift/SwiftCheck"
33

Cartfile.resolved

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github "typelift/Operadics" "d204bd37580da0a901b587ded4809f81e50a04ee"
2-
github "typelift/SwiftCheck" "706c8075760a65061161797a380b17bd6bd5d055"
1+
github "typelift/Operadics" "0.2.2"
2+
github "typelift/SwiftCheck" "v0.7.0"

Carthage/Checkouts/Operadics

Package.swift

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import PackageDescription
2+
3+
let package = Package(
4+
name: "Swiftx",
5+
targets: [
6+
Target(name: "Swiftx"),
7+
],
8+
dependencies: [
9+
.Package(url: "https://github.com/typelift/Operadics.git", versions: Version(0,2,2)...Version(0,2,2))
10+
]
11+
)
12+
13+
let libSwiftx = Product(name: "Swiftx", type: .Library(.Dynamic), modules: "Swiftx")
14+
products.append(libSwiftx)

Sources/Array.swift

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
// Copyright (c) 2014 Maxwell Swadling. All rights reserved.
77
//
88

9+
#if !XCODE_BUILD
10+
import Operadics
11+
#endif
12+
913
/// Fmap | Returns a new list of elements obtained by applying the given function to the entirety of
1014
/// the given list of elements in order.
1115
public func <^> <A, B>(f : (A) -> B, xs : [A]) -> [B] {

Sources/Combinators.swift

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
// Copyright (c) 2014 Maxwell Swadling. All rights reserved.
77
//
88

9+
#if !XCODE_BUILD
10+
import Operadics
11+
#endif
12+
913
/// The identity function.
1014
public func identity<A>(_ a : A) -> A {
1115
return a

Sources/Either.swift

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
// Copyright (c) 2014 Maxwell Swadling. All rights reserved.
77
//
88

9+
#if !XCODE_BUILD
10+
import Operadics
11+
#endif
12+
913
/// The `Either` type represents values with two possibilities: `.Left(L)` or `.Right(R)`.
1014
///
1115
/// The `Either` type is right-biased by convention. That is, the `.Left` constructor is used to

Sources/Nothing.swift

-11
This file was deleted.

Sources/Optional.swift

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
// Copyright (c) 2014 Maxwell Swadling. All rights reserved.
77
//
88

9+
#if !XCODE_BUILD
10+
import Operadics
11+
#endif
12+
913
/// Fmap | If the Optional is `.None`, ignores the function and returns `.None`. Else if the
1014
/// Optional is `.Some`, applies the function to its value and returns the result in a new `.Some`.
1115
public func <^> <A, B>(f : (A) -> B, a : A?) -> B? {

Swiftx.xcodeproj/project.pbxproj

+8-10
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@
3737
82FCDC2F1D73C3B30011C27F /* Combinators.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82FCDC2D1D73C3B30011C27F /* Combinators.swift */; };
3838
82FCDC301D73C3B30011C27F /* Combinators.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82FCDC2D1D73C3B30011C27F /* Combinators.swift */; };
3939
82FCDC311D73C3B30011C27F /* Combinators.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82FCDC2D1D73C3B30011C27F /* Combinators.swift */; };
40-
82FCDC331D73C3BE0011C27F /* Nothing.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82FCDC321D73C3BE0011C27F /* Nothing.swift */; };
41-
82FCDC341D73C3BE0011C27F /* Nothing.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82FCDC321D73C3BE0011C27F /* Nothing.swift */; };
42-
82FCDC351D73C3BE0011C27F /* Nothing.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82FCDC321D73C3BE0011C27F /* Nothing.swift */; };
43-
82FCDC361D73C3BE0011C27F /* Nothing.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82FCDC321D73C3BE0011C27F /* Nothing.swift */; };
4440
82FCDC3E1D73C4330011C27F /* Swiftx.h in Headers */ = {isa = PBXBuildFile; fileRef = 82FCDC3D1D73C4330011C27F /* Swiftx.h */; settings = {ATTRIBUTES = (Public, ); }; };
4541
82FCDC3F1D73C4330011C27F /* Swiftx.h in Headers */ = {isa = PBXBuildFile; fileRef = 82FCDC3D1D73C4330011C27F /* Swiftx.h */; settings = {ATTRIBUTES = (Public, ); }; };
4642
82FCDC401D73C4330011C27F /* Swiftx.h in Headers */ = {isa = PBXBuildFile; fileRef = 82FCDC3D1D73C4330011C27F /* Swiftx.h */; settings = {ATTRIBUTES = (Public, ); }; };
@@ -179,7 +175,6 @@
179175
82FCDC231D73C3A50011C27F /* EitherSpec.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = EitherSpec.swift; path = Tests/EitherSpec.swift; sourceTree = "<group>"; };
180176
82FCDC241D73C3A50011C27F /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = Tests/Info.plist; sourceTree = "<group>"; };
181177
82FCDC2D1D73C3B30011C27F /* Combinators.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Combinators.swift; path = Sources/Combinators.swift; sourceTree = SOURCE_ROOT; };
182-
82FCDC321D73C3BE0011C27F /* Nothing.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Nothing.swift; path = Sources/Nothing.swift; sourceTree = SOURCE_ROOT; };
183178
82FCDC371D73C3CC0011C27F /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = Sources/Info.plist; sourceTree = SOURCE_ROOT; };
184179
82FCDC3D1D73C4330011C27F /* Swiftx.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Swiftx.h; path = Carthage/Checkouts/SwiftCheck/../../../Sources/Swiftx.h; sourceTree = "<group>"; };
185180
84A88C891A70BD71003D53CF /* Swiftx.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Swiftx.framework; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -309,7 +304,6 @@
309304
isa = PBXGroup;
310305
children = (
311306
82FCDC0F1D73C3870011C27F /* Either.swift */,
312-
82FCDC321D73C3BE0011C27F /* Nothing.swift */,
313307
);
314308
name = Data;
315309
sourceTree = "<group>";
@@ -684,7 +678,6 @@
684678
82FCDC301D73C3B30011C27F /* Combinators.swift in Sources */,
685679
8240CDB01C3A3A0300EF4D29 /* Operators.swift in Sources */,
686680
82FCDC121D73C3870011C27F /* Either.swift in Sources */,
687-
82FCDC351D73C3BE0011C27F /* Nothing.swift in Sources */,
688681
);
689682
runOnlyForDeploymentPostprocessing = 0;
690683
};
@@ -706,7 +699,6 @@
706699
82FCDC311D73C3B30011C27F /* Combinators.swift in Sources */,
707700
8240CDB81C3A3A0A00EF4D29 /* Operators.swift in Sources */,
708701
82FCDC131D73C3870011C27F /* Either.swift in Sources */,
709-
82FCDC361D73C3BE0011C27F /* Nothing.swift in Sources */,
710702
);
711703
runOnlyForDeploymentPostprocessing = 0;
712704
};
@@ -720,7 +712,6 @@
720712
82FCDC2E1D73C3B30011C27F /* Combinators.swift in Sources */,
721713
82FCDC101D73C3870011C27F /* Either.swift in Sources */,
722714
822A5FBD1B4CC78A00F48B0B /* Operators.swift in Sources */,
723-
82FCDC331D73C3BE0011C27F /* Nothing.swift in Sources */,
724715
);
725716
runOnlyForDeploymentPostprocessing = 0;
726717
};
@@ -742,7 +733,6 @@
742733
82FCDC2F1D73C3B30011C27F /* Combinators.swift in Sources */,
743734
82FCDC111D73C3870011C27F /* Either.swift in Sources */,
744735
822A5FBE1B4CC78A00F48B0B /* Operators.swift in Sources */,
745-
82FCDC341D73C3BE0011C27F /* Nothing.swift in Sources */,
746736
);
747737
runOnlyForDeploymentPostprocessing = 0;
748738
};
@@ -803,6 +793,7 @@
803793
INFOPLIST_FILE = Sources/Info.plist;
804794
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
805795
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
796+
OTHER_SWIFT_FLAGS = "-DXCODE_BUILD";
806797
PRODUCT_BUNDLE_IDENTIFIER = "com.typelift.Swiftx-tvOS";
807798
PRODUCT_NAME = Swiftx;
808799
SDKROOT = appletvos;
@@ -827,6 +818,7 @@
827818
INFOPLIST_FILE = Sources/Info.plist;
828819
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
829820
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
821+
OTHER_SWIFT_FLAGS = "-DXCODE_BUILD";
830822
PRODUCT_BUNDLE_IDENTIFIER = "com.typelift.Swiftx-tvOS";
831823
PRODUCT_NAME = Swiftx;
832824
SDKROOT = appletvos;
@@ -885,6 +877,7 @@
885877
INFOPLIST_FILE = Sources/Info.plist;
886878
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
887879
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
880+
OTHER_SWIFT_FLAGS = "-DXCODE_BUILD";
888881
PRODUCT_BUNDLE_IDENTIFIER = "com.typelift.Swiftx-watchOS";
889882
PRODUCT_NAME = Swiftx;
890883
SDKROOT = watchos;
@@ -909,6 +902,7 @@
909902
INFOPLIST_FILE = Sources/Info.plist;
910903
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
911904
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
905+
OTHER_SWIFT_FLAGS = "-DXCODE_BUILD";
912906
PRODUCT_BUNDLE_IDENTIFIER = "com.typelift.Swiftx-watchOS";
913907
PRODUCT_NAME = Swiftx;
914908
SDKROOT = watchos;
@@ -1025,6 +1019,7 @@
10251019
INFOPLIST_FILE = Sources/Info.plist;
10261020
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
10271021
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
1022+
OTHER_SWIFT_FLAGS = "-DXCODE_BUILD";
10281023
PRODUCT_BUNDLE_IDENTIFIER = "com.typelift.(PRODUCT_NAME:rfc1034identifier)";
10291024
PRODUCT_NAME = "$(TARGET_NAME)";
10301025
SKIP_INSTALL = YES;
@@ -1044,6 +1039,7 @@
10441039
INFOPLIST_FILE = Sources/Info.plist;
10451040
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
10461041
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
1042+
OTHER_SWIFT_FLAGS = "-DXCODE_BUILD";
10471043
PRODUCT_BUNDLE_IDENTIFIER = "com.typelift.(PRODUCT_NAME:rfc1034identifier)";
10481044
PRODUCT_NAME = "$(TARGET_NAME)";
10491045
SKIP_INSTALL = YES;
@@ -1107,6 +1103,7 @@
11071103
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
11081104
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
11091105
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1106+
OTHER_SWIFT_FLAGS = "-DXCODE_BUILD";
11101107
PRODUCT_BUNDLE_IDENTIFIER = "com.typelift.(PRODUCT_NAME:rfc1034identifier)";
11111108
PRODUCT_NAME = Swiftx;
11121109
SDKROOT = iphoneos;
@@ -1129,6 +1126,7 @@
11291126
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
11301127
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
11311128
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1129+
OTHER_SWIFT_FLAGS = "-DXCODE_BUILD";
11321130
PRODUCT_BUNDLE_IDENTIFIER = "com.typelift.(PRODUCT_NAME:rfc1034identifier)";
11331131
PRODUCT_NAME = Swiftx;
11341132
SDKROOT = iphoneos;

0 commit comments

Comments
 (0)