Skip to content
This repository was archived by the owner on Dec 15, 2024. It is now read-only.

Commit ec60a28

Browse files
committed
Merge branch 'develop'
2 parents fcf7745 + 7d07d62 commit ec60a28

File tree

96 files changed

+2488
-4175
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+2488
-4175
lines changed

.travis.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: generic
2-
osx_image: xcode7.3
2+
osx_image: xcode8
33
os:
44
- linux
55
- osx
@@ -13,15 +13,15 @@ install:
1313
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update ; fi
1414
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install clang uuid-dev libjson-c-dev ; fi
1515
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mkdir $SWIFT_DIR ; fi
16-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl https://swift.org/builds/development/ubuntu1404/$SWIFT_VERSION/$SWIFT_VERSION-ubuntu14.04.tar.gz -s | tar xz -C $SWIFT_DIR &> /dev/null ; fi
16+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl https://swift.org/builds/swift-3.0-preview-1/ubuntu1404/$SWIFT_VERSION/$SWIFT_VERSION-ubuntu14.04.tar.gz -s | tar xz -C $SWIFT_DIR &> /dev/null ; fi
1717
env:
18-
- SWIFT_VERSION=swift-DEVELOPMENT-SNAPSHOT-2016-02-25-a
18+
- SWIFT_VERSION=swift-3.0-PREVIEW-1
1919
script:
2020
- uname
21-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xctool test -workspace SwiftFoundation.xcworkspace -scheme "SwiftFoundation OS X" -sdk macosx ONLY_ACTIVE_ARCH=NO ; fi
22-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xctool build -workspace SwiftFoundation.xcworkspace -scheme "SwiftFoundation iOS" -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO ; fi
21+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xctool test -project Xcode/SwiftFoundation.xcodeproj -scheme "SwiftFoundation OS X" -sdk macosx ONLY_ACTIVE_ARCH=NO ; fi
22+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xctool build -project Xcode/SwiftFoundation.xcodeproj -scheme "SwiftFoundation iOS" -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO ; fi
2323

2424
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PATH=$(pwd)/tests/$SWIFT_VERSION-ubuntu14.04/usr/bin:"${PATH}" ; fi
25-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then swift build -c release ; fi
26-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then .build/release/UnitTests ; fi
25+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then swift build ; fi
26+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then .build/debug/UnitTests ; fi
2727

Cartfile.resolved

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "PureSwift/json-c" "e8e38025563d43e425536200002ad13c3f35a98b"
1+
github "PureSwift/JSON-C" "098c5ad91d262de5ad695a6162b6d0d4b384741d"

Introduction.playground/Contents.swift

Lines changed: 0 additions & 38 deletions
This file was deleted.

Introduction.playground/contents.xcplayground

Lines changed: 0 additions & 4 deletions
This file was deleted.

Introduction.playground/playground.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 7 deletions
This file was deleted.

Introduction.playground/timeline.xctimeline

Lines changed: 0 additions & 16 deletions
This file was deleted.

Package.swift

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,16 @@ import PackageDescription
22

33
let package = Package(
44
name: "SwiftFoundation",
5-
dependencies: [
6-
.Package(url: "https://github.com/PureSwift/CUUID.git", majorVersion: 1),
7-
.Package(url: "https://github.com/PureSwift/CStatfs.git", majorVersion: 1),
8-
.Package(url: "https://github.com/PureSwift/CJSONC.git", majorVersion: 1)
9-
],
105
targets: [
116
Target(
127
name: "UnitTests",
138
dependencies: [.Target(name: "SwiftFoundation")]),
14-
Target(
15-
name: "FoundationUnitTests",
16-
dependencies: [.Target(name: "SwiftFoundation")]),
17-
Target(
18-
name: "FoundationConvertible",
19-
dependencies: [.Target(name: "SwiftFoundation")]),
209
Target(
2110
name: "SwiftFoundation")
22-
]
23-
)
11+
],
12+
dependencies: [
13+
.Package(url: "https://github.com/PureSwift/CStatfs.git", majorVersion: 1),
14+
.Package(url: "https://github.com/PureSwift/CJSONC.git", majorVersion: 1)
15+
],
16+
exclude: ["Xcode", "Carthage"]
17+
)

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SwiftFoundation #
2-
[![Swift](https://img.shields.io/badge/swift-2.2-orange.svg?style=flat)](https://developer.apple.com/swift/)
2+
[![Swift](https://img.shields.io/badge/swift-3.0-orange.svg?style=flat)](https://developer.apple.com/swift/)
33
[![Platforms](https://img.shields.io/badge/platform-osx%20%7C%20ios%20%7C%20watchos%20%7C%20tvos%20%7C%20linux-lightgrey.svg)](https://developer.apple.com/swift/)
44
[![Release](https://img.shields.io/github/release/pureswift/swiftfoundation.svg)](https://github.com/PureSwift/SwiftFoundation/releases)
55
[![License](https://img.shields.io/badge/license-MIT-71787A.svg)](https://tldrlegal.com/license/mit-license)
@@ -42,17 +42,18 @@ swift build
4242
## Implemented
4343
To see what parts of Foundation are implemented, just look at the unit tests. Completed functionality will be fully unit tested. Note that there is some functionality that is written as a protocol only, that will not be included on this list.
4444

45+
- [x] Base64
46+
- [x] Data
4547
- [x] Date
48+
- [x] FileManager
49+
- [x] JSON
4650
- [x] Null
4751
- [x] Order (equivalent to ```NSComparisonResult```)
52+
- [X] RegularExpression (POSIX, not ICU)
4853
- [x] SortDescriptor
49-
- [x] UUID
50-
- [x] FileManager
51-
- [x] Data
54+
- [x] Thread
5255
- [x] URL
53-
- [X] RegularExpression (POSIX, not ICU)
54-
- [x] JSON
55-
- [x] Base64
56+
- [x] UUID
5657

5758
# License
5859

Sources/FoundationConvertible/FoundationConvertible.swift

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)