Skip to content

Commit

Permalink
Merge pull request #295 from jeffctown/feature/Swift4Support
Browse files Browse the repository at this point in the history
Updating for swift 4.x and Xcode 10.1
  • Loading branch information
jeffctown authored Mar 14, 2019
2 parents 30246ce + 78da4ef commit 5431829
Show file tree
Hide file tree
Showing 61 changed files with 1,193 additions and 1,460 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ profile
*.moved-aside
.DS_Store
*.xccheckout
IDEWorkspaceChecks.plist

# Carthage
Carthage/
Expand Down
13 changes: 9 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ before_install:

matrix:
include:
- osx_image: xcode8.3
env: RAKETASK="ios[iOS Framework,latest,build test,OHHTTPSTUBS_SKIP_TIMING_TESTS=1 OHHTTPSTUBS_SKIP_REDIRECT_TESTS=1]"
- osx_image: xcode8.3
env: RAKETASK="osx[Mac Framework,x86_64,build test,OHHTTPSTUBS_SKIP_TIMING_TESTS=1 OHHTTPSTUBS_SKIP_REDIRECT_TESTS=1]"
- osx_image: xcode9.1
env: RAKETASK="ios[iOS StaticLib,latest,build-for-testing test-without-building,OHHTTPSTUBS_SKIP_TIMING_TESTS=1 OHHTTPSTUBS_SKIP_REDIRECT_TESTS=1]"
- osx_image: xcode9.1
Expand All @@ -21,6 +17,15 @@ matrix:
env: RAKETASK="osx[Mac Framework,x86_64,build-for-testing test-without-building,OHHTTPSTUBS_SKIP_TIMING_TESTS=1 OHHTTPSTUBS_SKIP_REDIRECT_TESTS=1]"
- osx_image: xcode9.1
env: RAKETASK="tvos[tvOS Framework,latest,build-for-testing test-without-building,OHHTTPSTUBS_SKIP_TIMING_TESTS=1 OHHTTPSTUBS_SKIP_REDIRECT_TESTS=1]"
- osx_image: xcode10.1
env: RAKETASK="ios[iOS StaticLib,latest,build-for-testing test-without-building,OHHTTPSTUBS_SKIP_TIMING_TESTS=1 OHHTTPSTUBS_SKIP_REDIRECT_TESTS=1]"
- osx_image: xcode10.1
env: RAKETASK="ios[iOS Framework,latest,build-for-testing test-without-building,OHHTTPSTUBS_SKIP_REDIRECT_TESTS=1]"
- osx_image: xcode10.1
env: RAKETASK="tvos[tvOS Framework,latest,build-for-testing test-without-building,OHHTTPSTUBS_SKIP_TIMING_TESTS=1 OHHTTPSTUBS_SKIP_REDIRECT_TESTS=1]"
- osx_image: xcode10.1
env: RAKETASK="osx[Mac Framework,x86_64,build-for-testing test-without-building,OHHTTPSTUBS_SKIP_TIMING_TESTS=1 OHHTTPSTUBS_SKIP_REDIRECT_TESTS=1]"


script:
- rake "$RAKETASK"
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
# OHHTTPStubs — CHANGELOG

## [7.0.0](https://github.com/AliSoftware/OHHTTPStubs/releases/tag/7.0.0)

