Skip to content

Commit

Permalink
Merge pull request #152 from tristanhimmelman/swift-3
Browse files Browse the repository at this point in the history
Swift 3
  • Loading branch information
tristanhimmelman authored Sep 14, 2016
2 parents 4df0e5d + 4a53854 commit b80e002
Show file tree
Hide file tree
Showing 18 changed files with 625 additions and 197 deletions.
76 changes: 70 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,45 @@

# Created by https://www.gitignore.io/api/osx,swift

### OSX ###
*.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk


### Swift ###
# 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 @@ -9,20 +48,33 @@ build/
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.xcscmblueprint
xcuserdata/

## Other
*.moved-aside
DerivedData
*.xcuserstate

## Obj-C/Swift specific
*.hmap
*.ipa
*.xcuserstate
*.dSYM.zip
*.dSYM

## 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 @@ -32,3 +84,15 @@ DerivedData
# Carthage/Checkouts

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/fastlane/docs/Gitignore.md

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: objective-c
osx_image: xcode7.3
osx_image: xcode8

env:
global:
Expand All @@ -9,14 +9,15 @@ env:
matrix:
- SCHEME="AlamofireObjectMapper iOS"
- SCHEME="AlamofireObjectMapper OSX"
- SCHEME="AlamofireObjectMapper tvOS"
- SCHEME="AlamofireObjectMapper tvOS"

before_install:
- brew install xctool
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet

script:
- xctool -workspace $XCODE_WORKSPACE -scheme "$SCHEME" -configuration Debug clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
- xctool -workspace $XCODE_WORKSPACE -scheme "$SCHEME" -configuration Release clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
script:
- set -o pipefail
- xcodebuild -workspace "$XCODE_WORKSPACE" -scheme "$SCHEME" -configuration Debug clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c;
- xcodebuild -workspace "$XCODE_WORKSPACE" -scheme "$SCHEME" -configuration Release clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c;

notifications:
email: false
10 changes: 5 additions & 5 deletions AlamofireObjectMapper.podspec
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
Pod::Spec.new do |s|

s.name = "AlamofireObjectMapper"
s.version = "3.0.2"
s.version = "4.0.0"
s.license = { :type => "MIT", :file => "LICENSE" }
s.summary = "An extension to Alamofire which automatically converts JSON response data into swift objects using ObjectMapper"
s.homepage = "https://github.com/tristanhimmelman/AlamofireObjectMapper"
s.author = { "Tristan Himmelman" => "[email protected]" }
s.source = { :git => 'https://github.com/tristanhimmelman/AlamofireObjectMapper.git', :tag => s.version.to_s }

s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.9'
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.11'
s.watchos.deployment_target = '2.0'
s.tvos.deployment_target = '9.0'

