Skip to content

Commit c6bd5f5

Browse files
committed
Merge branch 'release/1.3.0'
2 parents 8879185 + a1b636c commit c6bd5f5

19 files changed

+37
-32
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
[submodule "Carthage/Checkouts/xcconfigs"]
88
path = Carthage/Checkouts/xcconfigs
99
url = https://github.com/netguru/xcconfigs.git
10+
[submodule "Carthage/Checkouts/OHHTTPStubs"]
11+
path = Carthage/Checkouts/OHHTTPStubs
12+
url = https://github.com/AliSoftware/OHHTTPStubs.git

.swift-version

-1
This file was deleted.

Cartfile.private

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ github "netguru/xcconfigs" == 0.3
1111

1212
# Test dependencies
1313

14-
github "Quick/Quick" ~> 1.2.0
15-
github "Quick/Nimble" ~> 7.0.0
16-
github "AliSoftware/OHHTTPStubs" ~> 6.1.0
14+
github "Quick/Quick" ~> 2.0.0
15+
github "Quick/Nimble" ~> 8.0.0
16+
github "AliSoftware/OHHTTPStubs" ~> 7.0.0

Cartfile.resolved

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
github "AliSoftware/OHHTTPStubs" "6.1.0"
2-
github "Quick/Nimble" "v7.0.3"
3-
github "Quick/Quick" "v1.2.0"
1+
github "AliSoftware/OHHTTPStubs" "7.0.0"
2+
github "Quick/Nimble" "v8.0.1"
3+
github "Quick/Quick" "v2.0.0"
44
github "netguru/xcconfigs" "0.3"

Carthage/Checkouts/Nimble

Submodule Nimble updated 119 files

Carthage/Checkouts/OHHTTPStubs

Submodule OHHTTPStubs added at 5431829

Carthage/Checkouts/Quick

Submodule Quick updated 87 files

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
**MIT License**
1+
MIT License
22

33
Copyright © 2017 Netguru Sp. z o.o.
44

README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
![](Images/Header.png)
22

