Skip to content

Commit

Permalink
Merge pull request #130 from ishkawa/feature/spm-support
Browse files Browse the repository at this point in the history
Swift Package Manager support
  • Loading branch information
ishkawa committed Mar 5, 2016
2 parents 73af9eb + 91d71b2 commit 529c9de
Show file tree
Hide file tree
Showing 24 changed files with 132 additions and 127 deletions.
40 changes: 32 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
### https://raw.github.com/github/gitignore/557c62cd54524fe6f7559cab042d91553bb0755e/Swift.gitignore

# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
Expand All @@ -11,20 +15,32 @@ build/
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
xcuserdata/

## Other
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
*.xcscmblueprint

## Obj-C/Swift specific
*.hmap
*.ipa

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
Packages/
.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/

Expand All @@ -35,4 +51,12 @@ DerivedData

Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md

fastlane/report.xml
fastlane/screenshots
1 change: 1 addition & 0 deletions .swift-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DEVELOPMENT-SNAPSHOT-2016-03-01-a
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ install:
script:
- pod lib lint
- set -o pipefail
- xcodebuild test -workspace APIKit.xcworkspace -scheme APIKit -sdk iphonesimulator -destination 'name=iPhone 6,OS=9.1' | xcpretty -c
- xcodebuild test -workspace APIKit.xcworkspace -scheme APIKit -sdk appletvsimulator -destination 'name=Apple TV 1080p,OS=9.1' | xcpretty -c
- xcodebuild test -workspace APIKit.xcworkspace -scheme APIKit | xcpretty -c
- xcodebuild test -workspace APIKit.xcworkspace -scheme APIKit -sdk iphonesimulator -destination 'name=iPhone 6,OS=9.1' | xcpretty -c
- xcodebuild build -workspace APIKit.xcworkspace -scheme APIKit -sdk appletvsimulator -destination 'name=Apple TV 1080p,OS=9.1' | xcpretty -c

before_deploy:
- ./script/import-certificates
Expand Down
2 changes: 1 addition & 1 deletion APIKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Pod::Spec.new do |s|
s.tvos.deployment_target = "9.0"
end

s.source_files = "APIKit/*.swift"
s.source_files = "Sources/*.swift"
s.source = {
:git => "https://github.com/ishkawa/APIKit.git",
:tag => "#{s.version}",
Expand Down
162 changes: 85 additions & 77 deletions APIKit.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

36 changes: 0 additions & 36 deletions APIKitTests/APIKitTests.swift

This file was deleted.

2 changes: 1 addition & 1 deletion Configurations/APIKit.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ DYLIB_COMPATIBILITY_VERSION = 1
DYLIB_CURRENT_VERSION = 1
DYLIB_INSTALL_NAME_BASE = @rpath
FRAMEWORK_VERSION = A
INFOPLIST_FILE = APIKit/Info.plist
INFOPLIST_FILE = Sources/Info.plist
PRODUCT_BUNDLE_IDENTIFIER = org.ishkawa.$(PRODUCT_NAME:rfc1034identifier)
PRODUCT_NAME = $(PROJECT_NAME)
SKIP_INSTALL = YES
Expand Down
2 changes: 1 addition & 1 deletion Configurations/Tests.xcconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
COMBINE_HIDPI_IMAGES = YES
INFOPLIST_FILE = APIKitTests/Info.plist
INFOPLIST_FILE = Tests/APIKit/Info.plist
PRODUCT_BUNDLE_IDENTIFIER = org.ishkawa.$(PRODUCT_NAME:rfc1034identifier)
PRODUCT_NAME = $(PROJECT_NAME)Tests

Expand Down
8 changes: 8 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import PackageDescription

let package = Package(
name: "APIKit",
dependencies: [
.Package(url: "https://github.com/antitypical/Result.git", majorVersion: 1),
]
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public final class MultipartFormDataSerialization {
}

public final class Parameter {
private enum Type {
private enum `Type` {
case DataWithMimeType(data: NSData, mimeType: String)
case DataWithFileNameMimeType(data: NSData, fileName: String, mimeType: String)
case FileURLWithFileNameMimeType(fileURL: NSURL, fileName: String, mimeType: String)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 529c9de

Please sign in to comment.