Skip to content

Commit

Permalink
Merge pull request trivago#122 from fbeeper/feature/swift5
Browse files Browse the repository at this point in the history
Update project to Swift 5 and Update Dependencies
  • Loading branch information
donnywdavis authored Jun 29, 2019
2 parents b6b8ea3 + 70d3d00 commit fd4b9c2
Show file tree
Hide file tree
Showing 16 changed files with 97 additions and 61 deletions.
2 changes: 1 addition & 1 deletion Cartfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Core
github "antitypical/Result" ~> 3.2
github "antitypical/Result" ~> 4.1.0
8 changes: 4 additions & 4 deletions Cartfile.private
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
github "jspahrsummers/xcconfigs" ~> 0.11
github "AliSoftware/OHHTTPStubs" ~> 6.0
github "jspahrsummers/xcconfigs" ~> 1.0
github "AliSoftware/OHHTTPStubs" ~> 7.0

# Specifications
github "Quick/Quick" ~> 1.1.0
github "Quick/Quick" ~> 2.1.0

# Matchers
github "Quick/Nimble" ~> 7.0.0
github "Quick/Nimble" ~> 8.0.1
10 changes: 5 additions & 5 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github "AliSoftware/OHHTTPStubs" "6.0.0"
github "Quick/Nimble" "v7.0.2"
github "Quick/Quick" "v1.2.0"
github "antitypical/Result" "3.2.4"
github "jspahrsummers/xcconfigs" "0.11"
github "AliSoftware/OHHTTPStubs" "7.0.0"
github "Quick/Nimble" "v8.0.1"
github "Quick/Quick" "v2.1.0"
github "antitypical/Result" "4.1.0"
github "jspahrsummers/xcconfigs" "1.0"
2 changes: 1 addition & 1 deletion Carthage/Checkouts/Nimble
Submodule Nimble updated 136 files
2 changes: 1 addition & 1 deletion Carthage/Checkouts/OHHTTPStubs
Submodule OHHTTPStubs updated 95 files
+1 −0 .gitignore
+21 −18 .travis.yml
+56 −0 CHANGELOG.md
+9 −8 Examples/ObjC/MainViewController.m
+130 −87 Examples/ObjC/MainViewController.xib
+23 −38 Examples/ObjC/OHHTTPStubsDemo.xcodeproj/project.pbxproj
+4 −1 Examples/ObjC/OHHTTPStubsDemo.xcodeproj/xcshareddata/xcschemes/OHHTTPStubsDemo.xcscheme
+5 −0 Examples/ObjC/OHHTTPStubsDemo.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
+1 −1 Examples/ObjC/Podfile
+10 −10 Examples/ObjC/Podfile.lock
+3 −3 Examples/ObjC/Pods/Local Podspecs/OHHTTPStubs.podspec.json
+10 −10 Examples/ObjC/Pods/Manifest.lock
+309 −361 Examples/ObjC/Pods/Pods.xcodeproj/project.pbxproj
+4 −5 Examples/ObjC/Pods/Target Support Files/OHHTTPStubs/OHHTTPStubs.xcconfig
+17 −4 Examples/ObjC/Pods/Target Support Files/Pods-OHHTTPStubsDemo/Pods-OHHTTPStubsDemo-frameworks.sh
+16 −9 Examples/ObjC/Pods/Target Support Files/Pods-OHHTTPStubsDemo/Pods-OHHTTPStubsDemo-resources.sh
+4 −4 Examples/ObjC/Pods/Target Support Files/Pods-OHHTTPStubsDemo/Pods-OHHTTPStubsDemo.debug.xcconfig
+4 −4 Examples/ObjC/Pods/Target Support Files/Pods-OHHTTPStubsDemo/Pods-OHHTTPStubsDemo.release.xcconfig
+9 −2 Examples/Swift/AppDelegate.swift
+39 −34 Examples/Swift/Main.storyboard
+8 −8 Examples/Swift/MainViewController.swift
+27 −21 Examples/Swift/OHHTTPStubsDemo.xcodeproj/project.pbxproj
+6 −1 Examples/Swift/OHHTTPStubsDemo.xcodeproj/xcshareddata/xcschemes/OHHTTPStubsDemo.xcscheme
+5 −0 Examples/Swift/OHHTTPStubsDemo.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
+10 −10 Examples/Swift/Podfile.lock
+3 −3 Examples/Swift/Pods/Local Podspecs/OHHTTPStubs.podspec.json
+10 −10 Examples/Swift/Pods/Manifest.lock
+341 −393 Examples/Swift/Pods/Pods.xcodeproj/project.pbxproj
+1 −1 Examples/Swift/Pods/Target Support Files/OHHTTPStubs/OHHTTPStubs-Info.plist
+4 −6 Examples/Swift/Pods/Target Support Files/OHHTTPStubs/OHHTTPStubs.xcconfig
+26 −0 Examples/Swift/Pods/Target Support Files/Pods-OHHTTPStubsDemo/Pods-OHHTTPStubsDemo-Info.plist
+80 −16 Examples/Swift/Pods/Target Support Files/Pods-OHHTTPStubsDemo/Pods-OHHTTPStubsDemo-frameworks.sh
+16 −9 Examples/Swift/Pods/Target Support Files/Pods-OHHTTPStubsDemo/Pods-OHHTTPStubsDemo-resources.sh
+7 −6 Examples/Swift/Pods/Target Support Files/Pods-OHHTTPStubsDemo/Pods-OHHTTPStubsDemo.debug.xcconfig
+7 −6 Examples/Swift/Pods/Target Support Files/Pods-OHHTTPStubsDemo/Pods-OHHTTPStubsDemo.release.xcconfig
+2 −2 OHHTTPStubs.podspec
+59 −165 OHHTTPStubs/OHHTTPStubs.xcodeproj/project.pbxproj
+1 −1 OHHTTPStubs/OHHTTPStubs.xcodeproj/xcshareddata/xcschemes/OHHTTPStubs Mac Framework.xcscheme
+1 −1 OHHTTPStubs/OHHTTPStubs.xcodeproj/xcshareddata/xcschemes/OHHTTPStubs iOS Framework.xcscheme
+1 −1 OHHTTPStubs/OHHTTPStubs.xcodeproj/xcshareddata/xcschemes/OHHTTPStubs iOS StaticLib.xcscheme
+1 −1 OHHTTPStubs/OHHTTPStubs.xcodeproj/xcshareddata/xcschemes/OHHTTPStubs tvOS Framework.xcscheme
+30 −0 OHHTTPStubs/OHHTTPStubsProject.xcconfig
+1 −1 OHHTTPStubs/Podfile
+6 −2 OHHTTPStubs/Podfile.lock
+6 −2 OHHTTPStubs/Pods/Manifest.lock
+782 −958 OHHTTPStubs/Pods/Pods.xcodeproj/project.pbxproj
+5 −0 OHHTTPStubs/Pods/Target Support Files/AFNetworking-c94d3492/AFNetworking-c94d3492-dummy.m
+8 −0 OHHTTPStubs/Pods/Target Support Files/AFNetworking-c94d3492/AFNetworking-c94d3492-prefix.pch
+9 −0 OHHTTPStubs/Pods/Target Support Files/AFNetworking-c94d3492/AFNetworking-c94d3492.xcconfig
+5 −0 OHHTTPStubs/Pods/Target Support Files/AFNetworking-iOS/AFNetworking-iOS-dummy.m
+8 −0 OHHTTPStubs/Pods/Target Support Files/AFNetworking-iOS/AFNetworking-iOS-prefix.pch
+9 −0 OHHTTPStubs/Pods/Target Support Files/AFNetworking-iOS/AFNetworking-iOS.xcconfig
+0 −5 OHHTTPStubs/Pods/Target Support Files/AFNetworking-iOS7.0/AFNetworking-iOS7.0-dummy.m
+0 −15 OHHTTPStubs/Pods/Target Support Files/AFNetworking-iOS7.0/AFNetworking-iOS7.0-prefix.pch
+0 −9 OHHTTPStubs/Pods/Target Support Files/AFNetworking-iOS7.0/AFNetworking-iOS7.0.xcconfig
+0 −5 OHHTTPStubs/Pods/Target Support Files/AFNetworking-iOS8.0/AFNetworking-iOS8.0-dummy.m
+0 −9 OHHTTPStubs/Pods/Target Support Files/AFNetworking-iOS8.0/AFNetworking-iOS8.0.xcconfig
+5 −0 OHHTTPStubs/Pods/Target Support Files/AFNetworking-tvOS/AFNetworking-tvOS-dummy.m
+8 −0 OHHTTPStubs/Pods/Target Support Files/AFNetworking-tvOS/AFNetworking-tvOS-prefix.pch
+9 −0 OHHTTPStubs/Pods/Target Support Files/AFNetworking-tvOS/AFNetworking-tvOS.xcconfig
+0 −5 OHHTTPStubs/Pods/Target Support Files/AFNetworking-tvOS9.0/AFNetworking-tvOS9.0-dummy.m
+0 −9 OHHTTPStubs/Pods/Target Support Files/AFNetworking-tvOS9.0/AFNetworking-tvOS9.0.xcconfig
+0 −5 ...chability-Security-Serialization/AFNetworking.root-NSURLSession-Reachability-Security-Serialization-dummy.m
+0 −9 ...hability-Security-Serialization/AFNetworking.root-NSURLSession-Reachability-Security-Serialization.xcconfig
+3 −1 ... Files/Pods-TestingPods-OHHTTPStubs Mac Tests/Pods-TestingPods-OHHTTPStubs Mac Tests-acknowledgements.plist
+5 −4 ... Support Files/Pods-TestingPods-OHHTTPStubs Mac Tests/Pods-TestingPods-OHHTTPStubs Mac Tests.debug.xcconfig
+5 −4 ...upport Files/Pods-TestingPods-OHHTTPStubs Mac Tests/Pods-TestingPods-OHHTTPStubs Mac Tests.release.xcconfig
+3 −1 ...ods-TestingPods-OHHTTPStubs iOS Fmk Tests/Pods-TestingPods-OHHTTPStubs iOS Fmk Tests-acknowledgements.plist
+5 −4 ... Files/Pods-TestingPods-OHHTTPStubs iOS Fmk Tests/Pods-TestingPods-OHHTTPStubs iOS Fmk Tests.debug.xcconfig
+5 −4 ...iles/Pods-TestingPods-OHHTTPStubs iOS Fmk Tests/Pods-TestingPods-OHHTTPStubs iOS Fmk Tests.release.xcconfig
+3 −1 ...ods-TestingPods-OHHTTPStubs iOS Lib Tests/Pods-TestingPods-OHHTTPStubs iOS Lib Tests-acknowledgements.plist
+5 −4 ... Files/Pods-TestingPods-OHHTTPStubs iOS Lib Tests/Pods-TestingPods-OHHTTPStubs iOS Lib Tests.debug.xcconfig
+5 −4 ...iles/Pods-TestingPods-OHHTTPStubs iOS Lib Tests/Pods-TestingPods-OHHTTPStubs iOS Lib Tests.release.xcconfig
+3 −1 ...s-TestingPods-OHHTTPStubs tvOS Fmk Tests/Pods-TestingPods-OHHTTPStubs tvOS Fmk Tests-acknowledgements.plist
+5 −4 ...iles/Pods-TestingPods-OHHTTPStubs tvOS Fmk Tests/Pods-TestingPods-OHHTTPStubs tvOS Fmk Tests.debug.xcconfig
+5 −4 ...es/Pods-TestingPods-OHHTTPStubs tvOS Fmk Tests/Pods-TestingPods-OHHTTPStubs tvOS Fmk Tests.release.xcconfig
+6 −6 OHHTTPStubs/Sources/HTTPMessage/OHHTTPStubsResponse+HTTPMessage.m
+1 −1 OHHTTPStubs/Sources/JSON/OHHTTPStubsResponse+JSON.m
+26 −26 OHHTTPStubs/Sources/Mocktail/OHHTTPStubs+Mocktail.m
+8 −0 OHHTTPStubs/Sources/OHHTTPStubs.h
+69 −19 OHHTTPStubs/Sources/OHHTTPStubs.m
+4 −4 OHHTTPStubs/Sources/OHHTTPStubsResponse.m
+66 −1 OHHTTPStubs/Sources/Swift/OHHTTPStubsSwift.swift
+22 −22 OHHTTPStubs/UnitTests/Test Suites/AFNetworkingTests.m
+21 −20 OHHTTPStubs/UnitTests/Test Suites/MocktailTests.m
+44 −44 OHHTTPStubs/UnitTests/Test Suites/NSURLConnectionDelegateTests.m
+13 −13 OHHTTPStubs/UnitTests/Test Suites/NSURLConnectionTests.m
+324 −108 OHHTTPStubs/UnitTests/Test Suites/NSURLSessionTests.m
+37 −37 OHHTTPStubs/UnitTests/Test Suites/NilValuesTests.m
+1 −1 OHHTTPStubs/UnitTests/Test Suites/OHPathHelpersTests.m
+133 −31 OHHTTPStubs/UnitTests/Test Suites/SwiftHelpersTests.swift
+6 −6 OHHTTPStubs/UnitTests/Test Suites/TimingTests.m
+8 −8 OHHTTPStubs/UnitTests/Test Suites/WithContentsOfURLTests.m
+14 −30 README.md
+2 −2 Rakefile
2 changes: 1 addition & 1 deletion Carthage/Checkouts/Quick
Submodule Quick updated 99 files
+2 −2 .gitignore
+4 −2 .hound.yml
+1 −1 .swift-version
+48 −40 .travis.yml
+2 −2 Dangerfile
+1 −0 Documentation/README.md
+2 −2 Documentation/en-us/ConfiguringQuick.md
+14 −14 Documentation/en-us/NimbleAssertions.md
+1 −1 Documentation/en-us/QuickExamplesAndGroups.md
+1 −1 Documentation/en-us/SharedExamples.md
+75 −0 Documentation/en-us/TestingApps.md
+14 −14 Documentation/ja/NimbleAssertions.md
+1 −1 Documentation/ja/QuickExamplesAndGroups.md
+203 −0 Documentation/ko-kr/ArrangeActAssert.md
+80 −0 Documentation/ko-kr/BehavioralTesting.md
+99 −0 Documentation/ko-kr/ConfiguringQuick.md
+25 −0 Documentation/ko-kr/InstallingFileTemplates.md
+141 −0 Documentation/ko-kr/InstallingQuick.md
+25 −0 Documentation/ko-kr/MoreResources.md
+97 −0 Documentation/ko-kr/NimbleAssertions.md
+462 −0 Documentation/ko-kr/QuickExamplesAndGroups.md
+49 −0 Documentation/ko-kr/QuickInObjectiveC.md
+35 −0 Documentation/ko-kr/README.md
+80 −0 Documentation/ko-kr/SettingUpYourXcodeProject.md
+116 −0 Documentation/ko-kr/SharedExamples.md
+129 −0 Documentation/ko-kr/TestUsingTestDoubles.md
+173 −0 Documentation/ko-kr/TestingApps.md
+10 −0 Documentation/ko-kr/Troubleshooting.md
+12 −12 Documentation/zh-cn/NimbleAssertions.md
+1 −1 Documentation/zh-cn/QuickExamplesAndGroups.md
+1 −1 Externals/Nimble
+1 −1 Gemfile
+65 −57 Gemfile.lock
+16 −0 Package.resolved
+35 −37 Package.swift
+6 −4 [email protected]
+1 −1 Quick Templates/Quick Configuration Class.xctemplate/Objective-C/___FILEBASENAME___.h
+1 −1 Quick Templates/Quick Configuration Class.xctemplate/Objective-C/___FILEBASENAME___.m
+1 −1 Quick Templates/Quick Configuration Class.xctemplate/Swift/___FILEBASENAME___.swift
+1 −1 Quick Templates/Quick Spec Class.xctemplate/Objective-C/___FILEBASENAME___.m
+1 −1 Quick Templates/Quick Spec Class.xctemplate/Swift/___FILEBASENAME___.swift
+10 −3 Quick.podspec
+127 −71 Quick.xcodeproj/project.pbxproj
+1 −3 Quick.xcodeproj/xcshareddata/xcschemes/Quick-iOS.xcscheme
+1 −3 Quick.xcodeproj/xcshareddata/xcschemes/Quick-macOS.xcscheme
+1 −3 Quick.xcodeproj/xcshareddata/xcschemes/Quick-tvOS.xcscheme
+8 −0 Quick.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+8 −0 Quick.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
+3 −1 README.md
+13 −5 Rakefile
+1 −1 Sources/Quick/Behavior.swift
+17 −12 Sources/Quick/Callsite.swift
+2 −2 Sources/Quick/Configuration/Configuration.swift
+4 −4 Sources/Quick/Configuration/QuickConfiguration.swift
+10 −10 Sources/Quick/DSL/DSL.swift
+20 −15 Sources/Quick/DSL/World+DSL.swift
+1 −1 Sources/Quick/ErrorUtility.swift
+6 −9 Sources/Quick/Example.swift
+3 −9 Sources/Quick/ExampleMetadata.swift
+3 −9 Sources/Quick/Filter.swift
+2 −2 Sources/Quick/NSBundle+CurrentTestBundle.swift
+0 −33 Sources/Quick/NSString+C99ExtendedIdentifier.swift
+2 −2 Sources/Quick/QuickMain.swift
+1 −1 Sources/Quick/QuickSelectedTestSuiteBuilder.swift
+31 −11 Sources/Quick/QuickSpec.swift
+1 −1 Sources/Quick/QuickTestSuite.swift
+46 −0 Sources/Quick/String+C99ExtendedIdentifier.swift
+6 −12 Sources/Quick/World.swift
+6 −1 Sources/QuickObjectiveC/Configuration/QuickConfiguration.m
+6 −2 Sources/QuickObjectiveC/DSL/QCKDSL.m
+0 −20 Sources/QuickObjectiveC/DSL/World+DSL.h
+6 −0 Sources/QuickObjectiveC/QuickSpec.h
+11 −3 Sources/QuickObjectiveC/QuickSpec.m
+0 −18 Sources/QuickObjectiveC/World.h
+5 −0 Sources/QuickObjectiveC/XCTestSuite+QuickTestSuiteBuilder.m
+16 −15 Tests/LinuxMain.swift
+3 −2 Tests/QuickTests/QuickTestHelpers/SpecRunner.swift
+3 −8 Tests/QuickTests/QuickTestHelpers/TestRun.swift
+5 −5 Tests/QuickTests/QuickTestHelpers/XCTestCaseProvider.swift
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/AfterEachTests.swift
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/BeforeEachTests.swift
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/BehaviorTests.swift
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/ContextTests.swift
+37 −0 Tests/QuickTests/QuickTests/FunctionalTests/CurrentSpecTests.swift
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/DescribeTests.swift
+2 −2 Tests/QuickTests/QuickTests/FunctionalTests/ItTests.swift
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/ObjC/ItTests+ObjC.m
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/SharedExamplesTests.swift
+8 −24 Tests/QuickTests/QuickTests/Helpers/QCKSpecRunner.m
+24 −0 Tests/QuickTests/QuickTests/Helpers/QuickSpec+MethodList.swift
+0 −11 Tests/QuickTests/QuickTests/Helpers/QuickSpec+QuickSpec_MethodList.h
+0 −31 Tests/QuickTests/QuickTests/Helpers/QuickSpec+QuickSpec_MethodList.m
+57 −0 Tests/QuickTests/QuickTests/Helpers/QuickSpecRunner.swift
+1 −2 Tests/QuickTests/QuickTests/Helpers/QuickTestsBridgingHeader.h
+0 −20 Tests/QuickTests/QuickTests/Helpers/XCTestObservationCenter+QCKSuspendObservation.h
+0 −54 Tests/QuickTests/QuickTests/Helpers/XCTestObservationCenter+QCKSuspendObservation.m
+47 −0 Tests/QuickTests/QuickTests/Helpers/XCTestObservationCenter+QCKSuspendObservation.swift
+1 −1 script/release
+0 −4 script/travis-install-macos
2 changes: 1 addition & 1 deletion Carthage/Checkouts/xcconfigs
8 changes: 4 additions & 4 deletions Heimdallr.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'Heimdallr'
spec.version = '3.6.1'
spec.version = '3.7.0'
spec.authors = {
'trivago' => '[email protected]'
}
Expand All @@ -18,14 +18,14 @@ Pod::Spec.new do |spec|
spec.description = 'Heimdallr is an OAuth 2.0 client specifically designed for easy usage. It currently supports the resource owner password credentials grant flow, refreshing an access token as well as extension grants.'