* Updating default Swift Version to 4.2.
[@jeffctown](https://github.com/jeffctown)
* Updating example projects to Swift 4.2 and Xcode 10.1.
[@jeffctown](https://github.com/jeffctown)
* Updating iOS Lib Tests to have a minimum iOS version of 8.0.
[@jeffctown](https://github.com/jeffctown)

> Notes:
> * Bumping this version to 7.0.0 because it's now using the Swift 4 APIs.
> * This version is still compatible with Swift 3.x when integrating with CocoaPods, as CocoaPods uses the same `SWIFT_VERSION` as your app project does so it adapts automatically and it's transparent for users.
> * If you're using Carthage and need Swift 3.x compatibility, you can follow the tips in the installation instructions of the `README.md`.
> * CI is now only testing Swift 4.x on Xcode 9.1 and 10.1.
> * Thank you to [@hellensoloviy](https://github.com/hellensoloviy), [@robertoferraz](https://github.com/robertoferraz), [@rckoenes](https://github.com/rckoenes), [@NikSativa](https://github.com/NikSativa) for their pull requests updating Swift!
## [6.2.0](https://github.com/AliSoftware/OHHTTPStubs/releases/tag/6.2.0)

* Enabled application extension API only.
[@lightsprint09](https://github.com/lightsprint09)
* Disabled a flaky redirect test and adding the known issue with redirects to the README.
Expand Down
7 changes: 0 additions & 7 deletions Examples/ObjC/MainViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@ - (void)viewDidLoad
NSLog(@"[OHHTTPStubs] Request to %@ has been stubbed with %@", request.URL, stub.name);
}];
}
- (void)viewDidUnload
{
[self setTextView:nil];
[self setImageView:nil];
[self setDelaySwitch:nil];
[super viewDidUnload];
}

- (BOOL)shouldUseDelay {
__block BOOL res = NO;
Expand Down
18 changes: 17 additions & 1 deletion Examples/ObjC/OHHTTPStubsDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
098FBDC615D704E800623941 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0700;
LastUpgradeCheck = 1010;
ORGANIZATIONNAME = AliSoftware;
TargetAttributes = {
098FBDCE15D704E800623941 = {
Expand Down Expand Up @@ -235,13 +235,21 @@
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_IMPLICIT_SIGN_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
Expand Down Expand Up @@ -284,13 +292,21 @@
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_IMPLICIT_SIGN_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
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 = "1010"
version = "2.0">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -26,7 +26,6 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
Expand All @@ -47,7 +46,6 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
enableUBSanitizer = "YES"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
2 changes: 1 addition & 1 deletion Examples/ObjC/Podfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source 'https://github.com/CocoaPods/Specs.git'

project 'OHHTTPStubsDemo.xcodeproj'
platform :ios, '7.0'
platform :ios, '8.0'

target 'OHHTTPStubsDemo' do
pod 'OHHTTPStubs', :path => '../..'
Expand Down
18 changes: 9 additions & 9 deletions Examples/ObjC/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
PODS:
- OHHTTPStubs (6.2.0):
- OHHTTPStubs/Default (= 6.2.0)
- OHHTTPStubs/Core (6.2.0)
- OHHTTPStubs/Default (6.2.0):
- OHHTTPStubs (7.0.0):
- OHHTTPStubs/Default (= 7.0.0)
- OHHTTPStubs/Core (7.0.0)
- OHHTTPStubs/Default (7.0.0):
- OHHTTPStubs/Core
- OHHTTPStubs/JSON
- OHHTTPStubs/NSURLSession
- OHHTTPStubs/OHPathHelpers
- OHHTTPStubs/JSON (6.2.0):
- OHHTTPStubs/JSON (7.0.0):
- OHHTTPStubs/Core
- OHHTTPStubs/NSURLSession (6.2.0):
- OHHTTPStubs/NSURLSession (7.0.0):
- OHHTTPStubs/Core
- OHHTTPStubs/OHPathHelpers (6.2.0)
- OHHTTPStubs/OHPathHelpers (7.0.0)

DEPENDENCIES:
- OHHTTPStubs (from `../..`)
Expand All @@ -21,8 +21,8 @@ EXTERNAL SOURCES:
:path: "../.."

SPEC CHECKSUMS:
OHHTTPStubs: 9cde8b5c0b8cc5c0f393b5e20c8efb6e05915c63
OHHTTPStubs: ef33a2c353110d306bb98f695435ec56ff5a26c3

PODFILE CHECKSUM: cde9fecbdd4703d197e608172ad2e689548bc0ac
PODFILE CHECKSUM: 9a67077a86911aa4a252748903da3d5ea5d5d922

COCOAPODS: 1.6.0
6 changes: 3 additions & 3 deletions Examples/ObjC/Pods/Local Podspecs/OHHTTPStubs.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions Examples/ObjC/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5431829

Please sign in to comment.