Skip to content

Commit 01178a1

Browse files
authored
Merge pull request #209 from ishkawa/swiftpm
Support Swift Package Manager
2 parents b5b70b9 + 3ccfea4 commit 01178a1

Some content is hidden

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

50 files changed

+297
-274
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
[submodule "Carthage/Checkouts/Result"]
22
path = Carthage/Checkouts/Result
33
url = https://github.com/antitypical/Result.git
4-
[submodule "Carthage/Checkouts/OHHTTPStubs"]
5-
path = Carthage/Checkouts/OHHTTPStubs
6-
url = https://github.com/AliSoftware/OHHTTPStubs.git

.travis.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,19 @@ matrix:
77
- os: osx
88
language: objective-c
99
osx_image: xcode8
10-
env: JOB=Xcode8
11-
12-
install:
13-
- carthage bootstrap --use-submodules --no-build
14-
- pod repo update --silent
15-
16-
script:
17-
- if [[ "$JOB" == "Xcode7.3" ]]; then pod lib lint; fi
18-
- set -o pipefail
19-
- xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release ENABLE_TESTABILITY=YES | xcpretty -c
20-
- xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release -sdk iphonesimulator -destination "name=iPhone 6s" ENABLE_TESTABILITY=YES | xcpretty -c
21-
- xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release -sdk appletvsimulator -destination "name=Apple TV 1080p" ENABLE_TESTABILITY=YES | xcpretty -c
22-
23-
after_success:
24-
- bash <(curl -s https://codecov.io/bash)
10+
script:
11+
- set -o pipefail
12+
- xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release ENABLE_TESTABILITY=YES | xcpretty -c
13+
- xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release -sdk iphonesimulator -destination "name=iPhone 6s" ENABLE_TESTABILITY=YES | xcpretty -c
14+
- xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release -sdk appletvsimulator -destination "name=Apple TV 1080p" ENABLE_TESTABILITY=YES | xcpretty -c
15+
after_success:
16+
- bash <(curl -s https://codecov.io/bash)
17+
- os: osx
18+
language: generic
19+
osx_image: xcode8
20+
script:
21+
- swift build
22+
- swift test
2523

2624
notifications:
2725
email: false

APIKit.xcodeproj/project.pbxproj

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

APIKit.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cartfile.private

Lines changed: 0 additions & 1 deletion
This file was deleted.

Cartfile.resolved

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
github "AliSoftware/OHHTTPStubs" "5.2.1-swift3"
21
github "antitypical/Result" "3.0.0"

Carthage/Checkouts/OHHTTPStubs

Lines changed: 0 additions & 1 deletion
This file was deleted.

Configurations/APIKit.xcconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ DYLIB_COMPATIBILITY_VERSION = 1
44
DYLIB_CURRENT_VERSION = 1
55
DYLIB_INSTALL_NAME_BASE = @rpath
66
FRAMEWORK_VERSION = A
7-
INFOPLIST_FILE = Sources/Info.plist
7+
INFOPLIST_FILE = Sources/APIKit/Info.plist
88
PRODUCT_BUNDLE_IDENTIFIER = org.ishkawa.$(PRODUCT_NAME:rfc1034identifier)
99
PRODUCT_NAME = $(PROJECT_NAME)
1010
SKIP_INSTALL = YES

Package.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import PackageDescription
33
let package = Package(
44
name: "APIKit",
55
dependencies: [
6-
.Package(url: "https://github.com/antitypical/Result.git", majorVersion: 1),
7-
]
6+
.Package(url: "https://github.com/antitypical/Result.git", majorVersion: 3),
7+
],
8+
exclude: ["Sources/APIKit/BodyParameters/AbstractInputStream.m"]
89
)
File renamed without changes.

0 commit comments

Comments
 (0)