spec.ios.deployment_target = '9.0'
spec.osx.deployment_target = '10.9'
spec.osx.deployment_target = '10.10'

spec.default_subspec = 'Core'

spec.subspec 'Core' do |subspec|
subspec.dependency 'Result', '~> 3.0'
subspec.dependency 'Result', '~> 4.1.0'
subspec.framework = 'Foundation'

subspec.source_files = 'Heimdallr/Core/*.swift'
subspec.source_files = 'Heimdallr/*.swift'
end
end
93 changes: 59 additions & 34 deletions Heimdallr.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,18 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
4589DE79226B996D00A03FFA /* macOS-Application.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "macOS-Application.xcconfig"; sourceTree = "<group>"; };
4589DE7A226B996D00A03FFA /* macOS-Framework.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "macOS-Framework.xcconfig"; sourceTree = "<group>"; };
4589DE7B226B996D00A03FFA /* macOS-StaticLibrary.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "macOS-StaticLibrary.xcconfig"; sourceTree = "<group>"; };
4589DE7C226B996D00A03FFA /* macOS-Base.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "macOS-Base.xcconfig"; sourceTree = "<group>"; };
4589DE7D226B996D00A03FFA /* macOS-XCTest.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "macOS-XCTest.xcconfig"; sourceTree = "<group>"; };
4589DE7E226B996D00A03FFA /* macOS-DynamicLibrary.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "macOS-DynamicLibrary.xcconfig"; sourceTree = "<group>"; };
4589DE80226B996D00A03FFA /* Mac-XCTest.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "Mac-XCTest.xcconfig"; sourceTree = "<group>"; };
4589DE81226B996D00A03FFA /* Mac-StaticLibrary.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "Mac-StaticLibrary.xcconfig"; sourceTree = "<group>"; };
4589DE82226B996D00A03FFA /* Mac-Framework.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "Mac-Framework.xcconfig"; sourceTree = "<group>"; };
4589DE83226B996D00A03FFA /* Mac-Base.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "Mac-Base.xcconfig"; sourceTree = "<group>"; };
4589DE84226B996D00A03FFA /* Mac-Application.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "Mac-Application.xcconfig"; sourceTree = "<group>"; };
4589DE85226B996D00A03FFA /* Mac-DynamicLibrary.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "Mac-DynamicLibrary.xcconfig"; sourceTree = "<group>"; };
D44F76361DA52BDB002A4AC4 /* ReactiveSwift.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ReactiveSwift.framework; path = Carthage/Checkouts/ReactiveSwift/build/Debug/ReactiveSwift.framework; sourceTree = "<group>"; };
D44F76381DA52BEA002A4AC4 /* ReactiveSwift.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ReactiveSwift.framework; path = "../../Library/Developer/Xcode/DerivedData/Heimdallr-fdtctotgikuwtugzxtbbivybhrkn/Build/Products/Debug-iphonesimulator/ReactiveSwift.framework"; sourceTree = "<group>"; };
DC209CC51C845F1900C43C75 /* Argo.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Argo.framework; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -145,11 +157,6 @@
DC712A4B1C85AD77009860A5 /* iOS-Base.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "iOS-Base.xcconfig"; sourceTree = "<group>"; };
DC712A4C1C85AD77009860A5 /* iOS-Framework.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "iOS-Framework.xcconfig"; sourceTree = "<group>"; };
DC712A4D1C85AD77009860A5 /* iOS-StaticLibrary.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "iOS-StaticLibrary.xcconfig"; sourceTree = "<group>"; };
DC712A4F1C85AD77009860A5 /* Mac-Application.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Mac-Application.xcconfig"; sourceTree = "<group>"; };
DC712A501C85AD77009860A5 /* Mac-Base.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Mac-Base.xcconfig"; sourceTree = "<group>"; };
DC712A511C85AD77009860A5 /* Mac-DynamicLibrary.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Mac-DynamicLibrary.xcconfig"; sourceTree = "<group>"; };
DC712A521C85AD77009860A5 /* Mac-Framework.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Mac-Framework.xcconfig"; sourceTree = "<group>"; };
DC712A531C85AD77009860A5 /* Mac-StaticLibrary.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Mac-StaticLibrary.xcconfig"; sourceTree = "<group>"; };
DC712A561C85AD77009860A5 /* tvOS-Application.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "tvOS-Application.xcconfig"; sourceTree = "<group>"; };
DC712A571C85AD77009860A5 /* tvOS-Base.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "tvOS-Base.xcconfig"; sourceTree = "<group>"; };
DC712A581C85AD77009860A5 /* tvOS-Framework.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "tvOS-Framework.xcconfig"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -204,6 +211,34 @@
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
4589DE78226B996D00A03FFA /* macOS */ = {
isa = PBXGroup;
children = (
4589DE79226B996D00A03FFA /* macOS-Application.xcconfig */,
4589DE7A226B996D00A03FFA /* macOS-Framework.xcconfig */,
4589DE7B226B996D00A03FFA /* macOS-StaticLibrary.xcconfig */,
4589DE7C226B996D00A03FFA /* macOS-Base.xcconfig */,
4589DE7D226B996D00A03FFA /* macOS-XCTest.xcconfig */,
4589DE7E226B996D00A03FFA /* macOS-DynamicLibrary.xcconfig */,
);
name = macOS;
path = Carthage/Checkouts/xcconfigs/macOS;
sourceTree = SOURCE_ROOT;
};
4589DE7F226B996D00A03FFA /* Mac OS X */ = {
isa = PBXGroup;
children = (
4589DE80226B996D00A03FFA /* Mac-XCTest.xcconfig */,
4589DE81226B996D00A03FFA /* Mac-StaticLibrary.xcconfig */,
4589DE82226B996D00A03FFA /* Mac-Framework.xcconfig */,
4589DE83226B996D00A03FFA /* Mac-Base.xcconfig */,
4589DE84226B996D00A03FFA /* Mac-Application.xcconfig */,
4589DE85226B996D00A03FFA /* Mac-DynamicLibrary.xcconfig */,
);
name = "Mac OS X";
path = "Carthage/Checkouts/xcconfigs/Mac OS X";
sourceTree = SOURCE_ROOT;
};
DC209CCC1C845F2000C43C75 /* Frameworks */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -314,7 +349,8 @@
children = (
DC712A3E1C85AD77009860A5 /* Base */,
DC712A491C85AD77009860A5 /* iOS */,
DC712A4E1C85AD77009860A5 /* Mac OS X */,
4589DE7F226B996D00A03FFA /* Mac OS X */,
4589DE78226B996D00A03FFA /* macOS */,
DC712A551C85AD77009860A5 /* tvOS */,
DC712A5A1C85AD77009860A5 /* watchOS */,
);
Expand Down Expand Up @@ -364,18 +400,6 @@
path = iOS;
sourceTree = "<group>";
};
DC712A4E1C85AD77009860A5 /* Mac OS X */ = {
isa = PBXGroup;
children = (
DC712A4F1C85AD77009860A5 /* Mac-Application.xcconfig */,
DC712A501C85AD77009860A5 /* Mac-Base.xcconfig */,
DC712A511C85AD77009860A5 /* Mac-DynamicLibrary.xcconfig */,
DC712A521C85AD77009860A5 /* Mac-Framework.xcconfig */,
DC712A531C85AD77009860A5 /* Mac-StaticLibrary.xcconfig */,
);
path = "Mac OS X";
sourceTree = "<group>";
};
DC712A551C85AD77009860A5 /* tvOS */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -506,11 +530,11 @@
TargetAttributes = {
DC545DC11A89F0F10051A575 = {
CreatedOnToolsVersion = 6.1.1;
LastSwiftMigration = 0800;
LastSwiftMigration = 1020;
};
DC545DCC1A89F0F10051A575 = {
CreatedOnToolsVersion = 6.1.1;
LastSwiftMigration = 0800;
LastSwiftMigration = 1020;
ProvisioningStyle = Automatic;
};
DC582F421BE1319F0017BE06 = {
Expand All @@ -528,6 +552,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
);
mainGroup = DC545DB81A89F0F10051A575;
Expand Down Expand Up @@ -700,7 +725,7 @@
ENABLE_TESTABILITY = YES;
GCC_NO_COMMON_BLOCKS = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MACOSX_DEPLOYMENT_TARGET = 10.9;
MACOSX_DEPLOYMENT_TARGET = 10.10;
PRODUCT_BUNDLE_IDENTIFIER = "de.rheinfabrik.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(PROJECT_NAME)";
TARGETED_DEVICE_FAMILY = "1,2";
Expand All @@ -718,7 +743,7 @@
CURRENT_PROJECT_VERSION = 1;
GCC_NO_COMMON_BLOCKS = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MACOSX_DEPLOYMENT_TARGET = 10.9;
MACOSX_DEPLOYMENT_TARGET = 10.10;
PRODUCT_BUNDLE_IDENTIFIER = "de.rheinfabrik.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(PROJECT_NAME)";
TARGETED_DEVICE_FAMILY = "1,2";
Expand All @@ -738,7 +763,7 @@
DYLIB_CURRENT_VERSION = 1;
INFOPLIST_FILE = "Heimdallr/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -753,7 +778,7 @@
DYLIB_CURRENT_VERSION = 1;
INFOPLIST_FILE = "Heimdallr/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand All @@ -765,7 +790,7 @@
INFOPLIST_FILE = "HeimdallrTests/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_NAME = HeimdallrTests;
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -777,55 +802,55 @@
INFOPLIST_FILE = "HeimdallrTests/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_NAME = HeimdallrTests;
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 5.0;
};
name = Release;
};
DC582F551BE1319F0017BE06 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = DC712A521C85AD77009860A5 /* Mac-Framework.xcconfig */;
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
FRAMEWORK_VERSION = A;
INFOPLIST_FILE = "Heimdallr/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
SWIFT_VERSION = 3.0;
MACOSX_DEPLOYMENT_TARGET = 10.10;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
DC582F561BE1319F0017BE06 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = DC712A521C85AD77009860A5 /* Mac-Framework.xcconfig */;
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
FRAMEWORK_VERSION = A;
INFOPLIST_FILE = "Heimdallr/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
SWIFT_VERSION = 3.0;
MACOSX_DEPLOYMENT_TARGET = 10.10;
SWIFT_VERSION = 5.0;
};
name = Release;
};
DC582F581BE1319F0017BE06 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = DC712A4F1C85AD77009860A5 /* Mac-Application.xcconfig */;
buildSettings = {
INFOPLIST_FILE = "HeimdallrTests/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.10;
PRODUCT_NAME = HeimdallrTests;
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
DC582F591BE1319F0017BE06 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = DC712A4F1C85AD77009860A5 /* Mac-Application.xcconfig */;
buildSettings = {
INFOPLIST_FILE = "HeimdallrTests/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.10;
PRODUCT_NAME = HeimdallrTests;
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand Down
8 changes: 8 additions & 0 deletions Heimdallr.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
1 change: 1 addition & 0 deletions Heimdallr/OAuthAccessToken.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Foundation
import Result

/// An access token is used for authorizing requests to the resource endpoint.
Expand Down
1 change: 1 addition & 0 deletions Heimdallr/OAuthAccessTokenKeychainStore.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Foundation
import Security

internal struct Keychain {
Expand Down
7 changes: 4 additions & 3 deletions Heimdallr/OAuthError.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// See: The OAuth 2.0 Authorization Framework, 5.2 NSError Response
/// <https://tools.ietf.org/html/rfc6749#section-5.2>
import Foundation

public let OAuthErrorDomain = "OAuthErrorDomain"
public let OAuthErrorInvalidRequest = 1
Expand All @@ -21,7 +22,7 @@ public enum OAuthErrorCode: String {
}

public extension OAuthErrorCode {
public var intValue: Int {
var intValue: Int {
switch self {
case .InvalidRequest:
return OAuthErrorInvalidRequest
Expand Down Expand Up @@ -60,7 +61,7 @@ public class OAuthError {
}

public extension OAuthError {
public var nsError: NSError {
var nsError: NSError {
var userInfo = [String: AnyObject]()

if let description = description {
Expand Down Expand Up @@ -88,7 +89,7 @@ extension OAuthError {
}

public class func decode(data: Data) -> OAuthError? {
guard let json: AnyObject? = try? JSONSerialization.jsonObject(with: data, options: JSONSerialization.ReadingOptions(rawValue: 0)) as AnyObject?,
guard let json: AnyObject? = ((try? JSONSerialization.jsonObject(with: data, options: JSONSerialization.ReadingOptions(rawValue: 0)) as AnyObject?) as AnyObject??),
let jsonDictionary = json as? [String: AnyObject] else {
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion Heimdallr/Supporting Files/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>3.6.1</string>
<string>3.7.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
8 changes: 4 additions & 4 deletions Heimdallr/URLRequestExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private let HTTPRequestHeaderFieldAuthorization = "Authorization"

public extension URLRequest {
/// Returns the HTTP `Authorization` header value or `nil` if not set.
public var HTTPAuthorization: String? {
var HTTPAuthorization: String? {
return value(forHTTPHeaderField: HTTPRequestHeaderFieldAuthorization)
}

Expand All @@ -57,15 +57,15 @@ public extension URLRequest {
/// - parameter value: The value to be set or `nil`.
///
/// TODO: Declarations in extensions cannot override yet.
public mutating func setHTTPAuthorization(_ value: String?) {
mutating func setHTTPAuthorization(_ value: String?) {
setValue(value, forHTTPHeaderField: HTTPRequestHeaderFieldAuthorization)
}

/// Sets the HTTP `Authorization` header value using the given HTTP
/// authentication.
///
/// - parameter authentication: The HTTP authentication to be set.
public mutating func setHTTPAuthorization(_ authentication: HTTPAuthentication) {
mutating func setHTTPAuthorization(_ authentication: HTTPAuthentication) {
setHTTPAuthorization(authentication.value)
}

Expand All @@ -74,7 +74,7 @@ public extension URLRequest {
/// - parameter parameters: The parameters to be encoded or `nil`.
///
/// TODO: Tests crash without named parameter.
public mutating func setHTTPBody(parameters: [String: AnyObject]?) {
mutating func setHTTPBody(parameters: [String: AnyObject]?) {
if let parameters = parameters {
var components: [(String, String)] = []
for (key, value) in parameters {
Expand Down

0 comments on commit fd4b9c2

Please sign in to comment.