3-
![](https://www.bitrise.io/app/c09426001dedd91c.svg?token=4zhZMFtDpH-9BhWvGP5-1g&branch=develop)
4-
![](https://img.shields.io/badge/swift-3.2-orange.svg)
3+
![](https://app.bitrise.io/app/c09426001dedd91c/status.svg?token=4zhZMFtDpH-9BhWvGP5-1g&branch=develop)
4+
![](https://img.shields.io/badge/swift-5.0-orange.svg)
55
![](https://img.shields.io/github/release/netguru/ResponseDetective.svg)
66
![](https://img.shields.io/badge/carthage-compatible-green.svg)
77
![](https://img.shields.io/badge/cocoapods-compatible-green.svg)
8+
![](https://img.shields.io/badge/license-MIT-blue.svg)
89

910
**ResponseDetective** is a non-intrusive framework for intercepting any outgoing requests and incoming responses between your app and your server for debugging purposes.
1011

1112
## Requirements
1213

13-
ResponseDetective is written in **Swift 3.2** and supports **iOS 8.0+**, **macOS 10.9+** and **tvOS 9.0+**.
14+
ResponseDetective is written in **Swift 5.0** and supports **iOS 8.0+**, **macOS 10.10+** and **tvOS 9.0+**.
1415

1516
## Usage
1617

@@ -117,7 +118,7 @@ Voilà! 🎉 Check out your console output:
117118
If you're using [Carthage](https://github.com/Carthage/Carthage), add the following dependency to your `Cartfile`:
118119

119120
```none
120-
github "netguru/ResponseDetective"
121+
github "netguru/ResponseDetective" ~> {version}
121122
```
122123

123124
### CocoaPods
@@ -126,7 +127,7 @@ If you're using [CocoaPods](http://cocoapods.org), add the following dependency
126127

127128
```none
128129
use_frameworks!
129-
pod 'ResponseDetective'
130+
pod 'ResponseDetective', '~> {version}'
130131
```
131132

132133
## About

ResponseDetective.podspec

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Pod::Spec.new do |spec|
1010
# Description
1111

1212
spec.name = 'ResponseDetective'
13-
spec.version = '1.2.4'
13+
spec.version = '1.3.0'
1414
spec.summary = 'Sherlock Holmes of the networking layer'
1515
spec.homepage = 'https://github.com/netguru/ResponseDetective'
1616

@@ -46,10 +46,12 @@ Pod::Spec.new do |spec|
4646

4747
# Settings
4848

49+
spec.swift_version = '5.0'
50+
4951
spec.requires_arc = true
5052

5153
spec.ios.deployment_target = '8.0'
52-
spec.osx.deployment_target = '10.9'
54+
spec.osx.deployment_target = '10.10'
5355
spec.tvos.deployment_target = '9.0'
5456

5557
spec.pod_target_xcconfig = {

ResponseDetective.xcodeproj/project.pbxproj

+3-4
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@
141141
3A7A4A831EC71336005E2E9D /* Common-Base.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Common-Base.xcconfig"; sourceTree = "<group>"; };
142142
3A7A4A841EC71410005E2E9D /* Framework-Base.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Framework-Base.xcconfig"; sourceTree = "<group>"; };
143143
3AB9E97E1EBB64C0004E575E /* URLEncodedBodyDeserializerSpec.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = URLEncodedBodyDeserializerSpec.swift; sourceTree = "<group>"; };
144-
3ABF34631E8B2A9E0010A8FE /* .swift-version */ = {isa = PBXFileReference; lastKnownFileType = text; path = ".swift-version"; sourceTree = "<group>"; };
145144
3AC631201EBB5CF8000F6353 /* URLEncodedBodyDeserializer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = URLEncodedBodyDeserializer.swift; sourceTree = "<group>"; };
146145
3AE5462A1E152DB500E74469 /* ResponseDetective.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ResponseDetective.framework; sourceTree = BUILT_PRODUCTS_DIR; };
147146
3AE546321E152DB600E74469 /* ResponseDetectiveTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ResponseDetectiveTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -244,7 +243,6 @@
244243
3A5A99CA1E60404E002EFC39 /* Other Files */ = {
245244
isa = PBXGroup;
246245
children = (
247-
3ABF34631E8B2A9E0010A8FE /* .swift-version */,
248246
3A5A99CB1E604064002EFC39 /* bitrise.yml */,
249247
3A5A99CC1E604064002EFC39 /* Cartfile.private */,
250248
3A5A99CD1E604064002EFC39 /* ResponseDetective.podspec */,
@@ -635,7 +633,7 @@
635633
CLASSPREFIX = RDT;
636634
LastSwiftMigration = 0700;
637635
LastSwiftUpdateCheck = 0820;
638-
LastUpgradeCheck = 0930;
636+
LastUpgradeCheck = 1020;
639637
ORGANIZATIONNAME = "Netguru Sp. z o.o.";
640638
TargetAttributes = {
641639
3A2007D71B5501BC00769021 = {
@@ -666,10 +664,11 @@
666664
};
667665
buildConfigurationList = 3AED3EC61B1DD7B400FA35FC /* Build configuration list for PBXProject "ResponseDetective" */;
668666
compatibilityVersion = "Xcode 3.2";
669-
developmentRegion = English;
667+
developmentRegion = en;
670668
hasScannedForEncodings = 0;
671669
knownRegions = (
672670
en,
671+
Base,
673672
);
674673
mainGroup = 3AED3EC21B1DD7B400FA35FC;
675674
productRefGroup = 3AED3ECD1B1DD7B400FA35FC /* Products */;

ResponseDetective.xcodeproj/xcshareddata/xcschemes/ResponseDetective-iOS.xcscheme

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0930"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

ResponseDetective.xcodeproj/xcshareddata/xcschemes/ResponseDetective-macOS.xcscheme

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0930"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

ResponseDetective.xcodeproj/xcshareddata/xcschemes/ResponseDetective-tvOS.xcscheme

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0930"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

ResponseDetective/Configuration/Common-Base.xcconfig

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212

1313
// MARK: Build
1414

15-
_BUILD_VERSION = 1.2.4
15+
_BUILD_VERSION = 1.3.0
1616

1717
// MARK: Deployment
1818

1919
_DEPLOYMENT_TARGET_IOS = 8.0
20-
_DEPLOYMENT_TARGET_MACOS = 10.9
20+
_DEPLOYMENT_TARGET_MACOS = 10.10
2121
_DEPLOYMENT_TARGET_TVOS = 9.0
2222

2323
// MARK: Compiler
2424

25-
_COMPILER_SWIFT_VERSION = 3.2
25+
_COMPILER_SWIFT_VERSION = 5.0

ResponseDetective/Sources/Dictionary.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Licensed under the MIT License.
66
//
77

8-
internal extension Dictionary {
8+
extension Dictionary {
99

1010
/// Appends elements of other `dictionary` and returns a new one.
1111
///

ResponseDetective/Sources/ErrorRepresentation.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import Foundation
4343
domain: error.domain,
4444
code: error.code,
4545
reason: error.localizedDescription,
46-
userInfo: error.userInfo as? [String: AnyObject] ?? [:]
46+
userInfo: error.userInfo
4747
)
4848
}
4949

ResponseDetective/Tests/Specs/ImageBodyDeserializerSpec.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ private func swatchImage(size: (width: Int, height: Int)) -> Image {
6363

6464
private func imageData(image: Image) -> Data {
6565
#if os(iOS) || os(tvOS) || os(watchOS)
66-
return UIImageJPEGRepresentation(image, 1)!
66+
return image.jpegData(compressionQuality: 1)!
6767
#elseif os(OSX)
68-
return NSBitmapImageRep(data: image.tiffRepresentation!)!.representation(using: .JPEG, properties: [NSImageCompressionFactor: 1])!
68+
return NSBitmapImageRep(data: image.tiffRepresentation!)!.representation(using: .jpeg, properties: [.compressionFactor: 1])!
6969
#endif
7070
}

ResponseDetective/Tests/Specs/URLEncodedBodyDeserializerSpec.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ internal final class URLEncodedBodyDeserializerSpec: QuickSpec {
5050

5151
// MARK: -
5252

53-
@available(macOS 10.10, *) fileprivate extension URLComponents {
53+
@available(macOS 10.10, *) extension URLComponents {
5454

5555
fileprivate init(queryItems: [URLQueryItem]) {
5656
self.init()

0 commit comments

Comments
 (0)