s.requires_arc = 'true'
s.source_files = 'AlamofireObjectMapper/**/*.swift'
s.dependency 'Alamofire', '~> 3.2'
s.dependency 'ObjectMapper', '~> 1.0'
s.dependency 'Alamofire', '~> 4.0'
s.dependency 'ObjectMapper', '~> 2.0'
end
400 changes: 297 additions & 103 deletions AlamofireObjectMapper.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>E216F167-6BBD-4B09-9721-39268CC4E710</string>
<key>IDESourceControlProjectName</key>
<string>AlamofireObjectMapper</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>D712610954CA9BFA7A6E793AC8CA9FD9B6557F56</key>
<string>https://github.com/tristanhimmelman/Alamofire-ObjectMapper.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>AlamofireObjectMapper.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>D712610954CA9BFA7A6E793AC8CA9FD9B6557F56</key>
<string>../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/tristanhimmelman/Alamofire-ObjectMapper.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>D712610954CA9BFA7A6E793AC8CA9FD9B6557F56</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>D712610954CA9BFA7A6E793AC8CA9FD9B6557F56</string>
<key>IDESourceControlWCCName</key>
<string>Alamofire-ObjectMapper</string>
</dict>
</array>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "D712610954CA9BFA7A6E793AC8CA9FD9B6557F56",
"DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : {

},
"DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : {
"D712610954CA9BFA7A6E793AC8CA9FD9B6557F56" : 0,
"58AAB0051E2B4EEDF1845A552012E6D0EBAD9127" : 9223372036854775807,
"C9532DB34657C9B197EE3CA2A5C379A9162E6DF6" : 9223372036854775807,
"67620B5EFA902936DF04070AF595B76AB0333747" : 9223372036854775807
},
"DVTSourceControlWorkspaceBlueprintIdentifierKey" : "E216F167-6BBD-4B09-9721-39268CC4E710",
"DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : {
"D712610954CA9BFA7A6E793AC8CA9FD9B6557F56" : "AlamofireObjectMapper\/",
"58AAB0051E2B4EEDF1845A552012E6D0EBAD9127" : "AlamofireObjectMapper\/Carthage\/Checkouts\/ObjectMapper\/",
"C9532DB34657C9B197EE3CA2A5C379A9162E6DF6" : "..\/..",
"67620B5EFA902936DF04070AF595B76AB0333747" : "AlamofireObjectMapper\/Carthage\/Checkouts\/Alamofire\/"
},
"DVTSourceControlWorkspaceBlueprintNameKey" : "AlamofireObjectMapper",
"DVTSourceControlWorkspaceBlueprintVersion" : 204,
"DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "AlamofireObjectMapper.xcodeproj",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [
{
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "ssh:\/\/github.com\/Hearst-DD\/ObjectMapper.git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "58AAB0051E2B4EEDF1845A552012E6D0EBAD9127"
},
{
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "ssh:\/\/github.com\/Alamofire\/Alamofire.git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "67620B5EFA902936DF04070AF595B76AB0333747"
},
{
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "github.com:5UMU\/sumu_ios.git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "C9532DB34657C9B197EE3CA2A5C379A9162E6DF6"
},
{
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/tristanhimmelman\/Alamofire-ObjectMapper.git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "D712610954CA9BFA7A6E793AC8CA9FD9B6557F56"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0700"
LastUpgradeVersion = "0800"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0700"
LastUpgradeVersion = "0800"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0710"
LastUpgradeVersion = "0800"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0700"
LastUpgradeVersion = "0800"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>C7BE09AD-45C0-4DDF-AC80-A6D8717D2DCE</string>
<key>IDESourceControlProjectName</key>
<string>AlamofireObjectMapper</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>D712610954CA9BFA7A6E793AC8CA9FD9B6557F56</key>
<string>https://github.com/tristanhimmelman/Alamofire-ObjectMapper.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>AlamofireObjectMapper.xcworkspace</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>D712610954CA9BFA7A6E793AC8CA9FD9B6557F56</key>
<string>..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/tristanhimmelman/Alamofire-ObjectMapper.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>D712610954CA9BFA7A6E793AC8CA9FD9B6557F56</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>D712610954CA9BFA7A6E793AC8CA9FD9B6557F56</string>
<key>IDESourceControlWCCName</key>
<string>AlamofireObjectMapper</string>
</dict>
</array>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "D712610954CA9BFA7A6E793AC8CA9FD9B6557F56",
"DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : {

},
"DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : {
"D712610954CA9BFA7A6E793AC8CA9FD9B6557F56" : 0,
"58AAB0051E2B4EEDF1845A552012E6D0EBAD9127" : 0,
"67620B5EFA902936DF04070AF595B76AB0333747" : 0
},
"DVTSourceControlWorkspaceBlueprintIdentifierKey" : "C7BE09AD-45C0-4DDF-AC80-A6D8717D2DCE",
"DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : {
"D712610954CA9BFA7A6E793AC8CA9FD9B6557F56" : "AlamofireObjectMapper\/",
"58AAB0051E2B4EEDF1845A552012E6D0EBAD9127" : "AlamofireObjectMapper\/Carthage\/Checkouts\/ObjectMapper\/",
"67620B5EFA902936DF04070AF595B76AB0333747" : "AlamofireObjectMapper\/Carthage\/Checkouts\/Alamofire\/"
},
"DVTSourceControlWorkspaceBlueprintNameKey" : "AlamofireObjectMapper",
"DVTSourceControlWorkspaceBlueprintVersion" : 204,
"DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "AlamofireObjectMapper.xcworkspace",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [
{
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/Hearst-DD\/ObjectMapper.git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "58AAB0051E2B4EEDF1845A552012E6D0EBAD9127"
},
{
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/Alamofire\/Alamofire.git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "67620B5EFA902936DF04070AF595B76AB0333747"
},
{
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/tristanhimmelman\/Alamofire-ObjectMapper.git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "D712610954CA9BFA7A6E793AC8CA9FD9B6557F56"
}
]
}
Loading

0 comments on commit b80e002

Please sign in to comment.