diff --git a/.gitignore b/.gitignore index ab6b7da7269..b4d421e3c55 100644 --- a/.gitignore +++ b/.gitignore @@ -31,8 +31,10 @@ samples/client/petstore/qt5cpp/PetStore/PetStore samples/client/petstore/qt5cpp/PetStore/Makefile samples/client/petstore/java/hello.txt samples/client/petstore/android-java/hello.txt -samples/client/petstore/objc/Build -samples/client/petstore/objc/Pods +samples/client/petstore/objc/SwaggerClientTests/Build +samples/client/petstore/objc/SwaggerClientTests/Pods +samples/client/petstore/objc/SwaggerClientTests/SwaggerClient.xcworkspace +samples/client/petstore/objc/SwaggerClientTests/Podfile.lock samples/server/petstore/nodejs/node_modules target .idea diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/ObjcClientCodegen.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/ObjcClientCodegen.java index d282997107a..6859ba56ea6 100644 --- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/ObjcClientCodegen.java +++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/ObjcClientCodegen.java @@ -18,9 +18,9 @@ import java.util.Set; public class ObjcClientCodegen extends DefaultCodegen implements CodegenConfig { protected Set foundationClasses = new HashSet(); - protected String podName = null; - protected String podVersion = null; - protected String classPrefix = null; + protected String podName = "SwaggerClient"; + protected String podVersion = "1.0.0"; + protected String classPrefix = "SWG"; public ObjcClientCodegen() { super(); @@ -127,23 +127,14 @@ public class ObjcClientCodegen extends DefaultCodegen implements CodegenConfig { if (additionalProperties.containsKey("podName")) { setPodName((String) additionalProperties.get("podName")); } - else { - setPodName("SwaggerClient"); - } if (additionalProperties.containsKey("podVersion")) { setPodVersion((String) additionalProperties.get("podVersion")); } - else { - setPodVersion("1.0.0"); - } if (additionalProperties.containsKey("classPrefix")) { setClassPrefix((String) additionalProperties.get("classPrefix")); } - else { - setClassPrefix("SWG"); - } additionalProperties.put("podName", podName); additionalProperties.put("podVersion", podVersion); @@ -153,22 +144,22 @@ public class ObjcClientCodegen extends DefaultCodegen implements CodegenConfig { modelPackage = swaggerFolder; apiPackage = swaggerFolder; - supportingFiles.add(new SupportingFile("SWGObject.h", swaggerFolder, classPrefix + "Object.h")); - supportingFiles.add(new SupportingFile("SWGObject.m", swaggerFolder, classPrefix + "Object.m")); - supportingFiles.add(new SupportingFile("SWGQueryParamCollection.h", swaggerFolder, classPrefix + "QueryParamCollection.h")); - supportingFiles.add(new SupportingFile("SWGQueryParamCollection.m", swaggerFolder, classPrefix + "QueryParamCollection.m")); - supportingFiles.add(new SupportingFile("SWGApiClient-header.mustache", swaggerFolder, classPrefix + "ApiClient.h")); - supportingFiles.add(new SupportingFile("SWGApiClient-body.mustache", swaggerFolder, classPrefix + "ApiClient.m")); - supportingFiles.add(new SupportingFile("SWGJSONResponseSerializer-header.mustache", swaggerFolder, classPrefix + "JSONResponseSerializer.h")); - supportingFiles.add(new SupportingFile("SWGJSONResponseSerializer-body.mustache", swaggerFolder, classPrefix + "JSONResponseSerializer.m")); - supportingFiles.add(new SupportingFile("SWGJSONRequestSerializer-body.mustache", swaggerFolder, classPrefix + "JSONRequestSerializer.m")); - supportingFiles.add(new SupportingFile("SWGJSONRequestSerializer-header.mustache", swaggerFolder, classPrefix + "JSONRequestSerializer.h")); - supportingFiles.add(new SupportingFile("SWGFile.h", swaggerFolder, classPrefix + "File.h")); - supportingFiles.add(new SupportingFile("SWGFile.m", swaggerFolder, classPrefix + "File.m")); + supportingFiles.add(new SupportingFile("Object-header.mustache", swaggerFolder, classPrefix + "Object.h")); + supportingFiles.add(new SupportingFile("Object-body.mustache", swaggerFolder, classPrefix + "Object.m")); + supportingFiles.add(new SupportingFile("QueryParamCollection-header.mustache", swaggerFolder, classPrefix + "QueryParamCollection.h")); + supportingFiles.add(new SupportingFile("QueryParamCollection-body.mustache", swaggerFolder, classPrefix + "QueryParamCollection.m")); + supportingFiles.add(new SupportingFile("ApiClient-header.mustache", swaggerFolder, classPrefix + "ApiClient.h")); + supportingFiles.add(new SupportingFile("ApiClient-body.mustache", swaggerFolder, classPrefix + "ApiClient.m")); + supportingFiles.add(new SupportingFile("JSONResponseSerializer-header.mustache", swaggerFolder, classPrefix + "JSONResponseSerializer.h")); + supportingFiles.add(new SupportingFile("JSONResponseSerializer-body.mustache", swaggerFolder, classPrefix + "JSONResponseSerializer.m")); + supportingFiles.add(new SupportingFile("JSONRequestSerializer-body.mustache", swaggerFolder, classPrefix + "JSONRequestSerializer.m")); + supportingFiles.add(new SupportingFile("JSONRequestSerializer-header.mustache", swaggerFolder, classPrefix + "JSONRequestSerializer.h")); + supportingFiles.add(new SupportingFile("File-header.mustache", swaggerFolder, classPrefix + "File.h")); + supportingFiles.add(new SupportingFile("File-body.mustache", swaggerFolder, classPrefix + "File.m")); supportingFiles.add(new SupportingFile("JSONValueTransformer+ISO8601.m", swaggerFolder, "JSONValueTransformer+ISO8601.m")); supportingFiles.add(new SupportingFile("JSONValueTransformer+ISO8601.h", swaggerFolder, "JSONValueTransformer+ISO8601.h")); - supportingFiles.add(new SupportingFile("SWGConfiguration-body.mustache", swaggerFolder, classPrefix + "Configuration.m")); - supportingFiles.add(new SupportingFile("SWGConfiguration-header.mustache", swaggerFolder, classPrefix + "Configuration.h")); + supportingFiles.add(new SupportingFile("Configuration-body.mustache", swaggerFolder, classPrefix + "Configuration.m")); + supportingFiles.add(new SupportingFile("Configuration-header.mustache", swaggerFolder, classPrefix + "Configuration.h")); supportingFiles.add(new SupportingFile("podspec.mustache", "", podName + ".podspec")); } @@ -301,11 +292,7 @@ public class ObjcClientCodegen extends DefaultCodegen implements CodegenConfig { @Override public String toModelImport(String name) { - if ("".equals(modelPackage())) { - return name; - } else { - return modelPackage() + "." + name; - } + return name; } @Override @@ -315,12 +302,12 @@ public class ObjcClientCodegen extends DefaultCodegen implements CodegenConfig { @Override public String apiFileFolder() { - return outputFolder + File.separator + sourceFolder; + return outputFolder + File.separatorChar + apiPackage(); } @Override public String modelFileFolder() { - return outputFolder + File.separator + sourceFolder; + return outputFolder + File.separatorChar + modelPackage(); } @Override diff --git a/modules/swagger-codegen/src/main/resources/objc/SWGApiClient-body.mustache b/modules/swagger-codegen/src/main/resources/objc/ApiClient-body.mustache similarity index 100% rename from modules/swagger-codegen/src/main/resources/objc/SWGApiClient-body.mustache rename to modules/swagger-codegen/src/main/resources/objc/ApiClient-body.mustache diff --git a/modules/swagger-codegen/src/main/resources/objc/SWGApiClient-header.mustache b/modules/swagger-codegen/src/main/resources/objc/ApiClient-header.mustache similarity index 100% rename from modules/swagger-codegen/src/main/resources/objc/SWGApiClient-header.mustache rename to modules/swagger-codegen/src/main/resources/objc/ApiClient-header.mustache diff --git a/modules/swagger-codegen/src/main/resources/objc/SWGConfiguration-body.mustache b/modules/swagger-codegen/src/main/resources/objc/Configuration-body.mustache similarity index 100% rename from modules/swagger-codegen/src/main/resources/objc/SWGConfiguration-body.mustache rename to modules/swagger-codegen/src/main/resources/objc/Configuration-body.mustache diff --git a/modules/swagger-codegen/src/main/resources/objc/SWGConfiguration-header.mustache b/modules/swagger-codegen/src/main/resources/objc/Configuration-header.mustache similarity index 100% rename from modules/swagger-codegen/src/main/resources/objc/SWGConfiguration-header.mustache rename to modules/swagger-codegen/src/main/resources/objc/Configuration-header.mustache diff --git a/modules/swagger-codegen/src/main/resources/objc/SWGFile.m b/modules/swagger-codegen/src/main/resources/objc/File-body.mustache similarity index 100% rename from modules/swagger-codegen/src/main/resources/objc/SWGFile.m rename to modules/swagger-codegen/src/main/resources/objc/File-body.mustache diff --git a/modules/swagger-codegen/src/main/resources/objc/SWGFile.h b/modules/swagger-codegen/src/main/resources/objc/File-header.mustache similarity index 100% rename from modules/swagger-codegen/src/main/resources/objc/SWGFile.h rename to modules/swagger-codegen/src/main/resources/objc/File-header.mustache diff --git a/modules/swagger-codegen/src/main/resources/objc/SWGJSONRequestSerializer-body.mustache b/modules/swagger-codegen/src/main/resources/objc/JSONRequestSerializer-body.mustache similarity index 100% rename from modules/swagger-codegen/src/main/resources/objc/SWGJSONRequestSerializer-body.mustache rename to modules/swagger-codegen/src/main/resources/objc/JSONRequestSerializer-body.mustache diff --git a/modules/swagger-codegen/src/main/resources/objc/SWGJSONRequestSerializer-header.mustache b/modules/swagger-codegen/src/main/resources/objc/JSONRequestSerializer-header.mustache similarity index 100% rename from modules/swagger-codegen/src/main/resources/objc/SWGJSONRequestSerializer-header.mustache rename to modules/swagger-codegen/src/main/resources/objc/JSONRequestSerializer-header.mustache diff --git a/modules/swagger-codegen/src/main/resources/objc/SWGJSONResponseSerializer-body.mustache b/modules/swagger-codegen/src/main/resources/objc/JSONResponseSerializer-body.mustache similarity index 100% rename from modules/swagger-codegen/src/main/resources/objc/SWGJSONResponseSerializer-body.mustache rename to modules/swagger-codegen/src/main/resources/objc/JSONResponseSerializer-body.mustache diff --git a/modules/swagger-codegen/src/main/resources/objc/SWGJSONResponseSerializer-header.mustache b/modules/swagger-codegen/src/main/resources/objc/JSONResponseSerializer-header.mustache similarity index 100% rename from modules/swagger-codegen/src/main/resources/objc/SWGJSONResponseSerializer-header.mustache rename to modules/swagger-codegen/src/main/resources/objc/JSONResponseSerializer-header.mustache diff --git a/modules/swagger-codegen/src/main/resources/objc/SWGObject.m b/modules/swagger-codegen/src/main/resources/objc/Object-body.mustache similarity index 100% rename from modules/swagger-codegen/src/main/resources/objc/SWGObject.m rename to modules/swagger-codegen/src/main/resources/objc/Object-body.mustache diff --git a/modules/swagger-codegen/src/main/resources/objc/SWGObject.h b/modules/swagger-codegen/src/main/resources/objc/Object-header.mustache similarity index 100% rename from modules/swagger-codegen/src/main/resources/objc/SWGObject.h rename to modules/swagger-codegen/src/main/resources/objc/Object-header.mustache diff --git a/modules/swagger-codegen/src/main/resources/objc/SWGQueryParamCollection.m b/modules/swagger-codegen/src/main/resources/objc/QueryParamCollection-body.mustache similarity index 100% rename from modules/swagger-codegen/src/main/resources/objc/SWGQueryParamCollection.m rename to modules/swagger-codegen/src/main/resources/objc/QueryParamCollection-body.mustache diff --git a/modules/swagger-codegen/src/main/resources/objc/SWGQueryParamCollection.h b/modules/swagger-codegen/src/main/resources/objc/QueryParamCollection-header.mustache similarity index 100% rename from modules/swagger-codegen/src/main/resources/objc/SWGQueryParamCollection.h rename to modules/swagger-codegen/src/main/resources/objc/QueryParamCollection-header.mustache diff --git a/modules/swagger-codegen/src/main/resources/objc/api-body.mustache b/modules/swagger-codegen/src/main/resources/objc/api-body.mustache index 5bebfa063c2..473f3684243 100644 --- a/modules/swagger-codegen/src/main/resources/objc/api-body.mustache +++ b/modules/swagger-codegen/src/main/resources/objc/api-body.mustache @@ -1,7 +1,7 @@ {{#operations}} #import "{{classname}}.h" -#import "SWGFile.h" -#import "SWGQueryParamCollection.h" +#import "{{classPrefix}}File.h" +#import "{{classPrefix}}QueryParamCollection.h" {{#imports}}#import "{{import}}.h" {{/imports}} {{newline}} @@ -19,20 +19,20 @@ static NSString * basePath = @"{{basePath}}"; - (id) init { self = [super init]; if (self) { - self.apiClient = [SWGApiClient sharedClientFromPool:basePath]; + self.apiClient = [{{classPrefix}}ApiClient sharedClientFromPool:basePath]; self.defaultHeaders = [NSMutableDictionary dictionary]; } return self; } -- (id) initWithApiClient:(SWGApiClient *)apiClient { +- (id) initWithApiClient:({{classPrefix}}ApiClient *)apiClient { self = [super init]; if (self) { if (apiClient) { self.apiClient = apiClient; } else { - self.apiClient = [SWGApiClient sharedClientFromPool:basePath]; + self.apiClient = [{{classPrefix}}ApiClient sharedClientFromPool:basePath]; } self.defaultHeaders = [NSMutableDictionary dictionary]; } diff --git a/samples/client/petstore/objc/SwaggerClient.podspec b/samples/client/petstore/objc/SwaggerClient.podspec index a55dac01d60..aeeda8fbdfe 100644 --- a/samples/client/petstore/objc/SwaggerClient.podspec +++ b/samples/client/petstore/objc/SwaggerClient.podspec @@ -8,33 +8,24 @@ # Pod::Spec.new do |s| - s.name = "SwaggerClient" - s.version = "0.1.0" - s.summary = "A short description of SwaggerClient." - s.description = <<-DESC - An optional longer description of SwaggerClient + s.name = "SwaggerClient" + s.version = "1.0.0" - * Markdown format. - * Don't worry about the indent, we strip it! - DESC - s.homepage = "https://github.com//SwaggerClient" - # s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2" - s.license = 'MIT' - s.author = { "geekerzp" => "geekerzp@gmail.com" } - s.source = { :git => "https://github.com//SwaggerClient.git", :tag => s.version.to_s } - # s.social_media_url = 'https://twitter.com/' + s.summary = "Swagger Petstore" + s.description = <<-DESC + This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters + DESC - s.platform = :ios, '7.0' - s.requires_arc = true + s.license = 'MIT' - s.source_files = 'SwaggerClient/**/*' - s.public_header_files = 'SwaggerClient/**/*.h' + s.platform = :ios, '7.0' + s.requires_arc = true - s.resource_bundles = { - 'SwaggerClient' => ['Pod/Assets/*.png'] - } + s.source_files = 'SwaggerClient/**/*' + s.public_header_files = '1.0.0/**/*.h' - s.dependency 'AFNetworking', '~> 2.3' - s.dependency 'JSONModel' - s.dependency 'ISO8601' + s.dependency 'AFNetworking', '~> 2.3' + s.dependency 'JSONModel', '~> 1.1' + s.dependency 'ISO8601', '~> 0.3' end + diff --git a/samples/client/petstore/objc/SwaggerClient/SWGApiClient.h b/samples/client/petstore/objc/SwaggerClient/SWGApiClient.h index d8aad6ba6f0..34722ed3ad9 100644 --- a/samples/client/petstore/objc/SwaggerClient/SWGApiClient.h +++ b/samples/client/petstore/objc/SwaggerClient/SWGApiClient.h @@ -1,6 +1,6 @@ #import #import -#import +#import "AFHTTPRequestOperationManager.h" #import "SWGJSONResponseSerializer.h" #import "SWGJSONRequestSerializer.h" diff --git a/samples/client/petstore/objc/SwaggerClient/SWGPet.h b/samples/client/petstore/objc/SwaggerClient/SWGPet.h index edd54e9f31a..9b8a274d20b 100644 --- a/samples/client/petstore/objc/SwaggerClient/SWGPet.h +++ b/samples/client/petstore/objc/SwaggerClient/SWGPet.h @@ -1,7 +1,7 @@ #import #import "SWGObject.h" -#import "SWGTag.h" -#import "SWGCategory.h" +#import "SwaggerClient.SWGTag.h" +#import "SwaggerClient.SWGCategory.h" @protocol SWGPet diff --git a/samples/client/petstore/objc/SwaggerClient/SWGPetApi.h b/samples/client/petstore/objc/SwaggerClient/SWGPetApi.h index 257a7d1453e..ef8e4d1f271 100644 --- a/samples/client/petstore/objc/SwaggerClient/SWGPetApi.h +++ b/samples/client/petstore/objc/SwaggerClient/SWGPetApi.h @@ -1,6 +1,6 @@ #import -#import "SWGPet.h" -#import "SWGFile.h" +#import "SwaggerClient.SWGPet.h" +#import "SwaggerClient.SWGFile.h" #import "SWGObject.h" #import "SWGApiClient.h" diff --git a/samples/client/petstore/objc/SwaggerClient/SWGPetApi.m b/samples/client/petstore/objc/SwaggerClient/SWGPetApi.m index 01d127bc283..88fda7755b0 100644 --- a/samples/client/petstore/objc/SwaggerClient/SWGPetApi.m +++ b/samples/client/petstore/objc/SwaggerClient/SWGPetApi.m @@ -1,8 +1,8 @@ #import "SWGPetApi.h" #import "SWGFile.h" #import "SWGQueryParamCollection.h" -#import "SWGPet.h" -#import "SWGFile.h" +#import "SwaggerClient.SWGPet.h" +#import "SwaggerClient.SWGFile.h" @interface SWGPetApi () diff --git a/samples/client/petstore/objc/SwaggerClient/SWGStoreApi.h b/samples/client/petstore/objc/SwaggerClient/SWGStoreApi.h index 7488c1baa70..d155f275d1e 100644 --- a/samples/client/petstore/objc/SwaggerClient/SWGStoreApi.h +++ b/samples/client/petstore/objc/SwaggerClient/SWGStoreApi.h @@ -1,5 +1,5 @@ #import -#import "SWGOrder.h" +#import "SwaggerClient.SWGOrder.h" #import "SWGObject.h" #import "SWGApiClient.h" diff --git a/samples/client/petstore/objc/SwaggerClient/SWGStoreApi.m b/samples/client/petstore/objc/SwaggerClient/SWGStoreApi.m index 71b5af87744..8248b043431 100644 --- a/samples/client/petstore/objc/SwaggerClient/SWGStoreApi.m +++ b/samples/client/petstore/objc/SwaggerClient/SWGStoreApi.m @@ -1,7 +1,7 @@ #import "SWGStoreApi.h" #import "SWGFile.h" #import "SWGQueryParamCollection.h" -#import "SWGOrder.h" +#import "SwaggerClient.SWGOrder.h" @interface SWGStoreApi () diff --git a/samples/client/petstore/objc/SwaggerClient/SWGUserApi.h b/samples/client/petstore/objc/SwaggerClient/SWGUserApi.h index 6fda87cca70..481ce8c9c4d 100644 --- a/samples/client/petstore/objc/SwaggerClient/SWGUserApi.h +++ b/samples/client/petstore/objc/SwaggerClient/SWGUserApi.h @@ -1,5 +1,5 @@ #import -#import "SWGUser.h" +#import "SwaggerClient.SWGUser.h" #import "SWGObject.h" #import "SWGApiClient.h" diff --git a/samples/client/petstore/objc/SwaggerClient/SWGUserApi.m b/samples/client/petstore/objc/SwaggerClient/SWGUserApi.m index 06b6d2ce666..52f3fed4133 100644 --- a/samples/client/petstore/objc/SwaggerClient/SWGUserApi.m +++ b/samples/client/petstore/objc/SwaggerClient/SWGUserApi.m @@ -1,7 +1,7 @@ #import "SWGUserApi.h" #import "SWGFile.h" #import "SWGQueryParamCollection.h" -#import "SWGUser.h" +#import "SwaggerClient.SWGUser.h" @interface SWGUserApi () diff --git a/samples/client/petstore/objc/SwaggerClientTests/Podfile.lock b/samples/client/petstore/objc/SwaggerClientTests/Podfile.lock deleted file mode 100644 index d1ab2cdf9eb..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Podfile.lock +++ /dev/null @@ -1,49 +0,0 @@ -PODS: - - AFNetworking (2.5.4): - - AFNetworking/NSURLConnection (= 2.5.4) - - AFNetworking/NSURLSession (= 2.5.4) - - AFNetworking/Reachability (= 2.5.4) - - AFNetworking/Security (= 2.5.4) - - AFNetworking/Serialization (= 2.5.4) - - AFNetworking/UIKit (= 2.5.4) - - AFNetworking/NSURLConnection (2.5.4): - - AFNetworking/Reachability - - AFNetworking/Security - - AFNetworking/Serialization - - AFNetworking/NSURLSession (2.5.4): - - AFNetworking/Reachability - - AFNetworking/Security - - AFNetworking/Serialization - - AFNetworking/Reachability (2.5.4) - - AFNetworking/Security (2.5.4) - - AFNetworking/Serialization (2.5.4) - - AFNetworking/UIKit (2.5.4): - - AFNetworking/NSURLConnection - - AFNetworking/NSURLSession - - Expecta (1.0.0) - - ISO8601 (0.3.0) - - JSONModel (1.1.0) - - Specta (1.0.2) - - SwaggerClient (0.1.0): - - AFNetworking (~> 2.3) - - ISO8601 - - JSONModel - -DEPENDENCIES: - - Expecta - - Specta - - SwaggerClient (from `../`) - -EXTERNAL SOURCES: - SwaggerClient: - :path: "../" - -SPEC CHECKSUMS: - AFNetworking: 05edc0ac4c4c8cf57bcf4b84be5b0744b6d8e71e - Expecta: 32604574add2c46a36f8d2f716b6c5736eb75024 - ISO8601: 8d8a22d5edf0554a1cf75bac028c76c1dc0ffaef - JSONModel: ec77e9865236a7a09d9cf7668df6b4b328d9ec1d - Specta: 9cec98310dca411f7c7ffd6943552b501622abfe - SwaggerClient: 579729c54e8e2e34566e5b5572adc959518663ea - -COCOAPODS: 0.37.1 diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFHTTPRequestOperation.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFHTTPRequestOperation.h deleted file mode 100644 index 321d4e76e8c..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFHTTPRequestOperation.h +++ /dev/null @@ -1,66 +0,0 @@ -// AFHTTPRequestOperation.h -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import -#import "AFURLConnectionOperation.h" - -/** - `AFHTTPRequestOperation` is a subclass of `AFURLConnectionOperation` for requests using the HTTP or HTTPS protocols. It encapsulates the concept of acceptable status codes and content types, which determine the success or failure of a request. - */ -@interface AFHTTPRequestOperation : AFURLConnectionOperation - -///------------------------------------------------ -/// @name Getting HTTP URL Connection Information -///------------------------------------------------ - -/** - The last HTTP response received by the operation's connection. - */ -@property (readonly, nonatomic, strong) NSHTTPURLResponse *response; - -/** - Responses sent from the server in data tasks created with `dataTaskWithRequest:success:failure:` and run using the `GET` / `POST` / et al. convenience methods are automatically validated and serialized by the response serializer. By default, this property is set to an AFHTTPResponse serializer, which uses the raw data as its response object. The serializer validates the status code to be in the `2XX` range, denoting success. If the response serializer generates an error in `-responseObjectForResponse:data:error:`, the `failure` callback of the session task or request operation will be executed; otherwise, the `success` callback will be executed. - - @warning `responseSerializer` must not be `nil`. Setting a response serializer will clear out any cached value - */ -@property (nonatomic, strong) AFHTTPResponseSerializer * responseSerializer; - -/** - An object constructed by the `responseSerializer` from the response and response data. Returns `nil` unless the operation `isFinished`, has a `response`, and has `responseData` with non-zero content length. If an error occurs during serialization, `nil` will be returned, and the `error` property will be populated with the serialization error. - */ -@property (readonly, nonatomic, strong) id responseObject; - -///----------------------------------------------------------- -/// @name Setting Completion Block Success / Failure Callbacks -///----------------------------------------------------------- - -/** - Sets the `completionBlock` property with a block that executes either the specified success or failure block, depending on the state of the request on completion. If `error` returns a value, which can be caused by an unacceptable status code or content type, then `failure` is executed. Otherwise, `success` is executed. - - This method should be overridden in subclasses in order to specify the response object passed into the success block. - - @param success The block to be executed on the completion of a successful request. This block has no return value and takes two arguments: the receiver operation and the object constructed from the response data of the request. - @param failure The block to be executed on the completion of an unsuccessful request. This block has no return value and takes two arguments: the receiver operation and the error that occurred during the request. - */ -- (void)setCompletionBlockWithSuccess:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success - failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFHTTPRequestOperation.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFHTTPRequestOperation.m deleted file mode 100644 index b8deda839a4..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFHTTPRequestOperation.m +++ /dev/null @@ -1,206 +0,0 @@ -// AFHTTPRequestOperation.m -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import "AFHTTPRequestOperation.h" - -static dispatch_queue_t http_request_operation_processing_queue() { - static dispatch_queue_t af_http_request_operation_processing_queue; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - af_http_request_operation_processing_queue = dispatch_queue_create("com.alamofire.networking.http-request.processing", DISPATCH_QUEUE_CONCURRENT); - }); - - return af_http_request_operation_processing_queue; -} - -static dispatch_group_t http_request_operation_completion_group() { - static dispatch_group_t af_http_request_operation_completion_group; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - af_http_request_operation_completion_group = dispatch_group_create(); - }); - - return af_http_request_operation_completion_group; -} - -#pragma mark - - -@interface AFURLConnectionOperation () -@property (readwrite, nonatomic, strong) NSURLRequest *request; -@property (readwrite, nonatomic, strong) NSURLResponse *response; -@end - -@interface AFHTTPRequestOperation () -@property (readwrite, nonatomic, strong) NSHTTPURLResponse *response; -@property (readwrite, nonatomic, strong) id responseObject; -@property (readwrite, nonatomic, strong) NSError *responseSerializationError; -@property (readwrite, nonatomic, strong) NSRecursiveLock *lock; -@end - -@implementation AFHTTPRequestOperation -@dynamic response; -@dynamic lock; - -- (instancetype)initWithRequest:(NSURLRequest *)urlRequest { - self = [super initWithRequest:urlRequest]; - if (!self) { - return nil; - } - - self.responseSerializer = [AFHTTPResponseSerializer serializer]; - - return self; -} - -- (void)setResponseSerializer:(AFHTTPResponseSerializer *)responseSerializer { - NSParameterAssert(responseSerializer); - - [self.lock lock]; - _responseSerializer = responseSerializer; - self.responseObject = nil; - self.responseSerializationError = nil; - [self.lock unlock]; -} - -- (id)responseObject { - [self.lock lock]; - if (!_responseObject && [self isFinished] && !self.error) { - NSError *error = nil; - self.responseObject = [self.responseSerializer responseObjectForResponse:self.response data:self.responseData error:&error]; - if (error) { - self.responseSerializationError = error; - } - } - [self.lock unlock]; - - return _responseObject; -} - -- (NSError *)error { - if (_responseSerializationError) { - return _responseSerializationError; - } else { - return [super error]; - } -} - -#pragma mark - AFHTTPRequestOperation - -- (void)setCompletionBlockWithSuccess:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success - failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure -{ - // completionBlock is manually nilled out in AFURLConnectionOperation to break the retain cycle. -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Warc-retain-cycles" -#pragma clang diagnostic ignored "-Wgnu" - self.completionBlock = ^{ - if (self.completionGroup) { - dispatch_group_enter(self.completionGroup); - } - - dispatch_async(http_request_operation_processing_queue(), ^{ - if (self.error) { - if (failure) { - dispatch_group_async(self.completionGroup ?: http_request_operation_completion_group(), self.completionQueue ?: dispatch_get_main_queue(), ^{ - failure(self, self.error); - }); - } - } else { - id responseObject = self.responseObject; - if (self.error) { - if (failure) { - dispatch_group_async(self.completionGroup ?: http_request_operation_completion_group(), self.completionQueue ?: dispatch_get_main_queue(), ^{ - failure(self, self.error); - }); - } - } else { - if (success) { - dispatch_group_async(self.completionGroup ?: http_request_operation_completion_group(), self.completionQueue ?: dispatch_get_main_queue(), ^{ - success(self, responseObject); - }); - } - } - } - - if (self.completionGroup) { - dispatch_group_leave(self.completionGroup); - } - }); - }; -#pragma clang diagnostic pop -} - -#pragma mark - AFURLRequestOperation - -- (void)pause { - [super pause]; - - u_int64_t offset = 0; - if ([self.outputStream propertyForKey:NSStreamFileCurrentOffsetKey]) { - offset = [(NSNumber *)[self.outputStream propertyForKey:NSStreamFileCurrentOffsetKey] unsignedLongLongValue]; - } else { - offset = [(NSData *)[self.outputStream propertyForKey:NSStreamDataWrittenToMemoryStreamKey] length]; - } - - NSMutableURLRequest *mutableURLRequest = [self.request mutableCopy]; - if ([self.response respondsToSelector:@selector(allHeaderFields)] && [[self.response allHeaderFields] valueForKey:@"ETag"]) { - [mutableURLRequest setValue:[[self.response allHeaderFields] valueForKey:@"ETag"] forHTTPHeaderField:@"If-Range"]; - } - [mutableURLRequest setValue:[NSString stringWithFormat:@"bytes=%llu-", offset] forHTTPHeaderField:@"Range"]; - self.request = mutableURLRequest; -} - -#pragma mark - NSSecureCoding - -+ (BOOL)supportsSecureCoding { - return YES; -} - -- (id)initWithCoder:(NSCoder *)decoder { - self = [super initWithCoder:decoder]; - if (!self) { - return nil; - } - - self.responseSerializer = [decoder decodeObjectOfClass:[AFHTTPResponseSerializer class] forKey:NSStringFromSelector(@selector(responseSerializer))]; - - return self; -} - -- (void)encodeWithCoder:(NSCoder *)coder { - [super encodeWithCoder:coder]; - - [coder encodeObject:self.responseSerializer forKey:NSStringFromSelector(@selector(responseSerializer))]; -} - -#pragma mark - NSCopying - -- (id)copyWithZone:(NSZone *)zone { - AFHTTPRequestOperation *operation = [super copyWithZone:zone]; - - operation.responseSerializer = [self.responseSerializer copyWithZone:zone]; - operation.completionQueue = self.completionQueue; - operation.completionGroup = self.completionGroup; - - return operation; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFHTTPRequestOperationManager.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFHTTPRequestOperationManager.h deleted file mode 100644 index 17caa78b884..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFHTTPRequestOperationManager.h +++ /dev/null @@ -1,323 +0,0 @@ -// AFHTTPRequestOperationManager.h -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import -#import -#import - -#if __IPHONE_OS_VERSION_MIN_REQUIRED -#import -#else -#import -#endif - -#import "AFHTTPRequestOperation.h" -#import "AFURLResponseSerialization.h" -#import "AFURLRequestSerialization.h" -#import "AFSecurityPolicy.h" -#import "AFNetworkReachabilityManager.h" - -#ifndef NS_DESIGNATED_INITIALIZER -#if __has_attribute(objc_designated_initializer) -#define NS_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) -#else -#define NS_DESIGNATED_INITIALIZER -#endif -#endif - -/** - `AFHTTPRequestOperationManager` encapsulates the common patterns of communicating with a web application over HTTP, including request creation, response serialization, network reachability monitoring, and security, as well as request operation management. - - ## Subclassing Notes - - Developers targeting iOS 7 or Mac OS X 10.9 or later that deal extensively with a web service are encouraged to subclass `AFHTTPSessionManager`, providing a class method that returns a shared singleton object on which authentication and other configuration can be shared across the application. - - For developers targeting iOS 6 or Mac OS X 10.8 or earlier, `AFHTTPRequestOperationManager` may be used to similar effect. - - ## Methods to Override - - To change the behavior of all request operation construction for an `AFHTTPRequestOperationManager` subclass, override `HTTPRequestOperationWithRequest:success:failure`. - - ## Serialization - - Requests created by an HTTP client will contain default headers and encode parameters according to the `requestSerializer` property, which is an object conforming to ``. - - Responses received from the server are automatically validated and serialized by the `responseSerializers` property, which is an object conforming to `` - - ## URL Construction Using Relative Paths - - For HTTP convenience methods, the request serializer constructs URLs from the path relative to the `-baseURL`, using `NSURL +URLWithString:relativeToURL:`, when provided. If `baseURL` is `nil`, `path` needs to resolve to a valid `NSURL` object using `NSURL +URLWithString:`. - - Below are a few examples of how `baseURL` and relative paths interact: - - NSURL *baseURL = [NSURL URLWithString:@"http://example.com/v1/"]; - [NSURL URLWithString:@"foo" relativeToURL:baseURL]; // http://example.com/v1/foo - [NSURL URLWithString:@"foo?bar=baz" relativeToURL:baseURL]; // http://example.com/v1/foo?bar=baz - [NSURL URLWithString:@"/foo" relativeToURL:baseURL]; // http://example.com/foo - [NSURL URLWithString:@"foo/" relativeToURL:baseURL]; // http://example.com/v1/foo - [NSURL URLWithString:@"/foo/" relativeToURL:baseURL]; // http://example.com/foo/ - [NSURL URLWithString:@"http://example2.com/" relativeToURL:baseURL]; // http://example2.com/ - - Also important to note is that a trailing slash will be added to any `baseURL` without one. This would otherwise cause unexpected behavior when constructing URLs using paths without a leading slash. - - ## Network Reachability Monitoring - - Network reachability status and change monitoring is available through the `reachabilityManager` property. Applications may choose to monitor network reachability conditions in order to prevent or suspend any outbound requests. See `AFNetworkReachabilityManager` for more details. - - ## NSSecureCoding & NSCopying Caveats - - `AFHTTPRequestOperationManager` conforms to the `NSSecureCoding` and `NSCopying` protocols, allowing operations to be archived to disk, and copied in memory, respectively. There are a few minor caveats to keep in mind, however: - - - Archives and copies of HTTP clients will be initialized with an empty operation queue. - - NSSecureCoding cannot serialize / deserialize block properties, so an archive of an HTTP client will not include any reachability callback block that may be set. - */ -@interface AFHTTPRequestOperationManager : NSObject - -/** - The URL used to monitor reachability, and construct requests from relative paths in methods like `requestWithMethod:URLString:parameters:`, and the `GET` / `POST` / et al. convenience methods. - */ -@property (readonly, nonatomic, strong) NSURL *baseURL; - -/** - Requests created with `requestWithMethod:URLString:parameters:` & `multipartFormRequestWithMethod:URLString:parameters:constructingBodyWithBlock:` are constructed with a set of default headers using a parameter serialization specified by this property. By default, this is set to an instance of `AFHTTPRequestSerializer`, which serializes query string parameters for `GET`, `HEAD`, and `DELETE` requests, or otherwise URL-form-encodes HTTP message bodies. - - @warning `requestSerializer` must not be `nil`. - */ -@property (nonatomic, strong) AFHTTPRequestSerializer * requestSerializer; - -/** - Responses sent from the server in data tasks created with `dataTaskWithRequest:success:failure:` and run using the `GET` / `POST` / et al. convenience methods are automatically validated and serialized by the response serializer. By default, this property is set to a JSON serializer, which serializes data from responses with a `application/json` MIME type, and falls back to the raw data object. The serializer validates the status code to be in the `2XX` range, denoting success. If the response serializer generates an error in `-responseObjectForResponse:data:error:`, the `failure` callback of the session task or request operation will be executed; otherwise, the `success` callback will be executed. - - @warning `responseSerializer` must not be `nil`. - */ -@property (nonatomic, strong) AFHTTPResponseSerializer * responseSerializer; - -/** - The operation queue on which request operations are scheduled and run. - */ -@property (nonatomic, strong) NSOperationQueue *operationQueue; - -///------------------------------- -/// @name Managing URL Credentials -///------------------------------- - -/** - Whether request operations should consult the credential storage for authenticating the connection. `YES` by default. - - @see AFURLConnectionOperation -shouldUseCredentialStorage - */ -@property (nonatomic, assign) BOOL shouldUseCredentialStorage; - -/** - The credential used by request operations for authentication challenges. - - @see AFURLConnectionOperation -credential - */ -@property (nonatomic, strong) NSURLCredential *credential; - -///------------------------------- -/// @name Managing Security Policy -///------------------------------- - -/** - The security policy used by created request operations to evaluate server trust for secure connections. `AFHTTPRequestOperationManager` uses the `defaultPolicy` unless otherwise specified. - */ -@property (nonatomic, strong) AFSecurityPolicy *securityPolicy; - -///------------------------------------ -/// @name Managing Network Reachability -///------------------------------------ - -/** - The network reachability manager. `AFHTTPRequestOperationManager` uses the `sharedManager` by default. - */ -@property (readwrite, nonatomic, strong) AFNetworkReachabilityManager *reachabilityManager; - -///------------------------------- -/// @name Managing Callback Queues -///------------------------------- - -/** - The dispatch queue for the `completionBlock` of request operations. If `NULL` (default), the main queue is used. - */ -#if OS_OBJECT_HAVE_OBJC_SUPPORT -@property (nonatomic, strong) dispatch_queue_t completionQueue; -#else -@property (nonatomic, assign) dispatch_queue_t completionQueue; -#endif - -/** - The dispatch group for the `completionBlock` of request operations. If `NULL` (default), a private dispatch group is used. - */ -#if OS_OBJECT_HAVE_OBJC_SUPPORT -@property (nonatomic, strong) dispatch_group_t completionGroup; -#else -@property (nonatomic, assign) dispatch_group_t completionGroup; -#endif - -///--------------------------------------------- -/// @name Creating and Initializing HTTP Clients -///--------------------------------------------- - -/** - Creates and returns an `AFHTTPRequestOperationManager` object. - */ -+ (instancetype)manager; - -/** - Initializes an `AFHTTPRequestOperationManager` object with the specified base URL. - - This is the designated initializer. - - @param url The base URL for the HTTP client. - - @return The newly-initialized HTTP client - */ -- (instancetype)initWithBaseURL:(NSURL *)url NS_DESIGNATED_INITIALIZER; - -///--------------------------------------- -/// @name Managing HTTP Request Operations -///--------------------------------------- - -/** - Creates an `AFHTTPRequestOperation`, and sets the response serializers to that of the HTTP client. - - @param request The request object to be loaded asynchronously during execution of the operation. - @param success A block object to be executed when the request operation finishes successfully. This block has no return value and takes two arguments: the created request operation and the object created from the response data of request. - @param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes two arguments:, the created request operation and the `NSError` object describing the network or parsing error that occurred. - */ -- (AFHTTPRequestOperation *)HTTPRequestOperationWithRequest:(NSURLRequest *)request - success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success - failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure; - -///--------------------------- -/// @name Making HTTP Requests -///--------------------------- - -/** - Creates and runs an `AFHTTPRequestOperation` with a `GET` request. - - @param URLString The URL string used to create the request URL. - @param parameters The parameters to be encoded according to the client request serializer. - @param success A block object to be executed when the request operation finishes successfully. This block has no return value and takes two arguments: the request operation, and the response object created by the client response serializer. - @param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the request operation and the error describing the network or parsing error that occurred. - - @see -HTTPRequestOperationWithRequest:success:failure: - */ -- (AFHTTPRequestOperation *)GET:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success - failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure; - -/** - Creates and runs an `AFHTTPRequestOperation` with a `HEAD` request. - - @param URLString The URL string used to create the request URL. - @param parameters The parameters to be encoded according to the client request serializer. - @param success A block object to be executed when the request operation finishes successfully. This block has no return value and takes a single arguments: the request operation. - @param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the request operation and the error describing the network or parsing error that occurred. - - @see -HTTPRequestOperationWithRequest:success:failure: - */ -- (AFHTTPRequestOperation *)HEAD:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(AFHTTPRequestOperation *operation))success - failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure; - -/** - Creates and runs an `AFHTTPRequestOperation` with a `POST` request. - - @param URLString The URL string used to create the request URL. - @param parameters The parameters to be encoded according to the client request serializer. - @param success A block object to be executed when the request operation finishes successfully. This block has no return value and takes two arguments: the request operation, and the response object created by the client response serializer. - @param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the request operation and the error describing the network or parsing error that occurred. - - @see -HTTPRequestOperationWithRequest:success:failure: - */ -- (AFHTTPRequestOperation *)POST:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success - failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure; - -/** - Creates and runs an `AFHTTPRequestOperation` with a multipart `POST` request. - - @param URLString The URL string used to create the request URL. - @param parameters The parameters to be encoded according to the client request serializer. - @param block A block that takes a single argument and appends data to the HTTP body. The block argument is an object adopting the `AFMultipartFormData` protocol. - @param success A block object to be executed when the request operation finishes successfully. This block has no return value and takes two arguments: the request operation, and the response object created by the client response serializer. - @param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the request operation and the error describing the network or parsing error that occurred. - - @see -HTTPRequestOperationWithRequest:success:failure: - */ -- (AFHTTPRequestOperation *)POST:(NSString *)URLString - parameters:(id)parameters - constructingBodyWithBlock:(void (^)(id formData))block - success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success - failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure; - -/** - Creates and runs an `AFHTTPRequestOperation` with a `PUT` request. - - @param URLString The URL string used to create the request URL. - @param parameters The parameters to be encoded according to the client request serializer. - @param success A block object to be executed when the request operation finishes successfully. This block has no return value and takes two arguments: the request operation, and the response object created by the client response serializer. - @param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the request operation and the error describing the network or parsing error that occurred. - - @see -HTTPRequestOperationWithRequest:success:failure: - */ -- (AFHTTPRequestOperation *)PUT:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success - failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure; - -/** - Creates and runs an `AFHTTPRequestOperation` with a `PATCH` request. - - @param URLString The URL string used to create the request URL. - @param parameters The parameters to be encoded according to the client request serializer. - @param success A block object to be executed when the request operation finishes successfully. This block has no return value and takes two arguments: the request operation, and the response object created by the client response serializer. - @param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the request operation and the error describing the network or parsing error that occurred. - - @see -HTTPRequestOperationWithRequest:success:failure: - */ -- (AFHTTPRequestOperation *)PATCH:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success - failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure; - -/** - Creates and runs an `AFHTTPRequestOperation` with a `DELETE` request. - - @param URLString The URL string used to create the request URL. - @param parameters The parameters to be encoded according to the client request serializer. - @param success A block object to be executed when the request operation finishes successfully. This block has no return value and takes two arguments: the request operation, and the response object created by the client response serializer. - @param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the request operation and the error describing the network or parsing error that occurred. - - @see -HTTPRequestOperationWithRequest:success:failure: - */ -- (AFHTTPRequestOperation *)DELETE:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success - failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure; - -@end - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFHTTPRequestOperationManager.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFHTTPRequestOperationManager.m deleted file mode 100644 index 60739e5f0de..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFHTTPRequestOperationManager.m +++ /dev/null @@ -1,284 +0,0 @@ -// AFHTTPRequestOperationManager.m -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import - -#import "AFHTTPRequestOperationManager.h" -#import "AFHTTPRequestOperation.h" - -#import -#import - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) -#import -#endif - -@interface AFHTTPRequestOperationManager () -@property (readwrite, nonatomic, strong) NSURL *baseURL; -@end - -@implementation AFHTTPRequestOperationManager - -+ (instancetype)manager { - return [[self alloc] initWithBaseURL:nil]; -} - -- (instancetype)init { - return [self initWithBaseURL:nil]; -} - -- (instancetype)initWithBaseURL:(NSURL *)url { - self = [super init]; - if (!self) { - return nil; - } - - // Ensure terminal slash for baseURL path, so that NSURL +URLWithString:relativeToURL: works as expected - if ([[url path] length] > 0 && ![[url absoluteString] hasSuffix:@"/"]) { - url = [url URLByAppendingPathComponent:@""]; - } - - self.baseURL = url; - - self.requestSerializer = [AFHTTPRequestSerializer serializer]; - self.responseSerializer = [AFJSONResponseSerializer serializer]; - - self.securityPolicy = [AFSecurityPolicy defaultPolicy]; - - self.reachabilityManager = [AFNetworkReachabilityManager sharedManager]; - - self.operationQueue = [[NSOperationQueue alloc] init]; - - self.shouldUseCredentialStorage = YES; - - return self; -} - -#pragma mark - - -#ifdef _SYSTEMCONFIGURATION_H -#endif - -- (void)setRequestSerializer:(AFHTTPRequestSerializer *)requestSerializer { - NSParameterAssert(requestSerializer); - - _requestSerializer = requestSerializer; -} - -- (void)setResponseSerializer:(AFHTTPResponseSerializer *)responseSerializer { - NSParameterAssert(responseSerializer); - - _responseSerializer = responseSerializer; -} - -#pragma mark - - -- (AFHTTPRequestOperation *)HTTPRequestOperationWithHTTPMethod:(NSString *)method - URLString:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success - failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure -{ - NSError *serializationError = nil; - NSMutableURLRequest *request = [self.requestSerializer requestWithMethod:method URLString:[[NSURL URLWithString:URLString relativeToURL:self.baseURL] absoluteString] parameters:parameters error:&serializationError]; - if (serializationError) { - if (failure) { -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgnu" - dispatch_async(self.completionQueue ?: dispatch_get_main_queue(), ^{ - failure(nil, serializationError); - }); -#pragma clang diagnostic pop - } - - return nil; - } - - return [self HTTPRequestOperationWithRequest:request success:success failure:failure]; -} - -- (AFHTTPRequestOperation *)HTTPRequestOperationWithRequest:(NSURLRequest *)request - success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success - failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure -{ - AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request]; - operation.responseSerializer = self.responseSerializer; - operation.shouldUseCredentialStorage = self.shouldUseCredentialStorage; - operation.credential = self.credential; - operation.securityPolicy = self.securityPolicy; - - [operation setCompletionBlockWithSuccess:success failure:failure]; - operation.completionQueue = self.completionQueue; - operation.completionGroup = self.completionGroup; - - return operation; -} - -#pragma mark - - -- (AFHTTPRequestOperation *)GET:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success - failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure -{ - AFHTTPRequestOperation *operation = [self HTTPRequestOperationWithHTTPMethod:@"GET" URLString:URLString parameters:parameters success:success failure:failure]; - - [self.operationQueue addOperation:operation]; - - return operation; -} - -- (AFHTTPRequestOperation *)HEAD:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(AFHTTPRequestOperation *operation))success - failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure -{ - AFHTTPRequestOperation *operation = [self HTTPRequestOperationWithHTTPMethod:@"HEAD" URLString:URLString parameters:parameters success:^(AFHTTPRequestOperation *requestOperation, __unused id responseObject) { - if (success) { - success(requestOperation); - } - } failure:failure]; - - [self.operationQueue addOperation:operation]; - - return operation; -} - -- (AFHTTPRequestOperation *)POST:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success - failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure -{ - AFHTTPRequestOperation *operation = [self HTTPRequestOperationWithHTTPMethod:@"POST" URLString:URLString parameters:parameters success:success failure:failure]; - - [self.operationQueue addOperation:operation]; - - return operation; -} - -- (AFHTTPRequestOperation *)POST:(NSString *)URLString - parameters:(id)parameters - constructingBodyWithBlock:(void (^)(id formData))block - success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success - failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure -{ - NSError *serializationError = nil; - NSMutableURLRequest *request = [self.requestSerializer multipartFormRequestWithMethod:@"POST" URLString:[[NSURL URLWithString:URLString relativeToURL:self.baseURL] absoluteString] parameters:parameters constructingBodyWithBlock:block error:&serializationError]; - if (serializationError) { - if (failure) { -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgnu" - dispatch_async(self.completionQueue ?: dispatch_get_main_queue(), ^{ - failure(nil, serializationError); - }); -#pragma clang diagnostic pop - } - - return nil; - } - - AFHTTPRequestOperation *operation = [self HTTPRequestOperationWithRequest:request success:success failure:failure]; - - [self.operationQueue addOperation:operation]; - - return operation; -} - -- (AFHTTPRequestOperation *)PUT:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success - failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure -{ - AFHTTPRequestOperation *operation = [self HTTPRequestOperationWithHTTPMethod:@"PUT" URLString:URLString parameters:parameters success:success failure:failure]; - - [self.operationQueue addOperation:operation]; - - return operation; -} - -- (AFHTTPRequestOperation *)PATCH:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success - failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure -{ - AFHTTPRequestOperation *operation = [self HTTPRequestOperationWithHTTPMethod:@"PATCH" URLString:URLString parameters:parameters success:success failure:failure]; - - [self.operationQueue addOperation:operation]; - - return operation; -} - -- (AFHTTPRequestOperation *)DELETE:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success - failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure -{ - AFHTTPRequestOperation *operation = [self HTTPRequestOperationWithHTTPMethod:@"DELETE" URLString:URLString parameters:parameters success:success failure:failure]; - - [self.operationQueue addOperation:operation]; - - return operation; -} - -#pragma mark - NSObject - -- (NSString *)description { - return [NSString stringWithFormat:@"<%@: %p, baseURL: %@, operationQueue: %@>", NSStringFromClass([self class]), self, [self.baseURL absoluteString], self.operationQueue]; -} - -#pragma mark - NSSecureCoding - -+ (BOOL)supportsSecureCoding { - return YES; -} - -- (id)initWithCoder:(NSCoder *)decoder { - NSURL *baseURL = [decoder decodeObjectForKey:NSStringFromSelector(@selector(baseURL))]; - - self = [self initWithBaseURL:baseURL]; - if (!self) { - return nil; - } - - self.requestSerializer = [decoder decodeObjectOfClass:[AFHTTPRequestSerializer class] forKey:NSStringFromSelector(@selector(requestSerializer))]; - self.responseSerializer = [decoder decodeObjectOfClass:[AFHTTPResponseSerializer class] forKey:NSStringFromSelector(@selector(responseSerializer))]; - - return self; -} - -- (void)encodeWithCoder:(NSCoder *)coder { - [coder encodeObject:self.baseURL forKey:NSStringFromSelector(@selector(baseURL))]; - [coder encodeObject:self.requestSerializer forKey:NSStringFromSelector(@selector(requestSerializer))]; - [coder encodeObject:self.responseSerializer forKey:NSStringFromSelector(@selector(responseSerializer))]; -} - -#pragma mark - NSCopying - -- (id)copyWithZone:(NSZone *)zone { - AFHTTPRequestOperationManager *HTTPClient = [[[self class] allocWithZone:zone] initWithBaseURL:self.baseURL]; - - HTTPClient.requestSerializer = [self.requestSerializer copyWithZone:zone]; - HTTPClient.responseSerializer = [self.responseSerializer copyWithZone:zone]; - - return HTTPClient; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.h deleted file mode 100644 index cc98bab043b..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.h +++ /dev/null @@ -1,247 +0,0 @@ -// AFHTTPSessionManager.h -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import -#import -#import - -#if __IPHONE_OS_VERSION_MIN_REQUIRED -#import -#else -#import -#endif - -#import "AFURLSessionManager.h" - -#ifndef NS_DESIGNATED_INITIALIZER -#if __has_attribute(objc_designated_initializer) -#define NS_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) -#else -#define NS_DESIGNATED_INITIALIZER -#endif -#endif - -/** - `AFHTTPSessionManager` is a subclass of `AFURLSessionManager` with convenience methods for making HTTP requests. When a `baseURL` is provided, requests made with the `GET` / `POST` / et al. convenience methods can be made with relative paths. - - ## Subclassing Notes - - Developers targeting iOS 7 or Mac OS X 10.9 or later that deal extensively with a web service are encouraged to subclass `AFHTTPSessionManager`, providing a class method that returns a shared singleton object on which authentication and other configuration can be shared across the application. - - For developers targeting iOS 6 or Mac OS X 10.8 or earlier, `AFHTTPRequestOperationManager` may be used to similar effect. - - ## Methods to Override - - To change the behavior of all data task operation construction, which is also used in the `GET` / `POST` / et al. convenience methods, override `dataTaskWithRequest:completionHandler:`. - - ## Serialization - - Requests created by an HTTP client will contain default headers and encode parameters according to the `requestSerializer` property, which is an object conforming to ``. - - Responses received from the server are automatically validated and serialized by the `responseSerializers` property, which is an object conforming to `` - - ## URL Construction Using Relative Paths - - For HTTP convenience methods, the request serializer constructs URLs from the path relative to the `-baseURL`, using `NSURL +URLWithString:relativeToURL:`, when provided. If `baseURL` is `nil`, `path` needs to resolve to a valid `NSURL` object using `NSURL +URLWithString:`. - - Below are a few examples of how `baseURL` and relative paths interact: - - NSURL *baseURL = [NSURL URLWithString:@"http://example.com/v1/"]; - [NSURL URLWithString:@"foo" relativeToURL:baseURL]; // http://example.com/v1/foo - [NSURL URLWithString:@"foo?bar=baz" relativeToURL:baseURL]; // http://example.com/v1/foo?bar=baz - [NSURL URLWithString:@"/foo" relativeToURL:baseURL]; // http://example.com/foo - [NSURL URLWithString:@"foo/" relativeToURL:baseURL]; // http://example.com/v1/foo - [NSURL URLWithString:@"/foo/" relativeToURL:baseURL]; // http://example.com/foo/ - [NSURL URLWithString:@"http://example2.com/" relativeToURL:baseURL]; // http://example2.com/ - - Also important to note is that a trailing slash will be added to any `baseURL` without one. This would otherwise cause unexpected behavior when constructing URLs using paths without a leading slash. - - @warning Managers for background sessions must be owned for the duration of their use. This can be accomplished by creating an application-wide or shared singleton instance. - */ - -#if (defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000) || (defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 1090) - -@interface AFHTTPSessionManager : AFURLSessionManager - -/** - The URL used to monitor reachability, and construct requests from relative paths in methods like `requestWithMethod:URLString:parameters:`, and the `GET` / `POST` / et al. convenience methods. - */ -@property (readonly, nonatomic, strong) NSURL *baseURL; - -/** - Requests created with `requestWithMethod:URLString:parameters:` & `multipartFormRequestWithMethod:URLString:parameters:constructingBodyWithBlock:` are constructed with a set of default headers using a parameter serialization specified by this property. By default, this is set to an instance of `AFHTTPRequestSerializer`, which serializes query string parameters for `GET`, `HEAD`, and `DELETE` requests, or otherwise URL-form-encodes HTTP message bodies. - - @warning `requestSerializer` must not be `nil`. - */ -@property (nonatomic, strong) AFHTTPRequestSerializer * requestSerializer; - -/** - Responses sent from the server in data tasks created with `dataTaskWithRequest:success:failure:` and run using the `GET` / `POST` / et al. convenience methods are automatically validated and serialized by the response serializer. By default, this property is set to an instance of `AFJSONResponseSerializer`. - - @warning `responseSerializer` must not be `nil`. - */ -@property (nonatomic, strong) AFHTTPResponseSerializer * responseSerializer; - -///--------------------- -/// @name Initialization -///--------------------- - -/** - Creates and returns an `AFHTTPSessionManager` object. - */ -+ (instancetype)manager; - -/** - Initializes an `AFHTTPSessionManager` object with the specified base URL. - - @param url The base URL for the HTTP client. - - @return The newly-initialized HTTP client - */ -- (instancetype)initWithBaseURL:(NSURL *)url; - -/** - Initializes an `AFHTTPSessionManager` object with the specified base URL. - - This is the designated initializer. - - @param url The base URL for the HTTP client. - @param configuration The configuration used to create the managed session. - - @return The newly-initialized HTTP client - */ -- (instancetype)initWithBaseURL:(NSURL *)url - sessionConfiguration:(NSURLSessionConfiguration *)configuration NS_DESIGNATED_INITIALIZER; - -///--------------------------- -/// @name Making HTTP Requests -///--------------------------- - -/** - Creates and runs an `NSURLSessionDataTask` with a `GET` request. - - @param URLString The URL string used to create the request URL. - @param parameters The parameters to be encoded according to the client request serializer. - @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer. - @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred. - - @see -dataTaskWithRequest:completionHandler: - */ -- (NSURLSessionDataTask *)GET:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(NSURLSessionDataTask *task, id responseObject))success - failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure; - -/** - Creates and runs an `NSURLSessionDataTask` with a `HEAD` request. - - @param URLString The URL string used to create the request URL. - @param parameters The parameters to be encoded according to the client request serializer. - @param success A block object to be executed when the task finishes successfully. This block has no return value and takes a single arguments: the data task. - @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred. - - @see -dataTaskWithRequest:completionHandler: - */ -- (NSURLSessionDataTask *)HEAD:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(NSURLSessionDataTask *task))success - failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure; - -/** - Creates and runs an `NSURLSessionDataTask` with a `POST` request. - - @param URLString The URL string used to create the request URL. - @param parameters The parameters to be encoded according to the client request serializer. - @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer. - @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred. - - @see -dataTaskWithRequest:completionHandler: - */ -- (NSURLSessionDataTask *)POST:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(NSURLSessionDataTask *task, id responseObject))success - failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure; - -/** - Creates and runs an `NSURLSessionDataTask` with a multipart `POST` request. - - @param URLString The URL string used to create the request URL. - @param parameters The parameters to be encoded according to the client request serializer. - @param block A block that takes a single argument and appends data to the HTTP body. The block argument is an object adopting the `AFMultipartFormData` protocol. - @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer. - @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred. - - @see -dataTaskWithRequest:completionHandler: - */ -- (NSURLSessionDataTask *)POST:(NSString *)URLString - parameters:(id)parameters - constructingBodyWithBlock:(void (^)(id formData))block - success:(void (^)(NSURLSessionDataTask *task, id responseObject))success - failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure; - -/** - Creates and runs an `NSURLSessionDataTask` with a `PUT` request. - - @param URLString The URL string used to create the request URL. - @param parameters The parameters to be encoded according to the client request serializer. - @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer. - @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred. - - @see -dataTaskWithRequest:completionHandler: - */ -- (NSURLSessionDataTask *)PUT:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(NSURLSessionDataTask *task, id responseObject))success - failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure; - -/** - Creates and runs an `NSURLSessionDataTask` with a `PATCH` request. - - @param URLString The URL string used to create the request URL. - @param parameters The parameters to be encoded according to the client request serializer. - @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer. - @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred. - - @see -dataTaskWithRequest:completionHandler: - */ -- (NSURLSessionDataTask *)PATCH:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(NSURLSessionDataTask *task, id responseObject))success - failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure; - -/** - Creates and runs an `NSURLSessionDataTask` with a `DELETE` request. - - @param URLString The URL string used to create the request URL. - @param parameters The parameters to be encoded according to the client request serializer. - @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer. - @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred. - - @see -dataTaskWithRequest:completionHandler: - */ -- (NSURLSessionDataTask *)DELETE:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(NSURLSessionDataTask *task, id responseObject))success - failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure; - -@end - -#endif diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.m deleted file mode 100644 index 2b8352e74c9..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.m +++ /dev/null @@ -1,321 +0,0 @@ -// AFHTTPSessionManager.m -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import "AFHTTPSessionManager.h" - -#if (defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000) || (defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 1090) - -#import "AFURLRequestSerialization.h" -#import "AFURLResponseSerialization.h" - -#import -#import - -#ifdef _SYSTEMCONFIGURATION_H -#import -#import -#import -#import -#import -#endif - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) -#import -#endif - -@interface AFHTTPSessionManager () -@property (readwrite, nonatomic, strong) NSURL *baseURL; -@end - -@implementation AFHTTPSessionManager -@dynamic responseSerializer; - -+ (instancetype)manager { - return [[[self class] alloc] initWithBaseURL:nil]; -} - -- (instancetype)init { - return [self initWithBaseURL:nil]; -} - -- (instancetype)initWithBaseURL:(NSURL *)url { - return [self initWithBaseURL:url sessionConfiguration:nil]; -} - -- (instancetype)initWithSessionConfiguration:(NSURLSessionConfiguration *)configuration { - return [self initWithBaseURL:nil sessionConfiguration:configuration]; -} - -- (instancetype)initWithBaseURL:(NSURL *)url - sessionConfiguration:(NSURLSessionConfiguration *)configuration -{ - self = [super initWithSessionConfiguration:configuration]; - if (!self) { - return nil; - } - - // Ensure terminal slash for baseURL path, so that NSURL +URLWithString:relativeToURL: works as expected - if ([[url path] length] > 0 && ![[url absoluteString] hasSuffix:@"/"]) { - url = [url URLByAppendingPathComponent:@""]; - } - - self.baseURL = url; - - self.requestSerializer = [AFHTTPRequestSerializer serializer]; - self.responseSerializer = [AFJSONResponseSerializer serializer]; - - return self; -} - -#pragma mark - - -#ifdef _SYSTEMCONFIGURATION_H -#endif - -- (void)setRequestSerializer:(AFHTTPRequestSerializer *)requestSerializer { - NSParameterAssert(requestSerializer); - - _requestSerializer = requestSerializer; -} - -- (void)setResponseSerializer:(AFHTTPResponseSerializer *)responseSerializer { - NSParameterAssert(responseSerializer); - - [super setResponseSerializer:responseSerializer]; -} - -#pragma mark - - -- (NSURLSessionDataTask *)GET:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(NSURLSessionDataTask *task, id responseObject))success - failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure -{ - NSURLSessionDataTask *dataTask = [self dataTaskWithHTTPMethod:@"GET" URLString:URLString parameters:parameters success:success failure:failure]; - - [dataTask resume]; - - return dataTask; -} - -- (NSURLSessionDataTask *)HEAD:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(NSURLSessionDataTask *task))success - failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure -{ - NSURLSessionDataTask *dataTask = [self dataTaskWithHTTPMethod:@"HEAD" URLString:URLString parameters:parameters success:^(NSURLSessionDataTask *task, __unused id responseObject) { - if (success) { - success(task); - } - } failure:failure]; - - [dataTask resume]; - - return dataTask; -} - -- (NSURLSessionDataTask *)POST:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(NSURLSessionDataTask *task, id responseObject))success - failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure -{ - NSURLSessionDataTask *dataTask = [self dataTaskWithHTTPMethod:@"POST" URLString:URLString parameters:parameters success:success failure:failure]; - - [dataTask resume]; - - return dataTask; -} - -- (NSURLSessionDataTask *)POST:(NSString *)URLString - parameters:(id)parameters - constructingBodyWithBlock:(void (^)(id formData))block - success:(void (^)(NSURLSessionDataTask *task, id responseObject))success - failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure -{ - NSError *serializationError = nil; - NSMutableURLRequest *request = [self.requestSerializer multipartFormRequestWithMethod:@"POST" URLString:[[NSURL URLWithString:URLString relativeToURL:self.baseURL] absoluteString] parameters:parameters constructingBodyWithBlock:block error:&serializationError]; - if (serializationError) { - if (failure) { -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgnu" - dispatch_async(self.completionQueue ?: dispatch_get_main_queue(), ^{ - failure(nil, serializationError); - }); -#pragma clang diagnostic pop - } - - return nil; - } - - __block NSURLSessionDataTask *task = [self uploadTaskWithStreamedRequest:request progress:nil completionHandler:^(NSURLResponse * __unused response, id responseObject, NSError *error) { - if (error) { - if (failure) { - failure(task, error); - } - } else { - if (success) { - success(task, responseObject); - } - } - }]; - - [task resume]; - - return task; -} - -- (NSURLSessionDataTask *)PUT:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(NSURLSessionDataTask *task, id responseObject))success - failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure -{ - NSURLSessionDataTask *dataTask = [self dataTaskWithHTTPMethod:@"PUT" URLString:URLString parameters:parameters success:success failure:failure]; - - [dataTask resume]; - - return dataTask; -} - -- (NSURLSessionDataTask *)PATCH:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(NSURLSessionDataTask *task, id responseObject))success - failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure -{ - NSURLSessionDataTask *dataTask = [self dataTaskWithHTTPMethod:@"PATCH" URLString:URLString parameters:parameters success:success failure:failure]; - - [dataTask resume]; - - return dataTask; -} - -- (NSURLSessionDataTask *)DELETE:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(NSURLSessionDataTask *task, id responseObject))success - failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure -{ - NSURLSessionDataTask *dataTask = [self dataTaskWithHTTPMethod:@"DELETE" URLString:URLString parameters:parameters success:success failure:failure]; - - [dataTask resume]; - - return dataTask; -} - -- (NSURLSessionDataTask *)dataTaskWithHTTPMethod:(NSString *)method - URLString:(NSString *)URLString - parameters:(id)parameters - success:(void (^)(NSURLSessionDataTask *, id))success - failure:(void (^)(NSURLSessionDataTask *, NSError *))failure -{ - NSError *serializationError = nil; - NSMutableURLRequest *request = [self.requestSerializer requestWithMethod:method URLString:[[NSURL URLWithString:URLString relativeToURL:self.baseURL] absoluteString] parameters:parameters error:&serializationError]; - if (serializationError) { - if (failure) { -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgnu" - dispatch_async(self.completionQueue ?: dispatch_get_main_queue(), ^{ - failure(nil, serializationError); - }); -#pragma clang diagnostic pop - } - - return nil; - } - - __block NSURLSessionDataTask *dataTask = nil; - dataTask = [self dataTaskWithRequest:request completionHandler:^(NSURLResponse * __unused response, id responseObject, NSError *error) { - if (error) { - if (failure) { - failure(dataTask, error); - } - } else { - if (success) { - success(dataTask, responseObject); - } - } - }]; - - return dataTask; -} - -#pragma mark - NSObject - -- (NSString *)description { - return [NSString stringWithFormat:@"<%@: %p, baseURL: %@, session: %@, operationQueue: %@>", NSStringFromClass([self class]), self, [self.baseURL absoluteString], self.session, self.operationQueue]; -} - -#pragma mark - NSSecureCoding - -+ (BOOL)supportsSecureCoding { - return YES; -} - -- (id)initWithCoder:(NSCoder *)decoder { - NSURL *baseURL = [decoder decodeObjectOfClass:[NSURL class] forKey:NSStringFromSelector(@selector(baseURL))]; - NSURLSessionConfiguration *configuration = [decoder decodeObjectOfClass:[NSURLSessionConfiguration class] forKey:@"sessionConfiguration"]; - if (!configuration) { - NSString *configurationIdentifier = [decoder decodeObjectOfClass:[NSString class] forKey:@"identifier"]; - if (configurationIdentifier) { -#if (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1100) - configuration = [NSURLSessionConfiguration backgroundSessionConfigurationWithIdentifier:configurationIdentifier]; -#else - configuration = [NSURLSessionConfiguration backgroundSessionConfiguration:configurationIdentifier]; -#endif - } - } - - self = [self initWithBaseURL:baseURL sessionConfiguration:configuration]; - if (!self) { - return nil; - } - - self.requestSerializer = [decoder decodeObjectOfClass:[AFHTTPRequestSerializer class] forKey:NSStringFromSelector(@selector(requestSerializer))]; - self.responseSerializer = [decoder decodeObjectOfClass:[AFHTTPResponseSerializer class] forKey:NSStringFromSelector(@selector(responseSerializer))]; - - return self; -} - -- (void)encodeWithCoder:(NSCoder *)coder { - [super encodeWithCoder:coder]; - - [coder encodeObject:self.baseURL forKey:NSStringFromSelector(@selector(baseURL))]; - if ([self.session.configuration conformsToProtocol:@protocol(NSCoding)]) { - [coder encodeObject:self.session.configuration forKey:@"sessionConfiguration"]; - } else { - [coder encodeObject:self.session.configuration.identifier forKey:@"identifier"]; - } - [coder encodeObject:self.requestSerializer forKey:NSStringFromSelector(@selector(requestSerializer))]; - [coder encodeObject:self.responseSerializer forKey:NSStringFromSelector(@selector(responseSerializer))]; -} - -#pragma mark - NSCopying - -- (id)copyWithZone:(NSZone *)zone { - AFHTTPSessionManager *HTTPClient = [[[self class] allocWithZone:zone] initWithBaseURL:self.baseURL sessionConfiguration:self.session.configuration]; - - HTTPClient.requestSerializer = [self.requestSerializer copyWithZone:zone]; - HTTPClient.responseSerializer = [self.responseSerializer copyWithZone:zone]; - - return HTTPClient; -} - -@end - -#endif diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFNetworkReachabilityManager.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFNetworkReachabilityManager.h deleted file mode 100644 index 4ce2a36b202..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFNetworkReachabilityManager.h +++ /dev/null @@ -1,200 +0,0 @@ -// AFNetworkReachabilityManager.h -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import -#import - -#ifndef NS_DESIGNATED_INITIALIZER -#if __has_attribute(objc_designated_initializer) -#define NS_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) -#else -#define NS_DESIGNATED_INITIALIZER -#endif -#endif - -typedef NS_ENUM(NSInteger, AFNetworkReachabilityStatus) { - AFNetworkReachabilityStatusUnknown = -1, - AFNetworkReachabilityStatusNotReachable = 0, - AFNetworkReachabilityStatusReachableViaWWAN = 1, - AFNetworkReachabilityStatusReachableViaWiFi = 2, -}; - -/** - `AFNetworkReachabilityManager` monitors the reachability of domains, and addresses for both WWAN and WiFi network interfaces. - - Reachability can be used to determine background information about why a network operation failed, or to trigger a network operation retrying when a connection is established. It should not be used to prevent a user from initiating a network request, as it's possible that an initial request may be required to establish reachability. - - See Apple's Reachability Sample Code (https://developer.apple.com/library/ios/samplecode/reachability/) - - @warning Instances of `AFNetworkReachabilityManager` must be started with `-startMonitoring` before reachability status can be determined. - */ -@interface AFNetworkReachabilityManager : NSObject - -/** - The current network reachability status. - */ -@property (readonly, nonatomic, assign) AFNetworkReachabilityStatus networkReachabilityStatus; - -/** - Whether or not the network is currently reachable. - */ -@property (readonly, nonatomic, assign, getter = isReachable) BOOL reachable; - -/** - Whether or not the network is currently reachable via WWAN. - */ -@property (readonly, nonatomic, assign, getter = isReachableViaWWAN) BOOL reachableViaWWAN; - -/** - Whether or not the network is currently reachable via WiFi. - */ -@property (readonly, nonatomic, assign, getter = isReachableViaWiFi) BOOL reachableViaWiFi; - -///--------------------- -/// @name Initialization -///--------------------- - -/** - Returns the shared network reachability manager. - */ -+ (instancetype)sharedManager; - -/** - Creates and returns a network reachability manager for the specified domain. - - @param domain The domain used to evaluate network reachability. - - @return An initialized network reachability manager, actively monitoring the specified domain. - */ -+ (instancetype)managerForDomain:(NSString *)domain; - -/** - Creates and returns a network reachability manager for the socket address. - - @param address The socket address (`sockaddr_in`) used to evaluate network reachability. - - @return An initialized network reachability manager, actively monitoring the specified socket address. - */ -+ (instancetype)managerForAddress:(const void *)address; - -/** - Initializes an instance of a network reachability manager from the specified reachability object. - - @param reachability The reachability object to monitor. - - @return An initialized network reachability manager, actively monitoring the specified reachability. - */ -- (instancetype)initWithReachability:(SCNetworkReachabilityRef)reachability NS_DESIGNATED_INITIALIZER; - -///-------------------------------------------------- -/// @name Starting & Stopping Reachability Monitoring -///-------------------------------------------------- - -/** - Starts monitoring for changes in network reachability status. - */ -- (void)startMonitoring; - -/** - Stops monitoring for changes in network reachability status. - */ -- (void)stopMonitoring; - -///------------------------------------------------- -/// @name Getting Localized Reachability Description -///------------------------------------------------- - -/** - Returns a localized string representation of the current network reachability status. - */ -- (NSString *)localizedNetworkReachabilityStatusString; - -///--------------------------------------------------- -/// @name Setting Network Reachability Change Callback -///--------------------------------------------------- - -/** - Sets a callback to be executed when the network availability of the `baseURL` host changes. - - @param block A block object to be executed when the network availability of the `baseURL` host changes.. This block has no return value and takes a single argument which represents the various reachability states from the device to the `baseURL`. - */ -- (void)setReachabilityStatusChangeBlock:(void (^)(AFNetworkReachabilityStatus status))block; - -@end - -///---------------- -/// @name Constants -///---------------- - -/** - ## Network Reachability - - The following constants are provided by `AFNetworkReachabilityManager` as possible network reachability statuses. - - enum { - AFNetworkReachabilityStatusUnknown, - AFNetworkReachabilityStatusNotReachable, - AFNetworkReachabilityStatusReachableViaWWAN, - AFNetworkReachabilityStatusReachableViaWiFi, - } - - `AFNetworkReachabilityStatusUnknown` - The `baseURL` host reachability is not known. - - `AFNetworkReachabilityStatusNotReachable` - The `baseURL` host cannot be reached. - - `AFNetworkReachabilityStatusReachableViaWWAN` - The `baseURL` host can be reached via a cellular connection, such as EDGE or GPRS. - - `AFNetworkReachabilityStatusReachableViaWiFi` - The `baseURL` host can be reached via a Wi-Fi connection. - - ### Keys for Notification UserInfo Dictionary - - Strings that are used as keys in a `userInfo` dictionary in a network reachability status change notification. - - `AFNetworkingReachabilityNotificationStatusItem` - A key in the userInfo dictionary in a `AFNetworkingReachabilityDidChangeNotification` notification. - The corresponding value is an `NSNumber` object representing the `AFNetworkReachabilityStatus` value for the current reachability status. - */ - -///-------------------- -/// @name Notifications -///-------------------- - -/** - Posted when network reachability changes. - This notification assigns no notification object. The `userInfo` dictionary contains an `NSNumber` object under the `AFNetworkingReachabilityNotificationStatusItem` key, representing the `AFNetworkReachabilityStatus` value for the current network reachability. - - @warning In order for network reachability to be monitored, include the `SystemConfiguration` framework in the active target's "Link Binary With Library" build phase, and add `#import ` to the header prefix of the project (`Prefix.pch`). - */ -extern NSString * const AFNetworkingReachabilityDidChangeNotification; -extern NSString * const AFNetworkingReachabilityNotificationStatusItem; - -///-------------------- -/// @name Functions -///-------------------- - -/** - Returns a localized string representation of an `AFNetworkReachabilityStatus` value. - */ -extern NSString * AFStringFromNetworkReachabilityStatus(AFNetworkReachabilityStatus status); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFNetworkReachabilityManager.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFNetworkReachabilityManager.m deleted file mode 100644 index 25e9581e4d8..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFNetworkReachabilityManager.m +++ /dev/null @@ -1,259 +0,0 @@ -// AFNetworkReachabilityManager.m -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import "AFNetworkReachabilityManager.h" - -#import -#import -#import -#import -#import - -NSString * const AFNetworkingReachabilityDidChangeNotification = @"com.alamofire.networking.reachability.change"; -NSString * const AFNetworkingReachabilityNotificationStatusItem = @"AFNetworkingReachabilityNotificationStatusItem"; - -typedef void (^AFNetworkReachabilityStatusBlock)(AFNetworkReachabilityStatus status); - -typedef NS_ENUM(NSUInteger, AFNetworkReachabilityAssociation) { - AFNetworkReachabilityForAddress = 1, - AFNetworkReachabilityForAddressPair = 2, - AFNetworkReachabilityForName = 3, -}; - -NSString * AFStringFromNetworkReachabilityStatus(AFNetworkReachabilityStatus status) { - switch (status) { - case AFNetworkReachabilityStatusNotReachable: - return NSLocalizedStringFromTable(@"Not Reachable", @"AFNetworking", nil); - case AFNetworkReachabilityStatusReachableViaWWAN: - return NSLocalizedStringFromTable(@"Reachable via WWAN", @"AFNetworking", nil); - case AFNetworkReachabilityStatusReachableViaWiFi: - return NSLocalizedStringFromTable(@"Reachable via WiFi", @"AFNetworking", nil); - case AFNetworkReachabilityStatusUnknown: - default: - return NSLocalizedStringFromTable(@"Unknown", @"AFNetworking", nil); - } -} - -static AFNetworkReachabilityStatus AFNetworkReachabilityStatusForFlags(SCNetworkReachabilityFlags flags) { - BOOL isReachable = ((flags & kSCNetworkReachabilityFlagsReachable) != 0); - BOOL needsConnection = ((flags & kSCNetworkReachabilityFlagsConnectionRequired) != 0); - BOOL canConnectionAutomatically = (((flags & kSCNetworkReachabilityFlagsConnectionOnDemand ) != 0) || ((flags & kSCNetworkReachabilityFlagsConnectionOnTraffic) != 0)); - BOOL canConnectWithoutUserInteraction = (canConnectionAutomatically && (flags & kSCNetworkReachabilityFlagsInterventionRequired) == 0); - BOOL isNetworkReachable = (isReachable && (!needsConnection || canConnectWithoutUserInteraction)); - - AFNetworkReachabilityStatus status = AFNetworkReachabilityStatusUnknown; - if (isNetworkReachable == NO) { - status = AFNetworkReachabilityStatusNotReachable; - } -#if TARGET_OS_IPHONE - else if ((flags & kSCNetworkReachabilityFlagsIsWWAN) != 0) { - status = AFNetworkReachabilityStatusReachableViaWWAN; - } -#endif - else { - status = AFNetworkReachabilityStatusReachableViaWiFi; - } - - return status; -} - -static void AFNetworkReachabilityCallback(SCNetworkReachabilityRef __unused target, SCNetworkReachabilityFlags flags, void *info) { - AFNetworkReachabilityStatus status = AFNetworkReachabilityStatusForFlags(flags); - AFNetworkReachabilityStatusBlock block = (__bridge AFNetworkReachabilityStatusBlock)info; - if (block) { - block(status); - } - - - dispatch_async(dispatch_get_main_queue(), ^{ - NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; - NSDictionary *userInfo = @{ AFNetworkingReachabilityNotificationStatusItem: @(status) }; - [notificationCenter postNotificationName:AFNetworkingReachabilityDidChangeNotification object:nil userInfo:userInfo]; - }); - -} - -static const void * AFNetworkReachabilityRetainCallback(const void *info) { - return Block_copy(info); -} - -static void AFNetworkReachabilityReleaseCallback(const void *info) { - if (info) { - Block_release(info); - } -} - -@interface AFNetworkReachabilityManager () -@property (readwrite, nonatomic, assign) SCNetworkReachabilityRef networkReachability; -@property (readwrite, nonatomic, assign) AFNetworkReachabilityAssociation networkReachabilityAssociation; -@property (readwrite, nonatomic, assign) AFNetworkReachabilityStatus networkReachabilityStatus; -@property (readwrite, nonatomic, copy) AFNetworkReachabilityStatusBlock networkReachabilityStatusBlock; -@end - -@implementation AFNetworkReachabilityManager - -+ (instancetype)sharedManager { - static AFNetworkReachabilityManager *_sharedManager = nil; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - struct sockaddr_in address; - bzero(&address, sizeof(address)); - address.sin_len = sizeof(address); - address.sin_family = AF_INET; - - _sharedManager = [self managerForAddress:&address]; - }); - - return _sharedManager; -} - -+ (instancetype)managerForDomain:(NSString *)domain { - SCNetworkReachabilityRef reachability = SCNetworkReachabilityCreateWithName(kCFAllocatorDefault, [domain UTF8String]); - - AFNetworkReachabilityManager *manager = [[self alloc] initWithReachability:reachability]; - manager.networkReachabilityAssociation = AFNetworkReachabilityForName; - - return manager; -} - -+ (instancetype)managerForAddress:(const void *)address { - SCNetworkReachabilityRef reachability = SCNetworkReachabilityCreateWithAddress(kCFAllocatorDefault, (const struct sockaddr *)address); - - AFNetworkReachabilityManager *manager = [[self alloc] initWithReachability:reachability]; - manager.networkReachabilityAssociation = AFNetworkReachabilityForAddress; - - return manager; -} - -- (instancetype)initWithReachability:(SCNetworkReachabilityRef)reachability { - self = [super init]; - if (!self) { - return nil; - } - - self.networkReachability = reachability; - self.networkReachabilityStatus = AFNetworkReachabilityStatusUnknown; - - return self; -} - -- (void)dealloc { - [self stopMonitoring]; - - if (_networkReachability) { - CFRelease(_networkReachability); - _networkReachability = NULL; - } -} - -#pragma mark - - -- (BOOL)isReachable { - return [self isReachableViaWWAN] || [self isReachableViaWiFi]; -} - -- (BOOL)isReachableViaWWAN { - return self.networkReachabilityStatus == AFNetworkReachabilityStatusReachableViaWWAN; -} - -- (BOOL)isReachableViaWiFi { - return self.networkReachabilityStatus == AFNetworkReachabilityStatusReachableViaWiFi; -} - -#pragma mark - - -- (void)startMonitoring { - [self stopMonitoring]; - - if (!self.networkReachability) { - return; - } - - __weak __typeof(self)weakSelf = self; - AFNetworkReachabilityStatusBlock callback = ^(AFNetworkReachabilityStatus status) { - __strong __typeof(weakSelf)strongSelf = weakSelf; - - strongSelf.networkReachabilityStatus = status; - if (strongSelf.networkReachabilityStatusBlock) { - strongSelf.networkReachabilityStatusBlock(status); - } - - }; - - SCNetworkReachabilityContext context = {0, (__bridge void *)callback, AFNetworkReachabilityRetainCallback, AFNetworkReachabilityReleaseCallback, NULL}; - SCNetworkReachabilitySetCallback(self.networkReachability, AFNetworkReachabilityCallback, &context); - SCNetworkReachabilityScheduleWithRunLoop(self.networkReachability, CFRunLoopGetMain(), kCFRunLoopCommonModes); - - switch (self.networkReachabilityAssociation) { - case AFNetworkReachabilityForName: - break; - case AFNetworkReachabilityForAddress: - case AFNetworkReachabilityForAddressPair: - default: { - dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0),^{ - SCNetworkReachabilityFlags flags; - SCNetworkReachabilityGetFlags(self.networkReachability, &flags); - AFNetworkReachabilityStatus status = AFNetworkReachabilityStatusForFlags(flags); - dispatch_async(dispatch_get_main_queue(), ^{ - callback(status); - - NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; - [notificationCenter postNotificationName:AFNetworkingReachabilityDidChangeNotification object:nil userInfo:@{ AFNetworkingReachabilityNotificationStatusItem: @(status) }]; - - - }); - }); - } - break; - } -} - -- (void)stopMonitoring { - if (!self.networkReachability) { - return; - } - - SCNetworkReachabilityUnscheduleFromRunLoop(self.networkReachability, CFRunLoopGetMain(), kCFRunLoopCommonModes); -} - -#pragma mark - - -- (NSString *)localizedNetworkReachabilityStatusString { - return AFStringFromNetworkReachabilityStatus(self.networkReachabilityStatus); -} - -#pragma mark - - -- (void)setReachabilityStatusChangeBlock:(void (^)(AFNetworkReachabilityStatus status))block { - self.networkReachabilityStatusBlock = block; -} - -#pragma mark - NSKeyValueObserving - -+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key { - if ([key isEqualToString:@"reachable"] || [key isEqualToString:@"reachableViaWWAN"] || [key isEqualToString:@"reachableViaWiFi"]) { - return [NSSet setWithObject:@"networkReachabilityStatus"]; - } - - return [super keyPathsForValuesAffectingValueForKey:key]; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFNetworking.h deleted file mode 100644 index 68273da58e0..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFNetworking.h +++ /dev/null @@ -1,44 +0,0 @@ -// AFNetworking.h -// -// Copyright (c) 2013 AFNetworking (http://afnetworking.com/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import -#import - -#ifndef _AFNETWORKING_ - #define _AFNETWORKING_ - - #import "AFURLRequestSerialization.h" - #import "AFURLResponseSerialization.h" - #import "AFSecurityPolicy.h" - #import "AFNetworkReachabilityManager.h" - - #import "AFURLConnectionOperation.h" - #import "AFHTTPRequestOperation.h" - #import "AFHTTPRequestOperationManager.h" - -#if ( ( defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 1090) || \ - ( defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000 ) ) - #import "AFURLSessionManager.h" - #import "AFHTTPSessionManager.h" -#endif - -#endif /* _AFNETWORKING_ */ diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFSecurityPolicy.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFSecurityPolicy.h deleted file mode 100644 index c6cec831224..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFSecurityPolicy.h +++ /dev/null @@ -1,142 +0,0 @@ -// AFSecurityPolicy.h -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import -#import - -typedef NS_ENUM(NSUInteger, AFSSLPinningMode) { - AFSSLPinningModeNone, - AFSSLPinningModePublicKey, - AFSSLPinningModeCertificate, -}; - -/** - `AFSecurityPolicy` evaluates server trust against pinned X.509 certificates and public keys over secure connections. - - Adding pinned SSL certificates to your app helps prevent man-in-the-middle attacks and other vulnerabilities. Applications dealing with sensitive customer data or financial information are strongly encouraged to route all communication over an HTTPS connection with SSL pinning configured and enabled. - */ -@interface AFSecurityPolicy : NSObject - -/** - The criteria by which server trust should be evaluated against the pinned SSL certificates. Defaults to `AFSSLPinningModeNone`. - */ -@property (readonly, nonatomic, assign) AFSSLPinningMode SSLPinningMode; - -/** - Whether to evaluate an entire SSL certificate chain, or just the leaf certificate. Defaults to `YES`. - */ -@property (nonatomic, assign) BOOL validatesCertificateChain; - -/** - The certificates used to evaluate server trust according to the SSL pinning mode. By default, this property is set to any (`.cer`) certificates included in the app bundle. - */ -@property (nonatomic, strong) NSArray *pinnedCertificates; - -/** - Whether or not to trust servers with an invalid or expired SSL certificates. Defaults to `NO`. - */ -@property (nonatomic, assign) BOOL allowInvalidCertificates; - -/** - Whether or not to validate the domain name in the certificate's CN field. Defaults to `YES`. - */ -@property (nonatomic, assign) BOOL validatesDomainName; - -///----------------------------------------- -/// @name Getting Specific Security Policies -///----------------------------------------- - -/** - Returns the shared default security policy, which does not allow invalid certificates, validates domain name, and does not validate against pinned certificates or public keys. - - @return The default security policy. - */ -+ (instancetype)defaultPolicy; - -///--------------------- -/// @name Initialization -///--------------------- - -/** - Creates and returns a security policy with the specified pinning mode. - - @param pinningMode The SSL pinning mode. - - @return A new security policy. - */ -+ (instancetype)policyWithPinningMode:(AFSSLPinningMode)pinningMode; - -///------------------------------ -/// @name Evaluating Server Trust -///------------------------------ - -/** - Whether or not the specified server trust should be accepted, based on the security policy. - - This method should be used when responding to an authentication challenge from a server. - - @param serverTrust The X.509 certificate trust of the server. - - @return Whether or not to trust the server. - - @warning This method has been deprecated in favor of `-evaluateServerTrust:forDomain:`. - */ -- (BOOL)evaluateServerTrust:(SecTrustRef)serverTrust DEPRECATED_ATTRIBUTE; - -/** - Whether or not the specified server trust should be accepted, based on the security policy. - - This method should be used when responding to an authentication challenge from a server. - - @param serverTrust The X.509 certificate trust of the server. - @param domain The domain of serverTrust. If `nil`, the domain will not be validated. - - @return Whether or not to trust the server. - */ -- (BOOL)evaluateServerTrust:(SecTrustRef)serverTrust - forDomain:(NSString *)domain; - -@end - -///---------------- -/// @name Constants -///---------------- - -/** - ## SSL Pinning Modes - - The following constants are provided by `AFSSLPinningMode` as possible SSL pinning modes. - - enum { - AFSSLPinningModeNone, - AFSSLPinningModePublicKey, - AFSSLPinningModeCertificate, - } - - `AFSSLPinningModeNone` - Do not used pinned certificates to validate servers. - - `AFSSLPinningModePublicKey` - Validate host certificates against public keys of pinned certificates. - - `AFSSLPinningModeCertificate` - Validate host certificates against pinned certificates. -*/ diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFSecurityPolicy.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFSecurityPolicy.m deleted file mode 100644 index 2bbff624654..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFSecurityPolicy.m +++ /dev/null @@ -1,308 +0,0 @@ -// AFSecurityPolicy.m -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import "AFSecurityPolicy.h" - -#import - -#if !defined(__IPHONE_OS_VERSION_MIN_REQUIRED) -static NSData * AFSecKeyGetData(SecKeyRef key) { - CFDataRef data = NULL; - - __Require_noErr_Quiet(SecItemExport(key, kSecFormatUnknown, kSecItemPemArmour, NULL, &data), _out); - - return (__bridge_transfer NSData *)data; - -_out: - if (data) { - CFRelease(data); - } - - return nil; -} -#endif - -static BOOL AFSecKeyIsEqualToKey(SecKeyRef key1, SecKeyRef key2) { -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) - return [(__bridge id)key1 isEqual:(__bridge id)key2]; -#else - return [AFSecKeyGetData(key1) isEqual:AFSecKeyGetData(key2)]; -#endif -} - -static id AFPublicKeyForCertificate(NSData *certificate) { - id allowedPublicKey = nil; - SecCertificateRef allowedCertificate; - SecCertificateRef allowedCertificates[1]; - CFArrayRef tempCertificates = nil; - SecPolicyRef policy = nil; - SecTrustRef allowedTrust = nil; - SecTrustResultType result; - - allowedCertificate = SecCertificateCreateWithData(NULL, (__bridge CFDataRef)certificate); - __Require_Quiet(allowedCertificate != NULL, _out); - - allowedCertificates[0] = allowedCertificate; - tempCertificates = CFArrayCreate(NULL, (const void **)allowedCertificates, 1, NULL); - - policy = SecPolicyCreateBasicX509(); - __Require_noErr_Quiet(SecTrustCreateWithCertificates(tempCertificates, policy, &allowedTrust), _out); - __Require_noErr_Quiet(SecTrustEvaluate(allowedTrust, &result), _out); - - allowedPublicKey = (__bridge_transfer id)SecTrustCopyPublicKey(allowedTrust); - -_out: - if (allowedTrust) { - CFRelease(allowedTrust); - } - - if (policy) { - CFRelease(policy); - } - - if (tempCertificates) { - CFRelease(tempCertificates); - } - - if (allowedCertificate) { - CFRelease(allowedCertificate); - } - - return allowedPublicKey; -} - -static BOOL AFServerTrustIsValid(SecTrustRef serverTrust) { - BOOL isValid = NO; - SecTrustResultType result; - __Require_noErr_Quiet(SecTrustEvaluate(serverTrust, &result), _out); - - isValid = (result == kSecTrustResultUnspecified || result == kSecTrustResultProceed); - -_out: - return isValid; -} - -static NSArray * AFCertificateTrustChainForServerTrust(SecTrustRef serverTrust) { - CFIndex certificateCount = SecTrustGetCertificateCount(serverTrust); - NSMutableArray *trustChain = [NSMutableArray arrayWithCapacity:(NSUInteger)certificateCount]; - - for (CFIndex i = 0; i < certificateCount; i++) { - SecCertificateRef certificate = SecTrustGetCertificateAtIndex(serverTrust, i); - [trustChain addObject:(__bridge_transfer NSData *)SecCertificateCopyData(certificate)]; - } - - return [NSArray arrayWithArray:trustChain]; -} - -static NSArray * AFPublicKeyTrustChainForServerTrust(SecTrustRef serverTrust) { - SecPolicyRef policy = SecPolicyCreateBasicX509(); - CFIndex certificateCount = SecTrustGetCertificateCount(serverTrust); - NSMutableArray *trustChain = [NSMutableArray arrayWithCapacity:(NSUInteger)certificateCount]; - for (CFIndex i = 0; i < certificateCount; i++) { - SecCertificateRef certificate = SecTrustGetCertificateAtIndex(serverTrust, i); - - SecCertificateRef someCertificates[] = {certificate}; - CFArrayRef certificates = CFArrayCreate(NULL, (const void **)someCertificates, 1, NULL); - - SecTrustRef trust; - __Require_noErr_Quiet(SecTrustCreateWithCertificates(certificates, policy, &trust), _out); - - SecTrustResultType result; - __Require_noErr_Quiet(SecTrustEvaluate(trust, &result), _out); - - [trustChain addObject:(__bridge_transfer id)SecTrustCopyPublicKey(trust)]; - - _out: - if (trust) { - CFRelease(trust); - } - - if (certificates) { - CFRelease(certificates); - } - - continue; - } - CFRelease(policy); - - return [NSArray arrayWithArray:trustChain]; -} - -#pragma mark - - -@interface AFSecurityPolicy() -@property (readwrite, nonatomic, assign) AFSSLPinningMode SSLPinningMode; -@property (readwrite, nonatomic, strong) NSArray *pinnedPublicKeys; -@end - -@implementation AFSecurityPolicy - -+ (NSArray *)defaultPinnedCertificates { - static NSArray *_defaultPinnedCertificates = nil; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - NSBundle *bundle = [NSBundle bundleForClass:[self class]]; - NSArray *paths = [bundle pathsForResourcesOfType:@"cer" inDirectory:@"."]; - - NSMutableArray *certificates = [NSMutableArray arrayWithCapacity:[paths count]]; - for (NSString *path in paths) { - NSData *certificateData = [NSData dataWithContentsOfFile:path]; - [certificates addObject:certificateData]; - } - - _defaultPinnedCertificates = [[NSArray alloc] initWithArray:certificates]; - }); - - return _defaultPinnedCertificates; -} - -+ (instancetype)defaultPolicy { - AFSecurityPolicy *securityPolicy = [[self alloc] init]; - securityPolicy.SSLPinningMode = AFSSLPinningModeNone; - - return securityPolicy; -} - -+ (instancetype)policyWithPinningMode:(AFSSLPinningMode)pinningMode { - AFSecurityPolicy *securityPolicy = [[self alloc] init]; - securityPolicy.SSLPinningMode = pinningMode; - - [securityPolicy setPinnedCertificates:[self defaultPinnedCertificates]]; - - return securityPolicy; -} - -- (id)init { - self = [super init]; - if (!self) { - return nil; - } - - self.validatesCertificateChain = YES; - self.validatesDomainName = YES; - - return self; -} - -- (void)setPinnedCertificates:(NSArray *)pinnedCertificates { - _pinnedCertificates = pinnedCertificates; - - if (self.pinnedCertificates) { - NSMutableArray *mutablePinnedPublicKeys = [NSMutableArray arrayWithCapacity:[self.pinnedCertificates count]]; - for (NSData *certificate in self.pinnedCertificates) { - id publicKey = AFPublicKeyForCertificate(certificate); - if (!publicKey) { - continue; - } - [mutablePinnedPublicKeys addObject:publicKey]; - } - self.pinnedPublicKeys = [NSArray arrayWithArray:mutablePinnedPublicKeys]; - } else { - self.pinnedPublicKeys = nil; - } -} - -#pragma mark - - -- (BOOL)evaluateServerTrust:(SecTrustRef)serverTrust { - return [self evaluateServerTrust:serverTrust forDomain:nil]; -} - -- (BOOL)evaluateServerTrust:(SecTrustRef)serverTrust - forDomain:(NSString *)domain -{ - NSMutableArray *policies = [NSMutableArray array]; - if (self.validatesDomainName) { - [policies addObject:(__bridge_transfer id)SecPolicyCreateSSL(true, (__bridge CFStringRef)domain)]; - } else { - [policies addObject:(__bridge_transfer id)SecPolicyCreateBasicX509()]; - } - - SecTrustSetPolicies(serverTrust, (__bridge CFArrayRef)policies); - - if (self.SSLPinningMode == AFSSLPinningModeNone) { - if (self.allowInvalidCertificates || AFServerTrustIsValid(serverTrust)){ - return YES; - } else { - return NO; - } - } else if (!AFServerTrustIsValid(serverTrust) && !self.allowInvalidCertificates) { - return NO; - } - - NSArray *serverCertificates = AFCertificateTrustChainForServerTrust(serverTrust); - switch (self.SSLPinningMode) { - case AFSSLPinningModeNone: - default: - return NO; - case AFSSLPinningModeCertificate: { - NSMutableArray *pinnedCertificates = [NSMutableArray array]; - for (NSData *certificateData in self.pinnedCertificates) { - [pinnedCertificates addObject:(__bridge_transfer id)SecCertificateCreateWithData(NULL, (__bridge CFDataRef)certificateData)]; - } - SecTrustSetAnchorCertificates(serverTrust, (__bridge CFArrayRef)pinnedCertificates); - - if (!AFServerTrustIsValid(serverTrust)) { - return NO; - } - - if (!self.validatesCertificateChain) { - return YES; - } - - NSUInteger trustedCertificateCount = 0; - for (NSData *trustChainCertificate in serverCertificates) { - if ([self.pinnedCertificates containsObject:trustChainCertificate]) { - trustedCertificateCount++; - } - } - - return trustedCertificateCount == [serverCertificates count]; - } - case AFSSLPinningModePublicKey: { - NSUInteger trustedPublicKeyCount = 0; - NSArray *publicKeys = AFPublicKeyTrustChainForServerTrust(serverTrust); - if (!self.validatesCertificateChain && [publicKeys count] > 0) { - publicKeys = @[[publicKeys firstObject]]; - } - - for (id trustChainPublicKey in publicKeys) { - for (id pinnedPublicKey in self.pinnedPublicKeys) { - if (AFSecKeyIsEqualToKey((__bridge SecKeyRef)trustChainPublicKey, (__bridge SecKeyRef)pinnedPublicKey)) { - trustedPublicKeyCount += 1; - } - } - } - - return trustedPublicKeyCount > 0 && ((self.validatesCertificateChain && trustedPublicKeyCount == [serverCertificates count]) || (!self.validatesCertificateChain && trustedPublicKeyCount >= 1)); - } - } - - return NO; -} - -#pragma mark - NSKeyValueObserving - -+ (NSSet *)keyPathsForValuesAffectingPinnedPublicKeys { - return [NSSet setWithObject:@"pinnedCertificates"]; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLConnectionOperation.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLConnectionOperation.h deleted file mode 100644 index 0248e6772b5..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLConnectionOperation.h +++ /dev/null @@ -1,343 +0,0 @@ -// AFURLConnectionOperation.h -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import - -#import -#import "AFURLRequestSerialization.h" -#import "AFURLResponseSerialization.h" -#import "AFSecurityPolicy.h" - -#ifndef NS_DESIGNATED_INITIALIZER -#if __has_attribute(objc_designated_initializer) -#define NS_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) -#else -#define NS_DESIGNATED_INITIALIZER -#endif -#endif - -/** - `AFURLConnectionOperation` is a subclass of `NSOperation` that implements `NSURLConnection` delegate methods. - - ## Subclassing Notes - - This is the base class of all network request operations. You may wish to create your own subclass in order to implement additional `NSURLConnection` delegate methods (see "`NSURLConnection` Delegate Methods" below), or to provide additional properties and/or class constructors. - - If you are creating a subclass that communicates over the HTTP or HTTPS protocols, you may want to consider subclassing `AFHTTPRequestOperation` instead, as it supports specifying acceptable content types or status codes. - - ## NSURLConnection Delegate Methods - - `AFURLConnectionOperation` implements the following `NSURLConnection` delegate methods: - - - `connection:didReceiveResponse:` - - `connection:didReceiveData:` - - `connectionDidFinishLoading:` - - `connection:didFailWithError:` - - `connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:` - - `connection:willCacheResponse:` - - `connectionShouldUseCredentialStorage:` - - `connection:needNewBodyStream:` - - `connection:willSendRequestForAuthenticationChallenge:` - - If any of these methods are overridden in a subclass, they _must_ call the `super` implementation first. - - ## Callbacks and Completion Blocks - - The built-in `completionBlock` provided by `NSOperation` allows for custom behavior to be executed after the request finishes. It is a common pattern for class constructors in subclasses to take callback block parameters, and execute them conditionally in the body of its `completionBlock`. Make sure to handle cancelled operations appropriately when setting a `completionBlock` (i.e. returning early before parsing response data). See the implementation of any of the `AFHTTPRequestOperation` subclasses for an example of this. - - Subclasses are strongly discouraged from overriding `setCompletionBlock:`, as `AFURLConnectionOperation`'s implementation includes a workaround to mitigate retain cycles, and what Apple rather ominously refers to as ["The Deallocation Problem"](http://developer.apple.com/library/ios/#technotes/tn2109/). - - ## SSL Pinning - - Relying on the CA trust model to validate SSL certificates exposes your app to security vulnerabilities, such as man-in-the-middle attacks. For applications that connect to known servers, SSL certificate pinning provides an increased level of security, by checking server certificate validity against those specified in the app bundle. - - SSL with certificate pinning is strongly recommended for any application that transmits sensitive information to an external webservice. - - Connections will be validated on all matching certificates with a `.cer` extension in the bundle root. - - ## App Extensions - - When using AFNetworking in an App Extension, `#define AF_APP_EXTENSIONS` to avoid using unavailable APIs. - - ## NSCoding & NSCopying Conformance - - `AFURLConnectionOperation` conforms to the `NSCoding` and `NSCopying` protocols, allowing operations to be archived to disk, and copied in memory, respectively. However, because of the intrinsic limitations of capturing the exact state of an operation at a particular moment, there are some important caveats to keep in mind: - - ### NSCoding Caveats - - - Encoded operations do not include any block or stream properties. Be sure to set `completionBlock`, `outputStream`, and any callback blocks as necessary when using `-initWithCoder:` or `NSKeyedUnarchiver`. - - Operations are paused on `encodeWithCoder:`. If the operation was encoded while paused or still executing, its archived state will return `YES` for `isReady`. Otherwise, the state of an operation when encoding will remain unchanged. - - ### NSCopying Caveats - - - `-copy` and `-copyWithZone:` return a new operation with the `NSURLRequest` of the original. So rather than an exact copy of the operation at that particular instant, the copying mechanism returns a completely new instance, which can be useful for retrying operations. - - A copy of an operation will not include the `outputStream` of the original. - - Operation copies do not include `completionBlock`, as it often strongly captures a reference to `self`, which would otherwise have the unintuitive side-effect of pointing to the _original_ operation when copied. - */ - -@interface AFURLConnectionOperation : NSOperation - -///------------------------------- -/// @name Accessing Run Loop Modes -///------------------------------- - -/** - The run loop modes in which the operation will run on the network thread. By default, this is a single-member set containing `NSRunLoopCommonModes`. - */ -@property (nonatomic, strong) NSSet *runLoopModes; - -///----------------------------------------- -/// @name Getting URL Connection Information -///----------------------------------------- - -/** - The request used by the operation's connection. - */ -@property (readonly, nonatomic, strong) NSURLRequest *request; - -/** - The last response received by the operation's connection. - */ -@property (readonly, nonatomic, strong) NSURLResponse *response; - -/** - The error, if any, that occurred in the lifecycle of the request. - */ -@property (readonly, nonatomic, strong) NSError *error; - -///---------------------------- -/// @name Getting Response Data -///---------------------------- - -/** - The data received during the request. - */ -@property (readonly, nonatomic, strong) NSData *responseData; - -/** - The string representation of the response data. - */ -@property (readonly, nonatomic, copy) NSString *responseString; - -/** - The string encoding of the response. - - If the response does not specify a valid string encoding, `responseStringEncoding` will return `NSUTF8StringEncoding`. - */ -@property (readonly, nonatomic, assign) NSStringEncoding responseStringEncoding; - -///------------------------------- -/// @name Managing URL Credentials -///------------------------------- - -/** - Whether the URL connection should consult the credential storage for authenticating the connection. `YES` by default. - - This is the value that is returned in the `NSURLConnectionDelegate` method `-connectionShouldUseCredentialStorage:`. - */ -@property (nonatomic, assign) BOOL shouldUseCredentialStorage; - -/** - The credential used for authentication challenges in `-connection:didReceiveAuthenticationChallenge:`. - - This will be overridden by any shared credentials that exist for the username or password of the request URL, if present. - */ -@property (nonatomic, strong) NSURLCredential *credential; - -///------------------------------- -/// @name Managing Security Policy -///------------------------------- - -/** - The security policy used to evaluate server trust for secure connections. - */ -@property (nonatomic, strong) AFSecurityPolicy *securityPolicy; - -///------------------------ -/// @name Accessing Streams -///------------------------ - -/** - The input stream used to read data to be sent during the request. - - This property acts as a proxy to the `HTTPBodyStream` property of `request`. - */ -@property (nonatomic, strong) NSInputStream *inputStream; - -/** - The output stream that is used to write data received until the request is finished. - - By default, data is accumulated into a buffer that is stored into `responseData` upon completion of the request, with the intermediary `outputStream` property set to `nil`. When `outputStream` is set, the data will not be accumulated into an internal buffer, and as a result, the `responseData` property of the completed request will be `nil`. The output stream will be scheduled in the network thread runloop upon being set. - */ -@property (nonatomic, strong) NSOutputStream *outputStream; - -///--------------------------------- -/// @name Managing Callback Queues -///--------------------------------- - -/** - The dispatch queue for `completionBlock`. If `NULL` (default), the main queue is used. - */ -#if OS_OBJECT_HAVE_OBJC_SUPPORT -@property (nonatomic, strong) dispatch_queue_t completionQueue; -#else -@property (nonatomic, assign) dispatch_queue_t completionQueue; -#endif - -/** - The dispatch group for `completionBlock`. If `NULL` (default), a private dispatch group is used. - */ -#if OS_OBJECT_HAVE_OBJC_SUPPORT -@property (nonatomic, strong) dispatch_group_t completionGroup; -#else -@property (nonatomic, assign) dispatch_group_t completionGroup; -#endif - -///--------------------------------------------- -/// @name Managing Request Operation Information -///--------------------------------------------- - -/** - The user info dictionary for the receiver. - */ -@property (nonatomic, strong) NSDictionary *userInfo; - -///------------------------------------------------------ -/// @name Initializing an AFURLConnectionOperation Object -///------------------------------------------------------ - -/** - Initializes and returns a newly allocated operation object with a url connection configured with the specified url request. - - This is the designated initializer. - - @param urlRequest The request object to be used by the operation connection. - */ -- (instancetype)initWithRequest:(NSURLRequest *)urlRequest NS_DESIGNATED_INITIALIZER; - -///---------------------------------- -/// @name Pausing / Resuming Requests -///---------------------------------- - -/** - Pauses the execution of the request operation. - - A paused operation returns `NO` for `-isReady`, `-isExecuting`, and `-isFinished`. As such, it will remain in an `NSOperationQueue` until it is either cancelled or resumed. Pausing a finished, cancelled, or paused operation has no effect. - */ -- (void)pause; - -/** - Whether the request operation is currently paused. - - @return `YES` if the operation is currently paused, otherwise `NO`. - */ -- (BOOL)isPaused; - -/** - Resumes the execution of the paused request operation. - - Pause/Resume behavior varies depending on the underlying implementation for the operation class. In its base implementation, resuming a paused requests restarts the original request. However, since HTTP defines a specification for how to request a specific content range, `AFHTTPRequestOperation` will resume downloading the request from where it left off, instead of restarting the original request. - */ -- (void)resume; - -///---------------------------------------------- -/// @name Configuring Backgrounding Task Behavior -///---------------------------------------------- - -/** - Specifies that the operation should continue execution after the app has entered the background, and the expiration handler for that background task. - - @param handler A handler to be called shortly before the application’s remaining background time reaches 0. The handler is wrapped in a block that cancels the operation, and cleans up and marks the end of execution, unlike the `handler` parameter in `UIApplication -beginBackgroundTaskWithExpirationHandler:`, which expects this to be done in the handler itself. The handler is called synchronously on the main thread, thus blocking the application’s suspension momentarily while the application is notified. - */ -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && !defined(AF_APP_EXTENSIONS) -- (void)setShouldExecuteAsBackgroundTaskWithExpirationHandler:(void (^)(void))handler; -#endif - -///--------------------------------- -/// @name Setting Progress Callbacks -///--------------------------------- - -/** - Sets a callback to be called when an undetermined number of bytes have been uploaded to the server. - - @param block A block object to be called when an undetermined number of bytes have been uploaded to the server. This block has no return value and takes three arguments: the number of bytes written since the last time the upload progress block was called, the total bytes written, and the total bytes expected to be written during the request, as initially determined by the length of the HTTP body. This block may be called multiple times, and will execute on the main thread. - */ -- (void)setUploadProgressBlock:(void (^)(NSUInteger bytesWritten, long long totalBytesWritten, long long totalBytesExpectedToWrite))block; - -/** - Sets a callback to be called when an undetermined number of bytes have been downloaded from the server. - - @param block A block object to be called when an undetermined number of bytes have been downloaded from the server. This block has no return value and takes three arguments: the number of bytes read since the last time the download progress block was called, the total bytes read, and the total bytes expected to be read during the request, as initially determined by the expected content size of the `NSHTTPURLResponse` object. This block may be called multiple times, and will execute on the main thread. - */ -- (void)setDownloadProgressBlock:(void (^)(NSUInteger bytesRead, long long totalBytesRead, long long totalBytesExpectedToRead))block; - -///------------------------------------------------- -/// @name Setting NSURLConnection Delegate Callbacks -///------------------------------------------------- - -/** - Sets a block to be executed when the connection will authenticate a challenge in order to download its request, as handled by the `NSURLConnectionDelegate` method `connection:willSendRequestForAuthenticationChallenge:`. - - @param block A block object to be executed when the connection will authenticate a challenge in order to download its request. The block has no return type and takes two arguments: the URL connection object, and the challenge that must be authenticated. This block must invoke one of the challenge-responder methods (NSURLAuthenticationChallengeSender protocol). - - If `allowsInvalidSSLCertificate` is set to YES, `connection:willSendRequestForAuthenticationChallenge:` will attempt to have the challenge sender use credentials with invalid SSL certificates. - */ -- (void)setWillSendRequestForAuthenticationChallengeBlock:(void (^)(NSURLConnection *connection, NSURLAuthenticationChallenge *challenge))block; - -/** - Sets a block to be executed when the server redirects the request from one URL to another URL, or when the request URL changed by the `NSURLProtocol` subclass handling the request in order to standardize its format, as handled by the `NSURLConnectionDataDelegate` method `connection:willSendRequest:redirectResponse:`. - - @param block A block object to be executed when the request URL was changed. The block returns an `NSURLRequest` object, the URL request to redirect, and takes three arguments: the URL connection object, the the proposed redirected request, and the URL response that caused the redirect. - */ -- (void)setRedirectResponseBlock:(NSURLRequest * (^)(NSURLConnection *connection, NSURLRequest *request, NSURLResponse *redirectResponse))block; - - -/** - Sets a block to be executed to modify the response a connection will cache, if any, as handled by the `NSURLConnectionDelegate` method `connection:willCacheResponse:`. - - @param block A block object to be executed to determine what response a connection will cache, if any. The block returns an `NSCachedURLResponse` object, the cached response to store in memory or `nil` to prevent the response from being cached, and takes two arguments: the URL connection object, and the cached response provided for the request. - */ -- (void)setCacheResponseBlock:(NSCachedURLResponse * (^)(NSURLConnection *connection, NSCachedURLResponse *cachedResponse))block; - -/// - -/** - - */ -+ (NSArray *)batchOfRequestOperations:(NSArray *)operations - progressBlock:(void (^)(NSUInteger numberOfFinishedOperations, NSUInteger totalNumberOfOperations))progressBlock - completionBlock:(void (^)(NSArray *operations))completionBlock; - -@end - -///-------------------- -/// @name Notifications -///-------------------- - -/** - Posted when an operation begins executing. - */ -extern NSString * const AFNetworkingOperationDidStartNotification; - -/** - Posted when an operation finishes. - */ -extern NSString * const AFNetworkingOperationDidFinishNotification; diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLConnectionOperation.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLConnectionOperation.m deleted file mode 100644 index 8d320924119..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLConnectionOperation.m +++ /dev/null @@ -1,788 +0,0 @@ -// AFURLConnectionOperation.m -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import "AFURLConnectionOperation.h" - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) -#import -#endif - -#if !__has_feature(objc_arc) -#error AFNetworking must be built with ARC. -// You can turn on ARC for only AFNetworking files by adding -fobjc-arc to the build phase for each of its files. -#endif - -typedef NS_ENUM(NSInteger, AFOperationState) { - AFOperationPausedState = -1, - AFOperationReadyState = 1, - AFOperationExecutingState = 2, - AFOperationFinishedState = 3, -}; - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && !defined(AF_APP_EXTENSIONS) -typedef UIBackgroundTaskIdentifier AFBackgroundTaskIdentifier; -#else -typedef id AFBackgroundTaskIdentifier; -#endif - -static dispatch_group_t url_request_operation_completion_group() { - static dispatch_group_t af_url_request_operation_completion_group; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - af_url_request_operation_completion_group = dispatch_group_create(); - }); - - return af_url_request_operation_completion_group; -} - -static dispatch_queue_t url_request_operation_completion_queue() { - static dispatch_queue_t af_url_request_operation_completion_queue; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - af_url_request_operation_completion_queue = dispatch_queue_create("com.alamofire.networking.operation.queue", DISPATCH_QUEUE_CONCURRENT ); - }); - - return af_url_request_operation_completion_queue; -} - -static NSString * const kAFNetworkingLockName = @"com.alamofire.networking.operation.lock"; - -NSString * const AFNetworkingOperationDidStartNotification = @"com.alamofire.networking.operation.start"; -NSString * const AFNetworkingOperationDidFinishNotification = @"com.alamofire.networking.operation.finish"; - -typedef void (^AFURLConnectionOperationProgressBlock)(NSUInteger bytes, long long totalBytes, long long totalBytesExpected); -typedef void (^AFURLConnectionOperationAuthenticationChallengeBlock)(NSURLConnection *connection, NSURLAuthenticationChallenge *challenge); -typedef NSCachedURLResponse * (^AFURLConnectionOperationCacheResponseBlock)(NSURLConnection *connection, NSCachedURLResponse *cachedResponse); -typedef NSURLRequest * (^AFURLConnectionOperationRedirectResponseBlock)(NSURLConnection *connection, NSURLRequest *request, NSURLResponse *redirectResponse); - -static inline NSString * AFKeyPathFromOperationState(AFOperationState state) { - switch (state) { - case AFOperationReadyState: - return @"isReady"; - case AFOperationExecutingState: - return @"isExecuting"; - case AFOperationFinishedState: - return @"isFinished"; - case AFOperationPausedState: - return @"isPaused"; - default: { -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunreachable-code" - return @"state"; -#pragma clang diagnostic pop - } - } -} - -static inline BOOL AFStateTransitionIsValid(AFOperationState fromState, AFOperationState toState, BOOL isCancelled) { - switch (fromState) { - case AFOperationReadyState: - switch (toState) { - case AFOperationPausedState: - case AFOperationExecutingState: - return YES; - case AFOperationFinishedState: - return isCancelled; - default: - return NO; - } - case AFOperationExecutingState: - switch (toState) { - case AFOperationPausedState: - case AFOperationFinishedState: - return YES; - default: - return NO; - } - case AFOperationFinishedState: - return NO; - case AFOperationPausedState: - return toState == AFOperationReadyState; - default: { -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunreachable-code" - switch (toState) { - case AFOperationPausedState: - case AFOperationReadyState: - case AFOperationExecutingState: - case AFOperationFinishedState: - return YES; - default: - return NO; - } - } -#pragma clang diagnostic pop - } -} - -@interface AFURLConnectionOperation () -@property (readwrite, nonatomic, assign) AFOperationState state; -@property (readwrite, nonatomic, strong) NSRecursiveLock *lock; -@property (readwrite, nonatomic, strong) NSURLConnection *connection; -@property (readwrite, nonatomic, strong) NSURLRequest *request; -@property (readwrite, nonatomic, strong) NSURLResponse *response; -@property (readwrite, nonatomic, strong) NSError *error; -@property (readwrite, nonatomic, strong) NSData *responseData; -@property (readwrite, nonatomic, copy) NSString *responseString; -@property (readwrite, nonatomic, assign) NSStringEncoding responseStringEncoding; -@property (readwrite, nonatomic, assign) long long totalBytesRead; -@property (readwrite, nonatomic, assign) AFBackgroundTaskIdentifier backgroundTaskIdentifier; -@property (readwrite, nonatomic, copy) AFURLConnectionOperationProgressBlock uploadProgress; -@property (readwrite, nonatomic, copy) AFURLConnectionOperationProgressBlock downloadProgress; -@property (readwrite, nonatomic, copy) AFURLConnectionOperationAuthenticationChallengeBlock authenticationChallenge; -@property (readwrite, nonatomic, copy) AFURLConnectionOperationCacheResponseBlock cacheResponse; -@property (readwrite, nonatomic, copy) AFURLConnectionOperationRedirectResponseBlock redirectResponse; - -- (void)operationDidStart; -- (void)finish; -- (void)cancelConnection; -@end - -@implementation AFURLConnectionOperation -@synthesize outputStream = _outputStream; - -+ (void)networkRequestThreadEntryPoint:(id)__unused object { - @autoreleasepool { - [[NSThread currentThread] setName:@"AFNetworking"]; - - NSRunLoop *runLoop = [NSRunLoop currentRunLoop]; - [runLoop addPort:[NSMachPort port] forMode:NSDefaultRunLoopMode]; - [runLoop run]; - } -} - -+ (NSThread *)networkRequestThread { - static NSThread *_networkRequestThread = nil; - static dispatch_once_t oncePredicate; - dispatch_once(&oncePredicate, ^{ - _networkRequestThread = [[NSThread alloc] initWithTarget:self selector:@selector(networkRequestThreadEntryPoint:) object:nil]; - [_networkRequestThread start]; - }); - - return _networkRequestThread; -} - -- (instancetype)initWithRequest:(NSURLRequest *)urlRequest { - NSParameterAssert(urlRequest); - - self = [super init]; - if (!self) { - return nil; - } - - _state = AFOperationReadyState; - - self.lock = [[NSRecursiveLock alloc] init]; - self.lock.name = kAFNetworkingLockName; - - self.runLoopModes = [NSSet setWithObject:NSRunLoopCommonModes]; - - self.request = urlRequest; - - self.shouldUseCredentialStorage = YES; - - self.securityPolicy = [AFSecurityPolicy defaultPolicy]; - - return self; -} - -- (void)dealloc { - if (_outputStream) { - [_outputStream close]; - _outputStream = nil; - } - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && !defined(AF_APP_EXTENSIONS) - if (_backgroundTaskIdentifier) { - [[UIApplication sharedApplication] endBackgroundTask:_backgroundTaskIdentifier]; - _backgroundTaskIdentifier = UIBackgroundTaskInvalid; - } -#endif -} - -#pragma mark - - -- (void)setResponseData:(NSData *)responseData { - [self.lock lock]; - if (!responseData) { - _responseData = nil; - } else { - _responseData = [NSData dataWithBytes:responseData.bytes length:responseData.length]; - } - [self.lock unlock]; -} - -- (NSString *)responseString { - [self.lock lock]; - if (!_responseString && self.response && self.responseData) { - self.responseString = [[NSString alloc] initWithData:self.responseData encoding:self.responseStringEncoding]; - } - [self.lock unlock]; - - return _responseString; -} - -- (NSStringEncoding)responseStringEncoding { - [self.lock lock]; - if (!_responseStringEncoding && self.response) { - NSStringEncoding stringEncoding = NSUTF8StringEncoding; - if (self.response.textEncodingName) { - CFStringEncoding IANAEncoding = CFStringConvertIANACharSetNameToEncoding((__bridge CFStringRef)self.response.textEncodingName); - if (IANAEncoding != kCFStringEncodingInvalidId) { - stringEncoding = CFStringConvertEncodingToNSStringEncoding(IANAEncoding); - } - } - - self.responseStringEncoding = stringEncoding; - } - [self.lock unlock]; - - return _responseStringEncoding; -} - -- (NSInputStream *)inputStream { - return self.request.HTTPBodyStream; -} - -- (void)setInputStream:(NSInputStream *)inputStream { - NSMutableURLRequest *mutableRequest = [self.request mutableCopy]; - mutableRequest.HTTPBodyStream = inputStream; - self.request = mutableRequest; -} - -- (NSOutputStream *)outputStream { - if (!_outputStream) { - self.outputStream = [NSOutputStream outputStreamToMemory]; - } - - return _outputStream; -} - -- (void)setOutputStream:(NSOutputStream *)outputStream { - [self.lock lock]; - if (outputStream != _outputStream) { - if (_outputStream) { - [_outputStream close]; - } - - _outputStream = outputStream; - } - [self.lock unlock]; -} - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && !defined(AF_APP_EXTENSIONS) -- (void)setShouldExecuteAsBackgroundTaskWithExpirationHandler:(void (^)(void))handler { - [self.lock lock]; - if (!self.backgroundTaskIdentifier) { - UIApplication *application = [UIApplication sharedApplication]; - __weak __typeof(self)weakSelf = self; - self.backgroundTaskIdentifier = [application beginBackgroundTaskWithExpirationHandler:^{ - __strong __typeof(weakSelf)strongSelf = weakSelf; - - if (handler) { - handler(); - } - - if (strongSelf) { - [strongSelf cancel]; - - [application endBackgroundTask:strongSelf.backgroundTaskIdentifier]; - strongSelf.backgroundTaskIdentifier = UIBackgroundTaskInvalid; - } - }]; - } - [self.lock unlock]; -} -#endif - -#pragma mark - - -- (void)setState:(AFOperationState)state { - if (!AFStateTransitionIsValid(self.state, state, [self isCancelled])) { - return; - } - - [self.lock lock]; - NSString *oldStateKey = AFKeyPathFromOperationState(self.state); - NSString *newStateKey = AFKeyPathFromOperationState(state); - - [self willChangeValueForKey:newStateKey]; - [self willChangeValueForKey:oldStateKey]; - _state = state; - [self didChangeValueForKey:oldStateKey]; - [self didChangeValueForKey:newStateKey]; - [self.lock unlock]; -} - -- (void)pause { - if ([self isPaused] || [self isFinished] || [self isCancelled]) { - return; - } - - [self.lock lock]; - if ([self isExecuting]) { - [self performSelector:@selector(operationDidPause) onThread:[[self class] networkRequestThread] withObject:nil waitUntilDone:NO modes:[self.runLoopModes allObjects]]; - - dispatch_async(dispatch_get_main_queue(), ^{ - NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; - [notificationCenter postNotificationName:AFNetworkingOperationDidFinishNotification object:self]; - }); - } - - self.state = AFOperationPausedState; - [self.lock unlock]; -} - -- (void)operationDidPause { - [self.lock lock]; - [self.connection cancel]; - [self.lock unlock]; -} - -- (BOOL)isPaused { - return self.state == AFOperationPausedState; -} - -- (void)resume { - if (![self isPaused]) { - return; - } - - [self.lock lock]; - self.state = AFOperationReadyState; - - [self start]; - [self.lock unlock]; -} - -#pragma mark - - -- (void)setUploadProgressBlock:(void (^)(NSUInteger bytesWritten, long long totalBytesWritten, long long totalBytesExpectedToWrite))block { - self.uploadProgress = block; -} - -- (void)setDownloadProgressBlock:(void (^)(NSUInteger bytesRead, long long totalBytesRead, long long totalBytesExpectedToRead))block { - self.downloadProgress = block; -} - -- (void)setWillSendRequestForAuthenticationChallengeBlock:(void (^)(NSURLConnection *connection, NSURLAuthenticationChallenge *challenge))block { - self.authenticationChallenge = block; -} - -- (void)setCacheResponseBlock:(NSCachedURLResponse * (^)(NSURLConnection *connection, NSCachedURLResponse *cachedResponse))block { - self.cacheResponse = block; -} - -- (void)setRedirectResponseBlock:(NSURLRequest * (^)(NSURLConnection *connection, NSURLRequest *request, NSURLResponse *redirectResponse))block { - self.redirectResponse = block; -} - -#pragma mark - NSOperation - -- (void)setCompletionBlock:(void (^)(void))block { - [self.lock lock]; - if (!block) { - [super setCompletionBlock:nil]; - } else { - __weak __typeof(self)weakSelf = self; - [super setCompletionBlock:^ { - __strong __typeof(weakSelf)strongSelf = weakSelf; - -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgnu" - dispatch_group_t group = strongSelf.completionGroup ?: url_request_operation_completion_group(); - dispatch_queue_t queue = strongSelf.completionQueue ?: dispatch_get_main_queue(); -#pragma clang diagnostic pop - - dispatch_group_async(group, queue, ^{ - block(); - }); - - dispatch_group_notify(group, url_request_operation_completion_queue(), ^{ - [strongSelf setCompletionBlock:nil]; - }); - }]; - } - [self.lock unlock]; -} - -- (BOOL)isReady { - return self.state == AFOperationReadyState && [super isReady]; -} - -- (BOOL)isExecuting { - return self.state == AFOperationExecutingState; -} - -- (BOOL)isFinished { - return self.state == AFOperationFinishedState; -} - -- (BOOL)isConcurrent { - return YES; -} - -- (void)start { - [self.lock lock]; - if ([self isCancelled]) { - [self performSelector:@selector(cancelConnection) onThread:[[self class] networkRequestThread] withObject:nil waitUntilDone:NO modes:[self.runLoopModes allObjects]]; - } else if ([self isReady]) { - self.state = AFOperationExecutingState; - - [self performSelector:@selector(operationDidStart) onThread:[[self class] networkRequestThread] withObject:nil waitUntilDone:NO modes:[self.runLoopModes allObjects]]; - } - [self.lock unlock]; -} - -- (void)operationDidStart { - [self.lock lock]; - if (![self isCancelled]) { - self.connection = [[NSURLConnection alloc] initWithRequest:self.request delegate:self startImmediately:NO]; - - NSRunLoop *runLoop = [NSRunLoop currentRunLoop]; - for (NSString *runLoopMode in self.runLoopModes) { - [self.connection scheduleInRunLoop:runLoop forMode:runLoopMode]; - [self.outputStream scheduleInRunLoop:runLoop forMode:runLoopMode]; - } - - [self.outputStream open]; - [self.connection start]; - } - [self.lock unlock]; - - dispatch_async(dispatch_get_main_queue(), ^{ - [[NSNotificationCenter defaultCenter] postNotificationName:AFNetworkingOperationDidStartNotification object:self]; - }); -} - -- (void)finish { - [self.lock lock]; - self.state = AFOperationFinishedState; - [self.lock unlock]; - - dispatch_async(dispatch_get_main_queue(), ^{ - [[NSNotificationCenter defaultCenter] postNotificationName:AFNetworkingOperationDidFinishNotification object:self]; - }); -} - -- (void)cancel { - [self.lock lock]; - if (![self isFinished] && ![self isCancelled]) { - [super cancel]; - - if ([self isExecuting]) { - [self performSelector:@selector(cancelConnection) onThread:[[self class] networkRequestThread] withObject:nil waitUntilDone:NO modes:[self.runLoopModes allObjects]]; - } - } - [self.lock unlock]; -} - -- (void)cancelConnection { - NSDictionary *userInfo = nil; - if ([self.request URL]) { - userInfo = [NSDictionary dictionaryWithObject:[self.request URL] forKey:NSURLErrorFailingURLErrorKey]; - } - NSError *error = [NSError errorWithDomain:NSURLErrorDomain code:NSURLErrorCancelled userInfo:userInfo]; - - if (![self isFinished]) { - if (self.connection) { - [self.connection cancel]; - [self performSelector:@selector(connection:didFailWithError:) withObject:self.connection withObject:error]; - } else { - // Accomodate race condition where `self.connection` has not yet been set before cancellation - self.error = error; - [self finish]; - } - } -} - -#pragma mark - - -+ (NSArray *)batchOfRequestOperations:(NSArray *)operations - progressBlock:(void (^)(NSUInteger numberOfFinishedOperations, NSUInteger totalNumberOfOperations))progressBlock - completionBlock:(void (^)(NSArray *operations))completionBlock -{ - if (!operations || [operations count] == 0) { - return @[[NSBlockOperation blockOperationWithBlock:^{ - dispatch_async(dispatch_get_main_queue(), ^{ - if (completionBlock) { - completionBlock(@[]); - } - }); - }]]; - } - - __block dispatch_group_t group = dispatch_group_create(); - NSBlockOperation *batchedOperation = [NSBlockOperation blockOperationWithBlock:^{ - dispatch_group_notify(group, dispatch_get_main_queue(), ^{ - if (completionBlock) { - completionBlock(operations); - } - }); - }]; - - for (AFURLConnectionOperation *operation in operations) { - operation.completionGroup = group; - void (^originalCompletionBlock)(void) = [operation.completionBlock copy]; - __weak __typeof(operation)weakOperation = operation; - operation.completionBlock = ^{ - __strong __typeof(weakOperation)strongOperation = weakOperation; -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgnu" - dispatch_queue_t queue = strongOperation.completionQueue ?: dispatch_get_main_queue(); -#pragma clang diagnostic pop - dispatch_group_async(group, queue, ^{ - if (originalCompletionBlock) { - originalCompletionBlock(); - } - - NSUInteger numberOfFinishedOperations = [[operations indexesOfObjectsPassingTest:^BOOL(id op, NSUInteger __unused idx, BOOL __unused *stop) { - return [op isFinished]; - }] count]; - - if (progressBlock) { - progressBlock(numberOfFinishedOperations, [operations count]); - } - - dispatch_group_leave(group); - }); - }; - - dispatch_group_enter(group); - [batchedOperation addDependency:operation]; - } - - return [operations arrayByAddingObject:batchedOperation]; -} - -#pragma mark - NSObject - -- (NSString *)description { - [self.lock lock]; - NSString *description = [NSString stringWithFormat:@"<%@: %p, state: %@, cancelled: %@ request: %@, response: %@>", NSStringFromClass([self class]), self, AFKeyPathFromOperationState(self.state), ([self isCancelled] ? @"YES" : @"NO"), self.request, self.response]; - [self.lock unlock]; - return description; -} - -#pragma mark - NSURLConnectionDelegate - -- (void)connection:(NSURLConnection *)connection -willSendRequestForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge -{ - if (self.authenticationChallenge) { - self.authenticationChallenge(connection, challenge); - return; - } - - if ([challenge.protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust]) { - if ([self.securityPolicy evaluateServerTrust:challenge.protectionSpace.serverTrust forDomain:challenge.protectionSpace.host]) { - NSURLCredential *credential = [NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust]; - [[challenge sender] useCredential:credential forAuthenticationChallenge:challenge]; - } else { - [[challenge sender] cancelAuthenticationChallenge:challenge]; - } - } else { - if ([challenge previousFailureCount] == 0) { - if (self.credential) { - [[challenge sender] useCredential:self.credential forAuthenticationChallenge:challenge]; - } else { - [[challenge sender] continueWithoutCredentialForAuthenticationChallenge:challenge]; - } - } else { - [[challenge sender] continueWithoutCredentialForAuthenticationChallenge:challenge]; - } - } -} - -- (BOOL)connectionShouldUseCredentialStorage:(NSURLConnection __unused *)connection { - return self.shouldUseCredentialStorage; -} - -- (NSURLRequest *)connection:(NSURLConnection *)connection - willSendRequest:(NSURLRequest *)request - redirectResponse:(NSURLResponse *)redirectResponse -{ - if (self.redirectResponse) { - return self.redirectResponse(connection, request, redirectResponse); - } else { - return request; - } -} - -- (void)connection:(NSURLConnection __unused *)connection - didSendBodyData:(NSInteger)bytesWritten - totalBytesWritten:(NSInteger)totalBytesWritten -totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite -{ - dispatch_async(dispatch_get_main_queue(), ^{ - if (self.uploadProgress) { - self.uploadProgress((NSUInteger)bytesWritten, totalBytesWritten, totalBytesExpectedToWrite); - } - }); -} - -- (void)connection:(NSURLConnection __unused *)connection -didReceiveResponse:(NSURLResponse *)response -{ - self.response = response; -} - -- (void)connection:(NSURLConnection __unused *)connection - didReceiveData:(NSData *)data -{ - NSUInteger length = [data length]; - while (YES) { - NSInteger totalNumberOfBytesWritten = 0; - if ([self.outputStream hasSpaceAvailable]) { - const uint8_t *dataBuffer = (uint8_t *)[data bytes]; - - NSInteger numberOfBytesWritten = 0; - while (totalNumberOfBytesWritten < (NSInteger)length) { - numberOfBytesWritten = [self.outputStream write:&dataBuffer[(NSUInteger)totalNumberOfBytesWritten] maxLength:(length - (NSUInteger)totalNumberOfBytesWritten)]; - if (numberOfBytesWritten == -1) { - break; - } - - totalNumberOfBytesWritten += numberOfBytesWritten; - } - - break; - } - - if (self.outputStream.streamError) { - [self.connection cancel]; - [self performSelector:@selector(connection:didFailWithError:) withObject:self.connection withObject:self.outputStream.streamError]; - return; - } - } - - dispatch_async(dispatch_get_main_queue(), ^{ - self.totalBytesRead += (long long)length; - - if (self.downloadProgress) { - self.downloadProgress(length, self.totalBytesRead, self.response.expectedContentLength); - } - }); -} - -- (void)connectionDidFinishLoading:(NSURLConnection __unused *)connection { - self.responseData = [self.outputStream propertyForKey:NSStreamDataWrittenToMemoryStreamKey]; - - [self.outputStream close]; - if (self.responseData) { - self.outputStream = nil; - } - - self.connection = nil; - - [self finish]; -} - -- (void)connection:(NSURLConnection __unused *)connection - didFailWithError:(NSError *)error -{ - self.error = error; - - [self.outputStream close]; - if (self.responseData) { - self.outputStream = nil; - } - - self.connection = nil; - - [self finish]; -} - -- (NSCachedURLResponse *)connection:(NSURLConnection *)connection - willCacheResponse:(NSCachedURLResponse *)cachedResponse -{ - if (self.cacheResponse) { - return self.cacheResponse(connection, cachedResponse); - } else { - if ([self isCancelled]) { - return nil; - } - - return cachedResponse; - } -} - -#pragma mark - NSSecureCoding - -+ (BOOL)supportsSecureCoding { - return YES; -} - -- (id)initWithCoder:(NSCoder *)decoder { - NSURLRequest *request = [decoder decodeObjectOfClass:[NSURLRequest class] forKey:NSStringFromSelector(@selector(request))]; - - self = [self initWithRequest:request]; - if (!self) { - return nil; - } - - self.state = [[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(state))] integerValue]; - self.response = [decoder decodeObjectOfClass:[NSHTTPURLResponse class] forKey:NSStringFromSelector(@selector(response))]; - self.error = [decoder decodeObjectOfClass:[NSError class] forKey:NSStringFromSelector(@selector(error))]; - self.responseData = [decoder decodeObjectOfClass:[NSData class] forKey:NSStringFromSelector(@selector(responseData))]; - self.totalBytesRead = [[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(totalBytesRead))] longLongValue]; - - return self; -} - -- (void)encodeWithCoder:(NSCoder *)coder { - [self pause]; - - [coder encodeObject:self.request forKey:NSStringFromSelector(@selector(request))]; - - switch (self.state) { - case AFOperationExecutingState: - case AFOperationPausedState: - [coder encodeInteger:AFOperationReadyState forKey:NSStringFromSelector(@selector(state))]; - break; - default: - [coder encodeInteger:self.state forKey:NSStringFromSelector(@selector(state))]; - break; - } - - [coder encodeObject:self.response forKey:NSStringFromSelector(@selector(response))]; - [coder encodeObject:self.error forKey:NSStringFromSelector(@selector(error))]; - [coder encodeObject:self.responseData forKey:NSStringFromSelector(@selector(responseData))]; - [coder encodeInt64:self.totalBytesRead forKey:NSStringFromSelector(@selector(totalBytesRead))]; -} - -#pragma mark - NSCopying - -- (id)copyWithZone:(NSZone *)zone { - AFURLConnectionOperation *operation = [(AFURLConnectionOperation *)[[self class] allocWithZone:zone] initWithRequest:self.request]; - - operation.uploadProgress = self.uploadProgress; - operation.downloadProgress = self.downloadProgress; - operation.authenticationChallenge = self.authenticationChallenge; - operation.cacheResponse = self.cacheResponse; - operation.redirectResponse = self.redirectResponse; - operation.completionQueue = self.completionQueue; - operation.completionGroup = self.completionGroup; - - return operation; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLRequestSerialization.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLRequestSerialization.h deleted file mode 100644 index bb8d444562b..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLRequestSerialization.h +++ /dev/null @@ -1,467 +0,0 @@ -// AFURLRequestSerialization.h -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) -#import -#endif - -/** - The `AFURLRequestSerialization` protocol is adopted by an object that encodes parameters for a specified HTTP requests. Request serializers may encode parameters as query strings, HTTP bodies, setting the appropriate HTTP header fields as necessary. - - For example, a JSON request serializer may set the HTTP body of the request to a JSON representation, and set the `Content-Type` HTTP header field value to `application/json`. - */ -@protocol AFURLRequestSerialization - -/** - Returns a request with the specified parameters encoded into a copy of the original request. - - @param request The original request. - @param parameters The parameters to be encoded. - @param error The error that occurred while attempting to encode the request parameters. - - @return A serialized request. - */ -- (NSURLRequest *)requestBySerializingRequest:(NSURLRequest *)request - withParameters:(id)parameters - error:(NSError * __autoreleasing *)error; - -@end - -#pragma mark - - -/** - - */ -typedef NS_ENUM(NSUInteger, AFHTTPRequestQueryStringSerializationStyle) { - AFHTTPRequestQueryStringDefaultStyle = 0, -}; - -@protocol AFMultipartFormData; - -/** - `AFHTTPRequestSerializer` conforms to the `AFURLRequestSerialization` & `AFURLResponseSerialization` protocols, offering a concrete base implementation of query string / URL form-encoded parameter serialization and default request headers, as well as response status code and content type validation. - - Any request or response serializer dealing with HTTP is encouraged to subclass `AFHTTPRequestSerializer` in order to ensure consistent default behavior. - */ -@interface AFHTTPRequestSerializer : NSObject - -/** - The string encoding used to serialize parameters. `NSUTF8StringEncoding` by default. - */ -@property (nonatomic, assign) NSStringEncoding stringEncoding; - -/** - Whether created requests can use the device’s cellular radio (if present). `YES` by default. - - @see NSMutableURLRequest -setAllowsCellularAccess: - */ -@property (nonatomic, assign) BOOL allowsCellularAccess; - -/** - The cache policy of created requests. `NSURLRequestUseProtocolCachePolicy` by default. - - @see NSMutableURLRequest -setCachePolicy: - */ -@property (nonatomic, assign) NSURLRequestCachePolicy cachePolicy; - -/** - Whether created requests should use the default cookie handling. `YES` by default. - - @see NSMutableURLRequest -setHTTPShouldHandleCookies: - */ -@property (nonatomic, assign) BOOL HTTPShouldHandleCookies; - -/** - Whether created requests can continue transmitting data before receiving a response from an earlier transmission. `NO` by default - - @see NSMutableURLRequest -setHTTPShouldUsePipelining: - */ -@property (nonatomic, assign) BOOL HTTPShouldUsePipelining; - -/** - The network service type for created requests. `NSURLNetworkServiceTypeDefault` by default. - - @see NSMutableURLRequest -setNetworkServiceType: - */ -@property (nonatomic, assign) NSURLRequestNetworkServiceType networkServiceType; - -/** - The timeout interval, in seconds, for created requests. The default timeout interval is 60 seconds. - - @see NSMutableURLRequest -setTimeoutInterval: - */ -@property (nonatomic, assign) NSTimeInterval timeoutInterval; - -///--------------------------------------- -/// @name Configuring HTTP Request Headers -///--------------------------------------- - -/** - Default HTTP header field values to be applied to serialized requests. By default, these include the following: - - - `Accept-Language` with the contents of `NSLocale +preferredLanguages` - - `User-Agent` with the contents of various bundle identifiers and OS designations - - @discussion To add or remove default request headers, use `setValue:forHTTPHeaderField:`. - */ -@property (readonly, nonatomic, strong) NSDictionary *HTTPRequestHeaders; - -/** - Creates and returns a serializer with default configuration. - */ -+ (instancetype)serializer; - -/** - Sets the value for the HTTP headers set in request objects made by the HTTP client. If `nil`, removes the existing value for that header. - - @param field The HTTP header to set a default value for - @param value The value set as default for the specified header, or `nil` - */ -- (void)setValue:(NSString *)value -forHTTPHeaderField:(NSString *)field; - -/** - Returns the value for the HTTP headers set in the request serializer. - - @param field The HTTP header to retrieve the default value for - - @return The value set as default for the specified header, or `nil` - */ -- (NSString *)valueForHTTPHeaderField:(NSString *)field; - -/** - Sets the "Authorization" HTTP header set in request objects made by the HTTP client to a basic authentication value with Base64-encoded username and password. This overwrites any existing value for this header. - - @param username The HTTP basic auth username - @param password The HTTP basic auth password - */ -- (void)setAuthorizationHeaderFieldWithUsername:(NSString *)username - password:(NSString *)password; - -/** - @deprecated This method has been deprecated. Use -setValue:forHTTPHeaderField: instead. - */ -- (void)setAuthorizationHeaderFieldWithToken:(NSString *)token DEPRECATED_ATTRIBUTE; - - -/** - Clears any existing value for the "Authorization" HTTP header. - */ -- (void)clearAuthorizationHeader; - -///------------------------------------------------------- -/// @name Configuring Query String Parameter Serialization -///------------------------------------------------------- - -/** - HTTP methods for which serialized requests will encode parameters as a query string. `GET`, `HEAD`, and `DELETE` by default. - */ -@property (nonatomic, strong) NSSet *HTTPMethodsEncodingParametersInURI; - -/** - Set the method of query string serialization according to one of the pre-defined styles. - - @param style The serialization style. - - @see AFHTTPRequestQueryStringSerializationStyle - */ -- (void)setQueryStringSerializationWithStyle:(AFHTTPRequestQueryStringSerializationStyle)style; - -/** - Set the a custom method of query string serialization according to the specified block. - - @param block A block that defines a process of encoding parameters into a query string. This block returns the query string and takes three arguments: the request, the parameters to encode, and the error that occurred when attempting to encode parameters for the given request. - */ -- (void)setQueryStringSerializationWithBlock:(NSString * (^)(NSURLRequest *request, id parameters, NSError * __autoreleasing *error))block; - -///------------------------------- -/// @name Creating Request Objects -///------------------------------- - -/** - @deprecated This method has been deprecated. Use -requestWithMethod:URLString:parameters:error: instead. - */ -- (NSMutableURLRequest *)requestWithMethod:(NSString *)method - URLString:(NSString *)URLString - parameters:(id)parameters DEPRECATED_ATTRIBUTE; - -/** - Creates an `NSMutableURLRequest` object with the specified HTTP method and URL string. - - If the HTTP method is `GET`, `HEAD`, or `DELETE`, the parameters will be used to construct a url-encoded query string that is appended to the request's URL. Otherwise, the parameters will be encoded according to the value of the `parameterEncoding` property, and set as the request body. - - @param method The HTTP method for the request, such as `GET`, `POST`, `PUT`, or `DELETE`. This parameter must not be `nil`. - @param URLString The URL string used to create the request URL. - @param parameters The parameters to be either set as a query string for `GET` requests, or the request HTTP body. - @param error The error that occured while constructing the request. - - @return An `NSMutableURLRequest` object. - */ -- (NSMutableURLRequest *)requestWithMethod:(NSString *)method - URLString:(NSString *)URLString - parameters:(id)parameters - error:(NSError * __autoreleasing *)error; - -/** - @deprecated This method has been deprecated. Use -multipartFormRequestWithMethod:URLString:parameters:constructingBodyWithBlock:error: instead. - */ -- (NSMutableURLRequest *)multipartFormRequestWithMethod:(NSString *)method - URLString:(NSString *)URLString - parameters:(NSDictionary *)parameters - constructingBodyWithBlock:(void (^)(id formData))block DEPRECATED_ATTRIBUTE; - -/** - Creates an `NSMutableURLRequest` object with the specified HTTP method and URLString, and constructs a `multipart/form-data` HTTP body, using the specified parameters and multipart form data block. See http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4.2 - - Multipart form requests are automatically streamed, reading files directly from disk along with in-memory data in a single HTTP body. The resulting `NSMutableURLRequest` object has an `HTTPBodyStream` property, so refrain from setting `HTTPBodyStream` or `HTTPBody` on this request object, as it will clear out the multipart form body stream. - - @param method The HTTP method for the request. This parameter must not be `GET` or `HEAD`, or `nil`. - @param URLString The URL string used to create the request URL. - @param parameters The parameters to be encoded and set in the request HTTP body. - @param block A block that takes a single argument and appends data to the HTTP body. The block argument is an object adopting the `AFMultipartFormData` protocol. - @param error The error that occured while constructing the request. - - @return An `NSMutableURLRequest` object - */ -- (NSMutableURLRequest *)multipartFormRequestWithMethod:(NSString *)method - URLString:(NSString *)URLString - parameters:(NSDictionary *)parameters - constructingBodyWithBlock:(void (^)(id formData))block - error:(NSError * __autoreleasing *)error; - -/** - Creates an `NSMutableURLRequest` by removing the `HTTPBodyStream` from a request, and asynchronously writing its contents into the specified file, invoking the completion handler when finished. - - @param request The multipart form request. The `HTTPBodyStream` property of `request` must not be `nil`. - @param fileURL The file URL to write multipart form contents to. - @param handler A handler block to execute. - - @discussion There is a bug in `NSURLSessionTask` that causes requests to not send a `Content-Length` header when streaming contents from an HTTP body, which is notably problematic when interacting with the Amazon S3 webservice. As a workaround, this method takes a request constructed with `multipartFormRequestWithMethod:URLString:parameters:constructingBodyWithBlock:error:`, or any other request with an `HTTPBodyStream`, writes the contents to the specified file and returns a copy of the original request with the `HTTPBodyStream` property set to `nil`. From here, the file can either be passed to `AFURLSessionManager -uploadTaskWithRequest:fromFile:progress:completionHandler:`, or have its contents read into an `NSData` that's assigned to the `HTTPBody` property of the request. - - @see https://github.com/AFNetworking/AFNetworking/issues/1398 - */ -- (NSMutableURLRequest *)requestWithMultipartFormRequest:(NSURLRequest *)request - writingStreamContentsToFile:(NSURL *)fileURL - completionHandler:(void (^)(NSError *error))handler; - -@end - -#pragma mark - - -/** - The `AFMultipartFormData` protocol defines the methods supported by the parameter in the block argument of `AFHTTPRequestSerializer -multipartFormRequestWithMethod:URLString:parameters:constructingBodyWithBlock:`. - */ -@protocol AFMultipartFormData - -/** - Appends the HTTP header `Content-Disposition: file; filename=#{generated filename}; name=#{name}"` and `Content-Type: #{generated mimeType}`, followed by the encoded file data and the multipart form boundary. - - The filename and MIME type for this data in the form will be automatically generated, using the last path component of the `fileURL` and system associated MIME type for the `fileURL` extension, respectively. - - @param fileURL The URL corresponding to the file whose content will be appended to the form. This parameter must not be `nil`. - @param name The name to be associated with the specified data. This parameter must not be `nil`. - @param error If an error occurs, upon return contains an `NSError` object that describes the problem. - - @return `YES` if the file data was successfully appended, otherwise `NO`. - */ -- (BOOL)appendPartWithFileURL:(NSURL *)fileURL - name:(NSString *)name - error:(NSError * __autoreleasing *)error; - -/** - Appends the HTTP header `Content-Disposition: file; filename=#{filename}; name=#{name}"` and `Content-Type: #{mimeType}`, followed by the encoded file data and the multipart form boundary. - - @param fileURL The URL corresponding to the file whose content will be appended to the form. This parameter must not be `nil`. - @param name The name to be associated with the specified data. This parameter must not be `nil`. - @param fileName The file name to be used in the `Content-Disposition` header. This parameter must not be `nil`. - @param mimeType The declared MIME type of the file data. This parameter must not be `nil`. - @param error If an error occurs, upon return contains an `NSError` object that describes the problem. - - @return `YES` if the file data was successfully appended otherwise `NO`. - */ -- (BOOL)appendPartWithFileURL:(NSURL *)fileURL - name:(NSString *)name - fileName:(NSString *)fileName - mimeType:(NSString *)mimeType - error:(NSError * __autoreleasing *)error; - -/** - Appends the HTTP header `Content-Disposition: file; filename=#{filename}; name=#{name}"` and `Content-Type: #{mimeType}`, followed by the data from the input stream and the multipart form boundary. - - @param inputStream The input stream to be appended to the form data - @param name The name to be associated with the specified input stream. This parameter must not be `nil`. - @param fileName The filename to be associated with the specified input stream. This parameter must not be `nil`. - @param length The length of the specified input stream in bytes. - @param mimeType The MIME type of the specified data. (For example, the MIME type for a JPEG image is image/jpeg.) For a list of valid MIME types, see http://www.iana.org/assignments/media-types/. This parameter must not be `nil`. - */ -- (void)appendPartWithInputStream:(NSInputStream *)inputStream - name:(NSString *)name - fileName:(NSString *)fileName - length:(int64_t)length - mimeType:(NSString *)mimeType; - -/** - Appends the HTTP header `Content-Disposition: file; filename=#{filename}; name=#{name}"` and `Content-Type: #{mimeType}`, followed by the encoded file data and the multipart form boundary. - - @param data The data to be encoded and appended to the form data. - @param name The name to be associated with the specified data. This parameter must not be `nil`. - @param fileName The filename to be associated with the specified data. This parameter must not be `nil`. - @param mimeType The MIME type of the specified data. (For example, the MIME type for a JPEG image is image/jpeg.) For a list of valid MIME types, see http://www.iana.org/assignments/media-types/. This parameter must not be `nil`. - */ -- (void)appendPartWithFileData:(NSData *)data - name:(NSString *)name - fileName:(NSString *)fileName - mimeType:(NSString *)mimeType; - -/** - Appends the HTTP headers `Content-Disposition: form-data; name=#{name}"`, followed by the encoded data and the multipart form boundary. - - @param data The data to be encoded and appended to the form data. - @param name The name to be associated with the specified data. This parameter must not be `nil`. - */ - -- (void)appendPartWithFormData:(NSData *)data - name:(NSString *)name; - - -/** - Appends HTTP headers, followed by the encoded data and the multipart form boundary. - - @param headers The HTTP headers to be appended to the form data. - @param body The data to be encoded and appended to the form data. This parameter must not be `nil`. - */ -- (void)appendPartWithHeaders:(NSDictionary *)headers - body:(NSData *)body; - -/** - Throttles request bandwidth by limiting the packet size and adding a delay for each chunk read from the upload stream. - - When uploading over a 3G or EDGE connection, requests may fail with "request body stream exhausted". Setting a maximum packet size and delay according to the recommended values (`kAFUploadStream3GSuggestedPacketSize` and `kAFUploadStream3GSuggestedDelay`) lowers the risk of the input stream exceeding its allocated bandwidth. Unfortunately, there is no definite way to distinguish between a 3G, EDGE, or LTE connection over `NSURLConnection`. As such, it is not recommended that you throttle bandwidth based solely on network reachability. Instead, you should consider checking for the "request body stream exhausted" in a failure block, and then retrying the request with throttled bandwidth. - - @param numberOfBytes Maximum packet size, in number of bytes. The default packet size for an input stream is 16kb. - @param delay Duration of delay each time a packet is read. By default, no delay is set. - */ -- (void)throttleBandwidthWithPacketSize:(NSUInteger)numberOfBytes - delay:(NSTimeInterval)delay; - -@end - -#pragma mark - - -/** - `AFJSONRequestSerializer` is a subclass of `AFHTTPRequestSerializer` that encodes parameters as JSON using `NSJSONSerialization`, setting the `Content-Type` of the encoded request to `application/json`. - */ -@interface AFJSONRequestSerializer : AFHTTPRequestSerializer - -/** - Options for writing the request JSON data from Foundation objects. For possible values, see the `NSJSONSerialization` documentation section "NSJSONWritingOptions". `0` by default. - */ -@property (nonatomic, assign) NSJSONWritingOptions writingOptions; - -/** - Creates and returns a JSON serializer with specified reading and writing options. - - @param writingOptions The specified JSON writing options. - */ -+ (instancetype)serializerWithWritingOptions:(NSJSONWritingOptions)writingOptions; - -@end - -#pragma mark - - -/** - `AFPropertyListRequestSerializer` is a subclass of `AFHTTPRequestSerializer` that encodes parameters as JSON using `NSPropertyListSerializer`, setting the `Content-Type` of the encoded request to `application/x-plist`. - */ -@interface AFPropertyListRequestSerializer : AFHTTPRequestSerializer - -/** - The property list format. Possible values are described in "NSPropertyListFormat". - */ -@property (nonatomic, assign) NSPropertyListFormat format; - -/** - @warning The `writeOptions` property is currently unused. - */ -@property (nonatomic, assign) NSPropertyListWriteOptions writeOptions; - -/** - Creates and returns a property list serializer with a specified format, read options, and write options. - - @param format The property list format. - @param writeOptions The property list write options. - - @warning The `writeOptions` property is currently unused. - */ -+ (instancetype)serializerWithFormat:(NSPropertyListFormat)format - writeOptions:(NSPropertyListWriteOptions)writeOptions; - -@end - -#pragma mark - - -///---------------- -/// @name Constants -///---------------- - -/** - ## Error Domains - - The following error domain is predefined. - - - `NSString * const AFURLRequestSerializationErrorDomain` - - ### Constants - - `AFURLRequestSerializationErrorDomain` - AFURLRequestSerializer errors. Error codes for `AFURLRequestSerializationErrorDomain` correspond to codes in `NSURLErrorDomain`. - */ -extern NSString * const AFURLRequestSerializationErrorDomain; - -/** - ## User info dictionary keys - - These keys may exist in the user info dictionary, in addition to those defined for NSError. - - - `NSString * const AFNetworkingOperationFailingURLRequestErrorKey` - - ### Constants - - `AFNetworkingOperationFailingURLRequestErrorKey` - The corresponding value is an `NSURLRequest` containing the request of the operation associated with an error. This key is only present in the `AFURLRequestSerializationErrorDomain`. - */ -extern NSString * const AFNetworkingOperationFailingURLRequestErrorKey; - -/** - ## Throttling Bandwidth for HTTP Request Input Streams - - @see -throttleBandwidthWithPacketSize:delay: - - ### Constants - - `kAFUploadStream3GSuggestedPacketSize` - Maximum packet size, in number of bytes. Equal to 16kb. - - `kAFUploadStream3GSuggestedDelay` - Duration of delay each time a packet is read. Equal to 0.2 seconds. - */ -extern NSUInteger const kAFUploadStream3GSuggestedPacketSize; -extern NSTimeInterval const kAFUploadStream3GSuggestedDelay; diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLRequestSerialization.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLRequestSerialization.m deleted file mode 100644 index 5b55b5fc5fc..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLRequestSerialization.m +++ /dev/null @@ -1,1384 +0,0 @@ -// AFURLRequestSerialization.m -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import "AFURLRequestSerialization.h" - -#if __IPHONE_OS_VERSION_MIN_REQUIRED -#import -#else -#import -#endif - -NSString * const AFURLRequestSerializationErrorDomain = @"com.alamofire.error.serialization.request"; -NSString * const AFNetworkingOperationFailingURLRequestErrorKey = @"com.alamofire.serialization.request.error.response"; - -typedef NSString * (^AFQueryStringSerializationBlock)(NSURLRequest *request, id parameters, NSError *__autoreleasing *error); - -static NSString * AFBase64EncodedStringFromString(NSString *string) { - NSData *data = [NSData dataWithBytes:[string UTF8String] length:[string lengthOfBytesUsingEncoding:NSUTF8StringEncoding]]; - NSUInteger length = [data length]; - NSMutableData *mutableData = [NSMutableData dataWithLength:((length + 2) / 3) * 4]; - - uint8_t *input = (uint8_t *)[data bytes]; - uint8_t *output = (uint8_t *)[mutableData mutableBytes]; - - for (NSUInteger i = 0; i < length; i += 3) { - NSUInteger value = 0; - for (NSUInteger j = i; j < (i + 3); j++) { - value <<= 8; - if (j < length) { - value |= (0xFF & input[j]); - } - } - - static uint8_t const kAFBase64EncodingTable[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; - - NSUInteger idx = (i / 3) * 4; - output[idx + 0] = kAFBase64EncodingTable[(value >> 18) & 0x3F]; - output[idx + 1] = kAFBase64EncodingTable[(value >> 12) & 0x3F]; - output[idx + 2] = (i + 1) < length ? kAFBase64EncodingTable[(value >> 6) & 0x3F] : '='; - output[idx + 3] = (i + 2) < length ? kAFBase64EncodingTable[(value >> 0) & 0x3F] : '='; - } - - return [[NSString alloc] initWithData:mutableData encoding:NSASCIIStringEncoding]; -} - -static NSString * const kAFCharactersToBeEscapedInQueryString = @":/?&=;+!@#$()',*"; - -static NSString * AFPercentEscapedQueryStringKeyFromStringWithEncoding(NSString *string, NSStringEncoding encoding) { - static NSString * const kAFCharactersToLeaveUnescapedInQueryStringPairKey = @"[]."; - - return (__bridge_transfer NSString *)CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, (__bridge CFStringRef)string, (__bridge CFStringRef)kAFCharactersToLeaveUnescapedInQueryStringPairKey, (__bridge CFStringRef)kAFCharactersToBeEscapedInQueryString, CFStringConvertNSStringEncodingToEncoding(encoding)); -} - -static NSString * AFPercentEscapedQueryStringValueFromStringWithEncoding(NSString *string, NSStringEncoding encoding) { - return (__bridge_transfer NSString *)CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, (__bridge CFStringRef)string, NULL, (__bridge CFStringRef)kAFCharactersToBeEscapedInQueryString, CFStringConvertNSStringEncodingToEncoding(encoding)); -} - -#pragma mark - - -@interface AFQueryStringPair : NSObject -@property (readwrite, nonatomic, strong) id field; -@property (readwrite, nonatomic, strong) id value; - -- (id)initWithField:(id)field value:(id)value; - -- (NSString *)URLEncodedStringValueWithEncoding:(NSStringEncoding)stringEncoding; -@end - -@implementation AFQueryStringPair - -- (id)initWithField:(id)field value:(id)value { - self = [super init]; - if (!self) { - return nil; - } - - self.field = field; - self.value = value; - - return self; -} - -- (NSString *)URLEncodedStringValueWithEncoding:(NSStringEncoding)stringEncoding { - if (!self.value || [self.value isEqual:[NSNull null]]) { - return AFPercentEscapedQueryStringKeyFromStringWithEncoding([self.field description], stringEncoding); - } else { - return [NSString stringWithFormat:@"%@=%@", AFPercentEscapedQueryStringKeyFromStringWithEncoding([self.field description], stringEncoding), AFPercentEscapedQueryStringValueFromStringWithEncoding([self.value description], stringEncoding)]; - } -} - -@end - -#pragma mark - - -extern NSArray * AFQueryStringPairsFromDictionary(NSDictionary *dictionary); -extern NSArray * AFQueryStringPairsFromKeyAndValue(NSString *key, id value); - -static NSString * AFQueryStringFromParametersWithEncoding(NSDictionary *parameters, NSStringEncoding stringEncoding) { - NSMutableArray *mutablePairs = [NSMutableArray array]; - for (AFQueryStringPair *pair in AFQueryStringPairsFromDictionary(parameters)) { - [mutablePairs addObject:[pair URLEncodedStringValueWithEncoding:stringEncoding]]; - } - - return [mutablePairs componentsJoinedByString:@"&"]; -} - -NSArray * AFQueryStringPairsFromDictionary(NSDictionary *dictionary) { - return AFQueryStringPairsFromKeyAndValue(nil, dictionary); -} - -NSArray * AFQueryStringPairsFromKeyAndValue(NSString *key, id value) { - NSMutableArray *mutableQueryStringComponents = [NSMutableArray array]; - - NSSortDescriptor *sortDescriptor = [NSSortDescriptor sortDescriptorWithKey:@"description" ascending:YES selector:@selector(compare:)]; - - if ([value isKindOfClass:[NSDictionary class]]) { - NSDictionary *dictionary = value; - // Sort dictionary keys to ensure consistent ordering in query string, which is important when deserializing potentially ambiguous sequences, such as an array of dictionaries - for (id nestedKey in [dictionary.allKeys sortedArrayUsingDescriptors:@[ sortDescriptor ]]) { - id nestedValue = [dictionary objectForKey:nestedKey]; - if (nestedValue) { - [mutableQueryStringComponents addObjectsFromArray:AFQueryStringPairsFromKeyAndValue((key ? [NSString stringWithFormat:@"%@[%@]", key, nestedKey] : nestedKey), nestedValue)]; - } - } - } else if ([value isKindOfClass:[NSArray class]]) { - NSArray *array = value; - for (id nestedValue in array) { - [mutableQueryStringComponents addObjectsFromArray:AFQueryStringPairsFromKeyAndValue([NSString stringWithFormat:@"%@[]", key], nestedValue)]; - } - } else if ([value isKindOfClass:[NSSet class]]) { - NSSet *set = value; - for (id obj in [set sortedArrayUsingDescriptors:@[ sortDescriptor ]]) { - [mutableQueryStringComponents addObjectsFromArray:AFQueryStringPairsFromKeyAndValue(key, obj)]; - } - } else { - [mutableQueryStringComponents addObject:[[AFQueryStringPair alloc] initWithField:key value:value]]; - } - - return mutableQueryStringComponents; -} - -#pragma mark - - -@interface AFStreamingMultipartFormData : NSObject -- (instancetype)initWithURLRequest:(NSMutableURLRequest *)urlRequest - stringEncoding:(NSStringEncoding)encoding; - -- (NSMutableURLRequest *)requestByFinalizingMultipartFormData; -@end - -#pragma mark - - -static NSArray * AFHTTPRequestSerializerObservedKeyPaths() { - static NSArray *_AFHTTPRequestSerializerObservedKeyPaths = nil; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - _AFHTTPRequestSerializerObservedKeyPaths = @[NSStringFromSelector(@selector(allowsCellularAccess)), NSStringFromSelector(@selector(cachePolicy)), NSStringFromSelector(@selector(HTTPShouldHandleCookies)), NSStringFromSelector(@selector(HTTPShouldUsePipelining)), NSStringFromSelector(@selector(networkServiceType)), NSStringFromSelector(@selector(timeoutInterval))]; - }); - - return _AFHTTPRequestSerializerObservedKeyPaths; -} - -static void *AFHTTPRequestSerializerObserverContext = &AFHTTPRequestSerializerObserverContext; - -@interface AFHTTPRequestSerializer () -@property (readwrite, nonatomic, strong) NSMutableSet *mutableObservedChangedKeyPaths; -@property (readwrite, nonatomic, strong) NSMutableDictionary *mutableHTTPRequestHeaders; -@property (readwrite, nonatomic, assign) AFHTTPRequestQueryStringSerializationStyle queryStringSerializationStyle; -@property (readwrite, nonatomic, copy) AFQueryStringSerializationBlock queryStringSerialization; -@end - -@implementation AFHTTPRequestSerializer - -+ (instancetype)serializer { - return [[self alloc] init]; -} - -- (instancetype)init { - self = [super init]; - if (!self) { - return nil; - } - - self.stringEncoding = NSUTF8StringEncoding; - - self.mutableHTTPRequestHeaders = [NSMutableDictionary dictionary]; - - // Accept-Language HTTP Header; see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4 - NSMutableArray *acceptLanguagesComponents = [NSMutableArray array]; - [[NSLocale preferredLanguages] enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { - float q = 1.0f - (idx * 0.1f); - [acceptLanguagesComponents addObject:[NSString stringWithFormat:@"%@;q=%0.1g", obj, q]]; - *stop = q <= 0.5f; - }]; - [self setValue:[acceptLanguagesComponents componentsJoinedByString:@", "] forHTTPHeaderField:@"Accept-Language"]; - - NSString *userAgent = nil; -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgnu" -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) - // User-Agent Header; see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.43 - userAgent = [NSString stringWithFormat:@"%@/%@ (%@; iOS %@; Scale/%0.2f)", [[[NSBundle mainBundle] infoDictionary] objectForKey:(__bridge NSString *)kCFBundleExecutableKey] ?: [[[NSBundle mainBundle] infoDictionary] objectForKey:(__bridge NSString *)kCFBundleIdentifierKey], [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"] ?: [[[NSBundle mainBundle] infoDictionary] objectForKey:(__bridge NSString *)kCFBundleVersionKey], [[UIDevice currentDevice] model], [[UIDevice currentDevice] systemVersion], [[UIScreen mainScreen] scale]]; -#elif defined(__MAC_OS_X_VERSION_MIN_REQUIRED) - userAgent = [NSString stringWithFormat:@"%@/%@ (Mac OS X %@)", [[[NSBundle mainBundle] infoDictionary] objectForKey:(__bridge NSString *)kCFBundleExecutableKey] ?: [[[NSBundle mainBundle] infoDictionary] objectForKey:(__bridge NSString *)kCFBundleIdentifierKey], [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"] ?: [[[NSBundle mainBundle] infoDictionary] objectForKey:(__bridge NSString *)kCFBundleVersionKey], [[NSProcessInfo processInfo] operatingSystemVersionString]]; -#endif -#pragma clang diagnostic pop - if (userAgent) { - if (![userAgent canBeConvertedToEncoding:NSASCIIStringEncoding]) { - NSMutableString *mutableUserAgent = [userAgent mutableCopy]; - if (CFStringTransform((__bridge CFMutableStringRef)(mutableUserAgent), NULL, (__bridge CFStringRef)@"Any-Latin; Latin-ASCII; [:^ASCII:] Remove", false)) { - userAgent = mutableUserAgent; - } - } - [self setValue:userAgent forHTTPHeaderField:@"User-Agent"]; - } - - // HTTP Method Definitions; see http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html - self.HTTPMethodsEncodingParametersInURI = [NSSet setWithObjects:@"GET", @"HEAD", @"DELETE", nil]; - - self.mutableObservedChangedKeyPaths = [NSMutableSet set]; - for (NSString *keyPath in AFHTTPRequestSerializerObservedKeyPaths()) { - if ([self respondsToSelector:NSSelectorFromString(keyPath)]) { - [self addObserver:self forKeyPath:keyPath options:NSKeyValueObservingOptionNew context:AFHTTPRequestSerializerObserverContext]; - } - } - - return self; -} - -- (void)dealloc { - for (NSString *keyPath in AFHTTPRequestSerializerObservedKeyPaths()) { - if ([self respondsToSelector:NSSelectorFromString(keyPath)]) { - [self removeObserver:self forKeyPath:keyPath context:AFHTTPRequestSerializerObserverContext]; - } - } -} - -#pragma mark - - -// Workarounds for crashing behavior using Key-Value Observing with XCTest -// See https://github.com/AFNetworking/AFNetworking/issues/2523 - -- (void)setAllowsCellularAccess:(BOOL)allowsCellularAccess { - [self willChangeValueForKey:NSStringFromSelector(@selector(allowsCellularAccess))]; - _allowsCellularAccess = allowsCellularAccess; - [self didChangeValueForKey:NSStringFromSelector(@selector(allowsCellularAccess))]; -} - -- (void)setCachePolicy:(NSURLRequestCachePolicy)cachePolicy { - [self willChangeValueForKey:NSStringFromSelector(@selector(cachePolicy))]; - _cachePolicy = cachePolicy; - [self didChangeValueForKey:NSStringFromSelector(@selector(cachePolicy))]; -} - -- (void)setHTTPShouldHandleCookies:(BOOL)HTTPShouldHandleCookies { - [self willChangeValueForKey:NSStringFromSelector(@selector(HTTPShouldHandleCookies))]; - _HTTPShouldHandleCookies = HTTPShouldHandleCookies; - [self didChangeValueForKey:NSStringFromSelector(@selector(HTTPShouldHandleCookies))]; -} - -- (void)setHTTPShouldUsePipelining:(BOOL)HTTPShouldUsePipelining { - [self willChangeValueForKey:NSStringFromSelector(@selector(HTTPShouldUsePipelining))]; - _HTTPShouldUsePipelining = HTTPShouldUsePipelining; - [self didChangeValueForKey:NSStringFromSelector(@selector(HTTPShouldUsePipelining))]; -} - -- (void)setNetworkServiceType:(NSURLRequestNetworkServiceType)networkServiceType { - [self willChangeValueForKey:NSStringFromSelector(@selector(networkServiceType))]; - _networkServiceType = networkServiceType; - [self didChangeValueForKey:NSStringFromSelector(@selector(networkServiceType))]; -} - -- (void)setTimeoutInterval:(NSTimeInterval)timeoutInterval { - [self willChangeValueForKey:NSStringFromSelector(@selector(timeoutInterval))]; - _timeoutInterval = timeoutInterval; - [self didChangeValueForKey:NSStringFromSelector(@selector(timeoutInterval))]; -} - -#pragma mark - - -- (NSDictionary *)HTTPRequestHeaders { - return [NSDictionary dictionaryWithDictionary:self.mutableHTTPRequestHeaders]; -} - -- (void)setValue:(NSString *)value -forHTTPHeaderField:(NSString *)field -{ - [self.mutableHTTPRequestHeaders setValue:value forKey:field]; -} - -- (NSString *)valueForHTTPHeaderField:(NSString *)field { - return [self.mutableHTTPRequestHeaders valueForKey:field]; -} - -- (void)setAuthorizationHeaderFieldWithUsername:(NSString *)username - password:(NSString *)password -{ - NSString *basicAuthCredentials = [NSString stringWithFormat:@"%@:%@", username, password]; - [self setValue:[NSString stringWithFormat:@"Basic %@", AFBase64EncodedStringFromString(basicAuthCredentials)] forHTTPHeaderField:@"Authorization"]; -} - -- (void)setAuthorizationHeaderFieldWithToken:(NSString *)token { - [self setValue:[NSString stringWithFormat:@"Token token=\"%@\"", token] forHTTPHeaderField:@"Authorization"]; -} - -- (void)clearAuthorizationHeader { - [self.mutableHTTPRequestHeaders removeObjectForKey:@"Authorization"]; -} - -#pragma mark - - -- (void)setQueryStringSerializationWithStyle:(AFHTTPRequestQueryStringSerializationStyle)style { - self.queryStringSerializationStyle = style; - self.queryStringSerialization = nil; -} - -- (void)setQueryStringSerializationWithBlock:(NSString *(^)(NSURLRequest *, id, NSError *__autoreleasing *))block { - self.queryStringSerialization = block; -} - -#pragma mark - - -- (NSMutableURLRequest *)requestWithMethod:(NSString *)method - URLString:(NSString *)URLString - parameters:(id)parameters -{ - return [self requestWithMethod:method URLString:URLString parameters:parameters error:nil]; -} - -- (NSMutableURLRequest *)requestWithMethod:(NSString *)method - URLString:(NSString *)URLString - parameters:(id)parameters - error:(NSError *__autoreleasing *)error -{ - NSParameterAssert(method); - NSParameterAssert(URLString); - - NSURL *url = [NSURL URLWithString:URLString]; - - NSParameterAssert(url); - - NSMutableURLRequest *mutableRequest = [[NSMutableURLRequest alloc] initWithURL:url]; - mutableRequest.HTTPMethod = method; - - for (NSString *keyPath in AFHTTPRequestSerializerObservedKeyPaths()) { - if ([self.mutableObservedChangedKeyPaths containsObject:keyPath]) { - [mutableRequest setValue:[self valueForKeyPath:keyPath] forKey:keyPath]; - } - } - - mutableRequest = [[self requestBySerializingRequest:mutableRequest withParameters:parameters error:error] mutableCopy]; - - return mutableRequest; -} - -- (NSMutableURLRequest *)multipartFormRequestWithMethod:(NSString *)method - URLString:(NSString *)URLString - parameters:(NSDictionary *)parameters - constructingBodyWithBlock:(void (^)(id formData))block -{ - return [self multipartFormRequestWithMethod:method URLString:URLString parameters:parameters constructingBodyWithBlock:block error:nil]; -} - -- (NSMutableURLRequest *)multipartFormRequestWithMethod:(NSString *)method - URLString:(NSString *)URLString - parameters:(NSDictionary *)parameters - constructingBodyWithBlock:(void (^)(id formData))block - error:(NSError *__autoreleasing *)error -{ - NSParameterAssert(method); - NSParameterAssert(![method isEqualToString:@"GET"] && ![method isEqualToString:@"HEAD"]); - - NSMutableURLRequest *mutableRequest = [self requestWithMethod:method URLString:URLString parameters:nil error:error]; - - __block AFStreamingMultipartFormData *formData = [[AFStreamingMultipartFormData alloc] initWithURLRequest:mutableRequest stringEncoding:NSUTF8StringEncoding]; - - if (parameters) { - for (AFQueryStringPair *pair in AFQueryStringPairsFromDictionary(parameters)) { - NSData *data = nil; - if ([pair.value isKindOfClass:[NSData class]]) { - data = pair.value; - } else if ([pair.value isEqual:[NSNull null]]) { - data = [NSData data]; - } else { - data = [[pair.value description] dataUsingEncoding:self.stringEncoding]; - } - - if (data) { - [formData appendPartWithFormData:data name:[pair.field description]]; - } - } - } - - if (block) { - block(formData); - } - - return [formData requestByFinalizingMultipartFormData]; -} - -- (NSMutableURLRequest *)requestWithMultipartFormRequest:(NSURLRequest *)request - writingStreamContentsToFile:(NSURL *)fileURL - completionHandler:(void (^)(NSError *error))handler -{ - NSParameterAssert(request.HTTPBodyStream); - NSParameterAssert([fileURL isFileURL]); - - NSInputStream *inputStream = request.HTTPBodyStream; - NSOutputStream *outputStream = [[NSOutputStream alloc] initWithURL:fileURL append:NO]; - __block NSError *error = nil; - - dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ - [inputStream scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode]; - [outputStream scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode]; - - [inputStream open]; - [outputStream open]; - - while ([inputStream hasBytesAvailable] && [outputStream hasSpaceAvailable]) { - uint8_t buffer[1024]; - - NSInteger bytesRead = [inputStream read:buffer maxLength:1024]; - if (inputStream.streamError || bytesRead < 0) { - error = inputStream.streamError; - break; - } - - NSInteger bytesWritten = [outputStream write:buffer maxLength:(NSUInteger)bytesRead]; - if (outputStream.streamError || bytesWritten < 0) { - error = outputStream.streamError; - break; - } - - if (bytesRead == 0 && bytesWritten == 0) { - break; - } - } - - [outputStream close]; - [inputStream close]; - - if (handler) { - dispatch_async(dispatch_get_main_queue(), ^{ - handler(error); - }); - } - }); - - NSMutableURLRequest *mutableRequest = [request mutableCopy]; - mutableRequest.HTTPBodyStream = nil; - - return mutableRequest; -} - -#pragma mark - AFURLRequestSerialization - -- (NSURLRequest *)requestBySerializingRequest:(NSURLRequest *)request - withParameters:(id)parameters - error:(NSError *__autoreleasing *)error -{ - NSParameterAssert(request); - - NSMutableURLRequest *mutableRequest = [request mutableCopy]; - - [self.HTTPRequestHeaders enumerateKeysAndObjectsUsingBlock:^(id field, id value, BOOL * __unused stop) { - if (![request valueForHTTPHeaderField:field]) { - [mutableRequest setValue:value forHTTPHeaderField:field]; - } - }]; - - if (parameters) { - NSString *query = nil; - if (self.queryStringSerialization) { - NSError *serializationError; - query = self.queryStringSerialization(request, parameters, &serializationError); - - if (serializationError) { - if (error) { - *error = serializationError; - } - - return nil; - } - } else { - switch (self.queryStringSerializationStyle) { - case AFHTTPRequestQueryStringDefaultStyle: - query = AFQueryStringFromParametersWithEncoding(parameters, self.stringEncoding); - break; - } - } - - if ([self.HTTPMethodsEncodingParametersInURI containsObject:[[request HTTPMethod] uppercaseString]]) { - mutableRequest.URL = [NSURL URLWithString:[[mutableRequest.URL absoluteString] stringByAppendingFormat:mutableRequest.URL.query ? @"&%@" : @"?%@", query]]; - } else { - if (![mutableRequest valueForHTTPHeaderField:@"Content-Type"]) { - [mutableRequest setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"]; - } - [mutableRequest setHTTPBody:[query dataUsingEncoding:self.stringEncoding]]; - } - } - - return mutableRequest; -} - -#pragma mark - NSKeyValueObserving - -+ (BOOL)automaticallyNotifiesObserversForKey:(NSString *)key { - if ([AFHTTPRequestSerializerObservedKeyPaths() containsObject:key]) { - return NO; - } - - return [super automaticallyNotifiesObserversForKey:key]; -} - -- (void)observeValueForKeyPath:(NSString *)keyPath - ofObject:(__unused id)object - change:(NSDictionary *)change - context:(void *)context -{ - if (context == AFHTTPRequestSerializerObserverContext) { - if ([change[NSKeyValueChangeNewKey] isEqual:[NSNull null]]) { - [self.mutableObservedChangedKeyPaths removeObject:keyPath]; - } else { - [self.mutableObservedChangedKeyPaths addObject:keyPath]; - } - } -} - -#pragma mark - NSSecureCoding - -+ (BOOL)supportsSecureCoding { - return YES; -} - -- (id)initWithCoder:(NSCoder *)decoder { - self = [self init]; - if (!self) { - return nil; - } - - self.mutableHTTPRequestHeaders = [[decoder decodeObjectOfClass:[NSDictionary class] forKey:NSStringFromSelector(@selector(mutableHTTPRequestHeaders))] mutableCopy]; - self.queryStringSerializationStyle = [[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(queryStringSerializationStyle))] unsignedIntegerValue]; - - return self; -} - -- (void)encodeWithCoder:(NSCoder *)coder { - [coder encodeObject:self.mutableHTTPRequestHeaders forKey:NSStringFromSelector(@selector(mutableHTTPRequestHeaders))]; - [coder encodeInteger:self.queryStringSerializationStyle forKey:NSStringFromSelector(@selector(queryStringSerializationStyle))]; -} - -#pragma mark - NSCopying - -- (id)copyWithZone:(NSZone *)zone { - AFHTTPRequestSerializer *serializer = [[[self class] allocWithZone:zone] init]; - serializer.mutableHTTPRequestHeaders = [self.mutableHTTPRequestHeaders mutableCopyWithZone:zone]; - serializer.queryStringSerializationStyle = self.queryStringSerializationStyle; - serializer.queryStringSerialization = self.queryStringSerialization; - - return serializer; -} - -@end - -#pragma mark - - -static NSString * AFCreateMultipartFormBoundary() { - return [NSString stringWithFormat:@"Boundary+%08X%08X", arc4random(), arc4random()]; -} - -static NSString * const kAFMultipartFormCRLF = @"\r\n"; - -static inline NSString * AFMultipartFormInitialBoundary(NSString *boundary) { - return [NSString stringWithFormat:@"--%@%@", boundary, kAFMultipartFormCRLF]; -} - -static inline NSString * AFMultipartFormEncapsulationBoundary(NSString *boundary) { - return [NSString stringWithFormat:@"%@--%@%@", kAFMultipartFormCRLF, boundary, kAFMultipartFormCRLF]; -} - -static inline NSString * AFMultipartFormFinalBoundary(NSString *boundary) { - return [NSString stringWithFormat:@"%@--%@--%@", kAFMultipartFormCRLF, boundary, kAFMultipartFormCRLF]; -} - -static inline NSString * AFContentTypeForPathExtension(NSString *extension) { -#ifdef __UTTYPE__ - NSString *UTI = (__bridge_transfer NSString *)UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, (__bridge CFStringRef)extension, NULL); - NSString *contentType = (__bridge_transfer NSString *)UTTypeCopyPreferredTagWithClass((__bridge CFStringRef)UTI, kUTTagClassMIMEType); - if (!contentType) { - return @"application/octet-stream"; - } else { - return contentType; - } -#else -#pragma unused (extension) - return @"application/octet-stream"; -#endif -} - -NSUInteger const kAFUploadStream3GSuggestedPacketSize = 1024 * 16; -NSTimeInterval const kAFUploadStream3GSuggestedDelay = 0.2; - -@interface AFHTTPBodyPart : NSObject -@property (nonatomic, assign) NSStringEncoding stringEncoding; -@property (nonatomic, strong) NSDictionary *headers; -@property (nonatomic, copy) NSString *boundary; -@property (nonatomic, strong) id body; -@property (nonatomic, assign) unsigned long long bodyContentLength; -@property (nonatomic, strong) NSInputStream *inputStream; - -@property (nonatomic, assign) BOOL hasInitialBoundary; -@property (nonatomic, assign) BOOL hasFinalBoundary; - -@property (readonly, nonatomic, assign, getter = hasBytesAvailable) BOOL bytesAvailable; -@property (readonly, nonatomic, assign) unsigned long long contentLength; - -- (NSInteger)read:(uint8_t *)buffer - maxLength:(NSUInteger)length; -@end - -@interface AFMultipartBodyStream : NSInputStream -@property (nonatomic, assign) NSUInteger numberOfBytesInPacket; -@property (nonatomic, assign) NSTimeInterval delay; -@property (nonatomic, strong) NSInputStream *inputStream; -@property (readonly, nonatomic, assign) unsigned long long contentLength; -@property (readonly, nonatomic, assign, getter = isEmpty) BOOL empty; - -- (id)initWithStringEncoding:(NSStringEncoding)encoding; -- (void)setInitialAndFinalBoundaries; -- (void)appendHTTPBodyPart:(AFHTTPBodyPart *)bodyPart; -@end - -#pragma mark - - -@interface AFStreamingMultipartFormData () -@property (readwrite, nonatomic, copy) NSMutableURLRequest *request; -@property (readwrite, nonatomic, assign) NSStringEncoding stringEncoding; -@property (readwrite, nonatomic, copy) NSString *boundary; -@property (readwrite, nonatomic, strong) AFMultipartBodyStream *bodyStream; -@end - -@implementation AFStreamingMultipartFormData - -- (id)initWithURLRequest:(NSMutableURLRequest *)urlRequest - stringEncoding:(NSStringEncoding)encoding -{ - self = [super init]; - if (!self) { - return nil; - } - - self.request = urlRequest; - self.stringEncoding = encoding; - self.boundary = AFCreateMultipartFormBoundary(); - self.bodyStream = [[AFMultipartBodyStream alloc] initWithStringEncoding:encoding]; - - return self; -} - -- (BOOL)appendPartWithFileURL:(NSURL *)fileURL - name:(NSString *)name - error:(NSError * __autoreleasing *)error -{ - NSParameterAssert(fileURL); - NSParameterAssert(name); - - NSString *fileName = [fileURL lastPathComponent]; - NSString *mimeType = AFContentTypeForPathExtension([fileURL pathExtension]); - - return [self appendPartWithFileURL:fileURL name:name fileName:fileName mimeType:mimeType error:error]; -} - -- (BOOL)appendPartWithFileURL:(NSURL *)fileURL - name:(NSString *)name - fileName:(NSString *)fileName - mimeType:(NSString *)mimeType - error:(NSError * __autoreleasing *)error -{ - NSParameterAssert(fileURL); - NSParameterAssert(name); - NSParameterAssert(fileName); - NSParameterAssert(mimeType); - - if (![fileURL isFileURL]) { - NSDictionary *userInfo = @{NSLocalizedFailureReasonErrorKey: NSLocalizedStringFromTable(@"Expected URL to be a file URL", @"AFNetworking", nil)}; - if (error) { - *error = [[NSError alloc] initWithDomain:AFURLRequestSerializationErrorDomain code:NSURLErrorBadURL userInfo:userInfo]; - } - - return NO; - } else if ([fileURL checkResourceIsReachableAndReturnError:error] == NO) { - NSDictionary *userInfo = @{NSLocalizedFailureReasonErrorKey: NSLocalizedStringFromTable(@"File URL not reachable.", @"AFNetworking", nil)}; - if (error) { - *error = [[NSError alloc] initWithDomain:AFURLRequestSerializationErrorDomain code:NSURLErrorBadURL userInfo:userInfo]; - } - - return NO; - } - - NSDictionary *fileAttributes = [[NSFileManager defaultManager] attributesOfItemAtPath:[fileURL path] error:error]; - if (!fileAttributes) { - return NO; - } - - NSMutableDictionary *mutableHeaders = [NSMutableDictionary dictionary]; - [mutableHeaders setValue:[NSString stringWithFormat:@"form-data; name=\"%@\"; filename=\"%@\"", name, fileName] forKey:@"Content-Disposition"]; - [mutableHeaders setValue:mimeType forKey:@"Content-Type"]; - - AFHTTPBodyPart *bodyPart = [[AFHTTPBodyPart alloc] init]; - bodyPart.stringEncoding = self.stringEncoding; - bodyPart.headers = mutableHeaders; - bodyPart.boundary = self.boundary; - bodyPart.body = fileURL; - bodyPart.bodyContentLength = [[fileAttributes objectForKey:NSFileSize] unsignedLongLongValue]; - [self.bodyStream appendHTTPBodyPart:bodyPart]; - - return YES; -} - -- (void)appendPartWithInputStream:(NSInputStream *)inputStream - name:(NSString *)name - fileName:(NSString *)fileName - length:(int64_t)length - mimeType:(NSString *)mimeType -{ - NSParameterAssert(name); - NSParameterAssert(fileName); - NSParameterAssert(mimeType); - - NSMutableDictionary *mutableHeaders = [NSMutableDictionary dictionary]; - [mutableHeaders setValue:[NSString stringWithFormat:@"form-data; name=\"%@\"; filename=\"%@\"", name, fileName] forKey:@"Content-Disposition"]; - [mutableHeaders setValue:mimeType forKey:@"Content-Type"]; - - AFHTTPBodyPart *bodyPart = [[AFHTTPBodyPart alloc] init]; - bodyPart.stringEncoding = self.stringEncoding; - bodyPart.headers = mutableHeaders; - bodyPart.boundary = self.boundary; - bodyPart.body = inputStream; - - bodyPart.bodyContentLength = (unsigned long long)length; - - [self.bodyStream appendHTTPBodyPart:bodyPart]; -} - -- (void)appendPartWithFileData:(NSData *)data - name:(NSString *)name - fileName:(NSString *)fileName - mimeType:(NSString *)mimeType -{ - NSParameterAssert(name); - NSParameterAssert(fileName); - NSParameterAssert(mimeType); - - NSMutableDictionary *mutableHeaders = [NSMutableDictionary dictionary]; - [mutableHeaders setValue:[NSString stringWithFormat:@"form-data; name=\"%@\"; filename=\"%@\"", name, fileName] forKey:@"Content-Disposition"]; - [mutableHeaders setValue:mimeType forKey:@"Content-Type"]; - - [self appendPartWithHeaders:mutableHeaders body:data]; -} - -- (void)appendPartWithFormData:(NSData *)data - name:(NSString *)name -{ - NSParameterAssert(name); - - NSMutableDictionary *mutableHeaders = [NSMutableDictionary dictionary]; - [mutableHeaders setValue:[NSString stringWithFormat:@"form-data; name=\"%@\"", name] forKey:@"Content-Disposition"]; - - [self appendPartWithHeaders:mutableHeaders body:data]; -} - -- (void)appendPartWithHeaders:(NSDictionary *)headers - body:(NSData *)body -{ - NSParameterAssert(body); - - AFHTTPBodyPart *bodyPart = [[AFHTTPBodyPart alloc] init]; - bodyPart.stringEncoding = self.stringEncoding; - bodyPart.headers = headers; - bodyPart.boundary = self.boundary; - bodyPart.bodyContentLength = [body length]; - bodyPart.body = body; - - [self.bodyStream appendHTTPBodyPart:bodyPart]; -} - -- (void)throttleBandwidthWithPacketSize:(NSUInteger)numberOfBytes - delay:(NSTimeInterval)delay -{ - self.bodyStream.numberOfBytesInPacket = numberOfBytes; - self.bodyStream.delay = delay; -} - -- (NSMutableURLRequest *)requestByFinalizingMultipartFormData { - if ([self.bodyStream isEmpty]) { - return self.request; - } - - // Reset the initial and final boundaries to ensure correct Content-Length - [self.bodyStream setInitialAndFinalBoundaries]; - [self.request setHTTPBodyStream:self.bodyStream]; - - [self.request setValue:[NSString stringWithFormat:@"multipart/form-data; boundary=%@", self.boundary] forHTTPHeaderField:@"Content-Type"]; - [self.request setValue:[NSString stringWithFormat:@"%llu", [self.bodyStream contentLength]] forHTTPHeaderField:@"Content-Length"]; - - return self.request; -} - -@end - -#pragma mark - - -@interface NSStream () -@property (readwrite) NSStreamStatus streamStatus; -@property (readwrite, copy) NSError *streamError; -@end - -@interface AFMultipartBodyStream () -@property (readwrite, nonatomic, assign) NSStringEncoding stringEncoding; -@property (readwrite, nonatomic, strong) NSMutableArray *HTTPBodyParts; -@property (readwrite, nonatomic, strong) NSEnumerator *HTTPBodyPartEnumerator; -@property (readwrite, nonatomic, strong) AFHTTPBodyPart *currentHTTPBodyPart; -@property (readwrite, nonatomic, strong) NSOutputStream *outputStream; -@property (readwrite, nonatomic, strong) NSMutableData *buffer; -@end - -@implementation AFMultipartBodyStream -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wimplicit-atomic-properties" -#if (defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000) || (defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 1100) -@synthesize delegate; -#endif -@synthesize streamStatus; -@synthesize streamError; -#pragma clang diagnostic pop - -- (id)initWithStringEncoding:(NSStringEncoding)encoding { - self = [super init]; - if (!self) { - return nil; - } - - self.stringEncoding = encoding; - self.HTTPBodyParts = [NSMutableArray array]; - self.numberOfBytesInPacket = NSIntegerMax; - - return self; -} - -- (void)setInitialAndFinalBoundaries { - if ([self.HTTPBodyParts count] > 0) { - for (AFHTTPBodyPart *bodyPart in self.HTTPBodyParts) { - bodyPart.hasInitialBoundary = NO; - bodyPart.hasFinalBoundary = NO; - } - - [[self.HTTPBodyParts objectAtIndex:0] setHasInitialBoundary:YES]; - [[self.HTTPBodyParts lastObject] setHasFinalBoundary:YES]; - } -} - -- (void)appendHTTPBodyPart:(AFHTTPBodyPart *)bodyPart { - [self.HTTPBodyParts addObject:bodyPart]; -} - -- (BOOL)isEmpty { - return [self.HTTPBodyParts count] == 0; -} - -#pragma mark - NSInputStream - -- (NSInteger)read:(uint8_t *)buffer - maxLength:(NSUInteger)length -{ - if ([self streamStatus] == NSStreamStatusClosed) { - return 0; - } - - NSInteger totalNumberOfBytesRead = 0; - -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgnu" - while ((NSUInteger)totalNumberOfBytesRead < MIN(length, self.numberOfBytesInPacket)) { - if (!self.currentHTTPBodyPart || ![self.currentHTTPBodyPart hasBytesAvailable]) { - if (!(self.currentHTTPBodyPart = [self.HTTPBodyPartEnumerator nextObject])) { - break; - } - } else { - NSUInteger maxLength = length - (NSUInteger)totalNumberOfBytesRead; - NSInteger numberOfBytesRead = [self.currentHTTPBodyPart read:&buffer[totalNumberOfBytesRead] maxLength:maxLength]; - if (numberOfBytesRead == -1) { - self.streamError = self.currentHTTPBodyPart.inputStream.streamError; - break; - } else { - totalNumberOfBytesRead += numberOfBytesRead; - - if (self.delay > 0.0f) { - [NSThread sleepForTimeInterval:self.delay]; - } - } - } - } -#pragma clang diagnostic pop - - return totalNumberOfBytesRead; -} - -- (BOOL)getBuffer:(__unused uint8_t **)buffer - length:(__unused NSUInteger *)len -{ - return NO; -} - -- (BOOL)hasBytesAvailable { - return [self streamStatus] == NSStreamStatusOpen; -} - -#pragma mark - NSStream - -- (void)open { - if (self.streamStatus == NSStreamStatusOpen) { - return; - } - - self.streamStatus = NSStreamStatusOpen; - - [self setInitialAndFinalBoundaries]; - self.HTTPBodyPartEnumerator = [self.HTTPBodyParts objectEnumerator]; -} - -- (void)close { - self.streamStatus = NSStreamStatusClosed; -} - -- (id)propertyForKey:(__unused NSString *)key { - return nil; -} - -- (BOOL)setProperty:(__unused id)property - forKey:(__unused NSString *)key -{ - return NO; -} - -- (void)scheduleInRunLoop:(__unused NSRunLoop *)aRunLoop - forMode:(__unused NSString *)mode -{} - -- (void)removeFromRunLoop:(__unused NSRunLoop *)aRunLoop - forMode:(__unused NSString *)mode -{} - -- (unsigned long long)contentLength { - unsigned long long length = 0; - for (AFHTTPBodyPart *bodyPart in self.HTTPBodyParts) { - length += [bodyPart contentLength]; - } - - return length; -} - -#pragma mark - Undocumented CFReadStream Bridged Methods - -- (void)_scheduleInCFRunLoop:(__unused CFRunLoopRef)aRunLoop - forMode:(__unused CFStringRef)aMode -{} - -- (void)_unscheduleFromCFRunLoop:(__unused CFRunLoopRef)aRunLoop - forMode:(__unused CFStringRef)aMode -{} - -- (BOOL)_setCFClientFlags:(__unused CFOptionFlags)inFlags - callback:(__unused CFReadStreamClientCallBack)inCallback - context:(__unused CFStreamClientContext *)inContext { - return NO; -} - -#pragma mark - NSCopying - --(id)copyWithZone:(NSZone *)zone { - AFMultipartBodyStream *bodyStreamCopy = [[[self class] allocWithZone:zone] initWithStringEncoding:self.stringEncoding]; - - for (AFHTTPBodyPart *bodyPart in self.HTTPBodyParts) { - [bodyStreamCopy appendHTTPBodyPart:[bodyPart copy]]; - } - - [bodyStreamCopy setInitialAndFinalBoundaries]; - - return bodyStreamCopy; -} - -@end - -#pragma mark - - -typedef enum { - AFEncapsulationBoundaryPhase = 1, - AFHeaderPhase = 2, - AFBodyPhase = 3, - AFFinalBoundaryPhase = 4, -} AFHTTPBodyPartReadPhase; - -@interface AFHTTPBodyPart () { - AFHTTPBodyPartReadPhase _phase; - NSInputStream *_inputStream; - unsigned long long _phaseReadOffset; -} - -- (BOOL)transitionToNextPhase; -- (NSInteger)readData:(NSData *)data - intoBuffer:(uint8_t *)buffer - maxLength:(NSUInteger)length; -@end - -@implementation AFHTTPBodyPart - -- (id)init { - self = [super init]; - if (!self) { - return nil; - } - - [self transitionToNextPhase]; - - return self; -} - -- (void)dealloc { - if (_inputStream) { - [_inputStream close]; - _inputStream = nil; - } -} - -- (NSInputStream *)inputStream { - if (!_inputStream) { - if ([self.body isKindOfClass:[NSData class]]) { - _inputStream = [NSInputStream inputStreamWithData:self.body]; - } else if ([self.body isKindOfClass:[NSURL class]]) { - _inputStream = [NSInputStream inputStreamWithURL:self.body]; - } else if ([self.body isKindOfClass:[NSInputStream class]]) { - _inputStream = self.body; - } else { - _inputStream = [NSInputStream inputStreamWithData:[NSData data]]; - } - } - - return _inputStream; -} - -- (NSString *)stringForHeaders { - NSMutableString *headerString = [NSMutableString string]; - for (NSString *field in [self.headers allKeys]) { - [headerString appendString:[NSString stringWithFormat:@"%@: %@%@", field, [self.headers valueForKey:field], kAFMultipartFormCRLF]]; - } - [headerString appendString:kAFMultipartFormCRLF]; - - return [NSString stringWithString:headerString]; -} - -- (unsigned long long)contentLength { - unsigned long long length = 0; - - NSData *encapsulationBoundaryData = [([self hasInitialBoundary] ? AFMultipartFormInitialBoundary(self.boundary) : AFMultipartFormEncapsulationBoundary(self.boundary)) dataUsingEncoding:self.stringEncoding]; - length += [encapsulationBoundaryData length]; - - NSData *headersData = [[self stringForHeaders] dataUsingEncoding:self.stringEncoding]; - length += [headersData length]; - - length += _bodyContentLength; - - NSData *closingBoundaryData = ([self hasFinalBoundary] ? [AFMultipartFormFinalBoundary(self.boundary) dataUsingEncoding:self.stringEncoding] : [NSData data]); - length += [closingBoundaryData length]; - - return length; -} - -- (BOOL)hasBytesAvailable { - // Allows `read:maxLength:` to be called again if `AFMultipartFormFinalBoundary` doesn't fit into the available buffer - if (_phase == AFFinalBoundaryPhase) { - return YES; - } - -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wcovered-switch-default" - switch (self.inputStream.streamStatus) { - case NSStreamStatusNotOpen: - case NSStreamStatusOpening: - case NSStreamStatusOpen: - case NSStreamStatusReading: - case NSStreamStatusWriting: - return YES; - case NSStreamStatusAtEnd: - case NSStreamStatusClosed: - case NSStreamStatusError: - default: - return NO; - } -#pragma clang diagnostic pop -} - -- (NSInteger)read:(uint8_t *)buffer - maxLength:(NSUInteger)length -{ - NSInteger totalNumberOfBytesRead = 0; - - if (_phase == AFEncapsulationBoundaryPhase) { - NSData *encapsulationBoundaryData = [([self hasInitialBoundary] ? AFMultipartFormInitialBoundary(self.boundary) : AFMultipartFormEncapsulationBoundary(self.boundary)) dataUsingEncoding:self.stringEncoding]; - totalNumberOfBytesRead += [self readData:encapsulationBoundaryData intoBuffer:&buffer[totalNumberOfBytesRead] maxLength:(length - (NSUInteger)totalNumberOfBytesRead)]; - } - - if (_phase == AFHeaderPhase) { - NSData *headersData = [[self stringForHeaders] dataUsingEncoding:self.stringEncoding]; - totalNumberOfBytesRead += [self readData:headersData intoBuffer:&buffer[totalNumberOfBytesRead] maxLength:(length - (NSUInteger)totalNumberOfBytesRead)]; - } - - if (_phase == AFBodyPhase) { - NSInteger numberOfBytesRead = 0; - - numberOfBytesRead = [self.inputStream read:&buffer[totalNumberOfBytesRead] maxLength:(length - (NSUInteger)totalNumberOfBytesRead)]; - if (numberOfBytesRead == -1) { - return -1; - } else { - totalNumberOfBytesRead += numberOfBytesRead; - - if ([self.inputStream streamStatus] >= NSStreamStatusAtEnd) { - [self transitionToNextPhase]; - } - } - } - - if (_phase == AFFinalBoundaryPhase) { - NSData *closingBoundaryData = ([self hasFinalBoundary] ? [AFMultipartFormFinalBoundary(self.boundary) dataUsingEncoding:self.stringEncoding] : [NSData data]); - totalNumberOfBytesRead += [self readData:closingBoundaryData intoBuffer:&buffer[totalNumberOfBytesRead] maxLength:(length - (NSUInteger)totalNumberOfBytesRead)]; - } - - return totalNumberOfBytesRead; -} - -- (NSInteger)readData:(NSData *)data - intoBuffer:(uint8_t *)buffer - maxLength:(NSUInteger)length -{ -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgnu" - NSRange range = NSMakeRange((NSUInteger)_phaseReadOffset, MIN([data length] - ((NSUInteger)_phaseReadOffset), length)); - [data getBytes:buffer range:range]; -#pragma clang diagnostic pop - - _phaseReadOffset += range.length; - - if (((NSUInteger)_phaseReadOffset) >= [data length]) { - [self transitionToNextPhase]; - } - - return (NSInteger)range.length; -} - -- (BOOL)transitionToNextPhase { - if (![[NSThread currentThread] isMainThread]) { - dispatch_sync(dispatch_get_main_queue(), ^{ - [self transitionToNextPhase]; - }); - return YES; - } - -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wcovered-switch-default" - switch (_phase) { - case AFEncapsulationBoundaryPhase: - _phase = AFHeaderPhase; - break; - case AFHeaderPhase: - [self.inputStream scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSRunLoopCommonModes]; - [self.inputStream open]; - _phase = AFBodyPhase; - break; - case AFBodyPhase: - [self.inputStream close]; - _phase = AFFinalBoundaryPhase; - break; - case AFFinalBoundaryPhase: - default: - _phase = AFEncapsulationBoundaryPhase; - break; - } - _phaseReadOffset = 0; -#pragma clang diagnostic pop - - return YES; -} - -#pragma mark - NSCopying - -- (id)copyWithZone:(NSZone *)zone { - AFHTTPBodyPart *bodyPart = [[[self class] allocWithZone:zone] init]; - - bodyPart.stringEncoding = self.stringEncoding; - bodyPart.headers = self.headers; - bodyPart.bodyContentLength = self.bodyContentLength; - bodyPart.body = self.body; - bodyPart.boundary = self.boundary; - - return bodyPart; -} - -@end - -#pragma mark - - -@implementation AFJSONRequestSerializer - -+ (instancetype)serializer { - return [self serializerWithWritingOptions:(NSJSONWritingOptions)0]; -} - -+ (instancetype)serializerWithWritingOptions:(NSJSONWritingOptions)writingOptions -{ - AFJSONRequestSerializer *serializer = [[self alloc] init]; - serializer.writingOptions = writingOptions; - - return serializer; -} - -#pragma mark - AFURLRequestSerialization - -- (NSURLRequest *)requestBySerializingRequest:(NSURLRequest *)request - withParameters:(id)parameters - error:(NSError *__autoreleasing *)error -{ - NSParameterAssert(request); - - if ([self.HTTPMethodsEncodingParametersInURI containsObject:[[request HTTPMethod] uppercaseString]]) { - return [super requestBySerializingRequest:request withParameters:parameters error:error]; - } - - NSMutableURLRequest *mutableRequest = [request mutableCopy]; - - [self.HTTPRequestHeaders enumerateKeysAndObjectsUsingBlock:^(id field, id value, BOOL * __unused stop) { - if (![request valueForHTTPHeaderField:field]) { - [mutableRequest setValue:value forHTTPHeaderField:field]; - } - }]; - - if (parameters) { - if (![mutableRequest valueForHTTPHeaderField:@"Content-Type"]) { - [mutableRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"]; - } - - [mutableRequest setHTTPBody:[NSJSONSerialization dataWithJSONObject:parameters options:self.writingOptions error:error]]; - } - - return mutableRequest; -} - -#pragma mark - NSSecureCoding - -- (id)initWithCoder:(NSCoder *)decoder { - self = [super initWithCoder:decoder]; - if (!self) { - return nil; - } - - self.writingOptions = [[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(writingOptions))] unsignedIntegerValue]; - - return self; -} - -- (void)encodeWithCoder:(NSCoder *)coder { - [super encodeWithCoder:coder]; - - [coder encodeInteger:self.writingOptions forKey:NSStringFromSelector(@selector(writingOptions))]; -} - -#pragma mark - NSCopying - -- (id)copyWithZone:(NSZone *)zone { - AFJSONRequestSerializer *serializer = [super copyWithZone:zone]; - serializer.writingOptions = self.writingOptions; - - return serializer; -} - -@end - -#pragma mark - - -@implementation AFPropertyListRequestSerializer - -+ (instancetype)serializer { - return [self serializerWithFormat:NSPropertyListXMLFormat_v1_0 writeOptions:0]; -} - -+ (instancetype)serializerWithFormat:(NSPropertyListFormat)format - writeOptions:(NSPropertyListWriteOptions)writeOptions -{ - AFPropertyListRequestSerializer *serializer = [[self alloc] init]; - serializer.format = format; - serializer.writeOptions = writeOptions; - - return serializer; -} - -#pragma mark - AFURLRequestSerializer - -- (NSURLRequest *)requestBySerializingRequest:(NSURLRequest *)request - withParameters:(id)parameters - error:(NSError *__autoreleasing *)error -{ - NSParameterAssert(request); - - if ([self.HTTPMethodsEncodingParametersInURI containsObject:[[request HTTPMethod] uppercaseString]]) { - return [super requestBySerializingRequest:request withParameters:parameters error:error]; - } - - NSMutableURLRequest *mutableRequest = [request mutableCopy]; - - [self.HTTPRequestHeaders enumerateKeysAndObjectsUsingBlock:^(id field, id value, BOOL * __unused stop) { - if (![request valueForHTTPHeaderField:field]) { - [mutableRequest setValue:value forHTTPHeaderField:field]; - } - }]; - - if (parameters) { - if (![mutableRequest valueForHTTPHeaderField:@"Content-Type"]) { - [mutableRequest setValue:@"application/x-plist" forHTTPHeaderField:@"Content-Type"]; - } - - [mutableRequest setHTTPBody:[NSPropertyListSerialization dataWithPropertyList:parameters format:self.format options:self.writeOptions error:error]]; - } - - return mutableRequest; -} - -#pragma mark - NSSecureCoding - -- (id)initWithCoder:(NSCoder *)decoder { - self = [super initWithCoder:decoder]; - if (!self) { - return nil; - } - - self.format = [[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(format))] unsignedIntegerValue]; - self.writeOptions = [[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(writeOptions))] unsignedIntegerValue]; - - return self; -} - -- (void)encodeWithCoder:(NSCoder *)coder { - [super encodeWithCoder:coder]; - - [coder encodeInteger:self.format forKey:NSStringFromSelector(@selector(format))]; - [coder encodeObject:@(self.writeOptions) forKey:NSStringFromSelector(@selector(writeOptions))]; -} - -#pragma mark - NSCopying - -- (id)copyWithZone:(NSZone *)zone { - AFPropertyListRequestSerializer *serializer = [super copyWithZone:zone]; - serializer.format = self.format; - serializer.writeOptions = self.writeOptions; - - return serializer; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLResponseSerialization.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLResponseSerialization.h deleted file mode 100644 index 9cd4ad2dd98..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLResponseSerialization.h +++ /dev/null @@ -1,309 +0,0 @@ -// AFURLResponseSerialization.h -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import -#import - -/** - The `AFURLResponseSerialization` protocol is adopted by an object that decodes data into a more useful object representation, according to details in the server response. Response serializers may additionally perform validation on the incoming response and data. - - For example, a JSON response serializer may check for an acceptable status code (`2XX` range) and content type (`application/json`), decoding a valid JSON response into an object. - */ -@protocol AFURLResponseSerialization - -/** - The response object decoded from the data associated with a specified response. - - @param response The response to be processed. - @param data The response data to be decoded. - @param error The error that occurred while attempting to decode the response data. - - @return The object decoded from the specified response data. - */ -- (id)responseObjectForResponse:(NSURLResponse *)response - data:(NSData *)data - error:(NSError *__autoreleasing *)error; - -@end - -#pragma mark - - -/** - `AFHTTPResponseSerializer` conforms to the `AFURLRequestSerialization` & `AFURLResponseSerialization` protocols, offering a concrete base implementation of query string / URL form-encoded parameter serialization and default request headers, as well as response status code and content type validation. - - Any request or response serializer dealing with HTTP is encouraged to subclass `AFHTTPResponseSerializer` in order to ensure consistent default behavior. - */ -@interface AFHTTPResponseSerializer : NSObject - -- (instancetype) init; - -/** - The string encoding used to serialize data received from the server, when no string encoding is specified by the response. `NSUTF8StringEncoding` by default. - */ -@property (nonatomic, assign) NSStringEncoding stringEncoding; - -/** - Creates and returns a serializer with default configuration. - */ -+ (instancetype)serializer; - -///----------------------------------------- -/// @name Configuring Response Serialization -///----------------------------------------- - -/** - The acceptable HTTP status codes for responses. When non-`nil`, responses with status codes not contained by the set will result in an error during validation. - - See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html - */ -@property (nonatomic, copy) NSIndexSet *acceptableStatusCodes; - -/** - The acceptable MIME types for responses. When non-`nil`, responses with a `Content-Type` with MIME types that do not intersect with the set will result in an error during validation. - */ -@property (nonatomic, copy) NSSet *acceptableContentTypes; - -/** - Validates the specified response and data. - - In its base implementation, this method checks for an acceptable status code and content type. Subclasses may wish to add other domain-specific checks. - - @param response The response to be validated. - @param data The data associated with the response. - @param error The error that occurred while attempting to validate the response. - - @return `YES` if the response is valid, otherwise `NO`. - */ -- (BOOL)validateResponse:(NSHTTPURLResponse *)response - data:(NSData *)data - error:(NSError *__autoreleasing *)error; - -@end - -#pragma mark - - - -/** - `AFJSONResponseSerializer` is a subclass of `AFHTTPResponseSerializer` that validates and decodes JSON responses. - - By default, `AFJSONResponseSerializer` accepts the following MIME types, which includes the official standard, `application/json`, as well as other commonly-used types: - - - `application/json` - - `text/json` - - `text/javascript` - */ -@interface AFJSONResponseSerializer : AFHTTPResponseSerializer - -- (instancetype) init; - -/** - Options for reading the response JSON data and creating the Foundation objects. For possible values, see the `NSJSONSerialization` documentation section "NSJSONReadingOptions". `0` by default. - */ -@property (nonatomic, assign) NSJSONReadingOptions readingOptions; - -/** - Whether to remove keys with `NSNull` values from response JSON. Defaults to `NO`. - */ -@property (nonatomic, assign) BOOL removesKeysWithNullValues; - -/** - Creates and returns a JSON serializer with specified reading and writing options. - - @param readingOptions The specified JSON reading options. - */ -+ (instancetype)serializerWithReadingOptions:(NSJSONReadingOptions)readingOptions; - -@end - -#pragma mark - - -/** - `AFXMLParserResponseSerializer` is a subclass of `AFHTTPResponseSerializer` that validates and decodes XML responses as an `NSXMLParser` objects. - - By default, `AFXMLParserResponseSerializer` accepts the following MIME types, which includes the official standard, `application/xml`, as well as other commonly-used types: - - - `application/xml` - - `text/xml` - */ -@interface AFXMLParserResponseSerializer : AFHTTPResponseSerializer - -@end - -#pragma mark - - -#ifdef __MAC_OS_X_VERSION_MIN_REQUIRED - -/** - `AFXMLDocumentResponseSerializer` is a subclass of `AFHTTPResponseSerializer` that validates and decodes XML responses as an `NSXMLDocument` objects. - - By default, `AFXMLDocumentResponseSerializer` accepts the following MIME types, which includes the official standard, `application/xml`, as well as other commonly-used types: - - - `application/xml` - - `text/xml` - */ -@interface AFXMLDocumentResponseSerializer : AFHTTPResponseSerializer - -- (instancetype) init; - -/** - Input and output options specifically intended for `NSXMLDocument` objects. For possible values, see the `NSJSONSerialization` documentation section "NSJSONReadingOptions". `0` by default. - */ -@property (nonatomic, assign) NSUInteger options; - -/** - Creates and returns an XML document serializer with the specified options. - - @param mask The XML document options. - */ -+ (instancetype)serializerWithXMLDocumentOptions:(NSUInteger)mask; - -@end - -#endif - -#pragma mark - - -/** - `AFPropertyListResponseSerializer` is a subclass of `AFHTTPResponseSerializer` that validates and decodes XML responses as an `NSXMLDocument` objects. - - By default, `AFPropertyListResponseSerializer` accepts the following MIME types: - - - `application/x-plist` - */ -@interface AFPropertyListResponseSerializer : AFHTTPResponseSerializer - -- (instancetype) init; - -/** - The property list format. Possible values are described in "NSPropertyListFormat". - */ -@property (nonatomic, assign) NSPropertyListFormat format; - -/** - The property list reading options. Possible values are described in "NSPropertyListMutabilityOptions." - */ -@property (nonatomic, assign) NSPropertyListReadOptions readOptions; - -/** - Creates and returns a property list serializer with a specified format, read options, and write options. - - @param format The property list format. - @param readOptions The property list reading options. - */ -+ (instancetype)serializerWithFormat:(NSPropertyListFormat)format - readOptions:(NSPropertyListReadOptions)readOptions; - -@end - -#pragma mark - - -/** - `AFImageResponseSerializer` is a subclass of `AFHTTPResponseSerializer` that validates and decodes image responses. - - By default, `AFImageResponseSerializer` accepts the following MIME types, which correspond to the image formats supported by UIImage or NSImage: - - - `image/tiff` - - `image/jpeg` - - `image/gif` - - `image/png` - - `image/ico` - - `image/x-icon` - - `image/bmp` - - `image/x-bmp` - - `image/x-xbitmap` - - `image/x-win-bitmap` - */ -@interface AFImageResponseSerializer : AFHTTPResponseSerializer - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) -/** - The scale factor used when interpreting the image data to construct `responseImage`. Specifying a scale factor of 1.0 results in an image whose size matches the pixel-based dimensions of the image. Applying a different scale factor changes the size of the image as reported by the size property. This is set to the value of scale of the main screen by default, which automatically scales images for retina displays, for instance. - */ -@property (nonatomic, assign) CGFloat imageScale; - -/** - Whether to automatically inflate response image data for compressed formats (such as PNG or JPEG). Enabling this can significantly improve drawing performance on iOS when used with `setCompletionBlockWithSuccess:failure:`, as it allows a bitmap representation to be constructed in the background rather than on the main thread. `YES` by default. - */ -@property (nonatomic, assign) BOOL automaticallyInflatesResponseImage; -#endif - -@end - -#pragma mark - - -/** - `AFCompoundSerializer` is a subclass of `AFHTTPResponseSerializer` that delegates the response serialization to the first `AFHTTPResponseSerializer` object that returns an object for `responseObjectForResponse:data:error:`, falling back on the default behavior of `AFHTTPResponseSerializer`. This is useful for supporting multiple potential types and structures of server responses with a single serializer. - */ -@interface AFCompoundResponseSerializer : AFHTTPResponseSerializer - -/** - The component response serializers. - */ -@property (readonly, nonatomic, copy) NSArray *responseSerializers; - -/** - Creates and returns a compound serializer comprised of the specified response serializers. - - @warning Each response serializer specified must be a subclass of `AFHTTPResponseSerializer`, and response to `-validateResponse:data:error:`. - */ -+ (instancetype)compoundSerializerWithResponseSerializers:(NSArray *)responseSerializers; - -@end - -///---------------- -/// @name Constants -///---------------- - -/** - ## Error Domains - - The following error domain is predefined. - - - `NSString * const AFURLResponseSerializationErrorDomain` - - ### Constants - - `AFURLResponseSerializationErrorDomain` - AFURLResponseSerializer errors. Error codes for `AFURLResponseSerializationErrorDomain` correspond to codes in `NSURLErrorDomain`. - */ -extern NSString * const AFURLResponseSerializationErrorDomain; - -/** - ## User info dictionary keys - - These keys may exist in the user info dictionary, in addition to those defined for NSError. - - - `NSString * const AFNetworkingOperationFailingURLResponseErrorKey` - - `NSString * const AFNetworkingOperationFailingURLResponseDataErrorKey` - - ### Constants - - `AFNetworkingOperationFailingURLResponseErrorKey` - The corresponding value is an `NSURLResponse` containing the response of the operation associated with an error. This key is only present in the `AFURLResponseSerializationErrorDomain`. - - `AFNetworkingOperationFailingURLResponseDataErrorKey` - The corresponding value is an `NSData` containing the original data of the operation associated with an error. This key is only present in the `AFURLResponseSerializationErrorDomain`. - */ -extern NSString * const AFNetworkingOperationFailingURLResponseErrorKey; - -extern NSString * const AFNetworkingOperationFailingURLResponseDataErrorKey; - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLResponseSerialization.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLResponseSerialization.m deleted file mode 100644 index a672d205ca4..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLResponseSerialization.m +++ /dev/null @@ -1,797 +0,0 @@ -// AFURLResponseSerialization.m -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import "AFURLResponseSerialization.h" - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) -#import -#elif defined(__MAC_OS_X_VERSION_MIN_REQUIRED) -#import -#endif - -NSString * const AFURLResponseSerializationErrorDomain = @"com.alamofire.error.serialization.response"; -NSString * const AFNetworkingOperationFailingURLResponseErrorKey = @"com.alamofire.serialization.response.error.response"; -NSString * const AFNetworkingOperationFailingURLResponseDataErrorKey = @"com.alamofire.serialization.response.error.data"; - -static NSError * AFErrorWithUnderlyingError(NSError *error, NSError *underlyingError) { - if (!error) { - return underlyingError; - } - - if (!underlyingError || error.userInfo[NSUnderlyingErrorKey]) { - return error; - } - - NSMutableDictionary *mutableUserInfo = [error.userInfo mutableCopy]; - mutableUserInfo[NSUnderlyingErrorKey] = underlyingError; - - return [[NSError alloc] initWithDomain:error.domain code:error.code userInfo:mutableUserInfo]; -} - -static BOOL AFErrorOrUnderlyingErrorHasCodeInDomain(NSError *error, NSInteger code, NSString *domain) { - if ([error.domain isEqualToString:domain] && error.code == code) { - return YES; - } else if (error.userInfo[NSUnderlyingErrorKey]) { - return AFErrorOrUnderlyingErrorHasCodeInDomain(error.userInfo[NSUnderlyingErrorKey], code, domain); - } - - return NO; -} - -static id AFJSONObjectByRemovingKeysWithNullValues(id JSONObject, NSJSONReadingOptions readingOptions) { - if ([JSONObject isKindOfClass:[NSArray class]]) { - NSMutableArray *mutableArray = [NSMutableArray arrayWithCapacity:[(NSArray *)JSONObject count]]; - for (id value in (NSArray *)JSONObject) { - [mutableArray addObject:AFJSONObjectByRemovingKeysWithNullValues(value, readingOptions)]; - } - - return (readingOptions & NSJSONReadingMutableContainers) ? mutableArray : [NSArray arrayWithArray:mutableArray]; - } else if ([JSONObject isKindOfClass:[NSDictionary class]]) { - NSMutableDictionary *mutableDictionary = [NSMutableDictionary dictionaryWithDictionary:JSONObject]; - for (id key in [(NSDictionary *)JSONObject allKeys]) { - id value = [(NSDictionary *)JSONObject objectForKey:key]; - if (!value || [value isEqual:[NSNull null]]) { - [mutableDictionary removeObjectForKey:key]; - } else if ([value isKindOfClass:[NSArray class]] || [value isKindOfClass:[NSDictionary class]]) { - [mutableDictionary setObject:AFJSONObjectByRemovingKeysWithNullValues(value, readingOptions) forKey:key]; - } - } - - return (readingOptions & NSJSONReadingMutableContainers) ? mutableDictionary : [NSDictionary dictionaryWithDictionary:mutableDictionary]; - } - - return JSONObject; -} - -@implementation AFHTTPResponseSerializer - -+ (instancetype)serializer { - return [[self alloc] init]; -} - -- (instancetype)init { - self = [super init]; - if (!self) { - return nil; - } - - self.stringEncoding = NSUTF8StringEncoding; - - self.acceptableStatusCodes = [NSIndexSet indexSetWithIndexesInRange:NSMakeRange(200, 100)]; - self.acceptableContentTypes = nil; - - return self; -} - -#pragma mark - - -- (BOOL)validateResponse:(NSHTTPURLResponse *)response - data:(NSData *)data - error:(NSError * __autoreleasing *)error -{ - BOOL responseIsValid = YES; - NSError *validationError = nil; - - if (response && [response isKindOfClass:[NSHTTPURLResponse class]]) { - if (self.acceptableContentTypes && ![self.acceptableContentTypes containsObject:[response MIMEType]]) { - if ([data length] > 0 && [response URL]) { - NSMutableDictionary *mutableUserInfo = [@{ - NSLocalizedDescriptionKey: [NSString stringWithFormat:NSLocalizedStringFromTable(@"Request failed: unacceptable content-type: %@", @"AFNetworking", nil), [response MIMEType]], - NSURLErrorFailingURLErrorKey:[response URL], - AFNetworkingOperationFailingURLResponseErrorKey: response, - } mutableCopy]; - if (data) { - mutableUserInfo[AFNetworkingOperationFailingURLResponseDataErrorKey] = data; - } - - validationError = AFErrorWithUnderlyingError([NSError errorWithDomain:AFURLResponseSerializationErrorDomain code:NSURLErrorCannotDecodeContentData userInfo:mutableUserInfo], validationError); - } - - responseIsValid = NO; - } - - if (self.acceptableStatusCodes && ![self.acceptableStatusCodes containsIndex:(NSUInteger)response.statusCode] && [response URL]) { - NSMutableDictionary *mutableUserInfo = [@{ - NSLocalizedDescriptionKey: [NSString stringWithFormat:NSLocalizedStringFromTable(@"Request failed: %@ (%ld)", @"AFNetworking", nil), [NSHTTPURLResponse localizedStringForStatusCode:response.statusCode], (long)response.statusCode], - NSURLErrorFailingURLErrorKey:[response URL], - AFNetworkingOperationFailingURLResponseErrorKey: response, - } mutableCopy]; - - if (data) { - mutableUserInfo[AFNetworkingOperationFailingURLResponseDataErrorKey] = data; - } - - validationError = AFErrorWithUnderlyingError([NSError errorWithDomain:AFURLResponseSerializationErrorDomain code:NSURLErrorBadServerResponse userInfo:mutableUserInfo], validationError); - - responseIsValid = NO; - } - } - - if (error && !responseIsValid) { - *error = validationError; - } - - return responseIsValid; -} - -#pragma mark - AFURLResponseSerialization - -- (id)responseObjectForResponse:(NSURLResponse *)response - data:(NSData *)data - error:(NSError *__autoreleasing *)error -{ - [self validateResponse:(NSHTTPURLResponse *)response data:data error:error]; - - return data; -} - -#pragma mark - NSSecureCoding - -+ (BOOL)supportsSecureCoding { - return YES; -} - -- (id)initWithCoder:(NSCoder *)decoder { - self = [self init]; - if (!self) { - return nil; - } - - self.acceptableStatusCodes = [decoder decodeObjectOfClass:[NSIndexSet class] forKey:NSStringFromSelector(@selector(acceptableStatusCodes))]; - self.acceptableContentTypes = [decoder decodeObjectOfClass:[NSIndexSet class] forKey:NSStringFromSelector(@selector(acceptableContentTypes))]; - - return self; -} - -- (void)encodeWithCoder:(NSCoder *)coder { - [coder encodeObject:self.acceptableStatusCodes forKey:NSStringFromSelector(@selector(acceptableStatusCodes))]; - [coder encodeObject:self.acceptableContentTypes forKey:NSStringFromSelector(@selector(acceptableContentTypes))]; -} - -#pragma mark - NSCopying - -- (id)copyWithZone:(NSZone *)zone { - AFHTTPResponseSerializer *serializer = [[[self class] allocWithZone:zone] init]; - serializer.acceptableStatusCodes = [self.acceptableStatusCodes copyWithZone:zone]; - serializer.acceptableContentTypes = [self.acceptableContentTypes copyWithZone:zone]; - - return serializer; -} - -@end - -#pragma mark - - -@implementation AFJSONResponseSerializer - -+ (instancetype)serializer { - return [self serializerWithReadingOptions:(NSJSONReadingOptions)0]; -} - -+ (instancetype)serializerWithReadingOptions:(NSJSONReadingOptions)readingOptions { - AFJSONResponseSerializer *serializer = [[self alloc] init]; - serializer.readingOptions = readingOptions; - - return serializer; -} - -- (instancetype)init { - self = [super init]; - if (!self) { - return nil; - } - - self.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript", nil]; - - return self; -} - -#pragma mark - AFURLResponseSerialization - -- (id)responseObjectForResponse:(NSURLResponse *)response - data:(NSData *)data - error:(NSError *__autoreleasing *)error -{ - if (![self validateResponse:(NSHTTPURLResponse *)response data:data error:error]) { - if (!error || AFErrorOrUnderlyingErrorHasCodeInDomain(*error, NSURLErrorCannotDecodeContentData, AFURLResponseSerializationErrorDomain)) { - return nil; - } - } - - // Workaround for behavior of Rails to return a single space for `head :ok` (a workaround for a bug in Safari), which is not interpreted as valid input by NSJSONSerialization. - // See https://github.com/rails/rails/issues/1742 - NSStringEncoding stringEncoding = self.stringEncoding; - if (response.textEncodingName) { - CFStringEncoding encoding = CFStringConvertIANACharSetNameToEncoding((CFStringRef)response.textEncodingName); - if (encoding != kCFStringEncodingInvalidId) { - stringEncoding = CFStringConvertEncodingToNSStringEncoding(encoding); - } - } - - id responseObject = nil; - NSError *serializationError = nil; - @autoreleasepool { - NSString *responseString = [[NSString alloc] initWithData:data encoding:stringEncoding]; - if (responseString && ![responseString isEqualToString:@" "]) { - // Workaround for a bug in NSJSONSerialization when Unicode character escape codes are used instead of the actual character - // See http://stackoverflow.com/a/12843465/157142 - data = [responseString dataUsingEncoding:NSUTF8StringEncoding]; - - if (data) { - if ([data length] > 0) { - responseObject = [NSJSONSerialization JSONObjectWithData:data options:self.readingOptions error:&serializationError]; - } else { - return nil; - } - } else { - NSDictionary *userInfo = @{ - NSLocalizedDescriptionKey: NSLocalizedStringFromTable(@"Data failed decoding as a UTF-8 string", @"AFNetworking", nil), - NSLocalizedFailureReasonErrorKey: [NSString stringWithFormat:NSLocalizedStringFromTable(@"Could not decode string: %@", @"AFNetworking", nil), responseString] - }; - - serializationError = [NSError errorWithDomain:AFURLResponseSerializationErrorDomain code:NSURLErrorCannotDecodeContentData userInfo:userInfo]; - } - } - } - - if (self.removesKeysWithNullValues && responseObject) { - responseObject = AFJSONObjectByRemovingKeysWithNullValues(responseObject, self.readingOptions); - } - - if (error) { - *error = AFErrorWithUnderlyingError(serializationError, *error); - } - - return responseObject; -} - -#pragma mark - NSSecureCoding - -- (id)initWithCoder:(NSCoder *)decoder { - self = [super initWithCoder:decoder]; - if (!self) { - return nil; - } - - self.readingOptions = [[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(readingOptions))] unsignedIntegerValue]; - self.removesKeysWithNullValues = [[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(removesKeysWithNullValues))] boolValue]; - - return self; -} - -- (void)encodeWithCoder:(NSCoder *)coder { - [super encodeWithCoder:coder]; - - [coder encodeObject:@(self.readingOptions) forKey:NSStringFromSelector(@selector(readingOptions))]; - [coder encodeObject:@(self.removesKeysWithNullValues) forKey:NSStringFromSelector(@selector(removesKeysWithNullValues))]; -} - -#pragma mark - NSCopying - -- (id)copyWithZone:(NSZone *)zone { - AFJSONResponseSerializer *serializer = [[[self class] allocWithZone:zone] init]; - serializer.readingOptions = self.readingOptions; - serializer.removesKeysWithNullValues = self.removesKeysWithNullValues; - - return serializer; -} - -@end - -#pragma mark - - -@implementation AFXMLParserResponseSerializer - -+ (instancetype)serializer { - AFXMLParserResponseSerializer *serializer = [[self alloc] init]; - - return serializer; -} - -- (instancetype)init { - self = [super init]; - if (!self) { - return nil; - } - - self.acceptableContentTypes = [[NSSet alloc] initWithObjects:@"application/xml", @"text/xml", nil]; - - return self; -} - -#pragma mark - AFURLResponseSerialization - -- (id)responseObjectForResponse:(NSHTTPURLResponse *)response - data:(NSData *)data - error:(NSError *__autoreleasing *)error -{ - if (![self validateResponse:(NSHTTPURLResponse *)response data:data error:error]) { - if (!error || AFErrorOrUnderlyingErrorHasCodeInDomain(*error, NSURLErrorCannotDecodeContentData, AFURLResponseSerializationErrorDomain)) { - return nil; - } - } - - return [[NSXMLParser alloc] initWithData:data]; -} - -@end - -#pragma mark - - -#ifdef __MAC_OS_X_VERSION_MIN_REQUIRED - -@implementation AFXMLDocumentResponseSerializer - -+ (instancetype)serializer { - return [self serializerWithXMLDocumentOptions:0]; -} - -+ (instancetype)serializerWithXMLDocumentOptions:(NSUInteger)mask { - AFXMLDocumentResponseSerializer *serializer = [[self alloc] init]; - serializer.options = mask; - - return serializer; -} - -- (instancetype)init { - self = [super init]; - if (!self) { - return nil; - } - - self.acceptableContentTypes = [[NSSet alloc] initWithObjects:@"application/xml", @"text/xml", nil]; - - return self; -} - -#pragma mark - AFURLResponseSerialization - -- (id)responseObjectForResponse:(NSURLResponse *)response - data:(NSData *)data - error:(NSError *__autoreleasing *)error -{ - if (![self validateResponse:(NSHTTPURLResponse *)response data:data error:error]) { - if (!error || AFErrorOrUnderlyingErrorHasCodeInDomain(*error, NSURLErrorCannotDecodeContentData, AFURLResponseSerializationErrorDomain)) { - return nil; - } - } - - NSError *serializationError = nil; - NSXMLDocument *document = [[NSXMLDocument alloc] initWithData:data options:self.options error:&serializationError]; - - if (error) { - *error = AFErrorWithUnderlyingError(serializationError, *error); - } - - return document; -} - -#pragma mark - NSSecureCoding - -- (id)initWithCoder:(NSCoder *)decoder { - self = [super initWithCoder:decoder]; - if (!self) { - return nil; - } - - self.options = [[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(options))] unsignedIntegerValue]; - - return self; -} - -- (void)encodeWithCoder:(NSCoder *)coder { - [super encodeWithCoder:coder]; - - [coder encodeObject:@(self.options) forKey:NSStringFromSelector(@selector(options))]; -} - -#pragma mark - NSCopying - -- (id)copyWithZone:(NSZone *)zone { - AFXMLDocumentResponseSerializer *serializer = [[[self class] allocWithZone:zone] init]; - serializer.options = self.options; - - return serializer; -} - -@end - -#endif - -#pragma mark - - -@implementation AFPropertyListResponseSerializer - -+ (instancetype)serializer { - return [self serializerWithFormat:NSPropertyListXMLFormat_v1_0 readOptions:0]; -} - -+ (instancetype)serializerWithFormat:(NSPropertyListFormat)format - readOptions:(NSPropertyListReadOptions)readOptions -{ - AFPropertyListResponseSerializer *serializer = [[self alloc] init]; - serializer.format = format; - serializer.readOptions = readOptions; - - return serializer; -} - -- (instancetype)init { - self = [super init]; - if (!self) { - return nil; - } - - self.acceptableContentTypes = [[NSSet alloc] initWithObjects:@"application/x-plist", nil]; - - return self; -} - -#pragma mark - AFURLResponseSerialization - -- (id)responseObjectForResponse:(NSURLResponse *)response - data:(NSData *)data - error:(NSError *__autoreleasing *)error -{ - if (![self validateResponse:(NSHTTPURLResponse *)response data:data error:error]) { - if (!error || AFErrorOrUnderlyingErrorHasCodeInDomain(*error, NSURLErrorCannotDecodeContentData, AFURLResponseSerializationErrorDomain)) { - return nil; - } - } - - id responseObject; - NSError *serializationError = nil; - - if (data) { - responseObject = [NSPropertyListSerialization propertyListWithData:data options:self.readOptions format:NULL error:&serializationError]; - } - - if (error) { - *error = AFErrorWithUnderlyingError(serializationError, *error); - } - - return responseObject; -} - -#pragma mark - NSSecureCoding - -- (id)initWithCoder:(NSCoder *)decoder { - self = [super initWithCoder:decoder]; - if (!self) { - return nil; - } - - self.format = [[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(format))] unsignedIntegerValue]; - self.readOptions = [[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(readOptions))] unsignedIntegerValue]; - - return self; -} - -- (void)encodeWithCoder:(NSCoder *)coder { - [super encodeWithCoder:coder]; - - [coder encodeObject:@(self.format) forKey:NSStringFromSelector(@selector(format))]; - [coder encodeObject:@(self.readOptions) forKey:NSStringFromSelector(@selector(readOptions))]; -} - -#pragma mark - NSCopying - -- (id)copyWithZone:(NSZone *)zone { - AFPropertyListResponseSerializer *serializer = [[[self class] allocWithZone:zone] init]; - serializer.format = self.format; - serializer.readOptions = self.readOptions; - - return serializer; -} - -@end - -#pragma mark - - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) -#import - -static UIImage * AFImageWithDataAtScale(NSData *data, CGFloat scale) { - UIImage *image = [[UIImage alloc] initWithData:data]; - if (image.images) { - return image; - } - - return [[UIImage alloc] initWithCGImage:[image CGImage] scale:scale orientation:image.imageOrientation]; -} - -static UIImage * AFInflatedImageFromResponseWithDataAtScale(NSHTTPURLResponse *response, NSData *data, CGFloat scale) { - if (!data || [data length] == 0) { - return nil; - } - - CGImageRef imageRef = NULL; - CGDataProviderRef dataProvider = CGDataProviderCreateWithCFData((__bridge CFDataRef)data); - - if ([response.MIMEType isEqualToString:@"image/png"]) { - imageRef = CGImageCreateWithPNGDataProvider(dataProvider, NULL, true, kCGRenderingIntentDefault); - } else if ([response.MIMEType isEqualToString:@"image/jpeg"]) { - imageRef = CGImageCreateWithJPEGDataProvider(dataProvider, NULL, true, kCGRenderingIntentDefault); - - if (imageRef) { - CGColorSpaceRef imageColorSpace = CGImageGetColorSpace(imageRef); - CGColorSpaceModel imageColorSpaceModel = CGColorSpaceGetModel(imageColorSpace); - - // CGImageCreateWithJPEGDataProvider does not properly handle CMKY, so fall back to AFImageWithDataAtScale - if (imageColorSpaceModel == kCGColorSpaceModelCMYK) { - CGImageRelease(imageRef); - imageRef = NULL; - } - } - } - - CGDataProviderRelease(dataProvider); - - UIImage *image = AFImageWithDataAtScale(data, scale); - if (!imageRef) { - if (image.images || !image) { - return image; - } - - imageRef = CGImageCreateCopy([image CGImage]); - if (!imageRef) { - return nil; - } - } - - size_t width = CGImageGetWidth(imageRef); - size_t height = CGImageGetHeight(imageRef); - size_t bitsPerComponent = CGImageGetBitsPerComponent(imageRef); - - if (width * height > 1024 * 1024 || bitsPerComponent > 8) { - CGImageRelease(imageRef); - - return image; - } - - // CGImageGetBytesPerRow() calculates incorrectly in iOS 5.0, so defer to CGBitmapContextCreate - size_t bytesPerRow = 0; - CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); - CGColorSpaceModel colorSpaceModel = CGColorSpaceGetModel(colorSpace); - CGBitmapInfo bitmapInfo = CGImageGetBitmapInfo(imageRef); - - if (colorSpaceModel == kCGColorSpaceModelRGB) { - uint32_t alpha = (bitmapInfo & kCGBitmapAlphaInfoMask); -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wassign-enum" - if (alpha == kCGImageAlphaNone) { - bitmapInfo &= ~kCGBitmapAlphaInfoMask; - bitmapInfo |= kCGImageAlphaNoneSkipFirst; - } else if (!(alpha == kCGImageAlphaNoneSkipFirst || alpha == kCGImageAlphaNoneSkipLast)) { - bitmapInfo &= ~kCGBitmapAlphaInfoMask; - bitmapInfo |= kCGImageAlphaPremultipliedFirst; - } -#pragma clang diagnostic pop - } - - CGContextRef context = CGBitmapContextCreate(NULL, width, height, bitsPerComponent, bytesPerRow, colorSpace, bitmapInfo); - - CGColorSpaceRelease(colorSpace); - - if (!context) { - CGImageRelease(imageRef); - - return image; - } - - CGContextDrawImage(context, CGRectMake(0.0f, 0.0f, width, height), imageRef); - CGImageRef inflatedImageRef = CGBitmapContextCreateImage(context); - - CGContextRelease(context); - - UIImage *inflatedImage = [[UIImage alloc] initWithCGImage:inflatedImageRef scale:scale orientation:image.imageOrientation]; - - CGImageRelease(inflatedImageRef); - CGImageRelease(imageRef); - - return inflatedImage; -} -#endif - - -@implementation AFImageResponseSerializer - -- (instancetype)init { - self = [super init]; - if (!self) { - return nil; - } - - self.acceptableContentTypes = [[NSSet alloc] initWithObjects:@"image/tiff", @"image/jpeg", @"image/gif", @"image/png", @"image/ico", @"image/x-icon", @"image/bmp", @"image/x-bmp", @"image/x-xbitmap", @"image/x-win-bitmap", nil]; - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) - self.imageScale = [[UIScreen mainScreen] scale]; - self.automaticallyInflatesResponseImage = YES; -#endif - - return self; -} - -#pragma mark - AFURLResponseSerializer - -- (id)responseObjectForResponse:(NSURLResponse *)response - data:(NSData *)data - error:(NSError *__autoreleasing *)error -{ - if (![self validateResponse:(NSHTTPURLResponse *)response data:data error:error]) { - if (!error || AFErrorOrUnderlyingErrorHasCodeInDomain(*error, NSURLErrorCannotDecodeContentData, AFURLResponseSerializationErrorDomain)) { - return nil; - } - } - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) - if (self.automaticallyInflatesResponseImage) { - return AFInflatedImageFromResponseWithDataAtScale((NSHTTPURLResponse *)response, data, self.imageScale); - } else { - return AFImageWithDataAtScale(data, self.imageScale); - } -#elif defined(__MAC_OS_X_VERSION_MIN_REQUIRED) - // Ensure that the image is set to it's correct pixel width and height - NSBitmapImageRep *bitimage = [[NSBitmapImageRep alloc] initWithData:data]; - NSImage *image = [[NSImage alloc] initWithSize:NSMakeSize([bitimage pixelsWide], [bitimage pixelsHigh])]; - [image addRepresentation:bitimage]; - - return image; -#endif - - return nil; -} - -#pragma mark - NSSecureCoding - -- (id)initWithCoder:(NSCoder *)decoder { - self = [super initWithCoder:decoder]; - if (!self) { - return nil; - } - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) - NSNumber *imageScale = [decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(imageScale))]; -#if CGFLOAT_IS_DOUBLE - self.imageScale = [imageScale doubleValue]; -#else - self.imageScale = [imageScale floatValue]; -#endif - - self.automaticallyInflatesResponseImage = [decoder decodeBoolForKey:NSStringFromSelector(@selector(automaticallyInflatesResponseImage))]; -#endif - - return self; -} - -- (void)encodeWithCoder:(NSCoder *)coder { - [super encodeWithCoder:coder]; - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) - [coder encodeObject:@(self.imageScale) forKey:NSStringFromSelector(@selector(imageScale))]; - [coder encodeBool:self.automaticallyInflatesResponseImage forKey:NSStringFromSelector(@selector(automaticallyInflatesResponseImage))]; -#endif -} - -#pragma mark - NSCopying - -- (id)copyWithZone:(NSZone *)zone { - AFImageResponseSerializer *serializer = [[[self class] allocWithZone:zone] init]; - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) - serializer.imageScale = self.imageScale; - serializer.automaticallyInflatesResponseImage = self.automaticallyInflatesResponseImage; -#endif - - return serializer; -} - -@end - -#pragma mark - - -@interface AFCompoundResponseSerializer () -@property (readwrite, nonatomic, copy) NSArray *responseSerializers; -@end - -@implementation AFCompoundResponseSerializer - -+ (instancetype)compoundSerializerWithResponseSerializers:(NSArray *)responseSerializers { - AFCompoundResponseSerializer *serializer = [[self alloc] init]; - serializer.responseSerializers = responseSerializers; - - return serializer; -} - -#pragma mark - AFURLResponseSerialization - -- (id)responseObjectForResponse:(NSURLResponse *)response - data:(NSData *)data - error:(NSError *__autoreleasing *)error -{ - for (id serializer in self.responseSerializers) { - if (![serializer isKindOfClass:[AFHTTPResponseSerializer class]]) { - continue; - } - - NSError *serializerError = nil; - id responseObject = [serializer responseObjectForResponse:response data:data error:&serializerError]; - if (responseObject) { - if (error) { - *error = AFErrorWithUnderlyingError(serializerError, *error); - } - - return responseObject; - } - } - - return [super responseObjectForResponse:response data:data error:error]; -} - -#pragma mark - NSSecureCoding - -- (id)initWithCoder:(NSCoder *)decoder { - self = [super initWithCoder:decoder]; - if (!self) { - return nil; - } - - self.responseSerializers = [decoder decodeObjectOfClass:[NSArray class] forKey:NSStringFromSelector(@selector(responseSerializers))]; - - return self; -} - -- (void)encodeWithCoder:(NSCoder *)coder { - [super encodeWithCoder:coder]; - - [coder encodeObject:self.responseSerializers forKey:NSStringFromSelector(@selector(responseSerializers))]; -} - -#pragma mark - NSCopying - -- (id)copyWithZone:(NSZone *)zone { - AFCompoundResponseSerializer *serializer = [[[self class] allocWithZone:zone] init]; - serializer.responseSerializers = self.responseSerializers; - - return serializer; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLSessionManager.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLSessionManager.h deleted file mode 100644 index 21d9d64f9fb..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLSessionManager.h +++ /dev/null @@ -1,546 +0,0 @@ -// AFURLSessionManager.h -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import - -#import "AFURLResponseSerialization.h" -#import "AFURLRequestSerialization.h" -#import "AFSecurityPolicy.h" -#import "AFNetworkReachabilityManager.h" - -#ifndef NS_DESIGNATED_INITIALIZER -#if __has_attribute(objc_designated_initializer) -#define NS_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) -#else -#define NS_DESIGNATED_INITIALIZER -#endif -#endif - -/** - `AFURLSessionManager` creates and manages an `NSURLSession` object based on a specified `NSURLSessionConfiguration` object, which conforms to ``, ``, ``, and ``. - - ## Subclassing Notes - - This is the base class for `AFHTTPSessionManager`, which adds functionality specific to making HTTP requests. If you are looking to extend `AFURLSessionManager` specifically for HTTP, consider subclassing `AFHTTPSessionManager` instead. - - ## NSURLSession & NSURLSessionTask Delegate Methods - - `AFURLSessionManager` implements the following delegate methods: - - ### `NSURLSessionDelegate` - - - `URLSession:didBecomeInvalidWithError:` - - `URLSession:didReceiveChallenge:completionHandler:` - - `URLSessionDidFinishEventsForBackgroundURLSession:` - - ### `NSURLSessionTaskDelegate` - - - `URLSession:willPerformHTTPRedirection:newRequest:completionHandler:` - - `URLSession:task:didReceiveChallenge:completionHandler:` - - `URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:` - - `URLSession:task:didCompleteWithError:` - - ### `NSURLSessionDataDelegate` - - - `URLSession:dataTask:didReceiveResponse:completionHandler:` - - `URLSession:dataTask:didBecomeDownloadTask:` - - `URLSession:dataTask:didReceiveData:` - - `URLSession:dataTask:willCacheResponse:completionHandler:` - - ### `NSURLSessionDownloadDelegate` - - - `URLSession:downloadTask:didFinishDownloadingToURL:` - - `URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesWritten:totalBytesExpectedToWrite:` - - `URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:` - - If any of these methods are overridden in a subclass, they _must_ call the `super` implementation first. - - ## Network Reachability Monitoring - - Network reachability status and change monitoring is available through the `reachabilityManager` property. Applications may choose to monitor network reachability conditions in order to prevent or suspend any outbound requests. See `AFNetworkReachabilityManager` for more details. - - ## NSCoding Caveats - - - Encoded managers do not include any block properties. Be sure to set delegate callback blocks when using `-initWithCoder:` or `NSKeyedUnarchiver`. - - ## NSCopying Caveats - - - `-copy` and `-copyWithZone:` return a new manager with a new `NSURLSession` created from the configuration of the original. - - Operation copies do not include any delegate callback blocks, as they often strongly captures a reference to `self`, which would otherwise have the unintuitive side-effect of pointing to the _original_ session manager when copied. - - @warning Managers for background sessions must be owned for the duration of their use. This can be accomplished by creating an application-wide or shared singleton instance. - */ - -#if (defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000) || (defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 1090) - -@interface AFURLSessionManager : NSObject - -/** - The managed session. - */ -@property (readonly, nonatomic, strong) NSURLSession *session; - -/** - The operation queue on which delegate callbacks are run. - */ -@property (readonly, nonatomic, strong) NSOperationQueue *operationQueue; - -/** - Responses sent from the server in data tasks created with `dataTaskWithRequest:success:failure:` and run using the `GET` / `POST` / et al. convenience methods are automatically validated and serialized by the response serializer. By default, this property is set to an instance of `AFJSONResponseSerializer`. - - @warning `responseSerializer` must not be `nil`. - */ -@property (nonatomic, strong) id responseSerializer; - -///------------------------------- -/// @name Managing Security Policy -///------------------------------- - -/** - The security policy used by created request operations to evaluate server trust for secure connections. `AFURLSessionManager` uses the `defaultPolicy` unless otherwise specified. - */ -@property (nonatomic, strong) AFSecurityPolicy *securityPolicy; - -///-------------------------------------- -/// @name Monitoring Network Reachability -///-------------------------------------- - -/** - The network reachability manager. `AFURLSessionManager` uses the `sharedManager` by default. - */ -@property (readwrite, nonatomic, strong) AFNetworkReachabilityManager *reachabilityManager; - -///---------------------------- -/// @name Getting Session Tasks -///---------------------------- - -/** - The data, upload, and download tasks currently run by the managed session. - */ -@property (readonly, nonatomic, strong) NSArray *tasks; - -/** - The data tasks currently run by the managed session. - */ -@property (readonly, nonatomic, strong) NSArray *dataTasks; - -/** - The upload tasks currently run by the managed session. - */ -@property (readonly, nonatomic, strong) NSArray *uploadTasks; - -/** - The download tasks currently run by the managed session. - */ -@property (readonly, nonatomic, strong) NSArray *downloadTasks; - -///------------------------------- -/// @name Managing Callback Queues -///------------------------------- - -/** - The dispatch queue for `completionBlock`. If `NULL` (default), the main queue is used. - */ -#if OS_OBJECT_HAVE_OBJC_SUPPORT -@property (nonatomic, strong) dispatch_queue_t completionQueue; -#else -@property (nonatomic, assign) dispatch_queue_t completionQueue; -#endif - -/** - The dispatch group for `completionBlock`. If `NULL` (default), a private dispatch group is used. - */ -#if OS_OBJECT_HAVE_OBJC_SUPPORT -@property (nonatomic, strong) dispatch_group_t completionGroup; -#else -@property (nonatomic, assign) dispatch_group_t completionGroup; -#endif - -///--------------------------------- -/// @name Working Around System Bugs -///--------------------------------- - -/** - Whether to attempt to retry creation of upload tasks for background sessions when initial call returns `nil`. `NO` by default. - - @bug As of iOS 7.0, there is a bug where upload tasks created for background tasks are sometimes `nil`. As a workaround, if this property is `YES`, AFNetworking will follow Apple's recommendation to try creating the task again. - - @see https://github.com/AFNetworking/AFNetworking/issues/1675 - */ -@property (nonatomic, assign) BOOL attemptsToRecreateUploadTasksForBackgroundSessions; - -///--------------------- -/// @name Initialization -///--------------------- - -/** - Creates and returns a manager for a session created with the specified configuration. This is the designated initializer. - - @param configuration The configuration used to create the managed session. - - @return A manager for a newly-created session. - */ -- (instancetype)initWithSessionConfiguration:(NSURLSessionConfiguration *)configuration NS_DESIGNATED_INITIALIZER; - -/** - Invalidates the managed session, optionally canceling pending tasks. - - @param cancelPendingTasks Whether or not to cancel pending tasks. - */ -- (void)invalidateSessionCancelingTasks:(BOOL)cancelPendingTasks; - -///------------------------- -/// @name Running Data Tasks -///------------------------- - -/** - Creates an `NSURLSessionDataTask` with the specified request. - - @param request The HTTP request for the request. - @param completionHandler A block object to be executed when the task finishes. This block has no return value and takes three arguments: the server response, the response object created by that serializer, and the error that occurred, if any. - */ -- (NSURLSessionDataTask *)dataTaskWithRequest:(NSURLRequest *)request - completionHandler:(void (^)(NSURLResponse *response, id responseObject, NSError *error))completionHandler; - -///--------------------------- -/// @name Running Upload Tasks -///--------------------------- - -/** - Creates an `NSURLSessionUploadTask` with the specified request for a local file. - - @param request The HTTP request for the request. - @param fileURL A URL to the local file to be uploaded. - @param progress A progress object monitoring the current upload progress. - @param completionHandler A block object to be executed when the task finishes. This block has no return value and takes three arguments: the server response, the response object created by that serializer, and the error that occurred, if any. - - @see `attemptsToRecreateUploadTasksForBackgroundSessions` - */ -- (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request - fromFile:(NSURL *)fileURL - progress:(NSProgress * __autoreleasing *)progress - completionHandler:(void (^)(NSURLResponse *response, id responseObject, NSError *error))completionHandler; - -/** - Creates an `NSURLSessionUploadTask` with the specified request for an HTTP body. - - @param request The HTTP request for the request. - @param bodyData A data object containing the HTTP body to be uploaded. - @param progress A progress object monitoring the current upload progress. - @param completionHandler A block object to be executed when the task finishes. This block has no return value and takes three arguments: the server response, the response object created by that serializer, and the error that occurred, if any. - */ -- (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request - fromData:(NSData *)bodyData - progress:(NSProgress * __autoreleasing *)progress - completionHandler:(void (^)(NSURLResponse *response, id responseObject, NSError *error))completionHandler; - -/** - Creates an `NSURLSessionUploadTask` with the specified streaming request. - - @param request The HTTP request for the request. - @param progress A progress object monitoring the current upload progress. - @param completionHandler A block object to be executed when the task finishes. This block has no return value and takes three arguments: the server response, the response object created by that serializer, and the error that occurred, if any. - */ -- (NSURLSessionUploadTask *)uploadTaskWithStreamedRequest:(NSURLRequest *)request - progress:(NSProgress * __autoreleasing *)progress - completionHandler:(void (^)(NSURLResponse *response, id responseObject, NSError *error))completionHandler; - -///----------------------------- -/// @name Running Download Tasks -///----------------------------- - -/** - Creates an `NSURLSessionDownloadTask` with the specified request. - - @param request The HTTP request for the request. - @param progress A progress object monitoring the current download progress. - @param destination A block object to be executed in order to determine the destination of the downloaded file. This block takes two arguments, the target path & the server response, and returns the desired file URL of the resulting download. The temporary file used during the download will be automatically deleted after being moved to the returned URL. - @param completionHandler A block to be executed when a task finishes. This block has no return value and takes three arguments: the server response, the path of the downloaded file, and the error describing the network or parsing error that occurred, if any. - - @warning If using a background `NSURLSessionConfiguration` on iOS, these blocks will be lost when the app is terminated. Background sessions may prefer to use `-setDownloadTaskDidFinishDownloadingBlock:` to specify the URL for saving the downloaded file, rather than the destination block of this method. - */ -- (NSURLSessionDownloadTask *)downloadTaskWithRequest:(NSURLRequest *)request - progress:(NSProgress * __autoreleasing *)progress - destination:(NSURL * (^)(NSURL *targetPath, NSURLResponse *response))destination - completionHandler:(void (^)(NSURLResponse *response, NSURL *filePath, NSError *error))completionHandler; - -/** - Creates an `NSURLSessionDownloadTask` with the specified resume data. - - @param resumeData The data used to resume downloading. - @param progress A progress object monitoring the current download progress. - @param destination A block object to be executed in order to determine the destination of the downloaded file. This block takes two arguments, the target path & the server response, and returns the desired file URL of the resulting download. The temporary file used during the download will be automatically deleted after being moved to the returned URL. - @param completionHandler A block to be executed when a task finishes. This block has no return value and takes three arguments: the server response, the path of the downloaded file, and the error describing the network or parsing error that occurred, if any. - */ -- (NSURLSessionDownloadTask *)downloadTaskWithResumeData:(NSData *)resumeData - progress:(NSProgress * __autoreleasing *)progress - destination:(NSURL * (^)(NSURL *targetPath, NSURLResponse *response))destination - completionHandler:(void (^)(NSURLResponse *response, NSURL *filePath, NSError *error))completionHandler; - -///--------------------------------- -/// @name Getting Progress for Tasks -///--------------------------------- - -/** - Returns the upload progress of the specified task. - - @param uploadTask The session upload task. Must not be `nil`. - - @return An `NSProgress` object reporting the upload progress of a task, or `nil` if the progress is unavailable. - */ -- (NSProgress *)uploadProgressForTask:(NSURLSessionUploadTask *)uploadTask; - -/** - Returns the download progress of the specified task. - - @param downloadTask The session download task. Must not be `nil`. - - @return An `NSProgress` object reporting the download progress of a task, or `nil` if the progress is unavailable. - */ -- (NSProgress *)downloadProgressForTask:(NSURLSessionDownloadTask *)downloadTask; - -///----------------------------------------- -/// @name Setting Session Delegate Callbacks -///----------------------------------------- - -/** - Sets a block to be executed when the managed session becomes invalid, as handled by the `NSURLSessionDelegate` method `URLSession:didBecomeInvalidWithError:`. - - @param block A block object to be executed when the managed session becomes invalid. The block has no return value, and takes two arguments: the session, and the error related to the cause of invalidation. - */ -- (void)setSessionDidBecomeInvalidBlock:(void (^)(NSURLSession *session, NSError *error))block; - -/** - Sets a block to be executed when a connection level authentication challenge has occurred, as handled by the `NSURLSessionDelegate` method `URLSession:didReceiveChallenge:completionHandler:`. - - @param block A block object to be executed when a connection level authentication challenge has occurred. The block returns the disposition of the authentication challenge, and takes three arguments: the session, the authentication challenge, and a pointer to the credential that should be used to resolve the challenge. - */ -- (void)setSessionDidReceiveAuthenticationChallengeBlock:(NSURLSessionAuthChallengeDisposition (^)(NSURLSession *session, NSURLAuthenticationChallenge *challenge, NSURLCredential * __autoreleasing *credential))block; - -///-------------------------------------- -/// @name Setting Task Delegate Callbacks -///-------------------------------------- - -/** - Sets a block to be executed when a task requires a new request body stream to send to the remote server, as handled by the `NSURLSessionTaskDelegate` method `URLSession:task:needNewBodyStream:`. - - @param block A block object to be executed when a task requires a new request body stream. - */ -- (void)setTaskNeedNewBodyStreamBlock:(NSInputStream * (^)(NSURLSession *session, NSURLSessionTask *task))block; - -/** - Sets a block to be executed when an HTTP request is attempting to perform a redirection to a different URL, as handled by the `NSURLSessionTaskDelegate` method `URLSession:willPerformHTTPRedirection:newRequest:completionHandler:`. - - @param block A block object to be executed when an HTTP request is attempting to perform a redirection to a different URL. The block returns the request to be made for the redirection, and takes four arguments: the session, the task, the redirection response, and the request corresponding to the redirection response. - */ -- (void)setTaskWillPerformHTTPRedirectionBlock:(NSURLRequest * (^)(NSURLSession *session, NSURLSessionTask *task, NSURLResponse *response, NSURLRequest *request))block; - -/** - Sets a block to be executed when a session task has received a request specific authentication challenge, as handled by the `NSURLSessionTaskDelegate` method `URLSession:task:didReceiveChallenge:completionHandler:`. - - @param block A block object to be executed when a session task has received a request specific authentication challenge. The block returns the disposition of the authentication challenge, and takes four arguments: the session, the task, the authentication challenge, and a pointer to the credential that should be used to resolve the challenge. - */ -- (void)setTaskDidReceiveAuthenticationChallengeBlock:(NSURLSessionAuthChallengeDisposition (^)(NSURLSession *session, NSURLSessionTask *task, NSURLAuthenticationChallenge *challenge, NSURLCredential * __autoreleasing *credential))block; - -/** - Sets a block to be executed periodically to track upload progress, as handled by the `NSURLSessionTaskDelegate` method `URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:`. - - @param block A block object to be called when an undetermined number of bytes have been uploaded to the server. This block has no return value and takes five arguments: the session, the task, the number of bytes written since the last time the upload progress block was called, the total bytes written, and the total bytes expected to be written during the request, as initially determined by the length of the HTTP body. This block may be called multiple times, and will execute on the main thread. - */ -- (void)setTaskDidSendBodyDataBlock:(void (^)(NSURLSession *session, NSURLSessionTask *task, int64_t bytesSent, int64_t totalBytesSent, int64_t totalBytesExpectedToSend))block; - -/** - Sets a block to be executed as the last message related to a specific task, as handled by the `NSURLSessionTaskDelegate` method `URLSession:task:didCompleteWithError:`. - - @param block A block object to be executed when a session task is completed. The block has no return value, and takes three arguments: the session, the task, and any error that occurred in the process of executing the task. - */ -- (void)setTaskDidCompleteBlock:(void (^)(NSURLSession *session, NSURLSessionTask *task, NSError *error))block; - -///------------------------------------------- -/// @name Setting Data Task Delegate Callbacks -///------------------------------------------- - -/** - Sets a block to be executed when a data task has received a response, as handled by the `NSURLSessionDataDelegate` method `URLSession:dataTask:didReceiveResponse:completionHandler:`. - - @param block A block object to be executed when a data task has received a response. The block returns the disposition of the session response, and takes three arguments: the session, the data task, and the received response. - */ -- (void)setDataTaskDidReceiveResponseBlock:(NSURLSessionResponseDisposition (^)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSURLResponse *response))block; - -/** - Sets a block to be executed when a data task has become a download task, as handled by the `NSURLSessionDataDelegate` method `URLSession:dataTask:didBecomeDownloadTask:`. - - @param block A block object to be executed when a data task has become a download task. The block has no return value, and takes three arguments: the session, the data task, and the download task it has become. - */ -- (void)setDataTaskDidBecomeDownloadTaskBlock:(void (^)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSURLSessionDownloadTask *downloadTask))block; - -/** - Sets a block to be executed when a data task receives data, as handled by the `NSURLSessionDataDelegate` method `URLSession:dataTask:didReceiveData:`. - - @param block A block object to be called when an undetermined number of bytes have been downloaded from the server. This block has no return value and takes three arguments: the session, the data task, and the data received. This block may be called multiple times, and will execute on the session manager operation queue. - */ -- (void)setDataTaskDidReceiveDataBlock:(void (^)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSData *data))block; - -/** - Sets a block to be executed to determine the caching behavior of a data task, as handled by the `NSURLSessionDataDelegate` method `URLSession:dataTask:willCacheResponse:completionHandler:`. - - @param block A block object to be executed to determine the caching behavior of a data task. The block returns the response to cache, and takes three arguments: the session, the data task, and the proposed cached URL response. - */ -- (void)setDataTaskWillCacheResponseBlock:(NSCachedURLResponse * (^)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSCachedURLResponse *proposedResponse))block; - -/** - Sets a block to be executed once all messages enqueued for a session have been delivered, as handled by the `NSURLSessionDataDelegate` method `URLSessionDidFinishEventsForBackgroundURLSession:`. - - @param block A block object to be executed once all messages enqueued for a session have been delivered. The block has no return value and takes a single argument: the session. - */ -- (void)setDidFinishEventsForBackgroundURLSessionBlock:(void (^)(NSURLSession *session))block; - -///----------------------------------------------- -/// @name Setting Download Task Delegate Callbacks -///----------------------------------------------- - -/** - Sets a block to be executed when a download task has completed a download, as handled by the `NSURLSessionDownloadDelegate` method `URLSession:downloadTask:didFinishDownloadingToURL:`. - - @param block A block object to be executed when a download task has completed. The block returns the URL the download should be moved to, and takes three arguments: the session, the download task, and the temporary location of the downloaded file. If the file manager encounters an error while attempting to move the temporary file to the destination, an `AFURLSessionDownloadTaskDidFailToMoveFileNotification` will be posted, with the download task as its object, and the user info of the error. - */ -- (void)setDownloadTaskDidFinishDownloadingBlock:(NSURL * (^)(NSURLSession *session, NSURLSessionDownloadTask *downloadTask, NSURL *location))block; - -/** - Sets a block to be executed periodically to track download progress, as handled by the `NSURLSessionDownloadDelegate` method `URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesWritten:totalBytesExpectedToWrite:`. - - @param block A block object to be called when an undetermined number of bytes have been downloaded from the server. This block has no return value and takes five arguments: the session, the download task, the number of bytes read since the last time the download progress block was called, the total bytes read, and the total bytes expected to be read during the request, as initially determined by the expected content size of the `NSHTTPURLResponse` object. This block may be called multiple times, and will execute on the session manager operation queue. - */ -- (void)setDownloadTaskDidWriteDataBlock:(void (^)(NSURLSession *session, NSURLSessionDownloadTask *downloadTask, int64_t bytesWritten, int64_t totalBytesWritten, int64_t totalBytesExpectedToWrite))block; - -/** - Sets a block to be executed when a download task has been resumed, as handled by the `NSURLSessionDownloadDelegate` method `URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:`. - - @param block A block object to be executed when a download task has been resumed. The block has no return value and takes four arguments: the session, the download task, the file offset of the resumed download, and the total number of bytes expected to be downloaded. - */ -- (void)setDownloadTaskDidResumeBlock:(void (^)(NSURLSession *session, NSURLSessionDownloadTask *downloadTask, int64_t fileOffset, int64_t expectedTotalBytes))block; - -@end - -#endif - -///-------------------- -/// @name Notifications -///-------------------- - -/** - Posted when a task begins executing. - - @deprecated Use `AFNetworkingTaskDidResumeNotification` instead. - */ -extern NSString * const AFNetworkingTaskDidStartNotification DEPRECATED_ATTRIBUTE; - -/** - Posted when a task resumes. - */ -extern NSString * const AFNetworkingTaskDidResumeNotification; - -/** - Posted when a task finishes executing. Includes a userInfo dictionary with additional information about the task. - - @deprecated Use `AFNetworkingTaskDidCompleteNotification` instead. - */ -extern NSString * const AFNetworkingTaskDidFinishNotification DEPRECATED_ATTRIBUTE; - -/** - Posted when a task finishes executing. Includes a userInfo dictionary with additional information about the task. - */ -extern NSString * const AFNetworkingTaskDidCompleteNotification; - -/** - Posted when a task suspends its execution. - */ -extern NSString * const AFNetworkingTaskDidSuspendNotification; - -/** - Posted when a session is invalidated. - */ -extern NSString * const AFURLSessionDidInvalidateNotification; - -/** - Posted when a session download task encountered an error when moving the temporary download file to a specified destination. - */ -extern NSString * const AFURLSessionDownloadTaskDidFailToMoveFileNotification; - -/** - The raw response data of the task. Included in the userInfo dictionary of the `AFNetworkingTaskDidFinishNotification` if response data exists for the task. - - @deprecated Use `AFNetworkingTaskDidCompleteResponseDataKey` instead. - */ -extern NSString * const AFNetworkingTaskDidFinishResponseDataKey DEPRECATED_ATTRIBUTE; - -/** - The raw response data of the task. Included in the userInfo dictionary of the `AFNetworkingTaskDidFinishNotification` if response data exists for the task. - */ -extern NSString * const AFNetworkingTaskDidCompleteResponseDataKey; - -/** - The serialized response object of the task. Included in the userInfo dictionary of the `AFNetworkingTaskDidFinishNotification` if the response was serialized. - - @deprecated Use `AFNetworkingTaskDidCompleteSerializedResponseKey` instead. - */ -extern NSString * const AFNetworkingTaskDidFinishSerializedResponseKey DEPRECATED_ATTRIBUTE; - -/** - The serialized response object of the task. Included in the userInfo dictionary of the `AFNetworkingTaskDidFinishNotification` if the response was serialized. - */ -extern NSString * const AFNetworkingTaskDidCompleteSerializedResponseKey; - -/** - The response serializer used to serialize the response. Included in the userInfo dictionary of the `AFNetworkingTaskDidFinishNotification` if the task has an associated response serializer. - - @deprecated Use `AFNetworkingTaskDidCompleteResponseSerializerKey` instead. - */ -extern NSString * const AFNetworkingTaskDidFinishResponseSerializerKey DEPRECATED_ATTRIBUTE; - -/** - The response serializer used to serialize the response. Included in the userInfo dictionary of the `AFNetworkingTaskDidFinishNotification` if the task has an associated response serializer. - */ -extern NSString * const AFNetworkingTaskDidCompleteResponseSerializerKey; - -/** - The file path associated with the download task. Included in the userInfo dictionary of the `AFNetworkingTaskDidFinishNotification` if an the response data has been stored directly to disk. - - @deprecated Use `AFNetworkingTaskDidCompleteAssetPathKey` instead. - */ -extern NSString * const AFNetworkingTaskDidFinishAssetPathKey DEPRECATED_ATTRIBUTE; - -/** - The file path associated with the download task. Included in the userInfo dictionary of the `AFNetworkingTaskDidFinishNotification` if an the response data has been stored directly to disk. - */ -extern NSString * const AFNetworkingTaskDidCompleteAssetPathKey; - -/** - Any error associated with the task, or the serialization of the response. Included in the userInfo dictionary of the `AFNetworkingTaskDidFinishNotification` if an error exists. - - @deprecated Use `AFNetworkingTaskDidCompleteErrorKey` instead. - */ -extern NSString * const AFNetworkingTaskDidFinishErrorKey DEPRECATED_ATTRIBUTE; - -/** - Any error associated with the task, or the serialization of the response. Included in the userInfo dictionary of the `AFNetworkingTaskDidFinishNotification` if an error exists. - */ -extern NSString * const AFNetworkingTaskDidCompleteErrorKey; diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLSessionManager.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLSessionManager.m deleted file mode 100644 index 99eadfbee6d..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/AFNetworking/AFURLSessionManager.m +++ /dev/null @@ -1,1156 +0,0 @@ -// AFURLSessionManager.m -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import "AFURLSessionManager.h" -#import - -#if (defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000) || (defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 1090) - -static dispatch_queue_t url_session_manager_creation_queue() { - static dispatch_queue_t af_url_session_manager_creation_queue; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - af_url_session_manager_creation_queue = dispatch_queue_create("com.alamofire.networking.session.manager.creation", DISPATCH_QUEUE_SERIAL); - }); - - return af_url_session_manager_creation_queue; -} - -static dispatch_queue_t url_session_manager_processing_queue() { - static dispatch_queue_t af_url_session_manager_processing_queue; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - af_url_session_manager_processing_queue = dispatch_queue_create("com.alamofire.networking.session.manager.processing", DISPATCH_QUEUE_CONCURRENT); - }); - - return af_url_session_manager_processing_queue; -} - -static dispatch_group_t url_session_manager_completion_group() { - static dispatch_group_t af_url_session_manager_completion_group; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - af_url_session_manager_completion_group = dispatch_group_create(); - }); - - return af_url_session_manager_completion_group; -} - -NSString * const AFNetworkingTaskDidResumeNotification = @"com.alamofire.networking.task.resume"; -NSString * const AFNetworkingTaskDidCompleteNotification = @"com.alamofire.networking.task.complete"; -NSString * const AFNetworkingTaskDidSuspendNotification = @"com.alamofire.networking.task.suspend"; -NSString * const AFURLSessionDidInvalidateNotification = @"com.alamofire.networking.session.invalidate"; -NSString * const AFURLSessionDownloadTaskDidFailToMoveFileNotification = @"com.alamofire.networking.session.download.file-manager-error"; - -NSString * const AFNetworkingTaskDidStartNotification = @"com.alamofire.networking.task.resume"; // Deprecated -NSString * const AFNetworkingTaskDidFinishNotification = @"com.alamofire.networking.task.complete"; // Deprecated - -NSString * const AFNetworkingTaskDidCompleteSerializedResponseKey = @"com.alamofire.networking.task.complete.serializedresponse"; -NSString * const AFNetworkingTaskDidCompleteResponseSerializerKey = @"com.alamofire.networking.task.complete.responseserializer"; -NSString * const AFNetworkingTaskDidCompleteResponseDataKey = @"com.alamofire.networking.complete.finish.responsedata"; -NSString * const AFNetworkingTaskDidCompleteErrorKey = @"com.alamofire.networking.task.complete.error"; -NSString * const AFNetworkingTaskDidCompleteAssetPathKey = @"com.alamofire.networking.task.complete.assetpath"; - -NSString * const AFNetworkingTaskDidFinishSerializedResponseKey = @"com.alamofire.networking.task.complete.serializedresponse"; // Deprecated -NSString * const AFNetworkingTaskDidFinishResponseSerializerKey = @"com.alamofire.networking.task.complete.responseserializer"; // Deprecated -NSString * const AFNetworkingTaskDidFinishResponseDataKey = @"com.alamofire.networking.complete.finish.responsedata"; // Deprecated -NSString * const AFNetworkingTaskDidFinishErrorKey = @"com.alamofire.networking.task.complete.error"; // Deprecated -NSString * const AFNetworkingTaskDidFinishAssetPathKey = @"com.alamofire.networking.task.complete.assetpath"; // Deprecated - -static NSString * const AFURLSessionManagerLockName = @"com.alamofire.networking.session.manager.lock"; - -static NSUInteger const AFMaximumNumberOfAttemptsToRecreateBackgroundSessionUploadTask = 3; - -static void * AFTaskStateChangedContext = &AFTaskStateChangedContext; - -typedef void (^AFURLSessionDidBecomeInvalidBlock)(NSURLSession *session, NSError *error); -typedef NSURLSessionAuthChallengeDisposition (^AFURLSessionDidReceiveAuthenticationChallengeBlock)(NSURLSession *session, NSURLAuthenticationChallenge *challenge, NSURLCredential * __autoreleasing *credential); - -typedef NSURLRequest * (^AFURLSessionTaskWillPerformHTTPRedirectionBlock)(NSURLSession *session, NSURLSessionTask *task, NSURLResponse *response, NSURLRequest *request); -typedef NSURLSessionAuthChallengeDisposition (^AFURLSessionTaskDidReceiveAuthenticationChallengeBlock)(NSURLSession *session, NSURLSessionTask *task, NSURLAuthenticationChallenge *challenge, NSURLCredential * __autoreleasing *credential); -typedef void (^AFURLSessionDidFinishEventsForBackgroundURLSessionBlock)(NSURLSession *session); - -typedef NSInputStream * (^AFURLSessionTaskNeedNewBodyStreamBlock)(NSURLSession *session, NSURLSessionTask *task); -typedef void (^AFURLSessionTaskDidSendBodyDataBlock)(NSURLSession *session, NSURLSessionTask *task, int64_t bytesSent, int64_t totalBytesSent, int64_t totalBytesExpectedToSend); -typedef void (^AFURLSessionTaskDidCompleteBlock)(NSURLSession *session, NSURLSessionTask *task, NSError *error); - -typedef NSURLSessionResponseDisposition (^AFURLSessionDataTaskDidReceiveResponseBlock)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSURLResponse *response); -typedef void (^AFURLSessionDataTaskDidBecomeDownloadTaskBlock)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSURLSessionDownloadTask *downloadTask); -typedef void (^AFURLSessionDataTaskDidReceiveDataBlock)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSData *data); -typedef NSCachedURLResponse * (^AFURLSessionDataTaskWillCacheResponseBlock)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSCachedURLResponse *proposedResponse); - -typedef NSURL * (^AFURLSessionDownloadTaskDidFinishDownloadingBlock)(NSURLSession *session, NSURLSessionDownloadTask *downloadTask, NSURL *location); -typedef void (^AFURLSessionDownloadTaskDidWriteDataBlock)(NSURLSession *session, NSURLSessionDownloadTask *downloadTask, int64_t bytesWritten, int64_t totalBytesWritten, int64_t totalBytesExpectedToWrite); -typedef void (^AFURLSessionDownloadTaskDidResumeBlock)(NSURLSession *session, NSURLSessionDownloadTask *downloadTask, int64_t fileOffset, int64_t expectedTotalBytes); - -typedef void (^AFURLSessionTaskCompletionHandler)(NSURLResponse *response, id responseObject, NSError *error); - -#pragma mark - - -@interface AFURLSessionManagerTaskDelegate : NSObject -@property (nonatomic, weak) AFURLSessionManager *manager; -@property (nonatomic, strong) NSMutableData *mutableData; -@property (nonatomic, strong) NSProgress *progress; -@property (nonatomic, copy) NSURL *downloadFileURL; -@property (nonatomic, copy) AFURLSessionDownloadTaskDidFinishDownloadingBlock downloadTaskDidFinishDownloading; -@property (nonatomic, copy) AFURLSessionTaskCompletionHandler completionHandler; -@end - -@implementation AFURLSessionManagerTaskDelegate - -- (instancetype)init { - self = [super init]; - if (!self) { - return nil; - } - - self.mutableData = [NSMutableData data]; - - self.progress = [NSProgress progressWithTotalUnitCount:0]; - - return self; -} - -#pragma mark - NSURLSessionTaskDelegate - -- (void)URLSession:(__unused NSURLSession *)session - task:(__unused NSURLSessionTask *)task - didSendBodyData:(__unused int64_t)bytesSent - totalBytesSent:(int64_t)totalBytesSent -totalBytesExpectedToSend:(int64_t)totalBytesExpectedToSend -{ - self.progress.totalUnitCount = totalBytesExpectedToSend; - self.progress.completedUnitCount = totalBytesSent; -} - -- (void)URLSession:(__unused NSURLSession *)session - task:(NSURLSessionTask *)task -didCompleteWithError:(NSError *)error -{ -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgnu" - __strong AFURLSessionManager *manager = self.manager; - - __block id responseObject = nil; - - __block NSMutableDictionary *userInfo = [NSMutableDictionary dictionary]; - userInfo[AFNetworkingTaskDidCompleteResponseSerializerKey] = manager.responseSerializer; - - if (self.downloadFileURL) { - userInfo[AFNetworkingTaskDidCompleteAssetPathKey] = self.downloadFileURL; - } else if (self.mutableData) { - userInfo[AFNetworkingTaskDidCompleteResponseDataKey] = [NSData dataWithData:self.mutableData]; - } - - if (error) { - userInfo[AFNetworkingTaskDidCompleteErrorKey] = error; - - dispatch_group_async(manager.completionGroup ?: url_session_manager_completion_group(), manager.completionQueue ?: dispatch_get_main_queue(), ^{ - if (self.completionHandler) { - self.completionHandler(task.response, responseObject, error); - } - - dispatch_async(dispatch_get_main_queue(), ^{ - [[NSNotificationCenter defaultCenter] postNotificationName:AFNetworkingTaskDidCompleteNotification object:task userInfo:userInfo]; - }); - }); - } else { - dispatch_async(url_session_manager_processing_queue(), ^{ - NSError *serializationError = nil; - responseObject = [manager.responseSerializer responseObjectForResponse:task.response data:[NSData dataWithData:self.mutableData] error:&serializationError]; - - if (self.downloadFileURL) { - responseObject = self.downloadFileURL; - } - - if (responseObject) { - userInfo[AFNetworkingTaskDidCompleteSerializedResponseKey] = responseObject; - } - - if (serializationError) { - userInfo[AFNetworkingTaskDidCompleteErrorKey] = serializationError; - } - - dispatch_group_async(manager.completionGroup ?: url_session_manager_completion_group(), manager.completionQueue ?: dispatch_get_main_queue(), ^{ - if (self.completionHandler) { - self.completionHandler(task.response, responseObject, serializationError); - } - - dispatch_async(dispatch_get_main_queue(), ^{ - [[NSNotificationCenter defaultCenter] postNotificationName:AFNetworkingTaskDidCompleteNotification object:task userInfo:userInfo]; - }); - }); - }); - } -#pragma clang diagnostic pop -} - -#pragma mark - NSURLSessionDataTaskDelegate - -- (void)URLSession:(__unused NSURLSession *)session - dataTask:(__unused NSURLSessionDataTask *)dataTask - didReceiveData:(NSData *)data -{ - [self.mutableData appendData:data]; -} - -#pragma mark - NSURLSessionDownloadTaskDelegate - -- (void)URLSession:(NSURLSession *)session - downloadTask:(NSURLSessionDownloadTask *)downloadTask -didFinishDownloadingToURL:(NSURL *)location -{ - NSError *fileManagerError = nil; - self.downloadFileURL = nil; - - if (self.downloadTaskDidFinishDownloading) { - self.downloadFileURL = self.downloadTaskDidFinishDownloading(session, downloadTask, location); - if (self.downloadFileURL) { - [[NSFileManager defaultManager] moveItemAtURL:location toURL:self.downloadFileURL error:&fileManagerError]; - - if (fileManagerError) { - [[NSNotificationCenter defaultCenter] postNotificationName:AFURLSessionDownloadTaskDidFailToMoveFileNotification object:downloadTask userInfo:fileManagerError.userInfo]; - } - } - } -} - -- (void)URLSession:(__unused NSURLSession *)session - downloadTask:(__unused NSURLSessionDownloadTask *)downloadTask - didWriteData:(__unused int64_t)bytesWritten - totalBytesWritten:(int64_t)totalBytesWritten -totalBytesExpectedToWrite:(int64_t)totalBytesExpectedToWrite -{ - self.progress.totalUnitCount = totalBytesExpectedToWrite; - self.progress.completedUnitCount = totalBytesWritten; -} - -- (void)URLSession:(__unused NSURLSession *)session - downloadTask:(__unused NSURLSessionDownloadTask *)downloadTask - didResumeAtOffset:(int64_t)fileOffset -expectedTotalBytes:(int64_t)expectedTotalBytes { - self.progress.totalUnitCount = expectedTotalBytes; - self.progress.completedUnitCount = fileOffset; -} - -@end - -#pragma mark - - -/** - * A workaround for issues related to key-value observing the `state` of an `NSURLSessionTask`. - * - * See: - * - https://github.com/AFNetworking/AFNetworking/issues/1477 - * - https://github.com/AFNetworking/AFNetworking/issues/2638 - * - https://github.com/AFNetworking/AFNetworking/pull/2702 - */ - -static inline void af_swizzleSelector(Class class, SEL originalSelector, SEL swizzledSelector) { - Method originalMethod = class_getInstanceMethod(class, originalSelector); - Method swizzledMethod = class_getInstanceMethod(class, swizzledSelector); - method_exchangeImplementations(originalMethod, swizzledMethod); -} - -static inline BOOL af_addMethod(Class class, SEL selector, Method method) { - return class_addMethod(class, selector, method_getImplementation(method), method_getTypeEncoding(method)); -} - -static NSString * const AFNSURLSessionTaskDidResumeNotification = @"com.alamofire.networking.nsurlsessiontask.resume"; -static NSString * const AFNSURLSessionTaskDidSuspendNotification = @"com.alamofire.networking.nsurlsessiontask.suspend"; - -@interface _AFURLSessionTaskSwizzling : NSObject - -@end - -@implementation _AFURLSessionTaskSwizzling - -+ (void)load { - /** - WARNING: Trouble Ahead - https://github.com/AFNetworking/AFNetworking/pull/2702 - */ - - if (NSClassFromString(@"NSURLSessionTask")) { - /** - iOS 7 and iOS 8 differ in NSURLSessionTask implementation, which makes the next bit of code a bit tricky. - Many Unit Tests have been built to validate as much of this behavior has possible. - Here is what we know: - - NSURLSessionTasks are implemented with class clusters, meaning the class you request from the API isn't actually the type of class you will get back. - - Simply referencing `[NSURLSessionTask class]` will not work. You need to ask an `NSURLSession` to actually create an object, and grab the class from there. - - On iOS 7, `localDataTask` is a `__NSCFLocalDataTask`, which inherits from `__NSCFLocalSessionTask`, which inherits from `__NSCFURLSessionTask`. - - On iOS 8, `localDataTask` is a `__NSCFLocalDataTask`, which inherits from `__NSCFLocalSessionTask`, which inherits from `NSURLSessionTask`. - - On iOS 7, `__NSCFLocalSessionTask` and `__NSCFURLSessionTask` are the only two classes that have their own implementations of `resume` and `suspend`, and `__NSCFLocalSessionTask` DOES NOT CALL SUPER. This means both classes need to be swizzled. - - On iOS 8, `NSURLSessionTask` is the only class that implements `resume` and `suspend`. This means this is the only class that needs to be swizzled. - - Because `NSURLSessionTask` is not involved in the class hierarchy for every version of iOS, its easier to add the swizzled methods to a dummy class and manage them there. - - Some Assumptions: - - No implementations of `resume` or `suspend` call super. If this were to change in a future version of iOS, we'd need to handle it. - - No background task classes override `resume` or `suspend` - - The current solution: - 1) Grab an instance of `__NSCFLocalDataTask` by asking an instance of `NSURLSession` for a data task. - 2) Grab a pointer to the original implementation of `af_resume` - 3) Check to see if the current class has an implementation of resume. If so, continue to step 4. - 4) Grab the super class of the current class. - 5) Grab a pointer for the current class to the current implementation of `resume`. - 6) Grab a pointer for the super class to the current implementation of `resume`. - 7) If the current class implementation of `resume` is not equal to the super class implementation of `resume` AND the current implementation of `resume` is not equal to the original implementation of `af_resume`, THEN swizzle the methods - 8) Set the current class to the super class, and repeat steps 3-8 - */ - NSURLSessionDataTask *localDataTask = [[NSURLSession sessionWithConfiguration:nil] dataTaskWithURL:nil]; - IMP originalAFResumeIMP = method_getImplementation(class_getInstanceMethod([_AFURLSessionTaskSwizzling class], @selector(af_resume))); - Class currentClass = [localDataTask class]; - - while (class_getInstanceMethod(currentClass, @selector(resume))) { - Class superClass = [currentClass superclass]; - IMP classResumeIMP = method_getImplementation(class_getInstanceMethod(currentClass, @selector(resume))); - IMP superclassResumeIMP = method_getImplementation(class_getInstanceMethod(superClass, @selector(resume))); - if (classResumeIMP != superclassResumeIMP && - originalAFResumeIMP != classResumeIMP) { - [self swizzleResumeAndSuspendMethodForClass:currentClass]; - } - currentClass = [currentClass superclass]; - } - - [localDataTask cancel]; - } -} - -+ (void)swizzleResumeAndSuspendMethodForClass:(Class)class { - Method afResumeMethod = class_getInstanceMethod(self, @selector(af_resume)); - Method afSuspendMethod = class_getInstanceMethod(self, @selector(af_suspend)); - - af_addMethod(class, @selector(af_resume), afResumeMethod); - af_addMethod(class, @selector(af_suspend), afSuspendMethod); - - af_swizzleSelector(class, @selector(resume), @selector(af_resume)); - af_swizzleSelector(class, @selector(suspend), @selector(af_suspend)); -} - -- (NSURLSessionTaskState)state { - NSAssert(NO, @"State method should never be called in the actual dummy class"); - return NSURLSessionTaskStateCanceling; -} - -- (void)af_resume { - NSAssert([self respondsToSelector:@selector(state)], @"Does not respond to state"); - NSURLSessionTaskState state = [self state]; - [self af_resume]; - - if (state != NSURLSessionTaskStateRunning) { - [[NSNotificationCenter defaultCenter] postNotificationName:AFNSURLSessionTaskDidResumeNotification object:self]; - } -} - -- (void)af_suspend { - NSAssert([self respondsToSelector:@selector(state)], @"Does not respond to state"); - NSURLSessionTaskState state = [self state]; - [self af_suspend]; - - if (state != NSURLSessionTaskStateSuspended) { - [[NSNotificationCenter defaultCenter] postNotificationName:AFNSURLSessionTaskDidSuspendNotification object:self]; - } -} -@end - -#pragma mark - - -@interface AFURLSessionManager () -@property (readwrite, nonatomic, strong) NSURLSessionConfiguration *sessionConfiguration; -@property (readwrite, nonatomic, strong) NSOperationQueue *operationQueue; -@property (readwrite, nonatomic, strong) NSURLSession *session; -@property (readwrite, nonatomic, strong) NSMutableDictionary *mutableTaskDelegatesKeyedByTaskIdentifier; -@property (readonly, nonatomic, copy) NSString *taskDescriptionForSessionTasks; -@property (readwrite, nonatomic, strong) NSLock *lock; -@property (readwrite, nonatomic, copy) AFURLSessionDidBecomeInvalidBlock sessionDidBecomeInvalid; -@property (readwrite, nonatomic, copy) AFURLSessionDidReceiveAuthenticationChallengeBlock sessionDidReceiveAuthenticationChallenge; -@property (readwrite, nonatomic, copy) AFURLSessionDidFinishEventsForBackgroundURLSessionBlock didFinishEventsForBackgroundURLSession; -@property (readwrite, nonatomic, copy) AFURLSessionTaskWillPerformHTTPRedirectionBlock taskWillPerformHTTPRedirection; -@property (readwrite, nonatomic, copy) AFURLSessionTaskDidReceiveAuthenticationChallengeBlock taskDidReceiveAuthenticationChallenge; -@property (readwrite, nonatomic, copy) AFURLSessionTaskNeedNewBodyStreamBlock taskNeedNewBodyStream; -@property (readwrite, nonatomic, copy) AFURLSessionTaskDidSendBodyDataBlock taskDidSendBodyData; -@property (readwrite, nonatomic, copy) AFURLSessionTaskDidCompleteBlock taskDidComplete; -@property (readwrite, nonatomic, copy) AFURLSessionDataTaskDidReceiveResponseBlock dataTaskDidReceiveResponse; -@property (readwrite, nonatomic, copy) AFURLSessionDataTaskDidBecomeDownloadTaskBlock dataTaskDidBecomeDownloadTask; -@property (readwrite, nonatomic, copy) AFURLSessionDataTaskDidReceiveDataBlock dataTaskDidReceiveData; -@property (readwrite, nonatomic, copy) AFURLSessionDataTaskWillCacheResponseBlock dataTaskWillCacheResponse; -@property (readwrite, nonatomic, copy) AFURLSessionDownloadTaskDidFinishDownloadingBlock downloadTaskDidFinishDownloading; -@property (readwrite, nonatomic, copy) AFURLSessionDownloadTaskDidWriteDataBlock downloadTaskDidWriteData; -@property (readwrite, nonatomic, copy) AFURLSessionDownloadTaskDidResumeBlock downloadTaskDidResume; -@end - -@implementation AFURLSessionManager - -- (instancetype)init { - return [self initWithSessionConfiguration:nil]; -} - -- (instancetype)initWithSessionConfiguration:(NSURLSessionConfiguration *)configuration { - self = [super init]; - if (!self) { - return nil; - } - - if (!configuration) { - configuration = [NSURLSessionConfiguration defaultSessionConfiguration]; - } - - self.sessionConfiguration = configuration; - - self.operationQueue = [[NSOperationQueue alloc] init]; - self.operationQueue.maxConcurrentOperationCount = 1; - - self.session = [NSURLSession sessionWithConfiguration:self.sessionConfiguration delegate:self delegateQueue:self.operationQueue]; - - self.responseSerializer = [AFJSONResponseSerializer serializer]; - - self.securityPolicy = [AFSecurityPolicy defaultPolicy]; - - self.reachabilityManager = [AFNetworkReachabilityManager sharedManager]; - - self.mutableTaskDelegatesKeyedByTaskIdentifier = [[NSMutableDictionary alloc] init]; - - self.lock = [[NSLock alloc] init]; - self.lock.name = AFURLSessionManagerLockName; - - [self.session getTasksWithCompletionHandler:^(NSArray *dataTasks, NSArray *uploadTasks, NSArray *downloadTasks) { - for (NSURLSessionDataTask *task in dataTasks) { - [self addDelegateForDataTask:task completionHandler:nil]; - } - - for (NSURLSessionUploadTask *uploadTask in uploadTasks) { - [self addDelegateForUploadTask:uploadTask progress:nil completionHandler:nil]; - } - - for (NSURLSessionDownloadTask *downloadTask in downloadTasks) { - [self addDelegateForDownloadTask:downloadTask progress:nil destination:nil completionHandler:nil]; - } - }]; - - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(taskDidResume:) name:AFNSURLSessionTaskDidResumeNotification object:nil]; - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(taskDidSuspend:) name:AFNSURLSessionTaskDidSuspendNotification object:nil]; - - return self; -} - -- (void)dealloc { - [[NSNotificationCenter defaultCenter] removeObserver:self]; -} - -#pragma mark - - -- (NSString *)taskDescriptionForSessionTasks { - return [NSString stringWithFormat:@"%p", self]; -} - -- (void)taskDidResume:(NSNotification *)notification { - NSURLSessionTask *task = notification.object; - if ([task respondsToSelector:@selector(taskDescription)]) { - if ([task.taskDescription isEqualToString:self.taskDescriptionForSessionTasks]) { - dispatch_async(dispatch_get_main_queue(), ^{ - [[NSNotificationCenter defaultCenter] postNotificationName:AFNetworkingTaskDidResumeNotification object:task]; - }); - } - } -} - -- (void)taskDidSuspend:(NSNotification *)notification { - NSURLSessionTask *task = notification.object; - if ([task respondsToSelector:@selector(taskDescription)]) { - if ([task.taskDescription isEqualToString:self.taskDescriptionForSessionTasks]) { - dispatch_async(dispatch_get_main_queue(), ^{ - [[NSNotificationCenter defaultCenter] postNotificationName:AFNetworkingTaskDidSuspendNotification object:task]; - }); - } - } -} - -#pragma mark - - -- (AFURLSessionManagerTaskDelegate *)delegateForTask:(NSURLSessionTask *)task { - NSParameterAssert(task); - - AFURLSessionManagerTaskDelegate *delegate = nil; - [self.lock lock]; - delegate = self.mutableTaskDelegatesKeyedByTaskIdentifier[@(task.taskIdentifier)]; - [self.lock unlock]; - - return delegate; -} - -- (void)setDelegate:(AFURLSessionManagerTaskDelegate *)delegate - forTask:(NSURLSessionTask *)task -{ - NSParameterAssert(task); - NSParameterAssert(delegate); - - [self.lock lock]; - self.mutableTaskDelegatesKeyedByTaskIdentifier[@(task.taskIdentifier)] = delegate; - [self.lock unlock]; -} - -- (void)addDelegateForDataTask:(NSURLSessionDataTask *)dataTask - completionHandler:(void (^)(NSURLResponse *response, id responseObject, NSError *error))completionHandler -{ - AFURLSessionManagerTaskDelegate *delegate = [[AFURLSessionManagerTaskDelegate alloc] init]; - delegate.manager = self; - delegate.completionHandler = completionHandler; - - dataTask.taskDescription = self.taskDescriptionForSessionTasks; - [self setDelegate:delegate forTask:dataTask]; -} - -- (void)addDelegateForUploadTask:(NSURLSessionUploadTask *)uploadTask - progress:(NSProgress * __autoreleasing *)progress - completionHandler:(void (^)(NSURLResponse *response, id responseObject, NSError *error))completionHandler -{ - AFURLSessionManagerTaskDelegate *delegate = [[AFURLSessionManagerTaskDelegate alloc] init]; - delegate.manager = self; - delegate.completionHandler = completionHandler; - - int64_t totalUnitCount = uploadTask.countOfBytesExpectedToSend; - if(totalUnitCount == NSURLSessionTransferSizeUnknown) { - NSString *contentLength = [uploadTask.originalRequest valueForHTTPHeaderField:@"Content-Length"]; - if(contentLength) { - totalUnitCount = (int64_t)[contentLength longLongValue]; - } - } - - if (delegate.progress) { - delegate.progress.totalUnitCount = totalUnitCount; - } else { - delegate.progress = [NSProgress progressWithTotalUnitCount:totalUnitCount]; - } - - delegate.progress.pausingHandler = ^{ - [uploadTask suspend]; - }; - delegate.progress.cancellationHandler = ^{ - [uploadTask cancel]; - }; - - if (progress) { - *progress = delegate.progress; - } - - uploadTask.taskDescription = self.taskDescriptionForSessionTasks; - - [self setDelegate:delegate forTask:uploadTask]; -} - -- (void)addDelegateForDownloadTask:(NSURLSessionDownloadTask *)downloadTask - progress:(NSProgress * __autoreleasing *)progress - destination:(NSURL * (^)(NSURL *targetPath, NSURLResponse *response))destination - completionHandler:(void (^)(NSURLResponse *response, NSURL *filePath, NSError *error))completionHandler -{ - AFURLSessionManagerTaskDelegate *delegate = [[AFURLSessionManagerTaskDelegate alloc] init]; - delegate.manager = self; - delegate.completionHandler = completionHandler; - - if (destination) { - delegate.downloadTaskDidFinishDownloading = ^NSURL * (NSURLSession * __unused session, NSURLSessionDownloadTask *task, NSURL *location) { - return destination(location, task.response); - }; - } - - if (progress) { - *progress = delegate.progress; - } - - downloadTask.taskDescription = self.taskDescriptionForSessionTasks; - - [self setDelegate:delegate forTask:downloadTask]; -} - -- (void)removeDelegateForTask:(NSURLSessionTask *)task { - NSParameterAssert(task); - - [self.lock lock]; - [self.mutableTaskDelegatesKeyedByTaskIdentifier removeObjectForKey:@(task.taskIdentifier)]; - [self.lock unlock]; -} - -- (void)removeAllDelegates { - [self.lock lock]; - [self.mutableTaskDelegatesKeyedByTaskIdentifier removeAllObjects]; - [self.lock unlock]; -} - -#pragma mark - - -- (NSArray *)tasksForKeyPath:(NSString *)keyPath { - __block NSArray *tasks = nil; - dispatch_semaphore_t semaphore = dispatch_semaphore_create(0); - [self.session getTasksWithCompletionHandler:^(NSArray *dataTasks, NSArray *uploadTasks, NSArray *downloadTasks) { - if ([keyPath isEqualToString:NSStringFromSelector(@selector(dataTasks))]) { - tasks = dataTasks; - } else if ([keyPath isEqualToString:NSStringFromSelector(@selector(uploadTasks))]) { - tasks = uploadTasks; - } else if ([keyPath isEqualToString:NSStringFromSelector(@selector(downloadTasks))]) { - tasks = downloadTasks; - } else if ([keyPath isEqualToString:NSStringFromSelector(@selector(tasks))]) { - tasks = [@[dataTasks, uploadTasks, downloadTasks] valueForKeyPath:@"@unionOfArrays.self"]; - } - - dispatch_semaphore_signal(semaphore); - }]; - - dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER); - - return tasks; -} - -- (NSArray *)tasks { - return [self tasksForKeyPath:NSStringFromSelector(_cmd)]; -} - -- (NSArray *)dataTasks { - return [self tasksForKeyPath:NSStringFromSelector(_cmd)]; -} - -- (NSArray *)uploadTasks { - return [self tasksForKeyPath:NSStringFromSelector(_cmd)]; -} - -- (NSArray *)downloadTasks { - return [self tasksForKeyPath:NSStringFromSelector(_cmd)]; -} - -#pragma mark - - -- (void)invalidateSessionCancelingTasks:(BOOL)cancelPendingTasks { - dispatch_async(dispatch_get_main_queue(), ^{ - if (cancelPendingTasks) { - [self.session invalidateAndCancel]; - } else { - [self.session finishTasksAndInvalidate]; - } - }); -} - -#pragma mark - - -- (void)setResponseSerializer:(id )responseSerializer { - NSParameterAssert(responseSerializer); - - _responseSerializer = responseSerializer; -} - -#pragma mark - - -- (NSURLSessionDataTask *)dataTaskWithRequest:(NSURLRequest *)request - completionHandler:(void (^)(NSURLResponse *response, id responseObject, NSError *error))completionHandler -{ - __block NSURLSessionDataTask *dataTask = nil; - dispatch_sync(url_session_manager_creation_queue(), ^{ - dataTask = [self.session dataTaskWithRequest:request]; - }); - - [self addDelegateForDataTask:dataTask completionHandler:completionHandler]; - - return dataTask; -} - -#pragma mark - - -- (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request - fromFile:(NSURL *)fileURL - progress:(NSProgress * __autoreleasing *)progress - completionHandler:(void (^)(NSURLResponse *response, id responseObject, NSError *error))completionHandler -{ - __block NSURLSessionUploadTask *uploadTask = nil; - dispatch_sync(url_session_manager_creation_queue(), ^{ - uploadTask = [self.session uploadTaskWithRequest:request fromFile:fileURL]; - }); - - if (!uploadTask && self.attemptsToRecreateUploadTasksForBackgroundSessions && self.session.configuration.identifier) { - for (NSUInteger attempts = 0; !uploadTask && attempts < AFMaximumNumberOfAttemptsToRecreateBackgroundSessionUploadTask; attempts++) { - uploadTask = [self.session uploadTaskWithRequest:request fromFile:fileURL]; - } - } - - [self addDelegateForUploadTask:uploadTask progress:progress completionHandler:completionHandler]; - - return uploadTask; -} - -- (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request - fromData:(NSData *)bodyData - progress:(NSProgress * __autoreleasing *)progress - completionHandler:(void (^)(NSURLResponse *response, id responseObject, NSError *error))completionHandler -{ - __block NSURLSessionUploadTask *uploadTask = nil; - dispatch_sync(url_session_manager_creation_queue(), ^{ - uploadTask = [self.session uploadTaskWithRequest:request fromData:bodyData]; - }); - - [self addDelegateForUploadTask:uploadTask progress:progress completionHandler:completionHandler]; - - return uploadTask; -} - -- (NSURLSessionUploadTask *)uploadTaskWithStreamedRequest:(NSURLRequest *)request - progress:(NSProgress * __autoreleasing *)progress - completionHandler:(void (^)(NSURLResponse *response, id responseObject, NSError *error))completionHandler -{ - __block NSURLSessionUploadTask *uploadTask = nil; - dispatch_sync(url_session_manager_creation_queue(), ^{ - uploadTask = [self.session uploadTaskWithStreamedRequest:request]; - }); - - [self addDelegateForUploadTask:uploadTask progress:progress completionHandler:completionHandler]; - - return uploadTask; -} - -#pragma mark - - -- (NSURLSessionDownloadTask *)downloadTaskWithRequest:(NSURLRequest *)request - progress:(NSProgress * __autoreleasing *)progress - destination:(NSURL * (^)(NSURL *targetPath, NSURLResponse *response))destination - completionHandler:(void (^)(NSURLResponse *response, NSURL *filePath, NSError *error))completionHandler -{ - __block NSURLSessionDownloadTask *downloadTask = nil; - dispatch_sync(url_session_manager_creation_queue(), ^{ - downloadTask = [self.session downloadTaskWithRequest:request]; - }); - - [self addDelegateForDownloadTask:downloadTask progress:progress destination:destination completionHandler:completionHandler]; - - return downloadTask; -} - -- (NSURLSessionDownloadTask *)downloadTaskWithResumeData:(NSData *)resumeData - progress:(NSProgress * __autoreleasing *)progress - destination:(NSURL * (^)(NSURL *targetPath, NSURLResponse *response))destination - completionHandler:(void (^)(NSURLResponse *response, NSURL *filePath, NSError *error))completionHandler -{ - __block NSURLSessionDownloadTask *downloadTask = nil; - dispatch_sync(url_session_manager_creation_queue(), ^{ - downloadTask = [self.session downloadTaskWithResumeData:resumeData]; - }); - - [self addDelegateForDownloadTask:downloadTask progress:progress destination:destination completionHandler:completionHandler]; - - return downloadTask; -} - -#pragma mark - - -- (NSProgress *)uploadProgressForTask:(NSURLSessionUploadTask *)uploadTask { - return [[self delegateForTask:uploadTask] progress]; -} - -- (NSProgress *)downloadProgressForTask:(NSURLSessionDownloadTask *)downloadTask { - return [[self delegateForTask:downloadTask] progress]; -} - -#pragma mark - - -- (void)setSessionDidBecomeInvalidBlock:(void (^)(NSURLSession *session, NSError *error))block { - self.sessionDidBecomeInvalid = block; -} - -- (void)setSessionDidReceiveAuthenticationChallengeBlock:(NSURLSessionAuthChallengeDisposition (^)(NSURLSession *session, NSURLAuthenticationChallenge *challenge, NSURLCredential * __autoreleasing *credential))block { - self.sessionDidReceiveAuthenticationChallenge = block; -} - -- (void)setDidFinishEventsForBackgroundURLSessionBlock:(void (^)(NSURLSession *session))block { - self.didFinishEventsForBackgroundURLSession = block; -} - -#pragma mark - - -- (void)setTaskNeedNewBodyStreamBlock:(NSInputStream * (^)(NSURLSession *session, NSURLSessionTask *task))block { - self.taskNeedNewBodyStream = block; -} - -- (void)setTaskWillPerformHTTPRedirectionBlock:(NSURLRequest * (^)(NSURLSession *session, NSURLSessionTask *task, NSURLResponse *response, NSURLRequest *request))block { - self.taskWillPerformHTTPRedirection = block; -} - -- (void)setTaskDidReceiveAuthenticationChallengeBlock:(NSURLSessionAuthChallengeDisposition (^)(NSURLSession *session, NSURLSessionTask *task, NSURLAuthenticationChallenge *challenge, NSURLCredential * __autoreleasing *credential))block { - self.taskDidReceiveAuthenticationChallenge = block; -} - -- (void)setTaskDidSendBodyDataBlock:(void (^)(NSURLSession *session, NSURLSessionTask *task, int64_t bytesSent, int64_t totalBytesSent, int64_t totalBytesExpectedToSend))block { - self.taskDidSendBodyData = block; -} - -- (void)setTaskDidCompleteBlock:(void (^)(NSURLSession *session, NSURLSessionTask *task, NSError *error))block { - self.taskDidComplete = block; -} - -#pragma mark - - -- (void)setDataTaskDidReceiveResponseBlock:(NSURLSessionResponseDisposition (^)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSURLResponse *response))block { - self.dataTaskDidReceiveResponse = block; -} - -- (void)setDataTaskDidBecomeDownloadTaskBlock:(void (^)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSURLSessionDownloadTask *downloadTask))block { - self.dataTaskDidBecomeDownloadTask = block; -} - -- (void)setDataTaskDidReceiveDataBlock:(void (^)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSData *data))block { - self.dataTaskDidReceiveData = block; -} - -- (void)setDataTaskWillCacheResponseBlock:(NSCachedURLResponse * (^)(NSURLSession *session, NSURLSessionDataTask *dataTask, NSCachedURLResponse *proposedResponse))block { - self.dataTaskWillCacheResponse = block; -} - -#pragma mark - - -- (void)setDownloadTaskDidFinishDownloadingBlock:(NSURL * (^)(NSURLSession *session, NSURLSessionDownloadTask *downloadTask, NSURL *location))block { - self.downloadTaskDidFinishDownloading = block; -} - -- (void)setDownloadTaskDidWriteDataBlock:(void (^)(NSURLSession *session, NSURLSessionDownloadTask *downloadTask, int64_t bytesWritten, int64_t totalBytesWritten, int64_t totalBytesExpectedToWrite))block { - self.downloadTaskDidWriteData = block; -} - -- (void)setDownloadTaskDidResumeBlock:(void (^)(NSURLSession *session, NSURLSessionDownloadTask *downloadTask, int64_t fileOffset, int64_t expectedTotalBytes))block { - self.downloadTaskDidResume = block; -} - -#pragma mark - NSObject - -- (NSString *)description { - return [NSString stringWithFormat:@"<%@: %p, session: %@, operationQueue: %@>", NSStringFromClass([self class]), self, self.session, self.operationQueue]; -} - -- (BOOL)respondsToSelector:(SEL)selector { - if (selector == @selector(URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:)) { - return self.taskWillPerformHTTPRedirection != nil; - } else if (selector == @selector(URLSession:dataTask:didReceiveResponse:completionHandler:)) { - return self.dataTaskDidReceiveResponse != nil; - } else if (selector == @selector(URLSession:dataTask:willCacheResponse:completionHandler:)) { - return self.dataTaskWillCacheResponse != nil; - } else if (selector == @selector(URLSessionDidFinishEventsForBackgroundURLSession:)) { - return self.didFinishEventsForBackgroundURLSession != nil; - } - - return [[self class] instancesRespondToSelector:selector]; -} - -#pragma mark - NSURLSessionDelegate - -- (void)URLSession:(NSURLSession *)session -didBecomeInvalidWithError:(NSError *)error -{ - if (self.sessionDidBecomeInvalid) { - self.sessionDidBecomeInvalid(session, error); - } - - [self removeAllDelegates]; - [[NSNotificationCenter defaultCenter] postNotificationName:AFURLSessionDidInvalidateNotification object:session]; -} - -- (void)URLSession:(NSURLSession *)session -didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge - completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential *credential))completionHandler -{ - NSURLSessionAuthChallengeDisposition disposition = NSURLSessionAuthChallengePerformDefaultHandling; - __block NSURLCredential *credential = nil; - - if (self.sessionDidReceiveAuthenticationChallenge) { - disposition = self.sessionDidReceiveAuthenticationChallenge(session, challenge, &credential); - } else { - if ([challenge.protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust]) { - if ([self.securityPolicy evaluateServerTrust:challenge.protectionSpace.serverTrust forDomain:challenge.protectionSpace.host]) { - credential = [NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust]; - if (credential) { - disposition = NSURLSessionAuthChallengeUseCredential; - } else { - disposition = NSURLSessionAuthChallengePerformDefaultHandling; - } - } else { - disposition = NSURLSessionAuthChallengeCancelAuthenticationChallenge; - } - } else { - disposition = NSURLSessionAuthChallengePerformDefaultHandling; - } - } - - if (completionHandler) { - completionHandler(disposition, credential); - } -} - -#pragma mark - NSURLSessionTaskDelegate - -- (void)URLSession:(NSURLSession *)session - task:(NSURLSessionTask *)task -willPerformHTTPRedirection:(NSHTTPURLResponse *)response - newRequest:(NSURLRequest *)request - completionHandler:(void (^)(NSURLRequest *))completionHandler -{ - NSURLRequest *redirectRequest = request; - - if (self.taskWillPerformHTTPRedirection) { - redirectRequest = self.taskWillPerformHTTPRedirection(session, task, response, request); - } - - if (completionHandler) { - completionHandler(redirectRequest); - } -} - -- (void)URLSession:(NSURLSession *)session - task:(NSURLSessionTask *)task -didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge - completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential *credential))completionHandler -{ - NSURLSessionAuthChallengeDisposition disposition = NSURLSessionAuthChallengePerformDefaultHandling; - __block NSURLCredential *credential = nil; - - if (self.taskDidReceiveAuthenticationChallenge) { - disposition = self.taskDidReceiveAuthenticationChallenge(session, task, challenge, &credential); - } else { - if ([challenge.protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust]) { - if ([self.securityPolicy evaluateServerTrust:challenge.protectionSpace.serverTrust forDomain:challenge.protectionSpace.host]) { - disposition = NSURLSessionAuthChallengeUseCredential; - credential = [NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust]; - } else { - disposition = NSURLSessionAuthChallengeCancelAuthenticationChallenge; - } - } else { - disposition = NSURLSessionAuthChallengePerformDefaultHandling; - } - } - - if (completionHandler) { - completionHandler(disposition, credential); - } -} - -- (void)URLSession:(NSURLSession *)session - task:(NSURLSessionTask *)task - needNewBodyStream:(void (^)(NSInputStream *bodyStream))completionHandler -{ - NSInputStream *inputStream = nil; - - if (self.taskNeedNewBodyStream) { - inputStream = self.taskNeedNewBodyStream(session, task); - } else if (task.originalRequest.HTTPBodyStream && [task.originalRequest.HTTPBodyStream conformsToProtocol:@protocol(NSCopying)]) { - inputStream = [task.originalRequest.HTTPBodyStream copy]; - } - - if (completionHandler) { - completionHandler(inputStream); - } -} - -- (void)URLSession:(NSURLSession *)session - task:(NSURLSessionTask *)task - didSendBodyData:(int64_t)bytesSent - totalBytesSent:(int64_t)totalBytesSent -totalBytesExpectedToSend:(int64_t)totalBytesExpectedToSend -{ - - int64_t totalUnitCount = totalBytesExpectedToSend; - if(totalUnitCount == NSURLSessionTransferSizeUnknown) { - NSString *contentLength = [task.originalRequest valueForHTTPHeaderField:@"Content-Length"]; - if(contentLength) { - totalUnitCount = (int64_t) [contentLength longLongValue]; - } - } - - AFURLSessionManagerTaskDelegate *delegate = [self delegateForTask:task]; - [delegate URLSession:session task:task didSendBodyData:bytesSent totalBytesSent:totalBytesSent totalBytesExpectedToSend:totalUnitCount]; - - if (self.taskDidSendBodyData) { - self.taskDidSendBodyData(session, task, bytesSent, totalBytesSent, totalUnitCount); - } -} - -- (void)URLSession:(NSURLSession *)session - task:(NSURLSessionTask *)task -didCompleteWithError:(NSError *)error -{ - AFURLSessionManagerTaskDelegate *delegate = [self delegateForTask:task]; - - // delegate may be nil when completing a task in the background - if (delegate) { - [delegate URLSession:session task:task didCompleteWithError:error]; - - [self removeDelegateForTask:task]; - } - - if (self.taskDidComplete) { - self.taskDidComplete(session, task, error); - } - -} - -#pragma mark - NSURLSessionDataDelegate - -- (void)URLSession:(NSURLSession *)session - dataTask:(NSURLSessionDataTask *)dataTask -didReceiveResponse:(NSURLResponse *)response - completionHandler:(void (^)(NSURLSessionResponseDisposition disposition))completionHandler -{ - NSURLSessionResponseDisposition disposition = NSURLSessionResponseAllow; - - if (self.dataTaskDidReceiveResponse) { - disposition = self.dataTaskDidReceiveResponse(session, dataTask, response); - } - - if (completionHandler) { - completionHandler(disposition); - } -} - -- (void)URLSession:(NSURLSession *)session - dataTask:(NSURLSessionDataTask *)dataTask -didBecomeDownloadTask:(NSURLSessionDownloadTask *)downloadTask -{ - AFURLSessionManagerTaskDelegate *delegate = [self delegateForTask:dataTask]; - if (delegate) { - [self removeDelegateForTask:dataTask]; - [self setDelegate:delegate forTask:downloadTask]; - } - - if (self.dataTaskDidBecomeDownloadTask) { - self.dataTaskDidBecomeDownloadTask(session, dataTask, downloadTask); - } -} - -- (void)URLSession:(NSURLSession *)session - dataTask:(NSURLSessionDataTask *)dataTask - didReceiveData:(NSData *)data -{ - AFURLSessionManagerTaskDelegate *delegate = [self delegateForTask:dataTask]; - [delegate URLSession:session dataTask:dataTask didReceiveData:data]; - - if (self.dataTaskDidReceiveData) { - self.dataTaskDidReceiveData(session, dataTask, data); - } -} - -- (void)URLSession:(NSURLSession *)session - dataTask:(NSURLSessionDataTask *)dataTask - willCacheResponse:(NSCachedURLResponse *)proposedResponse - completionHandler:(void (^)(NSCachedURLResponse *cachedResponse))completionHandler -{ - NSCachedURLResponse *cachedResponse = proposedResponse; - - if (self.dataTaskWillCacheResponse) { - cachedResponse = self.dataTaskWillCacheResponse(session, dataTask, proposedResponse); - } - - if (completionHandler) { - completionHandler(cachedResponse); - } -} - -- (void)URLSessionDidFinishEventsForBackgroundURLSession:(NSURLSession *)session { - if (self.didFinishEventsForBackgroundURLSession) { - dispatch_async(dispatch_get_main_queue(), ^{ - self.didFinishEventsForBackgroundURLSession(session); - }); - } -} - -#pragma mark - NSURLSessionDownloadDelegate - -- (void)URLSession:(NSURLSession *)session - downloadTask:(NSURLSessionDownloadTask *)downloadTask -didFinishDownloadingToURL:(NSURL *)location -{ - AFURLSessionManagerTaskDelegate *delegate = [self delegateForTask:downloadTask]; - if (self.downloadTaskDidFinishDownloading) { - NSURL *fileURL = self.downloadTaskDidFinishDownloading(session, downloadTask, location); - if (fileURL) { - delegate.downloadFileURL = fileURL; - NSError *error = nil; - [[NSFileManager defaultManager] moveItemAtURL:location toURL:fileURL error:&error]; - if (error) { - [[NSNotificationCenter defaultCenter] postNotificationName:AFURLSessionDownloadTaskDidFailToMoveFileNotification object:downloadTask userInfo:error.userInfo]; - } - - return; - } - } - - if (delegate) { - [delegate URLSession:session downloadTask:downloadTask didFinishDownloadingToURL:location]; - } -} - -- (void)URLSession:(NSURLSession *)session - downloadTask:(NSURLSessionDownloadTask *)downloadTask - didWriteData:(int64_t)bytesWritten - totalBytesWritten:(int64_t)totalBytesWritten -totalBytesExpectedToWrite:(int64_t)totalBytesExpectedToWrite -{ - AFURLSessionManagerTaskDelegate *delegate = [self delegateForTask:downloadTask]; - [delegate URLSession:session downloadTask:downloadTask didWriteData:bytesWritten totalBytesWritten:totalBytesWritten totalBytesExpectedToWrite:totalBytesExpectedToWrite]; - - if (self.downloadTaskDidWriteData) { - self.downloadTaskDidWriteData(session, downloadTask, bytesWritten, totalBytesWritten, totalBytesExpectedToWrite); - } -} - -- (void)URLSession:(NSURLSession *)session - downloadTask:(NSURLSessionDownloadTask *)downloadTask - didResumeAtOffset:(int64_t)fileOffset -expectedTotalBytes:(int64_t)expectedTotalBytes -{ - AFURLSessionManagerTaskDelegate *delegate = [self delegateForTask:downloadTask]; - [delegate URLSession:session downloadTask:downloadTask didResumeAtOffset:fileOffset expectedTotalBytes:expectedTotalBytes]; - - if (self.downloadTaskDidResume) { - self.downloadTaskDidResume(session, downloadTask, fileOffset, expectedTotalBytes); - } -} - -#pragma mark - NSSecureCoding - -+ (BOOL)supportsSecureCoding { - return YES; -} - -- (id)initWithCoder:(NSCoder *)decoder { - NSURLSessionConfiguration *configuration = [decoder decodeObjectOfClass:[NSURLSessionConfiguration class] forKey:@"sessionConfiguration"]; - - self = [self initWithSessionConfiguration:configuration]; - if (!self) { - return nil; - } - - return self; -} - -- (void)encodeWithCoder:(NSCoder *)coder { - [coder encodeObject:self.session.configuration forKey:@"sessionConfiguration"]; -} - -#pragma mark - NSCopying - -- (id)copyWithZone:(NSZone *)zone { - return [[[self class] allocWithZone:zone] initWithSessionConfiguration:self.session.configuration]; -} - -@end - -#endif diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/LICENSE b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/LICENSE deleted file mode 100644 index 91f125b005e..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/README.md b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/README.md deleted file mode 100644 index 916a242f9b2..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/README.md +++ /dev/null @@ -1,385 +0,0 @@ -

- AFNetworking -

- -[![Build Status](https://travis-ci.org/AFNetworking/AFNetworking.svg)](https://travis-ci.org/AFNetworking/AFNetworking) - -AFNetworking is a delightful networking library for iOS and Mac OS X. It's built on top of the [Foundation URL Loading System](http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/URLLoadingSystem/URLLoadingSystem.html), extending the powerful high-level networking abstractions built into Cocoa. It has a modular architecture with well-designed, feature-rich APIs that are a joy to use. - -Perhaps the most important feature of all, however, is the amazing community of developers who use and contribute to AFNetworking every day. AFNetworking powers some of the most popular and critically-acclaimed apps on the iPhone, iPad, and Mac. - -Choose AFNetworking for your next project, or migrate over your existing projects—you'll be happy you did! - -## How To Get Started - -- [Download AFNetworking](https://github.com/AFNetworking/AFNetworking/archive/master.zip) and try out the included Mac and iPhone example apps -- Read the ["Getting Started" guide](https://github.com/AFNetworking/AFNetworking/wiki/Getting-Started-with-AFNetworking), [FAQ](https://github.com/AFNetworking/AFNetworking/wiki/AFNetworking-FAQ), or [other articles on the Wiki](https://github.com/AFNetworking/AFNetworking/wiki) -- Check out the [documentation](http://cocoadocs.org/docsets/AFNetworking/) for a comprehensive look at all of the APIs available in AFNetworking -- Read the [AFNetworking 2.0 Migration Guide](https://github.com/AFNetworking/AFNetworking/wiki/AFNetworking-2.0-Migration-Guide) for an overview of the architectural changes from 1.0. - -## Communication - -- If you **need help**, use [Stack Overflow](http://stackoverflow.com/questions/tagged/afnetworking). (Tag 'afnetworking') -- If you'd like to **ask a general question**, use [Stack Overflow](http://stackoverflow.com/questions/tagged/afnetworking). -- If you **found a bug**, _and can provide steps to reliably reproduce it_, open an issue. -- If you **have a feature request**, open an issue. -- If you **want to contribute**, submit a pull request. - -### Installation with CocoaPods - -[CocoaPods](http://cocoapods.org) is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like AFNetworking in your projects. See the ["Getting Started" guide for more information](https://github.com/AFNetworking/AFNetworking/wiki/Getting-Started-with-AFNetworking). - -#### Podfile - -```ruby -platform :ios, '7.0' -pod "AFNetworking", "~> 2.0" -``` - -## Requirements - -| AFNetworking Version | Minimum iOS Target | Minimum OS X Target | Notes | -|:--------------------:|:---------------------------:|:----------------------------:|:-------------------------------------------------------------------------:| -| 2.x | iOS 6 | OS X 10.8 | Xcode 5 is required. `NSURLSession` subspec requires iOS 7 or OS X 10.9. | -| [1.x](https://github.com/AFNetworking/AFNetworking/tree/1.x) | iOS 5 | Mac OS X 10.7 | | -| [0.10.x](https://github.com/AFNetworking/AFNetworking/tree/0.10.x) | iOS 4 | Mac OS X 10.6 | | - -(OS X projects must support [64-bit with modern Cocoa runtime](https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtVersionsPlatforms.html)). - -> Programming in Swift? Try [Alamofire](https://github.com/Alamofire/Alamofire) for a more conventional set of APIs. - -## Architecture - -### NSURLConnection - -- `AFURLConnectionOperation` -- `AFHTTPRequestOperation` -- `AFHTTPRequestOperationManager` - -### NSURLSession _(iOS 7 / Mac OS X 10.9)_ - -- `AFURLSessionManager` -- `AFHTTPSessionManager` - -### Serialization - -* `` - - `AFHTTPRequestSerializer` - - `AFJSONRequestSerializer` - - `AFPropertyListRequestSerializer` -* `` - - `AFHTTPResponseSerializer` - - `AFJSONResponseSerializer` - - `AFXMLParserResponseSerializer` - - `AFXMLDocumentResponseSerializer` _(Mac OS X)_ - - `AFPropertyListResponseSerializer` - - `AFImageResponseSerializer` - - `AFCompoundResponseSerializer` - -### Additional Functionality - -- `AFSecurityPolicy` -- `AFNetworkReachabilityManager` - -## Usage - -### HTTP Request Operation Manager - -`AFHTTPRequestOperationManager` encapsulates the common patterns of communicating with a web application over HTTP, including request creation, response serialization, network reachability monitoring, and security, as well as request operation management. - -#### `GET` Request - -```objective-c -AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; -[manager GET:@"http://example.com/resources.json" parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject) { - NSLog(@"JSON: %@", responseObject); -} failure:^(AFHTTPRequestOperation *operation, NSError *error) { - NSLog(@"Error: %@", error); -}]; -``` - -#### `POST` URL-Form-Encoded Request - -```objective-c -AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; -NSDictionary *parameters = @{@"foo": @"bar"}; -[manager POST:@"http://example.com/resources.json" parameters:parameters success:^(AFHTTPRequestOperation *operation, id responseObject) { - NSLog(@"JSON: %@", responseObject); -} failure:^(AFHTTPRequestOperation *operation, NSError *error) { - NSLog(@"Error: %@", error); -}]; -``` - -#### `POST` Multi-Part Request - -```objective-c -AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; -NSDictionary *parameters = @{@"foo": @"bar"}; -NSURL *filePath = [NSURL fileURLWithPath:@"file://path/to/image.png"]; -[manager POST:@"http://example.com/resources.json" parameters:parameters constructingBodyWithBlock:^(id formData) { - [formData appendPartWithFileURL:filePath name:@"image" error:nil]; -} success:^(AFHTTPRequestOperation *operation, id responseObject) { - NSLog(@"Success: %@", responseObject); -} failure:^(AFHTTPRequestOperation *operation, NSError *error) { - NSLog(@"Error: %@", error); -}]; -``` - ---- - -### AFURLSessionManager - -`AFURLSessionManager` creates and manages an `NSURLSession` object based on a specified `NSURLSessionConfiguration` object, which conforms to ``, ``, ``, and ``. - -#### Creating a Download Task - -```objective-c -NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration]; -AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration]; - -NSURL *URL = [NSURL URLWithString:@"http://example.com/download.zip"]; -NSURLRequest *request = [NSURLRequest requestWithURL:URL]; - -NSURLSessionDownloadTask *downloadTask = [manager downloadTaskWithRequest:request progress:nil destination:^NSURL *(NSURL *targetPath, NSURLResponse *response) { - NSURL *documentsDirectoryURL = [[NSFileManager defaultManager] URLForDirectory:NSDocumentDirectory inDomain:NSUserDomainMask appropriateForURL:nil create:NO error:nil]; - return [documentsDirectoryURL URLByAppendingPathComponent:[response suggestedFilename]]; -} completionHandler:^(NSURLResponse *response, NSURL *filePath, NSError *error) { - NSLog(@"File downloaded to: %@", filePath); -}]; -[downloadTask resume]; -``` - -#### Creating an Upload Task - -```objective-c -NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration]; -AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration]; - -NSURL *URL = [NSURL URLWithString:@"http://example.com/upload"]; -NSURLRequest *request = [NSURLRequest requestWithURL:URL]; - -NSURL *filePath = [NSURL fileURLWithPath:@"file://path/to/image.png"]; -NSURLSessionUploadTask *uploadTask = [manager uploadTaskWithRequest:request fromFile:filePath progress:nil completionHandler:^(NSURLResponse *response, id responseObject, NSError *error) { - if (error) { - NSLog(@"Error: %@", error); - } else { - NSLog(@"Success: %@ %@", response, responseObject); - } -}]; -[uploadTask resume]; -``` - -#### Creating an Upload Task for a Multi-Part Request, with Progress - -```objective-c -NSMutableURLRequest *request = [[AFHTTPRequestSerializer serializer] multipartFormRequestWithMethod:@"POST" URLString:@"http://example.com/upload" parameters:nil constructingBodyWithBlock:^(id formData) { - [formData appendPartWithFileURL:[NSURL fileURLWithPath:@"file://path/to/image.jpg"] name:@"file" fileName:@"filename.jpg" mimeType:@"image/jpeg" error:nil]; - } error:nil]; - -AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]]; -NSProgress *progress = nil; - -NSURLSessionUploadTask *uploadTask = [manager uploadTaskWithStreamedRequest:request progress:&progress completionHandler:^(NSURLResponse *response, id responseObject, NSError *error) { - if (error) { - NSLog(@"Error: %@", error); - } else { - NSLog(@"%@ %@", response, responseObject); - } -}]; - -[uploadTask resume]; -``` - -#### Creating a Data Task - -```objective-c -NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration]; -AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration]; - -NSURL *URL = [NSURL URLWithString:@"http://example.com/upload"]; -NSURLRequest *request = [NSURLRequest requestWithURL:URL]; - -NSURLSessionDataTask *dataTask = [manager dataTaskWithRequest:request completionHandler:^(NSURLResponse *response, id responseObject, NSError *error) { - if (error) { - NSLog(@"Error: %@", error); - } else { - NSLog(@"%@ %@", response, responseObject); - } -}]; -[dataTask resume]; -``` - ---- - -### Request Serialization - -Request serializers create requests from URL strings, encoding parameters as either a query string or HTTP body. - -```objective-c -NSString *URLString = @"http://example.com"; -NSDictionary *parameters = @{@"foo": @"bar", @"baz": @[@1, @2, @3]}; -``` - -#### Query String Parameter Encoding - -```objective-c -[[AFHTTPRequestSerializer serializer] requestWithMethod:@"GET" URLString:URLString parameters:parameters error:nil]; -``` - - GET http://example.com?foo=bar&baz[]=1&baz[]=2&baz[]=3 - -#### URL Form Parameter Encoding - -```objective-c -[[AFHTTPRequestSerializer serializer] requestWithMethod:@"POST" URLString:URLString parameters:parameters]; -``` - - POST http://example.com/ - Content-Type: application/x-www-form-urlencoded - - foo=bar&baz[]=1&baz[]=2&baz[]=3 - -#### JSON Parameter Encoding - -```objective-c -[[AFJSONRequestSerializer serializer] requestWithMethod:@"POST" URLString:URLString parameters:parameters]; -``` - - POST http://example.com/ - Content-Type: application/json - - {"foo": "bar", "baz": [1,2,3]} - ---- - -### Network Reachability Manager - -`AFNetworkReachabilityManager` monitors the reachability of domains, and addresses for both WWAN and WiFi network interfaces. - -**Network reachability is a diagnostic tool that can be used to understand why a request might have failed. It should not be used to determine whether or not to make a request.** - -#### Shared Network Reachability - -```objective-c -[[AFNetworkReachabilityManager sharedManager] setReachabilityStatusChangeBlock:^(AFNetworkReachabilityStatus status) { - NSLog(@"Reachability: %@", AFStringFromNetworkReachabilityStatus(status)); -}]; -``` - -#### HTTP Manager Reachability - -```objective-c -NSURL *baseURL = [NSURL URLWithString:@"http://example.com/"]; -AFHTTPRequestOperationManager *manager = [[AFHTTPRequestOperationManager alloc] initWithBaseURL:baseURL]; - -NSOperationQueue *operationQueue = manager.operationQueue; -[manager.reachabilityManager setReachabilityStatusChangeBlock:^(AFNetworkReachabilityStatus status) { - switch (status) { - case AFNetworkReachabilityStatusReachableViaWWAN: - case AFNetworkReachabilityStatusReachableViaWiFi: - [operationQueue setSuspended:NO]; - break; - case AFNetworkReachabilityStatusNotReachable: - default: - [operationQueue setSuspended:YES]; - break; - } -}]; - -[manager.reachabilityManager startMonitoring]; -``` - ---- - -### Security Policy - -`AFSecurityPolicy` evaluates server trust against pinned X.509 certificates and public keys over secure connections. - -Adding pinned SSL certificates to your app helps prevent man-in-the-middle attacks and other vulnerabilities. Applications dealing with sensitive customer data or financial information are strongly encouraged to route all communication over an HTTPS connection with SSL pinning configured and enabled. - -#### Allowing Invalid SSL Certificates - -```objective-c -AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; -manager.securityPolicy.allowInvalidCertificates = YES; // not recommended for production -``` - ---- - -### AFHTTPRequestOperation - -`AFHTTPRequestOperation` is a subclass of `AFURLConnectionOperation` for requests using the HTTP or HTTPS protocols. It encapsulates the concept of acceptable status codes and content types, which determine the success or failure of a request. - -Although `AFHTTPRequestOperationManager` is usually the best way to go about making requests, `AFHTTPRequestOperation` can be used by itself. - -#### `GET` with `AFHTTPRequestOperation` - -```objective-c -NSURL *URL = [NSURL URLWithString:@"http://example.com/resources/123.json"]; -NSURLRequest *request = [NSURLRequest requestWithURL:URL]; -AFHTTPRequestOperation *op = [[AFHTTPRequestOperation alloc] initWithRequest:request]; -op.responseSerializer = [AFJSONResponseSerializer serializer]; -[op setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) { - NSLog(@"JSON: %@", responseObject); -} failure:^(AFHTTPRequestOperation *operation, NSError *error) { - NSLog(@"Error: %@", error); -}]; -[[NSOperationQueue mainQueue] addOperation:op]; -``` - -#### Batch of Operations - -```objective-c -NSMutableArray *mutableOperations = [NSMutableArray array]; -for (NSURL *fileURL in filesToUpload) { - NSURLRequest *request = [[AFHTTPRequestSerializer serializer] multipartFormRequestWithMethod:@"POST" URLString:@"http://example.com/upload" parameters:nil constructingBodyWithBlock:^(id formData) { - [formData appendPartWithFileURL:fileURL name:@"images[]" error:nil]; - }]; - - AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request]; - - [mutableOperations addObject:operation]; -} - -NSArray *operations = [AFURLConnectionOperation batchOfRequestOperations:@[...] progressBlock:^(NSUInteger numberOfFinishedOperations, NSUInteger totalNumberOfOperations) { - NSLog(@"%lu of %lu complete", numberOfFinishedOperations, totalNumberOfOperations); -} completionBlock:^(NSArray *operations) { - NSLog(@"All operations in batch complete"); -}]; -[[NSOperationQueue mainQueue] addOperations:operations waitUntilFinished:NO]; -``` - -## Unit Tests - -AFNetworking includes a suite of unit tests within the Tests subdirectory. In order to run the unit tests, you must install the testing dependencies via [CocoaPods](http://cocoapods.org/): - - $ cd Tests - $ pod install - -Once testing dependencies are installed, you can execute the test suite via the 'iOS Tests' and 'OS X Tests' schemes within Xcode. - -### Running Tests from the Command Line - -Tests can also be run from the command line or within a continuous integration environment. The [`xcpretty`](https://github.com/mneorr/xcpretty) utility needs to be installed before running the tests from the command line: - - $ gem install xcpretty - -Once `xcpretty` is installed, you can execute the suite via `rake test`. - -## Credits - -AFNetworking is owned and maintained by the [Alamofire Software Foundation](http://alamofire.org). - -AFNetworking was originally created by [Scott Raymond](https://github.com/sco/) and [Mattt Thompson](https://github.com/mattt/) in the development of [Gowalla for iPhone](http://en.wikipedia.org/wiki/Gowalla). - -AFNetworking's logo was designed by [Alan Defibaugh](http://www.alandefibaugh.com/). - -And most of all, thanks to AFNetworking's [growing list of contributors](https://github.com/AFNetworking/AFNetworking/contributors). - -### Security Disclosure - -If you believe you have identified a security vulnerability with AFNetworking, you should report it as soon as possible via email to security@alamofire.org. Please do not post it to a public issue tracker. - -## License - -AFNetworking is released under the MIT license. See LICENSE for details. diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.h deleted file mode 100644 index 8242035869c..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.h +++ /dev/null @@ -1,75 +0,0 @@ -// AFNetworkActivityIndicatorManager.h -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import - -#import - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) - -#import - -/** - `AFNetworkActivityIndicatorManager` manages the state of the network activity indicator in the status bar. When enabled, it will listen for notifications indicating that a network request operation has started or finished, and start or stop animating the indicator accordingly. The number of active requests is incremented and decremented much like a stack or a semaphore, and the activity indicator will animate so long as that number is greater than zero. - - You should enable the shared instance of `AFNetworkActivityIndicatorManager` when your application finishes launching. In `AppDelegate application:didFinishLaunchingWithOptions:` you can do so with the following code: - - [[AFNetworkActivityIndicatorManager sharedManager] setEnabled:YES]; - - By setting `enabled` to `YES` for `sharedManager`, the network activity indicator will show and hide automatically as requests start and finish. You should not ever need to call `incrementActivityCount` or `decrementActivityCount` yourself. - - See the Apple Human Interface Guidelines section about the Network Activity Indicator for more information: - http://developer.apple.com/library/iOS/#documentation/UserExperience/Conceptual/MobileHIG/UIElementGuidelines/UIElementGuidelines.html#//apple_ref/doc/uid/TP40006556-CH13-SW44 - */ -@interface AFNetworkActivityIndicatorManager : NSObject - -/** - A Boolean value indicating whether the manager is enabled. - - If YES, the manager will change status bar network activity indicator according to network operation notifications it receives. The default value is NO. - */ -@property (nonatomic, assign, getter = isEnabled) BOOL enabled; - -/** - A Boolean value indicating whether the network activity indicator is currently displayed in the status bar. - */ -@property (readonly, nonatomic, assign) BOOL isNetworkActivityIndicatorVisible; - -/** - Returns the shared network activity indicator manager object for the system. - - @return The systemwide network activity indicator manager. - */ -+ (instancetype)sharedManager; - -/** - Increments the number of active network requests. If this number was zero before incrementing, this will start animating the status bar network activity indicator. - */ -- (void)incrementActivityCount; - -/** - Decrements the number of active network requests. If this number becomes zero after decrementing, this will stop animating the status bar network activity indicator. - */ -- (void)decrementActivityCount; - -@end - -#endif diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.m deleted file mode 100644 index 82c6cc3d54e..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.m +++ /dev/null @@ -1,172 +0,0 @@ -// AFNetworkActivityIndicatorManager.m -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import "AFNetworkActivityIndicatorManager.h" - -#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) - -#import "AFHTTPRequestOperation.h" - -#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000 -#import "AFURLSessionManager.h" -#endif - -static NSTimeInterval const kAFNetworkActivityIndicatorInvisibilityDelay = 0.17; - -static NSURLRequest * AFNetworkRequestFromNotification(NSNotification *notification) { - if ([[notification object] isKindOfClass:[AFURLConnectionOperation class]]) { - return [(AFURLConnectionOperation *)[notification object] request]; - } - -#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000 - if ([[notification object] respondsToSelector:@selector(originalRequest)]) { - return [(NSURLSessionTask *)[notification object] originalRequest]; - } -#endif - - return nil; -} - -@interface AFNetworkActivityIndicatorManager () -@property (readwrite, nonatomic, assign) NSInteger activityCount; -@property (readwrite, nonatomic, strong) NSTimer *activityIndicatorVisibilityTimer; -@property (readonly, nonatomic, getter = isNetworkActivityIndicatorVisible) BOOL networkActivityIndicatorVisible; - -- (void)updateNetworkActivityIndicatorVisibility; -- (void)updateNetworkActivityIndicatorVisibilityDelayed; -@end - -@implementation AFNetworkActivityIndicatorManager -@dynamic networkActivityIndicatorVisible; - -+ (instancetype)sharedManager { - static AFNetworkActivityIndicatorManager *_sharedManager = nil; - static dispatch_once_t oncePredicate; - dispatch_once(&oncePredicate, ^{ - _sharedManager = [[self alloc] init]; - }); - - return _sharedManager; -} - -+ (NSSet *)keyPathsForValuesAffectingIsNetworkActivityIndicatorVisible { - return [NSSet setWithObject:@"activityCount"]; -} - -- (id)init { - self = [super init]; - if (!self) { - return nil; - } - - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(networkRequestDidStart:) name:AFNetworkingOperationDidStartNotification object:nil]; - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(networkRequestDidFinish:) name:AFNetworkingOperationDidFinishNotification object:nil]; - -#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000 - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(networkRequestDidStart:) name:AFNetworkingTaskDidResumeNotification object:nil]; - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(networkRequestDidFinish:) name:AFNetworkingTaskDidSuspendNotification object:nil]; - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(networkRequestDidFinish:) name:AFNetworkingTaskDidCompleteNotification object:nil]; -#endif - - return self; -} - -- (void)dealloc { - [[NSNotificationCenter defaultCenter] removeObserver:self]; - - [_activityIndicatorVisibilityTimer invalidate]; -} - -- (void)updateNetworkActivityIndicatorVisibilityDelayed { - if (self.enabled) { - // Delay hiding of activity indicator for a short interval, to avoid flickering - if (![self isNetworkActivityIndicatorVisible]) { - [self.activityIndicatorVisibilityTimer invalidate]; - self.activityIndicatorVisibilityTimer = [NSTimer timerWithTimeInterval:kAFNetworkActivityIndicatorInvisibilityDelay target:self selector:@selector(updateNetworkActivityIndicatorVisibility) userInfo:nil repeats:NO]; - [[NSRunLoop mainRunLoop] addTimer:self.activityIndicatorVisibilityTimer forMode:NSRunLoopCommonModes]; - } else { - [self performSelectorOnMainThread:@selector(updateNetworkActivityIndicatorVisibility) withObject:nil waitUntilDone:NO modes:@[NSRunLoopCommonModes]]; - } - } -} - -- (BOOL)isNetworkActivityIndicatorVisible { - return self.activityCount > 0; -} - -- (void)updateNetworkActivityIndicatorVisibility { -#if !defined(AF_APP_EXTENSIONS) - [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:[self isNetworkActivityIndicatorVisible]]; -#endif -} - -- (void)setActivityCount:(NSInteger)activityCount { - @synchronized(self) { - _activityCount = activityCount; - } - - dispatch_async(dispatch_get_main_queue(), ^{ - [self updateNetworkActivityIndicatorVisibilityDelayed]; - }); -} - -- (void)incrementActivityCount { - [self willChangeValueForKey:@"activityCount"]; - @synchronized(self) { - _activityCount++; - } - [self didChangeValueForKey:@"activityCount"]; - - dispatch_async(dispatch_get_main_queue(), ^{ - [self updateNetworkActivityIndicatorVisibilityDelayed]; - }); -} - -- (void)decrementActivityCount { - [self willChangeValueForKey:@"activityCount"]; - @synchronized(self) { -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgnu" - _activityCount = MAX(_activityCount - 1, 0); -#pragma clang diagnostic pop - } - [self didChangeValueForKey:@"activityCount"]; - - dispatch_async(dispatch_get_main_queue(), ^{ - [self updateNetworkActivityIndicatorVisibilityDelayed]; - }); -} - -- (void)networkRequestDidStart:(NSNotification *)notification { - if ([AFNetworkRequestFromNotification(notification) URL]) { - [self incrementActivityCount]; - } -} - -- (void)networkRequestDidFinish:(NSNotification *)notification { - if ([AFNetworkRequestFromNotification(notification) URL]) { - [self decrementActivityCount]; - } -} - -@end - -#endif diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.h deleted file mode 100644 index 06e89c487ab..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.h +++ /dev/null @@ -1,63 +0,0 @@ -// UIActivityIndicatorView+AFNetworking.h -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import - -#import - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) - -#import - -@class AFURLConnectionOperation; - -/** - This category adds methods to the UIKit framework's `UIActivityIndicatorView` class. The methods in this category provide support for automatically starting and stopping animation depending on the loading state of a request operation or session task. - */ -@interface UIActivityIndicatorView (AFNetworking) - -///---------------------------------- -/// @name Animating for Session Tasks -///---------------------------------- - -/** - Binds the animating state to the state of the specified task. - - @param task The task. If `nil`, automatic updating from any previously specified operation will be disabled. - */ -#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 -- (void)setAnimatingWithStateOfTask:(NSURLSessionTask *)task; -#endif - -///--------------------------------------- -/// @name Animating for Request Operations -///--------------------------------------- - -/** - Binds the animating state to the execution state of the specified operation. - - @param operation The operation. If `nil`, automatic updating from any previously specified operation will be disabled. - */ -- (void)setAnimatingWithStateOfOperation:(AFURLConnectionOperation *)operation; - -@end - -#endif diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.m deleted file mode 100644 index 1a36091b7b0..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.m +++ /dev/null @@ -1,96 +0,0 @@ -// UIActivityIndicatorView+AFNetworking.m -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import "UIActivityIndicatorView+AFNetworking.h" - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) - -#import "AFHTTPRequestOperation.h" - -#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 -#import "AFURLSessionManager.h" -#endif - -@implementation UIActivityIndicatorView (AFNetworking) - -#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 -- (void)setAnimatingWithStateOfTask:(NSURLSessionTask *)task { - NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; - - [notificationCenter removeObserver:self name:AFNetworkingTaskDidResumeNotification object:nil]; - [notificationCenter removeObserver:self name:AFNetworkingTaskDidSuspendNotification object:nil]; - [notificationCenter removeObserver:self name:AFNetworkingTaskDidCompleteNotification object:nil]; - - if (task) { - if (task.state != NSURLSessionTaskStateCompleted) { - if (task.state == NSURLSessionTaskStateRunning) { - [self startAnimating]; - } else { - [self stopAnimating]; - } - - [notificationCenter addObserver:self selector:@selector(af_startAnimating) name:AFNetworkingTaskDidResumeNotification object:task]; - [notificationCenter addObserver:self selector:@selector(af_stopAnimating) name:AFNetworkingTaskDidCompleteNotification object:task]; - [notificationCenter addObserver:self selector:@selector(af_stopAnimating) name:AFNetworkingTaskDidSuspendNotification object:task]; - } - } -} -#endif - -#pragma mark - - -- (void)setAnimatingWithStateOfOperation:(AFURLConnectionOperation *)operation { - NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; - - [notificationCenter removeObserver:self name:AFNetworkingOperationDidStartNotification object:nil]; - [notificationCenter removeObserver:self name:AFNetworkingOperationDidFinishNotification object:nil]; - - if (operation) { - if (![operation isFinished]) { - if ([operation isExecuting]) { - [self startAnimating]; - } else { - [self stopAnimating]; - } - - [notificationCenter addObserver:self selector:@selector(af_startAnimating) name:AFNetworkingOperationDidStartNotification object:operation]; - [notificationCenter addObserver:self selector:@selector(af_stopAnimating) name:AFNetworkingOperationDidFinishNotification object:operation]; - } - } -} - -#pragma mark - - -- (void)af_startAnimating { - dispatch_async(dispatch_get_main_queue(), ^{ - [self startAnimating]; - }); -} - -- (void)af_stopAnimating { - dispatch_async(dispatch_get_main_queue(), ^{ - [self stopAnimating]; - }); -} - -@end - -#endif diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIAlertView+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIAlertView+AFNetworking.h deleted file mode 100644 index 80eddc16a70..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIAlertView+AFNetworking.h +++ /dev/null @@ -1,95 +0,0 @@ -// UIAlertView+AFNetworking.h -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import - -#import - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && !defined(AF_APP_EXTENSIONS) - -#import - -@class AFURLConnectionOperation; - -/** - This category adds methods to the UIKit framework's `UIAlertView` class. The methods in this category provide support for automatically showing an alert if a session task or request operation finishes with an error. Alert title and message are filled from the corresponding `localizedDescription` & `localizedRecoverySuggestion` or `localizedFailureReason` of the error. - */ -@interface UIAlertView (AFNetworking) - -///------------------------------------- -/// @name Showing Alert for Session Task -///------------------------------------- - -/** - Shows an alert view with the error of the specified session task, if any. - - @param task The session task. - @param delegate The alert view delegate. - */ -#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 -+ (void)showAlertViewForTaskWithErrorOnCompletion:(NSURLSessionTask *)task - delegate:(id)delegate; -#endif - -/** - Shows an alert view with the error of the specified session task, if any, with a custom cancel button title and other button titles. - - @param task The session task. - @param delegate The alert view delegate. - @param cancelButtonTitle The title of the cancel button or nil if there is no cancel button. Using this argument is equivalent to setting the cancel button index to the value returned by invoking addButtonWithTitle: specifying this title. - @param otherButtonTitles The title of another button. Using this argument is equivalent to invoking addButtonWithTitle: with this title to add more buttons. Too many buttons can cause the alert view to scroll. For guidelines on the best ways to use an alert in an app, see "Temporary Views". Titles of additional buttons to add to the receiver, terminated with `nil`. - */ -#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 -+ (void)showAlertViewForTaskWithErrorOnCompletion:(NSURLSessionTask *)task - delegate:(id)delegate - cancelButtonTitle:(NSString *)cancelButtonTitle - otherButtonTitles:(NSString *)otherButtonTitles, ... NS_REQUIRES_NIL_TERMINATION; -#endif - -///------------------------------------------ -/// @name Showing Alert for Request Operation -///------------------------------------------ - -/** - Shows an alert view with the error of the specified request operation, if any. - - @param operation The request operation. - @param delegate The alert view delegate. - */ -+ (void)showAlertViewForRequestOperationWithErrorOnCompletion:(AFURLConnectionOperation *)operation - delegate:(id)delegate; - -/** - Shows an alert view with the error of the specified request operation, if any, with a custom cancel button title and other button titles. - - @param operation The request operation. - @param delegate The alert view delegate. - @param cancelButtonTitle The title of the cancel button or nil if there is no cancel button. Using this argument is equivalent to setting the cancel button index to the value returned by invoking addButtonWithTitle: specifying this title. - @param otherButtonTitles The title of another button. Using this argument is equivalent to invoking addButtonWithTitle: with this title to add more buttons. Too many buttons can cause the alert view to scroll. For guidelines on the best ways to use an alert in an app, see "Temporary Views". Titles of additional buttons to add to the receiver, terminated with `nil`. - */ -+ (void)showAlertViewForRequestOperationWithErrorOnCompletion:(AFURLConnectionOperation *)operation - delegate:(id)delegate - cancelButtonTitle:(NSString *)cancelButtonTitle - otherButtonTitles:(NSString *)otherButtonTitles, ... NS_REQUIRES_NIL_TERMINATION; - -@end - -#endif diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIAlertView+AFNetworking.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIAlertView+AFNetworking.m deleted file mode 100644 index a128544f16c..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIAlertView+AFNetworking.m +++ /dev/null @@ -1,141 +0,0 @@ -// UIAlertView+AFNetworking.m -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import "UIAlertView+AFNetworking.h" - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && !defined(AF_APP_EXTENSIONS) - -#import "AFURLConnectionOperation.h" - -#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 -#import "AFURLSessionManager.h" -#endif - -static void AFGetAlertViewTitleAndMessageFromError(NSError *error, NSString * __autoreleasing *title, NSString * __autoreleasing *message) { - if (error.localizedDescription && (error.localizedRecoverySuggestion || error.localizedFailureReason)) { - *title = error.localizedDescription; - - if (error.localizedRecoverySuggestion) { - *message = error.localizedRecoverySuggestion; - } else { - *message = error.localizedFailureReason; - } - } else if (error.localizedDescription) { - *title = NSLocalizedStringFromTable(@"Error", @"AFNetworking", @"Fallback Error Description"); - *message = error.localizedDescription; - } else { - *title = NSLocalizedStringFromTable(@"Error", @"AFNetworking", @"Fallback Error Description"); - *message = [NSString stringWithFormat:NSLocalizedStringFromTable(@"%@ Error: %ld", @"AFNetworking", @"Fallback Error Failure Reason Format"), error.domain, (long)error.code]; - } -} - -@implementation UIAlertView (AFNetworking) - -#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 -+ (void)showAlertViewForTaskWithErrorOnCompletion:(NSURLSessionTask *)task - delegate:(id)delegate -{ - [self showAlertViewForTaskWithErrorOnCompletion:task delegate:delegate cancelButtonTitle:NSLocalizedStringFromTable(@"Dismiss", @"AFNetworking", @"UIAlertView Cancel Button Title") otherButtonTitles:nil, nil]; -} - -+ (void)showAlertViewForTaskWithErrorOnCompletion:(NSURLSessionTask *)task - delegate:(id)delegate - cancelButtonTitle:(NSString *)cancelButtonTitle - otherButtonTitles:(NSString *)otherButtonTitles, ... NS_REQUIRES_NIL_TERMINATION -{ - NSMutableArray *mutableOtherTitles = [NSMutableArray array]; - va_list otherButtonTitleList; - va_start(otherButtonTitleList, otherButtonTitles); - { - for (NSString *otherButtonTitle = otherButtonTitles; otherButtonTitle != nil; otherButtonTitle = va_arg(otherButtonTitleList, NSString *)) { - [mutableOtherTitles addObject:otherButtonTitle]; - } - } - va_end(otherButtonTitleList); - - __block __weak id observer = [[NSNotificationCenter defaultCenter] addObserverForName:AFNetworkingTaskDidCompleteNotification object:task queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notification) { - NSError *error = notification.userInfo[AFNetworkingTaskDidCompleteErrorKey]; - if (error) { - NSString *title, *message; - AFGetAlertViewTitleAndMessageFromError(error, &title, &message); - - UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:nil message:nil delegate:delegate cancelButtonTitle:cancelButtonTitle otherButtonTitles:nil, nil]; - for (NSString *otherButtonTitle in mutableOtherTitles) { - [alertView addButtonWithTitle:otherButtonTitle]; - } - [alertView setTitle:title]; - [alertView setMessage:message]; - [alertView show]; - } - - [[NSNotificationCenter defaultCenter] removeObserver:observer]; - }]; -} -#endif - -#pragma mark - - -+ (void)showAlertViewForRequestOperationWithErrorOnCompletion:(AFURLConnectionOperation *)operation - delegate:(id)delegate -{ - [self showAlertViewForRequestOperationWithErrorOnCompletion:operation delegate:delegate cancelButtonTitle:NSLocalizedStringFromTable(@"Dismiss", @"AFNetworking", @"UIAlertView Cancel Button Title") otherButtonTitles:nil, nil]; -} - -+ (void)showAlertViewForRequestOperationWithErrorOnCompletion:(AFURLConnectionOperation *)operation - delegate:(id)delegate - cancelButtonTitle:(NSString *)cancelButtonTitle - otherButtonTitles:(NSString *)otherButtonTitles, ... NS_REQUIRES_NIL_TERMINATION -{ - NSMutableArray *mutableOtherTitles = [NSMutableArray array]; - va_list otherButtonTitleList; - va_start(otherButtonTitleList, otherButtonTitles); - { - for (NSString *otherButtonTitle = otherButtonTitles; otherButtonTitle != nil; otherButtonTitle = va_arg(otherButtonTitleList, NSString *)) { - [mutableOtherTitles addObject:otherButtonTitle]; - } - } - va_end(otherButtonTitleList); - - __block __weak id observer = [[NSNotificationCenter defaultCenter] addObserverForName:AFNetworkingOperationDidFinishNotification object:operation queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notification) { - - if (notification.object && [notification.object isKindOfClass:[AFURLConnectionOperation class]]) { - NSError *error = [(AFURLConnectionOperation *)notification.object error]; - if (error) { - NSString *title, *message; - AFGetAlertViewTitleAndMessageFromError(error, &title, &message); - - UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:nil message:nil delegate:delegate cancelButtonTitle:cancelButtonTitle otherButtonTitles:nil, nil]; - for (NSString *otherButtonTitle in mutableOtherTitles) { - [alertView addButtonWithTitle:otherButtonTitle]; - } - [alertView setTitle:title]; - [alertView setMessage:message]; - [alertView show]; - } - } - - [[NSNotificationCenter defaultCenter] removeObserver:observer]; - }]; -} - -@end - -#endif diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.h deleted file mode 100644 index 6c09b7aefb2..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.h +++ /dev/null @@ -1,180 +0,0 @@ -// UIButton+AFNetworking.h -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import - -#import - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) - -#import - -@protocol AFURLResponseSerialization, AFImageCache; - -/** - This category adds methods to the UIKit framework's `UIButton` class. The methods in this category provide support for loading remote images and background images asynchronously from a URL. - - @warning Compound values for control `state` (such as `UIControlStateHighlighted | UIControlStateDisabled`) are unsupported. - */ -@interface UIButton (AFNetworking) - -///---------------------------- -/// @name Accessing Image Cache -///---------------------------- - -/** - The image cache used to improve image loadiing performance on scroll views. By default, `UIButton` will use the `sharedImageCache` of `UIImageView`. - */ -+ (id )sharedImageCache; - -/** - Set the cache used for image loading. - - @param imageCache The image cache. - */ -+ (void)setSharedImageCache:(id )imageCache; - -///------------------------------------ -/// @name Accessing Response Serializer -///------------------------------------ - -/** - The response serializer used to create an image representation from the server response and response data. By default, this is an instance of `AFImageResponseSerializer`. - - @discussion Subclasses of `AFImageResponseSerializer` could be used to perform post-processing, such as color correction, face detection, or other effects. See https://github.com/AFNetworking/AFCoreImageSerializer - */ -@property (nonatomic, strong) id imageResponseSerializer; - -///-------------------- -/// @name Setting Image -///-------------------- - -/** - Asynchronously downloads an image from the specified URL, and sets it as the image for the specified state once the request is finished. Any previous image request for the receiver will be cancelled. - - If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished. - - @param state The control state. - @param url The URL used for the image request. - */ -- (void)setImageForState:(UIControlState)state - withURL:(NSURL *)url; - -/** - Asynchronously downloads an image from the specified URL, and sets it as the image for the specified state once the request is finished. Any previous image request for the receiver will be cancelled. - - If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished. - - @param state The control state. - @param url The URL used for the image request. - @param placeholderImage The image to be set initially, until the image request finishes. If `nil`, the button will not change its image until the image request finishes. - */ -- (void)setImageForState:(UIControlState)state - withURL:(NSURL *)url - placeholderImage:(UIImage *)placeholderImage; - -/** - Asynchronously downloads an image from the specified URL request, and sets it as the image for the specified state once the request is finished. Any previous image request for the receiver will be cancelled. - - If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished. - - If a success block is specified, it is the responsibility of the block to set the image of the button before returning. If no success block is specified, the default behavior of setting the image with `setImage:forState:` is applied. - - @param state The control state. - @param urlRequest The URL request used for the image request. - @param placeholderImage The image to be set initially, until the image request finishes. If `nil`, the button will not change its image until the image request finishes. - @param success A block to be executed when the image request operation finishes successfully. This block has no return value and takes two arguments: the server response and the image. If the image was returned from cache, the request and response parameters will be `nil`. - @param failure A block object to be executed when the image request operation finishes unsuccessfully, or that finishes successfully. This block has no return value and takes a single argument: the error that occurred. - */ -- (void)setImageForState:(UIControlState)state - withURLRequest:(NSURLRequest *)urlRequest - placeholderImage:(UIImage *)placeholderImage - success:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, UIImage *image))success - failure:(void (^)(NSError *error))failure; - - -///------------------------------- -/// @name Setting Background Image -///------------------------------- - -/** - Asynchronously downloads an image from the specified URL, and sets it as the background image for the specified state once the request is finished. Any previous background image request for the receiver will be cancelled. - - If the background image is cached locally, the background image is set immediately, otherwise the specified placeholder background image will be set immediately, and then the remote background image will be set once the request is finished. - - @param state The control state. - @param url The URL used for the background image request. - */ -- (void)setBackgroundImageForState:(UIControlState)state - withURL:(NSURL *)url; - -/** - Asynchronously downloads an image from the specified URL, and sets it as the background image for the specified state once the request is finished. Any previous image request for the receiver will be cancelled. - - If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished. - - @param state The control state. - @param url The URL used for the background image request. - @param placeholderImage The background image to be set initially, until the background image request finishes. If `nil`, the button will not change its background image until the background image request finishes. - */ -- (void)setBackgroundImageForState:(UIControlState)state - withURL:(NSURL *)url - placeholderImage:(UIImage *)placeholderImage; - -/** - Asynchronously downloads an image from the specified URL request, and sets it as the image for the specified state once the request is finished. Any previous image request for the receiver will be cancelled. - - If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished. - - If a success block is specified, it is the responsibility of the block to set the image of the button before returning. If no success block is specified, the default behavior of setting the image with `setBackgroundImage:forState:` is applied. - - @param state The control state. - @param urlRequest The URL request used for the image request. - @param placeholderImage The background image to be set initially, until the background image request finishes. If `nil`, the button will not change its background image until the background image request finishes. - */ -- (void)setBackgroundImageForState:(UIControlState)state - withURLRequest:(NSURLRequest *)urlRequest - placeholderImage:(UIImage *)placeholderImage - success:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, UIImage *image))success - failure:(void (^)(NSError *error))failure; - - -///------------------------------ -/// @name Canceling Image Loading -///------------------------------ - -/** - Cancels any executing image operation for the specified control state of the receiver, if one exists. - - @param state The control state. - */ -- (void)cancelImageRequestOperationForState:(UIControlState)state; - -/** - Cancels any executing background image operation for the specified control state of the receiver, if one exists. - - @param state The control state. - */ -- (void)cancelBackgroundImageRequestOperationForState:(UIControlState)state; - -@end - -#endif diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.m deleted file mode 100644 index f34631e1898..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.m +++ /dev/null @@ -1,293 +0,0 @@ -// UIButton+AFNetworking.m -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import "UIButton+AFNetworking.h" - -#import - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) - -#import "AFURLResponseSerialization.h" -#import "AFHTTPRequestOperation.h" - -#import "UIImageView+AFNetworking.h" - -@interface UIButton (_AFNetworking) -@end - -@implementation UIButton (_AFNetworking) - -+ (NSOperationQueue *)af_sharedImageRequestOperationQueue { - static NSOperationQueue *_af_sharedImageRequestOperationQueue = nil; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - _af_sharedImageRequestOperationQueue = [[NSOperationQueue alloc] init]; - _af_sharedImageRequestOperationQueue.maxConcurrentOperationCount = NSOperationQueueDefaultMaxConcurrentOperationCount; - }); - - return _af_sharedImageRequestOperationQueue; -} - -#pragma mark - - -static char AFImageRequestOperationNormal; -static char AFImageRequestOperationHighlighted; -static char AFImageRequestOperationSelected; -static char AFImageRequestOperationDisabled; - -static const char * af_imageRequestOperationKeyForState(UIControlState state) { - switch (state) { - case UIControlStateHighlighted: - return &AFImageRequestOperationHighlighted; - case UIControlStateSelected: - return &AFImageRequestOperationSelected; - case UIControlStateDisabled: - return &AFImageRequestOperationDisabled; - case UIControlStateNormal: - default: - return &AFImageRequestOperationNormal; - } -} - -- (AFHTTPRequestOperation *)af_imageRequestOperationForState:(UIControlState)state { - return (AFHTTPRequestOperation *)objc_getAssociatedObject(self, af_imageRequestOperationKeyForState(state)); -} - -- (void)af_setImageRequestOperation:(AFHTTPRequestOperation *)imageRequestOperation - forState:(UIControlState)state -{ - objc_setAssociatedObject(self, af_imageRequestOperationKeyForState(state), imageRequestOperation, OBJC_ASSOCIATION_RETAIN_NONATOMIC); -} - -#pragma mark - - -static char AFBackgroundImageRequestOperationNormal; -static char AFBackgroundImageRequestOperationHighlighted; -static char AFBackgroundImageRequestOperationSelected; -static char AFBackgroundImageRequestOperationDisabled; - -static const char * af_backgroundImageRequestOperationKeyForState(UIControlState state) { - switch (state) { - case UIControlStateHighlighted: - return &AFBackgroundImageRequestOperationHighlighted; - case UIControlStateSelected: - return &AFBackgroundImageRequestOperationSelected; - case UIControlStateDisabled: - return &AFBackgroundImageRequestOperationDisabled; - case UIControlStateNormal: - default: - return &AFBackgroundImageRequestOperationNormal; - } -} - -- (AFHTTPRequestOperation *)af_backgroundImageRequestOperationForState:(UIControlState)state { - return (AFHTTPRequestOperation *)objc_getAssociatedObject(self, af_backgroundImageRequestOperationKeyForState(state)); -} - -- (void)af_setBackgroundImageRequestOperation:(AFHTTPRequestOperation *)imageRequestOperation - forState:(UIControlState)state -{ - objc_setAssociatedObject(self, af_backgroundImageRequestOperationKeyForState(state), imageRequestOperation, OBJC_ASSOCIATION_RETAIN_NONATOMIC); -} - -@end - -#pragma mark - - -@implementation UIButton (AFNetworking) - -+ (id )sharedImageCache { -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgnu" - return objc_getAssociatedObject(self, @selector(sharedImageCache)) ?: [UIImageView sharedImageCache]; -#pragma clang diagnostic pop -} - -+ (void)setSharedImageCache:(id )imageCache { - objc_setAssociatedObject(self, @selector(sharedImageCache), imageCache, OBJC_ASSOCIATION_RETAIN_NONATOMIC); -} - -#pragma mark - - -- (id )imageResponseSerializer { - static id _af_defaultImageResponseSerializer = nil; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - _af_defaultImageResponseSerializer = [AFImageResponseSerializer serializer]; - }); - -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgnu" - return objc_getAssociatedObject(self, @selector(imageResponseSerializer)) ?: _af_defaultImageResponseSerializer; -#pragma clang diagnostic pop -} - -- (void)setImageResponseSerializer:(id )serializer { - objc_setAssociatedObject(self, @selector(imageResponseSerializer), serializer, OBJC_ASSOCIATION_RETAIN_NONATOMIC); -} - -#pragma mark - - -- (void)setImageForState:(UIControlState)state - withURL:(NSURL *)url -{ - [self setImageForState:state withURL:url placeholderImage:nil]; -} - -- (void)setImageForState:(UIControlState)state - withURL:(NSURL *)url - placeholderImage:(UIImage *)placeholderImage -{ - NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; - [request addValue:@"image/*" forHTTPHeaderField:@"Accept"]; - - [self setImageForState:state withURLRequest:request placeholderImage:placeholderImage success:nil failure:nil]; -} - -- (void)setImageForState:(UIControlState)state - withURLRequest:(NSURLRequest *)urlRequest - placeholderImage:(UIImage *)placeholderImage - success:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, UIImage *image))success - failure:(void (^)(NSError *error))failure -{ - [self cancelImageRequestOperationForState:state]; - - UIImage *cachedImage = [[[self class] sharedImageCache] cachedImageForRequest:urlRequest]; - if (cachedImage) { - if (success) { - success(nil, nil, cachedImage); - } else { - [self setImage:cachedImage forState:state]; - } - - [self af_setImageRequestOperation:nil forState:state]; - } else { - if (placeholderImage) { - [self setImage:placeholderImage forState:state]; - } - - __weak __typeof(self)weakSelf = self; - AFHTTPRequestOperation *imageRequestOperation = [[AFHTTPRequestOperation alloc] initWithRequest:urlRequest]; - imageRequestOperation.responseSerializer = self.imageResponseSerializer; - [imageRequestOperation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) { - __strong __typeof(weakSelf)strongSelf = weakSelf; - if ([[urlRequest URL] isEqual:[operation.request URL]]) { - if (success) { - success(operation.request, operation.response, responseObject); - } else if (responseObject) { - [strongSelf setImage:responseObject forState:state]; - } - } - [[[strongSelf class] sharedImageCache] cacheImage:responseObject forRequest:urlRequest]; - } failure:^(AFHTTPRequestOperation *operation, NSError *error) { - if ([[urlRequest URL] isEqual:[operation.request URL]]) { - if (failure) { - failure(error); - } - } - }]; - - [self af_setImageRequestOperation:imageRequestOperation forState:state]; - [[[self class] af_sharedImageRequestOperationQueue] addOperation:imageRequestOperation]; - } -} - -#pragma mark - - -- (void)setBackgroundImageForState:(UIControlState)state - withURL:(NSURL *)url -{ - [self setBackgroundImageForState:state withURL:url placeholderImage:nil]; -} - -- (void)setBackgroundImageForState:(UIControlState)state - withURL:(NSURL *)url - placeholderImage:(UIImage *)placeholderImage -{ - NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; - [request addValue:@"image/*" forHTTPHeaderField:@"Accept"]; - - [self setBackgroundImageForState:state withURLRequest:request placeholderImage:placeholderImage success:nil failure:nil]; -} - -- (void)setBackgroundImageForState:(UIControlState)state - withURLRequest:(NSURLRequest *)urlRequest - placeholderImage:(UIImage *)placeholderImage - success:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, UIImage *image))success - failure:(void (^)(NSError *error))failure -{ - [self cancelBackgroundImageRequestOperationForState:state]; - - UIImage *cachedImage = [[[self class] sharedImageCache] cachedImageForRequest:urlRequest]; - if (cachedImage) { - if (success) { - success(nil, nil, cachedImage); - } else { - [self setBackgroundImage:cachedImage forState:state]; - } - - [self af_setBackgroundImageRequestOperation:nil forState:state]; - } else { - if (placeholderImage) { - [self setBackgroundImage:placeholderImage forState:state]; - } - - __weak __typeof(self)weakSelf = self; - AFHTTPRequestOperation *backgroundImageRequestOperation = [[AFHTTPRequestOperation alloc] initWithRequest:urlRequest]; - backgroundImageRequestOperation.responseSerializer = self.imageResponseSerializer; - [backgroundImageRequestOperation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) { - __strong __typeof(weakSelf)strongSelf = weakSelf; - if ([[urlRequest URL] isEqual:[operation.request URL]]) { - if (success) { - success(operation.request, operation.response, responseObject); - } else if (responseObject) { - [strongSelf setBackgroundImage:responseObject forState:state]; - } - } - [[[strongSelf class] sharedImageCache] cacheImage:responseObject forRequest:urlRequest]; - } failure:^(AFHTTPRequestOperation *operation, NSError *error) { - if ([[urlRequest URL] isEqual:[operation.request URL]]) { - if (failure) { - failure(error); - } - } - }]; - - [self af_setBackgroundImageRequestOperation:backgroundImageRequestOperation forState:state]; - [[[self class] af_sharedImageRequestOperationQueue] addOperation:backgroundImageRequestOperation]; - } -} - -#pragma mark - - -- (void)cancelImageRequestOperationForState:(UIControlState)state { - [[self af_imageRequestOperationForState:state] cancel]; - [self af_setImageRequestOperation:nil forState:state]; -} - -- (void)cancelBackgroundImageRequestOperationForState:(UIControlState)state { - [[self af_backgroundImageRequestOperationForState:state] cancel]; - [self af_setBackgroundImageRequestOperation:nil forState:state]; -} - -@end - -#endif diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.h deleted file mode 100644 index 2fdff9ff9b3..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.h +++ /dev/null @@ -1,142 +0,0 @@ -// UIImageView+AFNetworking.h -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import - -#import - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) - -#import - -@protocol AFURLResponseSerialization, AFImageCache; - -/** - This category adds methods to the UIKit framework's `UIImageView` class. The methods in this category provide support for loading remote images asynchronously from a URL. - */ -@interface UIImageView (AFNetworking) - -///---------------------------- -/// @name Accessing Image Cache -///---------------------------- - -/** - The image cache used to improve image loading performance on scroll views. By default, this is an `NSCache` subclass conforming to the `AFImageCache` protocol, which listens for notification warnings and evicts objects accordingly. -*/ -+ (id )sharedImageCache; - -/** - Set the cache used for image loading. - - @param imageCache The image cache. - */ -+ (void)setSharedImageCache:(id )imageCache; - -///------------------------------------ -/// @name Accessing Response Serializer -///------------------------------------ - -/** - The response serializer used to create an image representation from the server response and response data. By default, this is an instance of `AFImageResponseSerializer`. - - @discussion Subclasses of `AFImageResponseSerializer` could be used to perform post-processing, such as color correction, face detection, or other effects. See https://github.com/AFNetworking/AFCoreImageSerializer - */ -@property (nonatomic, strong) id imageResponseSerializer; - -///-------------------- -/// @name Setting Image -///-------------------- - -/** - Asynchronously downloads an image from the specified URL, and sets it once the request is finished. Any previous image request for the receiver will be cancelled. - - If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished. - - By default, URL requests have a `Accept` header field value of "image / *", a cache policy of `NSURLCacheStorageAllowed` and a timeout interval of 30 seconds, and are set not handle cookies. To configure URL requests differently, use `setImageWithURLRequest:placeholderImage:success:failure:` - - @param url The URL used for the image request. - */ -- (void)setImageWithURL:(NSURL *)url; - -/** - Asynchronously downloads an image from the specified URL, and sets it once the request is finished. Any previous image request for the receiver will be cancelled. - - If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished. - - By default, URL requests have a `Accept` header field value of "image / *", a cache policy of `NSURLCacheStorageAllowed` and a timeout interval of 30 seconds, and are set not handle cookies. To configure URL requests differently, use `setImageWithURLRequest:placeholderImage:success:failure:` - - @param url The URL used for the image request. - @param placeholderImage The image to be set initially, until the image request finishes. If `nil`, the image view will not change its image until the image request finishes. - */ -- (void)setImageWithURL:(NSURL *)url - placeholderImage:(UIImage *)placeholderImage; - -/** - Asynchronously downloads an image from the specified URL request, and sets it once the request is finished. Any previous image request for the receiver will be cancelled. - - If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished. - - If a success block is specified, it is the responsibility of the block to set the image of the image view before returning. If no success block is specified, the default behavior of setting the image with `self.image = image` is applied. - - @param urlRequest The URL request used for the image request. - @param placeholderImage The image to be set initially, until the image request finishes. If `nil`, the image view will not change its image until the image request finishes. - @param success A block to be executed when the image request operation finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the image created from the response data of request. If the image was returned from cache, the request and response parameters will be `nil`. - @param failure A block object to be executed when the image request operation finishes unsuccessfully, or that finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the error object describing the network or parsing error that occurred. - */ -- (void)setImageWithURLRequest:(NSURLRequest *)urlRequest - placeholderImage:(UIImage *)placeholderImage - success:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, UIImage *image))success - failure:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error))failure; - -/** - Cancels any executing image operation for the receiver, if one exists. - */ -- (void)cancelImageRequestOperation; - -@end - -#pragma mark - - -/** - The `AFImageCache` protocol is adopted by an object used to cache images loaded by the AFNetworking category on `UIImageView`. - */ -@protocol AFImageCache - -/** - Returns a cached image for the specififed request, if available. - - @param request The image request. - - @return The cached image. - */ -- (UIImage *)cachedImageForRequest:(NSURLRequest *)request; - -/** - Caches a particular image for the specified request. - - @param image The image to cache. - @param request The request to be used as a cache key. - */ -- (void)cacheImage:(UIImage *)image - forRequest:(NSURLRequest *)request; -@end - -#endif diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.m deleted file mode 100644 index 1400b4a0609..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.m +++ /dev/null @@ -1,215 +0,0 @@ -// UIImageView+AFNetworking.m -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import "UIImageView+AFNetworking.h" - -#import - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) - -#import "AFHTTPRequestOperation.h" - -@interface AFImageCache : NSCache -@end - -#pragma mark - - -@interface UIImageView (_AFNetworking) -@property (readwrite, nonatomic, strong, setter = af_setImageRequestOperation:) AFHTTPRequestOperation *af_imageRequestOperation; -@end - -@implementation UIImageView (_AFNetworking) - -+ (NSOperationQueue *)af_sharedImageRequestOperationQueue { - static NSOperationQueue *_af_sharedImageRequestOperationQueue = nil; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - _af_sharedImageRequestOperationQueue = [[NSOperationQueue alloc] init]; - _af_sharedImageRequestOperationQueue.maxConcurrentOperationCount = NSOperationQueueDefaultMaxConcurrentOperationCount; - }); - - return _af_sharedImageRequestOperationQueue; -} - -- (AFHTTPRequestOperation *)af_imageRequestOperation { - return (AFHTTPRequestOperation *)objc_getAssociatedObject(self, @selector(af_imageRequestOperation)); -} - -- (void)af_setImageRequestOperation:(AFHTTPRequestOperation *)imageRequestOperation { - objc_setAssociatedObject(self, @selector(af_imageRequestOperation), imageRequestOperation, OBJC_ASSOCIATION_RETAIN_NONATOMIC); -} - -@end - -#pragma mark - - -@implementation UIImageView (AFNetworking) -@dynamic imageResponseSerializer; - -+ (id )sharedImageCache { - static AFImageCache *_af_defaultImageCache = nil; - static dispatch_once_t oncePredicate; - dispatch_once(&oncePredicate, ^{ - _af_defaultImageCache = [[AFImageCache alloc] init]; - - [[NSNotificationCenter defaultCenter] addObserverForName:UIApplicationDidReceiveMemoryWarningNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification * __unused notification) { - [_af_defaultImageCache removeAllObjects]; - }]; - }); - -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgnu" - return objc_getAssociatedObject(self, @selector(sharedImageCache)) ?: _af_defaultImageCache; -#pragma clang diagnostic pop -} - -+ (void)setSharedImageCache:(id )imageCache { - objc_setAssociatedObject(self, @selector(sharedImageCache), imageCache, OBJC_ASSOCIATION_RETAIN_NONATOMIC); -} - -#pragma mark - - -- (id )imageResponseSerializer { - static id _af_defaultImageResponseSerializer = nil; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - _af_defaultImageResponseSerializer = [AFImageResponseSerializer serializer]; - }); - -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgnu" - return objc_getAssociatedObject(self, @selector(imageResponseSerializer)) ?: _af_defaultImageResponseSerializer; -#pragma clang diagnostic pop -} - -- (void)setImageResponseSerializer:(id )serializer { - objc_setAssociatedObject(self, @selector(imageResponseSerializer), serializer, OBJC_ASSOCIATION_RETAIN_NONATOMIC); -} - -#pragma mark - - -- (void)setImageWithURL:(NSURL *)url { - [self setImageWithURL:url placeholderImage:nil]; -} - -- (void)setImageWithURL:(NSURL *)url - placeholderImage:(UIImage *)placeholderImage -{ - NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; - [request addValue:@"image/*" forHTTPHeaderField:@"Accept"]; - - [self setImageWithURLRequest:request placeholderImage:placeholderImage success:nil failure:nil]; -} - -- (void)setImageWithURLRequest:(NSURLRequest *)urlRequest - placeholderImage:(UIImage *)placeholderImage - success:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, UIImage *image))success - failure:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error))failure -{ - [self cancelImageRequestOperation]; - - UIImage *cachedImage = [[[self class] sharedImageCache] cachedImageForRequest:urlRequest]; - if (cachedImage) { - if (success) { - success(nil, nil, cachedImage); - } else { - self.image = cachedImage; - } - - self.af_imageRequestOperation = nil; - } else { - if (placeholderImage) { - self.image = placeholderImage; - } - - __weak __typeof(self)weakSelf = self; - self.af_imageRequestOperation = [[AFHTTPRequestOperation alloc] initWithRequest:urlRequest]; - self.af_imageRequestOperation.responseSerializer = self.imageResponseSerializer; - [self.af_imageRequestOperation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) { - __strong __typeof(weakSelf)strongSelf = weakSelf; - if ([[urlRequest URL] isEqual:[strongSelf.af_imageRequestOperation.request URL]]) { - if (success) { - success(urlRequest, operation.response, responseObject); - } else if (responseObject) { - strongSelf.image = responseObject; - } - - if (operation == strongSelf.af_imageRequestOperation){ - strongSelf.af_imageRequestOperation = nil; - } - } - - [[[strongSelf class] sharedImageCache] cacheImage:responseObject forRequest:urlRequest]; - } failure:^(AFHTTPRequestOperation *operation, NSError *error) { - __strong __typeof(weakSelf)strongSelf = weakSelf; - if ([[urlRequest URL] isEqual:[strongSelf.af_imageRequestOperation.request URL]]) { - if (failure) { - failure(urlRequest, operation.response, error); - } - - if (operation == strongSelf.af_imageRequestOperation){ - strongSelf.af_imageRequestOperation = nil; - } - } - }]; - - [[[self class] af_sharedImageRequestOperationQueue] addOperation:self.af_imageRequestOperation]; - } -} - -- (void)cancelImageRequestOperation { - [self.af_imageRequestOperation cancel]; - self.af_imageRequestOperation = nil; -} - -@end - -#pragma mark - - -static inline NSString * AFImageCacheKeyFromURLRequest(NSURLRequest *request) { - return [[request URL] absoluteString]; -} - -@implementation AFImageCache - -- (UIImage *)cachedImageForRequest:(NSURLRequest *)request { - switch ([request cachePolicy]) { - case NSURLRequestReloadIgnoringCacheData: - case NSURLRequestReloadIgnoringLocalAndRemoteCacheData: - return nil; - default: - break; - } - - return [self objectForKey:AFImageCacheKeyFromURLRequest(request)]; -} - -- (void)cacheImage:(UIImage *)image - forRequest:(NSURLRequest *)request -{ - if (image && request) { - [self setObject:image forKey:AFImageCacheKeyFromURLRequest(request)]; - } -} - -@end - -#endif diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIKit+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIKit+AFNetworking.h deleted file mode 100644 index 94082f6cb58..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIKit+AFNetworking.h +++ /dev/null @@ -1,38 +0,0 @@ -// UIKit+AFNetworking.h -// -// Copyright (c) 2013 AFNetworking (http://afnetworking.com/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import - -#ifndef _UIKIT_AFNETWORKING_ - #define _UIKIT_AFNETWORKING_ - - #import "AFNetworkActivityIndicatorManager.h" - - #import "UIActivityIndicatorView+AFNetworking.h" - #import "UIAlertView+AFNetworking.h" - #import "UIButton+AFNetworking.h" - #import "UIImageView+AFNetworking.h" - #import "UIKit+AFNetworking.h" - #import "UIProgressView+AFNetworking.h" - #import "UIRefreshControl+AFNetworking.h" - #import "UIWebView+AFNetworking.h" -#endif /* _UIKIT_AFNETWORKING_ */ diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.h deleted file mode 100644 index 6a4e16f884c..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.h +++ /dev/null @@ -1,87 +0,0 @@ -// UIProgressView+AFNetworking.h -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import - -#import - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) - -#import - -@class AFURLConnectionOperation; - -/** - This category adds methods to the UIKit framework's `UIProgressView` class. The methods in this category provide support for binding the progress to the upload and download progress of a session task or request operation. - */ -@interface UIProgressView (AFNetworking) - -///------------------------------------ -/// @name Setting Session Task Progress -///------------------------------------ - -/** - Binds the progress to the upload progress of the specified session task. - - @param task The session task. - @param animated `YES` if the change should be animated, `NO` if the change should happen immediately. - */ -#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 -- (void)setProgressWithUploadProgressOfTask:(NSURLSessionUploadTask *)task - animated:(BOOL)animated; -#endif - -/** - Binds the progress to the download progress of the specified session task. - - @param task The session task. - @param animated `YES` if the change should be animated, `NO` if the change should happen immediately. - */ -#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 -- (void)setProgressWithDownloadProgressOfTask:(NSURLSessionDownloadTask *)task - animated:(BOOL)animated; -#endif - -///------------------------------------ -/// @name Setting Session Task Progress -///------------------------------------ - -/** - Binds the progress to the upload progress of the specified request operation. - - @param operation The request operation. - @param animated `YES` if the change should be animated, `NO` if the change should happen immediately. - */ -- (void)setProgressWithUploadProgressOfOperation:(AFURLConnectionOperation *)operation - animated:(BOOL)animated; - -/** - Binds the progress to the download progress of the specified request operation. - - @param operation The request operation. - @param animated `YES` if the change should be animated, `NO` if the change should happen immediately. - */ -- (void)setProgressWithDownloadProgressOfOperation:(AFURLConnectionOperation *)operation - animated:(BOOL)animated; - -@end - -#endif diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.m deleted file mode 100644 index ad2c280ba8d..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.m +++ /dev/null @@ -1,182 +0,0 @@ -// UIProgressView+AFNetworking.m -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import "UIProgressView+AFNetworking.h" - -#import - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) - -#import "AFURLConnectionOperation.h" - -#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 -#import "AFURLSessionManager.h" -#endif - -static void * AFTaskCountOfBytesSentContext = &AFTaskCountOfBytesSentContext; -static void * AFTaskCountOfBytesReceivedContext = &AFTaskCountOfBytesReceivedContext; - -@interface AFURLConnectionOperation (_UIProgressView) -@property (readwrite, nonatomic, copy) void (^uploadProgress)(NSUInteger bytes, long long totalBytes, long long totalBytesExpected); -@property (readwrite, nonatomic, assign, setter = af_setUploadProgressAnimated:) BOOL af_uploadProgressAnimated; - -@property (readwrite, nonatomic, copy) void (^downloadProgress)(NSUInteger bytes, long long totalBytes, long long totalBytesExpected); -@property (readwrite, nonatomic, assign, setter = af_setDownloadProgressAnimated:) BOOL af_downloadProgressAnimated; -@end - -@implementation AFURLConnectionOperation (_UIProgressView) -@dynamic uploadProgress; // Implemented in AFURLConnectionOperation -@dynamic af_uploadProgressAnimated; - -@dynamic downloadProgress; // Implemented in AFURLConnectionOperation -@dynamic af_downloadProgressAnimated; -@end - -#pragma mark - - -@implementation UIProgressView (AFNetworking) - -- (BOOL)af_uploadProgressAnimated { - return [(NSNumber *)objc_getAssociatedObject(self, @selector(af_uploadProgressAnimated)) boolValue]; -} - -- (void)af_setUploadProgressAnimated:(BOOL)animated { - objc_setAssociatedObject(self, @selector(af_uploadProgressAnimated), @(animated), OBJC_ASSOCIATION_RETAIN_NONATOMIC); -} - -- (BOOL)af_downloadProgressAnimated { - return [(NSNumber *)objc_getAssociatedObject(self, @selector(af_downloadProgressAnimated)) boolValue]; -} - -- (void)af_setDownloadProgressAnimated:(BOOL)animated { - objc_setAssociatedObject(self, @selector(af_downloadProgressAnimated), @(animated), OBJC_ASSOCIATION_RETAIN_NONATOMIC); -} - -#pragma mark - - -#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 -- (void)setProgressWithUploadProgressOfTask:(NSURLSessionUploadTask *)task - animated:(BOOL)animated -{ - [task addObserver:self forKeyPath:@"state" options:(NSKeyValueObservingOptions)0 context:AFTaskCountOfBytesSentContext]; - [task addObserver:self forKeyPath:@"countOfBytesSent" options:(NSKeyValueObservingOptions)0 context:AFTaskCountOfBytesSentContext]; - - [self af_setUploadProgressAnimated:animated]; -} - -- (void)setProgressWithDownloadProgressOfTask:(NSURLSessionDownloadTask *)task - animated:(BOOL)animated -{ - [task addObserver:self forKeyPath:@"state" options:(NSKeyValueObservingOptions)0 context:AFTaskCountOfBytesReceivedContext]; - [task addObserver:self forKeyPath:@"countOfBytesReceived" options:(NSKeyValueObservingOptions)0 context:AFTaskCountOfBytesReceivedContext]; - - [self af_setDownloadProgressAnimated:animated]; -} -#endif - -#pragma mark - - -- (void)setProgressWithUploadProgressOfOperation:(AFURLConnectionOperation *)operation - animated:(BOOL)animated -{ - __weak __typeof(self)weakSelf = self; - void (^original)(NSUInteger bytesWritten, long long totalBytesWritten, long long totalBytesExpectedToWrite) = [operation.uploadProgress copy]; - [operation setUploadProgressBlock:^(NSUInteger bytesWritten, long long totalBytesWritten, long long totalBytesExpectedToWrite) { - if (original) { - original(bytesWritten, totalBytesWritten, totalBytesExpectedToWrite); - } - - dispatch_async(dispatch_get_main_queue(), ^{ - if (totalBytesExpectedToWrite > 0) { - __strong __typeof(weakSelf)strongSelf = weakSelf; - [strongSelf setProgress:(totalBytesWritten / (totalBytesExpectedToWrite * 1.0f)) animated:animated]; - } - }); - }]; -} - -- (void)setProgressWithDownloadProgressOfOperation:(AFURLConnectionOperation *)operation - animated:(BOOL)animated -{ - __weak __typeof(self)weakSelf = self; - void (^original)(NSUInteger bytesRead, long long totalBytesRead, long long totalBytesExpectedToRead) = [operation.downloadProgress copy]; - [operation setDownloadProgressBlock:^(NSUInteger bytesRead, long long totalBytesRead, long long totalBytesExpectedToRead) { - if (original) { - original(bytesRead, totalBytesRead, totalBytesExpectedToRead); - } - - dispatch_async(dispatch_get_main_queue(), ^{ - if (totalBytesExpectedToRead > 0) { - __strong __typeof(weakSelf)strongSelf = weakSelf; - [strongSelf setProgress:(totalBytesRead / (totalBytesExpectedToRead * 1.0f)) animated:animated]; - } - }); - }]; -} - -#pragma mark - NSKeyValueObserving - -- (void)observeValueForKeyPath:(NSString *)keyPath - ofObject:(id)object - change:(__unused NSDictionary *)change - context:(void *)context -{ -#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 - if (context == AFTaskCountOfBytesSentContext || context == AFTaskCountOfBytesReceivedContext) { - if ([keyPath isEqualToString:NSStringFromSelector(@selector(countOfBytesSent))]) { - if ([object countOfBytesExpectedToSend] > 0) { - dispatch_async(dispatch_get_main_queue(), ^{ - [self setProgress:[object countOfBytesSent] / ([object countOfBytesExpectedToSend] * 1.0f) animated:self.af_uploadProgressAnimated]; - }); - } - } - - if ([keyPath isEqualToString:NSStringFromSelector(@selector(countOfBytesReceived))]) { - if ([object countOfBytesExpectedToReceive] > 0) { - dispatch_async(dispatch_get_main_queue(), ^{ - [self setProgress:[object countOfBytesReceived] / ([object countOfBytesExpectedToReceive] * 1.0f) animated:self.af_downloadProgressAnimated]; - }); - } - } - - if ([keyPath isEqualToString:NSStringFromSelector(@selector(state))]) { - if ([(NSURLSessionTask *)object state] == NSURLSessionTaskStateCompleted) { - @try { - [object removeObserver:self forKeyPath:NSStringFromSelector(@selector(state))]; - - if (context == AFTaskCountOfBytesSentContext) { - [object removeObserver:self forKeyPath:NSStringFromSelector(@selector(countOfBytesSent))]; - } - - if (context == AFTaskCountOfBytesReceivedContext) { - [object removeObserver:self forKeyPath:NSStringFromSelector(@selector(countOfBytesReceived))]; - } - } - @catch (NSException * __unused exception) {} - } - } - } -#endif -} - -@end - -#endif diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.h deleted file mode 100644 index 18c12eaaca6..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.h +++ /dev/null @@ -1,64 +0,0 @@ -// UIRefreshControl+AFNetworking.m -// -// Copyright (c) 2014 AFNetworking (http://afnetworking.com) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import - -#import - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) - -#import - -@class AFURLConnectionOperation; - -/** - This category adds methods to the UIKit framework's `UIRefreshControl` class. The methods in this category provide support for automatically begining and ending refreshing depending on the loading state of a request operation or session task. - */ -@interface UIRefreshControl (AFNetworking) - -///----------------------------------- -/// @name Refreshing for Session Tasks -///----------------------------------- - -/** - Binds the refreshing state to the state of the specified task. - - @param task The task. If `nil`, automatic updating from any previously specified operation will be disabled. - */ -#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 -- (void)setRefreshingWithStateOfTask:(NSURLSessionTask *)task; -#endif - -///---------------------------------------- -/// @name Refreshing for Request Operations -///---------------------------------------- - -/** - Binds the refreshing state to the execution state of the specified operation. - - @param operation The operation. If `nil`, automatic updating from any previously specified operation will be disabled. - */ -- (void)setRefreshingWithStateOfOperation:(AFURLConnectionOperation *)operation; - -@end - -#endif diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.m deleted file mode 100644 index e266451fe51..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.m +++ /dev/null @@ -1,93 +0,0 @@ -// UIRefreshControl+AFNetworking.m -// -// Copyright (c) 2014 AFNetworking (http://afnetworking.com) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import "UIRefreshControl+AFNetworking.h" - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) - -#import "AFHTTPRequestOperation.h" - -#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 -#import "AFURLSessionManager.h" -#endif - -@implementation UIRefreshControl (AFNetworking) - -#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 -- (void)setRefreshingWithStateOfTask:(NSURLSessionTask *)task { - NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; - - [notificationCenter removeObserver:self name:AFNetworkingTaskDidResumeNotification object:nil]; - [notificationCenter removeObserver:self name:AFNetworkingTaskDidSuspendNotification object:nil]; - [notificationCenter removeObserver:self name:AFNetworkingTaskDidCompleteNotification object:nil]; - - if (task) { - if (task.state == NSURLSessionTaskStateRunning) { - [self beginRefreshing]; - - [notificationCenter addObserver:self selector:@selector(af_beginRefreshing) name:AFNetworkingTaskDidResumeNotification object:task]; - [notificationCenter addObserver:self selector:@selector(af_endRefreshing) name:AFNetworkingTaskDidCompleteNotification object:task]; - [notificationCenter addObserver:self selector:@selector(af_endRefreshing) name:AFNetworkingTaskDidSuspendNotification object:task]; - } else { - [self endRefreshing]; - } - } -} -#endif - -- (void)setRefreshingWithStateOfOperation:(AFURLConnectionOperation *)operation { - NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; - - [notificationCenter removeObserver:self name:AFNetworkingOperationDidStartNotification object:nil]; - [notificationCenter removeObserver:self name:AFNetworkingOperationDidFinishNotification object:nil]; - - if (operation) { - if (![operation isFinished]) { - if ([operation isExecuting]) { - [self beginRefreshing]; - } else { - [self endRefreshing]; - } - - [notificationCenter addObserver:self selector:@selector(af_beginRefreshing) name:AFNetworkingOperationDidStartNotification object:operation]; - [notificationCenter addObserver:self selector:@selector(af_endRefreshing) name:AFNetworkingOperationDidFinishNotification object:operation]; - } - } -} - -#pragma mark - - -- (void)af_beginRefreshing { - dispatch_async(dispatch_get_main_queue(), ^{ - [self beginRefreshing]; - }); -} - -- (void)af_endRefreshing { - dispatch_async(dispatch_get_main_queue(), ^{ - [self endRefreshing]; - }); -} - -@end - -#endif diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.h deleted file mode 100644 index 56e58322542..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.h +++ /dev/null @@ -1,82 +0,0 @@ -// UIWebView+AFNetworking.h -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import - -#import - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) - -#import - -@class AFHTTPRequestSerializer, AFHTTPResponseSerializer; -@protocol AFURLRequestSerialization, AFURLResponseSerialization; - -/** - This category adds methods to the UIKit framework's `UIWebView` class. The methods in this category provide increased control over the request cycle, including progress monitoring and success / failure handling. - - @discussion When using these category methods, make sure to assign `delegate` for the web view, which implements `–webView:shouldStartLoadWithRequest:navigationType:` appropriately. This allows for tapped links to be loaded through AFNetworking, and can ensure that `canGoBack` & `canGoForward` update their values correctly. - */ -@interface UIWebView (AFNetworking) - -/** - The request serializer used to serialize requests made with the `-loadRequest:...` category methods. By default, this is an instance of `AFHTTPRequestSerializer`. - */ -@property (nonatomic, strong) AFHTTPRequestSerializer * requestSerializer; - -/** - The response serializer used to serialize responses made with the `-loadRequest:...` category methods. By default, this is an instance of `AFHTTPResponseSerializer`. - */ -@property (nonatomic, strong) AFHTTPResponseSerializer * responseSerializer; - -/** - Asynchronously loads the specified request. - - @param request A URL request identifying the location of the content to load. This must not be `nil`. - @param progress A block object to be called when an undetermined number of bytes have been downloaded from the server. This block has no return value and takes three arguments: the number of bytes read since the last time the download progress block was called, the total bytes read, and the total bytes expected to be read during the request, as initially determined by the expected content size of the `NSHTTPURLResponse` object. This block may be called multiple times, and will execute on the main thread. - @param success A block object to be executed when the request finishes loading successfully. This block returns the HTML string to be loaded by the web view, and takes two arguments: the response, and the response string. - @param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a single argument: the error that occurred. - */ -- (void)loadRequest:(NSURLRequest *)request - progress:(void (^)(NSUInteger bytesWritten, long long totalBytesWritten, long long totalBytesExpectedToWrite))progress - success:(NSString * (^)(NSHTTPURLResponse *response, NSString *HTML))success - failure:(void (^)(NSError *error))failure; - -/** - Asynchronously loads the data associated with a particular request with a specified MIME type and text encoding. - - @param request A URL request identifying the location of the content to load. This must not be `nil`. - @param MIMEType The MIME type of the content. Defaults to the content type of the response if not specified. - @param textEncodingName The IANA encoding name, as in `utf-8` or `utf-16`. Defaults to the response text encoding if not specified. - @param progress A block object to be called when an undetermined number of bytes have been downloaded from the server. This block has no return value and takes three arguments: the number of bytes read since the last time the download progress block was called, the total bytes read, and the total bytes expected to be read during the request, as initially determined by the expected content size of the `NSHTTPURLResponse` object. This block may be called multiple times, and will execute on the main thread. - @param success A block object to be executed when the request finishes loading successfully. This block returns the data to be loaded by the web view and takes two arguments: the response, and the downloaded data. - @param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a single argument: the error that occurred. - */ -- (void)loadRequest:(NSURLRequest *)request - MIMEType:(NSString *)MIMEType - textEncodingName:(NSString *)textEncodingName - progress:(void (^)(NSUInteger bytesWritten, long long totalBytesWritten, long long totalBytesExpectedToWrite))progress - success:(NSData * (^)(NSHTTPURLResponse *response, NSData *data))success - failure:(void (^)(NSError *error))failure; - -@end - -#endif diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.m deleted file mode 100644 index 93eacaa0c1b..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.m +++ /dev/null @@ -1,159 +0,0 @@ -// UIWebView+AFNetworking.m -// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import "UIWebView+AFNetworking.h" - -#import - -#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) - -#import "AFHTTPRequestOperation.h" -#import "AFURLResponseSerialization.h" -#import "AFURLRequestSerialization.h" - -@interface UIWebView (_AFNetworking) -@property (readwrite, nonatomic, strong, setter = af_setHTTPRequestOperation:) AFHTTPRequestOperation *af_HTTPRequestOperation; -@end - -@implementation UIWebView (_AFNetworking) - -- (AFHTTPRequestOperation *)af_HTTPRequestOperation { - return (AFHTTPRequestOperation *)objc_getAssociatedObject(self, @selector(af_HTTPRequestOperation)); -} - -- (void)af_setHTTPRequestOperation:(AFHTTPRequestOperation *)operation { - objc_setAssociatedObject(self, @selector(af_HTTPRequestOperation), operation, OBJC_ASSOCIATION_RETAIN_NONATOMIC); -} - -@end - -#pragma mark - - -@implementation UIWebView (AFNetworking) - -- (AFHTTPRequestSerializer *)requestSerializer { - static AFHTTPRequestSerializer *_af_defaultRequestSerializer = nil; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - _af_defaultRequestSerializer = [AFHTTPRequestSerializer serializer]; - }); - -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgnu" - return objc_getAssociatedObject(self, @selector(requestSerializer)) ?: _af_defaultRequestSerializer; -#pragma clang diagnostic pop -} - -- (void)setRequestSerializer:(AFHTTPRequestSerializer *)requestSerializer { - objc_setAssociatedObject(self, @selector(requestSerializer), requestSerializer, OBJC_ASSOCIATION_RETAIN_NONATOMIC); -} - -- (AFHTTPResponseSerializer *)responseSerializer { - static AFHTTPResponseSerializer *_af_defaultResponseSerializer = nil; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - _af_defaultResponseSerializer = [AFHTTPResponseSerializer serializer]; - }); - -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgnu" - return objc_getAssociatedObject(self, @selector(responseSerializer)) ?: _af_defaultResponseSerializer; -#pragma clang diagnostic pop -} - -- (void)setResponseSerializer:(AFHTTPResponseSerializer *)responseSerializer { - objc_setAssociatedObject(self, @selector(responseSerializer), responseSerializer, OBJC_ASSOCIATION_RETAIN_NONATOMIC); -} - -#pragma mark - - -- (void)loadRequest:(NSURLRequest *)request - progress:(void (^)(NSUInteger bytesWritten, long long totalBytesWritten, long long totalBytesExpectedToWrite))progress - success:(NSString * (^)(NSHTTPURLResponse *response, NSString *HTML))success - failure:(void (^)(NSError *error))failure -{ - [self loadRequest:request MIMEType:nil textEncodingName:nil progress:progress success:^NSData *(NSHTTPURLResponse *response, NSData *data) { - NSStringEncoding stringEncoding = NSUTF8StringEncoding; - if (response.textEncodingName) { - CFStringEncoding encoding = CFStringConvertIANACharSetNameToEncoding((CFStringRef)response.textEncodingName); - if (encoding != kCFStringEncodingInvalidId) { - stringEncoding = CFStringConvertEncodingToNSStringEncoding(encoding); - } - } - - NSString *string = [[NSString alloc] initWithData:data encoding:stringEncoding]; - if (success) { - string = success(response, string); - } - - return [string dataUsingEncoding:stringEncoding]; - } failure:failure]; -} - -- (void)loadRequest:(NSURLRequest *)request - MIMEType:(NSString *)MIMEType - textEncodingName:(NSString *)textEncodingName - progress:(void (^)(NSUInteger bytesWritten, long long totalBytesWritten, long long totalBytesExpectedToWrite))progress - success:(NSData * (^)(NSHTTPURLResponse *response, NSData *data))success - failure:(void (^)(NSError *error))failure -{ - NSParameterAssert(request); - - if (self.af_HTTPRequestOperation) { - [self.af_HTTPRequestOperation cancel]; - } - - request = [self.requestSerializer requestBySerializingRequest:request withParameters:nil error:nil]; - - self.af_HTTPRequestOperation = [[AFHTTPRequestOperation alloc] initWithRequest:request]; - self.af_HTTPRequestOperation.responseSerializer = self.responseSerializer; - - __weak __typeof(self)weakSelf = self; - [self.af_HTTPRequestOperation setDownloadProgressBlock:progress]; - [self.af_HTTPRequestOperation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id __unused responseObject) { - NSData *data = success ? success(operation.response, operation.responseData) : operation.responseData; - -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgnu" - __strong __typeof(weakSelf) strongSelf = weakSelf; - [strongSelf loadData:data MIMEType:(MIMEType ?: [operation.response MIMEType]) textEncodingName:(textEncodingName ?: [operation.response textEncodingName]) baseURL:[operation.response URL]]; - - if ([strongSelf.delegate respondsToSelector:@selector(webViewDidFinishLoad:)]) { - [strongSelf.delegate webViewDidFinishLoad:strongSelf]; - } - -#pragma clang diagnostic pop - } failure:^(AFHTTPRequestOperation * __unused operation, NSError *error) { - if (failure) { - failure(error); - } - }]; - - [self.af_HTTPRequestOperation start]; - - if ([self.delegate respondsToSelector:@selector(webViewDidStartLoad:)]) { - [self.delegate webViewDidStartLoad:self]; - } -} - -@end - -#endif diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPBlockDefinedMatcher.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPBlockDefinedMatcher.h deleted file mode 100644 index 58b12828396..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPBlockDefinedMatcher.h +++ /dev/null @@ -1,25 +0,0 @@ -// -// EXPRuntimeMatcher.h -// Expecta -// -// Created by Luke Redpath on 26/03/2012. -// Copyright (c) 2012 Peter Jihoon Kim. All rights reserved. -// - -#import -#import "EXPMatcher.h" -#import "EXPDefines.h" - -@interface EXPBlockDefinedMatcher : NSObject { - EXPBoolBlock prerequisiteBlock; - EXPBoolBlock matchBlock; - EXPStringBlock failureMessageForToBlock; - EXPStringBlock failureMessageForNotToBlock; -} - -@property(nonatomic, copy) EXPBoolBlock prerequisiteBlock; -@property(nonatomic, copy) EXPBoolBlock matchBlock; -@property(nonatomic, copy) EXPStringBlock failureMessageForToBlock; -@property(nonatomic, copy) EXPStringBlock failureMessageForNotToBlock; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPBlockDefinedMatcher.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPBlockDefinedMatcher.m deleted file mode 100644 index 89bba37732f..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPBlockDefinedMatcher.m +++ /dev/null @@ -1,60 +0,0 @@ -// -// EXPRuntimeMatcher.m -// Expecta -// -// Created by Luke Redpath on 26/03/2012. -// Copyright (c) 2012 Peter Jihoon Kim. All rights reserved. -// - -#import "EXPBlockDefinedMatcher.h" - -@implementation EXPBlockDefinedMatcher - -- (void)dealloc -{ - self.prerequisiteBlock = nil; - self.matchBlock = nil; - self.failureMessageForToBlock = nil; - self.failureMessageForNotToBlock = nil; - - [super dealloc]; -} - -@synthesize prerequisiteBlock; -@synthesize matchBlock; -@synthesize failureMessageForToBlock; -@synthesize failureMessageForNotToBlock; - -- (BOOL)meetsPrerequesiteFor:(id)actual -{ - if (self.prerequisiteBlock) { - return self.prerequisiteBlock(); - } - return YES; -} - -- (BOOL)matches:(id)actual -{ - if (self.matchBlock) { - return self.matchBlock(); - } - return YES; -} - -- (NSString *)failureMessageForTo:(id)actual -{ - if (self.failureMessageForToBlock) { - return self.failureMessageForToBlock(); - } - return nil; -} - -- (NSString *)failureMessageForNotTo:(id)actual -{ - if (self.failureMessageForNotToBlock) { - return self.failureMessageForNotToBlock(); - } - return nil; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPDefines.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPDefines.h deleted file mode 100644 index 52af721913c..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPDefines.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// EXPDefines.h -// Expecta -// -// Created by Luke Redpath on 26/03/2012. -// Copyright (c) 2012 Peter Jihoon Kim. All rights reserved. -// - -#ifndef Expecta_EXPDefines_h -#define Expecta_EXPDefines_h - -typedef void (^EXPBasicBlock)(); -typedef id (^EXPIdBlock)(); -typedef BOOL (^EXPBoolBlock)(); -typedef NSString *(^EXPStringBlock)(); - -#endif diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPDoubleTuple.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPDoubleTuple.h deleted file mode 100644 index 4bd231c5700..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPDoubleTuple.h +++ /dev/null @@ -1,13 +0,0 @@ -#import - -@interface EXPDoubleTuple : NSObject { - double *_values; - size_t _size; -} - -@property (nonatomic, assign) double *values; -@property (nonatomic, assign) size_t size; - -- (instancetype)initWithDoubleValues:(double *)values size:(size_t)size NS_DESIGNATED_INITIALIZER; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPDoubleTuple.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPDoubleTuple.m deleted file mode 100644 index 829e354221b..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPDoubleTuple.m +++ /dev/null @@ -1,42 +0,0 @@ -#import "EXPDoubleTuple.h" - -@implementation EXPDoubleTuple - -@synthesize values = _values, size = _size; - -- (instancetype)initWithDoubleValues:(double *)values size:(size_t)size { - if ((self = [super init])) { - self.values = malloc(sizeof(double) * size); - memcpy(self.values, values, sizeof(double) * size); - self.size = size; - } - return self; -} - -- (void)dealloc { - free(self.values); - [super dealloc]; -} - -- (BOOL)isEqual:(id)object { - if (![object isKindOfClass:[EXPDoubleTuple class]]) return NO; - EXPDoubleTuple *other = (EXPDoubleTuple *)object; - if (self.size == other.size) { - for (int i = 0; i < self.size; ++i) { - if (self.values[i] != other.values[i]) return NO; - } - return YES; - } - return NO; -} - -- (NSString *)description { - if (self.size == 2) { - return [NSString stringWithFormat:@"Double tuple: {%f, %f}", self.values[0], self.values[1]]; - } else if (self.size == 4) { - return [NSString stringWithFormat:@"Double tuple: {%f, %f, %f, %f}", self.values[0], self.values[1], self.values[2], self.values[3]]; - } - return [NSString stringWithFormat:@"Double tuple of unexpected size %zd, sadly", self.size]; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPExpect.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPExpect.h deleted file mode 100644 index 985c1200d50..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPExpect.h +++ /dev/null @@ -1,45 +0,0 @@ -#import -#import "EXPMatcher.h" -#import "EXPDefines.h" - -@interface EXPExpect : NSObject { - EXPIdBlock _actualBlock; - id _testCase; - int _lineNumber; - char *_fileName; - BOOL _negative; - BOOL _asynchronous; - NSTimeInterval _timeout; -} - -@property(nonatomic, copy) EXPIdBlock actualBlock; -@property(nonatomic, readonly) id actual; -@property(nonatomic, assign) id testCase; -@property(nonatomic) int lineNumber; -@property(nonatomic) const char *fileName; -@property(nonatomic) BOOL negative; -@property(nonatomic) BOOL asynchronous; -@property(nonatomic) NSTimeInterval timeout; - -@property(nonatomic, readonly) EXPExpect *to; -@property(nonatomic, readonly) EXPExpect *toNot; -@property(nonatomic, readonly) EXPExpect *notTo; -@property(nonatomic, readonly) EXPExpect *will; -@property(nonatomic, readonly) EXPExpect *willNot; -@property(nonatomic, readonly) EXPExpect *(^after)(NSTimeInterval timeInterval); - -- (instancetype)initWithActualBlock:(id)actualBlock testCase:(id)testCase lineNumber:(int)lineNumber fileName:(const char *)fileName NS_DESIGNATED_INITIALIZER; -+ (EXPExpect *)expectWithActualBlock:(id)actualBlock testCase:(id)testCase lineNumber:(int)lineNumber fileName:(const char *)fileName; - -- (void)applyMatcher:(id)matcher; -- (void)applyMatcher:(id)matcher to:(NSObject **)actual; - -@end - -@interface EXPDynamicPredicateMatcher : NSObject { - EXPExpect *_expectation; - SEL _selector; -} -- (instancetype)initWithExpectation:(EXPExpect *)expectation selector:(SEL)selector NS_DESIGNATED_INITIALIZER; -@property (nonatomic, readonly, copy) void (^dispatch)(void); -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPExpect.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPExpect.m deleted file mode 100644 index 729794d6934..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPExpect.m +++ /dev/null @@ -1,214 +0,0 @@ -#import "EXPExpect.h" -#import "NSObject+Expecta.h" -#import "Expecta.h" -#import "EXPUnsupportedObject.h" -#import "EXPMatcher.h" -#import "EXPBlockDefinedMatcher.h" -#import - -@implementation EXPExpect - -@dynamic - actual, - to, - toNot, - notTo, - will, - willNot, - after; - -@synthesize - actualBlock=_actualBlock, - testCase=_testCase, - negative=_negative, - asynchronous=_asynchronous, - timeout=_timeout, - lineNumber=_lineNumber, - fileName=_fileName; - -- (instancetype)initWithActualBlock:(id)actualBlock testCase:(id)testCase lineNumber:(int)lineNumber fileName:(const char *)fileName { - self = [super init]; - if(self) { - self.actualBlock = actualBlock; - self.testCase = testCase; - self.negative = NO; - self.asynchronous = NO; - self.timeout = [Expecta asynchronousTestTimeout]; - self.lineNumber = lineNumber; - self.fileName = fileName; - } - return self; -} - -- (void)dealloc -{ - _actualBlock = nil; - [super dealloc]; -} - -+ (EXPExpect *)expectWithActualBlock:(id)actualBlock testCase:(id)testCase lineNumber:(int)lineNumber fileName:(const char *)fileName { - return [[[EXPExpect alloc] initWithActualBlock:actualBlock testCase:(id)testCase lineNumber:lineNumber fileName:fileName] autorelease]; -} - -#pragma mark - - -- (EXPExpect *)to { - return self; -} - -- (EXPExpect *)toNot { - self.negative = !self.negative; - return self; -} - -- (EXPExpect *)notTo { - return [self toNot]; -} - -- (EXPExpect *)will { - self.asynchronous = YES; - return self; -} - -- (EXPExpect *)willNot { - return self.will.toNot; -} - -- (EXPExpect *(^)(NSTimeInterval))after -{ - EXPExpect * (^block)(NSTimeInterval) = [^EXPExpect *(NSTimeInterval timeout) { - self.asynchronous = YES; - self.timeout = timeout; - return self; - } copy]; - - return [block autorelease]; -} - -#pragma mark - - -- (id)actual { - if(self.actualBlock) { - return self.actualBlock(); - } - return nil; -} - -- (void)applyMatcher:(id)matcher -{ - id actual = [self actual]; - [self applyMatcher:matcher to:&actual]; -} - -- (void)applyMatcher:(id)matcher to:(NSObject **)actual { - if([*actual isKindOfClass:[EXPUnsupportedObject class]]) { - EXPFail(self.testCase, self.lineNumber, self.fileName, - [NSString stringWithFormat:@"expecting a %@ is not supported", ((EXPUnsupportedObject *)*actual).type]); - } else { - BOOL failed = NO; - if([matcher respondsToSelector:@selector(meetsPrerequesiteFor:)] && - ![matcher meetsPrerequesiteFor:*actual]) { - failed = YES; - } else { - BOOL matchResult = NO; - if(self.asynchronous) { - NSTimeInterval timeOut = self.timeout; - NSDate *expiryDate = [NSDate dateWithTimeIntervalSinceNow:timeOut]; - while(1) { - matchResult = [matcher matches:*actual]; - failed = self.negative ? matchResult : !matchResult; - if(!failed || ([(NSDate *)[NSDate date] compare:expiryDate] == NSOrderedDescending)) { - break; - } - [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.01]]; - OSMemoryBarrier(); - *actual = self.actual; - } - } else { - matchResult = [matcher matches:*actual]; - } - failed = self.negative ? matchResult : !matchResult; - } - if(failed) { - NSString *message = nil; - - if(self.negative) { - if ([matcher respondsToSelector:@selector(failureMessageForNotTo:)]) { - message = [matcher failureMessageForNotTo:*actual]; - } - } else { - if ([matcher respondsToSelector:@selector(failureMessageForTo:)]) { - message = [matcher failureMessageForTo:*actual]; - } - } - if (message == nil) { - message = @"Match Failed."; - } - - EXPFail(self.testCase, self.lineNumber, self.fileName, message); - } - } - self.negative = NO; -} - -#pragma mark - Dynamic predicate dispatch - -- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector -{ - if ([self.actual respondsToSelector:aSelector]) { - return [self.actual methodSignatureForSelector:aSelector]; - } - return [super methodSignatureForSelector:aSelector]; -} - -- (void)forwardInvocation:(NSInvocation *)anInvocation -{ - if ([self.actual respondsToSelector:anInvocation.selector]) { - EXPDynamicPredicateMatcher *matcher = [[EXPDynamicPredicateMatcher alloc] initWithExpectation:self selector:anInvocation.selector]; - [anInvocation setSelector:@selector(dispatch)]; - [anInvocation invokeWithTarget:matcher]; - [matcher release]; - } - else { - [super forwardInvocation:anInvocation]; - } -} - -@end - -@implementation EXPDynamicPredicateMatcher - -- (instancetype)initWithExpectation:(EXPExpect *)expectation selector:(SEL)selector -{ - if ((self = [super init])) { - _expectation = expectation; - _selector = selector; - } - return self; -} - -- (BOOL)matches:(id)actual -{ - return (BOOL)[actual performSelector:_selector]; -} - -- (NSString *)failureMessageForTo:(id)actual -{ - return [NSString stringWithFormat:@"expected %@ to be true", NSStringFromSelector(_selector)]; -} - -- (NSString *)failureMessageForNotTo:(id)actual -{ - return [NSString stringWithFormat:@"expected %@ to be false", NSStringFromSelector(_selector)]; -} - -- (void (^)(void))dispatch -{ - __block id blockExpectation = _expectation; - - return [[^{ - [blockExpectation applyMatcher:self]; - } copy] autorelease]; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPFloatTuple.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPFloatTuple.h deleted file mode 100644 index ea8ee810b6b..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPFloatTuple.h +++ /dev/null @@ -1,13 +0,0 @@ -#import - -@interface EXPFloatTuple : NSObject { - float *_values; - size_t _size; -} - -@property (nonatomic, assign) float *values; -@property (nonatomic, assign) size_t size; - -- (instancetype)initWithFloatValues:(float *)values size:(size_t)size NS_DESIGNATED_INITIALIZER; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPFloatTuple.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPFloatTuple.m deleted file mode 100644 index 8e8505bca8c..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPFloatTuple.m +++ /dev/null @@ -1,52 +0,0 @@ -#import "EXPFloatTuple.h" - -@implementation EXPFloatTuple - -@synthesize values = _values, size = _size; - -- (instancetype)initWithFloatValues:(float *)values size:(size_t)size { - if ((self = [super init])) { - self.values = malloc(sizeof(float) * size); - memcpy(self.values, values, sizeof(float) * size); - self.size = size; - } - return self; -} - -- (void)dealloc { - free(self.values); - [super dealloc]; -} - -- (BOOL)isEqual:(id)object { - if (![object isKindOfClass:[EXPFloatTuple class]]) return NO; - EXPFloatTuple *other = (EXPFloatTuple *)object; - if (self.size == other.size) { - for (int i = 0; i < self.size; ++i) { - if (self.values[i] != other.values[i]) return NO; - } - return YES; - } - return NO; -} - -- (NSUInteger)hash -{ - NSUInteger prime = 31; - NSUInteger hash = 0; - for (int i=0; i - -@protocol EXPMatcher - -- (BOOL)matches:(id)actual; - -@optional -- (BOOL)meetsPrerequesiteFor:(id)actual; -- (NSString *)failureMessageForTo:(id)actual; -- (NSString *)failureMessageForNotTo:(id)actual; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPUnsupportedObject.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPUnsupportedObject.h deleted file mode 100644 index 3ad0561efae..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPUnsupportedObject.h +++ /dev/null @@ -1,11 +0,0 @@ -#import - -@interface EXPUnsupportedObject : NSObject { - NSString *_type; -} - -@property (nonatomic, retain) NSString *type; - -- (instancetype)initWithType:(NSString *)type NS_DESIGNATED_INITIALIZER; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPUnsupportedObject.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPUnsupportedObject.m deleted file mode 100644 index 4312beff177..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/EXPUnsupportedObject.m +++ /dev/null @@ -1,20 +0,0 @@ -#import "EXPUnsupportedObject.h" - -@implementation EXPUnsupportedObject - -@synthesize type=_type; - -- (instancetype)initWithType:(NSString *)type { - self = [super init]; - if(self) { - self.type = type; - } - return self; -} - -- (void)dealloc { - self.type = nil; - [super dealloc]; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Expecta.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Expecta.h deleted file mode 100644 index 6e5188e621d..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Expecta.h +++ /dev/null @@ -1,15 +0,0 @@ -#import - -//! Project version number for Expecta. -FOUNDATION_EXPORT double ExpectaVersionNumber; - -//! Project version string for Expecta. -FOUNDATION_EXPORT const unsigned char ExpectaVersionString[]; - -#import -#import -#import - -// Enable shorthand by default -#define expect(...) EXP_expect((__VA_ARGS__)) -#define failure(...) EXP_failure((__VA_ARGS__)) \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/ExpectaObject.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/ExpectaObject.h deleted file mode 100644 index ef2a38aafbc..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/ExpectaObject.h +++ /dev/null @@ -1,18 +0,0 @@ -#import - -#define EXPObjectify(value) _EXPObjectify(@encode(__typeof__((value))), (value)) -#define EXP_expect(actual) _EXP_expect(self, __LINE__, __FILE__, ^id{ return EXPObjectify((actual)); }) -#define EXPMatcherInterface(matcherName, matcherArguments) _EXPMatcherInterface(matcherName, matcherArguments) -#define EXPMatcherImplementationBegin(matcherName, matcherArguments) _EXPMatcherImplementationBegin(matcherName, matcherArguments) -#define EXPMatcherImplementationEnd _EXPMatcherImplementationEnd -#define EXPMatcherAliasImplementation(newMatcherName, oldMatcherName, matcherArguments) _EXPMatcherAliasImplementation(newMatcherName, oldMatcherName, matcherArguments) - -#define EXP_failure(message) EXPFail(self, __LINE__, __FILE__, message) - - -@interface Expecta : NSObject - -+ (NSTimeInterval)asynchronousTestTimeout; -+ (void)setAsynchronousTestTimeout:(NSTimeInterval)timeout; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/ExpectaObject.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/ExpectaObject.m deleted file mode 100644 index b51e00a9be5..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/ExpectaObject.m +++ /dev/null @@ -1,15 +0,0 @@ -#import "ExpectaObject.h" - -@implementation Expecta - -static NSTimeInterval _asynchronousTestTimeout = 1.0; - -+ (NSTimeInterval)asynchronousTestTimeout { - return _asynchronousTestTimeout; -} - -+ (void)setAsynchronousTestTimeout:(NSTimeInterval)timeout { - _asynchronousTestTimeout = timeout; -} - -@end \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/ExpectaSupport.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/ExpectaSupport.h deleted file mode 100644 index fb0ef4f460e..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/ExpectaSupport.h +++ /dev/null @@ -1,73 +0,0 @@ -#import "EXPExpect.h" -#import "EXPBlockDefinedMatcher.h" - -#ifdef __cplusplus -extern "C" { -#endif - -id _EXPObjectify(const char *type, ...); -EXPExpect *_EXP_expect(id testCase, int lineNumber, const char *fileName, EXPIdBlock actualBlock); - -void EXPFail(id testCase, int lineNumber, const char *fileName, NSString *message); -NSString *EXPDescribeObject(id obj); - -void EXP_prerequisite(EXPBoolBlock block); -void EXP_match(EXPBoolBlock block); -void EXP_failureMessageForTo(EXPStringBlock block); -void EXP_failureMessageForNotTo(EXPStringBlock block); - -#if __has_feature(objc_arc) -#define _EXP_release(x) -#define _EXP_autorelease(x) (x) - -#else -#define _EXP_release(x) [x release] -#define _EXP_autorelease(x) [x autorelease] -#endif - -// workaround for the categories bug: http://developer.apple.com/library/mac/#qa/qa1490/_index.html -#define EXPFixCategoriesBug(name) \ -__attribute__((constructor)) static void EXPFixCategoriesBug##name() {} - -#define _EXPMatcherInterface(matcherName, matcherArguments) \ -@interface EXPExpect (matcherName##Matcher) \ -@property (nonatomic, readonly) void(^ matcherName) matcherArguments; \ -@end - -#define _EXPMatcherImplementationBegin(matcherName, matcherArguments) \ -EXPFixCategoriesBug(EXPMatcher##matcherName##Matcher); \ -@implementation EXPExpect (matcherName##Matcher) \ -@dynamic matcherName;\ -- (void(^) matcherArguments) matcherName { \ - EXPBlockDefinedMatcher *matcher = [[EXPBlockDefinedMatcher alloc] init]; \ - [[[NSThread currentThread] threadDictionary] setObject:matcher forKey:@"EXP_currentMatcher"]; \ - __block id actual = self.actual; \ - __block void (^prerequisite)(EXPBoolBlock block) = ^(EXPBoolBlock block) { EXP_prerequisite(block); }; \ - __block void (^match)(EXPBoolBlock block) = ^(EXPBoolBlock block) { EXP_match(block); }; \ - __block void (^failureMessageForTo)(EXPStringBlock block) = ^(EXPStringBlock block) { EXP_failureMessageForTo(block); }; \ - __block void (^failureMessageForNotTo)(EXPStringBlock block) = ^(EXPStringBlock block) { EXP_failureMessageForNotTo(block); }; \ - prerequisite(nil); match(nil); failureMessageForTo(nil); failureMessageForNotTo(nil); \ - void (^matcherBlock) matcherArguments = [^ matcherArguments { \ - { - -#define _EXPMatcherImplementationEnd \ - } \ - [self applyMatcher:matcher to:&actual]; \ - } copy]; \ - _EXP_release(matcher); \ - return _EXP_autorelease(matcherBlock); \ -} \ -@end - -#define _EXPMatcherAliasImplementation(newMatcherName, oldMatcherName, matcherArguments) \ -EXPFixCategoriesBug(EXPMatcher##newMatcherName##Matcher); \ -@implementation EXPExpect (newMatcherName##Matcher) \ -@dynamic newMatcherName;\ -- (void(^) matcherArguments) newMatcherName { \ - return [self oldMatcherName]; \ -}\ -@end - -#ifdef __cplusplus -} -#endif diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/ExpectaSupport.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/ExpectaSupport.m deleted file mode 100644 index 8abe415eda2..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/ExpectaSupport.m +++ /dev/null @@ -1,176 +0,0 @@ -#import "ExpectaSupport.h" -#import "NSValue+Expecta.h" -#import "NSObject+Expecta.h" -#import "EXPUnsupportedObject.h" -#import "EXPFloatTuple.h" -#import "EXPDoubleTuple.h" -#import "EXPDefines.h" -#import - -@interface NSObject (ExpectaXCTestRecordFailure) - -// suppress warning -- (void)recordFailureWithDescription:(NSString *)description inFile:(NSString *)filename atLine:(NSUInteger)lineNumber expected:(BOOL)expected; - -@end - -id _EXPObjectify(const char *type, ...) { - va_list v; - va_start(v, type); - id obj = nil; - if(strcmp(type, @encode(char)) == 0) { - char actual = (char)va_arg(v, int); - obj = @(actual); - } else if(strcmp(type, @encode(_Bool)) == 0) { - _Static_assert(sizeof(_Bool) <= sizeof(int), "Expected _Bool to be subject to vararg type promotion"); - _Bool actual = (_Bool)va_arg(v, int); - obj = @(actual); - } else if(strcmp(type, @encode(double)) == 0) { - double actual = (double)va_arg(v, double); - obj = @(actual); - } else if(strcmp(type, @encode(float)) == 0) { - float actual = (float)va_arg(v, double); - obj = @(actual); - } else if(strcmp(type, @encode(int)) == 0) { - int actual = (int)va_arg(v, int); - obj = @(actual); - } else if(strcmp(type, @encode(long)) == 0) { - long actual = (long)va_arg(v, long); - obj = @(actual); - } else if(strcmp(type, @encode(long long)) == 0) { - long long actual = (long long)va_arg(v, long long); - obj = @(actual); - } else if(strcmp(type, @encode(short)) == 0) { - short actual = (short)va_arg(v, int); - obj = @(actual); - } else if(strcmp(type, @encode(unsigned char)) == 0) { - unsigned char actual = (unsigned char)va_arg(v, unsigned int); - obj = @(actual); - } else if(strcmp(type, @encode(unsigned int)) == 0) { - unsigned int actual = (int)va_arg(v, unsigned int); - obj = @(actual); - } else if(strcmp(type, @encode(unsigned long)) == 0) { - unsigned long actual = (unsigned long)va_arg(v, unsigned long); - obj = @(actual); - } else if(strcmp(type, @encode(unsigned long long)) == 0) { - unsigned long long actual = (unsigned long long)va_arg(v, unsigned long long); - obj = @(actual); - } else if(strcmp(type, @encode(unsigned short)) == 0) { - unsigned short actual = (unsigned short)va_arg(v, unsigned int); - obj = @(actual); - } else if(strstr(type, @encode(EXPBasicBlock)) != NULL) { - // @encode(EXPBasicBlock) returns @? as of clang 4.1. - // This condition must occur before the test for id/class type, - // otherwise blocks will be treated as vanilla objects. - id actual = va_arg(v, EXPBasicBlock); - obj = [[actual copy] autorelease]; - } else if((strstr(type, @encode(id)) != NULL) || (strstr(type, @encode(Class)) != 0)) { - id actual = va_arg(v, id); - obj = actual; - } else if(strcmp(type, @encode(__typeof__(nil))) == 0) { - obj = nil; - } else if(strstr(type, "ff}{") != NULL) { //TODO: of course this only works for a 2x2 e.g. CGRect - obj = [[[EXPFloatTuple alloc] initWithFloatValues:(float *)va_arg(v, float[4]) size:4] autorelease]; - } else if(strstr(type, "=ff}") != NULL) { - obj = [[[EXPFloatTuple alloc] initWithFloatValues:(float *)va_arg(v, float[2]) size:2] autorelease]; - } else if(strstr(type, "=ffff}") != NULL) { - obj = [[[EXPFloatTuple alloc] initWithFloatValues:(float *)va_arg(v, float[4]) size:4] autorelease]; - } else if(strstr(type, "dd}{") != NULL) { //TODO: same here - obj = [[[EXPDoubleTuple alloc] initWithDoubleValues:(double *)va_arg(v, double[4]) size:4] autorelease]; - } else if(strstr(type, "=dd}") != NULL) { - obj = [[[EXPDoubleTuple alloc] initWithDoubleValues:(double *)va_arg(v, double[2]) size:2] autorelease]; - } else if(strstr(type, "=dddd}") != NULL) { - obj = [[[EXPDoubleTuple alloc] initWithDoubleValues:(double *)va_arg(v, double[4]) size:4] autorelease]; - } else if(type[0] == '{') { - EXPUnsupportedObject *actual = [[[EXPUnsupportedObject alloc] initWithType:@"struct"] autorelease]; - obj = actual; - } else if(type[0] == '(') { - EXPUnsupportedObject *actual = [[[EXPUnsupportedObject alloc] initWithType:@"union"] autorelease]; - obj = actual; - } else { - void *actual = va_arg(v, void *); - obj = (actual == NULL ? nil :[NSValue valueWithPointer:actual]); - } - if([obj isKindOfClass:[NSValue class]] && ![obj isKindOfClass:[NSNumber class]]) { - [(NSValue *)obj set_EXP_objCType:type]; - } - va_end(v); - return obj; -} - -EXPExpect *_EXP_expect(id testCase, int lineNumber, const char *fileName, EXPIdBlock actualBlock) { - return [EXPExpect expectWithActualBlock:actualBlock testCase:testCase lineNumber:lineNumber fileName:fileName]; -} - -void EXPFail(id testCase, int lineNumber, const char *fileName, NSString *message) { - NSLog(@"%s:%d %@", fileName, lineNumber, message); - NSString *reason = [NSString stringWithFormat:@"%s:%d %@", fileName, lineNumber, message]; - NSException *exception = [NSException exceptionWithName:@"Expecta Error" reason:reason userInfo:nil]; - - if(testCase && [testCase respondsToSelector:@selector(recordFailureWithDescription:inFile:atLine:expected:)]){ - [testCase recordFailureWithDescription:message - inFile:@(fileName) - atLine:lineNumber - expected:NO]; - } else { - [exception raise]; - } -} - -NSString *EXPDescribeObject(id obj) { - if(obj == nil) { - return @"nil/null"; - } else if([obj isKindOfClass:[NSValue class]] && ![obj isKindOfClass:[NSNumber class]]) { - const char *type = [(NSValue *)obj _EXP_objCType]; - if(type) { - if(strcmp(type, @encode(SEL)) == 0) { - return [NSString stringWithFormat:@"@selector(%@)", NSStringFromSelector([obj pointerValue])]; - } else if(strcmp(type, @encode(Class)) == 0) { - return NSStringFromClass([obj pointerValue]); - } - } - } - NSString *description = [obj description]; - if([obj isKindOfClass:[NSArray class]]) { - NSMutableArray *arr = [NSMutableArray arrayWithCapacity:[obj count]]; - for(id o in obj) { - [arr addObject:EXPDescribeObject(o)]; - } - description = [NSString stringWithFormat:@"(%@)", [arr componentsJoinedByString:@", "]]; - } else if([obj isKindOfClass:[NSSet class]] || [obj isKindOfClass:[NSOrderedSet class]]) { - NSMutableArray *arr = [NSMutableArray arrayWithCapacity:[obj count]]; - for(id o in obj) { - [arr addObject:EXPDescribeObject(o)]; - } - description = [NSString stringWithFormat:@"{(%@)}", [arr componentsJoinedByString:@", "]]; - } else if([obj isKindOfClass:[NSDictionary class]]) { - NSMutableArray *arr = [NSMutableArray arrayWithCapacity:[obj count]]; - for(id k in obj) { - id v = obj[k]; - [arr addObject:[NSString stringWithFormat:@"%@ = %@;",EXPDescribeObject(k), EXPDescribeObject(v)]]; - } - description = [NSString stringWithFormat:@"{%@}", [arr componentsJoinedByString:@" "]]; - } else if([obj isKindOfClass:[NSAttributedString class]]) { - description = [obj string]; - } else { - description = [description stringByReplacingOccurrencesOfString:@"\n" withString:@"\\n"]; - } - return description; -} - -void EXP_prerequisite(EXPBoolBlock block) { - [[[NSThread currentThread] threadDictionary][@"EXP_currentMatcher"] setPrerequisiteBlock:block]; -} - -void EXP_match(EXPBoolBlock block) { - [[[NSThread currentThread] threadDictionary][@"EXP_currentMatcher"] setMatchBlock:block]; -} - -void EXP_failureMessageForTo(EXPStringBlock block) { - [[[NSThread currentThread] threadDictionary][@"EXP_currentMatcher"] setFailureMessageForToBlock:block]; -} - -void EXP_failureMessageForNotTo(EXPStringBlock block) { - [[[NSThread currentThread] threadDictionary][@"EXP_currentMatcher"] setFailureMessageForNotToBlock:block]; -} - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatcherHelpers.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatcherHelpers.h deleted file mode 100644 index 5780ff6322c..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatcherHelpers.h +++ /dev/null @@ -1,4 +0,0 @@ -#import - -BOOL EXPIsValuePointer(NSValue *value); -BOOL EXPIsNumberFloat(NSNumber *number); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatcherHelpers.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatcherHelpers.m deleted file mode 100644 index cec0343447d..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatcherHelpers.m +++ /dev/null @@ -1,9 +0,0 @@ -#import "EXPMatcherHelpers.h" - -BOOL EXPIsValuePointer(NSValue *value) { - return [value objCType][0] == @encode(void *)[0]; -} - -BOOL EXPIsNumberFloat(NSNumber *number) { - return strcmp([number objCType], @encode(float)) == 0; -} diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beCloseTo.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beCloseTo.h deleted file mode 100644 index f683d6b085a..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beCloseTo.h +++ /dev/null @@ -1,7 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(_beCloseToWithin, (id expected, id within)); -EXPMatcherInterface(beCloseToWithin, (id expected, id within)); - -#define beCloseTo(expected) _beCloseToWithin(EXPObjectify((expected)), nil) -#define beCloseToWithin(expected, range) _beCloseToWithin(EXPObjectify((expected)), EXPObjectify((range))) diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beCloseTo.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beCloseTo.m deleted file mode 100644 index c55431aa686..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beCloseTo.m +++ /dev/null @@ -1,49 +0,0 @@ -#import "EXPMatchers+beCloseTo.h" -#import "EXPMatcherHelpers.h" - -EXPMatcherImplementationBegin(_beCloseToWithin, (id expected, id within)) { - prerequisite(^BOOL{ - return [actual isKindOfClass:[NSNumber class]] && - [expected isKindOfClass:[NSNumber class]] && - ([within isKindOfClass:[NSNumber class]] || (within == nil)); - }); - - match(^BOOL{ - double actualValue = [actual doubleValue]; - double expectedValue = [expected doubleValue]; - - if (within != nil) { - double withinValue = [within doubleValue]; - double lowerBound = expectedValue - withinValue; - double upperBound = expectedValue + withinValue; - return (actualValue >= lowerBound) && (actualValue <= upperBound); - } else { - double diff = fabs(actualValue - expectedValue); - actualValue = fabs(actualValue); - expectedValue = fabs(expectedValue); - double largest = (expectedValue > actualValue) ? expectedValue : actualValue; - return (diff <= largest * FLT_EPSILON); - } - }); - - failureMessageForTo(^NSString *{ - if (within) { - return [NSString stringWithFormat:@"expected %@ to be close to %@ within %@", - EXPDescribeObject(actual), EXPDescribeObject(expected), EXPDescribeObject(within)]; - } else { - return [NSString stringWithFormat:@"expected %@ to be close to %@", - EXPDescribeObject(actual), EXPDescribeObject(expected)]; - } - }); - - failureMessageForNotTo(^NSString *{ - if (within) { - return [NSString stringWithFormat:@"expected %@ not to be close to %@ within %@", - EXPDescribeObject(actual), EXPDescribeObject(expected), EXPDescribeObject(within)]; - } else { - return [NSString stringWithFormat:@"expected %@ not to be close to %@", - EXPDescribeObject(actual), EXPDescribeObject(expected)]; - } - }); -} -EXPMatcherImplementationEnd \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beFalsy.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beFalsy.h deleted file mode 100644 index 89c8e003e18..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beFalsy.h +++ /dev/null @@ -1,3 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(beFalsy, (void)); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beFalsy.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beFalsy.m deleted file mode 100644 index 382cab8b9da..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beFalsy.m +++ /dev/null @@ -1,24 +0,0 @@ -#import "EXPMatchers+beFalsy.h" -#import "EXPMatcherHelpers.h" - -EXPMatcherImplementationBegin(beFalsy, (void)) { - match(^BOOL{ - if([actual isKindOfClass:[NSNumber class]]) { - return ![(NSNumber *)actual boolValue]; - } else if([actual isKindOfClass:[NSValue class]]) { - if(EXPIsValuePointer((NSValue *)actual)) { - return ![(NSValue *)actual pointerValue]; - } - } - return !actual; - }); - - failureMessageForTo(^NSString *{ - return [NSString stringWithFormat:@"expected: a falsy value, got: %@, which is truthy", EXPDescribeObject(actual)]; - }); - - failureMessageForNotTo(^NSString *{ - return [NSString stringWithFormat:@"expected: a non-falsy value, got: %@, which is falsy", EXPDescribeObject(actual)]; - }); -} -EXPMatcherImplementationEnd diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beGreaterThan.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beGreaterThan.h deleted file mode 100644 index a2f9fbac4ad..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beGreaterThan.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(_beGreaterThan, (id expected)); -EXPMatcherInterface(beGreaterThan, (id expected)); - -#define beGreaterThan(expected) _beGreaterThan(EXPObjectify((expected))) diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beGreaterThan.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beGreaterThan.m deleted file mode 100644 index d7253878b8e..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beGreaterThan.m +++ /dev/null @@ -1,20 +0,0 @@ -#import "EXPMatchers+beGreaterThan.h" -#import "EXPMatcherHelpers.h" - -EXPMatcherImplementationBegin(_beGreaterThan, (id expected)) { - match(^BOOL{ - if ([actual respondsToSelector:@selector(compare:)]) { - return [actual compare:expected] == NSOrderedDescending; - } - return NO; - }); - - failureMessageForTo(^NSString *{ - return [NSString stringWithFormat:@"expected: %@ to be greater than %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; - }); - - failureMessageForNotTo(^NSString *{ - return [NSString stringWithFormat:@"expected: %@ not to be greater than %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; - }); -} -EXPMatcherImplementationEnd \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beGreaterThanOrEqualTo.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beGreaterThanOrEqualTo.h deleted file mode 100644 index 3e91c64cd73..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beGreaterThanOrEqualTo.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(_beGreaterThanOrEqualTo, (id expected)); -EXPMatcherInterface(beGreaterThanOrEqualTo, (id expected)); - -#define beGreaterThanOrEqualTo(expected) _beGreaterThanOrEqualTo(EXPObjectify((expected))) diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beGreaterThanOrEqualTo.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beGreaterThanOrEqualTo.m deleted file mode 100644 index 32763449cad..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beGreaterThanOrEqualTo.m +++ /dev/null @@ -1,20 +0,0 @@ -#import "EXPMatchers+beGreaterThanOrEqualTo.h" -#import "EXPMatcherHelpers.h" - -EXPMatcherImplementationBegin(_beGreaterThanOrEqualTo, (id expected)) { - match(^BOOL{ - if ([actual respondsToSelector:@selector(compare:)]) { - return [actual compare:expected] != NSOrderedAscending; - } - return NO; - }); - - failureMessageForTo(^NSString *{ - return [NSString stringWithFormat:@"expected: %@ to be greater than or equal to %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; - }); - - failureMessageForNotTo(^NSString *{ - return [NSString stringWithFormat:@"expected: %@ not to be greater than or equal to %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; - }); -} -EXPMatcherImplementationEnd \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beIdenticalTo.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beIdenticalTo.h deleted file mode 100644 index d13619f84fa..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beIdenticalTo.h +++ /dev/null @@ -1,10 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(_beIdenticalTo, (void *expected)); -EXPMatcherInterface(beIdenticalTo, (void *expected)); // to aid code completion - -#if __has_feature(objc_arc) -#define beIdenticalTo(expected) _beIdenticalTo((__bridge void*)expected) -#else -#define beIdenticalTo(expected) _beIdenticalTo(expected) -#endif diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beIdenticalTo.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beIdenticalTo.m deleted file mode 100644 index b62b0fe6a1f..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beIdenticalTo.m +++ /dev/null @@ -1,24 +0,0 @@ -#import "EXPMatchers+equal.h" -#import "EXPMatcherHelpers.h" - -EXPMatcherImplementationBegin(_beIdenticalTo, (void *expected)) { - match(^BOOL{ - if(actual == expected) { - return YES; - } else if([actual isKindOfClass:[NSValue class]] && EXPIsValuePointer((NSValue *)actual)) { - if([(NSValue *)actual pointerValue] == expected) { - return YES; - } - } - return NO; - }); - - failureMessageForTo(^NSString *{ - return [NSString stringWithFormat:@"expected: <%p>, got: <%p>", expected, actual]; - }); - - failureMessageForNotTo(^NSString *{ - return [NSString stringWithFormat:@"expected: not <%p>, got: <%p>", expected, actual]; - }); -} -EXPMatcherImplementationEnd diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beInTheRangeOf.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beInTheRangeOf.h deleted file mode 100644 index 8ea990e23b3..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beInTheRangeOf.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(_beInTheRangeOf, (id expectedLowerBound, id expectedUpperBound)); -EXPMatcherInterface(beInTheRangeOf, (id expectedLowerBound, id expectedUpperBound)); - -#define beInTheRangeOf(expectedLowerBound, expectedUpperBound) _beInTheRangeOf(EXPObjectify((expectedLowerBound)), EXPObjectify((expectedUpperBound))) diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beInTheRangeOf.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beInTheRangeOf.m deleted file mode 100644 index 1631f24806a..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beInTheRangeOf.m +++ /dev/null @@ -1,30 +0,0 @@ -#import "EXPMatchers+beInTheRangeOf.h" -#import "EXPMatcherHelpers.h" - -EXPMatcherImplementationBegin(_beInTheRangeOf, (id expectedLowerBound, id expectedUpperBound)) { - match(^BOOL{ - if ([actual respondsToSelector:@selector(compare:)]) { - NSComparisonResult compareLowerBound = [expectedLowerBound compare: actual]; - NSComparisonResult compareUpperBound = [expectedUpperBound compare: actual]; - if (compareLowerBound == NSOrderedSame) { - return YES; - } - if (compareUpperBound == NSOrderedSame) { - return YES; - } - if ((compareLowerBound == NSOrderedAscending) && (compareUpperBound == NSOrderedDescending)) { - return YES; - } - } - return NO; - }); - - failureMessageForTo(^NSString *{ - return [NSString stringWithFormat:@"expected: %@ to be in the range [%@, %@] (inclusive)", EXPDescribeObject(actual), EXPDescribeObject(expectedLowerBound), EXPDescribeObject(expectedUpperBound)]; - }); - - failureMessageForNotTo(^NSString *{ - return [NSString stringWithFormat:@"expected: %@ not to be in the range [%@, %@] (inclusive)", EXPDescribeObject(actual), EXPDescribeObject(expectedLowerBound), EXPDescribeObject(expectedUpperBound)]; - }); -} -EXPMatcherImplementationEnd \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beInstanceOf.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beInstanceOf.h deleted file mode 100644 index a8e8175dc52..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beInstanceOf.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(beInstanceOf, (Class expected)); -EXPMatcherInterface(beAnInstanceOf, (Class expected)); -EXPMatcherInterface(beMemberOf, (Class expected)); -EXPMatcherInterface(beAMemberOf, (Class expected)); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beInstanceOf.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beInstanceOf.m deleted file mode 100644 index 9535e1e719e..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beInstanceOf.m +++ /dev/null @@ -1,31 +0,0 @@ -#import "EXPMatchers+beInstanceOf.h" - -EXPMatcherImplementationBegin(beInstanceOf, (Class expected)) { - BOOL actualIsNil = (actual == nil); - BOOL expectedIsNil = (expected == nil); - - prerequisite(^BOOL{ - return !(actualIsNil || expectedIsNil); - }); - - match(^BOOL{ - return [actual isMemberOfClass:expected]; - }); - - failureMessageForTo(^NSString *{ - if(actualIsNil) return @"the actual value is nil/null"; - if(expectedIsNil) return @"the expected value is nil/null"; - return [NSString stringWithFormat:@"expected: an instance of %@, got: an instance of %@", [expected class], [actual class]]; - }); - - failureMessageForNotTo(^NSString *{ - if(actualIsNil) return @"the actual value is nil/null"; - if(expectedIsNil) return @"the expected value is nil/null"; - return [NSString stringWithFormat:@"expected: not an instance of %@, got: an instance of %@", [expected class], [actual class]]; - }); -} -EXPMatcherImplementationEnd - -EXPMatcherAliasImplementation(beAnInstanceOf, beInstanceOf, (Class expected)); -EXPMatcherAliasImplementation(beMemberOf, beInstanceOf, (Class expected)); -EXPMatcherAliasImplementation(beAMemberOf, beInstanceOf, (Class expected)); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beKindOf.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beKindOf.h deleted file mode 100644 index b8623e0b584..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beKindOf.h +++ /dev/null @@ -1,4 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(beKindOf, (Class expected)); -EXPMatcherInterface(beAKindOf, (Class expected)); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beKindOf.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beKindOf.m deleted file mode 100644 index f13ffb54a8d..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beKindOf.m +++ /dev/null @@ -1,29 +0,0 @@ -#import "EXPMatchers+beKindOf.h" - -EXPMatcherImplementationBegin(beKindOf, (Class expected)) { - BOOL actualIsNil = (actual == nil); - BOOL expectedIsNil = (expected == nil); - - prerequisite(^BOOL{ - return !(actualIsNil || expectedIsNil); - }); - - match(^BOOL{ - return [actual isKindOfClass:expected]; - }); - - failureMessageForTo(^NSString *{ - if(actualIsNil) return @"the actual value is nil/null"; - if(expectedIsNil) return @"the expected value is nil/null"; - return [NSString stringWithFormat:@"expected: a kind of %@, got: an instance of %@, which is not a kind of %@", [expected class], [actual class], [expected class]]; - }); - - failureMessageForNotTo(^NSString *{ - if(actualIsNil) return @"the actual value is nil/null"; - if(expectedIsNil) return @"the expected value is nil/null"; - return [NSString stringWithFormat:@"expected: not a kind of %@, got: an instance of %@, which is a kind of %@", [expected class], [actual class], [expected class]]; - }); -} -EXPMatcherImplementationEnd - -EXPMatcherAliasImplementation(beAKindOf, beKindOf, (Class expected)); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beLessThan.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beLessThan.h deleted file mode 100644 index 5ed0a24c326..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beLessThan.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(_beLessThan, (id expected)); -EXPMatcherInterface(beLessThan, (id expected)); - -#define beLessThan(expected) _beLessThan(EXPObjectify((expected))) diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beLessThan.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beLessThan.m deleted file mode 100644 index 39b68830db8..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beLessThan.m +++ /dev/null @@ -1,20 +0,0 @@ -#import "EXPMatchers+beLessThan.h" -#import "EXPMatcherHelpers.h" - -EXPMatcherImplementationBegin(_beLessThan, (id expected)) { - match(^BOOL{ - if ([actual respondsToSelector:@selector(compare:)]) { - return [actual compare:expected] == NSOrderedAscending; - } - return NO; - }); - - failureMessageForTo(^NSString *{ - return [NSString stringWithFormat:@"expected: %@ to be less than %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; - }); - - failureMessageForNotTo(^NSString *{ - return [NSString stringWithFormat:@"expected: %@ not to be less than %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; - }); -} -EXPMatcherImplementationEnd \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beLessThanOrEqualTo.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beLessThanOrEqualTo.h deleted file mode 100644 index 2c31341503f..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beLessThanOrEqualTo.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(_beLessThanOrEqualTo, (id expected)); -EXPMatcherInterface(beLessThanOrEqualTo, (id expected)); - -#define beLessThanOrEqualTo(expected) _beLessThanOrEqualTo(EXPObjectify((expected))) diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beLessThanOrEqualTo.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beLessThanOrEqualTo.m deleted file mode 100644 index 401c194bdf1..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beLessThanOrEqualTo.m +++ /dev/null @@ -1,20 +0,0 @@ -#import "EXPMatchers+beLessThanOrEqualTo.h" -#import "EXPMatcherHelpers.h" - -EXPMatcherImplementationBegin(_beLessThanOrEqualTo, (id expected)) { - match(^BOOL{ - if ([actual respondsToSelector:@selector(compare:)]) { - return [actual compare:expected] != NSOrderedDescending; - } - return NO; - }); - - failureMessageForTo(^NSString *{ - return [NSString stringWithFormat:@"expected: %@ to be less than or equal to %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; - }); - - failureMessageForNotTo(^NSString *{ - return [NSString stringWithFormat:@"expected: %@ not to be less than or equal to %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; - }); -} -EXPMatcherImplementationEnd \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beNil.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beNil.h deleted file mode 100644 index 6d781620db2..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beNil.h +++ /dev/null @@ -1,4 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(beNil, (void)); -EXPMatcherInterface(beNull, (void)); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beNil.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beNil.m deleted file mode 100644 index 161067ff03c..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beNil.m +++ /dev/null @@ -1,18 +0,0 @@ -#import "EXPMatchers+beNil.h" - -EXPMatcherImplementationBegin(beNil, (void)) { - match(^BOOL{ - return actual == nil; - }); - - failureMessageForTo(^NSString *{ - return [NSString stringWithFormat:@"expected: nil/null, got: %@", EXPDescribeObject(actual)]; - }); - - failureMessageForNotTo(^NSString *{ - return [NSString stringWithFormat:@"expected: not nil/null, got: %@", EXPDescribeObject(actual)]; - }); -} -EXPMatcherImplementationEnd - -EXPMatcherAliasImplementation(beNull, beNil, (void)); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beSubclassOf.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beSubclassOf.h deleted file mode 100644 index 65401c59395..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beSubclassOf.h +++ /dev/null @@ -1,4 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(beSubclassOf, (Class expected)); -EXPMatcherInterface(beASubclassOf, (Class expected)); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beSubclassOf.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beSubclassOf.m deleted file mode 100644 index d4976d582ba..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beSubclassOf.m +++ /dev/null @@ -1,29 +0,0 @@ -#import "EXPMatchers+beSubclassOf.h" -#import "NSValue+Expecta.h" -#import - -EXPMatcherImplementationBegin(beSubclassOf, (Class expected)) { - __block BOOL actualIsClass = YES; - - prerequisite(^BOOL { - actualIsClass = class_isMetaClass(object_getClass(actual)); - return actualIsClass; - }); - - match(^BOOL{ - return [actual isSubclassOfClass:expected]; - }); - - failureMessageForTo(^NSString *{ - if(!actualIsClass) return @"the actual value is not a Class"; - return [NSString stringWithFormat:@"expected: a subclass of %@, got: a class %@, which is not a subclass of %@", [expected class], actual, [expected class]]; - }); - - failureMessageForNotTo(^NSString *{ - if(!actualIsClass) return @"the actual value is not a Class"; - return [NSString stringWithFormat:@"expected: not a subclass of %@, got: a class %@, which is a subclass of %@", [expected class], actual, [expected class]]; - }); -} -EXPMatcherImplementationEnd - -EXPMatcherAliasImplementation(beASubclassOf, beSubclassOf, (Class expected)); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beSupersetOf.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beSupersetOf.h deleted file mode 100644 index f9a47ba6619..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beSupersetOf.h +++ /dev/null @@ -1,4 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(beSupersetOf, (id subset)); - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beSupersetOf.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beSupersetOf.m deleted file mode 100644 index f4d05c09dad..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beSupersetOf.m +++ /dev/null @@ -1,62 +0,0 @@ -#import "EXPMatchers+contain.h" - -EXPMatcherImplementationBegin(beSupersetOf, (id subset)) { - BOOL actualIsCompatible = [actual isKindOfClass:[NSDictionary class]] || [actual respondsToSelector:@selector(containsObject:)]; - BOOL subsetIsNil = (subset == nil); - - // For some instances the isKindOfClass: method returns false, even though - // they are both actually dictionaries. e.g. Comparing a NSCFDictionary and a - // NSDictionary. - // Or in cases when you compare NSMutableArray (which implementation is __NSArrayM:NSMutableArray:NSArray) - // and NSArray (which implementation is __NSArrayI:NSArray) - BOOL bothAreIdenticalCollectionClasses = ([actual isKindOfClass:[NSDictionary class]] && [subset isKindOfClass:[NSDictionary class]]) || - ([actual isKindOfClass:[NSArray class]] && [subset isKindOfClass:[NSArray class]]) || - ([actual isKindOfClass:[NSSet class]] && [subset isKindOfClass:[NSSet class]]) || - ([actual isKindOfClass:[NSOrderedSet class]] && [subset isKindOfClass:[NSOrderedSet class]]); - - BOOL classMatches = bothAreIdenticalCollectionClasses || [subset isKindOfClass:[actual class]]; - - prerequisite(^BOOL{ - return actualIsCompatible && !subsetIsNil && classMatches; - }); - - match(^BOOL{ - if(!actualIsCompatible) return NO; - - if([actual isKindOfClass:[NSDictionary class]]) { - for (id key in subset) { - id actualValue = [actual valueForKey:key]; - id subsetValue = [subset valueForKey:key]; - - if (![subsetValue isEqual:actualValue]) return NO; - } - } else { - for (id object in subset) { - if (![actual containsObject:object]) return NO; - } - } - - return YES; - }); - - failureMessageForTo(^NSString *{ - if(!actualIsCompatible) return [NSString stringWithFormat:@"%@ is not an instance of NSDictionary and does not implement -containsObject:", EXPDescribeObject(actual)]; - - if(subsetIsNil) return @"the expected value is nil/null"; - - if(!classMatches) return [NSString stringWithFormat:@"%@ does not match the class of %@", EXPDescribeObject(subset), EXPDescribeObject(actual)]; - - return [NSString stringWithFormat:@"expected %@ to be a superset of %@", EXPDescribeObject(actual), EXPDescribeObject(subset)]; - }); - - failureMessageForNotTo(^NSString *{ - if(!actualIsCompatible) return [NSString stringWithFormat:@"%@ is not an instance of NSDictionary and does not implement -containsObject:", EXPDescribeObject(actual)]; - - if(subsetIsNil) return @"the expected value is nil/null"; - - if(!classMatches) return [NSString stringWithFormat:@"%@ does not match the class of %@", EXPDescribeObject(subset), EXPDescribeObject(actual)]; - - return [NSString stringWithFormat:@"expected %@ not to be a superset of %@", EXPDescribeObject(actual), EXPDescribeObject(subset)]; - }); -} -EXPMatcherImplementationEnd diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beTruthy.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beTruthy.h deleted file mode 100644 index 1e4e78f9b0e..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beTruthy.h +++ /dev/null @@ -1,3 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(beTruthy, (void)); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beTruthy.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beTruthy.m deleted file mode 100644 index 02fa6e79f3a..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beTruthy.m +++ /dev/null @@ -1,24 +0,0 @@ -#import "EXPMatchers+beTruthy.h" -#import "EXPMatcherHelpers.h" - -EXPMatcherImplementationBegin(beTruthy, (void)) { - match(^BOOL{ - if([actual isKindOfClass:[NSNumber class]]) { - return !![(NSNumber *)actual boolValue]; - } else if([actual isKindOfClass:[NSValue class]]) { - if(EXPIsValuePointer((NSValue *)actual)) { - return !![(NSValue *)actual pointerValue]; - } - } - return !!actual; - }); - - failureMessageForTo(^NSString *{ - return [NSString stringWithFormat:@"expected: a truthy value, got: %@, which is falsy", EXPDescribeObject(actual)]; - }); - - failureMessageForNotTo(^NSString *{ - return [NSString stringWithFormat:@"expected: a non-truthy value, got: %@, which is truthy", EXPDescribeObject(actual)]; - }); -} -EXPMatcherImplementationEnd diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beginWith.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beginWith.h deleted file mode 100644 index 07ddd6c2dc8..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beginWith.h +++ /dev/null @@ -1,4 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(beginWith, (id expected)); -EXPMatcherInterface(startWith, (id expected)); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beginWith.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beginWith.m deleted file mode 100644 index a7c9e5996c3..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+beginWith.m +++ /dev/null @@ -1,51 +0,0 @@ -#import "EXPMatchers+beginWith.h" - -EXPMatcherImplementationBegin(beginWith, (id expected)) { - BOOL actualIsNil = (actual == nil); - BOOL expectedIsNil = (expected == nil); - //This condition allows the comparison of an immutable string or ordered collection to the mutable type of the same - BOOL actualAndExpectedAreCompatible = (([actual isKindOfClass:[NSString class]] && [expected isKindOfClass:[NSString class]]) - || ([actual isKindOfClass:[NSArray class]] && [expected isKindOfClass:[NSArray class]]) - || ([actual isKindOfClass:[NSOrderedSet class]] && [expected isKindOfClass:[NSOrderedSet class]])); - - prerequisite(^BOOL { - return actualAndExpectedAreCompatible; - }); - - match(^BOOL { - if ([actual isKindOfClass:[NSString class]]) { - return [actual hasPrefix:expected]; - } else if ([actual isKindOfClass:[NSArray class]]) { - if ([expected count] > [actual count] || [expected count] == 0) { - return NO; - } - NSArray *subArray = [actual subarrayWithRange:NSMakeRange(0, [expected count])]; - return [subArray isEqualToArray:expected]; - } else { - if ([expected count] > [actual count] || [expected count] == 0) { - return NO; - } - - NSOrderedSet *subset = [NSOrderedSet orderedSetWithOrderedSet:actual range:NSMakeRange(0, [expected count]) copyItems:NO]; - return [subset isEqualToOrderedSet:expected]; - } - }); - - failureMessageForTo(^NSString *{ - if (actualIsNil) return @"the object is nil/null"; - if (expectedIsNil) return @"the expected value is nil/null"; - if (!actualAndExpectedAreCompatible) return [NSString stringWithFormat:@"%@ and %@ are not instances of one of %@, %@, or %@", EXPDescribeObject(actual), EXPDescribeObject(expected), [NSString class], [NSArray class], [NSOrderedSet class]]; - return [NSString stringWithFormat:@"expected: %@ to begin with %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; - }); - - failureMessageForNotTo(^NSString *{ - if (actualIsNil) return @"the object is nil/null"; - if (expectedIsNil) return @"the expected value is nil/null"; - if (!actualAndExpectedAreCompatible) return [NSString stringWithFormat:@"%@ and %@ are not instances of one of %@, %@, or %@", EXPDescribeObject(actual), EXPDescribeObject(expected), [NSString class], [NSArray class], [NSOrderedSet class]]; - - return [NSString stringWithFormat:@"expected: %@ not to begin with %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; - }); -} -EXPMatcherImplementationEnd - -EXPMatcherAliasImplementation(startWith, beginWith, (id expected)); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+conformTo.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+conformTo.h deleted file mode 100644 index efc7b9823be..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+conformTo.h +++ /dev/null @@ -1,3 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(conformTo, (Protocol *expected)); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+conformTo.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+conformTo.m deleted file mode 100644 index b88014d6504..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+conformTo.m +++ /dev/null @@ -1,33 +0,0 @@ -#import "EXPMatchers+conformTo.h" -#import "NSValue+Expecta.h" -#import - -EXPMatcherImplementationBegin(conformTo, (Protocol *expected)) { - BOOL actualIsNil = (actual == nil); - BOOL expectedIsNil = (expected == nil); - - prerequisite(^BOOL{ - return !(actualIsNil || expectedIsNil); - }); - - match(^BOOL{ - return [actual conformsToProtocol:expected]; - }); - - failureMessageForTo(^NSString *{ - if(actualIsNil) return @"the object is nil/null"; - if(expectedIsNil) return @"the protocol is nil/null"; - - NSString *name = NSStringFromProtocol(expected); - return [NSString stringWithFormat:@"expected: %@ to conform to %@", actual, name]; - }); - - failureMessageForNotTo(^NSString *{ - if(actualIsNil) return @"the object is nil/null"; - if(expectedIsNil) return @"the protocol is nil/null"; - - NSString *name = NSStringFromProtocol(expected); - return [NSString stringWithFormat:@"expected: %@ not to conform to %@", actual, name]; - }); -} -EXPMatcherImplementationEnd diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+contain.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+contain.h deleted file mode 100644 index 580314612eb..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+contain.h +++ /dev/null @@ -1,5 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(_contain, (id expected)); -EXPMatcherInterface(contain, (id expected)); // to aid code completion -#define contain(expected) _contain(EXPObjectify((expected))) diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+contain.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+contain.m deleted file mode 100644 index b8a6f869048..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+contain.m +++ /dev/null @@ -1,38 +0,0 @@ -#import "EXPMatchers+contain.h" - -EXPMatcherImplementationBegin(_contain, (id expected)) { - BOOL actualIsCompatible = [actual isKindOfClass:[NSString class]] || [actual conformsToProtocol:@protocol(NSFastEnumeration)]; - BOOL expectedIsNil = (expected == nil); - - prerequisite(^BOOL{ - return actualIsCompatible && !expectedIsNil; - }); - - match(^BOOL{ - if(actualIsCompatible) { - if([actual isKindOfClass:[NSString class]]) { - return [(NSString *)actual rangeOfString:[expected description]].location != NSNotFound; - } else { - for (id object in actual) { - if ([object isEqual:expected]) { - return YES; - } - } - } - } - return NO; - }); - - failureMessageForTo(^NSString *{ - if(!actualIsCompatible) return [NSString stringWithFormat:@"%@ is not an instance of NSString or NSFastEnumeration", EXPDescribeObject(actual)]; - if(expectedIsNil) return @"the expected value is nil/null"; - return [NSString stringWithFormat:@"expected %@ to contain %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; - }); - - failureMessageForNotTo(^NSString *{ - if(!actualIsCompatible) return [NSString stringWithFormat:@"%@ is not an instance of NSString or NSFastEnumeration", EXPDescribeObject(actual)]; - if(expectedIsNil) return @"the expected value is nil/null"; - return [NSString stringWithFormat:@"expected %@ not to contain %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; - }); -} -EXPMatcherImplementationEnd diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+endWith.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+endWith.h deleted file mode 100644 index 228cea95dd2..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+endWith.h +++ /dev/null @@ -1,3 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(endWith, (id expected)); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+endWith.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+endWith.m deleted file mode 100644 index f34bd9002e1..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+endWith.m +++ /dev/null @@ -1,49 +0,0 @@ -#import "EXPMatchers+endWith.h" - -EXPMatcherImplementationBegin(endWith, (id expected)) { - BOOL actualIsNil = (actual == nil); - BOOL expectedIsNil = (expected == nil); - //This condition allows the comparison of an immutable string or ordered collection to the mutable type of the same - BOOL actualAndExpectedAreCompatible = (([actual isKindOfClass:[NSString class]] && [expected isKindOfClass:[NSString class]]) - || ([actual isKindOfClass:[NSArray class]] && [expected isKindOfClass:[NSArray class]]) - || ([actual isKindOfClass:[NSOrderedSet class]] && [expected isKindOfClass:[NSOrderedSet class]])); - - prerequisite(^BOOL { - return actualAndExpectedAreCompatible; - }); - - match(^BOOL { - if ([actual isKindOfClass:[NSString class]]) { - return [actual hasSuffix:expected]; - } else if ([actual isKindOfClass:[NSArray class]]) { - if ([expected count] > [actual count] || [expected count] == 0) { - return NO; - } - NSArray *subArray = [actual subarrayWithRange:NSMakeRange([actual count] - [expected count], [expected count])]; - return [subArray isEqualToArray:expected]; - } else { - if ([expected count] > [actual count] || [expected count] == 0) { - return NO; - } - - NSOrderedSet *subset = [NSOrderedSet orderedSetWithOrderedSet:actual range:NSMakeRange([actual count] - [expected count], [expected count]) copyItems:NO]; - return [subset isEqualToOrderedSet:expected]; - } - }); - - failureMessageForTo(^NSString *{ - if (actualIsNil) return @"the object is nil/null"; - if (expectedIsNil) return @"the expected value is nil/null"; - if (!actualAndExpectedAreCompatible) return [NSString stringWithFormat:@"%@ and %@ are not instances of one of %@, %@, or %@", EXPDescribeObject(actual), EXPDescribeObject(expected), [NSString class], [NSArray class], [NSOrderedSet class]]; - return [NSString stringWithFormat:@"expected: %@ to end with %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; - }); - - failureMessageForNotTo(^NSString *{ - if (actualIsNil) return @"the object is nil/null"; - if (expectedIsNil) return @"the expected value is nil/null"; - if (!actualAndExpectedAreCompatible) return [NSString stringWithFormat:@"%@ and %@ are not instances of one of %@, %@, or %@", EXPDescribeObject(actual), EXPDescribeObject(expected), [NSString class], [NSArray class], [NSOrderedSet class]]; - - return [NSString stringWithFormat:@"expected: %@ not to end with %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; - }); -} -EXPMatcherImplementationEnd diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+equal.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+equal.h deleted file mode 100644 index b4047c0eadd..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+equal.h +++ /dev/null @@ -1,5 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(_equal, (id expected)); -EXPMatcherInterface(equal, (id expected)); // to aid code completion -#define equal(...) _equal(EXPObjectify((__VA_ARGS__))) diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+equal.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+equal.m deleted file mode 100644 index a610df02903..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+equal.m +++ /dev/null @@ -1,31 +0,0 @@ -#import "EXPMatchers+equal.h" -#import "EXPMatcherHelpers.h" - -EXPMatcherImplementationBegin(_equal, (id expected)) { - match(^BOOL{ - if((actual == expected) || [actual isEqual:expected]) { - return YES; - } else if([actual isKindOfClass:[NSNumber class]] && [expected isKindOfClass:[NSNumber class]]) { - if([actual isKindOfClass:[NSDecimalNumber class]] || [expected isKindOfClass:[NSDecimalNumber class]]) { - NSDecimalNumber *actualDecimalNumber = [NSDecimalNumber decimalNumberWithDecimal:[(NSNumber *) actual decimalValue]]; - NSDecimalNumber *expectedDecimalNumber = [NSDecimalNumber decimalNumberWithDecimal:[(NSNumber *) expected decimalValue]]; - return [actualDecimalNumber isEqualToNumber:expectedDecimalNumber]; - } - else { - if(EXPIsNumberFloat((NSNumber *)actual) || EXPIsNumberFloat((NSNumber *)expected)) { - return [(NSNumber *)actual floatValue] == [(NSNumber *)expected floatValue]; - } - } - } - return NO; - }); - - failureMessageForTo(^NSString *{ - return [NSString stringWithFormat:@"expected: %@, got: %@", EXPDescribeObject(expected), EXPDescribeObject(actual)]; - }); - - failureMessageForNotTo(^NSString *{ - return [NSString stringWithFormat:@"expected: not %@, got: %@", EXPDescribeObject(expected), EXPDescribeObject(actual)]; - }); -} -EXPMatcherImplementationEnd diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+haveCountOf.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+haveCountOf.h deleted file mode 100644 index 2e9aef570ea..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+haveCountOf.h +++ /dev/null @@ -1,10 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(haveCountOf, (NSUInteger expected)); -EXPMatcherInterface(haveCount, (NSUInteger expected)); -EXPMatcherInterface(haveACountOf, (NSUInteger expected)); -EXPMatcherInterface(haveLength, (NSUInteger expected)); -EXPMatcherInterface(haveLengthOf, (NSUInteger expected)); -EXPMatcherInterface(haveALengthOf, (NSUInteger expected)); - -#define beEmpty() haveCountOf(0) diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+haveCountOf.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+haveCountOf.m deleted file mode 100644 index ecc483173cd..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+haveCountOf.m +++ /dev/null @@ -1,42 +0,0 @@ -#import "EXPMatchers+haveCountOf.h" - -EXPMatcherImplementationBegin(haveCountOf, (NSUInteger expected)) { - BOOL actualIsStringy = [actual isKindOfClass:[NSString class]] || [actual isKindOfClass:[NSAttributedString class]]; - BOOL actualIsCompatible = actualIsStringy || [actual respondsToSelector:@selector(count)]; - - prerequisite(^BOOL{ - return actualIsCompatible; - }); - - NSUInteger (^count)(id) = ^(id actual) { - if(actualIsStringy) { - return [actual length]; - } else { - return [actual count]; - } - }; - - match(^BOOL{ - if(actualIsCompatible) { - return count(actual) == expected; - } - return NO; - }); - - failureMessageForTo(^NSString *{ - if(!actualIsCompatible) return [NSString stringWithFormat:@"%@ is not an instance of NSString, NSAttributedString, NSArray, NSSet, NSOrderedSet, or NSDictionary", EXPDescribeObject(actual)]; - return [NSString stringWithFormat:@"expected %@ to have a count of %zi but got %zi", EXPDescribeObject(actual), expected, count(actual)]; - }); - - failureMessageForNotTo(^NSString *{ - if(!actualIsCompatible) return [NSString stringWithFormat:@"%@ is not an instance of NSString, NSAttributedString, NSArray, NSSet, NSOrderedSet, or NSDictionary", EXPDescribeObject(actual)]; - return [NSString stringWithFormat:@"expected %@ not to have a count of %zi", EXPDescribeObject(actual), expected]; - }); -} -EXPMatcherImplementationEnd - -EXPMatcherAliasImplementation(haveCount, haveCountOf, (NSUInteger expected)); -EXPMatcherAliasImplementation(haveACountOf, haveCountOf, (NSUInteger expected)); -EXPMatcherAliasImplementation(haveLength, haveCountOf, (NSUInteger expected)); -EXPMatcherAliasImplementation(haveLengthOf, haveCountOf, (NSUInteger expected)); -EXPMatcherAliasImplementation(haveALengthOf, haveCountOf, (NSUInteger expected)); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+match.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+match.h deleted file mode 100644 index 4f0e8e475f4..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+match.h +++ /dev/null @@ -1,3 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(match, (NSString *expected)); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+match.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+match.m deleted file mode 100644 index a21746731b9..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+match.m +++ /dev/null @@ -1,38 +0,0 @@ -#import "EXPMatchers+match.h" -#import "EXPMatcherHelpers.h" - -EXPMatcherImplementationBegin(match, (NSString *expected)) { - BOOL actualIsNil = (actual == nil); - BOOL expectedIsNil = (expected == nil); - - __block NSRegularExpression *regex = nil; - __block NSError *regexError = nil; - - prerequisite (^BOOL { - BOOL nilInput = (actualIsNil || expectedIsNil); - if (!nilInput) { - regex = [NSRegularExpression regularExpressionWithPattern:expected options:0 error:®exError]; - } - return !nilInput && regex; - }); - - match(^BOOL { - NSRange range = [regex rangeOfFirstMatchInString:actual options:0 range:NSMakeRange(0, [actual length])]; - return !NSEqualRanges(range, NSMakeRange(NSNotFound, 0)); - }); - - failureMessageForTo(^NSString *{ - if (actualIsNil) return @"the object is nil/null"; - if (expectedIsNil) return @"the expression is nil/null"; - if (regexError) return [NSString stringWithFormat:@"unable to create regular expression from given parameter: %@", [regexError localizedDescription]]; - return [NSString stringWithFormat:@"expected: %@ to match to %@", EXPDescribeObject(actual), expected]; - }); - - failureMessageForNotTo(^NSString *{ - if (actualIsNil) return @"the object is nil/null"; - if (expectedIsNil) return @"the expression is nil/null"; - if (regexError) return [NSString stringWithFormat:@"unable to create regular expression from given parameter: %@", [regexError localizedDescription]]; - return [NSString stringWithFormat:@"expected: %@ not to match to %@", EXPDescribeObject(actual), expected]; - }); -} -EXPMatcherImplementationEnd diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+postNotification.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+postNotification.h deleted file mode 100644 index cdba4a34754..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+postNotification.h +++ /dev/null @@ -1,4 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(postNotification, (id expectedNotification)); -EXPMatcherInterface(notify, (id expectedNotification)); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+postNotification.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+postNotification.m deleted file mode 100644 index 6e517c410ac..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+postNotification.m +++ /dev/null @@ -1,88 +0,0 @@ -#import "EXPMatchers+postNotification.h" - -@implementation NSNotification (EXPEquality) - -- (BOOL)exp_isFunctionallyEqualTo:(NSNotification *)otherNotification -{ - if (![otherNotification isKindOfClass:[NSNotification class]]) return NO; - - BOOL namesMatch = [otherNotification.name isEqualToString:self.name]; - - BOOL objectsMatch = YES; - if (otherNotification.object || self.object) { - objectsMatch = [otherNotification.object isEqual:self.object]; - } - - BOOL userInfoMatches = YES; - if (otherNotification.userInfo || self.userInfo) { - userInfoMatches = [otherNotification.userInfo isEqual:self.userInfo]; - } - - return (namesMatch && objectsMatch && userInfoMatches); -} - -@end - -EXPMatcherImplementationBegin(postNotification, (id expected)){ - BOOL actualIsNil = (actual == nil); - BOOL expectedIsNil = (expected == nil); - BOOL isNotification = [expected isKindOfClass:[NSNotification class]]; - BOOL isName = [expected isKindOfClass:[NSString class]]; - - __block NSString *expectedName; - __block BOOL expectedNotificationOccurred = NO; - __block id observer; - - prerequisite(^BOOL{ - expectedNotificationOccurred = NO; - if (actualIsNil || expectedIsNil) return NO; - if (isNotification) { - expectedName = [expected name]; - }else if(isName) { - expectedName = expected; - }else{ - return NO; - } - - observer = [[NSNotificationCenter defaultCenter] addObserverForName:expectedName object:nil queue:nil usingBlock:^(NSNotification *note){ - if (isNotification) { - expectedNotificationOccurred |= [expected exp_isFunctionallyEqualTo:note]; - }else{ - expectedNotificationOccurred = YES; - } - }]; - ((EXPBasicBlock)actual)(); - return YES; - }); - - match(^BOOL{ - if(expectedNotificationOccurred) { - [[NSNotificationCenter defaultCenter] removeObserver:observer]; - } - return expectedNotificationOccurred; - }); - - failureMessageForTo(^NSString *{ - if (observer) { - [[NSNotificationCenter defaultCenter] removeObserver:observer]; - } - if(actualIsNil) return @"the actual value is nil/null"; - if(expectedIsNil) return @"the expected value is nil/null"; - if(!(isNotification || isName)) return @"the actual value is not a notification or string"; - return [NSString stringWithFormat:@"expected: %@, got: none",expectedName]; - }); - - failureMessageForNotTo(^NSString *{ - if (observer) { - [[NSNotificationCenter defaultCenter] removeObserver:observer]; - } - if(actualIsNil) return @"the actual value is nil/null"; - if(expectedIsNil) return @"the expected value is nil/null"; - if(!(isNotification || isName)) return @"the actual value is not a notification or string"; - return [NSString stringWithFormat:@"expected: none, got: %@", expectedName]; - }); -} - -EXPMatcherImplementationEnd - -EXPMatcherAliasImplementation(notify, postNotification, (id expectedNotification)) diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+raise.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+raise.h deleted file mode 100644 index 1f7fae02cac..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+raise.h +++ /dev/null @@ -1,4 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(raise, (NSString *expectedExceptionName)); -#define raiseAny() raise(nil) diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+raise.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+raise.m deleted file mode 100644 index 26f3c55fdf4..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+raise.m +++ /dev/null @@ -1,30 +0,0 @@ -#import "EXPMatchers+raise.h" -#import "EXPDefines.h" - -EXPMatcherImplementationBegin(raise, (NSString *expectedExceptionName)) { - __block NSException *exceptionCaught = nil; - - match(^BOOL{ - BOOL expectedExceptionCaught = NO; - @try { - ((EXPBasicBlock)actual)(); - } @catch(NSException *e) { - exceptionCaught = e; - expectedExceptionCaught = (expectedExceptionName == nil) || [[exceptionCaught name] isEqualToString:expectedExceptionName]; - } - return expectedExceptionCaught; - }); - - failureMessageForTo(^NSString *{ - return [NSString stringWithFormat:@"expected: %@, got: %@", - expectedExceptionName ? expectedExceptionName : @"any exception", - exceptionCaught ? [exceptionCaught name] : @"no exception"]; - }); - - failureMessageForNotTo(^NSString *{ - return [NSString stringWithFormat:@"expected: %@, got: %@", - expectedExceptionName ? [NSString stringWithFormat:@"not %@", expectedExceptionName] : @"no exception", - exceptionCaught ? [exceptionCaught name] : @"no exception"]; - }); -} -EXPMatcherImplementationEnd diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+raiseWithReason.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+raiseWithReason.h deleted file mode 100644 index 2cf5a5d2474..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+raiseWithReason.h +++ /dev/null @@ -1,3 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(raiseWithReason, (NSString *expectedExceptionName, NSString *expectedReason)); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+raiseWithReason.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+raiseWithReason.m deleted file mode 100644 index 3943d383957..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+raiseWithReason.m +++ /dev/null @@ -1,35 +0,0 @@ -#import "EXPMatchers+raiseWithReason.h" -#import "EXPDefines.h" - -EXPMatcherImplementationBegin(raiseWithReason, (NSString *expectedExceptionName, NSString *expectedReason)) { - __block NSException *exceptionCaught = nil; - - match(^BOOL{ - BOOL expectedExceptionCaught = NO; - @try { - ((EXPBasicBlock)actual)(); - } @catch(NSException *e) { - exceptionCaught = e; - expectedExceptionCaught = (((expectedExceptionName == nil) || [[exceptionCaught name] isEqualToString:expectedExceptionName]) && - ((expectedReason == nil) || ([[exceptionCaught reason] isEqualToString:expectedReason]))); - } - return expectedExceptionCaught; - }); - - failureMessageForTo(^NSString *{ - return [NSString stringWithFormat:@"expected: %@ (%@), got: %@ (%@)", - expectedExceptionName ?: @"any exception", - expectedReason ?: @"any reason", - exceptionCaught ? [exceptionCaught name] : @"no exception", - exceptionCaught ? [exceptionCaught reason] : @""]; - }); - - failureMessageForNotTo(^NSString *{ - return [NSString stringWithFormat:@"expected: %@ (%@), got: %@ (%@)", - expectedExceptionName ? [NSString stringWithFormat:@"not %@", expectedExceptionName] : @"no exception", - expectedReason ? [NSString stringWithFormat:@"not '%@'", expectedReason] : @"no reason", - exceptionCaught ? [exceptionCaught name] : @"no exception", - exceptionCaught ? [exceptionCaught reason] : @"no reason"]; - }); -} -EXPMatcherImplementationEnd diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+respondTo.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+respondTo.h deleted file mode 100644 index 279131dd718..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+respondTo.h +++ /dev/null @@ -1,3 +0,0 @@ -#import "Expecta.h" - -EXPMatcherInterface(respondTo, (SEL expected)); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+respondTo.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+respondTo.m deleted file mode 100644 index d294113ff11..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers+respondTo.m +++ /dev/null @@ -1,28 +0,0 @@ -#import "EXPMatchers+respondTo.h" -#import "EXPMatcherHelpers.h" - -EXPMatcherImplementationBegin(respondTo, (SEL expected)) { - BOOL actualIsNil = (actual == nil); - BOOL expectedIsNull = (expected == NULL); - - prerequisite (^BOOL { - return !(actualIsNil || expectedIsNull); - }); - - match(^BOOL { - return [actual respondsToSelector:expected]; - }); - - failureMessageForTo(^NSString *{ - if (actualIsNil) return @"the object is nil/null"; - if (expectedIsNull) return @"the selector is null"; - return [NSString stringWithFormat:@"expected: %@ to respond to %@", EXPDescribeObject(actual), NSStringFromSelector(expected)]; - }); - - failureMessageForNotTo(^NSString *{ - if (actualIsNil) return @"the object is nil/null"; - if (expectedIsNull) return @"the selector is null"; - return [NSString stringWithFormat:@"expected: %@ not to respond to %@", EXPDescribeObject(actual), NSStringFromSelector(expected)]; - }); -} -EXPMatcherImplementationEnd diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers.h deleted file mode 100644 index ed6ef85f1f1..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/Matchers/EXPMatchers.h +++ /dev/null @@ -1,25 +0,0 @@ -#import "EXPMatchers+beNil.h" -#import "EXPMatchers+equal.h" -#import "EXPMatchers+beInstanceOf.h" -#import "EXPMatchers+beKindOf.h" -#import "EXPMatchers+beSubclassOf.h" -#import "EXPMatchers+conformTo.h" -#import "EXPMatchers+beTruthy.h" -#import "EXPMatchers+beFalsy.h" -#import "EXPMatchers+contain.h" -#import "EXPMatchers+beSupersetOf.h" -#import "EXPMatchers+haveCountOf.h" -#import "EXPMatchers+beIdenticalTo.h" -#import "EXPMatchers+beGreaterThan.h" -#import "EXPMatchers+beGreaterThanOrEqualTo.h" -#import "EXPMatchers+beLessThan.h" -#import "EXPMatchers+beLessThanOrEqualTo.h" -#import "EXPMatchers+beInTheRangeOf.h" -#import "EXPMatchers+beCloseTo.h" -#import "EXPMatchers+raise.h" -#import "EXPMatchers+raiseWithReason.h" -#import "EXPMatchers+respondTo.h" -#import "EXPMatchers+postNotification.h" -#import "EXPMatchers+beginWith.h" -#import "EXPMatchers+endWith.h" -#import "EXPMatchers+match.h" diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/NSObject+Expecta.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/NSObject+Expecta.h deleted file mode 100644 index 5920e3115e8..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/NSObject+Expecta.h +++ /dev/null @@ -1,10 +0,0 @@ -#import - -@interface NSObject (Expecta) - -- (void)recordFailureWithDescription:(NSString *)description - inFile:(NSString *)filename - atLine:(NSUInteger)lineNumber - expected:(BOOL)expected; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/NSValue+Expecta.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/NSValue+Expecta.h deleted file mode 100644 index e8ff6a4c583..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/NSValue+Expecta.h +++ /dev/null @@ -1,7 +0,0 @@ -#import - -@interface NSValue (Expecta) - -@property (nonatomic) const char *_EXP_objCType; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/NSValue+Expecta.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/NSValue+Expecta.m deleted file mode 100644 index f6609964a95..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/Expecta/NSValue+Expecta.m +++ /dev/null @@ -1,21 +0,0 @@ -#import "NSValue+Expecta.h" -#import -#import "Expecta.h" - -EXPFixCategoriesBug(NSValue_Expecta); - -@implementation NSValue (Expecta) - -static char _EXP_typeKey; - -- (const char *)_EXP_objCType { - return [(NSString *)objc_getAssociatedObject(self, &_EXP_typeKey) cStringUsingEncoding:NSASCIIStringEncoding]; -} - -- (void)set_EXP_objCType:(const char *)_EXP_objCType { - objc_setAssociatedObject(self, &_EXP_typeKey, - @(_EXP_objCType), - OBJC_ASSOCIATION_COPY_NONATOMIC); -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/LICENSE b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/LICENSE deleted file mode 100644 index a036c85fc12..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2011-2015 Specta Team - https://github.com/specta - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/README.md b/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/README.md deleted file mode 100644 index c3eb64862ea..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Expecta/README.md +++ /dev/null @@ -1,293 +0,0 @@ -#Expecta - -[![Build Status](http://img.shields.io/travis/specta/expecta/master.svg?style=flat)](https://travis-ci.org/specta/expecta) -[![Pod Version](http://img.shields.io/cocoapods/v/Expecta.svg?style=flat)](http://cocoadocs.org/docsets/Expecta/) -[![Pod Platform](http://img.shields.io/cocoapods/p/Expecta.svg?style=flat)](http://cocoadocs.org/docsets/Expecta/) -[![Pod License](http://img.shields.io/cocoapods/l/Expecta.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0.html) - -A matcher framework for Objective-C and Cocoa. - -## Introduction - -The main advantage of using Expecta over other matcher frameworks is that you do not have to specify the data types. Also, the syntax of Expecta matchers is much more readable and does not suffer from parenthesitis. - -```objective-c -expect(@"foo").to.equal(@"foo"); // `to` is a syntactic sugar and can be safely omitted. -expect(foo).notTo.equal(1); -expect([bar isBar]).to.equal(YES); -expect(baz).to.equal(3.14159); -``` - -Expecta is framework-agnostic: it works well with XCTest and XCTest-compatible test frameworks such as [Specta](http://github.com/petejkim/specta/). - - -## Setup - -You can setup Expecta using [Carthage](https://github.com/Carthage/Carthage), [CocoaPods](http://github.com/CocoaPods/CocoaPods) or [completely manually](#setting-up-manually). - -### Carthage - -1. Add Expecta to your project's `Cartfile.private`: - - ```ruby - github "specta/expecta" "master" - ``` - -2. Run `carthage update` in your project directory. -3. Drag the appropriate **Expecta.framework** for your platform (located in `Carthage/Build/`) into your application’s Xcode project, and add it to your test target(s). - -### CocoaPods - -1. Add Expecta to your project's `Podfile`: - - ```ruby - target :MyApp do - # Your app's dependencies - end - - target :MyAppTests do - pod 'Expecta', '~> 0.2.4' - end - ``` - -2. Run `pod update` or `pod install` in your project directory. - -### Setting Up Manually - -1. Clone Expecta from Github. -2. Run `rake` in your project directory to build the frameworks and libraries. -3. Add a Cocoa or Cocoa Touch Unit Testing Bundle target to your Xcode project if you don't already have one. -4. For **OS X projects**, copy and add `Expecta.framework` in the `Products/osx` folder to your project's test target. - - For **iOS projects**, copy and add `Expecta.framework` in the `Products/ios` folder to your project's test target. - - You can also use `libExpecta.a` if you prefer to link Expecta as a static library — iOS 7.x and below require this. - -6. Add `-ObjC` and `-all_load` to the **Other Linker Flags** build setting for the test target in your Xcode project. -7. You can now use Expecta in your test classes by adding the following import: - - ```objective-c - @import Expecta; // If you're using Expecta.framework - - // OR - - #import // If you're using the static library, or the framework - ``` - -## Built-in Matchers - -> `expect(x).to.equal(y);` compares objects or primitives x and y and passes if they are identical (==) or equivalent isEqual:). - -> `expect(x).to.beIdenticalTo(y);` compares objects x and y and passes if they are identical and have the same memory address. - -> `expect(x).to.beNil();` passes if x is nil. - -> `expect(x).to.beTruthy();` passes if x evaluates to true (non-zero). - -> `expect(x).to.beFalsy();` passes if x evaluates to false (zero). - -> `expect(x).to.contain(y);` passes if an instance of NSArray or NSString x contains y. - -> `expect(x).to.beSupersetOf(y);` passes if an instance of NSArray, NSSet, NSDictionary or NSOrderedSet x contains all elements of y. - -> `expect(x).to.haveCountOf(y);` passes if an instance of NSArray, NSSet, NSDictionary or NSString x has a count or length of y. - -> `expect(x).to.beEmpty();` passes if an instance of NSArray, NSSet, NSDictionary or NSString x has a count or length of . - -> `expect(x).to.beInstanceOf([Foo class]);` passes if x is an instance of a class Foo. - -> `expect(x).to.beKindOf([Foo class]);` passes if x is an instance of a class Foo or if x is an instance of any class that inherits from the class Foo. - -> `expect([Foo class]).to.beSubclassOf([Bar class]);` passes if the class Foo is a subclass of the class Bar or if it is identical to the class Bar. Use beKindOf() for class clusters. - -> `expect(x).to.beLessThan(y);` passes if `x` is less than `y`. - -> `expect(x).to.beLessThanOrEqualTo(y);` passes if `x` is less than or equal to `y`. - -> `expect(x).to.beGreaterThan(y);` passes if `x` is greater than `y`. - -> `expect(x).to.beGreaterThanOrEqualTo(y);` passes if `x` is greater than or equal to `y`. - -> `expect(x).to.beInTheRangeOf(y,z);` passes if `x` is in the range of `y` and `z`. - -> `expect(x).to.beCloseTo(y);` passes if `x` is close to `y`. - -> `expect(x).to.beCloseToWithin(y, z);` passes if `x` is close to `y` within `z`. - -> `expect(^{ /* code */ }).to.raise(@"ExceptionName");` passes if a given block of code raises an exception named `ExceptionName`. - -> `expect(^{ /* code */ }).to.raiseAny();` passes if a given block of code raises any exception. - -> `expect(x).to.conformTo(y);` passes if `x` conforms to the protocol `y`. - -> `expect(x).to.respondTo(y);` passes if `x` responds to the selector `y`. - -> `expect(^{ /* code */ }).to.notify(@"NotificationName");` passes if a given block of code generates an NSNotification amed `NotificationName`. - -> `expect(^{ /* code */ }).to.notify(notification);` passes if a given block of code generates an NSNotification equal to the passed `notification`. - -> `expect(x).to.beginWith(y);` passes if an instance of NSString, NSArray, or NSOrderedSet `x` begins with `y`. Also liased by `startWith` - -> `expect(x).to.endWith(y);` passes if an instance of NSString, NSArray, or NSOrderedSet `x` ends with `y`. - -> `expect(x).to.match(y);` passes if an instance of NSString `x` matches regular expression (given as NSString) `y` one or more times. - -## Inverting Matchers - -Every matcher's criteria can be inverted by prepending `.notTo` or `.toNot`: - ->`expect(x).notTo.equal(y);` compares objects or primitives x and y and passes if they are *not* equivalent. - -## Asynchronous Testing - -Every matcher can be made to perform asynchronous testing by prepending `.will`, `.willNot` or `after(...)`: - ->`expect(x).will.beNil();` passes if x becomes nil before the default timeout. -> ->`expect(x).willNot.beNil();` passes if x becomes non-nil before the default timeout. -> ->`expect(x).after(3).to.beNil();` passes if x becoms nil after 3.0 seconds. -> ->`expect(x).after(2.5).notTo.equal(42);` passes if x doesn't equal 42 after 2.5 seconds. - -The default timeout is 1.0 second and is used for all matchers if not otherwise specified. This setting can be changed by calling `[Expecta setAsynchronousTestTimeout:x]`, where `x` is the desired timeout in seconds. - -```objective-c -describe(@"Foo", ^{ - beforeAll(^{ - // All asynchronous matching using `will` and `willNot` - // will have a timeout of 2.0 seconds - [Expecta setAsynchronousTestTimeout:2]; - }); - - it(@"will not be nil", ^{ - // Test case where default timeout is used - expect(foo).willNot.beNil(); - }); - - it(@"should equal 42 after 3 seconds", ^{ - // Signle case where timeout differs from the default - expect(foo).after(3).to.equal(42); - }); -}); -``` - -## Forced Failing - -You can fail a test by using the `failure` attribute. This can be used to test branching. - -> `failure(@"This should not happen");` outright fails a test. - - -## Writing New Matchers - -Writing a new matcher is easy with special macros provided by Expecta. Take a look at how `.beKindOf()` matcher is defined: - -`EXPMatchers+beKindOf.h` - -```objective-c -#import "Expecta.h" - -EXPMatcherInterface(beKindOf, (Class expected)); -// 1st argument is the name of the matcher function -// 2nd argument is the list of arguments that may be passed in the function -// call. -// Multiple arguments are fine. (e.g. (int foo, float bar)) - -#define beAKindOf beKindOf -``` - -`EXPMatchers+beKindOf.m` - -```objective-c -#import "EXPMatchers+beKindOf.h" - -EXPMatcherImplementationBegin(beKindOf, (Class expected)) { - BOOL actualIsNil = (actual == nil); - BOOL expectedIsNil = (expected == nil); - - prerequisite(^BOOL { - return !(actualIsNil || expectedIsNil); - // Return `NO` if matcher should fail whether or not the result is inverted - // using `.Not`. - }); - - match(^BOOL { - return [actual isKindOfClass:expected]; - // Return `YES` if the matcher should pass, `NO` if it should not. - // The actual value/object is passed as `actual`. - // Please note that primitive values will be wrapped in NSNumber/NSValue. - }); - - failureMessageForTo(^NSString * { - if (actualIsNil) - return @"the actual value is nil/null"; - if (expectedIsNil) - return @"the expected value is nil/null"; - return [NSString - stringWithFormat:@"expected: a kind of %@, " - "got: an instance of %@, which is not a kind of %@", - [expected class], [actual class], [expected class]]; - // Return the message to be displayed when the match function returns `YES`. - }); - - failureMessageForNotTo(^NSString * { - if (actualIsNil) - return @"the actual value is nil/null"; - if (expectedIsNil) - return @"the expected value is nil/null"; - return [NSString - stringWithFormat:@"expected: not a kind of %@, " - "got: an instance of %@, which is a kind of %@", - [expected class], [actual class], [expected class]]; - // Return the message to be displayed when the match function returns `NO`. - }); -} -EXPMatcherImplementationEnd -``` - -## Dynamic Predicate Matchers - -It is possible to add predicate matchers by simply defining the matcher interface, with the matcher implementation being handled at runtime by delegating to the predicate method on your object. - -For instance, if you have the following class: - -```objc -@interface LightSwitch : NSObject -@property (nonatomic, assign, getter=isTurnedOn) BOOL turnedOn; -@end - -@implementation LightSwitch -@synthesize turnedOn; -@end -``` - -The normal way to write an assertion that the switch is turned on would be: - -```objc -expect([lightSwitch isTurnedOn]).to.beTruthy(); -``` - -However, if we define a custom predicate matcher: - -```objc -EXPMatcherInterface(isTurnedOn, (void)); -``` - -(Note: we haven't defined the matcher implementation, just it's interface) - -You can now write your assertion as follows: - -```objc -expect(lightSwitch).isTurnedOn(); -``` - -## Contribution Guidelines - -* Please use only spaces and indent 2 spaces at a time. -* Please prefix instance variable names with a single underscore (`_`). -* Please prefix custom classes and functions defined in the global scope with `EXP`. - -## License - -Copyright (c) 2012-2015 [Specta Team](https://github.com/specta?tab=members). This software is licensed under the [MIT License](http://github.com/specta/specta/raw/master/LICENSE). diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFHTTPRequestOperation.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFHTTPRequestOperation.h deleted file mode 120000 index ac762c82387..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFHTTPRequestOperation.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/AFNetworking/AFHTTPRequestOperation.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFHTTPRequestOperationManager.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFHTTPRequestOperationManager.h deleted file mode 120000 index 9dcc623c638..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFHTTPRequestOperationManager.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/AFNetworking/AFHTTPRequestOperationManager.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFHTTPSessionManager.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFHTTPSessionManager.h deleted file mode 120000 index 56feb9fb85e..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFHTTPSessionManager.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/AFNetworking/AFHTTPSessionManager.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFNetworkActivityIndicatorManager.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFNetworkActivityIndicatorManager.h deleted file mode 120000 index 67519d98485..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFNetworkActivityIndicatorManager.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFNetworkReachabilityManager.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFNetworkReachabilityManager.h deleted file mode 120000 index 68fc7744f28..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFNetworkReachabilityManager.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/AFNetworking/AFNetworkReachabilityManager.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFNetworking.h deleted file mode 120000 index a5a38da7dc9..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFNetworking.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/AFNetworking/AFNetworking.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFSecurityPolicy.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFSecurityPolicy.h deleted file mode 120000 index fd1322db9c2..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFSecurityPolicy.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/AFNetworking/AFSecurityPolicy.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFURLConnectionOperation.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFURLConnectionOperation.h deleted file mode 120000 index d9b35fb754f..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFURLConnectionOperation.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/AFNetworking/AFURLConnectionOperation.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFURLRequestSerialization.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFURLRequestSerialization.h deleted file mode 120000 index ca8209b81f9..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFURLRequestSerialization.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/AFNetworking/AFURLRequestSerialization.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFURLResponseSerialization.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFURLResponseSerialization.h deleted file mode 120000 index e36a765d826..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFURLResponseSerialization.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/AFNetworking/AFURLResponseSerialization.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFURLSessionManager.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFURLSessionManager.h deleted file mode 120000 index 835101de7bf..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/AFURLSessionManager.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/AFNetworking/AFURLSessionManager.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIActivityIndicatorView+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIActivityIndicatorView+AFNetworking.h deleted file mode 120000 index c534ebfb02a..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIActivityIndicatorView+AFNetworking.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIAlertView+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIAlertView+AFNetworking.h deleted file mode 120000 index f9928133851..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIAlertView+AFNetworking.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/UIKit+AFNetworking/UIAlertView+AFNetworking.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIButton+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIButton+AFNetworking.h deleted file mode 120000 index 8f2e221939a..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIButton+AFNetworking.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIImageView+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIImageView+AFNetworking.h deleted file mode 120000 index a95d67380f1..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIImageView+AFNetworking.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIKit+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIKit+AFNetworking.h deleted file mode 120000 index 95017cce573..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIKit+AFNetworking.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/UIKit+AFNetworking/UIKit+AFNetworking.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIProgressView+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIProgressView+AFNetworking.h deleted file mode 120000 index 730b167dcde..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIProgressView+AFNetworking.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIRefreshControl+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIRefreshControl+AFNetworking.h deleted file mode 120000 index 8efd8262093..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIRefreshControl+AFNetworking.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIWebView+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIWebView+AFNetworking.h deleted file mode 120000 index c8df6ef17b8..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/AFNetworking/UIWebView+AFNetworking.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPBlockDefinedMatcher.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPBlockDefinedMatcher.h deleted file mode 120000 index ebefa87b183..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPBlockDefinedMatcher.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/EXPBlockDefinedMatcher.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPDefines.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPDefines.h deleted file mode 120000 index 22add0cdca0..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPDefines.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/EXPDefines.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPDoubleTuple.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPDoubleTuple.h deleted file mode 120000 index 54aa0b5e627..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPDoubleTuple.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/EXPDoubleTuple.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPExpect.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPExpect.h deleted file mode 120000 index a677bddfca1..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPExpect.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/EXPExpect.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPFloatTuple.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPFloatTuple.h deleted file mode 120000 index 2b405694a4d..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPFloatTuple.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/EXPFloatTuple.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatcher.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatcher.h deleted file mode 120000 index 3b20a122ce1..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatcher.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/EXPMatcher.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatcherHelpers.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatcherHelpers.h deleted file mode 120000 index 697385b078a..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatcherHelpers.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatcherHelpers.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beCloseTo.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beCloseTo.h deleted file mode 120000 index 0eed377cb9d..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beCloseTo.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beCloseTo.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beFalsy.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beFalsy.h deleted file mode 120000 index 92643c49a0e..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beFalsy.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beFalsy.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beGreaterThan.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beGreaterThan.h deleted file mode 120000 index 1ccc62b4aca..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beGreaterThan.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beGreaterThan.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beGreaterThanOrEqualTo.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beGreaterThanOrEqualTo.h deleted file mode 120000 index db5bf966aed..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beGreaterThanOrEqualTo.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beGreaterThanOrEqualTo.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beIdenticalTo.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beIdenticalTo.h deleted file mode 120000 index 6e17ea43ee0..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beIdenticalTo.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beIdenticalTo.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beInTheRangeOf.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beInTheRangeOf.h deleted file mode 120000 index 362d8a7f6df..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beInTheRangeOf.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beInTheRangeOf.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beInstanceOf.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beInstanceOf.h deleted file mode 120000 index 4dd60632f6d..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beInstanceOf.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beInstanceOf.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beKindOf.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beKindOf.h deleted file mode 120000 index 113c7d3725c..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beKindOf.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beKindOf.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beLessThan.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beLessThan.h deleted file mode 120000 index 675e86a5663..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beLessThan.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beLessThan.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beLessThanOrEqualTo.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beLessThanOrEqualTo.h deleted file mode 120000 index c16df2f05a1..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beLessThanOrEqualTo.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beLessThanOrEqualTo.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beNil.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beNil.h deleted file mode 120000 index 9f65a6c12aa..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beNil.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beNil.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beSubclassOf.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beSubclassOf.h deleted file mode 120000 index 27aa7bea5c6..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beSubclassOf.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beSubclassOf.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beSupersetOf.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beSupersetOf.h deleted file mode 120000 index ea3f770a19a..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beSupersetOf.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beSupersetOf.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beTruthy.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beTruthy.h deleted file mode 120000 index 192ac764ef7..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beTruthy.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beTruthy.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beginWith.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beginWith.h deleted file mode 120000 index 2efba8fea39..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+beginWith.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beginWith.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+conformTo.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+conformTo.h deleted file mode 120000 index 062fb51d7e7..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+conformTo.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+conformTo.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+contain.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+contain.h deleted file mode 120000 index 3661fe5f30c..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+contain.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+contain.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+endWith.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+endWith.h deleted file mode 120000 index 7e6c9cf1c9c..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+endWith.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+endWith.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+equal.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+equal.h deleted file mode 120000 index 7bee788667d..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+equal.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+equal.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+haveCountOf.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+haveCountOf.h deleted file mode 120000 index f46d23adf9c..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+haveCountOf.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+haveCountOf.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+match.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+match.h deleted file mode 120000 index 18f995de6cd..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+match.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+match.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+postNotification.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+postNotification.h deleted file mode 120000 index c9422e3e726..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+postNotification.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+postNotification.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+raise.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+raise.h deleted file mode 120000 index 901e04c192b..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+raise.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+raise.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+raiseWithReason.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+raiseWithReason.h deleted file mode 120000 index 5b063b64e12..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+raiseWithReason.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+raiseWithReason.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+respondTo.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+respondTo.h deleted file mode 120000 index e7a5fad1391..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers+respondTo.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+respondTo.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers.h deleted file mode 120000 index a454dc4083e..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPMatchers.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPUnsupportedObject.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPUnsupportedObject.h deleted file mode 120000 index 60fae89f1c5..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/EXPUnsupportedObject.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/EXPUnsupportedObject.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/Expecta.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/Expecta.h deleted file mode 120000 index 45ef877d842..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/Expecta.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Expecta.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/ExpectaObject.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/ExpectaObject.h deleted file mode 120000 index 36a99e13b27..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/ExpectaObject.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/ExpectaObject.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/ExpectaSupport.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/ExpectaSupport.h deleted file mode 120000 index c59d3fc609f..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/ExpectaSupport.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/ExpectaSupport.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/NSObject+Expecta.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/NSObject+Expecta.h deleted file mode 120000 index 55c3635a699..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/NSObject+Expecta.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/NSObject+Expecta.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/NSValue+Expecta.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/NSValue+Expecta.h deleted file mode 120000 index ee557b848d6..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Expecta/NSValue+Expecta.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/NSValue+Expecta.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/ISO8601/ISO8601.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/ISO8601/ISO8601.h deleted file mode 120000 index 624c6b8f44e..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/ISO8601/ISO8601.h +++ /dev/null @@ -1 +0,0 @@ -../../../ISO8601/ISO8601/ISO8601.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/ISO8601/ISO8601Serialization.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/ISO8601/ISO8601Serialization.h deleted file mode 120000 index f5a75430779..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/ISO8601/ISO8601Serialization.h +++ /dev/null @@ -1 +0,0 @@ -../../../ISO8601/ISO8601/ISO8601Serialization.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/ISO8601/NSDate+ISO8601.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/ISO8601/NSDate+ISO8601.h deleted file mode 120000 index bd1ba879903..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/ISO8601/NSDate+ISO8601.h +++ /dev/null @@ -1 +0,0 @@ -../../../ISO8601/ISO8601/NSDate+ISO8601.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONAPI.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONAPI.h deleted file mode 120000 index 9f3f086f96a..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONAPI.h +++ /dev/null @@ -1 +0,0 @@ -../../../JSONModel/JSONModel/JSONModelNetworking/JSONAPI.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONHTTPClient.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONHTTPClient.h deleted file mode 120000 index f07aa339805..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONHTTPClient.h +++ /dev/null @@ -1 +0,0 @@ -../../../JSONModel/JSONModel/JSONModelNetworking/JSONHTTPClient.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONKeyMapper.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONKeyMapper.h deleted file mode 120000 index ad42377ed19..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONKeyMapper.h +++ /dev/null @@ -1 +0,0 @@ -../../../JSONModel/JSONModel/JSONModelTransformations/JSONKeyMapper.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONModel+networking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONModel+networking.h deleted file mode 120000 index b2109ddc067..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONModel+networking.h +++ /dev/null @@ -1 +0,0 @@ -../../../JSONModel/JSONModel/JSONModelNetworking/JSONModel+networking.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONModel.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONModel.h deleted file mode 120000 index 06a87feab9b..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONModel.h +++ /dev/null @@ -1 +0,0 @@ -../../../JSONModel/JSONModel/JSONModel/JSONModel.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONModelArray.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONModelArray.h deleted file mode 120000 index 3769776cbe6..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONModelArray.h +++ /dev/null @@ -1 +0,0 @@ -../../../JSONModel/JSONModel/JSONModel/JSONModelArray.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONModelClassProperty.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONModelClassProperty.h deleted file mode 120000 index faee5d5bfe0..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONModelClassProperty.h +++ /dev/null @@ -1 +0,0 @@ -../../../JSONModel/JSONModel/JSONModel/JSONModelClassProperty.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONModelError.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONModelError.h deleted file mode 120000 index 476fbdd25c3..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONModelError.h +++ /dev/null @@ -1 +0,0 @@ -../../../JSONModel/JSONModel/JSONModel/JSONModelError.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONModelLib.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONModelLib.h deleted file mode 120000 index ae3423a3289..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONModelLib.h +++ /dev/null @@ -1 +0,0 @@ -../../../JSONModel/JSONModel/JSONModelLib.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONValueTransformer.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONValueTransformer.h deleted file mode 120000 index 4517ac33392..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/JSONValueTransformer.h +++ /dev/null @@ -1 +0,0 @@ -../../../JSONModel/JSONModel/JSONModelTransformations/JSONValueTransformer.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/NSArray+JSONModel.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/NSArray+JSONModel.h deleted file mode 120000 index b396c93dfbe..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/JSONModel/NSArray+JSONModel.h +++ /dev/null @@ -1 +0,0 @@ -../../../JSONModel/JSONModel/JSONModelCategories/NSArray+JSONModel.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTCallSite.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTCallSite.h deleted file mode 120000 index dbb535a6021..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTCallSite.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SPTCallSite.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTCompiledExample.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTCompiledExample.h deleted file mode 120000 index 659770480c5..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTCompiledExample.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SPTCompiledExample.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTExample.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTExample.h deleted file mode 120000 index 79a18d4c5e1..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTExample.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SPTExample.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTExampleGroup.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTExampleGroup.h deleted file mode 120000 index 1effac57bfb..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTExampleGroup.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SPTExampleGroup.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTExcludeGlobalBeforeAfterEach.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTExcludeGlobalBeforeAfterEach.h deleted file mode 120000 index 64df734234a..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTExcludeGlobalBeforeAfterEach.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SPTExcludeGlobalBeforeAfterEach.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTGlobalBeforeAfterEach.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTGlobalBeforeAfterEach.h deleted file mode 120000 index 7f83b65ff3d..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTGlobalBeforeAfterEach.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SPTGlobalBeforeAfterEach.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTSharedExampleGroups.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTSharedExampleGroups.h deleted file mode 120000 index 579d360e639..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTSharedExampleGroups.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SPTSharedExampleGroups.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTSpec.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTSpec.h deleted file mode 120000 index 3b1679ae8c1..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTSpec.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SPTSpec.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTTestSuite.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTTestSuite.h deleted file mode 120000 index 2f607e468cc..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SPTTestSuite.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SPTTestSuite.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/Specta.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/Specta.h deleted file mode 120000 index 111c968e99b..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/Specta.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/Specta.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SpectaDSL.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SpectaDSL.h deleted file mode 120000 index fd1ad375682..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SpectaDSL.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SpectaDSL.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SpectaTypes.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SpectaTypes.h deleted file mode 120000 index 9428b13249f..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SpectaTypes.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SpectaTypes.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SpectaUtility.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SpectaUtility.h deleted file mode 120000 index 576248091bd..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/SpectaUtility.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SpectaUtility.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/XCTest+Private.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/XCTest+Private.h deleted file mode 120000 index bb4a8e02612..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/XCTest+Private.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/XCTest+Private.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/XCTestCase+Specta.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/XCTestCase+Specta.h deleted file mode 120000 index 95f58cccde8..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/Specta/XCTestCase+Specta.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/XCTestCase+Specta.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/JSONValueTransformer+ISO8601.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/JSONValueTransformer+ISO8601.h deleted file mode 120000 index 3d3793de6d2..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/JSONValueTransformer+ISO8601.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/JSONValueTransformer+ISO8601.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGApiClient.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGApiClient.h deleted file mode 120000 index 18a025dde73..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGApiClient.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGApiClient.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGCategory.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGCategory.h deleted file mode 120000 index edb0ca0ccf9..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGCategory.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGCategory.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGConfiguration.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGConfiguration.h deleted file mode 120000 index 1a9e71d1043..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGConfiguration.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGConfiguration.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGFile.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGFile.h deleted file mode 120000 index 36276ef6196..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGFile.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGFile.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGJSONRequestSerializer.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGJSONRequestSerializer.h deleted file mode 120000 index 73b578f883d..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGJSONRequestSerializer.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGJSONRequestSerializer.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGJSONResponseSerializer.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGJSONResponseSerializer.h deleted file mode 120000 index 741bf952369..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGJSONResponseSerializer.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGJSONResponseSerializer.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGMyresult.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGMyresult.h deleted file mode 120000 index e5ca8eeea0b..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGMyresult.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGMyresult.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGMythingApi.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGMythingApi.h deleted file mode 120000 index 1e182c9b1ea..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGMythingApi.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGMythingApi.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGObject.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGObject.h deleted file mode 120000 index 8ccdcf8160f..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGObject.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGObject.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGOrder.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGOrder.h deleted file mode 120000 index 1c8de308c64..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGOrder.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGOrder.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGPet.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGPet.h deleted file mode 120000 index 6492918f32e..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGPet.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGPet.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGPetApi.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGPetApi.h deleted file mode 120000 index 6820750d235..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGPetApi.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGPetApi.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGQueryParamCollection.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGQueryParamCollection.h deleted file mode 120000 index f5153362a77..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGQueryParamCollection.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGQueryParamCollection.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGStoreApi.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGStoreApi.h deleted file mode 120000 index d3f01868cfa..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGStoreApi.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGStoreApi.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGTag.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGTag.h deleted file mode 120000 index 1880256cb36..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGTag.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGTag.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGUser.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGUser.h deleted file mode 120000 index 7f88cdc4511..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGUser.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGUser.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGUserApi.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGUserApi.h deleted file mode 120000 index bd97f82eebf..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Private/SwaggerClient/SWGUserApi.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGUserApi.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFHTTPRequestOperation.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFHTTPRequestOperation.h deleted file mode 120000 index ac762c82387..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFHTTPRequestOperation.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/AFNetworking/AFHTTPRequestOperation.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFHTTPRequestOperationManager.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFHTTPRequestOperationManager.h deleted file mode 120000 index 9dcc623c638..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFHTTPRequestOperationManager.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/AFNetworking/AFHTTPRequestOperationManager.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFHTTPSessionManager.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFHTTPSessionManager.h deleted file mode 120000 index 56feb9fb85e..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFHTTPSessionManager.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/AFNetworking/AFHTTPSessionManager.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFNetworkActivityIndicatorManager.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFNetworkActivityIndicatorManager.h deleted file mode 120000 index 67519d98485..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFNetworkActivityIndicatorManager.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFNetworkReachabilityManager.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFNetworkReachabilityManager.h deleted file mode 120000 index 68fc7744f28..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFNetworkReachabilityManager.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/AFNetworking/AFNetworkReachabilityManager.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFNetworking.h deleted file mode 120000 index a5a38da7dc9..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFNetworking.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/AFNetworking/AFNetworking.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFSecurityPolicy.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFSecurityPolicy.h deleted file mode 120000 index fd1322db9c2..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFSecurityPolicy.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/AFNetworking/AFSecurityPolicy.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFURLConnectionOperation.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFURLConnectionOperation.h deleted file mode 120000 index d9b35fb754f..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFURLConnectionOperation.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/AFNetworking/AFURLConnectionOperation.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFURLRequestSerialization.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFURLRequestSerialization.h deleted file mode 120000 index ca8209b81f9..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFURLRequestSerialization.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/AFNetworking/AFURLRequestSerialization.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFURLResponseSerialization.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFURLResponseSerialization.h deleted file mode 120000 index e36a765d826..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFURLResponseSerialization.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/AFNetworking/AFURLResponseSerialization.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFURLSessionManager.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFURLSessionManager.h deleted file mode 120000 index 835101de7bf..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/AFURLSessionManager.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/AFNetworking/AFURLSessionManager.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIActivityIndicatorView+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIActivityIndicatorView+AFNetworking.h deleted file mode 120000 index c534ebfb02a..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIActivityIndicatorView+AFNetworking.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIAlertView+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIAlertView+AFNetworking.h deleted file mode 120000 index f9928133851..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIAlertView+AFNetworking.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/UIKit+AFNetworking/UIAlertView+AFNetworking.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIButton+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIButton+AFNetworking.h deleted file mode 120000 index 8f2e221939a..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIButton+AFNetworking.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIImageView+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIImageView+AFNetworking.h deleted file mode 120000 index a95d67380f1..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIImageView+AFNetworking.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIKit+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIKit+AFNetworking.h deleted file mode 120000 index 95017cce573..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIKit+AFNetworking.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/UIKit+AFNetworking/UIKit+AFNetworking.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIProgressView+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIProgressView+AFNetworking.h deleted file mode 120000 index 730b167dcde..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIProgressView+AFNetworking.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIRefreshControl+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIRefreshControl+AFNetworking.h deleted file mode 120000 index 8efd8262093..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIRefreshControl+AFNetworking.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIWebView+AFNetworking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIWebView+AFNetworking.h deleted file mode 120000 index c8df6ef17b8..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/AFNetworking/UIWebView+AFNetworking.h +++ /dev/null @@ -1 +0,0 @@ -../../../AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPBlockDefinedMatcher.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPBlockDefinedMatcher.h deleted file mode 120000 index ebefa87b183..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPBlockDefinedMatcher.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/EXPBlockDefinedMatcher.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPDefines.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPDefines.h deleted file mode 120000 index 22add0cdca0..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPDefines.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/EXPDefines.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPDoubleTuple.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPDoubleTuple.h deleted file mode 120000 index 54aa0b5e627..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPDoubleTuple.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/EXPDoubleTuple.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPExpect.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPExpect.h deleted file mode 120000 index a677bddfca1..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPExpect.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/EXPExpect.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPFloatTuple.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPFloatTuple.h deleted file mode 120000 index 2b405694a4d..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPFloatTuple.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/EXPFloatTuple.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatcher.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatcher.h deleted file mode 120000 index 3b20a122ce1..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatcher.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/EXPMatcher.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatcherHelpers.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatcherHelpers.h deleted file mode 120000 index 697385b078a..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatcherHelpers.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatcherHelpers.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beCloseTo.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beCloseTo.h deleted file mode 120000 index 0eed377cb9d..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beCloseTo.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beCloseTo.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beFalsy.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beFalsy.h deleted file mode 120000 index 92643c49a0e..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beFalsy.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beFalsy.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beGreaterThan.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beGreaterThan.h deleted file mode 120000 index 1ccc62b4aca..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beGreaterThan.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beGreaterThan.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beGreaterThanOrEqualTo.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beGreaterThanOrEqualTo.h deleted file mode 120000 index db5bf966aed..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beGreaterThanOrEqualTo.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beGreaterThanOrEqualTo.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beIdenticalTo.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beIdenticalTo.h deleted file mode 120000 index 6e17ea43ee0..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beIdenticalTo.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beIdenticalTo.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beInTheRangeOf.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beInTheRangeOf.h deleted file mode 120000 index 362d8a7f6df..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beInTheRangeOf.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beInTheRangeOf.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beInstanceOf.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beInstanceOf.h deleted file mode 120000 index 4dd60632f6d..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beInstanceOf.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beInstanceOf.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beKindOf.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beKindOf.h deleted file mode 120000 index 113c7d3725c..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beKindOf.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beKindOf.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beLessThan.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beLessThan.h deleted file mode 120000 index 675e86a5663..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beLessThan.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beLessThan.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beLessThanOrEqualTo.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beLessThanOrEqualTo.h deleted file mode 120000 index c16df2f05a1..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beLessThanOrEqualTo.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beLessThanOrEqualTo.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beNil.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beNil.h deleted file mode 120000 index 9f65a6c12aa..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beNil.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beNil.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beSubclassOf.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beSubclassOf.h deleted file mode 120000 index 27aa7bea5c6..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beSubclassOf.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beSubclassOf.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beSupersetOf.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beSupersetOf.h deleted file mode 120000 index ea3f770a19a..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beSupersetOf.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beSupersetOf.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beTruthy.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beTruthy.h deleted file mode 120000 index 192ac764ef7..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beTruthy.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beTruthy.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beginWith.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beginWith.h deleted file mode 120000 index 2efba8fea39..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+beginWith.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beginWith.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+conformTo.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+conformTo.h deleted file mode 120000 index 062fb51d7e7..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+conformTo.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+conformTo.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+contain.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+contain.h deleted file mode 120000 index 3661fe5f30c..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+contain.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+contain.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+endWith.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+endWith.h deleted file mode 120000 index 7e6c9cf1c9c..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+endWith.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+endWith.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+equal.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+equal.h deleted file mode 120000 index 7bee788667d..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+equal.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+equal.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+haveCountOf.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+haveCountOf.h deleted file mode 120000 index f46d23adf9c..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+haveCountOf.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+haveCountOf.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+match.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+match.h deleted file mode 120000 index 18f995de6cd..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+match.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+match.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+postNotification.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+postNotification.h deleted file mode 120000 index c9422e3e726..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+postNotification.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+postNotification.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+raise.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+raise.h deleted file mode 120000 index 901e04c192b..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+raise.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+raise.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+raiseWithReason.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+raiseWithReason.h deleted file mode 120000 index 5b063b64e12..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+raiseWithReason.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+raiseWithReason.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+respondTo.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+respondTo.h deleted file mode 120000 index e7a5fad1391..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers+respondTo.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+respondTo.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers.h deleted file mode 120000 index a454dc4083e..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPMatchers.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPUnsupportedObject.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPUnsupportedObject.h deleted file mode 120000 index 60fae89f1c5..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/EXPUnsupportedObject.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/EXPUnsupportedObject.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/Expecta.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/Expecta.h deleted file mode 120000 index 45ef877d842..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/Expecta.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/Expecta.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/ExpectaObject.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/ExpectaObject.h deleted file mode 120000 index 36a99e13b27..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/ExpectaObject.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/ExpectaObject.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/ExpectaSupport.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/ExpectaSupport.h deleted file mode 120000 index c59d3fc609f..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/ExpectaSupport.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/ExpectaSupport.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/NSObject+Expecta.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/NSObject+Expecta.h deleted file mode 120000 index 55c3635a699..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/NSObject+Expecta.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/NSObject+Expecta.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/NSValue+Expecta.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/NSValue+Expecta.h deleted file mode 120000 index ee557b848d6..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Expecta/NSValue+Expecta.h +++ /dev/null @@ -1 +0,0 @@ -../../../Expecta/Expecta/NSValue+Expecta.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/ISO8601/ISO8601.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/ISO8601/ISO8601.h deleted file mode 120000 index 624c6b8f44e..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/ISO8601/ISO8601.h +++ /dev/null @@ -1 +0,0 @@ -../../../ISO8601/ISO8601/ISO8601.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/ISO8601/ISO8601Serialization.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/ISO8601/ISO8601Serialization.h deleted file mode 120000 index f5a75430779..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/ISO8601/ISO8601Serialization.h +++ /dev/null @@ -1 +0,0 @@ -../../../ISO8601/ISO8601/ISO8601Serialization.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/ISO8601/NSDate+ISO8601.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/ISO8601/NSDate+ISO8601.h deleted file mode 120000 index bd1ba879903..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/ISO8601/NSDate+ISO8601.h +++ /dev/null @@ -1 +0,0 @@ -../../../ISO8601/ISO8601/NSDate+ISO8601.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONAPI.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONAPI.h deleted file mode 120000 index 9f3f086f96a..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONAPI.h +++ /dev/null @@ -1 +0,0 @@ -../../../JSONModel/JSONModel/JSONModelNetworking/JSONAPI.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONHTTPClient.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONHTTPClient.h deleted file mode 120000 index f07aa339805..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONHTTPClient.h +++ /dev/null @@ -1 +0,0 @@ -../../../JSONModel/JSONModel/JSONModelNetworking/JSONHTTPClient.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONKeyMapper.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONKeyMapper.h deleted file mode 120000 index ad42377ed19..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONKeyMapper.h +++ /dev/null @@ -1 +0,0 @@ -../../../JSONModel/JSONModel/JSONModelTransformations/JSONKeyMapper.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONModel+networking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONModel+networking.h deleted file mode 120000 index b2109ddc067..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONModel+networking.h +++ /dev/null @@ -1 +0,0 @@ -../../../JSONModel/JSONModel/JSONModelNetworking/JSONModel+networking.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONModel.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONModel.h deleted file mode 120000 index 06a87feab9b..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONModel.h +++ /dev/null @@ -1 +0,0 @@ -../../../JSONModel/JSONModel/JSONModel/JSONModel.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONModelArray.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONModelArray.h deleted file mode 120000 index 3769776cbe6..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONModelArray.h +++ /dev/null @@ -1 +0,0 @@ -../../../JSONModel/JSONModel/JSONModel/JSONModelArray.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONModelClassProperty.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONModelClassProperty.h deleted file mode 120000 index faee5d5bfe0..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONModelClassProperty.h +++ /dev/null @@ -1 +0,0 @@ -../../../JSONModel/JSONModel/JSONModel/JSONModelClassProperty.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONModelError.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONModelError.h deleted file mode 120000 index 476fbdd25c3..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONModelError.h +++ /dev/null @@ -1 +0,0 @@ -../../../JSONModel/JSONModel/JSONModel/JSONModelError.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONModelLib.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONModelLib.h deleted file mode 120000 index ae3423a3289..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONModelLib.h +++ /dev/null @@ -1 +0,0 @@ -../../../JSONModel/JSONModel/JSONModelLib.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONValueTransformer.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONValueTransformer.h deleted file mode 120000 index 4517ac33392..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/JSONValueTransformer.h +++ /dev/null @@ -1 +0,0 @@ -../../../JSONModel/JSONModel/JSONModelTransformations/JSONValueTransformer.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/NSArray+JSONModel.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/NSArray+JSONModel.h deleted file mode 120000 index b396c93dfbe..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/JSONModel/NSArray+JSONModel.h +++ /dev/null @@ -1 +0,0 @@ -../../../JSONModel/JSONModel/JSONModelCategories/NSArray+JSONModel.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTCallSite.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTCallSite.h deleted file mode 120000 index dbb535a6021..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTCallSite.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SPTCallSite.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTCompiledExample.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTCompiledExample.h deleted file mode 120000 index 659770480c5..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTCompiledExample.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SPTCompiledExample.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTExample.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTExample.h deleted file mode 120000 index 79a18d4c5e1..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTExample.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SPTExample.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTExampleGroup.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTExampleGroup.h deleted file mode 120000 index 1effac57bfb..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTExampleGroup.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SPTExampleGroup.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTExcludeGlobalBeforeAfterEach.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTExcludeGlobalBeforeAfterEach.h deleted file mode 120000 index 64df734234a..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTExcludeGlobalBeforeAfterEach.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SPTExcludeGlobalBeforeAfterEach.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTGlobalBeforeAfterEach.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTGlobalBeforeAfterEach.h deleted file mode 120000 index 7f83b65ff3d..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTGlobalBeforeAfterEach.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SPTGlobalBeforeAfterEach.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTSharedExampleGroups.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTSharedExampleGroups.h deleted file mode 120000 index 579d360e639..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTSharedExampleGroups.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SPTSharedExampleGroups.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTSpec.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTSpec.h deleted file mode 120000 index 3b1679ae8c1..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTSpec.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SPTSpec.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTTestSuite.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTTestSuite.h deleted file mode 120000 index 2f607e468cc..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SPTTestSuite.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SPTTestSuite.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/Specta.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/Specta.h deleted file mode 120000 index 111c968e99b..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/Specta.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/Specta.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SpectaDSL.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SpectaDSL.h deleted file mode 120000 index fd1ad375682..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SpectaDSL.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SpectaDSL.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SpectaTypes.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SpectaTypes.h deleted file mode 120000 index 9428b13249f..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SpectaTypes.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SpectaTypes.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SpectaUtility.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SpectaUtility.h deleted file mode 120000 index 576248091bd..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/SpectaUtility.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/SpectaUtility.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/XCTest+Private.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/XCTest+Private.h deleted file mode 120000 index bb4a8e02612..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/XCTest+Private.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/XCTest+Private.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/XCTestCase+Specta.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/XCTestCase+Specta.h deleted file mode 120000 index 95f58cccde8..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/Specta/XCTestCase+Specta.h +++ /dev/null @@ -1 +0,0 @@ -../../../Specta/Specta/Specta/XCTestCase+Specta.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/JSONValueTransformer+ISO8601.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/JSONValueTransformer+ISO8601.h deleted file mode 120000 index 3d3793de6d2..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/JSONValueTransformer+ISO8601.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/JSONValueTransformer+ISO8601.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGApiClient.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGApiClient.h deleted file mode 120000 index 18a025dde73..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGApiClient.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGApiClient.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGCategory.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGCategory.h deleted file mode 120000 index edb0ca0ccf9..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGCategory.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGCategory.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGConfiguration.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGConfiguration.h deleted file mode 120000 index 1a9e71d1043..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGConfiguration.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGConfiguration.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGFile.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGFile.h deleted file mode 120000 index 36276ef6196..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGFile.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGFile.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGJSONRequestSerializer.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGJSONRequestSerializer.h deleted file mode 120000 index 73b578f883d..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGJSONRequestSerializer.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGJSONRequestSerializer.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGJSONResponseSerializer.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGJSONResponseSerializer.h deleted file mode 120000 index 741bf952369..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGJSONResponseSerializer.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGJSONResponseSerializer.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGMyresult.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGMyresult.h deleted file mode 120000 index e5ca8eeea0b..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGMyresult.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGMyresult.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGMythingApi.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGMythingApi.h deleted file mode 120000 index 1e182c9b1ea..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGMythingApi.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGMythingApi.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGObject.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGObject.h deleted file mode 120000 index 8ccdcf8160f..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGObject.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGObject.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGOrder.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGOrder.h deleted file mode 120000 index 1c8de308c64..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGOrder.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGOrder.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGPet.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGPet.h deleted file mode 120000 index 6492918f32e..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGPet.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGPet.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGPetApi.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGPetApi.h deleted file mode 120000 index 6820750d235..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGPetApi.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGPetApi.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGQueryParamCollection.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGQueryParamCollection.h deleted file mode 120000 index f5153362a77..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGQueryParamCollection.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGQueryParamCollection.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGStoreApi.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGStoreApi.h deleted file mode 120000 index d3f01868cfa..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGStoreApi.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGStoreApi.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGTag.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGTag.h deleted file mode 120000 index 1880256cb36..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGTag.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGTag.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGUser.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGUser.h deleted file mode 120000 index 7f88cdc4511..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGUser.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGUser.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGUserApi.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGUserApi.h deleted file mode 120000 index bd97f82eebf..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Headers/Public/SwaggerClient/SWGUserApi.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../SwaggerClient/SWGUserApi.h \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/ISO8601/ISO8601/ISO8601.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/ISO8601/ISO8601/ISO8601.h deleted file mode 100644 index fe5e6015b6d..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/ISO8601/ISO8601/ISO8601.h +++ /dev/null @@ -1,22 +0,0 @@ -// -// ISO8601.h -// ISO8601 -// -// Created by Sam Soffes on 7/30/14. -// Copyright (c) 2014 Sam Soffes. All rights reserved. -// - -#if __has_feature(modules) - @import Foundation; -#else - #import -#endif - -//! Project version number for ISO8601. -FOUNDATION_EXPORT double ISO8601VersionNumber; - -//! Project version string for ISO8601. -FOUNDATION_EXPORT const unsigned char ISO8601VersionString[]; - -#import -#import diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/ISO8601/ISO8601/ISO8601Serialization.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/ISO8601/ISO8601/ISO8601Serialization.h deleted file mode 100644 index 5980bd77758..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/ISO8601/ISO8601/ISO8601Serialization.h +++ /dev/null @@ -1,40 +0,0 @@ -// -// ISO8601Serialization.h -// ISO8601 -// -// Created by Sam Soffes on 7/30/14. -// Copyright (c) 2014 Sam Soffes. All rights reserved. -// - -#if __has_feature(modules) - @import Foundation; -#else - #import -#endif - -@interface ISO8601Serialization : NSObject - -#pragma mark - Reading - -/** - Create date components from an ISO8601 string. - - @param string An ISO8601 string. - - @return An object containing the date components for a given ISO8601 string. - */ -+ (NSDateComponents *)dateComponentsForString:(NSString *)string; - - -#pragma mark - Writing - -/** - Create an ISO8601 string from date components. - - @param components Date components to use. - - @return A string containing the date components as an ISO8601 string. - */ -+ (NSString *)stringForDateComponents:(NSDateComponents *)components; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/ISO8601/ISO8601/ISO8601Serialization.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/ISO8601/ISO8601/ISO8601Serialization.m deleted file mode 100644 index a129fb207ff..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/ISO8601/ISO8601/ISO8601Serialization.m +++ /dev/null @@ -1,152 +0,0 @@ -// -// ISO8601Serialization.m -// ISO8601 -// -// Created by Sam Soffes on 7/30/14. -// Copyright (c) 2014 Sam Soffes. All rights reserved. -// - -#import "ISO8601Serialization.h" - -@implementation ISO8601Serialization - -+ (NSDateComponents *)dateComponentsForString:(NSString *)string { - NSScanner *scanner = [[NSScanner alloc] initWithString:string]; - scanner.charactersToBeSkipped = nil; - - NSDateComponents *dateComponents = [[NSDateComponents alloc] init]; - - // Year - NSInteger year; - if (![scanner scanInteger:&year]) { - return nil; - } - dateComponents.year = year; - - // Month - if (![scanner scanString:@"-" intoString:nil]) { - return dateComponents; - } - - NSInteger month; - if (![scanner scanInteger:&month]) { - return dateComponents; - } - dateComponents.month = month; - - // Day - if (![scanner scanString:@"-" intoString:nil]) { - return dateComponents; - } - - NSInteger day; - if (![scanner scanInteger:&day]) { - return dateComponents; - } - dateComponents.day = day; - - // Time - if (![scanner scanCharactersFromSet:[NSCharacterSet characterSetWithCharactersInString:@"T "] intoString:nil]) { - return dateComponents; - } - - // Hour - NSInteger hour; - if (![scanner scanInteger:&hour]) { - return dateComponents; - } - dateComponents.hour = hour; - - // Minute - if (![scanner scanString:@":" intoString:nil]) { - return dateComponents; - } - - NSInteger minute; - if (![scanner scanInteger:&minute]) { - return dateComponents; - } - dateComponents.minute = minute; - - // Second - NSUInteger scannerLocation = scanner.scanLocation; - if ([scanner scanString:@":" intoString:nil]) { - NSInteger second; - if (![scanner scanInteger:&second]) { - return dateComponents; - } - dateComponents.second = second; - } else { - scanner.scanLocation = scannerLocation; - } - - // Zulu - scannerLocation = scanner.scanLocation; - [scanner scanUpToString:@"Z" intoString:nil]; - if ([scanner scanString:@"Z" intoString:nil]) { - // Z stands for the Zulu (Z in the NATO phonetic alphabet) time zone. UTC and the Zulu time - // zone are synonymous. - dateComponents.timeZone = [NSTimeZone timeZoneForSecondsFromGMT:0]; - return dateComponents; - } - - // Move back to end of time - scanner.scanLocation = scannerLocation; - - // Look for offset - NSCharacterSet *signs = [NSCharacterSet characterSetWithCharactersInString:@"+-"]; - [scanner scanUpToCharactersFromSet:signs intoString:nil]; - NSString *sign; - if (![scanner scanCharactersFromSet:signs intoString:&sign]) { - return dateComponents; - } - - // Offset hour - NSInteger timeZoneOffset = 0; - NSInteger timeZoneOffsetHour = 0; - NSInteger timeZoneOffsetMinute = 0; - if (![scanner scanInteger:&timeZoneOffsetHour]) { - return dateComponents; - } - - // Check for colon - BOOL colonExists = [scanner scanString:@":" intoString:nil]; - if (!colonExists && timeZoneOffsetHour > 14) { - timeZoneOffsetMinute = timeZoneOffsetHour % 100; - timeZoneOffsetHour = floor(timeZoneOffsetHour / 100); - } else { - // Offset minute - [scanner scanInteger:&timeZoneOffsetMinute]; - } - - timeZoneOffset = (timeZoneOffsetHour * 60 * 60) + (timeZoneOffsetMinute * 60); - dateComponents.timeZone = [NSTimeZone timeZoneForSecondsFromGMT:timeZoneOffset * ([sign isEqualToString:@"-"] ? -1 : 1)]; - - return dateComponents; -} - - -+ (NSString *)stringForDateComponents:(NSDateComponents *)components { - NSString *string = [[NSString alloc] initWithFormat:@"%04li-%02i-%02iT%02i:%02i:%02i", (long)components.year, - (int)components.month, (int)components.day, (int)components.hour, (int)components.minute, - (int)components.second]; - - NSTimeZone *timeZone = components.timeZone; - if (!timeZone) { - return string; - } - - if (timeZone.secondsFromGMT != 0) { - NSInteger hoursOffset = timeZone.secondsFromGMT / 3600; - - // TODO: Assuming whole hour offsets at the moment - NSUInteger secondsOffset = 0; - - NSString *sign = (hoursOffset >= 0) ? @"+" : @"-"; - return [string stringByAppendingFormat:@"%@%02i:%02i", sign, abs((int)hoursOffset), (int)secondsOffset]; - } - - return [string stringByAppendingString:@"Z"]; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/ISO8601/ISO8601/NSDate+ISO8601.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/ISO8601/ISO8601/NSDate+ISO8601.h deleted file mode 100644 index d26c8271f54..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/ISO8601/ISO8601/NSDate+ISO8601.h +++ /dev/null @@ -1,65 +0,0 @@ -// -// NSDate+ISO8601.h -// ISO8601 -// -// Created by Sam Soffes on 7/30/14. -// Copyright (c) 2014 Sam Soffes. All rights reserved. -// - -#if __has_feature(modules) - @import Foundation; -#else - #import -#endif - -@interface NSDate (ISO8601) - -#pragma mark - Simple - -/** - Returns a new date represented by an ISO8601 string. - - @param string An ISO8601 string. - - @return A date represented by the ISO8601 string. - */ -+ (NSDate *)dateWithISO8601String:(NSString *)string; - -/** - Returns a string representation of the receiver in ISO8601 format. - - @return A string representation of the receiver in ISO8601 format in the current calendar's time - zone. - */ -- (NSString *)ISO8601String; - - -#pragma mark - Advanced - -/** - Returns a new date represented by an ISO8601 string as well as the time zone. - - @param string An ISO8601 string. - - @param timeZone Upon return, contains the time zone or `nil` if none was specified. - - @param calendar The calender to use for converting the date to date components. If `nil` is specified, the current - calendar is used. - - @return A date represented by the ISO8601 string. - */ -+ (NSDate *)dateWithISO8601String:(NSString *)string timeZone:(inout NSTimeZone **)timeZone usingCalendar:(NSCalendar *)calendar; - -/** - Returns a string representation of the receiver in ISO8601 format. - - @param timeZone The time zone to use. If `nil` is specified, UTC will be used. - - @param calendar The calender to use for converting the date to date components. If `nil` is specified, the current - calendar is used. - - @return A string representation of the receiver in ISO8601 format in `timeZone`. - */ -- (NSString *)ISO8601StringWithTimeZone:(NSTimeZone *)timeZone usingCalendar:(NSCalendar *)calendar; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/ISO8601/ISO8601/NSDate+ISO8601.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/ISO8601/ISO8601/NSDate+ISO8601.m deleted file mode 100644 index 32789e9dc64..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/ISO8601/ISO8601/NSDate+ISO8601.m +++ /dev/null @@ -1,69 +0,0 @@ -// -// NSDate+ISO8601.m -// ISO8601 -// -// Created by Sam Soffes on 7/30/14. -// Copyright (c) 2014 Sam Soffes. All rights reserved. -// - -#import "NSDate+ISO8601.h" -#import "ISO8601Serialization.h" - -@implementation NSDate (ISO8601) - -#pragma mark - Reading - -+ (NSDate *)dateWithISO8601String:(NSString *)string { - return [self dateWithISO8601String:string timeZone:nil usingCalendar:nil]; -} - - -+ (NSDate *)dateWithISO8601String:(NSString *)string timeZone:(inout NSTimeZone *__autoreleasing *)timeZone usingCalendar:(NSCalendar *)calendar { - NSDateComponents *components = [ISO8601Serialization dateComponentsForString:string]; - if (components == nil) { - return nil; - } - - if (!calendar) { - calendar = [NSCalendar currentCalendar]; - } - - NSTimeZone *UTCTimeZone = [NSTimeZone timeZoneWithName:@"UTC"]; - - if (timeZone) { - *timeZone = components.timeZone ? components.timeZone : UTCTimeZone; - } - - // Use a UTC calendar to generate the date - calendar.timeZone = UTCTimeZone; - - return [calendar dateFromComponents:components]; -} - - -#pragma mark - Writing - -- (NSString *)ISO8601String { - return [self ISO8601StringWithTimeZone:[NSTimeZone localTimeZone] usingCalendar:nil]; -} - - -- (NSString *)ISO8601StringWithTimeZone:(NSTimeZone *)timeZone usingCalendar:(NSCalendar *)calendar { - if (!calendar) { - calendar = [NSCalendar currentCalendar]; - } - - if (timeZone) { - calendar.timeZone = timeZone; - } else { - calendar.timeZone = [NSTimeZone timeZoneForSecondsFromGMT:0]; - } - - NSCalendarUnit units = (NSCalendarUnit)(NSCalendarUnitYear | NSCalendarUnitMonth | NSCalendarUnitDay | NSCalendarUnitHour | - NSCalendarUnitMinute | NSCalendarUnitSecond | NSCalendarUnitTimeZone); - - NSDateComponents *dateComponents = [calendar components:units fromDate:self]; - return [ISO8601Serialization stringForDateComponents:dateComponents]; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/ISO8601/LICENSE b/samples/client/petstore/objc/SwaggerClientTests/Pods/ISO8601/LICENSE deleted file mode 100644 index e333978ed9f..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/ISO8601/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2014 Sam Soffes, http://soff.es - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/ISO8601/Readme.markdown b/samples/client/petstore/objc/SwaggerClientTests/Pods/ISO8601/Readme.markdown deleted file mode 100644 index 2aeedd1683f..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/ISO8601/Readme.markdown +++ /dev/null @@ -1,73 +0,0 @@ -# ISO8601 - -[![Version](https://img.shields.io/github/release/soffes/ISO8601.svg)](https://github.com/soffes/ISO8601/releases) [![Build Status](https://travis-ci.org/soffes/ISO8601.svg?branch=master)](https://travis-ci.org/soffes/ISO8601) [![Coverage Status](https://coveralls.io/repos/soffes/ISO8601/badge.svg?branch=master)](https://coveralls.io/r/soffes/ISO8601?branch=master) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![CocoaPods compatible](https://img.shields.io/cocoapods/v/ISO8601.svg)](https://cocoapods.org/pods/ISO8601) - -Fast [ISO8601](http://en.wikipedia.org/wiki/ISO8601) date parser and writer for iOS & Mac. - - -## Installation - -[Carthage](https://github.com/carthage/carthage) is the recommended way to install ISO8601. Add the following to your Cartfile: - -``` ruby -github "soffes/ISO8601" -``` - -You can also install with [CocoaPods](https://cocoapods.org): - -``` ruby -pod 'ISO8601' -``` - -For manual installation, I recommend adding the project as a subproject to your project or workspace and adding the framework as a target dependency. - - -## Usage - -First, import the appropriate header: - -``` objc -@import ISO8601; // Use #import if you're using CocoaPods -``` - -This library uses `NSDateComponents` for reading and writing. Here's an example: - -``` objc -// Reading -NSDateComponents *dateComponents = [ISO8601Serialization dateComponentsForString:@"1999-05-19T23:55:21+09:00"]; - -// Writing -NSString *ISO8601String = [ISO8601Serialization stringForDateComponents:dateComponents]; -``` - -There is an `NSDate` category for convenient conversion: - -``` objc -// Reading -NSDate *date = [NSDate dateWithISO8601String:@"1999-05-19T23:55:21+09:00"]; - -// Writing -NSString *ISO8601String = [date ISO8601String]; -``` - -If you require more control over conversion or need to know the input time zone, you can use the advanced methods the category provides: - - -``` objc -// Reading -NSTimeZone *timeZone; -NSDate *date = [NSDate dateWithISO8601String:@"1999-05-19T23:55:21+09:00" timeZone:&timeZone usingCalendar:calendarOrNil]; - -// Writing -NSString *ISO8601String = [date ISO8601StringWithTimeZone:timeZoneOrNil usingCalendar:calendarOrNil]; -``` - -## Notes - -`NSDateComponents` is the core data structure because `NSDate` doesn't perserve time zone information well. - -It's worth noting that a value in the `NSDateComponents` will be `nil` if it is not in the input string. For example, `1999-05-19T23:55:21` will have a `nil` time zone, but `1999-05-19T23:55:21+00:00` and `1999-05-19T23:55:21Z` will have a UTC time zone. - -The `+[NSDate dateWithISO8601String:]` category will always return a UTC date. If you want a date in another time zone, you should use `+[NSDate ISO8601StringWithTimeZone:usingCalendar:]` (you may pass `nil` for the calendar parameter to use the current calendar). - -Enjoy. diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModel.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModel.h deleted file mode 100644 index 56f4cfa369b..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModel.h +++ /dev/null @@ -1,334 +0,0 @@ -// -// JSONModel.h -// -// @version 1.0.2 -// @author Marin Todorov, http://www.touch-code-magazine.com -// - -// Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -// This code is distributed under the terms and conditions of the MIT license. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -// The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - -#import - -#import "JSONModelError.h" -#import "JSONValueTransformer.h" -#import "JSONKeyMapper.h" - -///////////////////////////////////////////////////////////////////////////////////////////// -#if TARGET_IPHONE_SIMULATOR -#define JMLog( s, ... ) NSLog( @"[%@:%d] %@", [[NSString stringWithUTF8String:__FILE__] \ -lastPathComponent], __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__] ) -#else -#define JMLog( s, ... ) -#endif -///////////////////////////////////////////////////////////////////////////////////////////// - -#pragma mark - Property Protocols -/** - * Protocol for defining properties in a JSON Model class that should not be considered at all - * neither while importing nor when exporting JSON. - * - * @property (strong, nonatomic) NSString<Ignore>* propertyName; - * - */ -@protocol Ignore -@end - -/** - * Protocol for defining optional properties in a JSON Model class. Use like below to define - * model properties that are not required to have values in the JSON input: - * - * @property (strong, nonatomic) NSString<Optional>* propertyName; - * - */ -@protocol Optional -@end - -/** - * Protocol for defining index properties in a JSON Model class. Use like below to define - * model properties that are considered the Model's identifier (id). - * - * @property (strong, nonatomic) NSString<Index>* propertyName; - * - */ -@protocol Index -@end - -/** - * Make all objects Optional compatible to avoid compiler warnings - */ -@interface NSObject(JSONModelPropertyCompatibility) -@end - -/** - * ConvertOnDemand enables lazy model initialization for NSArrays of models - * - * @property (strong, nonatomic) NSArray<JSONModel, ConvertOnDemand>* propertyName; - */ -@protocol ConvertOnDemand -@end - -/** - * Make all arrays ConvertOnDemand compatible to avoid compiler warnings - */ -@interface NSArray(JSONModelPropertyCompatibility) -@end - -///////////////////////////////////////////////////////////////////////////////////////////// -#pragma mark - JSONModel protocol -/** - * A protocol describing an abstract JSONModel class - * JSONModel conforms to this protocol, so it can use itself abstractly - */ -@protocol AbstractJSONModelProtocol - -@required - /** - * All JSONModel classes should implement initWithDictionary: - * - * For most classes the default initWithDictionary: inherited from JSONModel itself - * should suffice, but developers have the option ot also overwrite it if needed. - * - * @param dict a dictionary holding JSON objects, to be imported in the model. - * @param err an error or NULL - */ - -(instancetype)initWithDictionary:(NSDictionary*)dict error:(NSError**)err; - - -/** - * All JSONModel classes should implement initWithData:error: - * - * For most classes the default initWithData: inherited from JSONModel itself - * should suffice, but developers have the option ot also overwrite it if needed. - * - * @param data representing a JSON response (usually fetched from web), to be imported in the model. - * @param err an error or NULL - */ --(instancetype)initWithData:(NSData*)data error:(NSError**)error; - -/** - * All JSONModel classes should be able to export themselves as a dictionary of - * JSON compliant objects. - * - * For most classes the inherited from JSONModel default toDictionary implementation - * should suffice. - * - * @return NSDictionary dictionary of JSON compliant objects - * @exception JSONModelTypeNotAllowedException thrown when one of your model's custom class properties - * does not have matching transformer method in an JSONValueTransformer. - */ - -(NSDictionary*)toDictionary; - - /** - * Export a model class to a dictionary, including only given properties - * - * @param propertyNames the properties to export; if nil, all properties exported - * @return NSDictionary dictionary of JSON compliant objects - * @exception JSONModelTypeNotAllowedException thrown when one of your model's custom class properties - * does not have matching transformer method in an JSONValueTransformer. - */ - -(NSDictionary*)toDictionaryWithKeys:(NSArray*)propertyNames; -@end - -///////////////////////////////////////////////////////////////////////////////////////////// -#pragma mark - JSONModel interface -/** - * The JSONModel is an abstract model class, you should not instantiate it directly, - * as it does not have any properties, and therefore cannot serve as a data model. - * Instead you should subclass it, and define the properties you want your data model - * to have as properties of your own class. - */ -@interface JSONModel : NSObject - -/** @name Creating and initializing models */ - - /** - * Create a new model instance and initialize it with the JSON from a text parameter. The method assumes UTF8 encoded input text. - * @param string JSON text data - * @param err an initialization error or nil - * @exception JSONModelTypeNotAllowedException thrown when unsported type is found in the incoming JSON, - * or a property type in your model is not supported by JSONValueTransformer and its categories - * @see initWithString:usingEncoding:error: for use of custom text encodings - */ - -(instancetype)initWithString:(NSString*)string error:(JSONModelError**)err; - - /** - * Create a new model instance and initialize it with the JSON from a text parameter using the given encoding. - * @param string JSON text data - * @param encoding the text encoding to use when parsing the string (see NSStringEncoding) - * @param err an initialization error or nil - * @exception JSONModelTypeNotAllowedException thrown when unsported type is found in the incoming JSON, - * or a property type in your model is not supported by JSONValueTransformer and its categories - */ - -(instancetype)initWithString:(NSString *)string usingEncoding:(NSStringEncoding)encoding error:(JSONModelError**)err; - - -(instancetype)initWithDictionary:(NSDictionary*)dict error:(NSError **)err; - - -(instancetype)initWithData:(NSData *)data error:(NSError **)error; - -/** @name Exporting model contents */ - - /** - * Export the whole object to a dictionary - * @return dictionary containing the data model - */ - -(NSDictionary*)toDictionary; - - /** - * Export the whole object to a JSON data text string - * @return JSON text describing the data model - */ - -(NSString*)toJSONString; - - /** - * Export the whole object to a JSON data text string - * @return JSON text data describing the data model - */ - -(NSData*)toJSONData; - - /** - * Export the specified properties of the object to a dictionary - * @param propertyNames the properties to export; if nil, all properties exported - * @return dictionary containing the data model - */ - -(NSDictionary*)toDictionaryWithKeys:(NSArray*)propertyNames; - - /** - * Export the specified properties of the object to a JSON data text string - * @param propertyNames the properties to export; if nil, all properties exported - * @return JSON text describing the data model - */ - -(NSString*)toJSONStringWithKeys:(NSArray*)propertyNames; - - /** - * Export the specified properties of the object to a JSON data text string - * @param propertyNames the properties to export; if nil, all properties exported - * @return JSON text data describing the data model - */ - -(NSData*)toJSONDataWithKeys:(NSArray*)propertyNames; - -/** @name Batch methods */ - - /** - * If you have a list of dictionaries in a JSON feed, you can use this method to create an NSArray - * of model objects. Handy when importing JSON data lists. - * This method will loop over the input list and initialize a data model for every dictionary in the list. - * - * @param array list of dictionaries to be imported as models - * @return list of initialized data model objects - * @exception JSONModelTypeNotAllowedException thrown when unsported type is found in the incoming JSON, - * or a property type in your model is not supported by JSONValueTransformer and its categories - * @exception JSONModelInvalidDataException thrown when the input data does not include all required keys - * @see arrayOfDictionariesFromModels: - */ - +(NSMutableArray*)arrayOfModelsFromDictionaries:(NSArray*)array; - - +(NSMutableArray*)arrayOfModelsFromDictionaries:(NSArray*)array error:(NSError**)err; - - +(NSMutableArray*)arrayOfModelsFromData:(NSData*)data error:(NSError**)err; - - /** - * If you have an NSArray of data model objects, this method takes it in and outputs a list of the - * matching dictionaries. This method does the opposite of arrayOfObjectsFromDictionaries: - * @param array list of JSONModel objects - * @return a list of NSDictionary objects - * @exception JSONModelTypeNotAllowedException thrown when unsported type is found in the incoming JSON, - * or a property type in your model is not supported by JSONValueTransformer and its categories - * @see arrayOfModelsFromDictionaries: - */ - +(NSMutableArray*)arrayOfDictionariesFromModels:(NSArray*)array; - - - -/** @name Comparing models */ - - /** - * The name of the model's property, which is considered the model's unique identifier. - * You can define Index property by using the Index protocol: - * @property (strong, nonatomic) NSString<Index>* id; - */ - -(NSString*)indexPropertyName; - - /** - * Overriden NSObject method to compare model objects. Compares the <Index> property of the two models, - * if an index property is defined. - * @param object a JSONModel instance to compare to for equality - */ - -(BOOL)isEqual:(id)object; - - /** - * Comparision method, which uses the defined <Index> property of the two models, to compare them. - * If there isn't an index property throws an exception. If the Index property does not have a compare: method - * also throws an exception. NSString and NSNumber have compare: methods, and in case the Index property is - * a another custom class, the programmer should create a custom compare: method then. - * @param object a JSONModel instance to compare to - */ - -(NSComparisonResult)compare:(id)object; - -/** @name Validation */ - - /** - * Overwrite the validate method in your own models if you need to perform some custom validation over the model data. - * This method gets called at the very end of the JSONModel initializer, thus the model is in the state that you would - * get it back when initialzed. Check the values of any property that needs to be validated and if any invalid values - * are encountered return NO and set the error parameter to an NSError object. If the model is valid return YES. - * - * NB: Only setting the error parameter is not enough to fail the validation, you also need to return a NO value. - * - * @param error a pointer to an NSError object, to pass back an error if needed - * @return a BOOL result, showing whether the model data validates or not. You can use the convenience method - * [JSONModelError errorModelIsInvalid] to set the NSError param if the data fails your custom validation - */ --(BOOL)validate:(NSError**)error; - -/** @name Key mapping */ - /** - * Overwrite in your models if your property names don't match your JSON key names. - * Lookup JSONKeyMapper docs for more details. - */ -+(JSONKeyMapper*)keyMapper; - -/** - * Sets a key mapper which affects ALL the models in your project. Use this if you need only one mapper to work - * with your API. For example if you are using the [JSONKeyMapper mapperFromUnderscoreCaseToCamelCase] it is more - * likely that you will need to use it with ALL of your models. - * NB: Custom key mappers take precendence over the global key mapper. - * @param globalKeyMapper a key mapper to apply to all models in your project. - * - * Lookup JSONKeyMapper docs for more details. - */ -+(void)setGlobalKeyMapper:(JSONKeyMapper*)globalKeyMapper; - -/** - * Indicates whether the property with the given name is Optional. - * To have a model with all of its properties being Optional just return YES. - * This method returns by default NO, since the default behaviour is to have all properties required. - * @param propertyName the name of the property - * @return a BOOL result indicating whether the property is optional - */ -+(BOOL)propertyIsOptional:(NSString*)propertyName; - -/** - * Indicates whether the property with the given name is Ignored. - * To have a model with all of its properties being Ignored just return YES. - * This method returns by default NO, since the default behaviour is to have all properties required. - * @param propertyName the name of the property - * @return a BOOL result indicating whether the property is ignored - */ -+(BOOL)propertyIsIgnored:(NSString*)propertyName; - -/** - * Merges values from the given dictionary into the model instance. - * @param dict dictionary with values - * @param useKeyMapping if YES the method will use the model's key mapper and the global key mapper, if NO - * it'll just try to match the dictionary keys to the model's properties - */ --(void)mergeFromDictionary:(NSDictionary*)dict useKeyMapping:(BOOL)useKeyMapping; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModel.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModel.m deleted file mode 100644 index 571af3121af..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModel.m +++ /dev/null @@ -1,1309 +0,0 @@ -// -// JSONModel.m -// -// @version 1.0.2 -// @author Marin Todorov, http://www.touch-code-magazine.com -// - -// Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -// This code is distributed under the terms and conditions of the MIT license. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -// The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - -#if !__has_feature(objc_arc) -#error The JSONMOdel framework is ARC only, you can enable ARC on per file basis. -#endif - - -#import -#import - - -#import "JSONModel.h" -#import "JSONModelClassProperty.h" -#import "JSONModelArray.h" - -#pragma mark - associated objects names -static const char * kMapperObjectKey; -static const char * kClassPropertiesKey; -static const char * kClassRequiredPropertyNamesKey; -static const char * kIndexPropertyNameKey; - -#pragma mark - class static variables -static NSArray* allowedJSONTypes = nil; -static NSArray* allowedPrimitiveTypes = nil; -static JSONValueTransformer* valueTransformer = nil; -static Class JSONModelClass = NULL; - -#pragma mark - model cache -static JSONKeyMapper* globalKeyMapper = nil; - -#pragma mark - JSONModel implementation -@implementation JSONModel -{ - NSString* _description; -} - -#pragma mark - initialization methods - -+(void)load -{ - static dispatch_once_t once; - dispatch_once(&once, ^{ - // initialize all class static objects, - // which are common for ALL JSONModel subclasses - - @autoreleasepool { - allowedJSONTypes = @[ - [NSString class], [NSNumber class], [NSDecimalNumber class], [NSArray class], [NSDictionary class], [NSNull class], //immutable JSON classes - [NSMutableString class], [NSMutableArray class], [NSMutableDictionary class] //mutable JSON classes - ]; - - allowedPrimitiveTypes = @[ - @"BOOL", @"float", @"int", @"long", @"double", @"short", - //and some famous aliases - @"NSInteger", @"NSUInteger", - @"Block" - ]; - - valueTransformer = [[JSONValueTransformer alloc] init]; - - // This is quite strange, but I found the test isSubclassOfClass: (line ~291) to fail if using [JSONModel class]. - // somewhat related: https://stackoverflow.com/questions/6524165/nsclassfromstring-vs-classnamednsstring - // //; seems to break the unit tests - - // Using NSClassFromString instead of [JSONModel class], as this was breaking unit tests, see below - //http://stackoverflow.com/questions/21394919/xcode-5-unit-test-seeing-wrong-class - JSONModelClass = NSClassFromString(NSStringFromClass(self)); - } - }); -} - --(void)__setup__ -{ - //if first instance of this model, generate the property list - if (!objc_getAssociatedObject(self.class, &kClassPropertiesKey)) { - [self __inspectProperties]; - } - - //if there's a custom key mapper, store it in the associated object - id mapper = [[self class] keyMapper]; - if ( mapper && !objc_getAssociatedObject(self.class, &kMapperObjectKey) ) { - objc_setAssociatedObject( - self.class, - &kMapperObjectKey, - mapper, - OBJC_ASSOCIATION_RETAIN // This is atomic - ); - } -} - --(id)init -{ - self = [super init]; - if (self) { - //do initial class setup - [self __setup__]; - } - return self; -} - --(instancetype)initWithData:(NSData *)data error:(NSError *__autoreleasing *)err -{ - //check for nil input - if (!data) { - if (err) *err = [JSONModelError errorInputIsNil]; - return nil; - } - //read the json - JSONModelError* initError = nil; - id obj = [NSJSONSerialization JSONObjectWithData:data - options:kNilOptions - error:&initError]; - - if (initError) { - if (err) *err = [JSONModelError errorBadJSON]; - return nil; - } - - //init with dictionary - id objModel = [self initWithDictionary:obj error:&initError]; - if (initError && err) *err = initError; - return objModel; -} - --(id)initWithString:(NSString*)string error:(JSONModelError**)err -{ - JSONModelError* initError = nil; - id objModel = [self initWithString:string usingEncoding:NSUTF8StringEncoding error:&initError]; - if (initError && err) *err = initError; - return objModel; -} - --(id)initWithString:(NSString *)string usingEncoding:(NSStringEncoding)encoding error:(JSONModelError**)err -{ - //check for nil input - if (!string) { - if (err) *err = [JSONModelError errorInputIsNil]; - return nil; - } - - JSONModelError* initError = nil; - id objModel = [self initWithData:[string dataUsingEncoding:encoding] error:&initError]; - if (initError && err) *err = initError; - return objModel; - -} - --(id)initWithDictionary:(NSDictionary*)dict error:(NSError**)err -{ - //check for nil input - if (!dict) { - if (err) *err = [JSONModelError errorInputIsNil]; - return nil; - } - - //invalid input, just create empty instance - if (![dict isKindOfClass:[NSDictionary class]]) { - if (err) *err = [JSONModelError errorInvalidDataWithMessage:@"Attempt to initialize JSONModel object using initWithDictionary:error: but the dictionary parameter was not an 'NSDictionary'."]; - return nil; - } - - //create a class instance - self = [self init]; - if (!self) { - - //super init didn't succeed - if (err) *err = [JSONModelError errorModelIsInvalid]; - return nil; - } - - //check incoming data structure - if (![self __doesDictionary:dict matchModelWithKeyMapper:self.__keyMapper error:err]) { - return nil; - } - - //import the data from a dictionary - if (![self __importDictionary:dict withKeyMapper:self.__keyMapper validation:YES error:err]) { - return nil; - } - - //run any custom model validation - if (![self validate:err]) { - return nil; - } - - //model is valid! yay! - return self; -} - --(JSONKeyMapper*)__keyMapper -{ - //get the model key mapper - return objc_getAssociatedObject(self.class, &kMapperObjectKey); -} - --(BOOL)__doesDictionary:(NSDictionary*)dict matchModelWithKeyMapper:(JSONKeyMapper*)keyMapper error:(NSError**)err -{ - //check if all required properties are present - NSArray* incomingKeysArray = [dict allKeys]; - NSMutableSet* requiredProperties = [self __requiredPropertyNames].mutableCopy; - NSSet* incomingKeys = [NSSet setWithArray: incomingKeysArray]; - - //transform the key names, if neccessary - if (keyMapper || globalKeyMapper) { - - NSMutableSet* transformedIncomingKeys = [NSMutableSet setWithCapacity: requiredProperties.count]; - NSString* transformedName = nil; - - //loop over the required properties list - for (JSONModelClassProperty* property in [self __properties__]) { - - transformedName = (keyMapper||globalKeyMapper) ? [self __mapString:property.name withKeyMapper:keyMapper importing:YES] : property.name; - - //chek if exists and if so, add to incoming keys - id value; - @try { - value = [dict valueForKeyPath:transformedName]; - } - @catch (NSException *exception) { - value = dict[transformedName]; - } - - if (value) { - [transformedIncomingKeys addObject: property.name]; - } - } - - //overwrite the raw incoming list with the mapped key names - incomingKeys = transformedIncomingKeys; - } - - //check for missing input keys - if (![requiredProperties isSubsetOfSet:incomingKeys]) { - - //get a list of the missing properties - [requiredProperties minusSet:incomingKeys]; - - //not all required properties are in - invalid input - JMLog(@"Incoming data was invalid [%@ initWithDictionary:]. Keys missing: %@", self.class, requiredProperties); - - if (err) *err = [JSONModelError errorInvalidDataWithMissingKeys:requiredProperties]; - return NO; - } - - //not needed anymore - incomingKeys= nil; - requiredProperties= nil; - - return YES; -} - --(NSString*)__mapString:(NSString*)string withKeyMapper:(JSONKeyMapper*)keyMapper importing:(BOOL)importing -{ - if (keyMapper) { - //custom mapper - NSString* mappedName = [keyMapper convertValue:string isImportingToModel:importing]; - if (globalKeyMapper && [mappedName isEqualToString: string]) { - mappedName = [globalKeyMapper convertValue:string isImportingToModel:importing]; - } - string = mappedName; - } else if (globalKeyMapper) { - //global keymapper - string = [globalKeyMapper convertValue:string isImportingToModel:importing]; - } - - return string; -} - --(BOOL)__importDictionary:(NSDictionary*)dict withKeyMapper:(JSONKeyMapper*)keyMapper validation:(BOOL)validation error:(NSError**)err -{ - //loop over the incoming keys and set self's properties - for (JSONModelClassProperty* property in [self __properties__]) { - - //convert key name ot model keys, if a mapper is provided - NSString* jsonKeyPath = (keyMapper||globalKeyMapper) ? [self __mapString:property.name withKeyMapper:keyMapper importing:YES] : property.name; - //JMLog(@"keyPath: %@", jsonKeyPath); - - //general check for data type compliance - id jsonValue; - @try { - jsonValue = [dict valueForKeyPath: jsonKeyPath]; - } - @catch (NSException *exception) { - jsonValue = dict[jsonKeyPath]; - } - - //check for Optional properties - if (isNull(jsonValue)) { - //skip this property, continue with next property - if (property.isOptional || !validation) continue; - - if (err) { - //null value for required property - NSString* msg = [NSString stringWithFormat:@"Value of required model key %@ is null", property.name]; - JSONModelError* dataErr = [JSONModelError errorInvalidDataWithMessage:msg]; - *err = [dataErr errorByPrependingKeyPathComponent:property.name]; - } - return NO; - } - - Class jsonValueClass = [jsonValue class]; - BOOL isValueOfAllowedType = NO; - - for (Class allowedType in allowedJSONTypes) { - if ( [jsonValueClass isSubclassOfClass: allowedType] ) { - isValueOfAllowedType = YES; - break; - } - } - - if (isValueOfAllowedType==NO) { - //type not allowed - JMLog(@"Type %@ is not allowed in JSON.", NSStringFromClass(jsonValueClass)); - - if (err) { - NSString* msg = [NSString stringWithFormat:@"Type %@ is not allowed in JSON.", NSStringFromClass(jsonValueClass)]; - JSONModelError* dataErr = [JSONModelError errorInvalidDataWithMessage:msg]; - *err = [dataErr errorByPrependingKeyPathComponent:property.name]; - } - return NO; - } - - //check if there's matching property in the model - if (property) { - - // check for custom setter, than the model doesn't need to do any guessing - // how to read the property's value from JSON - if ([self __customSetValue:jsonValue forProperty:property]) { - //skip to next JSON key - continue; - }; - - // 0) handle primitives - if (property.type == nil && property.structName==nil) { - - //generic setter - if (jsonValue != [self valueForKey:property.name]) { - [self setValue:jsonValue forKey: property.name]; - } - - //skip directly to the next key - continue; - } - - // 0.5) handle nils - if (isNull(jsonValue)) { - if ([self valueForKey:property.name] != nil) { - [self setValue:nil forKey: property.name]; - } - continue; - } - - - // 1) check if property is itself a JSONModel - if ([self __isJSONModelSubClass:property.type]) { - - //initialize the property's model, store it - JSONModelError* initErr = nil; - id value = [[property.type alloc] initWithDictionary: jsonValue error:&initErr]; - - if (!value) { - //skip this property, continue with next property - if (property.isOptional || !validation) continue; - - // Propagate the error, including the property name as the key-path component - if((err != nil) && (initErr != nil)) - { - *err = [initErr errorByPrependingKeyPathComponent:property.name]; - } - return NO; - } - if (![value isEqual:[self valueForKey:property.name]]) { - [self setValue:value forKey: property.name]; - } - - //for clarity, does the same without continue - continue; - - } else { - - // 2) check if there's a protocol to the property - // ) might or not be the case there's a built in transofrm for it - if (property.protocol) { - - //JMLog(@"proto: %@", p.protocol); - jsonValue = [self __transform:jsonValue forProperty:property error:err]; - if (!jsonValue) { - if ((err != nil) && (*err == nil)) { - NSString* msg = [NSString stringWithFormat:@"Failed to transform value, but no error was set during transformation. (%@)", property]; - JSONModelError* dataErr = [JSONModelError errorInvalidDataWithMessage:msg]; - *err = [dataErr errorByPrependingKeyPathComponent:property.name]; - } - return NO; - } - } - - // 3.1) handle matching standard JSON types - if (property.isStandardJSONType && [jsonValue isKindOfClass: property.type]) { - - //mutable properties - if (property.isMutable) { - jsonValue = [jsonValue mutableCopy]; - } - - //set the property value - if (![jsonValue isEqual:[self valueForKey:property.name]]) { - [self setValue:jsonValue forKey: property.name]; - } - continue; - } - - // 3.3) handle values to transform - if ( - (![jsonValue isKindOfClass:property.type] && !isNull(jsonValue)) - || - //the property is mutable - property.isMutable - || - //custom struct property - property.structName - ) { - - // searched around the web how to do this better - // but did not find any solution, maybe that's the best idea? (hardly) - Class sourceClass = [JSONValueTransformer classByResolvingClusterClasses:[jsonValue class]]; - - //JMLog(@"to type: [%@] from type: [%@] transformer: [%@]", p.type, sourceClass, selectorName); - - //build a method selector for the property and json object classes - NSString* selectorName = [NSString stringWithFormat:@"%@From%@:", - (property.structName? property.structName : property.type), //target name - sourceClass]; //source name - SEL selector = NSSelectorFromString(selectorName); - - //check for custom transformer - BOOL foundCustomTransformer = NO; - if ([valueTransformer respondsToSelector:selector]) { - foundCustomTransformer = YES; - } else { - //try for hidden custom transformer - selectorName = [NSString stringWithFormat:@"__%@",selectorName]; - selector = NSSelectorFromString(selectorName); - if ([valueTransformer respondsToSelector:selector]) { - foundCustomTransformer = YES; - } - } - - //check if there's a transformer with that name - if (foundCustomTransformer) { - - //it's OK, believe me... -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Warc-performSelector-leaks" - //transform the value - jsonValue = [valueTransformer performSelector:selector withObject:jsonValue]; -#pragma clang diagnostic pop - - if (![jsonValue isEqual:[self valueForKey:property.name]]) { - [self setValue:jsonValue forKey: property.name]; - } - - } else { - - // it's not a JSON data type, and there's no transformer for it - // if property type is not supported - that's a programmer mistaked -> exception - @throw [NSException exceptionWithName:@"Type not allowed" - reason:[NSString stringWithFormat:@"%@ type not supported for %@.%@", property.type, [self class], property.name] - userInfo:nil]; - return NO; - } - - } else { - // 3.4) handle "all other" cases (if any) - if (![jsonValue isEqual:[self valueForKey:property.name]]) { - [self setValue:jsonValue forKey: property.name]; - } - } - } - } - } - - return YES; -} - -#pragma mark - property inspection methods - --(BOOL)__isJSONModelSubClass:(Class)class -{ -// http://stackoverflow.com/questions/19883472/objc-nsobject-issubclassofclass-gives-incorrect-failure -#ifdef UNIT_TESTING - return [@"JSONModel" isEqualToString: NSStringFromClass([class superclass])]; -#else - return [class isSubclassOfClass:JSONModelClass]; -#endif -} - -//returns a set of the required keys for the model --(NSMutableSet*)__requiredPropertyNames -{ - //fetch the associated property names - NSMutableSet* classRequiredPropertyNames = objc_getAssociatedObject(self.class, &kClassRequiredPropertyNamesKey); - - if (!classRequiredPropertyNames) { - classRequiredPropertyNames = [NSMutableSet set]; - [[self __properties__] enumerateObjectsUsingBlock:^(JSONModelClassProperty* p, NSUInteger idx, BOOL *stop) { - if (!p.isOptional) [classRequiredPropertyNames addObject:p.name]; - }]; - - //persist the list - objc_setAssociatedObject( - self.class, - &kClassRequiredPropertyNamesKey, - classRequiredPropertyNames, - OBJC_ASSOCIATION_RETAIN // This is atomic - ); - } - return classRequiredPropertyNames; -} - -//returns a list of the model's properties --(NSArray*)__properties__ -{ - //fetch the associated object - NSDictionary* classProperties = objc_getAssociatedObject(self.class, &kClassPropertiesKey); - if (classProperties) return [classProperties allValues]; - - //if here, the class needs to inspect itself - [self __setup__]; - - //return the property list - classProperties = objc_getAssociatedObject(self.class, &kClassPropertiesKey); - return [classProperties allValues]; -} - -//inspects the class, get's a list of the class properties --(void)__inspectProperties -{ - //JMLog(@"Inspect class: %@", [self class]); - - NSMutableDictionary* propertyIndex = [NSMutableDictionary dictionary]; - - //temp variables for the loops - Class class = [self class]; - NSScanner* scanner = nil; - NSString* propertyType = nil; - - // inspect inherited properties up to the JSONModel class - while (class != [JSONModel class]) { - //JMLog(@"inspecting: %@", NSStringFromClass(class)); - - unsigned int propertyCount; - objc_property_t *properties = class_copyPropertyList(class, &propertyCount); - - //loop over the class properties - for (unsigned int i = 0; i < propertyCount; i++) { - - JSONModelClassProperty* p = [[JSONModelClassProperty alloc] init]; - - //get property name - objc_property_t property = properties[i]; - const char *propertyName = property_getName(property); - p.name = @(propertyName); - - //JMLog(@"property: %@", p.name); - - //get property attributes - const char *attrs = property_getAttributes(property); - NSString* propertyAttributes = @(attrs); - NSArray* attributeItems = [propertyAttributes componentsSeparatedByString:@","]; - - //ignore read-only properties - if ([attributeItems containsObject:@"R"]) { - continue; //to next property - } - - //check for 64b BOOLs - if ([propertyAttributes hasPrefix:@"Tc,"]) { - //mask BOOLs as structs so they can have custom convertors - p.structName = @"BOOL"; - } - - scanner = [NSScanner scannerWithString: propertyAttributes]; - - //JMLog(@"attr: %@", [NSString stringWithCString:attrs encoding:NSUTF8StringEncoding]); - [scanner scanUpToString:@"T" intoString: nil]; - [scanner scanString:@"T" intoString:nil]; - - //check if the property is an instance of a class - if ([scanner scanString:@"@\"" intoString: &propertyType]) { - - [scanner scanUpToCharactersFromSet:[NSCharacterSet characterSetWithCharactersInString:@"\"<"] - intoString:&propertyType]; - - //JMLog(@"type: %@", propertyClassName); - p.type = NSClassFromString(propertyType); - p.isMutable = ([propertyType rangeOfString:@"Mutable"].location != NSNotFound); - p.isStandardJSONType = [allowedJSONTypes containsObject:p.type]; - - //read through the property protocols - while ([scanner scanString:@"<" intoString:NULL]) { - - NSString* protocolName = nil; - - [scanner scanUpToString:@">" intoString: &protocolName]; - - if ([protocolName isEqualToString:@"Optional"]) { - p.isOptional = YES; - } else if([protocolName isEqualToString:@"Index"]) { - p.isIndex = YES; - objc_setAssociatedObject( - self.class, - &kIndexPropertyNameKey, - p.name, - OBJC_ASSOCIATION_RETAIN // This is atomic - ); - } else if([protocolName isEqualToString:@"ConvertOnDemand"]) { - p.convertsOnDemand = YES; - } else if([protocolName isEqualToString:@"Ignore"]) { - p = nil; - } else { - p.protocol = protocolName; - } - - [scanner scanString:@">" intoString:NULL]; - } - - } - //check if the property is a structure - else if ([scanner scanString:@"{" intoString: &propertyType]) { - [scanner scanCharactersFromSet:[NSCharacterSet alphanumericCharacterSet] - intoString:&propertyType]; - - p.isStandardJSONType = NO; - p.structName = propertyType; - - } - //the property must be a primitive - else { - - //the property contains a primitive data type - [scanner scanUpToCharactersFromSet:[NSCharacterSet characterSetWithCharactersInString:@","] - intoString:&propertyType]; - - //get the full name of the primitive type - propertyType = valueTransformer.primitivesNames[propertyType]; - - if (![allowedPrimitiveTypes containsObject:propertyType]) { - - //type not allowed - programmer mistaked -> exception - @throw [NSException exceptionWithName:@"JSONModelProperty type not allowed" - reason:[NSString stringWithFormat:@"Property type of %@.%@ is not supported by JSONModel.", self.class, p.name] - userInfo:nil]; - } - - } - - NSString *nsPropertyName = @(propertyName); - if([[self class] propertyIsOptional:nsPropertyName]){ - p.isOptional = YES; - } - - if([[self class] propertyIsIgnored:nsPropertyName]){ - p = nil; - } - - //few cases where JSONModel will ignore properties automatically - if ([propertyType isEqualToString:@"Block"]) { - p = nil; - } - - //add the property object to the temp index - if (p && ![propertyIndex objectForKey:p.name]) { - [propertyIndex setValue:p forKey:p.name]; - } - } - - free(properties); - - //ascend to the super of the class - //(will do that until it reaches the root class - JSONModel) - class = [class superclass]; - } - - //finally store the property index in the static property index - objc_setAssociatedObject( - self.class, - &kClassPropertiesKey, - [propertyIndex copy], - OBJC_ASSOCIATION_RETAIN // This is atomic - ); -} - -#pragma mark - built-in transformer methods -//few built-in transformations --(id)__transform:(id)value forProperty:(JSONModelClassProperty*)property error:(NSError**)err -{ - Class protocolClass = NSClassFromString(property.protocol); - if (!protocolClass) { - - //no other protocols on arrays and dictionaries - //except JSONModel classes - if ([value isKindOfClass:[NSArray class]]) { - @throw [NSException exceptionWithName:@"Bad property protocol declaration" - reason:[NSString stringWithFormat:@"<%@> is not allowed JSONModel property protocol, and not a JSONModel class.", property.protocol] - userInfo:nil]; - } - return value; - } - - //if the protocol is actually a JSONModel class - if ([self __isJSONModelSubClass:protocolClass]) { - - //check if it's a list of models - if ([property.type isSubclassOfClass:[NSArray class]]) { - - // Expecting an array, make sure 'value' is an array - if(![[value class] isSubclassOfClass:[NSArray class]]) - { - if(err != nil) - { - NSString* mismatch = [NSString stringWithFormat:@"Property '%@' is declared as NSArray<%@>* but the corresponding JSON value is not a JSON Array.", property.name, property.protocol]; - JSONModelError* typeErr = [JSONModelError errorInvalidDataWithTypeMismatch:mismatch]; - *err = [typeErr errorByPrependingKeyPathComponent:property.name]; - } - return nil; - } - - if (property.convertsOnDemand) { - //on demand conversion - value = [[JSONModelArray alloc] initWithArray:value modelClass:[protocolClass class]]; - - } else { - //one shot conversion - JSONModelError* arrayErr = nil; - value = [[protocolClass class] arrayOfModelsFromDictionaries:value error:&arrayErr]; - if((err != nil) && (arrayErr != nil)) - { - *err = [arrayErr errorByPrependingKeyPathComponent:property.name]; - return nil; - } - } - } - - //check if it's a dictionary of models - if ([property.type isSubclassOfClass:[NSDictionary class]]) { - - // Expecting a dictionary, make sure 'value' is a dictionary - if(![[value class] isSubclassOfClass:[NSDictionary class]]) - { - if(err != nil) - { - NSString* mismatch = [NSString stringWithFormat:@"Property '%@' is declared as NSDictionary<%@>* but the corresponding JSON value is not a JSON Object.", property.name, property.protocol]; - JSONModelError* typeErr = [JSONModelError errorInvalidDataWithTypeMismatch:mismatch]; - *err = [typeErr errorByPrependingKeyPathComponent:property.name]; - } - return nil; - } - - NSMutableDictionary* res = [NSMutableDictionary dictionary]; - - for (NSString* key in [value allKeys]) { - JSONModelError* initErr = nil; - id obj = [[[protocolClass class] alloc] initWithDictionary:value[key] error:&initErr]; - if (obj == nil) - { - // Propagate the error, including the property name as the key-path component - if((err != nil) && (initErr != nil)) - { - initErr = [initErr errorByPrependingKeyPathComponent:key]; - *err = [initErr errorByPrependingKeyPathComponent:property.name]; - } - return nil; - } - [res setValue:obj forKey:key]; - } - value = [NSDictionary dictionaryWithDictionary:res]; - } - } - - return value; -} - -//built-in reverse transormations (export to JSON compliant objects) --(id)__reverseTransform:(id)value forProperty:(JSONModelClassProperty*)property -{ - Class protocolClass = NSClassFromString(property.protocol); - if (!protocolClass) return value; - - //if the protocol is actually a JSONModel class - if ([self __isJSONModelSubClass:protocolClass]) { - - //check if should export list of dictionaries - if (property.type == [NSArray class] || property.type == [NSMutableArray class]) { - NSMutableArray* tempArray = [NSMutableArray arrayWithCapacity: [(NSArray*)value count] ]; - for (NSObject* model in (NSArray*)value) { - if ([model respondsToSelector:@selector(toDictionary)]) { - [tempArray addObject: [model toDictionary]]; - } else - [tempArray addObject: model]; - } - return [tempArray copy]; - } - - //check if should export dictionary of dictionaries - if (property.type == [NSDictionary class] || property.type == [NSMutableDictionary class]) { - NSMutableDictionary* res = [NSMutableDictionary dictionary]; - for (NSString* key in [(NSDictionary*)value allKeys]) { - id model = value[key]; - [res setValue: [model toDictionary] forKey: key]; - } - return [NSDictionary dictionaryWithDictionary:res]; - } - } - - return value; -} - -#pragma mark - custom transformations --(BOOL)__customSetValue:(id)value forProperty:(JSONModelClassProperty*)property -{ - if (property.setterType == kNotInspected) { - //check for a custom property setter method - NSString* ucfirstName = [property.name stringByReplacingCharactersInRange:NSMakeRange(0,1) - withString:[[property.name substringToIndex:1] uppercaseString]]; - NSString* selectorName = [NSString stringWithFormat:@"set%@With%@:", ucfirstName, - [JSONValueTransformer classByResolvingClusterClasses:[value class]] - ]; - - SEL customPropertySetter = NSSelectorFromString(selectorName); - - //check if there's a custom selector like this - if (![self respondsToSelector: customPropertySetter]) { - property.setterType = kNo; - return NO; - } - - //cache the custom setter selector - property.setterType = kCustom; - property.customSetter = customPropertySetter; - } - - if (property.setterType==kCustom) { - //call the custom setter - //https://github.com/steipete - ((void (*) (id, SEL, id))objc_msgSend)(self, property.customSetter, value); - return YES; - } - - return NO; -} - --(BOOL)__customGetValue:(id*)value forProperty:(JSONModelClassProperty*)property -{ - if (property.getterType == kNotInspected) { - //check for a custom property getter method - NSString* ucfirstName = [property.name stringByReplacingCharactersInRange: NSMakeRange(0,1) - withString: [[property.name substringToIndex:1] uppercaseString]]; - NSString* selectorName = [NSString stringWithFormat:@"JSONObjectFor%@", ucfirstName]; - - SEL customPropertyGetter = NSSelectorFromString(selectorName); - if (![self respondsToSelector: customPropertyGetter]) { - property.getterType = kNo; - return NO; - } - - property.getterType = kCustom; - property.customGetter = customPropertyGetter; - - } - - if (property.getterType==kCustom) { - //call the custom getter - #pragma clang diagnostic push - #pragma clang diagnostic ignored "-Warc-performSelector-leaks" - *value = [self performSelector:property.customGetter]; - #pragma clang diagnostic pop - return YES; - } - - return NO; -} - -#pragma mark - persistance --(void)__createDictionariesForKeyPath:(NSString*)keyPath inDictionary:(NSMutableDictionary**)dict -{ - //find if there's a dot left in the keyPath - NSUInteger dotLocation = [keyPath rangeOfString:@"."].location; - if (dotLocation==NSNotFound) return; - - //inspect next level - NSString* nextHierarchyLevelKeyName = [keyPath substringToIndex: dotLocation]; - NSDictionary* nextLevelDictionary = (*dict)[nextHierarchyLevelKeyName]; - - if (nextLevelDictionary==nil) { - //create non-existing next level here - nextLevelDictionary = [NSMutableDictionary dictionary]; - } - - //recurse levels - [self __createDictionariesForKeyPath:[keyPath substringFromIndex: dotLocation+1] - inDictionary:&nextLevelDictionary ]; - - //create the hierarchy level - [*dict setValue:nextLevelDictionary forKeyPath: nextHierarchyLevelKeyName]; -} - --(NSDictionary*)toDictionary -{ - return [self toDictionaryWithKeys:nil]; -} - --(NSString*)toJSONString -{ - return [self toJSONStringWithKeys:nil]; -} - --(NSData*)toJSONData -{ - return [self toJSONDataWithKeys:nil]; -} - -//exports the model as a dictionary of JSON compliant objects --(NSDictionary*)toDictionaryWithKeys:(NSArray*)propertyNames -{ - NSArray* properties = [self __properties__]; - NSMutableDictionary* tempDictionary = [NSMutableDictionary dictionaryWithCapacity:properties.count]; - - id value; - - //loop over all properties - for (JSONModelClassProperty* p in properties) { - - //skip if unwanted - if (propertyNames != nil && ![propertyNames containsObject:p.name]) - continue; - - //fetch key and value - NSString* keyPath = (self.__keyMapper||globalKeyMapper) ? [self __mapString:p.name withKeyMapper:self.__keyMapper importing:YES] : p.name; - value = [self valueForKey: p.name]; - - //JMLog(@"toDictionary[%@]->[%@] = '%@'", p.name, keyPath, value); - - if ([keyPath rangeOfString:@"."].location != NSNotFound) { - //there are sub-keys, introduce dictionaries for them - [self __createDictionariesForKeyPath:keyPath inDictionary:&tempDictionary]; - } - - //check for custom getter - if ([self __customGetValue:&value forProperty:p]) { - //custom getter, all done - [tempDictionary setValue:value forKeyPath:keyPath]; - continue; - } - - //export nil when they are not optional values as JSON null, so that the structure of the exported data - //is still valid if it's to be imported as a model again - if (isNull(value)) { - - if (p.isOptional) - { - [tempDictionary removeObjectForKey:keyPath]; - } - else - { - [tempDictionary setValue:[NSNull null] forKeyPath:keyPath]; - } - continue; - } - - //check if the property is another model - if ([value isKindOfClass:JSONModelClass]) { - - //recurse models - value = [(JSONModel*)value toDictionary]; - [tempDictionary setValue:value forKeyPath: keyPath]; - - //for clarity - continue; - - } else { - - // 1) check for built-in transformation - if (p.protocol) { - value = [self __reverseTransform:value forProperty:p]; - } - - // 2) check for standard types OR 2.1) primitives - if (p.structName==nil && (p.isStandardJSONType || p.type==nil)) { - - //generic get value - [tempDictionary setValue:value forKeyPath: keyPath]; - - continue; - } - - // 3) try to apply a value transformer - if (YES) { - - //create selector from the property's class name - NSString* selectorName = [NSString stringWithFormat:@"%@From%@:", @"JSONObject", p.type?p.type:p.structName]; - SEL selector = NSSelectorFromString(selectorName); - - BOOL foundCustomTransformer = NO; - if ([valueTransformer respondsToSelector:selector]) { - foundCustomTransformer = YES; - } else { - //try for hidden transformer - selectorName = [NSString stringWithFormat:@"__%@",selectorName]; - selector = NSSelectorFromString(selectorName); - if ([valueTransformer respondsToSelector:selector]) { - foundCustomTransformer = YES; - } - } - - //check if there's a transformer declared - if (foundCustomTransformer) { - - //it's OK, believe me... -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Warc-performSelector-leaks" - value = [valueTransformer performSelector:selector withObject:value]; -#pragma clang diagnostic pop - - [tempDictionary setValue:value forKeyPath: keyPath]; - - } else { - - //in this case most probably a custom property was defined in a model - //but no default reverse transofrmer for it - @throw [NSException exceptionWithName:@"Value transformer not found" - reason:[NSString stringWithFormat:@"[JSONValueTransformer %@] not found", selectorName] - userInfo:nil]; - return nil; - } - } - } - } - - return [tempDictionary copy]; -} - -//exports model to a dictionary and then to a JSON string --(NSData*)toJSONDataWithKeys:(NSArray*)propertyNames -{ - NSData* jsonData = nil; - NSError* jsonError = nil; - - @try { - NSDictionary* dict = [self toDictionaryWithKeys:propertyNames]; - jsonData = [NSJSONSerialization dataWithJSONObject:dict options:kNilOptions error:&jsonError]; - } - @catch (NSException *exception) { - //this should not happen in properly design JSONModel - //usually means there was no reverse transformer for a custom property - JMLog(@"EXCEPTION: %@", exception.description); - return nil; - } - - return jsonData; -} - --(NSString*)toJSONStringWithKeys:(NSArray*)propertyNames -{ - return [[NSString alloc] initWithData: [self toJSONDataWithKeys: propertyNames] - encoding: NSUTF8StringEncoding]; -} - -#pragma mark - import/export of lists -//loop over an NSArray of JSON objects and turn them into models -+(NSMutableArray*)arrayOfModelsFromDictionaries:(NSArray*)array -{ - return [self arrayOfModelsFromDictionaries:array error:nil]; -} - -+(NSMutableArray*)arrayOfModelsFromData:(NSData *)data error:(NSError *__autoreleasing *)err -{ - id json = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:err]; - if (!json || ![json isKindOfClass:[NSArray class]]) return nil; - - return [self arrayOfModelsFromDictionaries:json error:err]; -} - -// Same as above, but with error reporting -+(NSMutableArray*)arrayOfModelsFromDictionaries:(NSArray*)array error:(NSError**)err -{ - //bail early - if (isNull(array)) return nil; - - //parse dictionaries to objects - NSMutableArray* list = [NSMutableArray arrayWithCapacity: [array count]]; - - for (id d in array) - { - if ([d isKindOfClass:NSDictionary.class]) - { - JSONModelError* initErr = nil; - id obj = [[self alloc] initWithDictionary:d error:&initErr]; - if (obj == nil) - { - // Propagate the error, including the array index as the key-path component - if((err != nil) && (initErr != nil)) - { - NSString* path = [NSString stringWithFormat:@"[%lu]", (unsigned long)list.count]; - *err = [initErr errorByPrependingKeyPathComponent:path]; - } - return nil; - } - - [list addObject: obj]; - } else if ([d isKindOfClass:NSArray.class]) - { - [list addObjectsFromArray:[self arrayOfModelsFromDictionaries:d error:err]]; - } else - { - // This is very bad - } - - } - - return list; -} - -//loop over NSArray of models and export them to JSON objects -+(NSMutableArray*)arrayOfDictionariesFromModels:(NSArray*)array -{ - //bail early - if (isNull(array)) return nil; - - //convert to dictionaries - NSMutableArray* list = [NSMutableArray arrayWithCapacity: [array count]]; - - for (id object in array) { - - id obj = [object toDictionary]; - if (!obj) return nil; - - [list addObject: obj]; - } - return list; -} - -//loop over NSArray of models and export them to JSON objects with specific properties -+(NSMutableArray*)arrayOfDictionariesFromModels:(NSArray*)array propertyNamesToExport:(NSArray*)propertyNamesToExport; -{ - //bail early - if (isNull(array)) return nil; - - //convert to dictionaries - NSMutableArray* list = [NSMutableArray arrayWithCapacity: [array count]]; - - for (id object in array) { - - id obj = [object toDictionaryWithKeys:propertyNamesToExport]; - if (!obj) return nil; - - [list addObject: obj]; - } - return list; -} - -#pragma mark - custom comparison methods --(NSString*)indexPropertyName -{ - //custom getter for an associated object - return objc_getAssociatedObject(self.class, &kIndexPropertyNameKey); -} - --(BOOL)isEqual:(id)object -{ - //bail early if different classes - if (![object isMemberOfClass:[self class]]) return NO; - - if (self.indexPropertyName) { - //there's a defined ID property - id objectId = [object valueForKey: self.indexPropertyName]; - return [[self valueForKey: self.indexPropertyName] isEqual:objectId]; - } - - //default isEqual implementation - return [super isEqual:object]; -} - --(NSComparisonResult)compare:(id)object -{ - if (self.indexPropertyName) { - id objectId = [object valueForKey: self.indexPropertyName]; - if ([objectId respondsToSelector:@selector(compare:)]) { - return [[self valueForKey:self.indexPropertyName] compare:objectId]; - } - } - - //on purpose postponing the asserts for speed optimization - //these should not happen anyway in production conditions - NSAssert(self.indexPropertyName, @"Can't compare models with no property"); - NSAssert1(NO, @"The property of %@ is not comparable class.", [self class]); - return kNilOptions; -} - -- (NSUInteger)hash -{ - if (self.indexPropertyName) { - return [self.indexPropertyName hash]; - } - - return [super hash]; -} - -#pragma mark - custom data validation --(BOOL)validate:(NSError**)error -{ - return YES; -} - -#pragma mark - custom recursive description -//custom description method for debugging purposes --(NSString*)description -{ - NSMutableString* text = [NSMutableString stringWithFormat:@"<%@> \n", [self class]]; - - for (JSONModelClassProperty *p in [self __properties__]) { - - id value = ([p.name isEqualToString:@"description"])?self->_description:[self valueForKey:p.name]; - NSString* valueDescription = (value)?[value description]:@""; - - if (p.isStandardJSONType && ![value respondsToSelector:@selector(count)] && [valueDescription length]>60 && !p.convertsOnDemand) { - - //cap description for longer values - valueDescription = [NSString stringWithFormat:@"%@...", [valueDescription substringToIndex:59]]; - } - valueDescription = [valueDescription stringByReplacingOccurrencesOfString:@"\n" withString:@"\n "]; - [text appendFormat:@" [%@]: %@\n", p.name, valueDescription]; - } - - [text appendFormat:@"", [self class]]; - return text; -} - -#pragma mark - key mapping -+(JSONKeyMapper*)keyMapper -{ - return nil; -} - -+(void)setGlobalKeyMapper:(JSONKeyMapper*)globalKeyMapperParam -{ - globalKeyMapper = globalKeyMapperParam; -} - -+(BOOL)propertyIsOptional:(NSString*)propertyName -{ - return NO; -} - -+(BOOL)propertyIsIgnored:(NSString *)propertyName -{ - return NO; -} - -#pragma mark - working with incomplete models --(void)mergeFromDictionary:(NSDictionary*)dict useKeyMapping:(BOOL)useKeyMapping -{ - [self __importDictionary:dict withKeyMapper:(useKeyMapping)? self.__keyMapper:nil validation:NO error:nil]; -} - -#pragma mark - NSCopying, NSCoding --(instancetype)copyWithZone:(NSZone *)zone -{ - return [NSKeyedUnarchiver unarchiveObjectWithData: - [NSKeyedArchiver archivedDataWithRootObject:self] - ]; -} - --(instancetype)initWithCoder:(NSCoder *)decoder -{ - NSString* json = [decoder decodeObjectForKey:@"json"]; - - JSONModelError *error = nil; - self = [self initWithString:json error:&error]; - if (error) { - JMLog(@"%@",[error localizedDescription]); - } - return self; -} - --(void)encodeWithCoder:(NSCoder *)encoder -{ - [encoder encodeObject:self.toJSONString forKey:@"json"]; -} - -+ (BOOL)supportsSecureCoding -{ - return YES; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModelArray.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModelArray.h deleted file mode 100644 index e858ad78c5f..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModelArray.h +++ /dev/null @@ -1,60 +0,0 @@ -// -// JSONModelArray.h -// -// @version 0.8.0 -// @author Marin Todorov, http://www.touch-code-magazine.com -// - -// Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -// This code is distributed under the terms and conditions of the MIT license. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -// The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - -#import - -/** - * **Don't make instances of JSONModelArray yourself, except you know what you are doing.** - * - * You get automatically JSONModelArray instances, when you declare a convert on demand property, like so: - * - * @property (strong, nonatomic) NSArray<JSONModel, ConvertOnDemand>* list; - * - * The class stores its contents as they come from JSON, and upon the first request - * of each of the objects stored in the array, it'll be converted to the target model class. - * Thus saving time upon the very first model creation. - */ -@interface JSONModelArray : NSObject - -/** - * Don't make instances of JSONModelArray yourself, except you know what you are doing. - * - * @param array an array of NSDictionary objects - * @param cls the JSONModel sub-class you'd like the NSDictionaries to be converted to on demand - */ -- (id)initWithArray:(NSArray *)array modelClass:(Class)cls; - -- (id)objectAtIndex:(NSUInteger)index; -- (id)objectAtIndexedSubscript:(NSUInteger)index; -- (void)forwardInvocation:(NSInvocation *)anInvocation; -- (NSUInteger)count; -- (id)firstObject; -- (id)lastObject; - -/** - * Looks up the array's contents and tries to find a JSONModel object - * with matching index property value to the indexValue param. - * - * Will return nil if no matching model is found. Will return nil if there's no index property - * defined on the models found in the array (will sample the first object, assuming the array - * contains homogenous collection of objects) - * - * @param indexValue the id value to search for - * @return the found model or nil - */ -- (id)modelWithIndexValue:(id)indexValue; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModelArray.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModelArray.m deleted file mode 100644 index 88eddc7ad49..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModelArray.m +++ /dev/null @@ -1,145 +0,0 @@ -// -// JSONModelArray.m -// -// @version 1.0.2 -// @author Marin Todorov, http://www.touch-code-magazine.com -// - -// Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -// This code is distributed under the terms and conditions of the MIT license. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -// The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - -#import "JSONModelArray.h" -#import "JSONModel.h" - -@implementation JSONModelArray -{ - NSMutableArray* _storage; - Class _targetClass; -} - --(id)initWithArray:(NSArray *)array modelClass:(Class)cls -{ - self = [super init]; - - if (self) { - _storage = [NSMutableArray arrayWithArray:array]; - _targetClass = cls; - } - return self; -} - --(id)firstObject -{ - return [self objectAtIndex:0]; -} - --(id)lastObject -{ - return [self objectAtIndex:_storage.count - 1]; -} - --(id)objectAtIndex:(NSUInteger)index -{ - return [self objectAtIndexedSubscript:index]; -} - --(id)objectAtIndexedSubscript:(NSUInteger)index -{ - id object = _storage[index]; - if (![object isMemberOfClass:_targetClass]) { - NSError* err = nil; - object = [[_targetClass alloc] initWithDictionary:object error:&err]; - if (object) { - _storage[index] = object; - } - } - return object; -} - --(void)forwardInvocation:(NSInvocation *)anInvocation -{ - [anInvocation invokeWithTarget:_storage]; -} - --(id)forwardingTargetForSelector:(SEL)selector -{ - static NSArray* overridenMethods = nil; - if (!overridenMethods) overridenMethods = @[@"initWithArray:modelClass:",@"objectAtIndex:",@"objectAtIndexedSubscript:", @"count",@"modelWithIndexValue:",@"description",@"mutableCopy",@"firstObject",@"lastObject",@"countByEnumeratingWithState:objects:count:"]; - if ([overridenMethods containsObject:NSStringFromSelector(selector)]) { - return self; - } - return _storage; -} - --(NSUInteger)count -{ - return _storage.count; -} - --(id)modelWithIndexValue:(id)indexValue -{ - if (self.count==0) return nil; - if (![_storage[0] indexPropertyName]) return nil; - - for (JSONModel* model in _storage) { - if ([[model valueForKey:model.indexPropertyName] isEqual:indexValue]) { - return model; - } - } - - return nil; -} - --(id)mutableCopy -{ - //it's already mutable - return self; -} - -#pragma mark - description --(NSString*)description -{ - NSMutableString* res = [NSMutableString stringWithFormat:@"\n", [_targetClass description]]; - for (id m in _storage) { - [res appendString: [m description]]; - [res appendString: @",\n"]; - } - [res appendFormat:@"\n"]; - return res; -} - --(NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state - objects:(id __unsafe_unretained [])stackbuf - count:(NSUInteger)stackbufLength -{ - NSUInteger count = 0; - - unsigned long countOfItemsAlreadyEnumerated = state->state; - - if (countOfItemsAlreadyEnumerated == 0) { - state->mutationsPtr = &state->extra[0]; - } - - if (countOfItemsAlreadyEnumerated < [self count]) { - state->itemsPtr = stackbuf; - while ((countOfItemsAlreadyEnumerated < [self count]) && (count < stackbufLength)) { - stackbuf[count] = [self objectAtIndex:countOfItemsAlreadyEnumerated]; - countOfItemsAlreadyEnumerated++; - count++; - } - } else { - count = 0; - } - - state->state = countOfItemsAlreadyEnumerated; - - return count; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModelClassProperty.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModelClassProperty.h deleted file mode 100644 index 7e470707554..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModelClassProperty.h +++ /dev/null @@ -1,77 +0,0 @@ -// -// JSONModelClassProperty.h -// -// @version 1.0.2 -// @author Marin Todorov, http://www.touch-code-magazine.com -// - -// Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -// This code is distributed under the terms and conditions of the MIT license. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -// The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - -#import - -enum kCustomizationTypes { - kNotInspected = 0, - kCustom, - kNo - }; - -typedef enum kCustomizationTypes PropertySetterType; -typedef enum kCustomizationTypes PropertyGetterType; - -/** - * **You do not need to instantiate this class yourself.** This class is used internally by JSONModel - * to inspect the declared properties of your model class. - * - * Class to contain the information, representing a class property - * It features the property's name, type, whether it's a required property, - * and (optionally) the class protocol - */ -@interface JSONModelClassProperty : NSObject - -/** The name of the declared property (not the ivar name) */ -@property (copy, nonatomic) NSString* name; - -/** A property class type */ -@property (assign, nonatomic) Class type; - -/** Struct name if a struct */ -@property (strong, nonatomic) NSString* structName; - -/** The name of the protocol the property conforms to (or nil) */ -@property (copy, nonatomic) NSString* protocol; - -/** If YES, it can be missing in the input data, and the input would be still valid */ -@property (assign, nonatomic) BOOL isOptional; - -/** If YES - don't call any transformers on this property's value */ -@property (assign, nonatomic) BOOL isStandardJSONType; - -/** If YES - create a mutable object for the value of the property */ -@property (assign, nonatomic) BOOL isMutable; - -/** If YES - create models on demand for the array members */ -@property (assign, nonatomic) BOOL convertsOnDemand; - -/** If YES - the value of this property determines equality to other models */ -@property (assign, nonatomic) BOOL isIndex; - -/** The status of property getter introspection in a model */ -@property (assign, nonatomic) PropertyGetterType getterType; - -/** a custom getter for this property, found in the owning model */ -@property (assign, nonatomic) SEL customGetter; - -/** The status of property setter introspection in a model */ -@property (assign, nonatomic) PropertySetterType setterType; - -/** a custom setter for this property, found in the owning model */ -@property (assign, nonatomic) SEL customSetter; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModelClassProperty.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModelClassProperty.m deleted file mode 100644 index 0fe9158261d..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModelClassProperty.m +++ /dev/null @@ -1,48 +0,0 @@ -// -// JSONModelClassProperty.m -// -// @version 1.0.2 -// @author Marin Todorov, http://www.touch-code-magazine.com -// - -// Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -// This code is distributed under the terms and conditions of the MIT license. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -// The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - -#import "JSONModelClassProperty.h" - -@implementation JSONModelClassProperty - --(NSString*)description -{ - //build the properties string for the current class property - NSMutableArray* properties = [NSMutableArray arrayWithCapacity:8]; - - if (self.isIndex) [properties addObject:@"Index"]; - if (self.isOptional) [properties addObject:@"Optional"]; - if (self.isMutable) [properties addObject:@"Mutable"]; - if (self.convertsOnDemand) [properties addObject:@"ConvertOnDemand"]; - if (self.isStandardJSONType) [properties addObject:@"Standard JSON type"]; - if (self.customSetter) [properties addObject:[NSString stringWithFormat: @"Setter = %@", NSStringFromSelector(self.customSetter)]]; - if (self.customGetter) [properties addObject:[NSString stringWithFormat: @"Getter = %@", NSStringFromSelector(self.customGetter)]]; - - NSString* propertiesString = @""; - if (properties.count>0) { - propertiesString = [NSString stringWithFormat:@"(%@)", [properties componentsJoinedByString:@", "]]; - } - - //return the name, type and additional properties - return [NSString stringWithFormat:@"@property %@%@ %@ %@", - self.type?[NSString stringWithFormat:@"%@*",self.type]:(self.structName?self.structName:@"primitive"), - self.protocol?[NSString stringWithFormat:@"<%@>", self.protocol]:@"", - self.name, - propertiesString - ]; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModelError.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModelError.h deleted file mode 100644 index 36f41ef55bd..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModelError.h +++ /dev/null @@ -1,112 +0,0 @@ -// -// JSONModelError.h -// -// @version 1.0.2 -// @author Marin Todorov, http://www.touch-code-magazine.com -// - -// Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -// This code is distributed under the terms and conditions of the MIT license. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -// The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - -#import - -///////////////////////////////////////////////////////////////////////////////////////////// -typedef NS_ENUM(int, kJSONModelErrorTypes) -{ - kJSONModelErrorInvalidData = 1, - kJSONModelErrorBadResponse = 2, - kJSONModelErrorBadJSON = 3, - kJSONModelErrorModelIsInvalid = 4, - kJSONModelErrorNilInput = 5 -}; - -///////////////////////////////////////////////////////////////////////////////////////////// -/** The domain name used for the JSONModelError instances */ -extern NSString* const JSONModelErrorDomain; - -/** - * If the model JSON input misses keys that are required, check the - * userInfo dictionary of the JSONModelError instance you get back - - * under the kJSONModelMissingKeys key you will find a list of the - * names of the missing keys. - */ -extern NSString* const kJSONModelMissingKeys; - -/** - * If JSON input has a different type than expected by the model, check the - * userInfo dictionary of the JSONModelError instance you get back - - * under the kJSONModelTypeMismatch key you will find a description - * of the mismatched types. - */ -extern NSString* const kJSONModelTypeMismatch; - -/** - * If an error occurs in a nested model, check the userInfo dictionary of - * the JSONModelError instance you get back - under the kJSONModelKeyPath - * key you will find key-path at which the error occurred. - */ -extern NSString* const kJSONModelKeyPath; - -///////////////////////////////////////////////////////////////////////////////////////////// -/** - * Custom NSError subclass with shortcut methods for creating - * the common JSONModel errors - */ -@interface JSONModelError : NSError - -@property (strong, nonatomic) NSHTTPURLResponse* httpResponse; - -/** - * Creates a JSONModelError instance with code kJSONModelErrorInvalidData = 1 - */ -+(id)errorInvalidDataWithMessage:(NSString*)message; - -/** - * Creates a JSONModelError instance with code kJSONModelErrorInvalidData = 1 - * @param keys a set of field names that were required, but not found in the input - */ -+(id)errorInvalidDataWithMissingKeys:(NSSet*)keys; - -/** - * Creates a JSONModelError instance with code kJSONModelErrorInvalidData = 1 - * @param A description of the type mismatch that was encountered. - */ -+(id)errorInvalidDataWithTypeMismatch:(NSString*)mismatchDescription; - -/** - * Creates a JSONModelError instance with code kJSONModelErrorBadResponse = 2 - */ -+(id)errorBadResponse; - -/** - * Creates a JSONModelError instance with code kJSONModelErrorBadJSON = 3 - */ -+(id)errorBadJSON; - -/** - * Creates a JSONModelError instance with code kJSONModelErrorModelIsInvalid = 4 - */ -+(id)errorModelIsInvalid; - -/** - * Creates a JSONModelError instance with code kJSONModelErrorNilInput = 5 - */ -+(id)errorInputIsNil; - -/** - * Creates a new JSONModelError with the same values plus information about the key-path of the error. - * Properties in the new error object are the same as those from the receiver, - * except that a new key kJSONModelKeyPath is added to the userInfo dictionary. - * This key contains the component string parameter. If the key is already present - * then the new error object has the component string prepended to the existing value. - */ -- (instancetype)errorByPrependingKeyPathComponent:(NSString*)component; - -///////////////////////////////////////////////////////////////////////////////////////////// -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModelError.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModelError.m deleted file mode 100644 index de80446af67..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModel/JSONModelError.m +++ /dev/null @@ -1,93 +0,0 @@ -// -// JSONModelError.m -// -// @version 1.0.2 -// @author Marin Todorov, http://www.touch-code-magazine.com -// - -// Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -// This code is distributed under the terms and conditions of the MIT license. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -// The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - -#import "JSONModelError.h" - -NSString* const JSONModelErrorDomain = @"JSONModelErrorDomain"; -NSString* const kJSONModelMissingKeys = @"kJSONModelMissingKeys"; -NSString* const kJSONModelTypeMismatch = @"kJSONModelTypeMismatch"; -NSString* const kJSONModelKeyPath = @"kJSONModelKeyPath"; - -@implementation JSONModelError - -+(id)errorInvalidDataWithMessage:(NSString*)message -{ - message = [NSString stringWithFormat:@"Invalid JSON data: %@", message]; - return [JSONModelError errorWithDomain:JSONModelErrorDomain - code:kJSONModelErrorInvalidData - userInfo:@{NSLocalizedDescriptionKey:message}]; -} - -+(id)errorInvalidDataWithMissingKeys:(NSSet *)keys -{ - return [JSONModelError errorWithDomain:JSONModelErrorDomain - code:kJSONModelErrorInvalidData - userInfo:@{NSLocalizedDescriptionKey:@"Invalid JSON data. Required JSON keys are missing from the input. Check the error user information.",kJSONModelMissingKeys:[keys allObjects]}]; -} - -+(id)errorInvalidDataWithTypeMismatch:(NSString*)mismatchDescription -{ - return [JSONModelError errorWithDomain:JSONModelErrorDomain - code:kJSONModelErrorInvalidData - userInfo:@{NSLocalizedDescriptionKey:@"Invalid JSON data. The JSON type mismatches the expected type. Check the error user information.",kJSONModelTypeMismatch:mismatchDescription}]; -} - -+(id)errorBadResponse -{ - return [JSONModelError errorWithDomain:JSONModelErrorDomain - code:kJSONModelErrorBadResponse - userInfo:@{NSLocalizedDescriptionKey:@"Bad network response. Probably the JSON URL is unreachable."}]; -} - -+(id)errorBadJSON -{ - return [JSONModelError errorWithDomain:JSONModelErrorDomain - code:kJSONModelErrorBadJSON - userInfo:@{NSLocalizedDescriptionKey:@"Malformed JSON. Check the JSONModel data input."}]; -} - -+(id)errorModelIsInvalid -{ - return [JSONModelError errorWithDomain:JSONModelErrorDomain - code:kJSONModelErrorModelIsInvalid - userInfo:@{NSLocalizedDescriptionKey:@"Model does not validate. The custom validation for the input data failed."}]; -} - -+(id)errorInputIsNil -{ - return [JSONModelError errorWithDomain:JSONModelErrorDomain - code:kJSONModelErrorNilInput - userInfo:@{NSLocalizedDescriptionKey:@"Initializing model with nil input object."}]; -} - -- (instancetype)errorByPrependingKeyPathComponent:(NSString*)component -{ - // Create a mutable copy of the user info so that we can add to it and update it - NSMutableDictionary* userInfo = [self.userInfo mutableCopy]; - - // Create or update the key-path - NSString* existingPath = userInfo[kJSONModelKeyPath]; - NSString* separator = [existingPath hasPrefix:@"["] ? @"" : @"."; - NSString* updatedPath = (existingPath == nil) ? component : [component stringByAppendingFormat:@"%@%@", separator, existingPath]; - userInfo[kJSONModelKeyPath] = updatedPath; - - // Create the new error - return [JSONModelError errorWithDomain:self.domain - code:self.code - userInfo:[NSDictionary dictionaryWithDictionary:userInfo]]; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelCategories/NSArray+JSONModel.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelCategories/NSArray+JSONModel.h deleted file mode 100644 index d4e18dab242..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelCategories/NSArray+JSONModel.h +++ /dev/null @@ -1,40 +0,0 @@ -// -// NSArray+JSONModel.h -// -// @version 1.0.2 -// @author Marin Todorov, http://www.touch-code-magazine.com -// - -// Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -// This code is distributed under the terms and conditions of the MIT license. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -// The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - - -#import -#import "JSONModel.h" - -/** - * Exposes invisible JSONModelArray methods - */ -@interface NSArray(JSONModel) - -/** - * Looks up the array's contents and tries to find a JSONModel object - * with matching index property value to the indexValue param. - * - * Will return nil if no matching model is found. Will return nil if there's no index property - * defined on the models found in the array (will sample the first object, assuming the array - * contains homogenous collection of objects) - * - * @param indexValue the id value to search for - * @return the found model or nil - * @exception NSException throws exception if you call this method on an instance, which is not actually a JSONModelArray - */ -- (id)modelWithIndexValue:(id)indexValue; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelCategories/NSArray+JSONModel.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelCategories/NSArray+JSONModel.m deleted file mode 100644 index 41475a474e1..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelCategories/NSArray+JSONModel.m +++ /dev/null @@ -1,28 +0,0 @@ -// -// NSArray+JSONModel.m -// -// @version 1.0.2 -// @author Marin Todorov, http://www.touch-code-magazine.com -// - -// Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -// This code is distributed under the terms and conditions of the MIT license. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -// The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - - -#import "NSArray+JSONModel.h" - -@implementation NSArray(JSONModel) - -- (id)modelWithIndexValue:(id)indexValue -{ - NSAssert(NO, @"call modelWithIndexValue: on a ConvertOnDemand property, which is defined like that: @property (strong, nonatomic) NSArray* list;"); - return nil; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelLib.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelLib.h deleted file mode 100644 index b8f5a17868b..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelLib.h +++ /dev/null @@ -1,35 +0,0 @@ -// -// JSONModelLib.h -// -// @version 1.0.2 -// @author Marin Todorov, http://www.touch-code-magazine.com -// - -// Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -// This code is distributed under the terms and conditions of the MIT license. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -// The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - -#import - -//JSONModel transformations -#import "JSONValueTransformer.h" -#import "JSONKeyMapper.h" - -//basic JSONModel classes -#import "JSONModelError.h" -#import "JSONModelClassProperty.h" -#import "JSONModel.h" - -//network classes -#import "JSONHTTPClient.h" -#import "JSONModel+networking.h" -#import "JSONAPI.h" - -//models array -#import "NSArray+JSONModel.h" -#import "JSONModelArray.h" \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelNetworking/JSONAPI.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelNetworking/JSONAPI.h deleted file mode 100644 index dd27aa23eab..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelNetworking/JSONAPI.h +++ /dev/null @@ -1,90 +0,0 @@ -// -// JSONAPI.h -// -// @version 1.0.2 -// @author Marin Todorov, http://www.touch-code-magazine.com -// - -// Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -// This code is distributed under the terms and conditions of the MIT license. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -// The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - -#import -#import "JSONHTTPClient.h" - -///////////////////////////////////////////////////////////////////////////////////////////// - -/** - * @discussion Class for working with JSON APIs. It builds upon the JSONHTTPClient class - * and facilitates making requests to the same web host. Also features helper - * method for making calls to a JSON RPC service - */ -@interface JSONAPI : NSObject - -///////////////////////////////////////////////////////////////////////////////////////////// - -/** @name Configuring the API */ -/** - * Sets the API url - * @param base the API url as a string - */ -+(void)setAPIBaseURLWithString:(NSString*)base; - -/** - * Sets the default content type for the requests/responses - * @param ctype The content-type as a string. Some possible types, - * depending on the service: application/json, text/json, x-application/javascript, etc. - */ -+(void)setContentType:(NSString*)ctype; - -///////////////////////////////////////////////////////////////////////////////////////////// - -/** @name Making GET API requests */ -/** - * Makes an asynchronious GET request to the API - * @param path the URL path to add to the base API URL for this HTTP call - * @param params the variables to pass to the API - * @param completeBlock a JSONObjectBlock block to execute upon completion - */ -+(void)getWithPath:(NSString*)path andParams:(NSDictionary*)params completion:(JSONObjectBlock)completeBlock; - -///////////////////////////////////////////////////////////////////////////////////////////// - -/** @name Making POST API requests */ -/** - * Makes a POST request to the API - * @param path the URL path to add to the base API URL for this HTTP call - * @param params the variables to pass to the API - * @param completeBlock a JSONObjectBlock block to execute upon completion - */ -+(void)postWithPath:(NSString*)path andParams:(NSDictionary*)params completion:(JSONObjectBlock)completeBlock; - -///////////////////////////////////////////////////////////////////////////////////////////// - -/** @name JSON RPC methods */ -/** - * Makes an asynchronious JSON RPC request to the API. Read more: http://www.jsonrpc.org - * @param method the HTTP method name; GET or POST only - * @param args the list of arguments to pass to the API - * @param completeBlock JSONObjectBlock to execute upon completion - */ -+(void)rpcWithMethodName:(NSString*)method andArguments:(NSArray*)args completion:(JSONObjectBlock)completeBlock; - -/** @name JSON RPC (2.0) request method */ -/** - * Makes an asynchronious JSON RPC 2.0 request to the API. Read more: http://www.jsonrpc.org - * @param method the HTTP method name; GET or POST only - * @param params the params to pass to the API - an NSArray or an NSDictionary, - * depending whether you're using named or unnamed parameters - * @param completeBlock JSONObjectBlock to execute upon completion - */ -+(void)rpc2WithMethodName:(NSString*)method andParams:(id)params completion:(JSONObjectBlock)completeBlock; - -///////////////////////////////////////////////////////////////////////////////////////////// - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelNetworking/JSONAPI.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelNetworking/JSONAPI.m deleted file mode 100644 index 212803d7bd3..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelNetworking/JSONAPI.m +++ /dev/null @@ -1,152 +0,0 @@ -// -// JSONAPI.m -// -// @version 1.0.2 -// @author Marin Todorov, http://www.touch-code-magazine.com -// - -// Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -// This code is distributed under the terms and conditions of the MIT license. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -// The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - -#import "JSONAPI.h" - -#pragma mark - helper error model class -@interface JSONAPIRPCErrorModel: JSONModel -@property (assign, nonatomic) int code; -@property (strong, nonatomic) NSString* message; -@property (strong, nonatomic) id data; -@end - -#pragma mark - static variables - -static JSONAPI* sharedInstance = nil; -static long jsonRpcId = 0; - -#pragma mark - JSONAPI() private interface - -@interface JSONAPI () -@property (strong, nonatomic) NSString* baseURLString; -@end - -#pragma mark - JSONAPI implementation - -@implementation JSONAPI - -#pragma mark - initialize - -+(void)initialize -{ - static dispatch_once_t once; - dispatch_once(&once, ^{ - sharedInstance = [[JSONAPI alloc] init]; - }); -} - -#pragma mark - api config methods - -+(void)setAPIBaseURLWithString:(NSString*)base -{ - sharedInstance.baseURLString = base; -} - -+(void)setContentType:(NSString*)ctype -{ - [JSONHTTPClient setRequestContentType: ctype]; -} - -#pragma mark - GET methods -+(void)getWithPath:(NSString*)path andParams:(NSDictionary*)params completion:(JSONObjectBlock)completeBlock -{ - NSString* fullURL = [NSString stringWithFormat:@"%@%@", sharedInstance.baseURLString, path]; - - [JSONHTTPClient getJSONFromURLWithString: fullURL params:params completion:^(NSDictionary *json, JSONModelError *e) { - completeBlock(json, e); - }]; -} - -#pragma mark - POST methods -+(void)postWithPath:(NSString*)path andParams:(NSDictionary*)params completion:(JSONObjectBlock)completeBlock -{ - NSString* fullURL = [NSString stringWithFormat:@"%@%@", sharedInstance.baseURLString, path]; - - [JSONHTTPClient postJSONFromURLWithString: fullURL params:params completion:^(NSDictionary *json, JSONModelError *e) { - completeBlock(json, e); - }]; -} - -#pragma mark - RPC methods -+(void)__rpcRequestWithObject:(id)jsonObject completion:(JSONObjectBlock)completeBlock -{ - - NSData* jsonRequestData = [NSJSONSerialization dataWithJSONObject:jsonObject - options:kNilOptions - error:nil]; - NSString* jsonRequestString = [[NSString alloc] initWithData:jsonRequestData encoding: NSUTF8StringEncoding]; - - NSAssert(sharedInstance.baseURLString, @"API base URL not set"); - [JSONHTTPClient postJSONFromURLWithString: sharedInstance.baseURLString - bodyString: jsonRequestString - completion:^(NSDictionary *json, JSONModelError* e) { - - if (completeBlock) { - //handle the rpc response - NSDictionary* result = json[@"result"]; - - if (!result) { - JSONAPIRPCErrorModel* error = [[JSONAPIRPCErrorModel alloc] initWithDictionary:json[@"error"] error:nil]; - if (error) { - //custom server error - if (!error.message) error.message = @"Generic json rpc error"; - e = [JSONModelError errorWithDomain:JSONModelErrorDomain - code:error.code - userInfo: @{ NSLocalizedDescriptionKey : error.message}]; - } else { - //generic error - e = [JSONModelError errorBadResponse]; - } - } - - //invoke the callback - completeBlock(result, e); - } - }]; -} - -+(void)rpcWithMethodName:(NSString*)method andArguments:(NSArray*)args completion:(JSONObjectBlock)completeBlock -{ - NSAssert(method, @"No method specified"); - if (!args) args = @[]; - - [self __rpcRequestWithObject:@{ - //rpc 1.0 - @"id": @(++jsonRpcId), - @"params": args, - @"method": method - } completion:completeBlock]; -} - -+(void)rpc2WithMethodName:(NSString*)method andParams:(id)params completion:(JSONObjectBlock)completeBlock -{ - NSAssert(method, @"No method specified"); - if (!params) params = @[]; - - [self __rpcRequestWithObject:@{ - //rpc 2.0 - @"jsonrpc": @"2.0", - @"id": @(++jsonRpcId), - @"params": params, - @"method": method - } completion:completeBlock]; -} - -@end - -#pragma mark - helper rpc error model class implementation -@implementation JSONAPIRPCErrorModel -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelNetworking/JSONHTTPClient.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelNetworking/JSONHTTPClient.h deleted file mode 100644 index a2129fb8ff2..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelNetworking/JSONHTTPClient.h +++ /dev/null @@ -1,175 +0,0 @@ -// -// JSONModelHTTPClient.h -// -// @version 1.0.2 -// @author Marin Todorov, http://www.touch-code-magazine.com -// - -// Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -// This code is distributed under the terms and conditions of the MIT license. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -// The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - -#import "JSONModel.h" - -#pragma mark - definitions - -/** - * HTTP Request methods - */ -extern NSString* const kHTTPMethodGET; -extern NSString* const kHTTPMethodPOST; - -/** - * Content-type strings - */ -extern NSString* const kContentTypeAutomatic; -extern NSString* const kContentTypeJSON; -extern NSString* const kContentTypeWWWEncoded; - -/** - * A block type to handle incoming JSON object and an error. - * You pass it to methods which fetch JSON asynchroniously. When the operation is finished - * you receive back the fetched JSON (or nil) and an error (or nil) - * - * @param json object derived from a JSON string - * @param err JSONModelError or nil - */ -typedef void (^JSONObjectBlock)(id json, JSONModelError* err); - -///////////////////////////////////////////////////////////////////////////////////////////// -#pragma mark - configuration methods - -/** - * @discussion A very thin HTTP client that can do GET and POST HTTP requests. - * It fetches only JSON data and also deserializes it using NSJSONSerialization. - */ -@interface JSONHTTPClient : NSObject - -///////////////////////////////////////////////////////////////////////////////////////////// - - -/** @name HTTP Client configuration */ -/** - * Returns a modifyable dictionary of the client's default HTTP headers. - * @result A mutable dictionary of pairs - HTTP header names and values. - * @discussion You can use the result to modify the http client headers like so: - *
- * NSMutableDictionary* headers = [JSONHTTPClient requestHeaders];
- * headers[@"APIToken"] = @"MySecretTokenValue";
- * 
- */ -+(NSMutableDictionary*)requestHeaders; - -/** - * Sets the default encoding of the request body. - * See NSStringEncoding for a list of supported encodings - * @param encoding text encoding constant - */ -+(void)setDefaultTextEncoding:(NSStringEncoding)encoding; - -/** - * Sets the policies for caching HTTP data - * See NSURLRequestCachePolicy for a list of the pre-defined policies - * @param policy the caching policy - */ -+(void)setCachingPolicy:(NSURLRequestCachePolicy)policy; - -/** - * Sets the timeout for network calls - * @param seconds the amount of seconds to wait before considering the call failed - */ -+(void)setTimeoutInSeconds:(int)seconds; - -/** - * A method to set the default conent type of the request body - * By default the content type is set to kContentTypeAutomatic - * which checks the body request and decides between "application/json" - * and "application/x-www-form-urlencoded" - */ -+(void)setRequestContentType:(NSString*)contentTypeString; - -///////////////////////////////////////////////////////////////////////////////////////////// -#pragma mark - GET asynchronious JSON calls - -/** @name Making asynchronious HTTP requests */ -/** - * Makes GET request to the given URL address and fetches a JSON response. - * @param urlString the URL as a string - * @param completeBlock JSONObjectBlock to execute upon completion - */ -+(void)getJSONFromURLWithString:(NSString*)urlString completion:(JSONObjectBlock)completeBlock; - -/** - * Makes GET request to the given URL address and fetches a JSON response. Sends the params as a query string variables. - * @param urlString the URL as a string - * @param params a dictionary of key / value pairs to be send as variables to the request - * @param completeBlock JSONObjectBlock to execute upon completion - */ -+(void)getJSONFromURLWithString:(NSString*)urlString params:(NSDictionary*)params completion:(JSONObjectBlock)completeBlock; - -/** - * Makes a request to the given URL address and fetches a JSON response. - * @param urlString the URL as a string - * @param method the method of the request as a string - * @param params a dictionary of key / value pairs to be send as variables to the request - * @param bodyString the body of the POST request as a string - * @param completeBlock JSONObjectBlock to execute upon completion - */ -+(void)JSONFromURLWithString:(NSString*)urlString method:(NSString*)method params:(NSDictionary*)params orBodyString:(NSString*)bodyString completion:(JSONObjectBlock)completeBlock; - -/** - * Makes a request to the given URL address and fetches a JSON response. - * @param urlString the URL as a string - * @param method the method of the request as a string - * @param params a dictionary of key / value pairs to be send as variables to the request - * @param bodyString the body of the POST request as a string - * @param headers the headers to set on the request - overrides those in +requestHeaders - * @param completeBlock JSONObjectBlock to execute upon completion - */ -+(void)JSONFromURLWithString:(NSString*)urlString method:(NSString*)method params:(NSDictionary*)params orBodyString:(NSString*)bodyString headers:(NSDictionary*)headers completion:(JSONObjectBlock)completeBlock; - -/** - * Makes a request to the given URL address and fetches a JSON response. - * @param urlString the URL as a string - * @param method the method of the request as a string - * @param params a dictionary of key / value pairs to be send as variables to the request - * @param bodyData the body of the POST request as raw binary data - * @param headers the headers to set on the request - overrides those in +requestHeaders - * @param completeBlock JSONObjectBlock to execute upon completion - */ -+(void)JSONFromURLWithString:(NSString*)urlString method:(NSString*)method params:(NSDictionary *)params orBodyData:(NSData*)bodyData headers:(NSDictionary*)headers completion:(JSONObjectBlock)completeBlock; - -///////////////////////////////////////////////////////////////////////////////////////////// -#pragma mark - POST synchronious JSON calls - -/** - * Makes POST request to the given URL address and fetches a JSON response. Sends the bodyString param as the POST request body. - * @param urlString the URL as a string - * @param params a dictionary of key / value pairs to be send as variables to the request - * @param completeBlock JSONObjectBlock to execute upon completion - */ -+(void)postJSONFromURLWithString:(NSString*)urlString params:(NSDictionary*)params completion:(JSONObjectBlock)completeBlock; - -/** - * Makes POST request to the given URL address and fetches a JSON response. Sends the bodyString param as the POST request body. - * @param urlString the URL as a string - * @param bodyString the body of the POST request as a string - * @param completeBlock JSONObjectBlock to execute upon completion - */ -+(void)postJSONFromURLWithString:(NSString*)urlString bodyString:(NSString*)bodyString completion:(JSONObjectBlock)completeBlock; - -/** - * Makes POST request to the given URL address and fetches a JSON response. Sends the bodyString param as the POST request body. - * @param urlString the URL as a string - * @param bodyData the body of the POST request as an NSData object - * @param completeBlock JSONObjectBlock to execute upon completion - */ -+(void)postJSONFromURLWithString:(NSString*)urlString bodyData:(NSData*)bodyData completion:(JSONObjectBlock)completeBlock; - - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelNetworking/JSONHTTPClient.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelNetworking/JSONHTTPClient.m deleted file mode 100644 index 18147c04a1c..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelNetworking/JSONHTTPClient.m +++ /dev/null @@ -1,374 +0,0 @@ -// -// JSONModelHTTPClient.m -// -// @version 1.0.2 -// @author Marin Todorov, http://www.touch-code-magazine.com -// - -// Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -// This code is distributed under the terms and conditions of the MIT license. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -// The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - -#import "JSONHTTPClient.h" - -#pragma mark - constants -NSString* const kHTTPMethodGET = @"GET"; -NSString* const kHTTPMethodPOST = @"POST"; - -NSString* const kContentTypeAutomatic = @"jsonmodel/automatic"; -NSString* const kContentTypeJSON = @"application/json"; -NSString* const kContentTypeWWWEncoded = @"application/x-www-form-urlencoded"; - -#pragma mark - static variables - -/** - * Defaults for HTTP requests - */ -static NSStringEncoding defaultTextEncoding = NSUTF8StringEncoding; -static NSURLRequestCachePolicy defaultCachePolicy = NSURLRequestReloadIgnoringLocalCacheData; - -static int defaultTimeoutInSeconds = 60; - -/** - * Custom HTTP headers to send over with *each* request - */ -static NSMutableDictionary* requestHeaders = nil; - -/** - * Default request content type - */ -static NSString* requestContentType = nil; - -#pragma mark - implementation -@implementation JSONHTTPClient - -#pragma mark - initialization -+(void)initialize -{ - static dispatch_once_t once; - dispatch_once(&once, ^{ - requestHeaders = [NSMutableDictionary dictionary]; - requestContentType = kContentTypeAutomatic; - }); -} - -#pragma mark - configuration methods -+(NSMutableDictionary*)requestHeaders -{ - return requestHeaders; -} - -+(void)setDefaultTextEncoding:(NSStringEncoding)encoding -{ - defaultTextEncoding = encoding; -} - -+(void)setCachingPolicy:(NSURLRequestCachePolicy)policy -{ - defaultCachePolicy = policy; -} - -+(void)setTimeoutInSeconds:(int)seconds -{ - defaultTimeoutInSeconds = seconds; -} - -+(void)setRequestContentType:(NSString*)contentTypeString -{ - requestContentType = contentTypeString; -} - -#pragma mark - helper methods -+(NSString*)contentTypeForRequestString:(NSString*)requestString -{ - //fetch the charset name from the default string encoding - NSString* contentType = requestContentType; - - if (requestString.length>0 && [contentType isEqualToString:kContentTypeAutomatic]) { - //check for "eventual" JSON array or dictionary - NSString* firstAndLastChar = [NSString stringWithFormat:@"%@%@", - [requestString substringToIndex:1], - [requestString substringFromIndex: requestString.length -1] - ]; - - if ([firstAndLastChar isEqualToString:@"{}"] || [firstAndLastChar isEqualToString:@"[]"]) { - //guessing for a JSON request - contentType = kContentTypeJSON; - } else { - //fallback to www form encoded params - contentType = kContentTypeWWWEncoded; - } - } - - //type is set, just add charset - NSString *charset = (NSString *)CFStringConvertEncodingToIANACharSetName(CFStringConvertNSStringEncodingToEncoding(NSUTF8StringEncoding)); - return [NSString stringWithFormat:@"%@; charset=%@", contentType, charset]; -} - -+(NSString*)urlEncode:(id)value -{ - //make sure param is a string - if ([value isKindOfClass:[NSNumber class]]) { - value = [(NSNumber*)value stringValue]; - } - - NSAssert([value isKindOfClass:[NSString class]], @"request parameters can be only of NSString or NSNumber classes. '%@' is of class %@.", value, [value class]); - - return (NSString *)CFBridgingRelease(CFURLCreateStringByAddingPercentEscapes( - NULL, - (__bridge CFStringRef) value, - NULL, - (CFStringRef)@"!*'();:@&=+$,/?%#[]", - kCFStringEncodingUTF8)); -} - -#pragma mark - networking worker methods -+(NSData*)syncRequestDataFromURL:(NSURL*)url method:(NSString*)method requestBody:(NSData*)bodyData headers:(NSDictionary*)headers etag:(NSString**)etag error:(JSONModelError**)err -{ - NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL: url - cachePolicy: defaultCachePolicy - timeoutInterval: defaultTimeoutInSeconds]; - [request setHTTPMethod:method]; - - if ([requestContentType isEqualToString:kContentTypeAutomatic]) { - //automatic content type - if (bodyData) { - NSString *bodyString = [[NSString alloc] initWithData:bodyData encoding:NSUTF8StringEncoding]; - [request setValue: [self contentTypeForRequestString: bodyString] forHTTPHeaderField:@"Content-type"]; - } - } else { - //user set content type - [request setValue: requestContentType forHTTPHeaderField:@"Content-type"]; - } - - //add all the custom headers defined - for (NSString* key in [requestHeaders allKeys]) { - [request setValue:requestHeaders[key] forHTTPHeaderField:key]; - } - - //add the custom headers - for (NSString* key in [headers allKeys]) { - [request setValue:headers[key] forHTTPHeaderField:key]; - } - - if (bodyData) { - [request setHTTPBody: bodyData]; - [request setValue:[NSString stringWithFormat:@"%lu", (unsigned long)bodyData.length] forHTTPHeaderField:@"Content-Length"]; - } - - //prepare output - NSHTTPURLResponse* response = nil; - - //fire the request - NSData *responseData = [NSURLConnection sendSynchronousRequest: request - returningResponse: &response - error: err]; - //convert an NSError to a JSONModelError - if (*err != nil) { - NSError* errObj = *err; - *err = [JSONModelError errorWithDomain:errObj.domain code:errObj.code userInfo:errObj.userInfo]; - } - - //special case for http error code 401 - if ([*err code] == kCFURLErrorUserCancelledAuthentication) { - response = [[NSHTTPURLResponse alloc] initWithURL:url - statusCode:401 - HTTPVersion:@"HTTP/1.1" - headerFields:@{}]; - } - - //if not OK status set the err to a JSONModelError instance - if (response.statusCode >= 300 || response.statusCode < 200) { - //create a new error - if (*err==nil) *err = [JSONModelError errorBadResponse]; - } - - //if there was an error, include the HTTP response and return - if (*err) { - //assign the response to the JSONModel instance - [*err setHttpResponse: [response copy]]; - - //empty respone, return nil instead - if ([responseData length]<1) { - return nil; - } - } - - //return the data fetched from web - return responseData; -} - -+(NSData*)syncRequestDataFromURL:(NSURL*)url method:(NSString*)method params:(NSDictionary*)params headers:(NSDictionary*)headers etag:(NSString**)etag error:(JSONModelError**)err -{ - //create the request body - NSMutableString* paramsString = nil; - - if (params) { - //build a simple url encoded param string - paramsString = [NSMutableString stringWithString:@""]; - for (NSString* key in [[params allKeys] sortedArrayUsingSelector:@selector(compare:)]) { - [paramsString appendFormat:@"%@=%@&", key, [self urlEncode:params[key]] ]; - } - if ([paramsString hasSuffix:@"&"]) { - paramsString = [[NSMutableString alloc] initWithString: [paramsString substringToIndex: paramsString.length-1]]; - } - } - - //set the request params - if ([method isEqualToString:kHTTPMethodGET] && params) { - - //add GET params to the query string - url = [NSURL URLWithString:[NSString stringWithFormat: @"%@%@%@", - [url absoluteString], - [url query] ? @"&" : @"?", - paramsString - ]]; - } - - //call the more general synq request method - return [self syncRequestDataFromURL: url - method: method - requestBody: [method isEqualToString:kHTTPMethodPOST]?[paramsString dataUsingEncoding:NSUTF8StringEncoding]:nil - headers: headers - etag: etag - error: err]; -} - -#pragma mark - Async network request -+(void)JSONFromURLWithString:(NSString*)urlString method:(NSString*)method params:(NSDictionary*)params orBodyString:(NSString*)bodyString completion:(JSONObjectBlock)completeBlock -{ - [self JSONFromURLWithString:urlString - method:method - params:params - orBodyString:bodyString - headers:nil - completion:completeBlock]; -} - -+(void)JSONFromURLWithString:(NSString *)urlString method:(NSString *)method params:(NSDictionary *)params orBodyString:(NSString *)bodyString headers:(NSDictionary *)headers completion:(JSONObjectBlock)completeBlock -{ - [self JSONFromURLWithString:urlString - method:method - params:params - orBodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding] - headers:headers - completion:completeBlock]; -} - -+(void)JSONFromURLWithString:(NSString*)urlString method:(NSString*)method params:(NSDictionary *)params orBodyData:(NSData*)bodyData headers:(NSDictionary*)headers completion:(JSONObjectBlock)completeBlock -{ - NSDictionary* customHeaders = headers; - - dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ - - id jsonObject = nil; - JSONModelError* error = nil; - NSData* responseData = nil; - NSString* etag = nil; - - @try { - if (bodyData) { - responseData = [self syncRequestDataFromURL: [NSURL URLWithString:urlString] - method: method - requestBody: bodyData - headers: customHeaders - etag: &etag - error: &error]; - } else { - responseData = [self syncRequestDataFromURL: [NSURL URLWithString:urlString] - method: method - params: params - headers: customHeaders - etag: &etag - error: &error]; - } - } - @catch (NSException *exception) { - error = [JSONModelError errorBadResponse]; - } - - //step 3: if there's no response so far, return a basic error - if (!responseData && !error) { - //check for false response, but no network error - error = [JSONModelError errorBadResponse]; - } - - //step 4: if there's a response at this and no errors, convert to object - if (error==nil) { - // Note: it is possible to have a valid response with empty response data (204 No Content). - // So only create the JSON object if there is some response data. - if(responseData.length > 0) - { - //convert to an object - jsonObject = [NSJSONSerialization JSONObjectWithData:responseData options:kNilOptions error:&error]; - } - } - //step 4.5: cover an edge case in which meaningful content is return along an error HTTP status code - else if (error && responseData && jsonObject==nil) { - //try to get the JSON object, while preserving the origianl error object - jsonObject = [NSJSONSerialization JSONObjectWithData:responseData options:kNilOptions error:nil]; - } - - //step 5: invoke the complete block - dispatch_async(dispatch_get_main_queue(), ^{ - if (completeBlock) { - completeBlock(jsonObject, error); - } - }); - }); -} - -#pragma mark - request aliases -+(void)getJSONFromURLWithString:(NSString*)urlString completion:(JSONObjectBlock)completeBlock -{ - [self JSONFromURLWithString:urlString method:kHTTPMethodGET - params:nil - orBodyString:nil completion:^(id json, JSONModelError* e) { - if (completeBlock) completeBlock(json, e); - }]; -} - -+(void)getJSONFromURLWithString:(NSString*)urlString params:(NSDictionary*)params completion:(JSONObjectBlock)completeBlock -{ - [self JSONFromURLWithString:urlString method:kHTTPMethodGET - params:params - orBodyString:nil completion:^(id json, JSONModelError* e) { - if (completeBlock) completeBlock(json, e); - }]; -} - -+(void)postJSONFromURLWithString:(NSString*)urlString params:(NSDictionary*)params completion:(JSONObjectBlock)completeBlock -{ - [self JSONFromURLWithString:urlString method:kHTTPMethodPOST - params:params - orBodyString:nil completion:^(id json, JSONModelError* e) { - if (completeBlock) completeBlock(json, e); - }]; - -} - -+(void)postJSONFromURLWithString:(NSString*)urlString bodyString:(NSString*)bodyString completion:(JSONObjectBlock)completeBlock -{ - [self JSONFromURLWithString:urlString method:kHTTPMethodPOST - params:nil - orBodyString:bodyString completion:^(id json, JSONModelError* e) { - if (completeBlock) completeBlock(json, e); - }]; -} - -+(void)postJSONFromURLWithString:(NSString*)urlString bodyData:(NSData*)bodyData completion:(JSONObjectBlock)completeBlock -{ - [self JSONFromURLWithString:urlString method:kHTTPMethodPOST - params:nil - orBodyString:[[NSString alloc] initWithData:bodyData encoding:defaultTextEncoding] - completion:^(id json, JSONModelError* e) { - if (completeBlock) completeBlock(json, e); - }]; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelNetworking/JSONModel+networking.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelNetworking/JSONModel+networking.h deleted file mode 100644 index 88e329ef1a2..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelNetworking/JSONModel+networking.h +++ /dev/null @@ -1,66 +0,0 @@ -// -// JSONModel+networking.h -// -// @version 1.0.2 -// @author Marin Todorov, http://www.touch-code-magazine.com -// - -// Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -// This code is distributed under the terms and conditions of the MIT license. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -// The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - -#import "JSONModel.h" -#import "JSONHTTPClient.h" - -typedef void (^JSONModelBlock)(id model, JSONModelError* err); - -/** - * The JSONModel(networking) class category adds networking to JSONModel. - * It adds initFromURLWithString: initializer, which makes a GET http request - * to the URL given and initializes the model with the returned JSON. - * Use #import "JSONModel+networking.h" to import networking capabilities. - */ -@interface JSONModel(Networking) - -@property (assign, nonatomic) BOOL isLoading; -/** @name Asynchroniously create a model over the network */ -/** - * Asynchroniously create a model over the network. Create a new model instance and initialize it with the JSON fetched from the given URL - * @param urlString the absolute URL address of the JSON feed as a string - * @param completeBlock JSONModelBlock executed upon completion. The JSONModelBlock type is defined as: void (^JSONModelBlock)(JSONModel* model, JSONModelError* e); the first parameter is the initialized model or nil, - * and second parameter holds the model initialization error, if any - */ --(instancetype)initFromURLWithString:(NSString *)urlString completion:(JSONModelBlock)completeBlock; - -/** - * Asynchronously gets the contents of a URL and constructs a JSONModel object from the response. - * The constructed JSONModel object passed as the first parameter to the completion block will be of the same - * class as the receiver. So call this method on yourJSONModel sub-class rather than directly on JSONModel. - * @param urlString The absolute URL of the JSON resource, as a string - * @param completeBlock The block to be called upon completion. - * JSONModelBlock type is defined as: void (^JSONModelBlock)(JSONModel* model, JSONModelError* err); - * The first parameter is the initialized model (of the same JSONModel sub-class as the receiver) or nil if there was an error; - * The second parameter is the initialization error, if any. - */ -+ (void)getModelFromURLWithString:(NSString*)urlString completion:(JSONModelBlock)completeBlock; - -/** - * Asynchronously posts a JSONModel object (as JSON) to a URL and constructs a JSONModel object from the response. - * The constructed JSONModel object passed as the first parameter to the completion block will be of the same - * class as the receiver. So call this method on yourJSONModel sub-class rather than directly on JSONModel. - * @param post A JSONModel object that will be converted to JSON and sent as the POST data to the HTTP request. - * @param urlString The absolute URL of the JSON resource, as a string - * @param completeBlock The block to be called upon completion. - * JSONModelBlock type is defined as: void (^JSONModelBlock)(JSONModel* model, JSONModelError* err); - * The first parameter is the initialized model (of the same JSONModel sub-class as the receiver) or nil if there was an error; - * The second parameter is the initialization error, if any. - */ -+ (void)postModel:(JSONModel*)post toURLWithString:(NSString*)urlString completion:(JSONModelBlock)completeBlock; - - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelNetworking/JSONModel+networking.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelNetworking/JSONModel+networking.m deleted file mode 100644 index 7d4d1ff3768..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelNetworking/JSONModel+networking.m +++ /dev/null @@ -1,109 +0,0 @@ -// -// JSONModel+networking.m -// -// @version 1.0.2 -// @author Marin Todorov, http://www.touch-code-magazine.com -// - -// Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -// This code is distributed under the terms and conditions of the MIT license. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -// The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - -#import "JSONModel+networking.h" -#import "JSONHTTPClient.h" - -BOOL _isLoading; - -@implementation JSONModel(Networking) - -@dynamic isLoading; - --(BOOL)isLoading -{ - return _isLoading; -} - --(void)setIsLoading:(BOOL)isLoading -{ - _isLoading = isLoading; -} - --(instancetype)initFromURLWithString:(NSString *)urlString completion:(JSONModelBlock)completeBlock -{ - id placeholder = [super init]; - __block id blockSelf = self; - - if (placeholder) { - //initialization - self.isLoading = YES; - - [JSONHTTPClient getJSONFromURLWithString:urlString - completion:^(NSDictionary *json, JSONModelError* e) { - - JSONModelError* initError = nil; - blockSelf = [self initWithDictionary:json error:&initError]; - - if (completeBlock) { - dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1 * NSEC_PER_MSEC), dispatch_get_main_queue(), ^{ - completeBlock(blockSelf, e?e:initError ); - }); - } - - self.isLoading = NO; - - }]; - } - return placeholder; -} - -+ (void)getModelFromURLWithString:(NSString*)urlString completion:(JSONModelBlock)completeBlock -{ - [JSONHTTPClient getJSONFromURLWithString:urlString - completion:^(NSDictionary* jsonDict, JSONModelError* err) - { - JSONModel* model = nil; - - if(err == nil) - { - model = [[self alloc] initWithDictionary:jsonDict error:&err]; - } - - if(completeBlock != nil) - { - dispatch_async(dispatch_get_main_queue(), ^ - { - completeBlock(model, err); - }); - } - }]; -} - -+ (void)postModel:(JSONModel*)post toURLWithString:(NSString*)urlString completion:(JSONModelBlock)completeBlock -{ - [JSONHTTPClient postJSONFromURLWithString:urlString - bodyString:[post toJSONString] - completion:^(NSDictionary* jsonDict, JSONModelError* err) - { - JSONModel* model = nil; - - if(err == nil) - { - model = [[self alloc] initWithDictionary:jsonDict error:&err]; - } - - if(completeBlock != nil) - { - dispatch_async(dispatch_get_main_queue(), ^ - { - completeBlock(model, err); - }); - } - }]; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelTransformations/JSONKeyMapper.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelTransformations/JSONKeyMapper.h deleted file mode 100644 index 75822c6e6fa..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelTransformations/JSONKeyMapper.h +++ /dev/null @@ -1,95 +0,0 @@ -// -// JSONKeyMapper.h -// -// @version 1.0.2 -// @author Marin Todorov, http://www.touch-code-magazine.com -// - -// Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -// This code is distributed under the terms and conditions of the MIT license. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -// The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - -#import - -typedef NSString* (^JSONModelKeyMapBlock)(NSString* keyName); - -/** - * **You won't need to create or store instances of this class yourself.** If you want your model - * to have different property names than the JSON feed keys, look below on how to - * make your model use a key mapper. - * - * For example if you consume JSON from twitter - * you get back underscore_case style key names. For example: - * - *
"profile_sidebar_border_color": "0094C2",
- * "profile_background_tile": false,
- * - * To comply with Obj-C accepted camelCase property naming for your classes, - * you need to provide mapping between JSON keys and ObjC property names. - * - * In your model overwrite the +(JSONKeyMapper*)keyMapper method and provide a JSONKeyMapper - * instance to convert the key names for your model. - * - * If you need custom mapping it's as easy as: - *
- * +(JSONKeyMapper*)keyMapper {
- *   return [[JSONKeyMapper alloc] initWithDictionary:@{@"crazy_JSON_name":@"myCamelCaseName"}];
- * }
- * 
- * In case you want to handle underscore_case, **use the predefined key mapper**, like so: - *
- * +(JSONKeyMapper*)keyMapper {
- *   return [JSONKeyMapper mapperFromUnderscoreCaseToCamelCase];
- * }
- * 
- */ -@interface JSONKeyMapper : NSObject - -/** @name Name convertors */ -/** Block, which takes in a JSON key and converts it to the corresponding property name */ -@property (readonly, nonatomic) JSONModelKeyMapBlock JSONToModelKeyBlock; - -/** Block, which takes in a property name and converts it to the corresponding JSON key name */ -@property (readonly, nonatomic) JSONModelKeyMapBlock modelToJSONKeyBlock; - -/** Combined convertor method -* @param value the source name -* @param importing YES invokes JSONToModelKeyBlock, NO - modelToJSONKeyBlock -* @return JSONKeyMapper instance -*/ --(NSString*)convertValue:(NSString*)value isImportingToModel:(BOOL)importing; - -/** @name Creating a key mapper */ - -/** - * Creates a JSONKeyMapper instance, based on the two blocks you provide this initializer. - * The two parameters take in a JSONModelKeyMapBlock block: - *
NSString* (^JSONModelKeyMapBlock)(NSString* keyName)
- * The block takes in a string and returns the transformed (if at all) string. - * @param toModel transforms JSON key name to your model property name - * @param toJSON transforms your model property name to a JSON key - */ --(instancetype)initWithJSONToModelBlock:(JSONModelKeyMapBlock)toModel - modelToJSONBlock:(JSONModelKeyMapBlock)toJSON; - -/** - * Creates a JSONKeyMapper instance, based on the mapping you provide - * in the map parameter. Use the JSON key names as keys, your JSONModel - * property names as values. - * @param map map dictionary, in the format:
@{@"crazy_JSON_name":@"myCamelCaseName"}
- * @return JSONKeyMapper instance - */ --(instancetype)initWithDictionary:(NSDictionary*)map; - -/** - * Creates a JSONKeyMapper, which converts underscore_case to camelCase and vice versa. - */ -+(instancetype)mapperFromUnderscoreCaseToCamelCase; - -+(instancetype)mapperFromUpperCaseToLowerCase; -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelTransformations/JSONKeyMapper.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelTransformations/JSONKeyMapper.m deleted file mode 100644 index c3007dadae3..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelTransformations/JSONKeyMapper.m +++ /dev/null @@ -1,174 +0,0 @@ -// -// JSONKeyMapper.m -// -// @version 1.0.2 -// @author Marin Todorov, http://www.touch-code-magazine.com -// - -// Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -// This code is distributed under the terms and conditions of the MIT license. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -// The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - -#import "JSONKeyMapper.h" - -@interface JSONKeyMapper() -@property (nonatomic, strong) NSMutableDictionary *toModelMap; -@property (nonatomic, strong) NSMutableDictionary *toJSONMap; -@end - -@implementation JSONKeyMapper - --(instancetype)init -{ - self = [super init]; - if (self) { - //initialization - self.toModelMap = [NSMutableDictionary dictionary]; - self.toJSONMap = [NSMutableDictionary dictionary]; - } - return self; -} - --(instancetype)initWithJSONToModelBlock:(JSONModelKeyMapBlock)toModel - modelToJSONBlock:(JSONModelKeyMapBlock)toJSON -{ - self = [self init]; - - if (self) { - __weak JSONKeyMapper *myself = self; - //the json to model convertion block - _JSONToModelKeyBlock = ^NSString*(NSString* keyName) { - - //try to return cached transformed key - if (myself.toModelMap[keyName]) return myself.toModelMap[keyName]; - - //try to convert the key, and store in the cache - NSString* result = toModel(keyName); - myself.toModelMap[keyName] = result; - return result; - }; - - _modelToJSONKeyBlock = ^NSString*(NSString* keyName) { - - //try to return cached transformed key - if (myself.toJSONMap[keyName]) return myself.toJSONMap[keyName]; - - //try to convert the key, and store in the cache - NSString* result = toJSON(keyName); - myself.toJSONMap[keyName] = result; - return result; - - }; - - } - - return self; -} - --(instancetype)initWithDictionary:(NSDictionary*)map -{ - self = [super init]; - if (self) { - //initialize - - NSMutableDictionary* userToModelMap = [NSMutableDictionary dictionaryWithDictionary: map]; - NSMutableDictionary* userToJSONMap = [NSMutableDictionary dictionaryWithObjects:map.allKeys forKeys:map.allValues]; - - _JSONToModelKeyBlock = ^NSString*(NSString* keyName) { - NSString* result = [userToModelMap valueForKeyPath: keyName]; - return result?result:keyName; - }; - - _modelToJSONKeyBlock = ^NSString*(NSString* keyName) { - NSString* result = [userToJSONMap valueForKeyPath: keyName]; - return result?result:keyName; - }; - } - - return self; -} - --(NSString*)convertValue:(NSString*)value isImportingToModel:(BOOL)importing -{ - return !importing?_JSONToModelKeyBlock(value):_modelToJSONKeyBlock(value); -} - -+(instancetype)mapperFromUnderscoreCaseToCamelCase -{ - JSONModelKeyMapBlock toModel = ^ NSString* (NSString* keyName) { - - //bail early if no transformation required - if ([keyName rangeOfString:@"_"].location==NSNotFound) return keyName; - - //derive camel case out of underscore case - NSString* camelCase = [keyName capitalizedString]; - camelCase = [camelCase stringByReplacingOccurrencesOfString:@"_" withString:@""]; - camelCase = [camelCase stringByReplacingCharactersInRange:NSMakeRange(0, 1) withString:[[camelCase substringToIndex:1] lowercaseString] ]; - - return camelCase; - }; - - JSONModelKeyMapBlock toJSON = ^ NSString* (NSString* keyName) { - - NSMutableString* result = [NSMutableString stringWithString:keyName]; - NSRange upperCharRange = [result rangeOfCharacterFromSet:[NSCharacterSet uppercaseLetterCharacterSet]]; - - //handle upper case chars - while ( upperCharRange.location!=NSNotFound) { - - NSString* lowerChar = [[result substringWithRange:upperCharRange] lowercaseString]; - [result replaceCharactersInRange:upperCharRange - withString:[NSString stringWithFormat:@"_%@", lowerChar]]; - upperCharRange = [result rangeOfCharacterFromSet:[NSCharacterSet uppercaseLetterCharacterSet]]; - } - - //handle numbers - NSRange digitsRange = [result rangeOfCharacterFromSet:[NSCharacterSet decimalDigitCharacterSet]]; - while ( digitsRange.location!=NSNotFound) { - - NSRange digitsRangeEnd = [result rangeOfString:@"\\D" options:NSRegularExpressionSearch range:NSMakeRange(digitsRange.location, result.length-digitsRange.location)]; - if (digitsRangeEnd.location == NSNotFound) { - //spands till the end of the key name - digitsRangeEnd = NSMakeRange(result.length, 1); - } - - NSRange replaceRange = NSMakeRange(digitsRange.location, digitsRangeEnd.location - digitsRange.location); - NSString* digits = [result substringWithRange:replaceRange]; - - [result replaceCharactersInRange:replaceRange withString:[NSString stringWithFormat:@"_%@", digits]]; - digitsRange = [result rangeOfCharacterFromSet:[NSCharacterSet decimalDigitCharacterSet] options:kNilOptions range:NSMakeRange(digitsRangeEnd.location+1, result.length-digitsRangeEnd.location-1)]; - } - - return result; - }; - - return [[self alloc] initWithJSONToModelBlock:toModel - modelToJSONBlock:toJSON]; - -} - -+(instancetype)mapperFromUpperCaseToLowerCase -{ - JSONModelKeyMapBlock toModel = ^ NSString* (NSString* keyName) { - NSString*lowercaseString = [keyName lowercaseString]; - return lowercaseString; - }; - - JSONModelKeyMapBlock toJSON = ^ NSString* (NSString* keyName) { - - NSString *uppercaseString = [keyName uppercaseString]; - - return uppercaseString; - }; - - return [[self alloc] initWithJSONToModelBlock:toModel - modelToJSONBlock:toJSON]; - -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelTransformations/JSONValueTransformer.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelTransformations/JSONValueTransformer.h deleted file mode 100644 index 8c40ce859cb..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelTransformations/JSONValueTransformer.h +++ /dev/null @@ -1,230 +0,0 @@ -// -// JSONValueTransformer.h -// -// @version 1.0.2 -// @author Marin Todorov, http://www.touch-code-magazine.com -// - -// Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -// This code is distributed under the terms and conditions of the MIT license. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -// The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - -#import -#import "JSONModelArray.h" - -///////////////////////////////////////////////////////////////////////////////////////////// - -#pragma mark - extern definitons -/** - * Boolean function to check for null values. Handy when you need to both check - * for nil and [NSNUll null] - */ -extern BOOL isNull(id value); - -///////////////////////////////////////////////////////////////////////////////////////////// - -#pragma mark - JSONValueTransformer interface -/** - * **You don't need to call methods of this class manually.** - * - * Class providing methods to transform values from one class to another. - * You are given a number of built-in transformers, but you are encouraged to - * extend this class with your own categories to add further value transformers. - * Just few examples of what can you add to JSONValueTransformer: hex colors in JSON to UIColor, - * hex numbers in JSON to NSNumber model properties, base64 encoded strings in JSON to UIImage properties, and more. - * - * The class is invoked by JSONModel while transforming incoming - * JSON types into your target class property classes, and vice versa. - * One static copy is create and store in the JSONModel class scope. - */ -@interface JSONValueTransformer : NSObject - -@property (strong, nonatomic, readonly) NSDictionary* primitivesNames; - -/** @name Resolving cluster class names */ -/** - * This method returns the ubmrella class for any standard class cluster members. - * For example returns NSString when given as input NSString, NSMutableString, __CFString and __CFConstantString - * The method currently looksup a pre-defined list. - * @param sourceClass the class to get the umrella class for - * @return Class - */ -+(Class)classByResolvingClusterClasses:(Class)sourceClass; - -#pragma mark - NSMutableString <-> NSString -/** @name Transforming to Mutable copies */ -/** - * Trasnforms a string value to a mutable string value - * @param string incoming string - * @return mutable string - */ --(NSMutableString*)NSMutableStringFromNSString:(NSString*)string; - -#pragma mark - NSMutableArray <-> NSArray -/** - * Trasnforms an array to a mutable array - * @param array incoming array - * @return mutable array - */ --(NSMutableArray*)NSMutableArrayFromNSArray:(NSArray*)array; - -#pragma mark - NS(Mutable)Array <- JSONModelArray -/** - * Trasnforms an array to a JSONModelArray - * @param array incoming array - * @return JSONModelArray - */ --(NSArray*)NSArrayFromJSONModelArray:(JSONModelArray*)array; --(NSMutableArray*)NSMutableArrayFromJSONModelArray:(JSONModelArray*)array; - -#pragma mark - NSMutableDictionary <-> NSDictionary -/** - * Trasnforms a dictionary to a mutable dictionary - * @param dict incoming dictionary - * @return mutable dictionary - */ --(NSMutableDictionary*)NSMutableDictionaryFromNSDictionary:(NSDictionary*)dict; - -#pragma mark - NSSet <-> NSArray -/** @name Transforming Sets */ -/** - * Transforms an array to a set - * @param array incoming array - * @return set with the array's elements - */ --(NSSet*)NSSetFromNSArray:(NSArray*)array; - -/** - * Transforms an array to a mutable set - * @param array incoming array - * @return mutable set with the array's elements - */ --(NSMutableSet*)NSMutableSetFromNSArray:(NSArray*)array; - -/** - * Transforms a set to an array - * @param set incoming set - * @return an array with the set's elements - */ --(NSArray*)JSONObjectFromNSSet:(NSSet*)set; - -/** - * Transforms a mutable set to an array - * @param set incoming mutable set - * @return an array with the set's elements - */ --(NSArray*)JSONObjectFromNSMutableSet:(NSMutableSet*)set; - -#pragma mark - BOOL <-> number/string -/** @name Transforming JSON types */ -/** - * Transforms a number object to a bool number object - * @param number the number to convert - * @return the resulting number - */ --(NSNumber*)BOOLFromNSNumber:(NSNumber*)number; - -/** - * Transforms a number object to a bool number object - * @param string the string value to convert, "0" converts to NO, everything else to YES - * @return the resulting number - */ --(NSNumber*)BOOLFromNSString:(NSString*)string; - -/** - * Transforms a BOOL value to a bool number object - * @param number an NSNumber value coming from the model - * @return the result number - */ --(NSNumber*)JSONObjectFromBOOL:(NSNumber*)number; - -#pragma mark - string <-> number -/** - * Transforms a string object to a number object - * @param string the string to convert - * @return the resulting number - */ --(NSNumber*)NSNumberFromNSString:(NSString*)string; - -/** - * Transforms a number object to a string object - * @param number the number to convert - * @return the resulting string - */ --(NSString*)NSStringFromNSNumber:(NSNumber*)number; - -/** - * Transforms a string object to a nsdecimalnumber object - * @param string the string to convert - * @return the resulting number - */ --(NSDecimalNumber*)NSDecimalNumberFromNSString:(NSString*)string; - -/** - * Transforms a nsdecimalnumber object to a string object - * @param number the number to convert - * @return the resulting string - */ --(NSString*)NSStringFromNSDecimalNumber:(NSDecimalNumber*)number; - - -#pragma mark - string <-> url -/** @name Transforming URLs */ -/** - * Transforms a string object to an NSURL object - * @param string the string to convert - * @return the resulting url object - */ --(NSURL*)NSURLFromNSString:(NSString*)string; - -/** - * Transforms an NSURL object to a string - * @param url the url object to convert - * @return the resulting string - */ --(NSString*)JSONObjectFromNSURL:(NSURL*)url; - -#pragma mark - string <-> time zone - -/** @name Transforming NSTimeZone */ -/** - * Transforms a string object to an NSTimeZone object - * @param string the string to convert - * @return the resulting NSTimeZone object - */ -- (NSTimeZone *)NSTimeZoneFromNSString:(NSString*)string; - -/** - * Transforms an NSTimeZone object to a string - * @param timeZone the time zone object to convert - * @return the resulting string - */ -- (NSString *)JSONObjectFromNSTimeZone:(NSTimeZone *)timeZone; - -#pragma mark - string <-> date -/** @name Transforming Dates */ -/** - * The following two methods are not public. This way if there is a category on converting - * dates it'll override them. If there isn't a category the default methods found in the .m - * file will be invoked. If these are public a warning is produced at the point of overriding - * them in a category, so they have to stay hidden here. - */ - -//-(NSDate*)NSDateFromNSString:(NSString*)string; -//-(NSString*)JSONObjectFromNSDate:(NSDate*)date; - -#pragma mark - number <-> date - -/** - * Transforms a number to an NSDate object - * @param number the number to convert - * @return the resulting date - */ -- (NSDate*)NSDateFromNSNumber:(NSNumber*)number; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelTransformations/JSONValueTransformer.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelTransformations/JSONValueTransformer.m deleted file mode 100644 index 4e5bc4a4772..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/JSONModel/JSONModelTransformations/JSONValueTransformer.m +++ /dev/null @@ -1,272 +0,0 @@ -// -// JSONValueTransformer.m -// -// @version 1.0.2 -// @author Marin Todorov, http://www.touch-code-magazine.com -// - -// Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -// This code is distributed under the terms and conditions of the MIT license. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -// The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - -#import "JSONValueTransformer.h" -#import "JSONModelArray.h" - -#pragma mark - functions -extern BOOL isNull(id value) -{ - if (!value) return YES; - if ([value isKindOfClass:[NSNull class]]) return YES; - - return NO; -} - -@implementation JSONValueTransformer - --(id)init -{ - self = [super init]; - if (self) { - _primitivesNames = @{@"f":@"float", @"i":@"int", @"d":@"double", @"l":@"long", @"c":@"BOOL", @"s":@"short", @"q":@"long", - //and some famos aliases of primitive types - // BOOL is now "B" on iOS __LP64 builds - @"I":@"NSInteger", @"Q":@"NSUInteger", @"B":@"BOOL", - - @"@?":@"Block"}; - } - return self; -} - -+(Class)classByResolvingClusterClasses:(Class)sourceClass -{ - //check for all variations of strings - if ([sourceClass isSubclassOfClass:[NSString class]]) { - return [NSString class]; - } - - //check for all variations of numbers - if ([sourceClass isSubclassOfClass:[NSNumber class]]) { - return [NSNumber class]; - } - - //check for all variations of dictionaries - if ([sourceClass isSubclassOfClass:[NSArray class]]) { - return [NSArray class]; - } - - //check for all variations of arrays - if ([sourceClass isSubclassOfClass:[NSDictionary class]]) { - return [NSDictionary class]; - } - - //check for all variations of dates - if ([sourceClass isSubclassOfClass:[NSDate class]]) { - return [NSDate class]; - } - - //no cluster parent class found - return sourceClass; -} - -#pragma mark - NSMutableString <-> NSString --(NSMutableString*)NSMutableStringFromNSString:(NSString*)string -{ - return [NSMutableString stringWithString:string]; -} - -#pragma mark - NSMutableArray <-> NSArray --(NSMutableArray*)NSMutableArrayFromNSArray:(NSArray*)array -{ - if ([array isKindOfClass:[JSONModelArray class]]) { - //it's a jsonmodelarray already, just return it - return (id)array; - } - - return [NSMutableArray arrayWithArray:array]; -} - -#pragma mark - NS(Mutable)Array <- JSONModelArray --(NSArray*)NSArrayFromJSONModelArray:(JSONModelArray*)array -{ - return (NSMutableArray*)array; -} - --(NSMutableArray*)NSMutableArrayFromJSONModelArray:(JSONModelArray*)array -{ - return (NSMutableArray*)array; -} - - -#pragma mark - NSMutableDictionary <-> NSDictionary --(NSMutableDictionary*)NSMutableDictionaryFromNSDictionary:(NSDictionary*)dict -{ - return [NSMutableDictionary dictionaryWithDictionary:dict]; -} - -#pragma mark - NSSet <-> NSArray --(NSSet*)NSSetFromNSArray:(NSArray*)array -{ - return [NSSet setWithArray:array]; -} - --(NSMutableSet*)NSMutableSetFromNSArray:(NSArray*)array -{ - return [NSMutableSet setWithArray:array]; -} - --(id)JSONObjectFromNSSet:(NSSet*)set -{ - return [set allObjects]; -} - --(id)JSONObjectFromNSMutableSet:(NSMutableSet*)set -{ - return [set allObjects]; -} - -// -// 0 converts to NO, everything else converts to YES -// - -#pragma mark - BOOL <-> number/string --(NSNumber*)BOOLFromNSNumber:(NSNumber*)number -{ - if (isNull(number)) return [NSNumber numberWithBool:NO]; - return [NSNumber numberWithBool: number.intValue==0?NO:YES]; -} - --(NSNumber*)BOOLFromNSString:(NSString*)string -{ - if (string != nil && - ([string caseInsensitiveCompare:@"true"] == NSOrderedSame || - [string caseInsensitiveCompare:@"yes"] == NSOrderedSame)) { - return [NSNumber numberWithBool:YES]; - } - return [NSNumber numberWithBool: ([string intValue]==0)?NO:YES]; -} - --(NSNumber*)JSONObjectFromBOOL:(NSNumber*)number -{ - return [NSNumber numberWithBool: number.intValue==0?NO:YES]; -} - -#pragma mark - string/number <-> float --(float)floatFromObject:(id)obj -{ - return [obj floatValue]; -} - --(float)floatFromNSString:(NSString*)string -{ - return [self floatFromObject:string]; -} - --(float)floatFromNSNumber:(NSNumber*)number -{ - return [self floatFromObject:number]; -} - --(NSNumber*)NSNumberFromfloat:(float)f -{ - return [NSNumber numberWithFloat:f]; -} - -#pragma mark - string <-> number --(NSNumber*)NSNumberFromNSString:(NSString*)string -{ - return [NSNumber numberWithFloat: [string doubleValue]]; -} - --(NSString*)NSStringFromNSNumber:(NSNumber*)number -{ - return [number stringValue]; -} - --(NSDecimalNumber*)NSDecimalNumberFromNSString:(NSString*)string -{ - return [NSDecimalNumber decimalNumberWithString:string]; -} - --(NSString*)NSStringFromNSDecimalNumber:(NSDecimalNumber*)number -{ - return [number stringValue]; -} - -#pragma mark - string <-> url --(NSURL*)NSURLFromNSString:(NSString*)string -{ - return [NSURL URLWithString:[string stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; -} - --(NSString*)JSONObjectFromNSURL:(NSURL*)url -{ - return [url absoluteString]; -} - -#pragma mark - string <-> date --(NSDateFormatter*)importDateFormatter -{ - static dispatch_once_t onceInput; - static NSDateFormatter* inputDateFormatter; - dispatch_once(&onceInput, ^{ - inputDateFormatter = [[NSDateFormatter alloc] init]; - [inputDateFormatter setLocale:[[NSLocale alloc] initWithLocaleIdentifier:@"en_US_POSIX"]]; - [inputDateFormatter setDateFormat:@"yyyy-MM-dd'T'HHmmssZZZ"]; - }); - return inputDateFormatter; -} - --(NSDate*)__NSDateFromNSString:(NSString*)string -{ - string = [string stringByReplacingOccurrencesOfString:@":" withString:@""]; // this is such an ugly code, is this the only way? - return [self.importDateFormatter dateFromString: string]; -} - --(NSString*)__JSONObjectFromNSDate:(NSDate*)date -{ - static dispatch_once_t onceOutput; - static NSDateFormatter *outputDateFormatter; - dispatch_once(&onceOutput, ^{ - outputDateFormatter = [[NSDateFormatter alloc] init]; - [outputDateFormatter setLocale:[[NSLocale alloc] initWithLocaleIdentifier:@"en_US_POSIX"]]; - [outputDateFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:ssZZZ"]; - }); - return [outputDateFormatter stringFromDate:date]; -} - -#pragma mark - number <-> date -- (NSDate*)NSDateFromNSNumber:(NSNumber*)number -{ - return [NSDate dateWithTimeIntervalSince1970:number.doubleValue]; -} - -#pragma mark - string <-> NSTimeZone - -- (NSTimeZone *)NSTimeZoneFromNSString:(NSString *)string { - return [NSTimeZone timeZoneWithName:string]; -} - -- (id)JSONObjectFromNSTimeZone:(NSTimeZone *)timeZone { - return [timeZone name]; -} - -#pragma mark - hidden transform for empty dictionaries -//https://github.com/icanzilb/JSONModel/issues/163 --(NSDictionary*)__NSDictionaryFromNSArray:(NSArray*)array -{ - if (array.count==0) return @{}; - return (id)array; -} - --(NSMutableDictionary*)__NSMutableDictionaryFromNSArray:(NSArray*)array -{ - if (array.count==0) return [[self __NSDictionaryFromNSArray:array] mutableCopy]; - return (id)array; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/LICENSE_jsonmodel.txt b/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/LICENSE_jsonmodel.txt deleted file mode 100644 index cbcdb3b7d5e..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/LICENSE_jsonmodel.txt +++ /dev/null @@ -1,23 +0,0 @@ -JSONModel - -Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -This code is distributed under the terms and conditions of the MIT license. - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in the -Software without restriction, including without limitation the rights to use, copy, -modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, -and to permit persons to whom the Software is furnished to do so, subject to the -following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, -INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF -CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE -OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/README.md b/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/README.md deleted file mode 100644 index 996fe0f9683..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/JSONModel/README.md +++ /dev/null @@ -1,527 +0,0 @@ -## Magical Data Modelling Framework for JSON - -### Version 1.0.2 - -#####NB: Swift works in a different way under the hood than Objective-C. Therefore I can't find a way to re-create JSONModel in Swift. JSONModel in Objective-C works in Swift apps through CocoaPods or as an imported Objective-C library. - ---- -If you like JSONModel and use it, could you please: - - * star this repo - - * send me some feedback. Thanks! - ---- - -![JSONModel for iOS and OSX](http://jsonmodel.com/img/jsonmodel_logolike.png) - -JSONModel is a library, which allows rapid creation of smart data models. You can use it in your iOS or OSX apps. - -JSONModel automatically introspects your model classes and the structure of your JSON input and reduces drastically the amount of code you have to write. - -[![](http://www.touch-code-magazine.com/img/json.png)](http://www.touch-code-magazine.com/img/json.png) - - ------------------------------------- -Adding JSONModel to your project -==================================== - -#### Requirements - -* ARC only; iOS 5.0+ / OSX 10.7+ -* **SystemConfiguration.framework** - -#### Get it as: 1) source files - -1. Download the JSONModel repository as a [zip file](https://github.com/icanzilb/JSONModel/archive/master.zip) or clone it -2. Copy the JSONModel sub-folder into your Xcode project -3. Link your app to SystemConfiguration.framework - -#### or 2) via Cocoa pods - -In your project's **Podfile** add the JSONModel pod: - -```ruby -pod 'JSONModel' -``` -If you want to read more about CocoaPods, have a look at [this short tutorial](http://www.raywenderlich.com/12139/introduction-to-cocoapods). - -#### Source code documentation -The source code includes class docs, which you can build yourself and import into Xcode: - -1. If you don't already have [appledoc](http://gentlebytes.com/appledoc/) installed, install it with [homebrew](http://brew.sh/) by typing `brew install appledoc`. -2. Install the documentation into Xcode by typing `appledoc .` in the root directory of the repository. -3. Restart Xcode if it's already running. - ------------------------------------- -Basic usage -==================================== - -Consider you have a JSON like this: -```javascript -{"id":"10", "country":"Germany", "dialCode": 49, "isInEurope":true} -``` - - * Create a new Objective-C class for your data model and make it inherit the JSONModel class. - * Declare properties in your header file with the name of the JSON keys: - -```objective-c -#import "JSONModel.h" - -@interface CountryModel : JSONModel - -@property (assign, nonatomic) int id; -@property (strong, nonatomic) NSString* country; -@property (strong, nonatomic) NSString* dialCode; -@property (assign, nonatomic) BOOL isInEurope; - -@end -``` -There's no need to do anything in the **.m** file. - - * Initialize your model with data: - -```objective-c -#import "CountryModel.h" -... - -NSString* json = (fetch here JSON from Internet) ... -NSError* err = nil; -CountryModel* country = [[CountryModel alloc] initWithString:json error:&err]; - -``` - -If the validation of the JSON passes you have all the corresponding properties in your model populated from the JSON. JSONModel will also try to convert as much data to the types you expect, in the example above it will: - -* convert "id" from string (in the JSON) to an int for your class -* just copy country's value -* convert dialCode from number (in the JSON) to an NSString value -* finally convert isInEurope to a BOOL for your BOOL property - -And the good news is all you had to do is define the properties and their expected types. - -------- -#### Online tutorials - - -Official website: [http://www.jsonmodel.com](http://www.jsonmodel.com) - -Class docs online: [http://jsonmodel.com/docs/](http://jsonmodel.com/docs/) - -Step-by-step tutorials: - - * [How to fetch and parse JSON by using data models](http://www.touch-code-magazine.com/how-to-fetch-and-parse-json-by-using-data-models/) - - * [Performance optimisation for working with JSON feeds via JSONModel](http://www.touch-code-magazine.com/performance-optimisation-for-working-with-json-feeds-via-jsonmodel/) - - * [How to make a YouTube app using MGBox and JSONModel](http://www.touch-code-magazine.com/how-to-make-a-youtube-app-using-mgbox-and-jsonmodel/) - -------- -Examples -======= - -#### Automatic name based mapping - - - - - -
-
-{
-  "id": "123",
-  "name": "Product name",
-  "price": 12.95
-}
-
-
-
-@interface ProductModel : JSONModel
-@property (assign, nonatomic) int id;
-@property (strong, nonatomic) NSString* name;
-@property (assign, nonatomic) float price;
-@end
-
-@implementation ProductModel
-@end
-
-
- -#### Model cascading (models including other models) - - - - - -
-
-{
-  "order_id": 104,
-  "total_price": 13.45,
-  "product" : {
-    "id": "123",
-    "name": "Product name",
-    "price": 12.95
-  }
-}
-
-
-
-@interface OrderModel : JSONModel
-@property (assign, nonatomic) int order_id;
-@property (assign, nonatomic) float total_price;
-@property (strong, nonatomic) ProductModel* product;
-@end
-
-@implementation OrderModel
-@end
-
-
- -#### Model collections - - - - - -
-
-{
-  "order_id": 104,
-  "total_price": 103.45,
-  "products" : [
-    {
-      "id": "123",
-      "name": "Product #1",
-      "price": 12.95
-    },
-    {
-      "id": "137",
-      "name": "Product #2",
-      "price": 82.95
-    }
-  ]
-}
-
-
-
-@protocol ProductModel
-@end
-
-@interface ProductModel : JSONModel
-@property (assign, nonatomic) int id;
-@property (strong, nonatomic) NSString* name;
-@property (assign, nonatomic) float price;
-@end
-
-@implementation ProductModel
-@end
-
-@interface OrderModel : JSONModel
-@property (assign, nonatomic) int order_id;
-@property (assign, nonatomic) float total_price;
-@property (strong, nonatomic) NSArray<ProductModel>* products;
-@end
-
-@implementation OrderModel
-@end
-
-
- -#### Key mapping - - - - - -
-
-{
-  "order_id": 104,
-  "order_details" : [
-    {
-      "name": "Product#1",
-      "price": {
-        "usd": 12.95
-      }
-    }
-  ]
-}
-
-
-
-@interface OrderModel : JSONModel
-@property (assign, nonatomic) int id;
-@property (assign, nonatomic) float price;
-@property (strong, nonatomic) NSString* productName;
-@end
-
-@implementation OrderModel
-
-+(JSONKeyMapper*)keyMapper
-{
-  return [[JSONKeyMapper alloc] initWithDictionary:@{
-    @"order_id": @"id",
-    @"order_details.name": @"productName",
-    @"order_details.price.usd": @"price"
-  }];
-}
-
-@end
-
-
- -#### Global key mapping (applies to all models in your app) - - - - -
-
-[JSONModel setGlobalKeyMapper:[
-    [JSONKeyMapper alloc] initWithDictionary:@{
-      @"item_id":@"ID",
-      @"item.name": @"itemName"
-   }]
-];
-
-
-
- -#### Map automatically under_score case to camelCase - - - - - -
-
-{
-  "order_id": 104,
-  "order_product" : @"Product#1",
-  "order_price" : 12.95
-}
-
-
-
-@interface OrderModel : JSONModel
-
-@property (assign, nonatomic) int orderId;
-@property (assign, nonatomic) float orderPrice;
-@property (strong, nonatomic) NSString* orderProduct;
-
-@end
-
-@implementation OrderModel
-
-+(JSONKeyMapper*)keyMapper
-{
-  return [JSONKeyMapper mapperFromUnderscoreCaseToCamelCase];
-}
-
-@end
-
-
- -#### Optional properties (i.e. can be missing or null) - - - - - -
-
-{
-  "id": "123",
-  "name": null,
-  "price": 12.95
-}
-
-
-
-@interface ProductModel : JSONModel
-@property (assign, nonatomic) int id;
-@property (strong, nonatomic) NSString<Optional>* name;
-@property (assign, nonatomic) float price;
-@property (strong, nonatomic) NSNumber<Optional>* uuid;
-@end
-
-@implementation ProductModel
-@end
-
-
- -#### Ignored properties (i.e. JSONModel completely ignores them) - - - - - -
-
-{
-  "id": "123",
-  "name": null
-}
-
-
-
-@interface ProductModel : JSONModel
-@property (assign, nonatomic) int id;
-@property (strong, nonatomic) NSString<Ignore>* customProperty;
-@end
-
-@implementation ProductModel
-@end
-
-
- - -#### Make all model properties optional (avoid if possible) - - - - -
-
-@implementation ProductModel
-+(BOOL)propertyIsOptional:(NSString*)propertyName
-{
-  return YES;
-}
-@end
-
-
- - -#### Lazy convert collection items from dictionaries to models - - - - - -
-
-{
-  "order_id": 104,
-  "total_price": 103.45,
-  "products" : [
-    {
-      "id": "123",
-      "name": "Product #1",
-      "price": 12.95
-    },
-    {
-      "id": "137",
-      "name": "Product #2",
-      "price": 82.95
-    }
-  ]
-}
-
-
-
-@protocol ProductModel
-@end
-
-@interface ProductModel : JSONModel
-@property (assign, nonatomic) int id;
-@property (strong, nonatomic) NSString* name;
-@property (assign, nonatomic) float price;
-@end
-
-@implementation ProductModel
-@end
-
-@interface OrderModel : JSONModel
-@property (assign, nonatomic) int order_id;
-@property (assign, nonatomic) float total_price;
-@property (strong, nonatomic) NSArray<ProductModel, ConvertOnDemand>* products;
-@end
-
-@implementation OrderModel
-@end
-
-
- -#### Using the built-in thin HTTP client - -```objective-c - -//add extra headers -[[JSONHTTPClient requestHeaders] setValue:@"MySecret" forKey:@"AuthorizationToken"]; - -//make post, get requests -[JSONHTTPClient postJSONFromURLWithString:@"http://mydomain.com/api" - params:@{@"postParam1":@"value1"} - completion:^(id json, JSONModelError *err) { - - //check err, process json ... - - }]; -``` - -#### Export model to NSDictionary or to JSON text - -```objective-c - -ProductModel* pm = [[ProductModel alloc] initWithString:jsonString error:nil]; -pm.name = @"Changed Name"; - -//convert to dictionary -NSDictionary* dict = [pm toDictionary]; - -//convert to text -NSString* string = [pm toJSONString]; - -``` - -#### Custom data transformers - -```objective-c - -@implementation JSONValueTransformer (CustomTransformer) - -- (NSDate *)NSDateFromNSString:(NSString*)string { - NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; - [formatter setDateFormat:APIDateFormat]; - return [formatter dateFromString:string]; -} - -- (NSString *)JSONObjectFromNSDate:(NSDate *)date { - NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; - [formatter setDateFormat:APIDateFormat]; - return [formatter stringFromDate:date]; -} - -@end - -``` - -* json validation -* error handling -* custom data validation -* automatic compare and equality features -* and more. - -------- - -Misc -======= - -Author: [Marin Todorov](http://www.touch-code-magazine.com) - -Contributors: Christian Hoffmann, Mark Joslin, Julien Vignali, Symvaro GmbH, BB9z. -Also everyone who did successful [pull requests](https://github.com/icanzilb/JSONModel/graphs/contributors). - -Change log : [https://github.com/icanzilb/JSONModel/blob/master/Changelog.md](https://github.com/icanzilb/JSONModel/blob/master/Changelog.md) - -------- -#### License -This code is distributed under the terms and conditions of the MIT license. - -------- -#### Contribution guidelines - -**NB!** If you are fixing a bug you discovered, please add also a unit test so I know how exactly to reproduce the bug before merging. - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Local Podspecs/SwaggerClient.podspec.json b/samples/client/petstore/objc/SwaggerClientTests/Pods/Local Podspecs/SwaggerClient.podspec.json deleted file mode 100644 index 3b6ca09fb45..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Local Podspecs/SwaggerClient.podspec.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "SwaggerClient", - "version": "0.1.0", - "summary": "A short description of SwaggerClient.", - "description": " An optional longer description of SwaggerClient\n\n * Markdown format.\n * Don't worry about the indent, we strip it!\n", - "homepage": "https://github.com//SwaggerClient", - "license": "MIT", - "authors": { - "geekerzp": "geekerzp@gmail.com" - }, - "source": { - "git": "https://github.com//SwaggerClient.git", - "tag": "0.1.0" - }, - "platforms": { - "ios": "7.0" - }, - "requires_arc": true, - "source_files": "SwaggerClient/**/*", - "public_header_files": "SwaggerClient/**/*.h", - "resource_bundles": { - "SwaggerClient": [ - "Pod/Assets/*.png" - ] - }, - "dependencies": { - "AFNetworking": [ - "~> 2.3" - ], - "JSONModel": [ - - ], - "ISO8601": [ - - ] - } -} diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Manifest.lock b/samples/client/petstore/objc/SwaggerClientTests/Pods/Manifest.lock deleted file mode 100644 index d1ab2cdf9eb..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Manifest.lock +++ /dev/null @@ -1,49 +0,0 @@ -PODS: - - AFNetworking (2.5.4): - - AFNetworking/NSURLConnection (= 2.5.4) - - AFNetworking/NSURLSession (= 2.5.4) - - AFNetworking/Reachability (= 2.5.4) - - AFNetworking/Security (= 2.5.4) - - AFNetworking/Serialization (= 2.5.4) - - AFNetworking/UIKit (= 2.5.4) - - AFNetworking/NSURLConnection (2.5.4): - - AFNetworking/Reachability - - AFNetworking/Security - - AFNetworking/Serialization - - AFNetworking/NSURLSession (2.5.4): - - AFNetworking/Reachability - - AFNetworking/Security - - AFNetworking/Serialization - - AFNetworking/Reachability (2.5.4) - - AFNetworking/Security (2.5.4) - - AFNetworking/Serialization (2.5.4) - - AFNetworking/UIKit (2.5.4): - - AFNetworking/NSURLConnection - - AFNetworking/NSURLSession - - Expecta (1.0.0) - - ISO8601 (0.3.0) - - JSONModel (1.1.0) - - Specta (1.0.2) - - SwaggerClient (0.1.0): - - AFNetworking (~> 2.3) - - ISO8601 - - JSONModel - -DEPENDENCIES: - - Expecta - - Specta - - SwaggerClient (from `../`) - -EXTERNAL SOURCES: - SwaggerClient: - :path: "../" - -SPEC CHECKSUMS: - AFNetworking: 05edc0ac4c4c8cf57bcf4b84be5b0744b6d8e71e - Expecta: 32604574add2c46a36f8d2f716b6c5736eb75024 - ISO8601: 8d8a22d5edf0554a1cf75bac028c76c1dc0ffaef - JSONModel: ec77e9865236a7a09d9cf7668df6b4b328d9ec1d - Specta: 9cec98310dca411f7c7ffd6943552b501622abfe - SwaggerClient: 579729c54e8e2e34566e5b5572adc959518663ea - -COCOAPODS: 0.37.1 diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/project.pbxproj b/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/project.pbxproj deleted file mode 100644 index e158beea742..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/project.pbxproj +++ /dev/null @@ -1,3349 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 009F14C0CA20741504926131 /* JSONModel+networking.h in Headers */ = {isa = PBXBuildFile; fileRef = B7CE604E6EA1D256D1F0A8AA /* JSONModel+networking.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 015B81A52CCCF49BCE3973BE /* SWGPetApi.m in Sources */ = {isa = PBXBuildFile; fileRef = 95DDFA05DD6945745A0CA6A1 /* SWGPetApi.m */; }; - 01644CF4631020B9AC9CCD06 /* AFSecurityPolicy.h in Headers */ = {isa = PBXBuildFile; fileRef = 36A7357E024D3B6884439E33 /* AFSecurityPolicy.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 05E44B1705BF02EF459EED58 /* SWGOrder.h in Headers */ = {isa = PBXBuildFile; fileRef = AC70BE6F2761A3E4E4B84FDD /* SWGOrder.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 060CE80CB8B14C7F22E6C8F7 /* AFURLConnectionOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 1C814F4EF3A744431BCD3807 /* AFURLConnectionOperation.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 063630C46D0AE3241769A6AB /* AFURLRequestSerialization.h in Headers */ = {isa = PBXBuildFile; fileRef = 20527E0700B1756AD0DB7B16 /* AFURLRequestSerialization.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 064D4D263A3BCF74314B1CC0 /* NSValue+Expecta.m in Sources */ = {isa = PBXBuildFile; fileRef = CB2A97414B35780C4D650A65 /* NSValue+Expecta.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 0769C01E1EDA98F189CA18F7 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 671A488088E85A1E9E82C2D4 /* Foundation.framework */; }; - 08D39D19BF314C76BE1C7C47 /* JSONModelError.h in Headers */ = {isa = PBXBuildFile; fileRef = A79E486BE2BAA943C0E47F51 /* JSONModelError.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0A807DDB6336109324346314 /* EXPMatchers+conformTo.h in Headers */ = {isa = PBXBuildFile; fileRef = A7E147F308CD2889593641F8 /* EXPMatchers+conformTo.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0BA67D960C3D46FE796FA170 /* AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = C0C70D134185F0A5D884F2D5 /* AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0C64F018C08F817B763164B4 /* SWGMyresult.m in Sources */ = {isa = PBXBuildFile; fileRef = 5B582DC8026EDCEFE9570A57 /* SWGMyresult.m */; }; - 0CE023D16C43712578A85693 /* AFURLResponseSerialization.h in Headers */ = {isa = PBXBuildFile; fileRef = B931AE6695BDCE3352468AED /* AFURLResponseSerialization.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0D6A55BDCE3AAA3B8A4451D0 /* Pods-SwaggerClient_Example-AFNetworking-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = A4077B653CCC6F44DDA78122 /* Pods-SwaggerClient_Example-AFNetworking-dummy.m */; }; - 0D7DC58CB3CDFDB33C4CB741 /* SWGPetApi.m in Sources */ = {isa = PBXBuildFile; fileRef = 95DDFA05DD6945745A0CA6A1 /* SWGPetApi.m */; }; - 0DE7F2395E87EE714F79B368 /* JSONHTTPClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 9BF513A105EEBB9C62BDD60B /* JSONHTTPClient.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 0E5BA06D6F20D109F5937BBA /* Pods-SwaggerClient_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = A3D3304828283C9BAC71B216 /* Pods-SwaggerClient_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 10D3E7AAF6BF29347D2C6098 /* AFURLConnectionOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 932F77F2D9785F0A401CAA9B /* AFURLConnectionOperation.m */; }; - 1398D1EFD62E17C5E8B2D5E4 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 671A488088E85A1E9E82C2D4 /* Foundation.framework */; }; - 141E818821C0DF4EF86D111A /* EXPMatchers+beGreaterThan.h in Headers */ = {isa = PBXBuildFile; fileRef = D15CDBD1F8D1EE6AB0D63F21 /* EXPMatchers+beGreaterThan.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 14B409D1DD01CD3148C13D93 /* UIAlertView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 1E735B9956F587EB8E4B85CF /* UIAlertView+AFNetworking.m */; }; - 14D082B7758784153108F8D0 /* EXPMatchers+endWith.h in Headers */ = {isa = PBXBuildFile; fileRef = 8DB4BB24028928E6E7BE64E9 /* EXPMatchers+endWith.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 153CA93C3D5647FED90150DD /* ISO8601.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D3CAD6C2C0A7E70C06CB6D35 /* ISO8601.framework */; }; - 15481C9B911D9926D6616544 /* JSONModelArray.h in Headers */ = {isa = PBXBuildFile; fileRef = 67D72714DD0EA3F6ABF35D2A /* JSONModelArray.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 15D3342D7E8179197A16CE99 /* EXPFloatTuple.m in Sources */ = {isa = PBXBuildFile; fileRef = 734153C8D7D6EE89E1CBF7A4 /* EXPFloatTuple.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 15D907F1F8EE9988D498B929 /* UIRefreshControl+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = EFA5792B89F3EC016C790014 /* UIRefreshControl+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 179CF1D636A8BCC9B4FF0357 /* EXPMatchers+match.m in Sources */ = {isa = PBXBuildFile; fileRef = DFA9B08443D964E2FB073F56 /* EXPMatchers+match.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 18EB1478750F10527DCBA3CA /* XCTest+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = B13A1E5CC1C83917B3B55837 /* XCTest+Private.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 1A089E25AFA9D708ACA954D0 /* EXPMatchers+contain.h in Headers */ = {isa = PBXBuildFile; fileRef = F7E78B22E6B39AF231BCCA2D /* EXPMatchers+contain.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 1A42236975D31BC018BADEA8 /* EXPMatchers+beCloseTo.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AFADA1570737157E9617EFA /* EXPMatchers+beCloseTo.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 1AE4C4E081C7868C097ED07E /* EXPMatchers+beInTheRangeOf.m in Sources */ = {isa = PBXBuildFile; fileRef = DF0444D8EBDF25B4DEFD64FC /* EXPMatchers+beInTheRangeOf.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 1B9947C260FA1F8C7BBF6CAA /* JSONValueTransformer+ISO8601.h in Headers */ = {isa = PBXBuildFile; fileRef = BA4B27F2FB073D3E8345BF79 /* JSONValueTransformer+ISO8601.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 1BF4F57244442FA9C0CE55BF /* JSONModel.m in Sources */ = {isa = PBXBuildFile; fileRef = FF92E4A16DFC6E28E7E5D562 /* JSONModel.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 1C19F010F92332D333674C99 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 671A488088E85A1E9E82C2D4 /* Foundation.framework */; }; - 1CF4FB9D2FD679D464ABBB50 /* SpectaUtility.h in Headers */ = {isa = PBXBuildFile; fileRef = 9A26EF949942E5B501DDD747 /* SpectaUtility.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 1E90336D2D07D4CCD8EAB3AE /* UIWebView+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 63B8703F981C6122B7B45873 /* UIWebView+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 1F6FDD41776492A1FC024230 /* Pods-SwaggerClient_Tests-JSONModel-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 16CF586DFE9835700F2EDA9E /* Pods-SwaggerClient_Tests-JSONModel-dummy.m */; }; - 2019465B5EC42B2DCBB85EE3 /* Specta.h in Headers */ = {isa = PBXBuildFile; fileRef = 381AE18EE5432808A1136286 /* Specta.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 202A56F969E09068E449B790 /* AFNetworkReachabilityManager.h in Headers */ = {isa = PBXBuildFile; fileRef = E1268621ACDBA89268F6D79A /* AFNetworkReachabilityManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 208F0DB6A4BA036D42430F0E /* SWGMyresult.h in Headers */ = {isa = PBXBuildFile; fileRef = 8215F4EBBAA1231B662B87D4 /* SWGMyresult.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 216BA373617DE71E01797A11 /* NSDate+ISO8601.m in Sources */ = {isa = PBXBuildFile; fileRef = 427CEF67DFD8AFD42A5E8B10 /* NSDate+ISO8601.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 234F4761A980F0FB31468104 /* SpectaUtility.m in Sources */ = {isa = PBXBuildFile; fileRef = D6BE8527F16F514E61677DA4 /* SpectaUtility.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 248E11A29947ED3176089DE8 /* EXPUnsupportedObject.h in Headers */ = {isa = PBXBuildFile; fileRef = 859359D6C9F1E75F8FD12FC7 /* EXPUnsupportedObject.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 24A7213C685D7D07D1A1FEBD /* SWGObject.m in Sources */ = {isa = PBXBuildFile; fileRef = 93127E06DFE790D76898A78D /* SWGObject.m */; }; - 2575C7D4A30F9F057EEB475B /* JSONHTTPClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 889B2226D66494C5DB5F33F9 /* JSONHTTPClient.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 2599FEFF7BBE8634BD34A792 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AE13B85DCBE9E69CCC686887 /* MobileCoreServices.framework */; }; - 28DA345E3A79443D17917DD3 /* AFHTTPSessionManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 4DBC262A0DD3D8A392255054 /* AFHTTPSessionManager.m */; }; - 2A1D80A2AD26A4E7E3CB41BF /* JSONModel.h in Headers */ = {isa = PBXBuildFile; fileRef = 67A228DF9CD60524B576E388 /* JSONModel.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 2B068325226CBE00207FD473 /* EXPMatchers+equal.m in Sources */ = {isa = PBXBuildFile; fileRef = 26140D01ECBBE302403277E7 /* EXPMatchers+equal.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 2B9B995C35A4D77609B5BFF2 /* JSONModelClassProperty.h in Headers */ = {isa = PBXBuildFile; fileRef = 9725EE5FF670963BBEF4680E /* JSONModelClassProperty.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 2BF8572932D3DB0D00340B5D /* ExpectaObject.h in Headers */ = {isa = PBXBuildFile; fileRef = ED9CD3349C1E0B89048D7931 /* ExpectaObject.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 2C0B0BCC4246AA2B5C7A85A4 /* Pods-SwaggerClient_Example-AFNetworking-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = E90E3F2428A92C2B30B905D1 /* Pods-SwaggerClient_Example-AFNetworking-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 2E0CAD7ECD05DB499DB08A87 /* JSONModelError.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B41F3EB7887EBB63F0F242A /* JSONModelError.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 2E492A887BD1485D00A872DE /* SWGApiClient.h in Headers */ = {isa = PBXBuildFile; fileRef = E5F6B4D3A0DBB8FA2D118B34 /* SWGApiClient.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 2FB329EBD1692264B6EF0552 /* SWGStoreApi.m in Sources */ = {isa = PBXBuildFile; fileRef = 3CA2DD7C1A9CD271FBEEDCFA /* SWGStoreApi.m */; }; - 2FBDF7CE14C4468420FD55AE /* Pods-SwaggerClient_Tests-Specta-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 60DECAD526F277F125AC6CC8 /* Pods-SwaggerClient_Tests-Specta-dummy.m */; }; - 30761F9D2ADDD7315DDC95D8 /* Pods-SwaggerClient_Tests-SwaggerClient-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = BD49D2B002813654F20C0CDB /* Pods-SwaggerClient_Tests-SwaggerClient-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 30AED8CD55E9DA4D102A028B /* SWGObject.h in Headers */ = {isa = PBXBuildFile; fileRef = 79F66BA3CD50A4290602F14B /* SWGObject.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 31A472719AA3A52EC74903FD /* SWGApiClient.h in Headers */ = {isa = PBXBuildFile; fileRef = E5F6B4D3A0DBB8FA2D118B34 /* SWGApiClient.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 31EED5998AB440042E5AD2A1 /* Pods-SwaggerClient_Tests-JSONModel-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 01FC7B913F4D0D8ABA61D37F /* Pods-SwaggerClient_Tests-JSONModel-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 31F4C8B75EEE1B23E2591723 /* SWGPetApi.h in Headers */ = {isa = PBXBuildFile; fileRef = 60F89DDC8635677F871D034F /* SWGPetApi.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 349C1EC2A3BC841F900B1486 /* SPTCallSite.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED368FA80CE15CF073E7E4C /* SPTCallSite.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 35B0AC4B7AF8B00BC4C38BE6 /* SpectaDSL.m in Sources */ = {isa = PBXBuildFile; fileRef = A41CD6CC31666FBF14F37933 /* SpectaDSL.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 3760B1DD16BFF927E104FB25 /* Pods-SwaggerClient_Example-JSONModel-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 02BFF49A4C0CD62A7A017609 /* Pods-SwaggerClient_Example-JSONModel-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 386EB7F3BE797D89A650C1C5 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AE13B85DCBE9E69CCC686887 /* MobileCoreServices.framework */; }; - 38DD8E43F24A829555F60CFA /* EXPExpect.m in Sources */ = {isa = PBXBuildFile; fileRef = E2E6D41C47D3DA237C488316 /* EXPExpect.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 3A595234403693F5B22FB680 /* JSONModelClassProperty.m in Sources */ = {isa = PBXBuildFile; fileRef = 91DC534FB82569495452D79F /* JSONModelClassProperty.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 3B64A6FDF788A2104D9BB03D /* Pods-SwaggerClient_Example-JSONModel-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = DC4F0DB2C1E5DEACB3919576 /* Pods-SwaggerClient_Example-JSONModel-dummy.m */; }; - 3D3DB30244C6BC6C236665C2 /* EXPMatchers+beIdenticalTo.m in Sources */ = {isa = PBXBuildFile; fileRef = B7A8D6EF8C60FFFB42E24B88 /* EXPMatchers+beIdenticalTo.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 3DC47F224263A6AE449CFFDC /* JSONKeyMapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 2B99E0C1051BAF97AAA01CBB /* JSONKeyMapper.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 3DDA99600B95318A88915CE5 /* SWGCategory.m in Sources */ = {isa = PBXBuildFile; fileRef = 35F8AFCBA88A170C1ED8B8EA /* SWGCategory.m */; }; - 3EAEDA676CAF94858D91CFB0 /* SpectaTypes.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A3143CF53A3ECFD840FEBF5 /* SpectaTypes.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 3EC6DC73A10ED5CC2F75062A /* SWGOrder.m in Sources */ = {isa = PBXBuildFile; fileRef = 8371F57BE2022A982DD2C14B /* SWGOrder.m */; }; - 3FA455AFA48AD50F1D53F9CA /* JSONModelLib.h in Headers */ = {isa = PBXBuildFile; fileRef = 3E6F8CCCB7A467D7ADCF9320 /* JSONModelLib.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 40978838FAEA6D634F4AD042 /* JSONValueTransformer+ISO8601.h in Headers */ = {isa = PBXBuildFile; fileRef = BA4B27F2FB073D3E8345BF79 /* JSONValueTransformer+ISO8601.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 430B13D7C84147B12F239C1C /* ISO8601.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D3CAD6C2C0A7E70C06CB6D35 /* ISO8601.framework */; }; - 4327F8FF04D9796D030CC825 /* SWGMythingApi.h in Headers */ = {isa = PBXBuildFile; fileRef = 714BA14CC63A7438D89F7181 /* SWGMythingApi.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 43EB4E01F9DBC56B8153AF88 /* SWGUser.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F927BCFCED60E5C20DD572D /* SWGUser.m */; }; - 44E1A78EC1381D154F5F4198 /* EXPMatchers+beLessThan.h in Headers */ = {isa = PBXBuildFile; fileRef = B6FCB81E5D8E3706D242931A /* EXPMatchers+beLessThan.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 45BE91BE73E2BB75611507CA /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E372B83A044ECCA01E472FC9 /* CoreGraphics.framework */; }; - 4684F0551F479F660241F8EE /* SWGConfiguration.h in Headers */ = {isa = PBXBuildFile; fileRef = FAF50F76847FEFE63382A19D /* SWGConfiguration.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 480220DF7A8958ABA2B68C4A /* EXPMatchers+beGreaterThanOrEqualTo.m in Sources */ = {isa = PBXBuildFile; fileRef = 5853898EA95C369F30529C9B /* EXPMatchers+beGreaterThanOrEqualTo.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 480B9A799CF713D7A4FB1280 /* EXPMatchers+equal.h in Headers */ = {isa = PBXBuildFile; fileRef = 88AAAF1815056252470FC2A6 /* EXPMatchers+equal.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 485CBCFDC4C3E69D41661405 /* AFURLSessionManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 59E36693E29CCFE31E4EAC89 /* AFURLSessionManager.m */; }; - 49207B3420011B51EB18E841 /* EXPMatchers+conformTo.m in Sources */ = {isa = PBXBuildFile; fileRef = 2C4946DD8004B10DBD3BEBE0 /* EXPMatchers+conformTo.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 49BD45475EFF07925EF1261D /* SpectaDSL.h in Headers */ = {isa = PBXBuildFile; fileRef = 1E1126602057323308CBEB1C /* SpectaDSL.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 4A2E86089A4A9CBC89A42217 /* Pods-SwaggerClient_Tests-SwaggerClient-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = CB976EFCEBA507C7297EFFAF /* Pods-SwaggerClient_Tests-SwaggerClient-dummy.m */; }; - 4C1848887F607EB5D0D594FB /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DCD887355DA3622403C587F3 /* Security.framework */; }; - 4C235C092D5E9122C9675223 /* NSDate+ISO8601.h in Headers */ = {isa = PBXBuildFile; fileRef = 7696D6A816053B3FA0C31C17 /* NSDate+ISO8601.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 4C87A409DB81EB3100727F0F /* EXPMatcher.h in Headers */ = {isa = PBXBuildFile; fileRef = 71301AA0D0508AC69416EEFD /* EXPMatcher.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 4CD5A6D7AA3D5BFD09648D1D /* EXPDefines.h in Headers */ = {isa = PBXBuildFile; fileRef = BE4CCABD7BD7EF95BEC3C2A4 /* EXPDefines.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 4CE48BA8AC5C9F3EF8626447 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 671A488088E85A1E9E82C2D4 /* Foundation.framework */; }; - 4D4DFF614C17C0DC6F9358B9 /* EXPMatchers+beLessThanOrEqualTo.h in Headers */ = {isa = PBXBuildFile; fileRef = FF99417D61F3A97DC44475AF /* EXPMatchers+beLessThanOrEqualTo.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 4D8B2BA43AAE4EB70B675653 /* UIButton+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 031E5A051C1B351EAECABE44 /* UIButton+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 4E0D59D3C52705977CDA2F8C /* EXPDoubleTuple.m in Sources */ = {isa = PBXBuildFile; fileRef = 3FA82A66FE087D46B5F479DF /* EXPDoubleTuple.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 4E381D04C09A000DF81BB192 /* EXPExpect.h in Headers */ = {isa = PBXBuildFile; fileRef = 722C967FF2EE63957185640A /* EXPExpect.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 50147C1C98A2BE3F820601A9 /* NSArray+JSONModel.h in Headers */ = {isa = PBXBuildFile; fileRef = F9301EBB1082F3DF4ACF55B7 /* NSArray+JSONModel.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5396861AA4F84D5063B9B570 /* JSONValueTransformer.m in Sources */ = {isa = PBXBuildFile; fileRef = 90B1F5AE7FE9B9050C58885E /* JSONValueTransformer.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 53DB01B8A07B731462961681 /* JSONModelArray.m in Sources */ = {isa = PBXBuildFile; fileRef = 63AAD00C6BF1CECE08D88CE3 /* JSONModelArray.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 541A3EF8AB9F89D0C26F5180 /* UIImageView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = D98544579F42370E657FA1A8 /* UIImageView+AFNetworking.m */; }; - 54A1C77FFEF9D6711B04A35F /* UIImageView+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 39E0EC01ADE9AA23B943AE97 /* UIImageView+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5557E105ADC6440D8DE05BE8 /* SWGApiClient.m in Sources */ = {isa = PBXBuildFile; fileRef = A42D06ECA69A10D7B7AB66B5 /* SWGApiClient.m */; }; - 558377E71A2AECE6C70176A1 /* JSONAPI.m in Sources */ = {isa = PBXBuildFile; fileRef = D906469EA22490516C576F34 /* JSONAPI.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 56250F2F58B9A7760BFA25D2 /* SWGFile.h in Headers */ = {isa = PBXBuildFile; fileRef = EEBE9B8A684DF642FE20657F /* SWGFile.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5771BA042DF953FA88D9C2FF /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0AABA64768BF1C67079AC14C /* XCTest.framework */; }; - 58933698E078FEA9C0689292 /* SPTCompiledExample.h in Headers */ = {isa = PBXBuildFile; fileRef = 78DEE88FE58FD1EB9ED82644 /* SPTCompiledExample.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 591D3B049A7E8627A5AA65B1 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E372B83A044ECCA01E472FC9 /* CoreGraphics.framework */; }; - 592FFE8ADED8118B48C3C008 /* UIActivityIndicatorView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = D3B9FF89412078F9C47D089B /* UIActivityIndicatorView+AFNetworking.m */; }; - 59719066DA7A3B5DD4234C92 /* JSONModel+networking.h in Headers */ = {isa = PBXBuildFile; fileRef = B7CE604E6EA1D256D1F0A8AA /* JSONModel+networking.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5A8DE01C8A5A5BA6F321912A /* EXPMatchers+beLessThanOrEqualTo.m in Sources */ = {isa = PBXBuildFile; fileRef = 3348A38E5534FDD63284711E /* EXPMatchers+beLessThanOrEqualTo.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 5AF80236C8B3D49B88DD6A73 /* ISO8601Serialization.m in Sources */ = {isa = PBXBuildFile; fileRef = 79CD799EA7C3F65509123C0E /* ISO8601Serialization.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 5B2FCF39BB864869CD94F2F9 /* JSONValueTransformer.h in Headers */ = {isa = PBXBuildFile; fileRef = 8ABA855B29B5869D5B9FE91C /* JSONValueTransformer.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5B7DF7966982B7F4CADDD133 /* SWGStoreApi.h in Headers */ = {isa = PBXBuildFile; fileRef = 70728AC343FB456859D11ABE /* SWGStoreApi.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5CF717B5F4B92B85335848B5 /* AFURLSessionManager.h in Headers */ = {isa = PBXBuildFile; fileRef = BEE9F929357775BD67A93711 /* AFURLSessionManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5D36786D11940C4FC2D151F1 /* AFNetworkActivityIndicatorManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 9B8C04B0FE02D3F1E8759EBB /* AFNetworkActivityIndicatorManager.m */; }; - 5D474A781C64601B7793EACE /* EXPMatchers+raise.h in Headers */ = {isa = PBXBuildFile; fileRef = 0F8CC8C24B86136D1949316C /* EXPMatchers+raise.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5DA26B0C4EB1C7DEB0B44AAF /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0AABA64768BF1C67079AC14C /* XCTest.framework */; }; - 5EB23F6A3A0BC89591B46C53 /* SWGMyresult.m in Sources */ = {isa = PBXBuildFile; fileRef = 5B582DC8026EDCEFE9570A57 /* SWGMyresult.m */; }; - 5EC683903E3BFB84AF431EE7 /* EXPMatchers+beSubclassOf.m in Sources */ = {isa = PBXBuildFile; fileRef = 1527CA2833B390D6002D3965 /* EXPMatchers+beSubclassOf.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 5F372EF252811B674AC4AB6B /* EXPMatchers+beSupersetOf.h in Headers */ = {isa = PBXBuildFile; fileRef = 28CEAD6EAF4AC73948D28F2B /* EXPMatchers+beSupersetOf.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 61E0F74A03A9676D1F9B9A1A /* JSONValueTransformer+ISO8601.m in Sources */ = {isa = PBXBuildFile; fileRef = F2BF821324735755972447B0 /* JSONValueTransformer+ISO8601.m */; }; - 6353F43D216317DCB7178D76 /* AFHTTPRequestOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 1EE2D61D0FCBC33CFE8D24E9 /* AFHTTPRequestOperation.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 64839F8447FE9FFE7BEAA520 /* UIAlertView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 1E735B9956F587EB8E4B85CF /* UIAlertView+AFNetworking.m */; }; - 655A1A5574F0ADA33C6BA555 /* AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = C0C70D134185F0A5D884F2D5 /* AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 65EEB46EDB53A949C6316472 /* SPTTestSuite.m in Sources */ = {isa = PBXBuildFile; fileRef = 9E2261DFC4C37167696E0BF2 /* SPTTestSuite.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 684A4BF6370BC43C9704A17A /* SWGConfiguration.h in Headers */ = {isa = PBXBuildFile; fileRef = FAF50F76847FEFE63382A19D /* SWGConfiguration.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 6895CF33F4FB371D6FCA3FE9 /* UIRefreshControl+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = EFA5792B89F3EC016C790014 /* UIRefreshControl+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 69F02A625CD67C7385B76D0C /* AFHTTPSessionManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 4DBC262A0DD3D8A392255054 /* AFHTTPSessionManager.m */; }; - 6BD0E2ACB9C405F9E64B8669 /* SWGJSONRequestSerializer.h in Headers */ = {isa = PBXBuildFile; fileRef = E5109CAF5DE5D9EDF8A5CDC0 /* SWGJSONRequestSerializer.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 6C73129BE33A179F9AB0617C /* SWGQueryParamCollection.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E2CCF2F2B2988DE22AE21A8 /* SWGQueryParamCollection.m */; }; - 6CBB043C1B99FCC1B8421A4D /* SWGMythingApi.m in Sources */ = {isa = PBXBuildFile; fileRef = 5EB007D8397CABC3A86DC35B /* SWGMythingApi.m */; }; - 6D9D7788C3964B9919E6AFDD /* SWGConfiguration.m in Sources */ = {isa = PBXBuildFile; fileRef = 1E32292D3F4D806B627F1570 /* SWGConfiguration.m */; }; - 6DF752A3DC92FFE0ED8186A6 /* EXPMatchers+beNil.m in Sources */ = {isa = PBXBuildFile; fileRef = AB17D934B80A74041502DE8A /* EXPMatchers+beNil.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 6E80282ECD2D0EBFB5E4485E /* SWGJSONRequestSerializer.h in Headers */ = {isa = PBXBuildFile; fileRef = E5109CAF5DE5D9EDF8A5CDC0 /* SWGJSONRequestSerializer.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 6F0C994E24BAEFAD916AEE27 /* EXPMatchers+beFalsy.m in Sources */ = {isa = PBXBuildFile; fileRef = 500D44D0509C0C1AF7854372 /* EXPMatchers+beFalsy.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 6FFFCA02F0848062C1CFC252 /* EXPBlockDefinedMatcher.m in Sources */ = {isa = PBXBuildFile; fileRef = ACA0D0CF9107E24C8C01A0D9 /* EXPBlockDefinedMatcher.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 7022EA6C3ED11B8F6D17C915 /* AFHTTPRequestOperationManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D297B7DCEEC26B8CF1525F9 /* AFHTTPRequestOperationManager.m */; }; - 70355ED21006B4EFC0743514 /* SWGJSONResponseSerializer.h in Headers */ = {isa = PBXBuildFile; fileRef = 7334D7BE223A4E8284A960DD /* SWGJSONResponseSerializer.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 708D1BE5029DFC2517A09EDF /* SWGQueryParamCollection.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E2CCF2F2B2988DE22AE21A8 /* SWGQueryParamCollection.m */; }; - 709D563EE63BC8B34E719F68 /* AFSecurityPolicy.h in Headers */ = {isa = PBXBuildFile; fileRef = 36A7357E024D3B6884439E33 /* AFSecurityPolicy.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 719253026530EB29F2CC2B72 /* SWGFile.h in Headers */ = {isa = PBXBuildFile; fileRef = EEBE9B8A684DF642FE20657F /* SWGFile.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 730C8CD80F56DC3EBE6F3080 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AE7D0F77D853957EBCAE657F /* SystemConfiguration.framework */; }; - 730EB4EC6649BB254DE45A23 /* SWGStoreApi.h in Headers */ = {isa = PBXBuildFile; fileRef = 70728AC343FB456859D11ABE /* SWGStoreApi.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 733CE4BAA5170020996D3E9B /* SPTCompiledExample.m in Sources */ = {isa = PBXBuildFile; fileRef = B724F8E376ED2BB7D587FC11 /* SPTCompiledExample.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 738A8A430BD4B242B982A059 /* AFNetworkReachabilityManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 3AABB6DD414B225AF74CDD9A /* AFNetworkReachabilityManager.m */; }; - 739B0A56F4B979196B38F1D4 /* SwaggerClient.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 88858C0B2B9F69FD1898CC7C /* SwaggerClient.bundle */; }; - 73FCB4F39FE4BFF9537374F4 /* SWGPet.m in Sources */ = {isa = PBXBuildFile; fileRef = CB61EBD400A6C25EDC2BBEC2 /* SWGPet.m */; }; - 7422BD5EBC0E6395F1069F71 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 671A488088E85A1E9E82C2D4 /* Foundation.framework */; }; - 74844E56902AF11EAD1519DC /* EXPUnsupportedObject.m in Sources */ = {isa = PBXBuildFile; fileRef = 0B0D24466BA8FF3A32751D38 /* EXPUnsupportedObject.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 75152788B3BE31431561865B /* EXPMatchers+beGreaterThanOrEqualTo.h in Headers */ = {isa = PBXBuildFile; fileRef = 4DA0260CE5A8A4FDA879A100 /* EXPMatchers+beGreaterThanOrEqualTo.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 76BCBD536C1967E6EE51F9CC /* EXPMatchers+postNotification.m in Sources */ = {isa = PBXBuildFile; fileRef = 47C2E8EC548FF8BFE0B65660 /* EXPMatchers+postNotification.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 7711A28F5EA5D2624146AA49 /* EXPMatchers+raise.m in Sources */ = {isa = PBXBuildFile; fileRef = 0E33B17ABCEF8719288A1534 /* EXPMatchers+raise.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 7891CCC1701105C4924B92D2 /* UIRefreshControl+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 707946C9EEE0DF0640C426E2 /* UIRefreshControl+AFNetworking.m */; }; - 79AC15C3F613CF7B5167E18A /* ISO8601Serialization.h in Headers */ = {isa = PBXBuildFile; fileRef = A3DA13084371612DD395FBFF /* ISO8601Serialization.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 79BFDC0F5D922F559F6386CD /* SWGCategory.h in Headers */ = {isa = PBXBuildFile; fileRef = B3870DA6EC44CBA8FA1E4893 /* SWGCategory.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 7A068863C9D19B0DE204F391 /* EXPFloatTuple.h in Headers */ = {isa = PBXBuildFile; fileRef = 4648E753C7D4CD63548A0283 /* EXPFloatTuple.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 7A0E55F5686D8206F7ED79ED /* SWGUser.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F927BCFCED60E5C20DD572D /* SWGUser.m */; }; - 7A1C599B7BB230911B38A23D /* EXPMatcherHelpers.m in Sources */ = {isa = PBXBuildFile; fileRef = B96C8F13F1DC53A3C3C3D159 /* EXPMatcherHelpers.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 7A53181A5C51E8CDC82D78FF /* AFNetworkActivityIndicatorManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D9FA3CD16F8BFD65BB2E28F /* AFNetworkActivityIndicatorManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 7A95722C4365CBB156219D87 /* Expecta.h in Headers */ = {isa = PBXBuildFile; fileRef = E411487CD9041CB730BB08A7 /* Expecta.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 7AC10CEF01A1AEF811D131B9 /* SWGFile.m in Sources */ = {isa = PBXBuildFile; fileRef = CC3AAA85DF4F0B6AF3F65FF3 /* SWGFile.m */; }; - 7B97CB82AB5C67E42EF47207 /* AFURLRequestSerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = 43AA7EFAA794D57DE9CD481E /* AFURLRequestSerialization.m */; }; - 7BD9D6B0473CD492B25067F0 /* Pods-SwaggerClient_Example-SwaggerClient-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = DABBA96CC74EAE33EEE3E7FF /* Pods-SwaggerClient_Example-SwaggerClient-dummy.m */; }; - 7BEDB566042514B74A383C14 /* JSONModel.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FBF9A35933615D555049BE26 /* JSONModel.framework */; }; - 7E3EF033ABA1E93C7F640408 /* AFHTTPRequestOperationManager.h in Headers */ = {isa = PBXBuildFile; fileRef = FCDFE076FC0577667D18E47C /* AFHTTPRequestOperationManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 7E51B9CF8F060125255C4874 /* JSONModelArray.h in Headers */ = {isa = PBXBuildFile; fileRef = 67D72714DD0EA3F6ABF35D2A /* JSONModelArray.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 7F9EE30367A72427A141D157 /* EXPMatchers+respondTo.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A06A521245DAB5B8F162AB4 /* EXPMatchers+respondTo.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 81292025A1A602AF03CF2786 /* NSArray+JSONModel.h in Headers */ = {isa = PBXBuildFile; fileRef = F9301EBB1082F3DF4ACF55B7 /* NSArray+JSONModel.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 81412F96CE91EA61DD405215 /* Pods-SwaggerClient_Tests-ISO8601-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 36B743CDFC49D282EF4A78C8 /* Pods-SwaggerClient_Tests-ISO8601-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 815056BB9D281AB625FD6525 /* NSArray+JSONModel.m in Sources */ = {isa = PBXBuildFile; fileRef = C5AABD339B19F5117F87718C /* NSArray+JSONModel.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 8178DA76D849E1EEFDD0776E /* ISO8601Serialization.h in Headers */ = {isa = PBXBuildFile; fileRef = A3DA13084371612DD395FBFF /* ISO8601Serialization.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 8182438CCBAC66CC21D7E6D8 /* EXPMatchers+beInstanceOf.m in Sources */ = {isa = PBXBuildFile; fileRef = 016434DA280A6337716485B9 /* EXPMatchers+beInstanceOf.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 81E1F4FC8572144FC30559B2 /* AFNetworkActivityIndicatorManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D9FA3CD16F8BFD65BB2E28F /* AFNetworkActivityIndicatorManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 82169A131417A9577A927111 /* Pods-SwaggerClient_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = AE7532915C90B421F28CFBEA /* Pods-SwaggerClient_Tests-dummy.m */; }; - 8288B907B026F63D6B2E4C69 /* SWGUserApi.m in Sources */ = {isa = PBXBuildFile; fileRef = F1BACAD5385F95B410BB7C87 /* SWGUserApi.m */; }; - 83CE0A6BC031E570966864C9 /* SWGOrder.m in Sources */ = {isa = PBXBuildFile; fileRef = 8371F57BE2022A982DD2C14B /* SWGOrder.m */; }; - 85E4D74887E7F3F3702DBF51 /* EXPMatchers+beLessThan.m in Sources */ = {isa = PBXBuildFile; fileRef = B3F068AE92A66AE490BD6DB0 /* EXPMatchers+beLessThan.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 875AF30991031E7098EEF798 /* SWGPetApi.h in Headers */ = {isa = PBXBuildFile; fileRef = 60F89DDC8635677F871D034F /* SWGPetApi.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 891D33D88CE707237FF15709 /* UIRefreshControl+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 707946C9EEE0DF0640C426E2 /* UIRefreshControl+AFNetworking.m */; }; - 8929E57AFE7279D698EF5E7E /* SPTSharedExampleGroups.h in Headers */ = {isa = PBXBuildFile; fileRef = 2EBBCF0DEF5740D6612DEB32 /* SPTSharedExampleGroups.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 895A70C08AF98E52F33DDF0D /* SWGConfiguration.m in Sources */ = {isa = PBXBuildFile; fileRef = 1E32292D3F4D806B627F1570 /* SWGConfiguration.m */; }; - 8999ED93A69964E58772CB7C /* JSONAPI.h in Headers */ = {isa = PBXBuildFile; fileRef = DFB8A849BA1FECF15636A354 /* JSONAPI.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 8A4B71DDA44F239B71659CC9 /* SWGUser.h in Headers */ = {isa = PBXBuildFile; fileRef = 1F64414F4ED6C6AEB76C5CF9 /* SWGUser.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 8BC9B4305B0DDA301ACA4B07 /* JSONModelError.h in Headers */ = {isa = PBXBuildFile; fileRef = A79E486BE2BAA943C0E47F51 /* JSONModelError.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 8CDC523BB3A193C0478C2391 /* Pods-SwaggerClient_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 517927BA19A3538D1E30DE50 /* Pods-SwaggerClient_Example-dummy.m */; }; - 8D650C64BE46E68CB35B4FCA /* AFHTTPRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 3EBE9CEA32E33C741FA62D9D /* AFHTTPRequestOperation.m */; }; - 8E08F266FF1D8F57E4358D4E /* UIWebView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 93FA4B97821DA8CDAE3310A5 /* UIWebView+AFNetworking.m */; }; - 8E1AE5FA00BEAC8AFAA2B331 /* JSONModel+networking.m in Sources */ = {isa = PBXBuildFile; fileRef = 80F6ECA6AB109AFD0CE2E9CF /* JSONModel+networking.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 8E4CC5A8039EE6FE63613C2F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 671A488088E85A1E9E82C2D4 /* Foundation.framework */; }; - 8EFACBBBDC56722661F3744A /* UIProgressView+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 6CA609412EF66A9F84B11101 /* UIProgressView+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 8F5909852A74BE69436DD070 /* JSONKeyMapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 37085BC581A14B6E3E8C4D09 /* JSONKeyMapper.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 8FB224E07B86F6A688B90F58 /* UIButton+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 031E5A051C1B351EAECABE44 /* UIButton+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 91E570000BEF9E1B7FE2D62C /* AFHTTPRequestOperationManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D297B7DCEEC26B8CF1525F9 /* AFHTTPRequestOperationManager.m */; }; - 935DB5B30E1569E0AD36149E /* ISO8601Serialization.m in Sources */ = {isa = PBXBuildFile; fileRef = 79CD799EA7C3F65509123C0E /* ISO8601Serialization.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 93A71FA7A09487B7309E2291 /* SWGCategory.m in Sources */ = {isa = PBXBuildFile; fileRef = 35F8AFCBA88A170C1ED8B8EA /* SWGCategory.m */; }; - 9485712460E60EEE88CAC7F1 /* JSONModel.m in Sources */ = {isa = PBXBuildFile; fileRef = FF92E4A16DFC6E28E7E5D562 /* JSONModel.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 954A0C871E08071219871B4D /* EXPMatchers+raiseWithReason.h in Headers */ = {isa = PBXBuildFile; fileRef = D1EADD18818E3526F2CEAF2F /* EXPMatchers+raiseWithReason.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 96514B6F8D64D7C3330D5338 /* SWGQueryParamCollection.h in Headers */ = {isa = PBXBuildFile; fileRef = A94D44F705B09EAE0420833B /* SWGQueryParamCollection.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 97495C06470E679B7CF0A8CA /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 671A488088E85A1E9E82C2D4 /* Foundation.framework */; }; - 98546537C1F973E3CD32D4FF /* AFSecurityPolicy.m in Sources */ = {isa = PBXBuildFile; fileRef = 451719F53715B179730D75E0 /* AFSecurityPolicy.m */; }; - 98AB219A7D05251D3F7F7191 /* EXPMatchers+beSupersetOf.m in Sources */ = {isa = PBXBuildFile; fileRef = 194518CC1A4D172FAA272DB9 /* EXPMatchers+beSupersetOf.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 9B34355CD7E63D1895627210 /* JSONHTTPClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 889B2226D66494C5DB5F33F9 /* JSONHTTPClient.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 9C4FAEE42252A322B0545CF6 /* NSObject+Expecta.h in Headers */ = {isa = PBXBuildFile; fileRef = 57CF3ABF26B43FAE21E50CB8 /* NSObject+Expecta.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 9E4390595213439458955F20 /* UIAlertView+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 17B44C925280520EEE336E3D /* UIAlertView+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 9E55563763BFCCA174A600C5 /* SWGQueryParamCollection.h in Headers */ = {isa = PBXBuildFile; fileRef = A94D44F705B09EAE0420833B /* SWGQueryParamCollection.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 9E825293685B2F9CCB212441 /* Pods-SwaggerClient_Tests-Expecta-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D09D890FDA06F27AD79B2C6 /* Pods-SwaggerClient_Tests-Expecta-dummy.m */; }; - 9F71319C3E9362B30F6C3769 /* AFURLConnectionOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 932F77F2D9785F0A401CAA9B /* AFURLConnectionOperation.m */; }; - A070DA3650B5255D70D2B282 /* NSValue+Expecta.h in Headers */ = {isa = PBXBuildFile; fileRef = AAA259A98CD2B660A0FDA33A /* NSValue+Expecta.h */; settings = {ATTRIBUTES = (Public, ); }; }; - A12B12D456D0FB491E19B70F /* Pods-SwaggerClient_Example-ISO8601-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 57E80A657EA2993398931392 /* Pods-SwaggerClient_Example-ISO8601-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - A1C1A904CA59FC4D76396175 /* EXPMatchers+postNotification.h in Headers */ = {isa = PBXBuildFile; fileRef = 8C9F5723E5940D1269352135 /* EXPMatchers+postNotification.h */; settings = {ATTRIBUTES = (Public, ); }; }; - A206B6446D5E2CABE5586523 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 671A488088E85A1E9E82C2D4 /* Foundation.framework */; }; - A325E1719B72BDDEE0616DBF /* SWGTag.m in Sources */ = {isa = PBXBuildFile; fileRef = 2C14451912091A7274AEF9E1 /* SWGTag.m */; }; - A341B6CFB383324AA067A6C9 /* SWGObject.h in Headers */ = {isa = PBXBuildFile; fileRef = 79F66BA3CD50A4290602F14B /* SWGObject.h */; settings = {ATTRIBUTES = (Public, ); }; }; - A39E4CD5AE12216FB1487BE3 /* EXPMatchers+beIdenticalTo.h in Headers */ = {isa = PBXBuildFile; fileRef = 280E652D458B4E1ED5BFFA77 /* EXPMatchers+beIdenticalTo.h */; settings = {ATTRIBUTES = (Public, ); }; }; - A52C6D47F0316E0850BDB9CC /* EXPMatchers+beginWith.h in Headers */ = {isa = PBXBuildFile; fileRef = F0A24157B4BA2D2E1B9CEC18 /* EXPMatchers+beginWith.h */; settings = {ATTRIBUTES = (Public, ); }; }; - A53061A46842AA54DAB54023 /* JSONAPI.m in Sources */ = {isa = PBXBuildFile; fileRef = D906469EA22490516C576F34 /* JSONAPI.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - A5A2B75AEEE5F1471ABF7C51 /* SWGFile.m in Sources */ = {isa = PBXBuildFile; fileRef = CC3AAA85DF4F0B6AF3F65FF3 /* SWGFile.m */; }; - A615771FAD89E35239D87FF6 /* UIKit+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 465A5132BD0966DB9C04040F /* UIKit+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; - A6A04E6DCA180CCB638EB663 /* UIActivityIndicatorView+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = ADB3BBE96E032B65F3501046 /* UIActivityIndicatorView+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; - A7B0C16EEB7FFA25C25370D4 /* JSONModel.h in Headers */ = {isa = PBXBuildFile; fileRef = 67A228DF9CD60524B576E388 /* JSONModel.h */; settings = {ATTRIBUTES = (Public, ); }; }; - A8C07412B7F1F58F95027E4B /* SPTExampleGroup.h in Headers */ = {isa = PBXBuildFile; fileRef = 449238F2067778F11FC67BBC /* SPTExampleGroup.h */; settings = {ATTRIBUTES = (Public, ); }; }; - A8CAB0E9B1CF76911B13ECC0 /* SPTExcludeGlobalBeforeAfterEach.h in Headers */ = {isa = PBXBuildFile; fileRef = D7D3138EAAE50116ADEF292E /* SPTExcludeGlobalBeforeAfterEach.h */; settings = {ATTRIBUTES = (Public, ); }; }; - A9099FF7B971FB25BE12CE34 /* SWGMythingApi.h in Headers */ = {isa = PBXBuildFile; fileRef = 714BA14CC63A7438D89F7181 /* SWGMythingApi.h */; settings = {ATTRIBUTES = (Public, ); }; }; - A94CB6D49585BD2377348821 /* ExpectaSupport.h in Headers */ = {isa = PBXBuildFile; fileRef = 432957C61F24704F540BB578 /* ExpectaSupport.h */; settings = {ATTRIBUTES = (Public, ); }; }; - AA260D742DDFFB983A47540C /* SWGUserApi.h in Headers */ = {isa = PBXBuildFile; fileRef = 20402A2505F9199C8CF42E06 /* SWGUserApi.h */; settings = {ATTRIBUTES = (Public, ); }; }; - AA31F2218DEBC427DA074A6F /* EXPMatchers+haveCountOf.m in Sources */ = {isa = PBXBuildFile; fileRef = F0761D1A1069513A78630ABA /* EXPMatchers+haveCountOf.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - AAD24B3301CA60B702236DAB /* SWGJSONResponseSerializer.m in Sources */ = {isa = PBXBuildFile; fileRef = CB9DA7BA9A24B089C6FC9AA9 /* SWGJSONResponseSerializer.m */; }; - AB5C9A3A56CEBAB1AD349A33 /* AFNetworkReachabilityManager.h in Headers */ = {isa = PBXBuildFile; fileRef = E1268621ACDBA89268F6D79A /* AFNetworkReachabilityManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ABB477C54AD69931FDAD534A /* EXPMatchers+raiseWithReason.m in Sources */ = {isa = PBXBuildFile; fileRef = 73B6962701256AF21226A51C /* EXPMatchers+raiseWithReason.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - ACD3422A4497EA29AB24A72E /* AFURLRequestSerialization.h in Headers */ = {isa = PBXBuildFile; fileRef = 20527E0700B1756AD0DB7B16 /* AFURLRequestSerialization.h */; settings = {ATTRIBUTES = (Public, ); }; }; - AD94F44BEC5659D1BB34DE23 /* SPTExampleGroup.m in Sources */ = {isa = PBXBuildFile; fileRef = 6C668D785979FC25F7808753 /* SPTExampleGroup.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - AD992DDF15A32176B225DE7D /* EXPMatchers.h in Headers */ = {isa = PBXBuildFile; fileRef = 28C0B26C4BD3B468DF0C9526 /* EXPMatchers.h */; settings = {ATTRIBUTES = (Public, ); }; }; - AF5EA9CC989D2DD5BBC37E6D /* EXPMatchers+beginWith.m in Sources */ = {isa = PBXBuildFile; fileRef = E4A1DE5345BA9BBB37D745D1 /* EXPMatchers+beginWith.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - AF7B682321A34F5E0DC249CC /* Pods-SwaggerClient_Tests-ISO8601-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 32DE028703A8C4BC2B9C2A2E /* Pods-SwaggerClient_Tests-ISO8601-dummy.m */; }; - AFFF90368E8F9EF5886C30B2 /* JSONValueTransformer.m in Sources */ = {isa = PBXBuildFile; fileRef = 90B1F5AE7FE9B9050C58885E /* JSONValueTransformer.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - B13D156D3F01638F8D3EC102 /* AFHTTPSessionManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 1CC3292F6BE0120D0599D089 /* AFHTTPSessionManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; - B1E4B9C9C788060FA05197D8 /* JSONModelClassProperty.h in Headers */ = {isa = PBXBuildFile; fileRef = 9725EE5FF670963BBEF4680E /* JSONModelClassProperty.h */; settings = {ATTRIBUTES = (Public, ); }; }; - B2A892164C701F606A01393A /* AFURLResponseSerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = 9BA881BAA0B2D3D3A54F5C84 /* AFURLResponseSerialization.m */; }; - B423A4F4EC57E34D565252DC /* UIButton+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = D9D7CF7D518DD91902CFC101 /* UIButton+AFNetworking.m */; }; - B4795C0A8815C3A0950EC1B3 /* EXPMatchers+endWith.m in Sources */ = {isa = PBXBuildFile; fileRef = BD363A11A16DE391FD666E56 /* EXPMatchers+endWith.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - B4D66A60456836C75E244CA1 /* SWGTag.h in Headers */ = {isa = PBXBuildFile; fileRef = 8A8892A67E4E1629B3650958 /* SWGTag.h */; settings = {ATTRIBUTES = (Public, ); }; }; - B540F67558AA7A144899EBBF /* SPTSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 3159DE92BFB696E3EC0DC17B /* SPTSpec.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - B577C09AD427A9630FC2762A /* Pods-SwaggerClient_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 1FE46EF9D2B28F3F175C4215 /* Pods-SwaggerClient_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - B69AF6583C37F97E73A631A4 /* EXPMatchers+match.h in Headers */ = {isa = PBXBuildFile; fileRef = EC4578A72A4B005F7E2196EA /* EXPMatchers+match.h */; settings = {ATTRIBUTES = (Public, ); }; }; - B6DAEBF843B8DC1DC8E3906F /* Pods-SwaggerClient_Tests-AFNetworking-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 7BAEA77B327844A9285B8670 /* Pods-SwaggerClient_Tests-AFNetworking-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - B7BFFB369FFC08F30144EB53 /* AFHTTPRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 3EBE9CEA32E33C741FA62D9D /* AFHTTPRequestOperation.m */; }; - B85B153A4B53D16F245FEEAA /* AFNetworkReachabilityManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 3AABB6DD414B225AF74CDD9A /* AFNetworkReachabilityManager.m */; }; - B89BC26D73FFE70F2F4BD7F9 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 671A488088E85A1E9E82C2D4 /* Foundation.framework */; }; - B977CEEA0F438EDF96140C66 /* UIKit+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 465A5132BD0966DB9C04040F /* UIKit+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; - B9BA486CAAEB77195346C34B /* UIActivityIndicatorView+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = ADB3BBE96E032B65F3501046 /* UIActivityIndicatorView+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; - B9D2A404F1B49622441EBB16 /* JSONAPI.h in Headers */ = {isa = PBXBuildFile; fileRef = DFB8A849BA1FECF15636A354 /* JSONAPI.h */; settings = {ATTRIBUTES = (Public, ); }; }; - B9E4C068BE8563261382F6A0 /* UIWebView+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 63B8703F981C6122B7B45873 /* UIWebView+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; - BD3DBE17D08805BA594C4CDF /* ExpectaSupport.m in Sources */ = {isa = PBXBuildFile; fileRef = 8E7B7B2C24266DB4297E958E /* ExpectaSupport.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - BEA321219CA5B6A96477031D /* EXPMatchers+beCloseTo.h in Headers */ = {isa = PBXBuildFile; fileRef = 76F320CEEEEE2836A8B1AAEC /* EXPMatchers+beCloseTo.h */; settings = {ATTRIBUTES = (Public, ); }; }; - BEA7FF33522B439AEB60C281 /* JSONKeyMapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 2B99E0C1051BAF97AAA01CBB /* JSONKeyMapper.h */; settings = {ATTRIBUTES = (Public, ); }; }; - BEF99C501593E888D27462DD /* ExpectaObject.m in Sources */ = {isa = PBXBuildFile; fileRef = 243595BDFC8D37871876A044 /* ExpectaObject.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - BF2DDC96324CFDF7C303F050 /* AFURLResponseSerialization.h in Headers */ = {isa = PBXBuildFile; fileRef = B931AE6695BDCE3352468AED /* AFURLResponseSerialization.h */; settings = {ATTRIBUTES = (Public, ); }; }; - BF726F674241490B1012F41D /* NSDate+ISO8601.h in Headers */ = {isa = PBXBuildFile; fileRef = 7696D6A816053B3FA0C31C17 /* NSDate+ISO8601.h */; settings = {ATTRIBUTES = (Public, ); }; }; - BF9AD2E3F2BBB0F23C5FE05B /* EXPMatchers+beKindOf.m in Sources */ = {isa = PBXBuildFile; fileRef = 6366F5C2F45F2C79A805911E /* EXPMatchers+beKindOf.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - C05D4C12A5819F4C96283EF0 /* EXPMatchers+haveCountOf.h in Headers */ = {isa = PBXBuildFile; fileRef = 92F9946AF7B3E53FAFF57A19 /* EXPMatchers+haveCountOf.h */; settings = {ATTRIBUTES = (Public, ); }; }; - C070594757FF88D238C2FA87 /* AFURLRequestSerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = 43AA7EFAA794D57DE9CD481E /* AFURLRequestSerialization.m */; }; - C1664322571F72BEDD57250C /* JSONModelError.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B41F3EB7887EBB63F0F242A /* JSONModelError.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - C249634F44F546BBF6CA700F /* JSONModelArray.m in Sources */ = {isa = PBXBuildFile; fileRef = 63AAD00C6BF1CECE08D88CE3 /* JSONModelArray.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - C2BE2DCF5392F363C60A210B /* XCTestCase+Specta.h in Headers */ = {isa = PBXBuildFile; fileRef = 8CA55A6DD0BDCEBCF8BE2FE9 /* XCTestCase+Specta.h */; settings = {ATTRIBUTES = (Public, ); }; }; - C330AFEF3709DC609D18FE78 /* EXPMatchers+beKindOf.h in Headers */ = {isa = PBXBuildFile; fileRef = AA7C167E46BFFD6509CFE494 /* EXPMatchers+beKindOf.h */; settings = {ATTRIBUTES = (Public, ); }; }; - C3FA7E81592D8627DA34C669 /* JSONModel.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FBF9A35933615D555049BE26 /* JSONModel.framework */; }; - C59AA43C300E2D6018686D5C /* EXPMatchers+beTruthy.m in Sources */ = {isa = PBXBuildFile; fileRef = BE62E232E84FDF3AD5CDFE65 /* EXPMatchers+beTruthy.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - C63074C841FEFC17E3AB5C3C /* Pods-SwaggerClient_Tests-AFNetworking-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D6BA58FCD62CCE952D967CE /* Pods-SwaggerClient_Tests-AFNetworking-dummy.m */; }; - C6A0423CD8DBA07A30B98042 /* SWGPet.h in Headers */ = {isa = PBXBuildFile; fileRef = AAAB9238C7E7CC348DE482B8 /* SWGPet.h */; settings = {ATTRIBUTES = (Public, ); }; }; - C6D59104CEC4FAE304DA4D55 /* EXPBlockDefinedMatcher.h in Headers */ = {isa = PBXBuildFile; fileRef = 0164E9ECEC859315F7EC9249 /* EXPBlockDefinedMatcher.h */; settings = {ATTRIBUTES = (Public, ); }; }; - C84ED29D92C2DAF709D42519 /* AFHTTPRequestOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 1EE2D61D0FCBC33CFE8D24E9 /* AFHTTPRequestOperation.h */; settings = {ATTRIBUTES = (Public, ); }; }; - C9105E9B2229104E74953563 /* SWGJSONResponseSerializer.m in Sources */ = {isa = PBXBuildFile; fileRef = CB9DA7BA9A24B089C6FC9AA9 /* SWGJSONResponseSerializer.m */; }; - C9FEB3D995D761E335AD7564 /* Pods-SwaggerClient_Tests-Expecta-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = B46CB026DDB6706DAEDC86A3 /* Pods-SwaggerClient_Tests-Expecta-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - CA78D205AB1EFA5BFB5434FD /* JSONKeyMapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 37085BC581A14B6E3E8C4D09 /* JSONKeyMapper.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - CADBFFBB5024C1F7431B4161 /* SPTGlobalBeforeAfterEach.h in Headers */ = {isa = PBXBuildFile; fileRef = 36943083BECC0BE8A4A6AD94 /* SPTGlobalBeforeAfterEach.h */; settings = {ATTRIBUTES = (Public, ); }; }; - CB9C5D875643FBC019875C60 /* AFURLSessionManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 59E36693E29CCFE31E4EAC89 /* AFURLSessionManager.m */; }; - CC1FBF181AEECAD23864A42C /* Pods-SwaggerClient_Tests-Specta-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = BED74BBB7E4563223284FC51 /* Pods-SwaggerClient_Tests-Specta-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - CCF74087CAB105D4DED21E9F /* UIImageView+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 39E0EC01ADE9AA23B943AE97 /* UIImageView+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; - CDB76BF92E8780DFD831170E /* SWGJSONRequestSerializer.m in Sources */ = {isa = PBXBuildFile; fileRef = 331537C2B3681E368BD3C9CD /* SWGJSONRequestSerializer.m */; }; - CE1B2D9D23D09D355C7E07FE /* JSONModelClassProperty.m in Sources */ = {isa = PBXBuildFile; fileRef = 91DC534FB82569495452D79F /* JSONModelClassProperty.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - CECFB59C6E20B976193137D0 /* NSArray+JSONModel.m in Sources */ = {isa = PBXBuildFile; fileRef = C5AABD339B19F5117F87718C /* NSArray+JSONModel.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - CEF36F80E21F2D0234B5566A /* AFHTTPRequestOperationManager.h in Headers */ = {isa = PBXBuildFile; fileRef = FCDFE076FC0577667D18E47C /* AFHTTPRequestOperationManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; - D0230521FC1F6FF0AEB25B02 /* SWGObject.m in Sources */ = {isa = PBXBuildFile; fileRef = 93127E06DFE790D76898A78D /* SWGObject.m */; }; - D089D5A08CF97B04969C23E4 /* AFURLSessionManager.h in Headers */ = {isa = PBXBuildFile; fileRef = BEE9F929357775BD67A93711 /* AFURLSessionManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; - D0E021101C4457887F895E49 /* JSONValueTransformer+ISO8601.m in Sources */ = {isa = PBXBuildFile; fileRef = F2BF821324735755972447B0 /* JSONValueTransformer+ISO8601.m */; }; - D1750EAC8D3DBC472DDCBC9D /* EXPMatchers+beSubclassOf.h in Headers */ = {isa = PBXBuildFile; fileRef = 0A9A720E390B6BA9880D92DC /* EXPMatchers+beSubclassOf.h */; settings = {ATTRIBUTES = (Public, ); }; }; - D19EF86C3583D1B62A679E36 /* AFNetworking.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AC5A2E5A690111ACE39457A7 /* AFNetworking.framework */; }; - D25A60002AC50691F13E03C0 /* JSONModelLib.h in Headers */ = {isa = PBXBuildFile; fileRef = 3E6F8CCCB7A467D7ADCF9320 /* JSONModelLib.h */; settings = {ATTRIBUTES = (Public, ); }; }; - D2CB47DBB432B6BAA9C44EF6 /* SWGMythingApi.m in Sources */ = {isa = PBXBuildFile; fileRef = 5EB007D8397CABC3A86DC35B /* SWGMythingApi.m */; }; - D2D9A6640DB83E9E9430A97C /* SPTSpec.h in Headers */ = {isa = PBXBuildFile; fileRef = D733A96361018321D71A1E73 /* SPTSpec.h */; settings = {ATTRIBUTES = (Public, ); }; }; - D39D39947572DE9798E3D88B /* SWGMyresult.h in Headers */ = {isa = PBXBuildFile; fileRef = 8215F4EBBAA1231B662B87D4 /* SWGMyresult.h */; settings = {ATTRIBUTES = (Public, ); }; }; - D3E33F4136D0AA075C4C820F /* AFNetworking.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AC5A2E5A690111ACE39457A7 /* AFNetworking.framework */; }; - D46CB83D2BFA0851BC5D2061 /* SWGApiClient.m in Sources */ = {isa = PBXBuildFile; fileRef = A42D06ECA69A10D7B7AB66B5 /* SWGApiClient.m */; }; - D5C153FA62530DF6C2F0273C /* SWGPet.h in Headers */ = {isa = PBXBuildFile; fileRef = AAAB9238C7E7CC348DE482B8 /* SWGPet.h */; settings = {ATTRIBUTES = (Public, ); }; }; - D64936F4E16C7DDC5CA36786 /* AFHTTPSessionManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 1CC3292F6BE0120D0599D089 /* AFHTTPSessionManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; - D71C1CD54E1E0230C16A87F8 /* XCTestCase+Specta.m in Sources */ = {isa = PBXBuildFile; fileRef = 25F1293C6D78FDE07FC3136A /* XCTestCase+Specta.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - D7239B7051E31F27F8BEE765 /* EXPMatchers+beTruthy.h in Headers */ = {isa = PBXBuildFile; fileRef = 52CA44B02B7A9B384AE7EED6 /* EXPMatchers+beTruthy.h */; settings = {ATTRIBUTES = (Public, ); }; }; - D85897B024FC6FAD6069F022 /* SPTCallSite.h in Headers */ = {isa = PBXBuildFile; fileRef = E24BE6178D00F87643E8AD96 /* SPTCallSite.h */; settings = {ATTRIBUTES = (Public, ); }; }; - D8D2BF368F6CE862A6B7AA97 /* SPTExample.h in Headers */ = {isa = PBXBuildFile; fileRef = DCB73FE1B697EC492FCEBEFE /* SPTExample.h */; settings = {ATTRIBUTES = (Public, ); }; }; - D973A75729B33D7DBA665F94 /* UIProgressView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 90B1D038211337C21F9F8115 /* UIProgressView+AFNetworking.m */; }; - D9854E458AA2FBD78985A511 /* AFURLResponseSerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = 9BA881BAA0B2D3D3A54F5C84 /* AFURLResponseSerialization.m */; }; - D9DFA62AC86F87A197C5560C /* EXPMatchers+beInTheRangeOf.h in Headers */ = {isa = PBXBuildFile; fileRef = 98BBCF4F94F7882D6CA276C0 /* EXPMatchers+beInTheRangeOf.h */; settings = {ATTRIBUTES = (Public, ); }; }; - DAA1007C7857D3BE39826F91 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 671A488088E85A1E9E82C2D4 /* Foundation.framework */; }; - DB63C05804976AC7CDF74F4D /* SPTSharedExampleGroups.m in Sources */ = {isa = PBXBuildFile; fileRef = 099BDB9A4FE1FF80F9B1BA61 /* SPTSharedExampleGroups.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - DB8F6259B5D23FA526D5B6C7 /* Pods-SwaggerClient_Example-ISO8601-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 1C064E590FE5779DB6C05E82 /* Pods-SwaggerClient_Example-ISO8601-dummy.m */; }; - DBFB445AB39C5D946A2CC276 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AE7D0F77D853957EBCAE657F /* SystemConfiguration.framework */; }; - DC1A23AD09FFE1D162CF752C /* SWGOrder.h in Headers */ = {isa = PBXBuildFile; fileRef = AC70BE6F2761A3E4E4B84FDD /* SWGOrder.h */; settings = {ATTRIBUTES = (Public, ); }; }; - DF8E177952FDF501C1A4A2E4 /* UIActivityIndicatorView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = D3B9FF89412078F9C47D089B /* UIActivityIndicatorView+AFNetworking.m */; }; - DFA8365B324D8F74B8235B48 /* JSONHTTPClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 9BF513A105EEBB9C62BDD60B /* JSONHTTPClient.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - E160A83AA4A88114EE2409BE /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 671A488088E85A1E9E82C2D4 /* Foundation.framework */; }; - E3222F4CDFB84AFDF6739CEF /* SWGJSONRequestSerializer.m in Sources */ = {isa = PBXBuildFile; fileRef = 331537C2B3681E368BD3C9CD /* SWGJSONRequestSerializer.m */; }; - E33D4EA8D951458DF8A05254 /* SWGUserApi.m in Sources */ = {isa = PBXBuildFile; fileRef = F1BACAD5385F95B410BB7C87 /* SWGUserApi.m */; }; - E3C9C7EAD8A7690BE18CF43E /* UIAlertView+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 17B44C925280520EEE336E3D /* UIAlertView+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; - E4097E7ABE3BFD9AE7B2D446 /* UIWebView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 93FA4B97821DA8CDAE3310A5 /* UIWebView+AFNetworking.m */; }; - E4FCC6CE42AC64620298B912 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DCD887355DA3622403C587F3 /* Security.framework */; }; - E500C5512FD6F2D51E9AC635 /* AFSecurityPolicy.m in Sources */ = {isa = PBXBuildFile; fileRef = 451719F53715B179730D75E0 /* AFSecurityPolicy.m */; }; - E6389419244A7DC4C9C57934 /* SWGTag.h in Headers */ = {isa = PBXBuildFile; fileRef = 8A8892A67E4E1629B3650958 /* SWGTag.h */; settings = {ATTRIBUTES = (Public, ); }; }; - E6E0B4AD1CC2AFC6E80DAA67 /* JSONModel+networking.m in Sources */ = {isa = PBXBuildFile; fileRef = 80F6ECA6AB109AFD0CE2E9CF /* JSONModel+networking.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - E7933B64815CD27F8F7C3540 /* SWGJSONResponseSerializer.h in Headers */ = {isa = PBXBuildFile; fileRef = 7334D7BE223A4E8284A960DD /* SWGJSONResponseSerializer.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ECBEE6653FEB368DF6EA2147 /* SwaggerClient.bundle in Resources */ = {isa = PBXBuildFile; fileRef = F248532F283AF83DB6271DCE /* SwaggerClient.bundle */; }; - ECE599AE763A2C388157D2B1 /* JSONValueTransformer.h in Headers */ = {isa = PBXBuildFile; fileRef = 8ABA855B29B5869D5B9FE91C /* JSONValueTransformer.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ED132F7E6A664272D3FF3B53 /* EXPMatchers+beInstanceOf.h in Headers */ = {isa = PBXBuildFile; fileRef = 79FF652424AF75986DC0A953 /* EXPMatchers+beInstanceOf.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ED3C42A61083D6D95AA107AB /* UIProgressView+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 6CA609412EF66A9F84B11101 /* UIProgressView+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; - EE81625A23AF0564339C887C /* UIImageView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = D98544579F42370E657FA1A8 /* UIImageView+AFNetworking.m */; }; - EEB0BA1DC32939D00C3ED294 /* SPTExample.m in Sources */ = {isa = PBXBuildFile; fileRef = B7116485C5A4C1298D908727 /* SPTExample.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - EEC1D0AFE3CE69C65F59BED8 /* SPTTestSuite.h in Headers */ = {isa = PBXBuildFile; fileRef = 62B20D2725F0504EA461937E /* SPTTestSuite.h */; settings = {ATTRIBUTES = (Public, ); }; }; - EEC3C62F793F896CF5B0B8BF /* SWGStoreApi.m in Sources */ = {isa = PBXBuildFile; fileRef = 3CA2DD7C1A9CD271FBEEDCFA /* SWGStoreApi.m */; }; - EF7C4A59595F11105D6C2A65 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 671A488088E85A1E9E82C2D4 /* Foundation.framework */; }; - F00CD0B1A1A5D41A7C0A8A0E /* ISO8601.h in Headers */ = {isa = PBXBuildFile; fileRef = 08C151F4D754285116B7A228 /* ISO8601.h */; settings = {ATTRIBUTES = (Public, ); }; }; - F0E3847056B72A4ACC11650F /* AFURLConnectionOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 1C814F4EF3A744431BCD3807 /* AFURLConnectionOperation.h */; settings = {ATTRIBUTES = (Public, ); }; }; - F16001F37542754EC6BB8DD2 /* EXPMatchers+contain.m in Sources */ = {isa = PBXBuildFile; fileRef = 18A8D06FD0B3DCB85273BFE2 /* EXPMatchers+contain.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - F17018B643C6833F68258DE9 /* AFNetworkActivityIndicatorManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 9B8C04B0FE02D3F1E8759EBB /* AFNetworkActivityIndicatorManager.m */; }; - F26654D315EA6DCA41834C01 /* EXPMatchers+beGreaterThan.m in Sources */ = {isa = PBXBuildFile; fileRef = 579BC043B4015B34EAEEFF93 /* EXPMatchers+beGreaterThan.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - F2D019933E1752072C3226C6 /* UIProgressView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 90B1D038211337C21F9F8115 /* UIProgressView+AFNetworking.m */; }; - F34C32CDBC26097517DD947F /* SWGCategory.h in Headers */ = {isa = PBXBuildFile; fileRef = B3870DA6EC44CBA8FA1E4893 /* SWGCategory.h */; settings = {ATTRIBUTES = (Public, ); }; }; - F55122FA09A1A3BBD62E54B3 /* SWGUser.h in Headers */ = {isa = PBXBuildFile; fileRef = 1F64414F4ED6C6AEB76C5CF9 /* SWGUser.h */; settings = {ATTRIBUTES = (Public, ); }; }; - F55E8B76B45DE49306387219 /* EXPMatchers+beNil.h in Headers */ = {isa = PBXBuildFile; fileRef = F54CBCBF08E4D2FEE8EC979F /* EXPMatchers+beNil.h */; settings = {ATTRIBUTES = (Public, ); }; }; - F67A3EE5DE902A585BDEDC01 /* EXPMatcherHelpers.h in Headers */ = {isa = PBXBuildFile; fileRef = EBA8DB7BB0A1DDD958C68683 /* EXPMatcherHelpers.h */; settings = {ATTRIBUTES = (Public, ); }; }; - F9B487686092CAF6F341F0B4 /* ISO8601.h in Headers */ = {isa = PBXBuildFile; fileRef = 08C151F4D754285116B7A228 /* ISO8601.h */; settings = {ATTRIBUTES = (Public, ); }; }; - FA15E8CCF2EE07E232BE3171 /* UIButton+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = D9D7CF7D518DD91902CFC101 /* UIButton+AFNetworking.m */; }; - FB1C86BB963AE459A2F77925 /* EXPMatchers+respondTo.h in Headers */ = {isa = PBXBuildFile; fileRef = 9D261465E6EF11B9AF904C67 /* EXPMatchers+respondTo.h */; settings = {ATTRIBUTES = (Public, ); }; }; - FDACF057168267FCDAB72DF1 /* SWGUserApi.h in Headers */ = {isa = PBXBuildFile; fileRef = 20402A2505F9199C8CF42E06 /* SWGUserApi.h */; settings = {ATTRIBUTES = (Public, ); }; }; - FDB1AA841E7569F2CAD1A487 /* EXPDoubleTuple.h in Headers */ = {isa = PBXBuildFile; fileRef = D1D250ADE57B52C791B82C52 /* EXPDoubleTuple.h */; settings = {ATTRIBUTES = (Public, ); }; }; - FE0A66CD1EBA3E418F2C1D00 /* NSDate+ISO8601.m in Sources */ = {isa = PBXBuildFile; fileRef = 427CEF67DFD8AFD42A5E8B10 /* NSDate+ISO8601.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - FE2033DD10C73DF0B8267A2C /* SWGPet.m in Sources */ = {isa = PBXBuildFile; fileRef = CB61EBD400A6C25EDC2BBEC2 /* SWGPet.m */; }; - FE705743662892EB52ADB7B9 /* SWGTag.m in Sources */ = {isa = PBXBuildFile; fileRef = 2C14451912091A7274AEF9E1 /* SWGTag.m */; }; - FEC1250CB58D27B11D7B6D82 /* Pods-SwaggerClient_Example-SwaggerClient-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 1D6580B23616BF5911DED5F5 /* Pods-SwaggerClient_Example-SwaggerClient-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - FEE8E2294C46AE7CE464264D /* EXPMatchers+beFalsy.h in Headers */ = {isa = PBXBuildFile; fileRef = 9B3A87165046AB537E76CFA0 /* EXPMatchers+beFalsy.h */; settings = {ATTRIBUTES = (Public, ); }; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 2F83CC8868CCC58549D23B75 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 2773EB90C58135F3C1FC4A1B /* Project object */; - proxyType = 1; - remoteGlobalIDString = BBD665C31D4B21357533473D; - remoteInfo = "Pods-SwaggerClient_Tests-JSONModel"; - }; - 35DEFA078ABE7B02680F7475 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 2773EB90C58135F3C1FC4A1B /* Project object */; - proxyType = 1; - remoteGlobalIDString = 58684BF8E23BF0837CADD868; - remoteInfo = "Pods-SwaggerClient_Example-AFNetworking"; - }; - 3E167B43249502B18F5351AC /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 2773EB90C58135F3C1FC4A1B /* Project object */; - proxyType = 1; - remoteGlobalIDString = C215F478D13D9D22D8E1EF48; - remoteInfo = "Pods-SwaggerClient_Tests-Expecta"; - }; - 65A8E4E62B9816273B466AA8 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 2773EB90C58135F3C1FC4A1B /* Project object */; - proxyType = 1; - remoteGlobalIDString = BBD665C31D4B21357533473D; - remoteInfo = "Pods-SwaggerClient_Tests-JSONModel"; - }; - 6CFF13F0D8A307887FE05E67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 2773EB90C58135F3C1FC4A1B /* Project object */; - proxyType = 1; - remoteGlobalIDString = AF87B186D8CCE5424F3A8D43; - remoteInfo = "Pods-SwaggerClient_Tests-ISO8601"; - }; - 888799CCFD2AB4A92A9B4A4D /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 2773EB90C58135F3C1FC4A1B /* Project object */; - proxyType = 1; - remoteGlobalIDString = 5D6776B420CF321A265D866F; - remoteInfo = "Pods-SwaggerClient_Tests-Specta"; - }; - 9B368F4D9DF66B5E965986C6 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 2773EB90C58135F3C1FC4A1B /* Project object */; - proxyType = 1; - remoteGlobalIDString = 9A7195F471543DF0C0847DF5; - remoteInfo = "Pods-SwaggerClient_Tests-SwaggerClient"; - }; - A162F62BEE1492CF1BB6A2BE /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 2773EB90C58135F3C1FC4A1B /* Project object */; - proxyType = 1; - remoteGlobalIDString = AF87B186D8CCE5424F3A8D43; - remoteInfo = "Pods-SwaggerClient_Tests-ISO8601"; - }; - A9E619AFCC2FBD32EE05B6C2 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 2773EB90C58135F3C1FC4A1B /* Project object */; - proxyType = 1; - remoteGlobalIDString = 7DCA9F990FC46BE1EFE6E984; - remoteInfo = "Pods-SwaggerClient_Example-SwaggerClient-SwaggerClient"; - }; - B3F82AC3BCEB16AD74AA3091 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 2773EB90C58135F3C1FC4A1B /* Project object */; - proxyType = 1; - remoteGlobalIDString = F41FA180E243133D32149CC3; - remoteInfo = "Pods-SwaggerClient_Example-SwaggerClient"; - }; - BB29CEBC89A3E750582C41F4 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 2773EB90C58135F3C1FC4A1B /* Project object */; - proxyType = 1; - remoteGlobalIDString = DDC8A358588D2A3B692812B1; - remoteInfo = "Pods-SwaggerClient_Tests-AFNetworking"; - }; - BDC82344596574309B6BB2A3 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 2773EB90C58135F3C1FC4A1B /* Project object */; - proxyType = 1; - remoteGlobalIDString = DDC8A358588D2A3B692812B1; - remoteInfo = "Pods-SwaggerClient_Tests-AFNetworking"; - }; - C683E7A210CF97EA075DB68C /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 2773EB90C58135F3C1FC4A1B /* Project object */; - proxyType = 1; - remoteGlobalIDString = 4B19C784C3E2E4F174682EE7; - remoteInfo = "Pods-SwaggerClient_Example-JSONModel"; - }; - E244661BA566E81A5E0825C1 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 2773EB90C58135F3C1FC4A1B /* Project object */; - proxyType = 1; - remoteGlobalIDString = 0302FEB4C8D5554EBF417C18; - remoteInfo = "Pods-SwaggerClient_Tests-SwaggerClient-SwaggerClient"; - }; - EF00F23BFB412FB1141D43C5 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 2773EB90C58135F3C1FC4A1B /* Project object */; - proxyType = 1; - remoteGlobalIDString = EC89492AC5A2DC4B6E6BC599; - remoteInfo = "Pods-SwaggerClient_Example-ISO8601"; - }; - F2FE102F982CD5E7539DA87C /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 2773EB90C58135F3C1FC4A1B /* Project object */; - proxyType = 1; - remoteGlobalIDString = EC89492AC5A2DC4B6E6BC599; - remoteInfo = "Pods-SwaggerClient_Example-ISO8601"; - }; - F8D1ACE4B4B9D16C36898171 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 2773EB90C58135F3C1FC4A1B /* Project object */; - proxyType = 1; - remoteGlobalIDString = 58684BF8E23BF0837CADD868; - remoteInfo = "Pods-SwaggerClient_Example-AFNetworking"; - }; - F965A0DD3DF9CB139F6943BB /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 2773EB90C58135F3C1FC4A1B /* Project object */; - proxyType = 1; - remoteGlobalIDString = 4B19C784C3E2E4F174682EE7; - remoteInfo = "Pods-SwaggerClient_Example-JSONModel"; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 016434DA280A6337716485B9 /* EXPMatchers+beInstanceOf.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+beInstanceOf.m"; path = "Expecta/Matchers/EXPMatchers+beInstanceOf.m"; sourceTree = ""; }; - 0164E9ECEC859315F7EC9249 /* EXPBlockDefinedMatcher.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXPBlockDefinedMatcher.h; path = Expecta/EXPBlockDefinedMatcher.h; sourceTree = ""; }; - 01FC7B913F4D0D8ABA61D37F /* Pods-SwaggerClient_Tests-JSONModel-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "Pods-SwaggerClient_Tests-JSONModel-umbrella.h"; path = "../Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel-umbrella.h"; sourceTree = ""; }; - 02BFF49A4C0CD62A7A017609 /* Pods-SwaggerClient_Example-JSONModel-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SwaggerClient_Example-JSONModel-umbrella.h"; sourceTree = ""; }; - 031E5A051C1B351EAECABE44 /* UIButton+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIButton+AFNetworking.h"; path = "UIKit+AFNetworking/UIButton+AFNetworking.h"; sourceTree = ""; }; - 034BC9278FF5FAA0BF7EDE54 /* Pods-SwaggerClient_Tests-Specta-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SwaggerClient_Tests-Specta-prefix.pch"; sourceTree = ""; }; - 05E2B2609E8745F0FFA56EAC /* Pods-SwaggerClient_Tests-Expecta.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SwaggerClient_Tests-Expecta.xcconfig"; sourceTree = ""; }; - 08C151F4D754285116B7A228 /* ISO8601.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ISO8601.h; path = ISO8601/ISO8601.h; sourceTree = ""; }; - 099BDB9A4FE1FF80F9B1BA61 /* SPTSharedExampleGroups.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SPTSharedExampleGroups.m; path = Specta/Specta/SPTSharedExampleGroups.m; sourceTree = ""; }; - 0A9A720E390B6BA9880D92DC /* EXPMatchers+beSubclassOf.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+beSubclassOf.h"; path = "Expecta/Matchers/EXPMatchers+beSubclassOf.h"; sourceTree = ""; }; - 0AABA64768BF1C67079AC14C /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; - 0AFADA1570737157E9617EFA /* EXPMatchers+beCloseTo.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+beCloseTo.m"; path = "Expecta/Matchers/EXPMatchers+beCloseTo.m"; sourceTree = ""; }; - 0B0D24466BA8FF3A32751D38 /* EXPUnsupportedObject.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = EXPUnsupportedObject.m; path = Expecta/EXPUnsupportedObject.m; sourceTree = ""; }; - 0C7C70764F7DC898F9CD47C9 /* Pods-SwaggerClient_Tests-AFNetworking.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; name = "Pods-SwaggerClient_Tests-AFNetworking.modulemap"; path = "../Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking.modulemap"; sourceTree = ""; }; - 0E33B17ABCEF8719288A1534 /* EXPMatchers+raise.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+raise.m"; path = "Expecta/Matchers/EXPMatchers+raise.m"; sourceTree = ""; }; - 0F8CC8C24B86136D1949316C /* EXPMatchers+raise.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+raise.h"; path = "Expecta/Matchers/EXPMatchers+raise.h"; sourceTree = ""; }; - 10DFD3D78F972F78D71BB6E7 /* Pods-SwaggerClient_Tests-ISO8601-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "Pods-SwaggerClient_Tests-ISO8601-prefix.pch"; path = "../Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601-prefix.pch"; sourceTree = ""; }; - 1186977B42F8F3FC21D1A7B9 /* Pods-SwaggerClient_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SwaggerClient_Example.release.xcconfig"; sourceTree = ""; }; - 1284C207920C60CCFF057D06 /* Pods-SwaggerClient_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SwaggerClient_Example.debug.xcconfig"; sourceTree = ""; }; - 145BFF1E93D758B233F0AE9E /* Pods-SwaggerClient_Example-JSONModel.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-SwaggerClient_Example-JSONModel.modulemap"; sourceTree = ""; }; - 1527CA2833B390D6002D3965 /* EXPMatchers+beSubclassOf.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+beSubclassOf.m"; path = "Expecta/Matchers/EXPMatchers+beSubclassOf.m"; sourceTree = ""; }; - 16CF586DFE9835700F2EDA9E /* Pods-SwaggerClient_Tests-JSONModel-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "Pods-SwaggerClient_Tests-JSONModel-dummy.m"; path = "../Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel-dummy.m"; sourceTree = ""; }; - 17B44C925280520EEE336E3D /* UIAlertView+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIAlertView+AFNetworking.h"; path = "UIKit+AFNetworking/UIAlertView+AFNetworking.h"; sourceTree = ""; }; - 18A8D06FD0B3DCB85273BFE2 /* EXPMatchers+contain.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+contain.m"; path = "Expecta/Matchers/EXPMatchers+contain.m"; sourceTree = ""; }; - 194518CC1A4D172FAA272DB9 /* EXPMatchers+beSupersetOf.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+beSupersetOf.m"; path = "Expecta/Matchers/EXPMatchers+beSupersetOf.m"; sourceTree = ""; }; - 1964DA329721A95476AFBC20 /* Pods-SwaggerClient_Tests-SwaggerClient-Private.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwaggerClient_Tests-SwaggerClient-Private.xcconfig"; path = "../Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient-Private.xcconfig"; sourceTree = ""; }; - 1A3143CF53A3ECFD840FEBF5 /* SpectaTypes.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SpectaTypes.h; path = Specta/Specta/SpectaTypes.h; sourceTree = ""; }; - 1C064E590FE5779DB6C05E82 /* Pods-SwaggerClient_Example-ISO8601-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-SwaggerClient_Example-ISO8601-dummy.m"; sourceTree = ""; }; - 1C814F4EF3A744431BCD3807 /* AFURLConnectionOperation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFURLConnectionOperation.h; path = AFNetworking/AFURLConnectionOperation.h; sourceTree = ""; }; - 1CC3292F6BE0120D0599D089 /* AFHTTPSessionManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFHTTPSessionManager.h; path = AFNetworking/AFHTTPSessionManager.h; sourceTree = ""; }; - 1D6580B23616BF5911DED5F5 /* Pods-SwaggerClient_Example-SwaggerClient-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SwaggerClient_Example-SwaggerClient-umbrella.h"; sourceTree = ""; }; - 1E1126602057323308CBEB1C /* SpectaDSL.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SpectaDSL.h; path = Specta/Specta/SpectaDSL.h; sourceTree = ""; }; - 1E32292D3F4D806B627F1570 /* SWGConfiguration.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = SWGConfiguration.m; sourceTree = ""; }; - 1E735B9956F587EB8E4B85CF /* UIAlertView+AFNetworking.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIAlertView+AFNetworking.m"; path = "UIKit+AFNetworking/UIAlertView+AFNetworking.m"; sourceTree = ""; }; - 1EE2D61D0FCBC33CFE8D24E9 /* AFHTTPRequestOperation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFHTTPRequestOperation.h; path = AFNetworking/AFHTTPRequestOperation.h; sourceTree = ""; }; - 1F64414F4ED6C6AEB76C5CF9 /* SWGUser.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = SWGUser.h; sourceTree = ""; }; - 1FE46EF9D2B28F3F175C4215 /* Pods-SwaggerClient_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SwaggerClient_Tests-umbrella.h"; sourceTree = ""; }; - 20402A2505F9199C8CF42E06 /* SWGUserApi.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = SWGUserApi.h; sourceTree = ""; }; - 20527E0700B1756AD0DB7B16 /* AFURLRequestSerialization.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFURLRequestSerialization.h; path = AFNetworking/AFURLRequestSerialization.h; sourceTree = ""; }; - 243595BDFC8D37871876A044 /* ExpectaObject.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = ExpectaObject.m; path = Expecta/ExpectaObject.m; sourceTree = ""; }; - 253D83DD07A18825650BBBE9 /* Pods-SwaggerClient_Example-AFNetworking-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SwaggerClient_Example-AFNetworking-prefix.pch"; sourceTree = ""; }; - 25F1293C6D78FDE07FC3136A /* XCTestCase+Specta.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "XCTestCase+Specta.m"; path = "Specta/Specta/XCTestCase+Specta.m"; sourceTree = ""; }; - 26140D01ECBBE302403277E7 /* EXPMatchers+equal.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+equal.m"; path = "Expecta/Matchers/EXPMatchers+equal.m"; sourceTree = ""; }; - 261CD7AA6DF0D6C7C0EBD146 /* Pods-SwaggerClient_Example-ISO8601-Private.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SwaggerClient_Example-ISO8601-Private.xcconfig"; sourceTree = ""; }; - 280E652D458B4E1ED5BFFA77 /* EXPMatchers+beIdenticalTo.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+beIdenticalTo.h"; path = "Expecta/Matchers/EXPMatchers+beIdenticalTo.h"; sourceTree = ""; }; - 28C0B26C4BD3B468DF0C9526 /* EXPMatchers.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXPMatchers.h; path = Expecta/Matchers/EXPMatchers.h; sourceTree = ""; }; - 28CEAD6EAF4AC73948D28F2B /* EXPMatchers+beSupersetOf.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+beSupersetOf.h"; path = "Expecta/Matchers/EXPMatchers+beSupersetOf.h"; sourceTree = ""; }; - 2B34AB4D5CC64918834A0AC0 /* Pods-SwaggerClient_Tests-SwaggerClient-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "Pods-SwaggerClient_Tests-SwaggerClient-prefix.pch"; path = "../Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient-prefix.pch"; sourceTree = ""; }; - 2B84527440CA189207D786E6 /* JSONModel.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = JSONModel.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 2B99E0C1051BAF97AAA01CBB /* JSONKeyMapper.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = JSONKeyMapper.h; path = JSONModel/JSONModelTransformations/JSONKeyMapper.h; sourceTree = ""; }; - 2C14451912091A7274AEF9E1 /* SWGTag.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = SWGTag.m; sourceTree = ""; }; - 2C4946DD8004B10DBD3BEBE0 /* EXPMatchers+conformTo.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+conformTo.m"; path = "Expecta/Matchers/EXPMatchers+conformTo.m"; sourceTree = ""; }; - 2D6BA58FCD62CCE952D967CE /* Pods-SwaggerClient_Tests-AFNetworking-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "Pods-SwaggerClient_Tests-AFNetworking-dummy.m"; path = "../Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking-dummy.m"; sourceTree = ""; }; - 2EBBCF0DEF5740D6612DEB32 /* SPTSharedExampleGroups.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SPTSharedExampleGroups.h; path = Specta/Specta/SPTSharedExampleGroups.h; sourceTree = ""; }; - 3159DE92BFB696E3EC0DC17B /* SPTSpec.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SPTSpec.m; path = Specta/Specta/SPTSpec.m; sourceTree = ""; }; - 31E351B8D77A0BDD27675BDB /* Pods-SwaggerClient_Example-SwaggerClient-Private.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SwaggerClient_Example-SwaggerClient-Private.xcconfig"; sourceTree = ""; }; - 32DE028703A8C4BC2B9C2A2E /* Pods-SwaggerClient_Tests-ISO8601-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "Pods-SwaggerClient_Tests-ISO8601-dummy.m"; path = "../Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601-dummy.m"; sourceTree = ""; }; - 331537C2B3681E368BD3C9CD /* SWGJSONRequestSerializer.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = SWGJSONRequestSerializer.m; sourceTree = ""; }; - 3348A38E5534FDD63284711E /* EXPMatchers+beLessThanOrEqualTo.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+beLessThanOrEqualTo.m"; path = "Expecta/Matchers/EXPMatchers+beLessThanOrEqualTo.m"; sourceTree = ""; }; - 35F8AFCBA88A170C1ED8B8EA /* SWGCategory.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = SWGCategory.m; sourceTree = ""; }; - 36943083BECC0BE8A4A6AD94 /* SPTGlobalBeforeAfterEach.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SPTGlobalBeforeAfterEach.h; path = Specta/Specta/SPTGlobalBeforeAfterEach.h; sourceTree = ""; }; - 36A7357E024D3B6884439E33 /* AFSecurityPolicy.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFSecurityPolicy.h; path = AFNetworking/AFSecurityPolicy.h; sourceTree = ""; }; - 36B743CDFC49D282EF4A78C8 /* Pods-SwaggerClient_Tests-ISO8601-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "Pods-SwaggerClient_Tests-ISO8601-umbrella.h"; path = "../Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601-umbrella.h"; sourceTree = ""; }; - 37085BC581A14B6E3E8C4D09 /* JSONKeyMapper.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = JSONKeyMapper.m; path = JSONModel/JSONModelTransformations/JSONKeyMapper.m; sourceTree = ""; }; - 381AE18EE5432808A1136286 /* Specta.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = Specta.h; path = Specta/Specta/Specta.h; sourceTree = ""; }; - 39E0EC01ADE9AA23B943AE97 /* UIImageView+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIImageView+AFNetworking.h"; path = "UIKit+AFNetworking/UIImageView+AFNetworking.h"; sourceTree = ""; }; - 3AABB6DD414B225AF74CDD9A /* AFNetworkReachabilityManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFNetworkReachabilityManager.m; path = AFNetworking/AFNetworkReachabilityManager.m; sourceTree = ""; }; - 3CA2DD7C1A9CD271FBEEDCFA /* SWGStoreApi.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = SWGStoreApi.m; sourceTree = ""; }; - 3E6F8CCCB7A467D7ADCF9320 /* JSONModelLib.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = JSONModelLib.h; path = JSONModel/JSONModelLib.h; sourceTree = ""; }; - 3EBE9CEA32E33C741FA62D9D /* AFHTTPRequestOperation.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFHTTPRequestOperation.m; path = AFNetworking/AFHTTPRequestOperation.m; sourceTree = ""; }; - 3FA82A66FE087D46B5F479DF /* EXPDoubleTuple.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = EXPDoubleTuple.m; path = Expecta/EXPDoubleTuple.m; sourceTree = ""; }; - 4124065010B426E1D6A20E50 /* Pods-SwaggerClient_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SwaggerClient_Tests-frameworks.sh"; sourceTree = ""; }; - 427CEF67DFD8AFD42A5E8B10 /* NSDate+ISO8601.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "NSDate+ISO8601.m"; path = "ISO8601/NSDate+ISO8601.m"; sourceTree = ""; }; - 432957C61F24704F540BB578 /* ExpectaSupport.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ExpectaSupport.h; path = Expecta/ExpectaSupport.h; sourceTree = ""; }; - 43AA7EFAA794D57DE9CD481E /* AFURLRequestSerialization.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFURLRequestSerialization.m; path = AFNetworking/AFURLRequestSerialization.m; sourceTree = ""; }; - 449238F2067778F11FC67BBC /* SPTExampleGroup.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SPTExampleGroup.h; path = Specta/Specta/SPTExampleGroup.h; sourceTree = ""; }; - 451719F53715B179730D75E0 /* AFSecurityPolicy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFSecurityPolicy.m; path = AFNetworking/AFSecurityPolicy.m; sourceTree = ""; }; - 4648E753C7D4CD63548A0283 /* EXPFloatTuple.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXPFloatTuple.h; path = Expecta/EXPFloatTuple.h; sourceTree = ""; }; - 465A5132BD0966DB9C04040F /* UIKit+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIKit+AFNetworking.h"; path = "UIKit+AFNetworking/UIKit+AFNetworking.h"; sourceTree = ""; }; - 47C2E8EC548FF8BFE0B65660 /* EXPMatchers+postNotification.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+postNotification.m"; path = "Expecta/Matchers/EXPMatchers+postNotification.m"; sourceTree = ""; }; - 4A51ED87332338CA1F8D657A /* Pods-SwaggerClient_Tests-SwaggerClient.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwaggerClient_Tests-SwaggerClient.xcconfig"; path = "../Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient.xcconfig"; sourceTree = ""; }; - 4CC80CC87AB4F795DC536F6B /* Pods-SwaggerClient_Tests-ISO8601-Private.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwaggerClient_Tests-ISO8601-Private.xcconfig"; path = "../Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601-Private.xcconfig"; sourceTree = ""; }; - 4DA0260CE5A8A4FDA879A100 /* EXPMatchers+beGreaterThanOrEqualTo.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+beGreaterThanOrEqualTo.h"; path = "Expecta/Matchers/EXPMatchers+beGreaterThanOrEqualTo.h"; sourceTree = ""; }; - 4DBC262A0DD3D8A392255054 /* AFHTTPSessionManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFHTTPSessionManager.m; path = AFNetworking/AFHTTPSessionManager.m; sourceTree = ""; }; - 4E270100DEFDE600FBCC15C8 /* Pods-SwaggerClient_Tests-AFNetworking-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "Pods-SwaggerClient_Tests-AFNetworking-prefix.pch"; path = "../Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking-prefix.pch"; sourceTree = ""; }; - 4E2CCF2F2B2988DE22AE21A8 /* SWGQueryParamCollection.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = SWGQueryParamCollection.m; sourceTree = ""; }; - 4EC94106B0E5549033F7BA15 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 4F282A1F87E3A1263AB11A47 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 4F4671535FDE630BAB38EBFC /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 4FE8797D427FFD0C0A7BEF85 /* Pods-SwaggerClient_Example-environment.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SwaggerClient_Example-environment.h"; sourceTree = ""; }; - 500D44D0509C0C1AF7854372 /* EXPMatchers+beFalsy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+beFalsy.m"; path = "Expecta/Matchers/EXPMatchers+beFalsy.m"; sourceTree = ""; }; - 517927BA19A3538D1E30DE50 /* Pods-SwaggerClient_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-SwaggerClient_Example-dummy.m"; sourceTree = ""; }; - 52CA44B02B7A9B384AE7EED6 /* EXPMatchers+beTruthy.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+beTruthy.h"; path = "Expecta/Matchers/EXPMatchers+beTruthy.h"; sourceTree = ""; }; - 5617AFD109F104A6504B905A /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 579BC043B4015B34EAEEFF93 /* EXPMatchers+beGreaterThan.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+beGreaterThan.m"; path = "Expecta/Matchers/EXPMatchers+beGreaterThan.m"; sourceTree = ""; }; - 57CF3ABF26B43FAE21E50CB8 /* NSObject+Expecta.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSObject+Expecta.h"; path = "Expecta/NSObject+Expecta.h"; sourceTree = ""; }; - 57E80A657EA2993398931392 /* Pods-SwaggerClient_Example-ISO8601-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SwaggerClient_Example-ISO8601-umbrella.h"; sourceTree = ""; }; - 58400894FEC50AFA461EA435 /* Pods-SwaggerClient_Example-SwaggerClient.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-SwaggerClient_Example-SwaggerClient.modulemap"; sourceTree = ""; }; - 5853898EA95C369F30529C9B /* EXPMatchers+beGreaterThanOrEqualTo.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+beGreaterThanOrEqualTo.m"; path = "Expecta/Matchers/EXPMatchers+beGreaterThanOrEqualTo.m"; sourceTree = ""; }; - 596F890BB01AA3448640038C /* Pods-SwaggerClient_Example-AFNetworking.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SwaggerClient_Example-AFNetworking.xcconfig"; sourceTree = ""; }; - 598BF1FC07A3867AB98B3140 /* Pods-SwaggerClient_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-SwaggerClient_Tests-acknowledgements.plist"; sourceTree = ""; }; - 59E36693E29CCFE31E4EAC89 /* AFURLSessionManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFURLSessionManager.m; path = AFNetworking/AFURLSessionManager.m; sourceTree = ""; }; - 59FC7EC3572287684B292D50 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 5ACAB4F433D4781F70935C78 /* Pods-SwaggerClient_Tests-JSONModel.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; name = "Pods-SwaggerClient_Tests-JSONModel.modulemap"; path = "../Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel.modulemap"; sourceTree = ""; }; - 5B582DC8026EDCEFE9570A57 /* SWGMyresult.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = SWGMyresult.m; sourceTree = ""; }; - 5D9FA3CD16F8BFD65BB2E28F /* AFNetworkActivityIndicatorManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFNetworkActivityIndicatorManager.h; path = "UIKit+AFNetworking/AFNetworkActivityIndicatorManager.h"; sourceTree = ""; }; - 5EB007D8397CABC3A86DC35B /* SWGMythingApi.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = SWGMythingApi.m; sourceTree = ""; }; - 5ED368FA80CE15CF073E7E4C /* SPTCallSite.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SPTCallSite.m; path = Specta/Specta/SPTCallSite.m; sourceTree = ""; }; - 5F5A1F2EC2AFCCB056F8E5F8 /* Pods-SwaggerClient_Tests-SwaggerClient.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; name = "Pods-SwaggerClient_Tests-SwaggerClient.modulemap"; path = "../Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient.modulemap"; sourceTree = ""; }; - 60DECAD526F277F125AC6CC8 /* Pods-SwaggerClient_Tests-Specta-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-SwaggerClient_Tests-Specta-dummy.m"; sourceTree = ""; }; - 60F89DDC8635677F871D034F /* SWGPetApi.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = SWGPetApi.h; sourceTree = ""; }; - 61ECE30CFAEE60A56370FFC4 /* Pods-SwaggerClient_Example-AFNetworking.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-SwaggerClient_Example-AFNetworking.modulemap"; sourceTree = ""; }; - 62B20D2725F0504EA461937E /* SPTTestSuite.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SPTTestSuite.h; path = Specta/Specta/SPTTestSuite.h; sourceTree = ""; }; - 62BC316D842CEB918EAC2F85 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 6366F5C2F45F2C79A805911E /* EXPMatchers+beKindOf.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+beKindOf.m"; path = "Expecta/Matchers/EXPMatchers+beKindOf.m"; sourceTree = ""; }; - 63A4708CCC1EF6AB1122AA0D /* ISO8601.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ISO8601.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 63AAD00C6BF1CECE08D88CE3 /* JSONModelArray.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = JSONModelArray.m; path = JSONModel/JSONModel/JSONModelArray.m; sourceTree = ""; }; - 63B8703F981C6122B7B45873 /* UIWebView+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIWebView+AFNetworking.h"; path = "UIKit+AFNetworking/UIWebView+AFNetworking.h"; sourceTree = ""; }; - 65B8DED1B65DC5B191ED3657 /* Pods-SwaggerClient_Tests-environment.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SwaggerClient_Tests-environment.h"; sourceTree = ""; }; - 66978135221A5645E30BE2F1 /* Pods-SwaggerClient_Example-ISO8601.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-SwaggerClient_Example-ISO8601.modulemap"; sourceTree = ""; }; - 671A488088E85A1E9E82C2D4 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; - 67A228DF9CD60524B576E388 /* JSONModel.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = JSONModel.h; path = JSONModel/JSONModel/JSONModel.h; sourceTree = ""; }; - 67D72714DD0EA3F6ABF35D2A /* JSONModelArray.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = JSONModelArray.h; path = JSONModel/JSONModel/JSONModelArray.h; sourceTree = ""; }; - 6B41F3EB7887EBB63F0F242A /* JSONModelError.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = JSONModelError.m; path = JSONModel/JSONModel/JSONModelError.m; sourceTree = ""; }; - 6C668D785979FC25F7808753 /* SPTExampleGroup.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SPTExampleGroup.m; path = Specta/Specta/SPTExampleGroup.m; sourceTree = ""; }; - 6CA609412EF66A9F84B11101 /* UIProgressView+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIProgressView+AFNetworking.h"; path = "UIKit+AFNetworking/UIProgressView+AFNetworking.h"; sourceTree = ""; }; - 6E2BDA79AAC1CC237F8E6194 /* Pods-SwaggerClient_Tests-Expecta-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SwaggerClient_Tests-Expecta-prefix.pch"; sourceTree = ""; }; - 70728AC343FB456859D11ABE /* SWGStoreApi.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = SWGStoreApi.h; sourceTree = ""; }; - 707946C9EEE0DF0640C426E2 /* UIRefreshControl+AFNetworking.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIRefreshControl+AFNetworking.m"; path = "UIKit+AFNetworking/UIRefreshControl+AFNetworking.m"; sourceTree = ""; }; - 71301AA0D0508AC69416EEFD /* EXPMatcher.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXPMatcher.h; path = Expecta/EXPMatcher.h; sourceTree = ""; }; - 714BA14CC63A7438D89F7181 /* SWGMythingApi.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = SWGMythingApi.h; sourceTree = ""; }; - 722C967FF2EE63957185640A /* EXPExpect.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXPExpect.h; path = Expecta/EXPExpect.h; sourceTree = ""; }; - 7334D7BE223A4E8284A960DD /* SWGJSONResponseSerializer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = SWGJSONResponseSerializer.h; sourceTree = ""; }; - 734153C8D7D6EE89E1CBF7A4 /* EXPFloatTuple.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = EXPFloatTuple.m; path = Expecta/EXPFloatTuple.m; sourceTree = ""; }; - 73B6962701256AF21226A51C /* EXPMatchers+raiseWithReason.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+raiseWithReason.m"; path = "Expecta/Matchers/EXPMatchers+raiseWithReason.m"; sourceTree = ""; }; - 7696D6A816053B3FA0C31C17 /* NSDate+ISO8601.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSDate+ISO8601.h"; path = "ISO8601/NSDate+ISO8601.h"; sourceTree = ""; }; - 76F320CEEEEE2836A8B1AAEC /* EXPMatchers+beCloseTo.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+beCloseTo.h"; path = "Expecta/Matchers/EXPMatchers+beCloseTo.h"; sourceTree = ""; }; - 77F99C66542F4EEBABCA1BD3 /* Specta.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Specta.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 78DEE88FE58FD1EB9ED82644 /* SPTCompiledExample.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SPTCompiledExample.h; path = Specta/Specta/SPTCompiledExample.h; sourceTree = ""; }; - 79CD799EA7C3F65509123C0E /* ISO8601Serialization.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = ISO8601Serialization.m; path = ISO8601/ISO8601Serialization.m; sourceTree = ""; }; - 79F66BA3CD50A4290602F14B /* SWGObject.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = SWGObject.h; sourceTree = ""; }; - 79FF652424AF75986DC0A953 /* EXPMatchers+beInstanceOf.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+beInstanceOf.h"; path = "Expecta/Matchers/EXPMatchers+beInstanceOf.h"; sourceTree = ""; }; - 7A0294B9DB6D28C931109F04 /* Pods-SwaggerClient_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SwaggerClient_Example-frameworks.sh"; sourceTree = ""; }; - 7A66B4F9A973BBBA0D4AF2D7 /* Pods-SwaggerClient_Tests-JSONModel-Private.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwaggerClient_Tests-JSONModel-Private.xcconfig"; path = "../Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel-Private.xcconfig"; sourceTree = ""; }; - 7BAEA77B327844A9285B8670 /* Pods-SwaggerClient_Tests-AFNetworking-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "Pods-SwaggerClient_Tests-AFNetworking-umbrella.h"; path = "../Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking-umbrella.h"; sourceTree = ""; }; - 7D09D890FDA06F27AD79B2C6 /* Pods-SwaggerClient_Tests-Expecta-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-SwaggerClient_Tests-Expecta-dummy.m"; sourceTree = ""; }; - 7D297B7DCEEC26B8CF1525F9 /* AFHTTPRequestOperationManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFHTTPRequestOperationManager.m; path = AFNetworking/AFHTTPRequestOperationManager.m; sourceTree = ""; }; - 7E1FD49EEBB1A08378F9ECA4 /* Pods-SwaggerClient_Tests-ISO8601.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; name = "Pods-SwaggerClient_Tests-ISO8601.modulemap"; path = "../Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601.modulemap"; sourceTree = ""; }; - 7F5E3C9D4DC0F9D156F215D9 /* Pods-SwaggerClient_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SwaggerClient_Example-resources.sh"; sourceTree = ""; }; - 80F6ECA6AB109AFD0CE2E9CF /* JSONModel+networking.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "JSONModel+networking.m"; path = "JSONModel/JSONModelNetworking/JSONModel+networking.m"; sourceTree = ""; }; - 8215F4EBBAA1231B662B87D4 /* SWGMyresult.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = SWGMyresult.h; sourceTree = ""; }; - 8371F57BE2022A982DD2C14B /* SWGOrder.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = SWGOrder.m; sourceTree = ""; }; - 83CAE1AE966882439F8A96EF /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; name = Info.plist; path = "../Pods-SwaggerClient_Tests-ISO8601/Info.plist"; sourceTree = ""; }; - 859359D6C9F1E75F8FD12FC7 /* EXPUnsupportedObject.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXPUnsupportedObject.h; path = Expecta/EXPUnsupportedObject.h; sourceTree = ""; }; - 88858C0B2B9F69FD1898CC7C /* SwaggerClient.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SwaggerClient.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; - 889B2226D66494C5DB5F33F9 /* JSONHTTPClient.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = JSONHTTPClient.h; path = JSONModel/JSONModelNetworking/JSONHTTPClient.h; sourceTree = ""; }; - 88AAAF1815056252470FC2A6 /* EXPMatchers+equal.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+equal.h"; path = "Expecta/Matchers/EXPMatchers+equal.h"; sourceTree = ""; }; - 8A8892A67E4E1629B3650958 /* SWGTag.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = SWGTag.h; sourceTree = ""; }; - 8ABA855B29B5869D5B9FE91C /* JSONValueTransformer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = JSONValueTransformer.h; path = JSONModel/JSONModelTransformations/JSONValueTransformer.h; sourceTree = ""; }; - 8C9F5723E5940D1269352135 /* EXPMatchers+postNotification.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+postNotification.h"; path = "Expecta/Matchers/EXPMatchers+postNotification.h"; sourceTree = ""; }; - 8CA55A6DD0BDCEBCF8BE2FE9 /* XCTestCase+Specta.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "XCTestCase+Specta.h"; path = "Specta/Specta/XCTestCase+Specta.h"; sourceTree = ""; }; - 8DB4BB24028928E6E7BE64E9 /* EXPMatchers+endWith.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+endWith.h"; path = "Expecta/Matchers/EXPMatchers+endWith.h"; sourceTree = ""; }; - 8E7B7B2C24266DB4297E958E /* ExpectaSupport.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = ExpectaSupport.m; path = Expecta/ExpectaSupport.m; sourceTree = ""; }; - 90B1D038211337C21F9F8115 /* UIProgressView+AFNetworking.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIProgressView+AFNetworking.m"; path = "UIKit+AFNetworking/UIProgressView+AFNetworking.m"; sourceTree = ""; }; - 90B1F5AE7FE9B9050C58885E /* JSONValueTransformer.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = JSONValueTransformer.m; path = JSONModel/JSONModelTransformations/JSONValueTransformer.m; sourceTree = ""; }; - 91DC534FB82569495452D79F /* JSONModelClassProperty.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = JSONModelClassProperty.m; path = JSONModel/JSONModel/JSONModelClassProperty.m; sourceTree = ""; }; - 92F9946AF7B3E53FAFF57A19 /* EXPMatchers+haveCountOf.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+haveCountOf.h"; path = "Expecta/Matchers/EXPMatchers+haveCountOf.h"; sourceTree = ""; }; - 93127E06DFE790D76898A78D /* SWGObject.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = SWGObject.m; sourceTree = ""; }; - 932F77F2D9785F0A401CAA9B /* AFURLConnectionOperation.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFURLConnectionOperation.m; path = AFNetworking/AFURLConnectionOperation.m; sourceTree = ""; }; - 93FA4B97821DA8CDAE3310A5 /* UIWebView+AFNetworking.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIWebView+AFNetworking.m"; path = "UIKit+AFNetworking/UIWebView+AFNetworking.m"; sourceTree = ""; }; - 95DDFA05DD6945745A0CA6A1 /* SWGPetApi.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = SWGPetApi.m; sourceTree = ""; }; - 96B0499DE5856DB93FACE9F3 /* Pods-SwaggerClient_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-SwaggerClient_Example-acknowledgements.markdown"; sourceTree = ""; }; - 9725EE5FF670963BBEF4680E /* JSONModelClassProperty.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = JSONModelClassProperty.h; path = JSONModel/JSONModel/JSONModelClassProperty.h; sourceTree = ""; }; - 9771D508607ABB6410B0BF9F /* Pods-SwaggerClient_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SwaggerClient_Tests.debug.xcconfig"; sourceTree = ""; }; - 9825D5812F3C1916DEF34E99 /* Pods-SwaggerClient_Example-SwaggerClient.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SwaggerClient_Example-SwaggerClient.xcconfig"; sourceTree = ""; }; - 98BBCF4F94F7882D6CA276C0 /* EXPMatchers+beInTheRangeOf.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+beInTheRangeOf.h"; path = "Expecta/Matchers/EXPMatchers+beInTheRangeOf.h"; sourceTree = ""; }; - 99A4A4B3247D70FBA6024D8F /* Pods-SwaggerClient_Example-JSONModel.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SwaggerClient_Example-JSONModel.xcconfig"; sourceTree = ""; }; - 9A06A521245DAB5B8F162AB4 /* EXPMatchers+respondTo.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+respondTo.m"; path = "Expecta/Matchers/EXPMatchers+respondTo.m"; sourceTree = ""; }; - 9A26EF949942E5B501DDD747 /* SpectaUtility.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SpectaUtility.h; path = Specta/Specta/SpectaUtility.h; sourceTree = ""; }; - 9B3A87165046AB537E76CFA0 /* EXPMatchers+beFalsy.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+beFalsy.h"; path = "Expecta/Matchers/EXPMatchers+beFalsy.h"; sourceTree = ""; }; - 9B8C04B0FE02D3F1E8759EBB /* AFNetworkActivityIndicatorManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFNetworkActivityIndicatorManager.m; path = "UIKit+AFNetworking/AFNetworkActivityIndicatorManager.m"; sourceTree = ""; }; - 9BA881BAA0B2D3D3A54F5C84 /* AFURLResponseSerialization.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = AFURLResponseSerialization.m; path = AFNetworking/AFURLResponseSerialization.m; sourceTree = ""; }; - 9BF513A105EEBB9C62BDD60B /* JSONHTTPClient.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = JSONHTTPClient.m; path = JSONModel/JSONModelNetworking/JSONHTTPClient.m; sourceTree = ""; }; - 9D261465E6EF11B9AF904C67 /* EXPMatchers+respondTo.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+respondTo.h"; path = "Expecta/Matchers/EXPMatchers+respondTo.h"; sourceTree = ""; }; - 9E2261DFC4C37167696E0BF2 /* SPTTestSuite.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SPTTestSuite.m; path = Specta/Specta/SPTTestSuite.m; sourceTree = ""; }; - 9F927BCFCED60E5C20DD572D /* SWGUser.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = SWGUser.m; sourceTree = ""; }; - A038A42B885D252D1A20C7CB /* SwaggerClient.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SwaggerClient.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - A1907A8F78BBCB2EF8450B44 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - A3345F9CAA9252356B6C083F /* Expecta.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Expecta.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - A3519105B4EF41F55126082D /* Pods-SwaggerClient_Example-AFNetworking-Private.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SwaggerClient_Example-AFNetworking-Private.xcconfig"; sourceTree = ""; }; - A3D3304828283C9BAC71B216 /* Pods-SwaggerClient_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SwaggerClient_Example-umbrella.h"; sourceTree = ""; }; - A3DA13084371612DD395FBFF /* ISO8601Serialization.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ISO8601Serialization.h; path = ISO8601/ISO8601Serialization.h; sourceTree = ""; }; - A4077B653CCC6F44DDA78122 /* Pods-SwaggerClient_Example-AFNetworking-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-SwaggerClient_Example-AFNetworking-dummy.m"; sourceTree = ""; }; - A41CD6CC31666FBF14F37933 /* SpectaDSL.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SpectaDSL.m; path = Specta/Specta/SpectaDSL.m; sourceTree = ""; }; - A42D06ECA69A10D7B7AB66B5 /* SWGApiClient.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = SWGApiClient.m; sourceTree = ""; }; - A5484E73AF459C17B7675EC4 /* AFNetworking.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = AFNetworking.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - A61413AE7365BA6BD1EC261F /* Pods-SwaggerClient_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SwaggerClient_Tests.release.xcconfig"; sourceTree = ""; }; - A79E486BE2BAA943C0E47F51 /* JSONModelError.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = JSONModelError.h; path = JSONModel/JSONModel/JSONModelError.h; sourceTree = ""; }; - A7E147F308CD2889593641F8 /* EXPMatchers+conformTo.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+conformTo.h"; path = "Expecta/Matchers/EXPMatchers+conformTo.h"; sourceTree = ""; }; - A94D44F705B09EAE0420833B /* SWGQueryParamCollection.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = SWGQueryParamCollection.h; sourceTree = ""; }; - AA7C167E46BFFD6509CFE494 /* EXPMatchers+beKindOf.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+beKindOf.h"; path = "Expecta/Matchers/EXPMatchers+beKindOf.h"; sourceTree = ""; }; - AAA259A98CD2B660A0FDA33A /* NSValue+Expecta.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSValue+Expecta.h"; path = "Expecta/NSValue+Expecta.h"; sourceTree = ""; }; - AAAB9238C7E7CC348DE482B8 /* SWGPet.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = SWGPet.h; sourceTree = ""; }; - AB17D934B80A74041502DE8A /* EXPMatchers+beNil.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+beNil.m"; path = "Expecta/Matchers/EXPMatchers+beNil.m"; sourceTree = ""; }; - AC5A2E5A690111ACE39457A7 /* AFNetworking.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = AFNetworking.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - AC70BE6F2761A3E4E4B84FDD /* SWGOrder.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = SWGOrder.h; sourceTree = ""; }; - ACA0D0CF9107E24C8C01A0D9 /* EXPBlockDefinedMatcher.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = EXPBlockDefinedMatcher.m; path = Expecta/EXPBlockDefinedMatcher.m; sourceTree = ""; }; - AD2CE5220770BB6313C830B7 /* Pods-SwaggerClient_Tests-AFNetworking-Private.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwaggerClient_Tests-AFNetworking-Private.xcconfig"; path = "../Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking-Private.xcconfig"; sourceTree = ""; }; - ADB3BBE96E032B65F3501046 /* UIActivityIndicatorView+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIActivityIndicatorView+AFNetworking.h"; path = "UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.h"; sourceTree = ""; }; - AE13B85DCBE9E69CCC686887 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/MobileCoreServices.framework; sourceTree = DEVELOPER_DIR; }; - AE7532915C90B421F28CFBEA /* Pods-SwaggerClient_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-SwaggerClient_Tests-dummy.m"; sourceTree = ""; }; - AE7D0F77D853957EBCAE657F /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/SystemConfiguration.framework; sourceTree = DEVELOPER_DIR; }; - B045B33F539B441E32ECB917 /* Pods-SwaggerClient_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-SwaggerClient_Tests-acknowledgements.markdown"; sourceTree = ""; }; - B13A1E5CC1C83917B3B55837 /* XCTest+Private.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "XCTest+Private.h"; path = "Specta/Specta/XCTest+Private.h"; sourceTree = ""; }; - B3870DA6EC44CBA8FA1E4893 /* SWGCategory.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = SWGCategory.h; sourceTree = ""; }; - B3F068AE92A66AE490BD6DB0 /* EXPMatchers+beLessThan.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+beLessThan.m"; path = "Expecta/Matchers/EXPMatchers+beLessThan.m"; sourceTree = ""; }; - B46CB026DDB6706DAEDC86A3 /* Pods-SwaggerClient_Tests-Expecta-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SwaggerClient_Tests-Expecta-umbrella.h"; sourceTree = ""; }; - B6FCB81E5D8E3706D242931A /* EXPMatchers+beLessThan.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+beLessThan.h"; path = "Expecta/Matchers/EXPMatchers+beLessThan.h"; sourceTree = ""; }; - B7116485C5A4C1298D908727 /* SPTExample.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SPTExample.m; path = Specta/Specta/SPTExample.m; sourceTree = ""; }; - B724F8E376ED2BB7D587FC11 /* SPTCompiledExample.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SPTCompiledExample.m; path = Specta/Specta/SPTCompiledExample.m; sourceTree = ""; }; - B7A8D6EF8C60FFFB42E24B88 /* EXPMatchers+beIdenticalTo.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+beIdenticalTo.m"; path = "Expecta/Matchers/EXPMatchers+beIdenticalTo.m"; sourceTree = ""; }; - B7CE604E6EA1D256D1F0A8AA /* JSONModel+networking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "JSONModel+networking.h"; path = "JSONModel/JSONModelNetworking/JSONModel+networking.h"; sourceTree = ""; }; - B931AE6695BDCE3352468AED /* AFURLResponseSerialization.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFURLResponseSerialization.h; path = AFNetworking/AFURLResponseSerialization.h; sourceTree = ""; }; - B96C8F13F1DC53A3C3C3D159 /* EXPMatcherHelpers.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = EXPMatcherHelpers.m; path = Expecta/Matchers/EXPMatcherHelpers.m; sourceTree = ""; }; - BA4B27F2FB073D3E8345BF79 /* JSONValueTransformer+ISO8601.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "JSONValueTransformer+ISO8601.h"; sourceTree = ""; }; - BD363A11A16DE391FD666E56 /* EXPMatchers+endWith.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+endWith.m"; path = "Expecta/Matchers/EXPMatchers+endWith.m"; sourceTree = ""; }; - BD49D2B002813654F20C0CDB /* Pods-SwaggerClient_Tests-SwaggerClient-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "Pods-SwaggerClient_Tests-SwaggerClient-umbrella.h"; path = "../Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient-umbrella.h"; sourceTree = ""; }; - BE4CCABD7BD7EF95BEC3C2A4 /* EXPDefines.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXPDefines.h; path = Expecta/EXPDefines.h; sourceTree = ""; }; - BE62E232E84FDF3AD5CDFE65 /* EXPMatchers+beTruthy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+beTruthy.m"; path = "Expecta/Matchers/EXPMatchers+beTruthy.m"; sourceTree = ""; }; - BED74BBB7E4563223284FC51 /* Pods-SwaggerClient_Tests-Specta-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SwaggerClient_Tests-Specta-umbrella.h"; sourceTree = ""; }; - BEE9F929357775BD67A93711 /* AFURLSessionManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFURLSessionManager.h; path = AFNetworking/AFURLSessionManager.h; sourceTree = ""; }; - C0C70D134185F0A5D884F2D5 /* AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFNetworking.h; path = AFNetworking/AFNetworking.h; sourceTree = ""; }; - C22D6D663F367C5CCB922CD4 /* Pods-SwaggerClient_Example-JSONModel-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SwaggerClient_Example-JSONModel-prefix.pch"; sourceTree = ""; }; - C5AABD339B19F5117F87718C /* NSArray+JSONModel.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "NSArray+JSONModel.m"; path = "JSONModel/JSONModelCategories/NSArray+JSONModel.m"; sourceTree = ""; }; - C6CBAE36F463CD9F45A3BB9D /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; name = Info.plist; path = "../Pods-SwaggerClient_Tests-AFNetworking/Info.plist"; sourceTree = ""; }; - C74AA1F13C4E128B77A1B84A /* Pods-SwaggerClient_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SwaggerClient_Tests-resources.sh"; sourceTree = ""; }; - C8F4D12FB56992D696A23287 /* AFNetworking.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = AFNetworking.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - CA86DC1E6895A71A26C35162 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; name = Info.plist; path = "../Pods-SwaggerClient_Tests-SwaggerClient/Info.plist"; sourceTree = ""; }; - CB2A97414B35780C4D650A65 /* NSValue+Expecta.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "NSValue+Expecta.m"; path = "Expecta/NSValue+Expecta.m"; sourceTree = ""; }; - CB61EBD400A6C25EDC2BBEC2 /* SWGPet.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = SWGPet.m; sourceTree = ""; }; - CB976EFCEBA507C7297EFFAF /* Pods-SwaggerClient_Tests-SwaggerClient-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "Pods-SwaggerClient_Tests-SwaggerClient-dummy.m"; path = "../Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient-dummy.m"; sourceTree = ""; }; - CB9DA7BA9A24B089C6FC9AA9 /* SWGJSONResponseSerializer.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = SWGJSONResponseSerializer.m; sourceTree = ""; }; - CC3AAA85DF4F0B6AF3F65FF3 /* SWGFile.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = SWGFile.m; sourceTree = ""; }; - CC4A7C46C28B8D47187C1C49 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - D15CDBD1F8D1EE6AB0D63F21 /* EXPMatchers+beGreaterThan.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+beGreaterThan.h"; path = "Expecta/Matchers/EXPMatchers+beGreaterThan.h"; sourceTree = ""; }; - D1D250ADE57B52C791B82C52 /* EXPDoubleTuple.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXPDoubleTuple.h; path = Expecta/EXPDoubleTuple.h; sourceTree = ""; }; - D1EADD18818E3526F2CEAF2F /* EXPMatchers+raiseWithReason.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+raiseWithReason.h"; path = "Expecta/Matchers/EXPMatchers+raiseWithReason.h"; sourceTree = ""; }; - D3B9FF89412078F9C47D089B /* UIActivityIndicatorView+AFNetworking.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIActivityIndicatorView+AFNetworking.m"; path = "UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.m"; sourceTree = ""; }; - D3CAD6C2C0A7E70C06CB6D35 /* ISO8601.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ISO8601.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - D3FAA1B180CA821CADF13336 /* Pods-SwaggerClient_Tests-Specta.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-SwaggerClient_Tests-Specta.modulemap"; sourceTree = ""; }; - D467864632DE57A4A06D82B3 /* Pods-SwaggerClient_Example-ISO8601-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SwaggerClient_Example-ISO8601-prefix.pch"; sourceTree = ""; }; - D549F681F30BA76D288122C0 /* Pods-SwaggerClient_Tests-ISO8601.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwaggerClient_Tests-ISO8601.xcconfig"; path = "../Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601.xcconfig"; sourceTree = ""; }; - D55054535D9C7D3FBA58D617 /* Pods-SwaggerClient_Example-JSONModel-Private.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SwaggerClient_Example-JSONModel-Private.xcconfig"; sourceTree = ""; }; - D56A3A676645CFB5F0B4CA22 /* Pods-SwaggerClient_Example-ISO8601.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SwaggerClient_Example-ISO8601.xcconfig"; sourceTree = ""; }; - D6BE8527F16F514E61677DA4 /* SpectaUtility.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SpectaUtility.m; path = Specta/Specta/SpectaUtility.m; sourceTree = ""; }; - D733A96361018321D71A1E73 /* SPTSpec.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SPTSpec.h; path = Specta/Specta/SPTSpec.h; sourceTree = ""; }; - D7D3138EAAE50116ADEF292E /* SPTExcludeGlobalBeforeAfterEach.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SPTExcludeGlobalBeforeAfterEach.h; path = Specta/Specta/SPTExcludeGlobalBeforeAfterEach.h; sourceTree = ""; }; - D805562F6E114EDE2BFB0CE2 /* Pods-SwaggerClient_Tests-Specta.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SwaggerClient_Tests-Specta.xcconfig"; sourceTree = ""; }; - D906469EA22490516C576F34 /* JSONAPI.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = JSONAPI.m; path = JSONModel/JSONModelNetworking/JSONAPI.m; sourceTree = ""; }; - D98544579F42370E657FA1A8 /* UIImageView+AFNetworking.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIImageView+AFNetworking.m"; path = "UIKit+AFNetworking/UIImageView+AFNetworking.m"; sourceTree = ""; }; - D9D7CF7D518DD91902CFC101 /* UIButton+AFNetworking.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIButton+AFNetworking.m"; path = "UIKit+AFNetworking/UIButton+AFNetworking.m"; sourceTree = ""; }; - D9ED0A476E3DBC9422CCF739 /* Pods-SwaggerClient_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-SwaggerClient_Example.modulemap"; sourceTree = ""; }; - DABBA96CC74EAE33EEE3E7FF /* Pods-SwaggerClient_Example-SwaggerClient-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-SwaggerClient_Example-SwaggerClient-dummy.m"; sourceTree = ""; }; - DC4F0DB2C1E5DEACB3919576 /* Pods-SwaggerClient_Example-JSONModel-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-SwaggerClient_Example-JSONModel-dummy.m"; sourceTree = ""; }; - DCB73FE1B697EC492FCEBEFE /* SPTExample.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SPTExample.h; path = Specta/Specta/SPTExample.h; sourceTree = ""; }; - DCD887355DA3622403C587F3 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/Security.framework; sourceTree = DEVELOPER_DIR; }; - DD1BFACA7FDF797B7D807147 /* Pods_SwaggerClient_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SwaggerClient_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - DEEABA644193BDD43BE2B01A /* Pods-SwaggerClient_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-SwaggerClient_Tests.modulemap"; sourceTree = ""; }; - DF0444D8EBDF25B4DEFD64FC /* EXPMatchers+beInTheRangeOf.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+beInTheRangeOf.m"; path = "Expecta/Matchers/EXPMatchers+beInTheRangeOf.m"; sourceTree = ""; }; - DFA9B08443D964E2FB073F56 /* EXPMatchers+match.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+match.m"; path = "Expecta/Matchers/EXPMatchers+match.m"; sourceTree = ""; }; - DFB8A849BA1FECF15636A354 /* JSONAPI.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = JSONAPI.h; path = JSONModel/JSONModelNetworking/JSONAPI.h; sourceTree = ""; }; - E1268621ACDBA89268F6D79A /* AFNetworkReachabilityManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFNetworkReachabilityManager.h; path = AFNetworking/AFNetworkReachabilityManager.h; sourceTree = ""; }; - E24BE6178D00F87643E8AD96 /* SPTCallSite.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SPTCallSite.h; path = Specta/Specta/SPTCallSite.h; sourceTree = ""; }; - E29416FF6B777006D0421AF4 /* Pods-SwaggerClient_Tests-JSONModel.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwaggerClient_Tests-JSONModel.xcconfig"; path = "../Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel.xcconfig"; sourceTree = ""; }; - E2E6D41C47D3DA237C488316 /* EXPExpect.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = EXPExpect.m; path = Expecta/EXPExpect.m; sourceTree = ""; }; - E372B83A044ECCA01E472FC9 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/CoreGraphics.framework; sourceTree = DEVELOPER_DIR; }; - E3CD0D311E5DE9D9C3E348FD /* Pods-SwaggerClient_Tests-Expecta.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-SwaggerClient_Tests-Expecta.modulemap"; sourceTree = ""; }; - E411487CD9041CB730BB08A7 /* Expecta.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = Expecta.h; path = Expecta/Expecta.h; sourceTree = ""; }; - E4A1DE5345BA9BBB37D745D1 /* EXPMatchers+beginWith.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+beginWith.m"; path = "Expecta/Matchers/EXPMatchers+beginWith.m"; sourceTree = ""; }; - E5109CAF5DE5D9EDF8A5CDC0 /* SWGJSONRequestSerializer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = SWGJSONRequestSerializer.h; sourceTree = ""; }; - E5F6B4D3A0DBB8FA2D118B34 /* SWGApiClient.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = SWGApiClient.h; sourceTree = ""; }; - E76BF395D393BEDAF0184B7D /* ISO8601.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ISO8601.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - E8C64E84ED537CE26A1C4095 /* Pods-SwaggerClient_Example-SwaggerClient-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SwaggerClient_Example-SwaggerClient-prefix.pch"; sourceTree = ""; }; - E90E3F2428A92C2B30B905D1 /* Pods-SwaggerClient_Example-AFNetworking-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SwaggerClient_Example-AFNetworking-umbrella.h"; sourceTree = ""; }; - EB31DF2DC5E05E3C6E2B293D /* Pods-SwaggerClient_Tests-AFNetworking.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwaggerClient_Tests-AFNetworking.xcconfig"; path = "../Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking.xcconfig"; sourceTree = ""; }; - EBA8DB7BB0A1DDD958C68683 /* EXPMatcherHelpers.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXPMatcherHelpers.h; path = Expecta/Matchers/EXPMatcherHelpers.h; sourceTree = ""; }; - EC4578A72A4B005F7E2196EA /* EXPMatchers+match.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+match.h"; path = "Expecta/Matchers/EXPMatchers+match.h"; sourceTree = ""; }; - ECD35253AA3403B8C0D8BC91 /* Pods_SwaggerClient_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SwaggerClient_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - ED9CD3349C1E0B89048D7931 /* ExpectaObject.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ExpectaObject.h; path = Expecta/ExpectaObject.h; sourceTree = ""; }; - EE176C429702B2F0310644D4 /* Podfile */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; - EE23659824CABE7F3388FE27 /* Pods-SwaggerClient_Tests-Expecta-Private.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SwaggerClient_Tests-Expecta-Private.xcconfig"; sourceTree = ""; }; - EEBE9B8A684DF642FE20657F /* SWGFile.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = SWGFile.h; sourceTree = ""; }; - EFA5792B89F3EC016C790014 /* UIRefreshControl+AFNetworking.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIRefreshControl+AFNetworking.h"; path = "UIKit+AFNetworking/UIRefreshControl+AFNetworking.h"; sourceTree = ""; }; - EFC6B68E929AF9D5BEFD0302 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; name = Info.plist; path = "../Pods-SwaggerClient_Tests-JSONModel/Info.plist"; sourceTree = ""; }; - F0761D1A1069513A78630ABA /* EXPMatchers+haveCountOf.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+haveCountOf.m"; path = "Expecta/Matchers/EXPMatchers+haveCountOf.m"; sourceTree = ""; }; - F0A24157B4BA2D2E1B9CEC18 /* EXPMatchers+beginWith.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+beginWith.h"; path = "Expecta/Matchers/EXPMatchers+beginWith.h"; sourceTree = ""; }; - F1BACAD5385F95B410BB7C87 /* SWGUserApi.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = SWGUserApi.m; sourceTree = ""; }; - F248532F283AF83DB6271DCE /* SwaggerClient.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SwaggerClient.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; - F2BF821324735755972447B0 /* JSONValueTransformer+ISO8601.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "JSONValueTransformer+ISO8601.m"; sourceTree = ""; }; - F2C9039E5EA681AB43C4BBEF /* JSONModel.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = JSONModel.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - F39E23BF273317107095F738 /* Pods-SwaggerClient_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-SwaggerClient_Example-acknowledgements.plist"; sourceTree = ""; }; - F54CBCBF08E4D2FEE8EC979F /* EXPMatchers+beNil.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+beNil.h"; path = "Expecta/Matchers/EXPMatchers+beNil.h"; sourceTree = ""; }; - F7E78B22E6B39AF231BCCA2D /* EXPMatchers+contain.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+contain.h"; path = "Expecta/Matchers/EXPMatchers+contain.h"; sourceTree = ""; }; - F9301EBB1082F3DF4ACF55B7 /* NSArray+JSONModel.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSArray+JSONModel.h"; path = "JSONModel/JSONModelCategories/NSArray+JSONModel.h"; sourceTree = ""; }; - FAF50F76847FEFE63382A19D /* SWGConfiguration.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = SWGConfiguration.h; sourceTree = ""; }; - FB09DF7ECF2A36274905F66A /* SwaggerClient.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SwaggerClient.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - FBF9A35933615D555049BE26 /* JSONModel.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = JSONModel.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - FCDFE076FC0577667D18E47C /* AFHTTPRequestOperationManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AFHTTPRequestOperationManager.h; path = AFNetworking/AFHTTPRequestOperationManager.h; sourceTree = ""; }; - FDE30FAA7D4B65680CAF7FCC /* Pods-SwaggerClient_Tests-JSONModel-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "Pods-SwaggerClient_Tests-JSONModel-prefix.pch"; path = "../Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel-prefix.pch"; sourceTree = ""; }; - FE51F374F374508653EA274C /* Pods-SwaggerClient_Tests-Specta-Private.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SwaggerClient_Tests-Specta-Private.xcconfig"; sourceTree = ""; }; - FF92E4A16DFC6E28E7E5D562 /* JSONModel.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = JSONModel.m; path = JSONModel/JSONModel/JSONModel.m; sourceTree = ""; }; - FF99417D61F3A97DC44475AF /* EXPMatchers+beLessThanOrEqualTo.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+beLessThanOrEqualTo.h"; path = "Expecta/Matchers/EXPMatchers+beLessThanOrEqualTo.h"; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 22103A8AB4D5FCBA853D48FE /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 1398D1EFD62E17C5E8B2D5E4 /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4356669AECF52D690D7A0708 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - B89BC26D73FFE70F2F4BD7F9 /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 499759AF0A623FE7F6AF7041 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4A427963DE553632587A5ADF /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - D19EF86C3583D1B62A679E36 /* AFNetworking.framework in Frameworks */, - 0769C01E1EDA98F189CA18F7 /* Foundation.framework in Frameworks */, - 153CA93C3D5647FED90150DD /* ISO8601.framework in Frameworks */, - C3FA7E81592D8627DA34C669 /* JSONModel.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 673A0374A2A20CD429AB0773 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 97495C06470E679B7CF0A8CA /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 750E29F817ADCE3AB9B643BA /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 45BE91BE73E2BB75611507CA /* CoreGraphics.framework in Frameworks */, - 4CE48BA8AC5C9F3EF8626447 /* Foundation.framework in Frameworks */, - 386EB7F3BE797D89A650C1C5 /* MobileCoreServices.framework in Frameworks */, - E4FCC6CE42AC64620298B912 /* Security.framework in Frameworks */, - DBFB445AB39C5D946A2CC276 /* SystemConfiguration.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 8269400275399508F5AC9F90 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - EF7C4A59595F11105D6C2A65 /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - A06FF8C70F93B2C2A8E2C69A /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - A206B6446D5E2CABE5586523 /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - B5794BCD92EB55B5659DC58C /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 7422BD5EBC0E6395F1069F71 /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - C9772FEF5F5BFC03430176FC /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 591D3B049A7E8627A5AA65B1 /* CoreGraphics.framework in Frameworks */, - DAA1007C7857D3BE39826F91 /* Foundation.framework in Frameworks */, - 2599FEFF7BBE8634BD34A792 /* MobileCoreServices.framework in Frameworks */, - 4C1848887F607EB5D0D594FB /* Security.framework in Frameworks */, - 730C8CD80F56DC3EBE6F3080 /* SystemConfiguration.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - D0FE5D2BE433B354C40D398F /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - D3E33F4136D0AA075C4C820F /* AFNetworking.framework in Frameworks */, - 1C19F010F92332D333674C99 /* Foundation.framework in Frameworks */, - 430B13D7C84147B12F239C1C /* ISO8601.framework in Frameworks */, - 7BEDB566042514B74A383C14 /* JSONModel.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - D1964A51153C3AD7CB69D97B /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - E160A83AA4A88114EE2409BE /* Foundation.framework in Frameworks */, - 5771BA042DF953FA88D9C2FF /* XCTest.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - D85DD4B01002C97CAEAD5ECD /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - FC7F930F7556CE714F53300E /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 8E4CC5A8039EE6FE63613C2F /* Foundation.framework in Frameworks */, - 5DA26B0C4EB1C7DEB0B44AAF /* XCTest.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 14140A2FCC717D1807A7F7C5 /* Support Files */ = { - isa = PBXGroup; - children = ( - 5617AFD109F104A6504B905A /* Info.plist */, - E3CD0D311E5DE9D9C3E348FD /* Pods-SwaggerClient_Tests-Expecta.modulemap */, - 05E2B2609E8745F0FFA56EAC /* Pods-SwaggerClient_Tests-Expecta.xcconfig */, - EE23659824CABE7F3388FE27 /* Pods-SwaggerClient_Tests-Expecta-Private.xcconfig */, - 7D09D890FDA06F27AD79B2C6 /* Pods-SwaggerClient_Tests-Expecta-dummy.m */, - 6E2BDA79AAC1CC237F8E6194 /* Pods-SwaggerClient_Tests-Expecta-prefix.pch */, - B46CB026DDB6706DAEDC86A3 /* Pods-SwaggerClient_Tests-Expecta-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/Pods-SwaggerClient_Tests-Expecta"; - sourceTree = ""; - }; - 1919E245EDC5D1667FA4AA3A /* Products */ = { - isa = PBXGroup; - children = ( - A5484E73AF459C17B7675EC4 /* AFNetworking.framework */, - C8F4D12FB56992D696A23287 /* AFNetworking.framework */, - A3345F9CAA9252356B6C083F /* Expecta.framework */, - 63A4708CCC1EF6AB1122AA0D /* ISO8601.framework */, - E76BF395D393BEDAF0184B7D /* ISO8601.framework */, - F2C9039E5EA681AB43C4BBEF /* JSONModel.framework */, - 2B84527440CA189207D786E6 /* JSONModel.framework */, - ECD35253AA3403B8C0D8BC91 /* Pods_SwaggerClient_Example.framework */, - DD1BFACA7FDF797B7D807147 /* Pods_SwaggerClient_Tests.framework */, - 77F99C66542F4EEBABCA1BD3 /* Specta.framework */, - F248532F283AF83DB6271DCE /* SwaggerClient.bundle */, - 88858C0B2B9F69FD1898CC7C /* SwaggerClient.bundle */, - A038A42B885D252D1A20C7CB /* SwaggerClient.framework */, - FB09DF7ECF2A36274905F66A /* SwaggerClient.framework */, - ); - name = Products; - sourceTree = ""; - }; - 268C001763B7BFCB78674988 /* Development Pods */ = { - isa = PBXGroup; - children = ( - 4F9034C1AD9F301BF2961504 /* SwaggerClient */, - ); - name = "Development Pods"; - sourceTree = ""; - }; - 287A389EC1CB278D24C36DFA /* Serialization */ = { - isa = PBXGroup; - children = ( - 20527E0700B1756AD0DB7B16 /* AFURLRequestSerialization.h */, - 43AA7EFAA794D57DE9CD481E /* AFURLRequestSerialization.m */, - B931AE6695BDCE3352468AED /* AFURLResponseSerialization.h */, - 9BA881BAA0B2D3D3A54F5C84 /* AFURLResponseSerialization.m */, - ); - name = Serialization; - sourceTree = ""; - }; - 33F545DC4CC555AE4F30E353 /* NSURLConnection */ = { - isa = PBXGroup; - children = ( - 1EE2D61D0FCBC33CFE8D24E9 /* AFHTTPRequestOperation.h */, - 3EBE9CEA32E33C741FA62D9D /* AFHTTPRequestOperation.m */, - FCDFE076FC0577667D18E47C /* AFHTTPRequestOperationManager.h */, - 7D297B7DCEEC26B8CF1525F9 /* AFHTTPRequestOperationManager.m */, - 1C814F4EF3A744431BCD3807 /* AFURLConnectionOperation.h */, - 932F77F2D9785F0A401CAA9B /* AFURLConnectionOperation.m */, - ); - name = NSURLConnection; - sourceTree = ""; - }; - 3532914D193EF177F482B953 /* Support Files */ = { - isa = PBXGroup; - children = ( - 59FC7EC3572287684B292D50 /* Info.plist */, - CA86DC1E6895A71A26C35162 /* Info.plist */, - 58400894FEC50AFA461EA435 /* Pods-SwaggerClient_Example-SwaggerClient.modulemap */, - 9825D5812F3C1916DEF34E99 /* Pods-SwaggerClient_Example-SwaggerClient.xcconfig */, - 31E351B8D77A0BDD27675BDB /* Pods-SwaggerClient_Example-SwaggerClient-Private.xcconfig */, - DABBA96CC74EAE33EEE3E7FF /* Pods-SwaggerClient_Example-SwaggerClient-dummy.m */, - E8C64E84ED537CE26A1C4095 /* Pods-SwaggerClient_Example-SwaggerClient-prefix.pch */, - 1D6580B23616BF5911DED5F5 /* Pods-SwaggerClient_Example-SwaggerClient-umbrella.h */, - 5F5A1F2EC2AFCCB056F8E5F8 /* Pods-SwaggerClient_Tests-SwaggerClient.modulemap */, - 4A51ED87332338CA1F8D657A /* Pods-SwaggerClient_Tests-SwaggerClient.xcconfig */, - 1964DA329721A95476AFBC20 /* Pods-SwaggerClient_Tests-SwaggerClient-Private.xcconfig */, - CB976EFCEBA507C7297EFFAF /* Pods-SwaggerClient_Tests-SwaggerClient-dummy.m */, - 2B34AB4D5CC64918834A0AC0 /* Pods-SwaggerClient_Tests-SwaggerClient-prefix.pch */, - BD49D2B002813654F20C0CDB /* Pods-SwaggerClient_Tests-SwaggerClient-umbrella.h */, - ); - name = "Support Files"; - path = "SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-SwaggerClient"; - sourceTree = ""; - }; - 3EF1F48832B88DEA7380C789 /* ISO8601 */ = { - isa = PBXGroup; - children = ( - 08C151F4D754285116B7A228 /* ISO8601.h */, - A3DA13084371612DD395FBFF /* ISO8601Serialization.h */, - 79CD799EA7C3F65509123C0E /* ISO8601Serialization.m */, - 7696D6A816053B3FA0C31C17 /* NSDate+ISO8601.h */, - 427CEF67DFD8AFD42A5E8B10 /* NSDate+ISO8601.m */, - BD7D77F2AC0E7E1511D454C8 /* Support Files */, - ); - path = ISO8601; - sourceTree = ""; - }; - 4F9034C1AD9F301BF2961504 /* SwaggerClient */ = { - isa = PBXGroup; - children = ( - 3532914D193EF177F482B953 /* Support Files */, - B55257A75677A5B455E28C0E /* SwaggerClient */, - ); - name = SwaggerClient; - path = ../..; - sourceTree = ""; - }; - 58B541E3318B7CA53A88A30E /* UIKit */ = { - isa = PBXGroup; - children = ( - 5D9FA3CD16F8BFD65BB2E28F /* AFNetworkActivityIndicatorManager.h */, - 9B8C04B0FE02D3F1E8759EBB /* AFNetworkActivityIndicatorManager.m */, - ADB3BBE96E032B65F3501046 /* UIActivityIndicatorView+AFNetworking.h */, - D3B9FF89412078F9C47D089B /* UIActivityIndicatorView+AFNetworking.m */, - 17B44C925280520EEE336E3D /* UIAlertView+AFNetworking.h */, - 1E735B9956F587EB8E4B85CF /* UIAlertView+AFNetworking.m */, - 031E5A051C1B351EAECABE44 /* UIButton+AFNetworking.h */, - D9D7CF7D518DD91902CFC101 /* UIButton+AFNetworking.m */, - 39E0EC01ADE9AA23B943AE97 /* UIImageView+AFNetworking.h */, - D98544579F42370E657FA1A8 /* UIImageView+AFNetworking.m */, - 465A5132BD0966DB9C04040F /* UIKit+AFNetworking.h */, - 6CA609412EF66A9F84B11101 /* UIProgressView+AFNetworking.h */, - 90B1D038211337C21F9F8115 /* UIProgressView+AFNetworking.m */, - EFA5792B89F3EC016C790014 /* UIRefreshControl+AFNetworking.h */, - 707946C9EEE0DF0640C426E2 /* UIRefreshControl+AFNetworking.m */, - 63B8703F981C6122B7B45873 /* UIWebView+AFNetworking.h */, - 93FA4B97821DA8CDAE3310A5 /* UIWebView+AFNetworking.m */, - ); - name = UIKit; - sourceTree = ""; - }; - 63E0886E243C932B9756FBD5 /* Frameworks */ = { - isa = PBXGroup; - children = ( - AC5A2E5A690111ACE39457A7 /* AFNetworking.framework */, - D3CAD6C2C0A7E70C06CB6D35 /* ISO8601.framework */, - FBF9A35933615D555049BE26 /* JSONModel.framework */, - A15D48AEC789CE1196E54C8F /* iOS */, - ); - name = Frameworks; - sourceTree = ""; - }; - 731D3D653792B9E33F0CEAEF /* NSURLSession */ = { - isa = PBXGroup; - children = ( - 1CC3292F6BE0120D0599D089 /* AFHTTPSessionManager.h */, - 4DBC262A0DD3D8A392255054 /* AFHTTPSessionManager.m */, - BEE9F929357775BD67A93711 /* AFURLSessionManager.h */, - 59E36693E29CCFE31E4EAC89 /* AFURLSessionManager.m */, - ); - name = NSURLSession; - sourceTree = ""; - }; - 86940BB4E50AC8BEB41F258B /* Specta */ = { - isa = PBXGroup; - children = ( - E24BE6178D00F87643E8AD96 /* SPTCallSite.h */, - 5ED368FA80CE15CF073E7E4C /* SPTCallSite.m */, - 78DEE88FE58FD1EB9ED82644 /* SPTCompiledExample.h */, - B724F8E376ED2BB7D587FC11 /* SPTCompiledExample.m */, - DCB73FE1B697EC492FCEBEFE /* SPTExample.h */, - B7116485C5A4C1298D908727 /* SPTExample.m */, - 449238F2067778F11FC67BBC /* SPTExampleGroup.h */, - 6C668D785979FC25F7808753 /* SPTExampleGroup.m */, - D7D3138EAAE50116ADEF292E /* SPTExcludeGlobalBeforeAfterEach.h */, - 36943083BECC0BE8A4A6AD94 /* SPTGlobalBeforeAfterEach.h */, - 2EBBCF0DEF5740D6612DEB32 /* SPTSharedExampleGroups.h */, - 099BDB9A4FE1FF80F9B1BA61 /* SPTSharedExampleGroups.m */, - D733A96361018321D71A1E73 /* SPTSpec.h */, - 3159DE92BFB696E3EC0DC17B /* SPTSpec.m */, - 62B20D2725F0504EA461937E /* SPTTestSuite.h */, - 9E2261DFC4C37167696E0BF2 /* SPTTestSuite.m */, - 381AE18EE5432808A1136286 /* Specta.h */, - 1E1126602057323308CBEB1C /* SpectaDSL.h */, - A41CD6CC31666FBF14F37933 /* SpectaDSL.m */, - 1A3143CF53A3ECFD840FEBF5 /* SpectaTypes.h */, - 9A26EF949942E5B501DDD747 /* SpectaUtility.h */, - D6BE8527F16F514E61677DA4 /* SpectaUtility.m */, - B13A1E5CC1C83917B3B55837 /* XCTest+Private.h */, - 8CA55A6DD0BDCEBCF8BE2FE9 /* XCTestCase+Specta.h */, - 25F1293C6D78FDE07FC3136A /* XCTestCase+Specta.m */, - E4F7D4BF68FBAF97DA094102 /* Support Files */, - ); - path = Specta; - sourceTree = ""; - }; - 95C8D702F42F6124FD6031B8 /* Expecta */ = { - isa = PBXGroup; - children = ( - 0164E9ECEC859315F7EC9249 /* EXPBlockDefinedMatcher.h */, - ACA0D0CF9107E24C8C01A0D9 /* EXPBlockDefinedMatcher.m */, - BE4CCABD7BD7EF95BEC3C2A4 /* EXPDefines.h */, - D1D250ADE57B52C791B82C52 /* EXPDoubleTuple.h */, - 3FA82A66FE087D46B5F479DF /* EXPDoubleTuple.m */, - 722C967FF2EE63957185640A /* EXPExpect.h */, - E2E6D41C47D3DA237C488316 /* EXPExpect.m */, - 4648E753C7D4CD63548A0283 /* EXPFloatTuple.h */, - 734153C8D7D6EE89E1CBF7A4 /* EXPFloatTuple.m */, - 71301AA0D0508AC69416EEFD /* EXPMatcher.h */, - EBA8DB7BB0A1DDD958C68683 /* EXPMatcherHelpers.h */, - B96C8F13F1DC53A3C3C3D159 /* EXPMatcherHelpers.m */, - 28C0B26C4BD3B468DF0C9526 /* EXPMatchers.h */, - 76F320CEEEEE2836A8B1AAEC /* EXPMatchers+beCloseTo.h */, - 0AFADA1570737157E9617EFA /* EXPMatchers+beCloseTo.m */, - 9B3A87165046AB537E76CFA0 /* EXPMatchers+beFalsy.h */, - 500D44D0509C0C1AF7854372 /* EXPMatchers+beFalsy.m */, - D15CDBD1F8D1EE6AB0D63F21 /* EXPMatchers+beGreaterThan.h */, - 579BC043B4015B34EAEEFF93 /* EXPMatchers+beGreaterThan.m */, - 4DA0260CE5A8A4FDA879A100 /* EXPMatchers+beGreaterThanOrEqualTo.h */, - 5853898EA95C369F30529C9B /* EXPMatchers+beGreaterThanOrEqualTo.m */, - 280E652D458B4E1ED5BFFA77 /* EXPMatchers+beIdenticalTo.h */, - B7A8D6EF8C60FFFB42E24B88 /* EXPMatchers+beIdenticalTo.m */, - 98BBCF4F94F7882D6CA276C0 /* EXPMatchers+beInTheRangeOf.h */, - DF0444D8EBDF25B4DEFD64FC /* EXPMatchers+beInTheRangeOf.m */, - 79FF652424AF75986DC0A953 /* EXPMatchers+beInstanceOf.h */, - 016434DA280A6337716485B9 /* EXPMatchers+beInstanceOf.m */, - AA7C167E46BFFD6509CFE494 /* EXPMatchers+beKindOf.h */, - 6366F5C2F45F2C79A805911E /* EXPMatchers+beKindOf.m */, - B6FCB81E5D8E3706D242931A /* EXPMatchers+beLessThan.h */, - B3F068AE92A66AE490BD6DB0 /* EXPMatchers+beLessThan.m */, - FF99417D61F3A97DC44475AF /* EXPMatchers+beLessThanOrEqualTo.h */, - 3348A38E5534FDD63284711E /* EXPMatchers+beLessThanOrEqualTo.m */, - F54CBCBF08E4D2FEE8EC979F /* EXPMatchers+beNil.h */, - AB17D934B80A74041502DE8A /* EXPMatchers+beNil.m */, - 0A9A720E390B6BA9880D92DC /* EXPMatchers+beSubclassOf.h */, - 1527CA2833B390D6002D3965 /* EXPMatchers+beSubclassOf.m */, - 28CEAD6EAF4AC73948D28F2B /* EXPMatchers+beSupersetOf.h */, - 194518CC1A4D172FAA272DB9 /* EXPMatchers+beSupersetOf.m */, - 52CA44B02B7A9B384AE7EED6 /* EXPMatchers+beTruthy.h */, - BE62E232E84FDF3AD5CDFE65 /* EXPMatchers+beTruthy.m */, - F0A24157B4BA2D2E1B9CEC18 /* EXPMatchers+beginWith.h */, - E4A1DE5345BA9BBB37D745D1 /* EXPMatchers+beginWith.m */, - A7E147F308CD2889593641F8 /* EXPMatchers+conformTo.h */, - 2C4946DD8004B10DBD3BEBE0 /* EXPMatchers+conformTo.m */, - F7E78B22E6B39AF231BCCA2D /* EXPMatchers+contain.h */, - 18A8D06FD0B3DCB85273BFE2 /* EXPMatchers+contain.m */, - 8DB4BB24028928E6E7BE64E9 /* EXPMatchers+endWith.h */, - BD363A11A16DE391FD666E56 /* EXPMatchers+endWith.m */, - 88AAAF1815056252470FC2A6 /* EXPMatchers+equal.h */, - 26140D01ECBBE302403277E7 /* EXPMatchers+equal.m */, - 92F9946AF7B3E53FAFF57A19 /* EXPMatchers+haveCountOf.h */, - F0761D1A1069513A78630ABA /* EXPMatchers+haveCountOf.m */, - EC4578A72A4B005F7E2196EA /* EXPMatchers+match.h */, - DFA9B08443D964E2FB073F56 /* EXPMatchers+match.m */, - 8C9F5723E5940D1269352135 /* EXPMatchers+postNotification.h */, - 47C2E8EC548FF8BFE0B65660 /* EXPMatchers+postNotification.m */, - 0F8CC8C24B86136D1949316C /* EXPMatchers+raise.h */, - 0E33B17ABCEF8719288A1534 /* EXPMatchers+raise.m */, - D1EADD18818E3526F2CEAF2F /* EXPMatchers+raiseWithReason.h */, - 73B6962701256AF21226A51C /* EXPMatchers+raiseWithReason.m */, - 9D261465E6EF11B9AF904C67 /* EXPMatchers+respondTo.h */, - 9A06A521245DAB5B8F162AB4 /* EXPMatchers+respondTo.m */, - 859359D6C9F1E75F8FD12FC7 /* EXPUnsupportedObject.h */, - 0B0D24466BA8FF3A32751D38 /* EXPUnsupportedObject.m */, - E411487CD9041CB730BB08A7 /* Expecta.h */, - ED9CD3349C1E0B89048D7931 /* ExpectaObject.h */, - 243595BDFC8D37871876A044 /* ExpectaObject.m */, - 432957C61F24704F540BB578 /* ExpectaSupport.h */, - 8E7B7B2C24266DB4297E958E /* ExpectaSupport.m */, - 57CF3ABF26B43FAE21E50CB8 /* NSObject+Expecta.h */, - AAA259A98CD2B660A0FDA33A /* NSValue+Expecta.h */, - CB2A97414B35780C4D650A65 /* NSValue+Expecta.m */, - 14140A2FCC717D1807A7F7C5 /* Support Files */, - ); - path = Expecta; - sourceTree = ""; - }; - A03705BE3759CEB52D808DB5 /* Pods-SwaggerClient_Tests */ = { - isa = PBXGroup; - children = ( - 4F282A1F87E3A1263AB11A47 /* Info.plist */, - DEEABA644193BDD43BE2B01A /* Pods-SwaggerClient_Tests.modulemap */, - B045B33F539B441E32ECB917 /* Pods-SwaggerClient_Tests-acknowledgements.markdown */, - 598BF1FC07A3867AB98B3140 /* Pods-SwaggerClient_Tests-acknowledgements.plist */, - AE7532915C90B421F28CFBEA /* Pods-SwaggerClient_Tests-dummy.m */, - 65B8DED1B65DC5B191ED3657 /* Pods-SwaggerClient_Tests-environment.h */, - 4124065010B426E1D6A20E50 /* Pods-SwaggerClient_Tests-frameworks.sh */, - C74AA1F13C4E128B77A1B84A /* Pods-SwaggerClient_Tests-resources.sh */, - 1FE46EF9D2B28F3F175C4215 /* Pods-SwaggerClient_Tests-umbrella.h */, - 9771D508607ABB6410B0BF9F /* Pods-SwaggerClient_Tests.debug.xcconfig */, - A61413AE7365BA6BD1EC261F /* Pods-SwaggerClient_Tests.release.xcconfig */, - ); - name = "Pods-SwaggerClient_Tests"; - path = "Target Support Files/Pods-SwaggerClient_Tests"; - sourceTree = ""; - }; - A1023CCC5989B44088116E66 /* Pods */ = { - isa = PBXGroup; - children = ( - B6B45A3D2553F2454BA474D8 /* AFNetworking */, - 95C8D702F42F6124FD6031B8 /* Expecta */, - 3EF1F48832B88DEA7380C789 /* ISO8601 */, - C00FC8494E3F97CF2445CD2B /* JSONModel */, - 86940BB4E50AC8BEB41F258B /* Specta */, - ); - name = Pods; - sourceTree = ""; - }; - A15D48AEC789CE1196E54C8F /* iOS */ = { - isa = PBXGroup; - children = ( - E372B83A044ECCA01E472FC9 /* CoreGraphics.framework */, - 671A488088E85A1E9E82C2D4 /* Foundation.framework */, - AE13B85DCBE9E69CCC686887 /* MobileCoreServices.framework */, - DCD887355DA3622403C587F3 /* Security.framework */, - AE7D0F77D853957EBCAE657F /* SystemConfiguration.framework */, - 0AABA64768BF1C67079AC14C /* XCTest.framework */, - ); - name = iOS; - sourceTree = ""; - }; - A3C7A0CE418F4E2A35715352 /* Targets Support Files */ = { - isa = PBXGroup; - children = ( - DACF90DFCA19D58F567ABAD7 /* Pods-SwaggerClient_Example */, - A03705BE3759CEB52D808DB5 /* Pods-SwaggerClient_Tests */, - ); - name = "Targets Support Files"; - sourceTree = ""; - }; - AA9F04788FA9956FFAA3269C /* Support Files */ = { - isa = PBXGroup; - children = ( - CC4A7C46C28B8D47187C1C49 /* Info.plist */, - EFC6B68E929AF9D5BEFD0302 /* Info.plist */, - 145BFF1E93D758B233F0AE9E /* Pods-SwaggerClient_Example-JSONModel.modulemap */, - 99A4A4B3247D70FBA6024D8F /* Pods-SwaggerClient_Example-JSONModel.xcconfig */, - D55054535D9C7D3FBA58D617 /* Pods-SwaggerClient_Example-JSONModel-Private.xcconfig */, - DC4F0DB2C1E5DEACB3919576 /* Pods-SwaggerClient_Example-JSONModel-dummy.m */, - C22D6D663F367C5CCB922CD4 /* Pods-SwaggerClient_Example-JSONModel-prefix.pch */, - 02BFF49A4C0CD62A7A017609 /* Pods-SwaggerClient_Example-JSONModel-umbrella.h */, - 5ACAB4F433D4781F70935C78 /* Pods-SwaggerClient_Tests-JSONModel.modulemap */, - E29416FF6B777006D0421AF4 /* Pods-SwaggerClient_Tests-JSONModel.xcconfig */, - 7A66B4F9A973BBBA0D4AF2D7 /* Pods-SwaggerClient_Tests-JSONModel-Private.xcconfig */, - 16CF586DFE9835700F2EDA9E /* Pods-SwaggerClient_Tests-JSONModel-dummy.m */, - FDE30FAA7D4B65680CAF7FCC /* Pods-SwaggerClient_Tests-JSONModel-prefix.pch */, - 01FC7B913F4D0D8ABA61D37F /* Pods-SwaggerClient_Tests-JSONModel-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/Pods-SwaggerClient_Example-JSONModel"; - sourceTree = ""; - }; - ADBB4065C1F453AB4A0E7F6E /* Support Files */ = { - isa = PBXGroup; - children = ( - 62BC316D842CEB918EAC2F85 /* Info.plist */, - C6CBAE36F463CD9F45A3BB9D /* Info.plist */, - 61ECE30CFAEE60A56370FFC4 /* Pods-SwaggerClient_Example-AFNetworking.modulemap */, - 596F890BB01AA3448640038C /* Pods-SwaggerClient_Example-AFNetworking.xcconfig */, - A3519105B4EF41F55126082D /* Pods-SwaggerClient_Example-AFNetworking-Private.xcconfig */, - A4077B653CCC6F44DDA78122 /* Pods-SwaggerClient_Example-AFNetworking-dummy.m */, - 253D83DD07A18825650BBBE9 /* Pods-SwaggerClient_Example-AFNetworking-prefix.pch */, - E90E3F2428A92C2B30B905D1 /* Pods-SwaggerClient_Example-AFNetworking-umbrella.h */, - 0C7C70764F7DC898F9CD47C9 /* Pods-SwaggerClient_Tests-AFNetworking.modulemap */, - EB31DF2DC5E05E3C6E2B293D /* Pods-SwaggerClient_Tests-AFNetworking.xcconfig */, - AD2CE5220770BB6313C830B7 /* Pods-SwaggerClient_Tests-AFNetworking-Private.xcconfig */, - 2D6BA58FCD62CCE952D967CE /* Pods-SwaggerClient_Tests-AFNetworking-dummy.m */, - 4E270100DEFDE600FBCC15C8 /* Pods-SwaggerClient_Tests-AFNetworking-prefix.pch */, - 7BAEA77B327844A9285B8670 /* Pods-SwaggerClient_Tests-AFNetworking-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/Pods-SwaggerClient_Example-AFNetworking"; - sourceTree = ""; - }; - B55257A75677A5B455E28C0E /* SwaggerClient */ = { - isa = PBXGroup; - children = ( - BA4B27F2FB073D3E8345BF79 /* JSONValueTransformer+ISO8601.h */, - F2BF821324735755972447B0 /* JSONValueTransformer+ISO8601.m */, - E5F6B4D3A0DBB8FA2D118B34 /* SWGApiClient.h */, - A42D06ECA69A10D7B7AB66B5 /* SWGApiClient.m */, - B3870DA6EC44CBA8FA1E4893 /* SWGCategory.h */, - 35F8AFCBA88A170C1ED8B8EA /* SWGCategory.m */, - FAF50F76847FEFE63382A19D /* SWGConfiguration.h */, - 1E32292D3F4D806B627F1570 /* SWGConfiguration.m */, - EEBE9B8A684DF642FE20657F /* SWGFile.h */, - CC3AAA85DF4F0B6AF3F65FF3 /* SWGFile.m */, - E5109CAF5DE5D9EDF8A5CDC0 /* SWGJSONRequestSerializer.h */, - 331537C2B3681E368BD3C9CD /* SWGJSONRequestSerializer.m */, - 7334D7BE223A4E8284A960DD /* SWGJSONResponseSerializer.h */, - CB9DA7BA9A24B089C6FC9AA9 /* SWGJSONResponseSerializer.m */, - 8215F4EBBAA1231B662B87D4 /* SWGMyresult.h */, - 5B582DC8026EDCEFE9570A57 /* SWGMyresult.m */, - 714BA14CC63A7438D89F7181 /* SWGMythingApi.h */, - 5EB007D8397CABC3A86DC35B /* SWGMythingApi.m */, - 79F66BA3CD50A4290602F14B /* SWGObject.h */, - 93127E06DFE790D76898A78D /* SWGObject.m */, - AC70BE6F2761A3E4E4B84FDD /* SWGOrder.h */, - 8371F57BE2022A982DD2C14B /* SWGOrder.m */, - AAAB9238C7E7CC348DE482B8 /* SWGPet.h */, - CB61EBD400A6C25EDC2BBEC2 /* SWGPet.m */, - 60F89DDC8635677F871D034F /* SWGPetApi.h */, - 95DDFA05DD6945745A0CA6A1 /* SWGPetApi.m */, - A94D44F705B09EAE0420833B /* SWGQueryParamCollection.h */, - 4E2CCF2F2B2988DE22AE21A8 /* SWGQueryParamCollection.m */, - 70728AC343FB456859D11ABE /* SWGStoreApi.h */, - 3CA2DD7C1A9CD271FBEEDCFA /* SWGStoreApi.m */, - 8A8892A67E4E1629B3650958 /* SWGTag.h */, - 2C14451912091A7274AEF9E1 /* SWGTag.m */, - 1F64414F4ED6C6AEB76C5CF9 /* SWGUser.h */, - 9F927BCFCED60E5C20DD572D /* SWGUser.m */, - 20402A2505F9199C8CF42E06 /* SWGUserApi.h */, - F1BACAD5385F95B410BB7C87 /* SWGUserApi.m */, - ); - path = SwaggerClient; - sourceTree = ""; - }; - B6B45A3D2553F2454BA474D8 /* AFNetworking */ = { - isa = PBXGroup; - children = ( - C0C70D134185F0A5D884F2D5 /* AFNetworking.h */, - 33F545DC4CC555AE4F30E353 /* NSURLConnection */, - 731D3D653792B9E33F0CEAEF /* NSURLSession */, - FE04BA1134972D1DEC32B8CA /* Reachability */, - C040C67829C03E322C32FDF1 /* Security */, - 287A389EC1CB278D24C36DFA /* Serialization */, - ADBB4065C1F453AB4A0E7F6E /* Support Files */, - 58B541E3318B7CA53A88A30E /* UIKit */, - ); - path = AFNetworking; - sourceTree = ""; - }; - BD7D77F2AC0E7E1511D454C8 /* Support Files */ = { - isa = PBXGroup; - children = ( - 4EC94106B0E5549033F7BA15 /* Info.plist */, - 83CAE1AE966882439F8A96EF /* Info.plist */, - 66978135221A5645E30BE2F1 /* Pods-SwaggerClient_Example-ISO8601.modulemap */, - D56A3A676645CFB5F0B4CA22 /* Pods-SwaggerClient_Example-ISO8601.xcconfig */, - 261CD7AA6DF0D6C7C0EBD146 /* Pods-SwaggerClient_Example-ISO8601-Private.xcconfig */, - 1C064E590FE5779DB6C05E82 /* Pods-SwaggerClient_Example-ISO8601-dummy.m */, - D467864632DE57A4A06D82B3 /* Pods-SwaggerClient_Example-ISO8601-prefix.pch */, - 57E80A657EA2993398931392 /* Pods-SwaggerClient_Example-ISO8601-umbrella.h */, - 7E1FD49EEBB1A08378F9ECA4 /* Pods-SwaggerClient_Tests-ISO8601.modulemap */, - D549F681F30BA76D288122C0 /* Pods-SwaggerClient_Tests-ISO8601.xcconfig */, - 4CC80CC87AB4F795DC536F6B /* Pods-SwaggerClient_Tests-ISO8601-Private.xcconfig */, - 32DE028703A8C4BC2B9C2A2E /* Pods-SwaggerClient_Tests-ISO8601-dummy.m */, - 10DFD3D78F972F78D71BB6E7 /* Pods-SwaggerClient_Tests-ISO8601-prefix.pch */, - 36B743CDFC49D282EF4A78C8 /* Pods-SwaggerClient_Tests-ISO8601-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/Pods-SwaggerClient_Example-ISO8601"; - sourceTree = ""; - }; - C00FC8494E3F97CF2445CD2B /* JSONModel */ = { - isa = PBXGroup; - children = ( - DFB8A849BA1FECF15636A354 /* JSONAPI.h */, - D906469EA22490516C576F34 /* JSONAPI.m */, - 889B2226D66494C5DB5F33F9 /* JSONHTTPClient.h */, - 9BF513A105EEBB9C62BDD60B /* JSONHTTPClient.m */, - 2B99E0C1051BAF97AAA01CBB /* JSONKeyMapper.h */, - 37085BC581A14B6E3E8C4D09 /* JSONKeyMapper.m */, - 67A228DF9CD60524B576E388 /* JSONModel.h */, - FF92E4A16DFC6E28E7E5D562 /* JSONModel.m */, - B7CE604E6EA1D256D1F0A8AA /* JSONModel+networking.h */, - 80F6ECA6AB109AFD0CE2E9CF /* JSONModel+networking.m */, - 67D72714DD0EA3F6ABF35D2A /* JSONModelArray.h */, - 63AAD00C6BF1CECE08D88CE3 /* JSONModelArray.m */, - 9725EE5FF670963BBEF4680E /* JSONModelClassProperty.h */, - 91DC534FB82569495452D79F /* JSONModelClassProperty.m */, - A79E486BE2BAA943C0E47F51 /* JSONModelError.h */, - 6B41F3EB7887EBB63F0F242A /* JSONModelError.m */, - 3E6F8CCCB7A467D7ADCF9320 /* JSONModelLib.h */, - 8ABA855B29B5869D5B9FE91C /* JSONValueTransformer.h */, - 90B1F5AE7FE9B9050C58885E /* JSONValueTransformer.m */, - F9301EBB1082F3DF4ACF55B7 /* NSArray+JSONModel.h */, - C5AABD339B19F5117F87718C /* NSArray+JSONModel.m */, - AA9F04788FA9956FFAA3269C /* Support Files */, - ); - path = JSONModel; - sourceTree = ""; - }; - C040C67829C03E322C32FDF1 /* Security */ = { - isa = PBXGroup; - children = ( - 36A7357E024D3B6884439E33 /* AFSecurityPolicy.h */, - 451719F53715B179730D75E0 /* AFSecurityPolicy.m */, - ); - name = Security; - sourceTree = ""; - }; - DACF90DFCA19D58F567ABAD7 /* Pods-SwaggerClient_Example */ = { - isa = PBXGroup; - children = ( - 4F4671535FDE630BAB38EBFC /* Info.plist */, - D9ED0A476E3DBC9422CCF739 /* Pods-SwaggerClient_Example.modulemap */, - 96B0499DE5856DB93FACE9F3 /* Pods-SwaggerClient_Example-acknowledgements.markdown */, - F39E23BF273317107095F738 /* Pods-SwaggerClient_Example-acknowledgements.plist */, - 517927BA19A3538D1E30DE50 /* Pods-SwaggerClient_Example-dummy.m */, - 4FE8797D427FFD0C0A7BEF85 /* Pods-SwaggerClient_Example-environment.h */, - 7A0294B9DB6D28C931109F04 /* Pods-SwaggerClient_Example-frameworks.sh */, - 7F5E3C9D4DC0F9D156F215D9 /* Pods-SwaggerClient_Example-resources.sh */, - A3D3304828283C9BAC71B216 /* Pods-SwaggerClient_Example-umbrella.h */, - 1284C207920C60CCFF057D06 /* Pods-SwaggerClient_Example.debug.xcconfig */, - 1186977B42F8F3FC21D1A7B9 /* Pods-SwaggerClient_Example.release.xcconfig */, - ); - name = "Pods-SwaggerClient_Example"; - path = "Target Support Files/Pods-SwaggerClient_Example"; - sourceTree = ""; - }; - E4F7D4BF68FBAF97DA094102 /* Support Files */ = { - isa = PBXGroup; - children = ( - A1907A8F78BBCB2EF8450B44 /* Info.plist */, - D3FAA1B180CA821CADF13336 /* Pods-SwaggerClient_Tests-Specta.modulemap */, - D805562F6E114EDE2BFB0CE2 /* Pods-SwaggerClient_Tests-Specta.xcconfig */, - FE51F374F374508653EA274C /* Pods-SwaggerClient_Tests-Specta-Private.xcconfig */, - 60DECAD526F277F125AC6CC8 /* Pods-SwaggerClient_Tests-Specta-dummy.m */, - 034BC9278FF5FAA0BF7EDE54 /* Pods-SwaggerClient_Tests-Specta-prefix.pch */, - BED74BBB7E4563223284FC51 /* Pods-SwaggerClient_Tests-Specta-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/Pods-SwaggerClient_Tests-Specta"; - sourceTree = ""; - }; - F8DFE02AA7117447C43F2FFC = { - isa = PBXGroup; - children = ( - EE176C429702B2F0310644D4 /* Podfile */, - 268C001763B7BFCB78674988 /* Development Pods */, - 63E0886E243C932B9756FBD5 /* Frameworks */, - A1023CCC5989B44088116E66 /* Pods */, - 1919E245EDC5D1667FA4AA3A /* Products */, - A3C7A0CE418F4E2A35715352 /* Targets Support Files */, - ); - sourceTree = ""; - }; - FE04BA1134972D1DEC32B8CA /* Reachability */ = { - isa = PBXGroup; - children = ( - E1268621ACDBA89268F6D79A /* AFNetworkReachabilityManager.h */, - 3AABB6DD414B225AF74CDD9A /* AFNetworkReachabilityManager.m */, - ); - name = Reachability; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - 156119613885B08AA0F014A7 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 8999ED93A69964E58772CB7C /* JSONAPI.h in Headers */, - 9B34355CD7E63D1895627210 /* JSONHTTPClient.h in Headers */, - 3DC47F224263A6AE449CFFDC /* JSONKeyMapper.h in Headers */, - 59719066DA7A3B5DD4234C92 /* JSONModel+networking.h in Headers */, - A7B0C16EEB7FFA25C25370D4 /* JSONModel.h in Headers */, - 7E51B9CF8F060125255C4874 /* JSONModelArray.h in Headers */, - B1E4B9C9C788060FA05197D8 /* JSONModelClassProperty.h in Headers */, - 8BC9B4305B0DDA301ACA4B07 /* JSONModelError.h in Headers */, - D25A60002AC50691F13E03C0 /* JSONModelLib.h in Headers */, - ECE599AE763A2C388157D2B1 /* JSONValueTransformer.h in Headers */, - 50147C1C98A2BE3F820601A9 /* NSArray+JSONModel.h in Headers */, - 3760B1DD16BFF927E104FB25 /* Pods-SwaggerClient_Example-JSONModel-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 250DC207ED9525F56AB6683F /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 40978838FAEA6D634F4AD042 /* JSONValueTransformer+ISO8601.h in Headers */, - 30761F9D2ADDD7315DDC95D8 /* Pods-SwaggerClient_Tests-SwaggerClient-umbrella.h in Headers */, - 31A472719AA3A52EC74903FD /* SWGApiClient.h in Headers */, - F34C32CDBC26097517DD947F /* SWGCategory.h in Headers */, - 4684F0551F479F660241F8EE /* SWGConfiguration.h in Headers */, - 719253026530EB29F2CC2B72 /* SWGFile.h in Headers */, - 6BD0E2ACB9C405F9E64B8669 /* SWGJSONRequestSerializer.h in Headers */, - E7933B64815CD27F8F7C3540 /* SWGJSONResponseSerializer.h in Headers */, - D39D39947572DE9798E3D88B /* SWGMyresult.h in Headers */, - 4327F8FF04D9796D030CC825 /* SWGMythingApi.h in Headers */, - 30AED8CD55E9DA4D102A028B /* SWGObject.h in Headers */, - 05E44B1705BF02EF459EED58 /* SWGOrder.h in Headers */, - C6A0423CD8DBA07A30B98042 /* SWGPet.h in Headers */, - 875AF30991031E7098EEF798 /* SWGPetApi.h in Headers */, - 9E55563763BFCCA174A600C5 /* SWGQueryParamCollection.h in Headers */, - 5B7DF7966982B7F4CADDD133 /* SWGStoreApi.h in Headers */, - E6389419244A7DC4C9C57934 /* SWGTag.h in Headers */, - F55122FA09A1A3BBD62E54B3 /* SWGUser.h in Headers */, - FDACF057168267FCDAB72DF1 /* SWGUserApi.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4473FA90B779810F6D33A32C /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 0E5BA06D6F20D109F5937BBA /* Pods-SwaggerClient_Example-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4545D53E1FD0C4B7B97B04F9 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - B9D2A404F1B49622441EBB16 /* JSONAPI.h in Headers */, - 2575C7D4A30F9F057EEB475B /* JSONHTTPClient.h in Headers */, - BEA7FF33522B439AEB60C281 /* JSONKeyMapper.h in Headers */, - 009F14C0CA20741504926131 /* JSONModel+networking.h in Headers */, - 2A1D80A2AD26A4E7E3CB41BF /* JSONModel.h in Headers */, - 15481C9B911D9926D6616544 /* JSONModelArray.h in Headers */, - 2B9B995C35A4D77609B5BFF2 /* JSONModelClassProperty.h in Headers */, - 08D39D19BF314C76BE1C7C47 /* JSONModelError.h in Headers */, - 3FA455AFA48AD50F1D53F9CA /* JSONModelLib.h in Headers */, - 5B2FCF39BB864869CD94F2F9 /* JSONValueTransformer.h in Headers */, - 81292025A1A602AF03CF2786 /* NSArray+JSONModel.h in Headers */, - 31EED5998AB440042E5AD2A1 /* Pods-SwaggerClient_Tests-JSONModel-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 53E267707CCEA2E3A1AB0B3C /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - C84ED29D92C2DAF709D42519 /* AFHTTPRequestOperation.h in Headers */, - 7E3EF033ABA1E93C7F640408 /* AFHTTPRequestOperationManager.h in Headers */, - B13D156D3F01638F8D3EC102 /* AFHTTPSessionManager.h in Headers */, - 7A53181A5C51E8CDC82D78FF /* AFNetworkActivityIndicatorManager.h in Headers */, - AB5C9A3A56CEBAB1AD349A33 /* AFNetworkReachabilityManager.h in Headers */, - 0BA67D960C3D46FE796FA170 /* AFNetworking.h in Headers */, - 709D563EE63BC8B34E719F68 /* AFSecurityPolicy.h in Headers */, - F0E3847056B72A4ACC11650F /* AFURLConnectionOperation.h in Headers */, - ACD3422A4497EA29AB24A72E /* AFURLRequestSerialization.h in Headers */, - BF2DDC96324CFDF7C303F050 /* AFURLResponseSerialization.h in Headers */, - 5CF717B5F4B92B85335848B5 /* AFURLSessionManager.h in Headers */, - B6DAEBF843B8DC1DC8E3906F /* Pods-SwaggerClient_Tests-AFNetworking-umbrella.h in Headers */, - B9BA486CAAEB77195346C34B /* UIActivityIndicatorView+AFNetworking.h in Headers */, - E3C9C7EAD8A7690BE18CF43E /* UIAlertView+AFNetworking.h in Headers */, - 8FB224E07B86F6A688B90F58 /* UIButton+AFNetworking.h in Headers */, - 54A1C77FFEF9D6711B04A35F /* UIImageView+AFNetworking.h in Headers */, - A615771FAD89E35239D87FF6 /* UIKit+AFNetworking.h in Headers */, - 8EFACBBBDC56722661F3744A /* UIProgressView+AFNetworking.h in Headers */, - 6895CF33F4FB371D6FCA3FE9 /* UIRefreshControl+AFNetworking.h in Headers */, - 1E90336D2D07D4CCD8EAB3AE /* UIWebView+AFNetworking.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7AC2D11FE2C693EA5B960A79 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - CC1FBF181AEECAD23864A42C /* Pods-SwaggerClient_Tests-Specta-umbrella.h in Headers */, - D85897B024FC6FAD6069F022 /* SPTCallSite.h in Headers */, - 58933698E078FEA9C0689292 /* SPTCompiledExample.h in Headers */, - D8D2BF368F6CE862A6B7AA97 /* SPTExample.h in Headers */, - A8C07412B7F1F58F95027E4B /* SPTExampleGroup.h in Headers */, - A8CAB0E9B1CF76911B13ECC0 /* SPTExcludeGlobalBeforeAfterEach.h in Headers */, - CADBFFBB5024C1F7431B4161 /* SPTGlobalBeforeAfterEach.h in Headers */, - 8929E57AFE7279D698EF5E7E /* SPTSharedExampleGroups.h in Headers */, - D2D9A6640DB83E9E9430A97C /* SPTSpec.h in Headers */, - EEC1D0AFE3CE69C65F59BED8 /* SPTTestSuite.h in Headers */, - 2019465B5EC42B2DCBB85EE3 /* Specta.h in Headers */, - 49BD45475EFF07925EF1261D /* SpectaDSL.h in Headers */, - 3EAEDA676CAF94858D91CFB0 /* SpectaTypes.h in Headers */, - 1CF4FB9D2FD679D464ABBB50 /* SpectaUtility.h in Headers */, - 18EB1478750F10527DCBA3CA /* XCTest+Private.h in Headers */, - C2BE2DCF5392F363C60A210B /* XCTestCase+Specta.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7F75A327B3E596E1CE9BEAE5 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 6353F43D216317DCB7178D76 /* AFHTTPRequestOperation.h in Headers */, - CEF36F80E21F2D0234B5566A /* AFHTTPRequestOperationManager.h in Headers */, - D64936F4E16C7DDC5CA36786 /* AFHTTPSessionManager.h in Headers */, - 81E1F4FC8572144FC30559B2 /* AFNetworkActivityIndicatorManager.h in Headers */, - 202A56F969E09068E449B790 /* AFNetworkReachabilityManager.h in Headers */, - 655A1A5574F0ADA33C6BA555 /* AFNetworking.h in Headers */, - 01644CF4631020B9AC9CCD06 /* AFSecurityPolicy.h in Headers */, - 060CE80CB8B14C7F22E6C8F7 /* AFURLConnectionOperation.h in Headers */, - 063630C46D0AE3241769A6AB /* AFURLRequestSerialization.h in Headers */, - 0CE023D16C43712578A85693 /* AFURLResponseSerialization.h in Headers */, - D089D5A08CF97B04969C23E4 /* AFURLSessionManager.h in Headers */, - 2C0B0BCC4246AA2B5C7A85A4 /* Pods-SwaggerClient_Example-AFNetworking-umbrella.h in Headers */, - A6A04E6DCA180CCB638EB663 /* UIActivityIndicatorView+AFNetworking.h in Headers */, - 9E4390595213439458955F20 /* UIAlertView+AFNetworking.h in Headers */, - 4D8B2BA43AAE4EB70B675653 /* UIButton+AFNetworking.h in Headers */, - CCF74087CAB105D4DED21E9F /* UIImageView+AFNetworking.h in Headers */, - B977CEEA0F438EDF96140C66 /* UIKit+AFNetworking.h in Headers */, - ED3C42A61083D6D95AA107AB /* UIProgressView+AFNetworking.h in Headers */, - 15D907F1F8EE9988D498B929 /* UIRefreshControl+AFNetworking.h in Headers */, - B9E4C068BE8563261382F6A0 /* UIWebView+AFNetworking.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 97DCCF614986E72E496EDC94 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - C6D59104CEC4FAE304DA4D55 /* EXPBlockDefinedMatcher.h in Headers */, - 4CD5A6D7AA3D5BFD09648D1D /* EXPDefines.h in Headers */, - FDB1AA841E7569F2CAD1A487 /* EXPDoubleTuple.h in Headers */, - 4E381D04C09A000DF81BB192 /* EXPExpect.h in Headers */, - 7A068863C9D19B0DE204F391 /* EXPFloatTuple.h in Headers */, - 4C87A409DB81EB3100727F0F /* EXPMatcher.h in Headers */, - F67A3EE5DE902A585BDEDC01 /* EXPMatcherHelpers.h in Headers */, - BEA321219CA5B6A96477031D /* EXPMatchers+beCloseTo.h in Headers */, - FEE8E2294C46AE7CE464264D /* EXPMatchers+beFalsy.h in Headers */, - 141E818821C0DF4EF86D111A /* EXPMatchers+beGreaterThan.h in Headers */, - 75152788B3BE31431561865B /* EXPMatchers+beGreaterThanOrEqualTo.h in Headers */, - A39E4CD5AE12216FB1487BE3 /* EXPMatchers+beIdenticalTo.h in Headers */, - D9DFA62AC86F87A197C5560C /* EXPMatchers+beInTheRangeOf.h in Headers */, - ED132F7E6A664272D3FF3B53 /* EXPMatchers+beInstanceOf.h in Headers */, - C330AFEF3709DC609D18FE78 /* EXPMatchers+beKindOf.h in Headers */, - 44E1A78EC1381D154F5F4198 /* EXPMatchers+beLessThan.h in Headers */, - 4D4DFF614C17C0DC6F9358B9 /* EXPMatchers+beLessThanOrEqualTo.h in Headers */, - F55E8B76B45DE49306387219 /* EXPMatchers+beNil.h in Headers */, - D1750EAC8D3DBC472DDCBC9D /* EXPMatchers+beSubclassOf.h in Headers */, - 5F372EF252811B674AC4AB6B /* EXPMatchers+beSupersetOf.h in Headers */, - D7239B7051E31F27F8BEE765 /* EXPMatchers+beTruthy.h in Headers */, - A52C6D47F0316E0850BDB9CC /* EXPMatchers+beginWith.h in Headers */, - 0A807DDB6336109324346314 /* EXPMatchers+conformTo.h in Headers */, - 1A089E25AFA9D708ACA954D0 /* EXPMatchers+contain.h in Headers */, - 14D082B7758784153108F8D0 /* EXPMatchers+endWith.h in Headers */, - 480B9A799CF713D7A4FB1280 /* EXPMatchers+equal.h in Headers */, - C05D4C12A5819F4C96283EF0 /* EXPMatchers+haveCountOf.h in Headers */, - B69AF6583C37F97E73A631A4 /* EXPMatchers+match.h in Headers */, - A1C1A904CA59FC4D76396175 /* EXPMatchers+postNotification.h in Headers */, - 5D474A781C64601B7793EACE /* EXPMatchers+raise.h in Headers */, - 954A0C871E08071219871B4D /* EXPMatchers+raiseWithReason.h in Headers */, - FB1C86BB963AE459A2F77925 /* EXPMatchers+respondTo.h in Headers */, - AD992DDF15A32176B225DE7D /* EXPMatchers.h in Headers */, - 248E11A29947ED3176089DE8 /* EXPUnsupportedObject.h in Headers */, - 7A95722C4365CBB156219D87 /* Expecta.h in Headers */, - 2BF8572932D3DB0D00340B5D /* ExpectaObject.h in Headers */, - A94CB6D49585BD2377348821 /* ExpectaSupport.h in Headers */, - 9C4FAEE42252A322B0545CF6 /* NSObject+Expecta.h in Headers */, - A070DA3650B5255D70D2B282 /* NSValue+Expecta.h in Headers */, - C9FEB3D995D761E335AD7564 /* Pods-SwaggerClient_Tests-Expecta-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - AB4A5205D0F4C0D7D380619A /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - F00CD0B1A1A5D41A7C0A8A0E /* ISO8601.h in Headers */, - 8178DA76D849E1EEFDD0776E /* ISO8601Serialization.h in Headers */, - 4C235C092D5E9122C9675223 /* NSDate+ISO8601.h in Headers */, - 81412F96CE91EA61DD405215 /* Pods-SwaggerClient_Tests-ISO8601-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - BF506DBD467268993DD0B88B /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 1B9947C260FA1F8C7BBF6CAA /* JSONValueTransformer+ISO8601.h in Headers */, - FEC1250CB58D27B11D7B6D82 /* Pods-SwaggerClient_Example-SwaggerClient-umbrella.h in Headers */, - 2E492A887BD1485D00A872DE /* SWGApiClient.h in Headers */, - 79BFDC0F5D922F559F6386CD /* SWGCategory.h in Headers */, - 684A4BF6370BC43C9704A17A /* SWGConfiguration.h in Headers */, - 56250F2F58B9A7760BFA25D2 /* SWGFile.h in Headers */, - 6E80282ECD2D0EBFB5E4485E /* SWGJSONRequestSerializer.h in Headers */, - 70355ED21006B4EFC0743514 /* SWGJSONResponseSerializer.h in Headers */, - 208F0DB6A4BA036D42430F0E /* SWGMyresult.h in Headers */, - A9099FF7B971FB25BE12CE34 /* SWGMythingApi.h in Headers */, - A341B6CFB383324AA067A6C9 /* SWGObject.h in Headers */, - DC1A23AD09FFE1D162CF752C /* SWGOrder.h in Headers */, - D5C153FA62530DF6C2F0273C /* SWGPet.h in Headers */, - 31F4C8B75EEE1B23E2591723 /* SWGPetApi.h in Headers */, - 96514B6F8D64D7C3330D5338 /* SWGQueryParamCollection.h in Headers */, - 730EB4EC6649BB254DE45A23 /* SWGStoreApi.h in Headers */, - B4D66A60456836C75E244CA1 /* SWGTag.h in Headers */, - 8A4B71DDA44F239B71659CC9 /* SWGUser.h in Headers */, - AA260D742DDFFB983A47540C /* SWGUserApi.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - C8F839C66585929F628BBFD6 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - F9B487686092CAF6F341F0B4 /* ISO8601.h in Headers */, - 79AC15C3F613CF7B5167E18A /* ISO8601Serialization.h in Headers */, - BF726F674241490B1012F41D /* NSDate+ISO8601.h in Headers */, - A12B12D456D0FB491E19B70F /* Pods-SwaggerClient_Example-ISO8601-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - D82B733FDD10A4C34B91EA7E /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - B577C09AD427A9630FC2762A /* Pods-SwaggerClient_Tests-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - 0302FEB4C8D5554EBF417C18 /* Pods-SwaggerClient_Tests-SwaggerClient-SwaggerClient */ = { - isa = PBXNativeTarget; - buildConfigurationList = 351BAE8D5BC62A097309ADC9 /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Tests-SwaggerClient-SwaggerClient" */; - buildPhases = ( - 8448357716917B3811ADC84F /* Sources */, - D85DD4B01002C97CAEAD5ECD /* Frameworks */, - 18DC42A60FE85FD053CE074E /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "Pods-SwaggerClient_Tests-SwaggerClient-SwaggerClient"; - productName = "Pods-SwaggerClient_Tests-SwaggerClient-SwaggerClient"; - productReference = 88858C0B2B9F69FD1898CC7C /* SwaggerClient.bundle */; - productType = "com.apple.product-type.bundle"; - }; - 3D847D51CC40CEBA17C36758 /* Pods-SwaggerClient_Example */ = { - isa = PBXNativeTarget; - buildConfigurationList = 3D7EC3A64D24B9B21CAB0CB0 /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Example" */; - buildPhases = ( - 465DA8A121427D77A47133AD /* Sources */, - 673A0374A2A20CD429AB0773 /* Frameworks */, - 4473FA90B779810F6D33A32C /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - BFFCF1DD85CC0EBDD4A15E6F /* PBXTargetDependency */, - 1BD6424F23937FAA86565E89 /* PBXTargetDependency */, - F5D78FECB621781EB73E6197 /* PBXTargetDependency */, - 6FC0DE2C745B1889560F6372 /* PBXTargetDependency */, - ); - name = "Pods-SwaggerClient_Example"; - productName = "Pods-SwaggerClient_Example"; - productReference = ECD35253AA3403B8C0D8BC91 /* Pods_SwaggerClient_Example.framework */; - productType = "com.apple.product-type.framework"; - }; - 4B19C784C3E2E4F174682EE7 /* Pods-SwaggerClient_Example-JSONModel */ = { - isa = PBXNativeTarget; - buildConfigurationList = 85CDE45473383342737F8E25 /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Example-JSONModel" */; - buildPhases = ( - D73538A10BDC3736D358D63A /* Sources */, - 8269400275399508F5AC9F90 /* Frameworks */, - 156119613885B08AA0F014A7 /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "Pods-SwaggerClient_Example-JSONModel"; - productName = "Pods-SwaggerClient_Example-JSONModel"; - productReference = 2B84527440CA189207D786E6 /* JSONModel.framework */; - productType = "com.apple.product-type.framework"; - }; - 58684BF8E23BF0837CADD868 /* Pods-SwaggerClient_Example-AFNetworking */ = { - isa = PBXNativeTarget; - buildConfigurationList = 0CA4D8762B52D96C8C564237 /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Example-AFNetworking" */; - buildPhases = ( - 44795B49329385F6BF17D23B /* Sources */, - 750E29F817ADCE3AB9B643BA /* Frameworks */, - 7F75A327B3E596E1CE9BEAE5 /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "Pods-SwaggerClient_Example-AFNetworking"; - productName = "Pods-SwaggerClient_Example-AFNetworking"; - productReference = A5484E73AF459C17B7675EC4 /* AFNetworking.framework */; - productType = "com.apple.product-type.framework"; - }; - 586988C23CE1F40608512406 /* Pods-SwaggerClient_Tests */ = { - isa = PBXNativeTarget; - buildConfigurationList = D30DD5D7DFF977FDA7B6BEF1 /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Tests" */; - buildPhases = ( - 9FD38D102529F8D7D3170D67 /* Sources */, - B5794BCD92EB55B5659DC58C /* Frameworks */, - D82B733FDD10A4C34B91EA7E /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - 02A00A78A8D4DBA4C494E782 /* PBXTargetDependency */, - 7E019665346D67BA59BD3582 /* PBXTargetDependency */, - 2BC5F748C750AEDB54C6722D /* PBXTargetDependency */, - 6300704AD4301AF8D7350451 /* PBXTargetDependency */, - 8BD39B4AC51572C84586390B /* PBXTargetDependency */, - 2F7257A66A460B6DD6A4EA8E /* PBXTargetDependency */, - ); - name = "Pods-SwaggerClient_Tests"; - productName = "Pods-SwaggerClient_Tests"; - productReference = DD1BFACA7FDF797B7D807147 /* Pods_SwaggerClient_Tests.framework */; - productType = "com.apple.product-type.framework"; - }; - 5D6776B420CF321A265D866F /* Pods-SwaggerClient_Tests-Specta */ = { - isa = PBXNativeTarget; - buildConfigurationList = 24A540001943BDE4C634EC51 /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Tests-Specta" */; - buildPhases = ( - 0142C86F1CE186B36A8261E9 /* Sources */, - FC7F930F7556CE714F53300E /* Frameworks */, - 7AC2D11FE2C693EA5B960A79 /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "Pods-SwaggerClient_Tests-Specta"; - productName = "Pods-SwaggerClient_Tests-Specta"; - productReference = 77F99C66542F4EEBABCA1BD3 /* Specta.framework */; - productType = "com.apple.product-type.framework"; - }; - 7DCA9F990FC46BE1EFE6E984 /* Pods-SwaggerClient_Example-SwaggerClient-SwaggerClient */ = { - isa = PBXNativeTarget; - buildConfigurationList = 6083D3A92D58EC4F28AE1B83 /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Example-SwaggerClient-SwaggerClient" */; - buildPhases = ( - 8AF5012546A593E5921B31FF /* Sources */, - 499759AF0A623FE7F6AF7041 /* Frameworks */, - FD18433AC00713F1D24CEE1F /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "Pods-SwaggerClient_Example-SwaggerClient-SwaggerClient"; - productName = "Pods-SwaggerClient_Example-SwaggerClient-SwaggerClient"; - productReference = F248532F283AF83DB6271DCE /* SwaggerClient.bundle */; - productType = "com.apple.product-type.bundle"; - }; - 9A7195F471543DF0C0847DF5 /* Pods-SwaggerClient_Tests-SwaggerClient */ = { - isa = PBXNativeTarget; - buildConfigurationList = 0CF9A436B18EF00915610CA8 /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Tests-SwaggerClient" */; - buildPhases = ( - C1749AA5E0494F78957B7B27 /* Sources */, - D0FE5D2BE433B354C40D398F /* Frameworks */, - 06ED960DB2AAD40ADDC8FBA2 /* Resources */, - 250DC207ED9525F56AB6683F /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - B6FBD2C5C6EF1DBE5A3B8C0E /* PBXTargetDependency */, - 4176E190DC2EF76DC2017F30 /* PBXTargetDependency */, - 1A0AA9815393DBD89407AF6B /* PBXTargetDependency */, - EC423479E5CD171647C2D9BE /* PBXTargetDependency */, - ); - name = "Pods-SwaggerClient_Tests-SwaggerClient"; - productName = "Pods-SwaggerClient_Tests-SwaggerClient"; - productReference = FB09DF7ECF2A36274905F66A /* SwaggerClient.framework */; - productType = "com.apple.product-type.framework"; - }; - AF87B186D8CCE5424F3A8D43 /* Pods-SwaggerClient_Tests-ISO8601 */ = { - isa = PBXNativeTarget; - buildConfigurationList = 440F2EB40823B7BE6C0366BF /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Tests-ISO8601" */; - buildPhases = ( - 6E74CB31F8190636A0E3EDC4 /* Sources */, - A06FF8C70F93B2C2A8E2C69A /* Frameworks */, - AB4A5205D0F4C0D7D380619A /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "Pods-SwaggerClient_Tests-ISO8601"; - productName = "Pods-SwaggerClient_Tests-ISO8601"; - productReference = 63A4708CCC1EF6AB1122AA0D /* ISO8601.framework */; - productType = "com.apple.product-type.framework"; - }; - BBD665C31D4B21357533473D /* Pods-SwaggerClient_Tests-JSONModel */ = { - isa = PBXNativeTarget; - buildConfigurationList = 8F5905F41630018F867BF0DD /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Tests-JSONModel" */; - buildPhases = ( - 84DB4D9B2F896BDE2D16EE9C /* Sources */, - 22103A8AB4D5FCBA853D48FE /* Frameworks */, - 4545D53E1FD0C4B7B97B04F9 /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "Pods-SwaggerClient_Tests-JSONModel"; - productName = "Pods-SwaggerClient_Tests-JSONModel"; - productReference = F2C9039E5EA681AB43C4BBEF /* JSONModel.framework */; - productType = "com.apple.product-type.framework"; - }; - C215F478D13D9D22D8E1EF48 /* Pods-SwaggerClient_Tests-Expecta */ = { - isa = PBXNativeTarget; - buildConfigurationList = CE9D2C2EB73F81484282144B /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Tests-Expecta" */; - buildPhases = ( - 3CE9B586C0B1F55752D43B64 /* Sources */, - D1964A51153C3AD7CB69D97B /* Frameworks */, - 97DCCF614986E72E496EDC94 /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "Pods-SwaggerClient_Tests-Expecta"; - productName = "Pods-SwaggerClient_Tests-Expecta"; - productReference = A3345F9CAA9252356B6C083F /* Expecta.framework */; - productType = "com.apple.product-type.framework"; - }; - DDC8A358588D2A3B692812B1 /* Pods-SwaggerClient_Tests-AFNetworking */ = { - isa = PBXNativeTarget; - buildConfigurationList = 45EDD505E7F0B8B9474DB404 /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Tests-AFNetworking" */; - buildPhases = ( - 08D9808518E24B8B95461158 /* Sources */, - C9772FEF5F5BFC03430176FC /* Frameworks */, - 53E267707CCEA2E3A1AB0B3C /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "Pods-SwaggerClient_Tests-AFNetworking"; - productName = "Pods-SwaggerClient_Tests-AFNetworking"; - productReference = C8F4D12FB56992D696A23287 /* AFNetworking.framework */; - productType = "com.apple.product-type.framework"; - }; - EC89492AC5A2DC4B6E6BC599 /* Pods-SwaggerClient_Example-ISO8601 */ = { - isa = PBXNativeTarget; - buildConfigurationList = D60F77FE8CF69D3A0CE90DB1 /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Example-ISO8601" */; - buildPhases = ( - 7F899B2AE63A9C2AF4594B6E /* Sources */, - 4356669AECF52D690D7A0708 /* Frameworks */, - C8F839C66585929F628BBFD6 /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "Pods-SwaggerClient_Example-ISO8601"; - productName = "Pods-SwaggerClient_Example-ISO8601"; - productReference = E76BF395D393BEDAF0184B7D /* ISO8601.framework */; - productType = "com.apple.product-type.framework"; - }; - F41FA180E243133D32149CC3 /* Pods-SwaggerClient_Example-SwaggerClient */ = { - isa = PBXNativeTarget; - buildConfigurationList = B99147797FD26A68689C683E /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Example-SwaggerClient" */; - buildPhases = ( - 7B2044C659DA2DB123C95C64 /* Sources */, - 4A427963DE553632587A5ADF /* Frameworks */, - E6CAB5E75279623276601C95 /* Resources */, - BF506DBD467268993DD0B88B /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - 5E6E70FCD4CD3DEF152EA484 /* PBXTargetDependency */, - B158D90617991ACE7FF89C92 /* PBXTargetDependency */, - E5E1ECE1FCFCE7D924A5661D /* PBXTargetDependency */, - 2C0DE9B3B72582655B86E580 /* PBXTargetDependency */, - ); - name = "Pods-SwaggerClient_Example-SwaggerClient"; - productName = "Pods-SwaggerClient_Example-SwaggerClient"; - productReference = A038A42B885D252D1A20C7CB /* SwaggerClient.framework */; - productType = "com.apple.product-type.framework"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 2773EB90C58135F3C1FC4A1B /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0640; - }; - buildConfigurationList = 99E24E8C0F51BD67AFA23E56 /* Build configuration list for PBXProject "Pods" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - ); - mainGroup = F8DFE02AA7117447C43F2FFC; - productRefGroup = 1919E245EDC5D1667FA4AA3A /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 3D847D51CC40CEBA17C36758 /* Pods-SwaggerClient_Example */, - 58684BF8E23BF0837CADD868 /* Pods-SwaggerClient_Example-AFNetworking */, - EC89492AC5A2DC4B6E6BC599 /* Pods-SwaggerClient_Example-ISO8601 */, - 4B19C784C3E2E4F174682EE7 /* Pods-SwaggerClient_Example-JSONModel */, - F41FA180E243133D32149CC3 /* Pods-SwaggerClient_Example-SwaggerClient */, - 7DCA9F990FC46BE1EFE6E984 /* Pods-SwaggerClient_Example-SwaggerClient-SwaggerClient */, - 586988C23CE1F40608512406 /* Pods-SwaggerClient_Tests */, - DDC8A358588D2A3B692812B1 /* Pods-SwaggerClient_Tests-AFNetworking */, - C215F478D13D9D22D8E1EF48 /* Pods-SwaggerClient_Tests-Expecta */, - AF87B186D8CCE5424F3A8D43 /* Pods-SwaggerClient_Tests-ISO8601 */, - BBD665C31D4B21357533473D /* Pods-SwaggerClient_Tests-JSONModel */, - 5D6776B420CF321A265D866F /* Pods-SwaggerClient_Tests-Specta */, - 9A7195F471543DF0C0847DF5 /* Pods-SwaggerClient_Tests-SwaggerClient */, - 0302FEB4C8D5554EBF417C18 /* Pods-SwaggerClient_Tests-SwaggerClient-SwaggerClient */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 06ED960DB2AAD40ADDC8FBA2 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 739B0A56F4B979196B38F1D4 /* SwaggerClient.bundle in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 18DC42A60FE85FD053CE074E /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - E6CAB5E75279623276601C95 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ECBEE6653FEB368DF6EA2147 /* SwaggerClient.bundle in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - FD18433AC00713F1D24CEE1F /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 0142C86F1CE186B36A8261E9 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 2FBDF7CE14C4468420FD55AE /* Pods-SwaggerClient_Tests-Specta-dummy.m in Sources */, - 349C1EC2A3BC841F900B1486 /* SPTCallSite.m in Sources */, - 733CE4BAA5170020996D3E9B /* SPTCompiledExample.m in Sources */, - EEB0BA1DC32939D00C3ED294 /* SPTExample.m in Sources */, - AD94F44BEC5659D1BB34DE23 /* SPTExampleGroup.m in Sources */, - DB63C05804976AC7CDF74F4D /* SPTSharedExampleGroups.m in Sources */, - B540F67558AA7A144899EBBF /* SPTSpec.m in Sources */, - 65EEB46EDB53A949C6316472 /* SPTTestSuite.m in Sources */, - 35B0AC4B7AF8B00BC4C38BE6 /* SpectaDSL.m in Sources */, - 234F4761A980F0FB31468104 /* SpectaUtility.m in Sources */, - D71C1CD54E1E0230C16A87F8 /* XCTestCase+Specta.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 08D9808518E24B8B95461158 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 8D650C64BE46E68CB35B4FCA /* AFHTTPRequestOperation.m in Sources */, - 7022EA6C3ED11B8F6D17C915 /* AFHTTPRequestOperationManager.m in Sources */, - 28DA345E3A79443D17917DD3 /* AFHTTPSessionManager.m in Sources */, - 5D36786D11940C4FC2D151F1 /* AFNetworkActivityIndicatorManager.m in Sources */, - B85B153A4B53D16F245FEEAA /* AFNetworkReachabilityManager.m in Sources */, - E500C5512FD6F2D51E9AC635 /* AFSecurityPolicy.m in Sources */, - 10D3E7AAF6BF29347D2C6098 /* AFURLConnectionOperation.m in Sources */, - C070594757FF88D238C2FA87 /* AFURLRequestSerialization.m in Sources */, - B2A892164C701F606A01393A /* AFURLResponseSerialization.m in Sources */, - 485CBCFDC4C3E69D41661405 /* AFURLSessionManager.m in Sources */, - C63074C841FEFC17E3AB5C3C /* Pods-SwaggerClient_Tests-AFNetworking-dummy.m in Sources */, - 592FFE8ADED8118B48C3C008 /* UIActivityIndicatorView+AFNetworking.m in Sources */, - 64839F8447FE9FFE7BEAA520 /* UIAlertView+AFNetworking.m in Sources */, - FA15E8CCF2EE07E232BE3171 /* UIButton+AFNetworking.m in Sources */, - 541A3EF8AB9F89D0C26F5180 /* UIImageView+AFNetworking.m in Sources */, - D973A75729B33D7DBA665F94 /* UIProgressView+AFNetworking.m in Sources */, - 891D33D88CE707237FF15709 /* UIRefreshControl+AFNetworking.m in Sources */, - E4097E7ABE3BFD9AE7B2D446 /* UIWebView+AFNetworking.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3CE9B586C0B1F55752D43B64 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 6FFFCA02F0848062C1CFC252 /* EXPBlockDefinedMatcher.m in Sources */, - 4E0D59D3C52705977CDA2F8C /* EXPDoubleTuple.m in Sources */, - 38DD8E43F24A829555F60CFA /* EXPExpect.m in Sources */, - 15D3342D7E8179197A16CE99 /* EXPFloatTuple.m in Sources */, - 7A1C599B7BB230911B38A23D /* EXPMatcherHelpers.m in Sources */, - 1A42236975D31BC018BADEA8 /* EXPMatchers+beCloseTo.m in Sources */, - 6F0C994E24BAEFAD916AEE27 /* EXPMatchers+beFalsy.m in Sources */, - F26654D315EA6DCA41834C01 /* EXPMatchers+beGreaterThan.m in Sources */, - 480220DF7A8958ABA2B68C4A /* EXPMatchers+beGreaterThanOrEqualTo.m in Sources */, - 3D3DB30244C6BC6C236665C2 /* EXPMatchers+beIdenticalTo.m in Sources */, - 1AE4C4E081C7868C097ED07E /* EXPMatchers+beInTheRangeOf.m in Sources */, - 8182438CCBAC66CC21D7E6D8 /* EXPMatchers+beInstanceOf.m in Sources */, - BF9AD2E3F2BBB0F23C5FE05B /* EXPMatchers+beKindOf.m in Sources */, - 85E4D74887E7F3F3702DBF51 /* EXPMatchers+beLessThan.m in Sources */, - 5A8DE01C8A5A5BA6F321912A /* EXPMatchers+beLessThanOrEqualTo.m in Sources */, - 6DF752A3DC92FFE0ED8186A6 /* EXPMatchers+beNil.m in Sources */, - 5EC683903E3BFB84AF431EE7 /* EXPMatchers+beSubclassOf.m in Sources */, - 98AB219A7D05251D3F7F7191 /* EXPMatchers+beSupersetOf.m in Sources */, - C59AA43C300E2D6018686D5C /* EXPMatchers+beTruthy.m in Sources */, - AF5EA9CC989D2DD5BBC37E6D /* EXPMatchers+beginWith.m in Sources */, - 49207B3420011B51EB18E841 /* EXPMatchers+conformTo.m in Sources */, - F16001F37542754EC6BB8DD2 /* EXPMatchers+contain.m in Sources */, - B4795C0A8815C3A0950EC1B3 /* EXPMatchers+endWith.m in Sources */, - 2B068325226CBE00207FD473 /* EXPMatchers+equal.m in Sources */, - AA31F2218DEBC427DA074A6F /* EXPMatchers+haveCountOf.m in Sources */, - 179CF1D636A8BCC9B4FF0357 /* EXPMatchers+match.m in Sources */, - 76BCBD536C1967E6EE51F9CC /* EXPMatchers+postNotification.m in Sources */, - 7711A28F5EA5D2624146AA49 /* EXPMatchers+raise.m in Sources */, - ABB477C54AD69931FDAD534A /* EXPMatchers+raiseWithReason.m in Sources */, - 7F9EE30367A72427A141D157 /* EXPMatchers+respondTo.m in Sources */, - 74844E56902AF11EAD1519DC /* EXPUnsupportedObject.m in Sources */, - BEF99C501593E888D27462DD /* ExpectaObject.m in Sources */, - BD3DBE17D08805BA594C4CDF /* ExpectaSupport.m in Sources */, - 064D4D263A3BCF74314B1CC0 /* NSValue+Expecta.m in Sources */, - 9E825293685B2F9CCB212441 /* Pods-SwaggerClient_Tests-Expecta-dummy.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 44795B49329385F6BF17D23B /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - B7BFFB369FFC08F30144EB53 /* AFHTTPRequestOperation.m in Sources */, - 91E570000BEF9E1B7FE2D62C /* AFHTTPRequestOperationManager.m in Sources */, - 69F02A625CD67C7385B76D0C /* AFHTTPSessionManager.m in Sources */, - F17018B643C6833F68258DE9 /* AFNetworkActivityIndicatorManager.m in Sources */, - 738A8A430BD4B242B982A059 /* AFNetworkReachabilityManager.m in Sources */, - 98546537C1F973E3CD32D4FF /* AFSecurityPolicy.m in Sources */, - 9F71319C3E9362B30F6C3769 /* AFURLConnectionOperation.m in Sources */, - 7B97CB82AB5C67E42EF47207 /* AFURLRequestSerialization.m in Sources */, - D9854E458AA2FBD78985A511 /* AFURLResponseSerialization.m in Sources */, - CB9C5D875643FBC019875C60 /* AFURLSessionManager.m in Sources */, - 0D6A55BDCE3AAA3B8A4451D0 /* Pods-SwaggerClient_Example-AFNetworking-dummy.m in Sources */, - DF8E177952FDF501C1A4A2E4 /* UIActivityIndicatorView+AFNetworking.m in Sources */, - 14B409D1DD01CD3148C13D93 /* UIAlertView+AFNetworking.m in Sources */, - B423A4F4EC57E34D565252DC /* UIButton+AFNetworking.m in Sources */, - EE81625A23AF0564339C887C /* UIImageView+AFNetworking.m in Sources */, - F2D019933E1752072C3226C6 /* UIProgressView+AFNetworking.m in Sources */, - 7891CCC1701105C4924B92D2 /* UIRefreshControl+AFNetworking.m in Sources */, - 8E08F266FF1D8F57E4358D4E /* UIWebView+AFNetworking.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 465DA8A121427D77A47133AD /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 8CDC523BB3A193C0478C2391 /* Pods-SwaggerClient_Example-dummy.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 6E74CB31F8190636A0E3EDC4 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 935DB5B30E1569E0AD36149E /* ISO8601Serialization.m in Sources */, - 216BA373617DE71E01797A11 /* NSDate+ISO8601.m in Sources */, - AF7B682321A34F5E0DC249CC /* Pods-SwaggerClient_Tests-ISO8601-dummy.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7B2044C659DA2DB123C95C64 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - D0E021101C4457887F895E49 /* JSONValueTransformer+ISO8601.m in Sources */, - 7BD9D6B0473CD492B25067F0 /* Pods-SwaggerClient_Example-SwaggerClient-dummy.m in Sources */, - 5557E105ADC6440D8DE05BE8 /* SWGApiClient.m in Sources */, - 93A71FA7A09487B7309E2291 /* SWGCategory.m in Sources */, - 6D9D7788C3964B9919E6AFDD /* SWGConfiguration.m in Sources */, - A5A2B75AEEE5F1471ABF7C51 /* SWGFile.m in Sources */, - CDB76BF92E8780DFD831170E /* SWGJSONRequestSerializer.m in Sources */, - C9105E9B2229104E74953563 /* SWGJSONResponseSerializer.m in Sources */, - 5EB23F6A3A0BC89591B46C53 /* SWGMyresult.m in Sources */, - 6CBB043C1B99FCC1B8421A4D /* SWGMythingApi.m in Sources */, - 24A7213C685D7D07D1A1FEBD /* SWGObject.m in Sources */, - 3EC6DC73A10ED5CC2F75062A /* SWGOrder.m in Sources */, - 73FCB4F39FE4BFF9537374F4 /* SWGPet.m in Sources */, - 0D7DC58CB3CDFDB33C4CB741 /* SWGPetApi.m in Sources */, - 6C73129BE33A179F9AB0617C /* SWGQueryParamCollection.m in Sources */, - 2FB329EBD1692264B6EF0552 /* SWGStoreApi.m in Sources */, - A325E1719B72BDDEE0616DBF /* SWGTag.m in Sources */, - 7A0E55F5686D8206F7ED79ED /* SWGUser.m in Sources */, - 8288B907B026F63D6B2E4C69 /* SWGUserApi.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7F899B2AE63A9C2AF4594B6E /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 5AF80236C8B3D49B88DD6A73 /* ISO8601Serialization.m in Sources */, - FE0A66CD1EBA3E418F2C1D00 /* NSDate+ISO8601.m in Sources */, - DB8F6259B5D23FA526D5B6C7 /* Pods-SwaggerClient_Example-ISO8601-dummy.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 8448357716917B3811ADC84F /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 84DB4D9B2F896BDE2D16EE9C /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - A53061A46842AA54DAB54023 /* JSONAPI.m in Sources */, - DFA8365B324D8F74B8235B48 /* JSONHTTPClient.m in Sources */, - 8F5909852A74BE69436DD070 /* JSONKeyMapper.m in Sources */, - 8E1AE5FA00BEAC8AFAA2B331 /* JSONModel+networking.m in Sources */, - 9485712460E60EEE88CAC7F1 /* JSONModel.m in Sources */, - 53DB01B8A07B731462961681 /* JSONModelArray.m in Sources */, - CE1B2D9D23D09D355C7E07FE /* JSONModelClassProperty.m in Sources */, - 2E0CAD7ECD05DB499DB08A87 /* JSONModelError.m in Sources */, - 5396861AA4F84D5063B9B570 /* JSONValueTransformer.m in Sources */, - CECFB59C6E20B976193137D0 /* NSArray+JSONModel.m in Sources */, - 1F6FDD41776492A1FC024230 /* Pods-SwaggerClient_Tests-JSONModel-dummy.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 8AF5012546A593E5921B31FF /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 9FD38D102529F8D7D3170D67 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 82169A131417A9577A927111 /* Pods-SwaggerClient_Tests-dummy.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - C1749AA5E0494F78957B7B27 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 61E0F74A03A9676D1F9B9A1A /* JSONValueTransformer+ISO8601.m in Sources */, - 4A2E86089A4A9CBC89A42217 /* Pods-SwaggerClient_Tests-SwaggerClient-dummy.m in Sources */, - D46CB83D2BFA0851BC5D2061 /* SWGApiClient.m in Sources */, - 3DDA99600B95318A88915CE5 /* SWGCategory.m in Sources */, - 895A70C08AF98E52F33DDF0D /* SWGConfiguration.m in Sources */, - 7AC10CEF01A1AEF811D131B9 /* SWGFile.m in Sources */, - E3222F4CDFB84AFDF6739CEF /* SWGJSONRequestSerializer.m in Sources */, - AAD24B3301CA60B702236DAB /* SWGJSONResponseSerializer.m in Sources */, - 0C64F018C08F817B763164B4 /* SWGMyresult.m in Sources */, - D2CB47DBB432B6BAA9C44EF6 /* SWGMythingApi.m in Sources */, - D0230521FC1F6FF0AEB25B02 /* SWGObject.m in Sources */, - 83CE0A6BC031E570966864C9 /* SWGOrder.m in Sources */, - FE2033DD10C73DF0B8267A2C /* SWGPet.m in Sources */, - 015B81A52CCCF49BCE3973BE /* SWGPetApi.m in Sources */, - 708D1BE5029DFC2517A09EDF /* SWGQueryParamCollection.m in Sources */, - EEC3C62F793F896CF5B0B8BF /* SWGStoreApi.m in Sources */, - FE705743662892EB52ADB7B9 /* SWGTag.m in Sources */, - 43EB4E01F9DBC56B8153AF88 /* SWGUser.m in Sources */, - E33D4EA8D951458DF8A05254 /* SWGUserApi.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - D73538A10BDC3736D358D63A /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 558377E71A2AECE6C70176A1 /* JSONAPI.m in Sources */, - 0DE7F2395E87EE714F79B368 /* JSONHTTPClient.m in Sources */, - CA78D205AB1EFA5BFB5434FD /* JSONKeyMapper.m in Sources */, - E6E0B4AD1CC2AFC6E80DAA67 /* JSONModel+networking.m in Sources */, - 1BF4F57244442FA9C0CE55BF /* JSONModel.m in Sources */, - C249634F44F546BBF6CA700F /* JSONModelArray.m in Sources */, - 3A595234403693F5B22FB680 /* JSONModelClassProperty.m in Sources */, - C1664322571F72BEDD57250C /* JSONModelError.m in Sources */, - AFFF90368E8F9EF5886C30B2 /* JSONValueTransformer.m in Sources */, - 815056BB9D281AB625FD6525 /* NSArray+JSONModel.m in Sources */, - 3B64A6FDF788A2104D9BB03D /* Pods-SwaggerClient_Example-JSONModel-dummy.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 02A00A78A8D4DBA4C494E782 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Pods-SwaggerClient_Tests-AFNetworking"; - target = DDC8A358588D2A3B692812B1 /* Pods-SwaggerClient_Tests-AFNetworking */; - targetProxy = BB29CEBC89A3E750582C41F4 /* PBXContainerItemProxy */; - }; - 1A0AA9815393DBD89407AF6B /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Pods-SwaggerClient_Tests-JSONModel"; - target = BBD665C31D4B21357533473D /* Pods-SwaggerClient_Tests-JSONModel */; - targetProxy = 2F83CC8868CCC58549D23B75 /* PBXContainerItemProxy */; - }; - 1BD6424F23937FAA86565E89 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Pods-SwaggerClient_Example-ISO8601"; - target = EC89492AC5A2DC4B6E6BC599 /* Pods-SwaggerClient_Example-ISO8601 */; - targetProxy = F2FE102F982CD5E7539DA87C /* PBXContainerItemProxy */; - }; - 2BC5F748C750AEDB54C6722D /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Pods-SwaggerClient_Tests-ISO8601"; - target = AF87B186D8CCE5424F3A8D43 /* Pods-SwaggerClient_Tests-ISO8601 */; - targetProxy = 6CFF13F0D8A307887FE05E67 /* PBXContainerItemProxy */; - }; - 2C0DE9B3B72582655B86E580 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Pods-SwaggerClient_Example-SwaggerClient-SwaggerClient"; - target = 7DCA9F990FC46BE1EFE6E984 /* Pods-SwaggerClient_Example-SwaggerClient-SwaggerClient */; - targetProxy = A9E619AFCC2FBD32EE05B6C2 /* PBXContainerItemProxy */; - }; - 2F7257A66A460B6DD6A4EA8E /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Pods-SwaggerClient_Tests-SwaggerClient"; - target = 9A7195F471543DF0C0847DF5 /* Pods-SwaggerClient_Tests-SwaggerClient */; - targetProxy = 9B368F4D9DF66B5E965986C6 /* PBXContainerItemProxy */; - }; - 4176E190DC2EF76DC2017F30 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Pods-SwaggerClient_Tests-ISO8601"; - target = AF87B186D8CCE5424F3A8D43 /* Pods-SwaggerClient_Tests-ISO8601 */; - targetProxy = A162F62BEE1492CF1BB6A2BE /* PBXContainerItemProxy */; - }; - 5E6E70FCD4CD3DEF152EA484 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Pods-SwaggerClient_Example-AFNetworking"; - target = 58684BF8E23BF0837CADD868 /* Pods-SwaggerClient_Example-AFNetworking */; - targetProxy = 35DEFA078ABE7B02680F7475 /* PBXContainerItemProxy */; - }; - 6300704AD4301AF8D7350451 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Pods-SwaggerClient_Tests-JSONModel"; - target = BBD665C31D4B21357533473D /* Pods-SwaggerClient_Tests-JSONModel */; - targetProxy = 65A8E4E62B9816273B466AA8 /* PBXContainerItemProxy */; - }; - 6FC0DE2C745B1889560F6372 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Pods-SwaggerClient_Example-SwaggerClient"; - target = F41FA180E243133D32149CC3 /* Pods-SwaggerClient_Example-SwaggerClient */; - targetProxy = B3F82AC3BCEB16AD74AA3091 /* PBXContainerItemProxy */; - }; - 7E019665346D67BA59BD3582 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Pods-SwaggerClient_Tests-Expecta"; - target = C215F478D13D9D22D8E1EF48 /* Pods-SwaggerClient_Tests-Expecta */; - targetProxy = 3E167B43249502B18F5351AC /* PBXContainerItemProxy */; - }; - 8BD39B4AC51572C84586390B /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Pods-SwaggerClient_Tests-Specta"; - target = 5D6776B420CF321A265D866F /* Pods-SwaggerClient_Tests-Specta */; - targetProxy = 888799CCFD2AB4A92A9B4A4D /* PBXContainerItemProxy */; - }; - B158D90617991ACE7FF89C92 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Pods-SwaggerClient_Example-ISO8601"; - target = EC89492AC5A2DC4B6E6BC599 /* Pods-SwaggerClient_Example-ISO8601 */; - targetProxy = EF00F23BFB412FB1141D43C5 /* PBXContainerItemProxy */; - }; - B6FBD2C5C6EF1DBE5A3B8C0E /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Pods-SwaggerClient_Tests-AFNetworking"; - target = DDC8A358588D2A3B692812B1 /* Pods-SwaggerClient_Tests-AFNetworking */; - targetProxy = BDC82344596574309B6BB2A3 /* PBXContainerItemProxy */; - }; - BFFCF1DD85CC0EBDD4A15E6F /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Pods-SwaggerClient_Example-AFNetworking"; - target = 58684BF8E23BF0837CADD868 /* Pods-SwaggerClient_Example-AFNetworking */; - targetProxy = F8D1ACE4B4B9D16C36898171 /* PBXContainerItemProxy */; - }; - E5E1ECE1FCFCE7D924A5661D /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Pods-SwaggerClient_Example-JSONModel"; - target = 4B19C784C3E2E4F174682EE7 /* Pods-SwaggerClient_Example-JSONModel */; - targetProxy = C683E7A210CF97EA075DB68C /* PBXContainerItemProxy */; - }; - EC423479E5CD171647C2D9BE /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Pods-SwaggerClient_Tests-SwaggerClient-SwaggerClient"; - target = 0302FEB4C8D5554EBF417C18 /* Pods-SwaggerClient_Tests-SwaggerClient-SwaggerClient */; - targetProxy = E244661BA566E81A5E0825C1 /* PBXContainerItemProxy */; - }; - F5D78FECB621781EB73E6197 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Pods-SwaggerClient_Example-JSONModel"; - target = 4B19C784C3E2E4F174682EE7 /* Pods-SwaggerClient_Example-JSONModel */; - targetProxy = F965A0DD3DF9CB139F6943BB /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - 14C70FE0F9248716EE11B2CF /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = YES; - ENABLE_NS_ASSERTIONS = NO; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_PREPROCESSOR_DEFINITIONS = "RELEASE=1"; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - STRIP_INSTALLED_PRODUCT = NO; - SYMROOT = "${SRCROOT}/../build"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 2D9DCA05584D9947769124F1 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 31E351B8D77A0BDD27675BDB /* Pods-SwaggerClient_Example-SwaggerClient-Private.xcconfig */; - buildSettings = { - CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-SwaggerClient_Example"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - PRODUCT_NAME = SwaggerClient; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - WRAPPER_EXTENSION = bundle; - }; - name = Release; - }; - 30FCF9AEE90EB01477EEDD21 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 1964DA329721A95476AFBC20 /* Pods-SwaggerClient_Tests-SwaggerClient-Private.xcconfig */; - buildSettings = { - CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-SwaggerClient_Tests"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - PRODUCT_NAME = SwaggerClient; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - WRAPPER_EXTENSION = bundle; - }; - name = Debug; - }; - 3C4D84B09966C1EBB9326178 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = D55054535D9C7D3FBA58D617 /* Pods-SwaggerClient_Example-JSONModel-Private.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/Pods-SwaggerClient_Example-JSONModel/Pods-SwaggerClient_Example-JSONModel-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Example-JSONModel/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Example-JSONModel/Pods-SwaggerClient_Example-JSONModel.modulemap"; - MTL_ENABLE_DEBUG_INFO = YES; - PRODUCT_NAME = JSONModel; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 3D5D5F3CF6A8D4D00622A305 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 1964DA329721A95476AFBC20 /* Pods-SwaggerClient_Tests-SwaggerClient-Private.xcconfig */; - buildSettings = { - CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-SwaggerClient_Tests"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - PRODUCT_NAME = SwaggerClient; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - WRAPPER_EXTENSION = bundle; - }; - name = Release; - }; - 3FC10A6D6960BC43BB20B853 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 1964DA329721A95476AFBC20 /* Pods-SwaggerClient_Tests-SwaggerClient-Private.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient.modulemap"; - MTL_ENABLE_DEBUG_INFO = NO; - PRODUCT_NAME = SwaggerClient; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 49924A43BE9497F916594933 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = D55054535D9C7D3FBA58D617 /* Pods-SwaggerClient_Example-JSONModel-Private.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/Pods-SwaggerClient_Example-JSONModel/Pods-SwaggerClient_Example-JSONModel-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Example-JSONModel/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Example-JSONModel/Pods-SwaggerClient_Example-JSONModel.modulemap"; - MTL_ENABLE_DEBUG_INFO = NO; - PRODUCT_NAME = JSONModel; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 4C2807B49537D196CE169CC2 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = A61413AE7365BA6BD1EC261F /* Pods-SwaggerClient_Tests.release.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Tests/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests.modulemap"; - MTL_ENABLE_DEBUG_INFO = NO; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PODS_ROOT = "$(SRCROOT)"; - PRODUCT_NAME = Pods_SwaggerClient_Tests; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 5929DBB10E29005DC83A3346 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FE51F374F374508653EA274C /* Pods-SwaggerClient_Tests-Specta-Private.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/Pods-SwaggerClient_Tests-Specta/Pods-SwaggerClient_Tests-Specta-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Tests-Specta/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Tests-Specta/Pods-SwaggerClient_Tests-Specta.modulemap"; - MTL_ENABLE_DEBUG_INFO = YES; - PRODUCT_NAME = Specta; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 6037561365806EA7912120B7 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = A3519105B4EF41F55126082D /* Pods-SwaggerClient_Example-AFNetworking-Private.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Pods-SwaggerClient_Example-AFNetworking-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Pods-SwaggerClient_Example-AFNetworking.modulemap"; - MTL_ENABLE_DEBUG_INFO = YES; - PRODUCT_NAME = AFNetworking; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 6491E34213FA00ABA3EC3414 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - ONLY_ACTIVE_ARCH = YES; - STRIP_INSTALLED_PRODUCT = NO; - SYMROOT = "${SRCROOT}/../build"; - }; - name = Debug; - }; - 813A284274843355078ABEFF /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 4CC80CC87AB4F795DC536F6B /* Pods-SwaggerClient_Tests-ISO8601-Private.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601.modulemap"; - MTL_ENABLE_DEBUG_INFO = YES; - PRODUCT_NAME = ISO8601; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 837088993F8D419A5048972B /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 31E351B8D77A0BDD27675BDB /* Pods-SwaggerClient_Example-SwaggerClient-Private.xcconfig */; - buildSettings = { - CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-SwaggerClient_Example"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - PRODUCT_NAME = SwaggerClient; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - WRAPPER_EXTENSION = bundle; - }; - name = Debug; - }; - 89426D48F1A5F252BA31BC19 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = AD2CE5220770BB6313C830B7 /* Pods-SwaggerClient_Tests-AFNetworking-Private.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking.modulemap"; - MTL_ENABLE_DEBUG_INFO = NO; - PRODUCT_NAME = AFNetworking; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 8D9F50000A71314C8478F819 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 31E351B8D77A0BDD27675BDB /* Pods-SwaggerClient_Example-SwaggerClient-Private.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Pods-SwaggerClient_Example-SwaggerClient-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Pods-SwaggerClient_Example-SwaggerClient.modulemap"; - MTL_ENABLE_DEBUG_INFO = NO; - PRODUCT_NAME = SwaggerClient; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 8F3972E289E9835DAB0BA58A /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FE51F374F374508653EA274C /* Pods-SwaggerClient_Tests-Specta-Private.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/Pods-SwaggerClient_Tests-Specta/Pods-SwaggerClient_Tests-Specta-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Tests-Specta/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Tests-Specta/Pods-SwaggerClient_Tests-Specta.modulemap"; - MTL_ENABLE_DEBUG_INFO = NO; - PRODUCT_NAME = Specta; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 99980674672C271843AEBE7D /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 1284C207920C60CCFF057D06 /* Pods-SwaggerClient_Example.debug.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Example/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example.modulemap"; - MTL_ENABLE_DEBUG_INFO = YES; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PODS_ROOT = "$(SRCROOT)"; - PRODUCT_NAME = Pods_SwaggerClient_Example; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 9EA376E3284FF916BB73C6C8 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7A66B4F9A973BBBA0D4AF2D7 /* Pods-SwaggerClient_Tests-JSONModel-Private.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel.modulemap"; - MTL_ENABLE_DEBUG_INFO = NO; - PRODUCT_NAME = JSONModel; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - A1ABD38F7BB787A7BB54FC0E /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 1964DA329721A95476AFBC20 /* Pods-SwaggerClient_Tests-SwaggerClient-Private.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient.modulemap"; - MTL_ENABLE_DEBUG_INFO = YES; - PRODUCT_NAME = SwaggerClient; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - A3EF19A924851BE6C96D5843 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = A3519105B4EF41F55126082D /* Pods-SwaggerClient_Example-AFNetworking-Private.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Pods-SwaggerClient_Example-AFNetworking-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Pods-SwaggerClient_Example-AFNetworking.modulemap"; - MTL_ENABLE_DEBUG_INFO = NO; - PRODUCT_NAME = AFNetworking; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - BDC2F51048C85553B9DC912C /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 1186977B42F8F3FC21D1A7B9 /* Pods-SwaggerClient_Example.release.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Example/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example.modulemap"; - MTL_ENABLE_DEBUG_INFO = NO; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PODS_ROOT = "$(SRCROOT)"; - PRODUCT_NAME = Pods_SwaggerClient_Example; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - BDECEB1160D6F35C0C30B5CB /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 261CD7AA6DF0D6C7C0EBD146 /* Pods-SwaggerClient_Example-ISO8601-Private.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/Pods-SwaggerClient_Example-ISO8601/Pods-SwaggerClient_Example-ISO8601-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Example-ISO8601/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Example-ISO8601/Pods-SwaggerClient_Example-ISO8601.modulemap"; - MTL_ENABLE_DEBUG_INFO = NO; - PRODUCT_NAME = ISO8601; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - C13AFB5C5EFEEE7E88711C71 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 31E351B8D77A0BDD27675BDB /* Pods-SwaggerClient_Example-SwaggerClient-Private.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Pods-SwaggerClient_Example-SwaggerClient-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Pods-SwaggerClient_Example-SwaggerClient.modulemap"; - MTL_ENABLE_DEBUG_INFO = YES; - PRODUCT_NAME = SwaggerClient; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - D6EDCE1A62BC8AC3F7F38CFF /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 4CC80CC87AB4F795DC536F6B /* Pods-SwaggerClient_Tests-ISO8601-Private.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601.modulemap"; - MTL_ENABLE_DEBUG_INFO = NO; - PRODUCT_NAME = ISO8601; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - DDAB6F28ED3DCC0EF938E4CC /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = AD2CE5220770BB6313C830B7 /* Pods-SwaggerClient_Tests-AFNetworking-Private.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking.modulemap"; - MTL_ENABLE_DEBUG_INFO = YES; - PRODUCT_NAME = AFNetworking; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - E0D8A215A8D61E60A12A1BFF /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = EE23659824CABE7F3388FE27 /* Pods-SwaggerClient_Tests-Expecta-Private.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/Pods-SwaggerClient_Tests-Expecta/Pods-SwaggerClient_Tests-Expecta-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Tests-Expecta/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Tests-Expecta/Pods-SwaggerClient_Tests-Expecta.modulemap"; - MTL_ENABLE_DEBUG_INFO = NO; - PRODUCT_NAME = Expecta; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - E8E4045C9D79BC1F23331F37 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = EE23659824CABE7F3388FE27 /* Pods-SwaggerClient_Tests-Expecta-Private.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/Pods-SwaggerClient_Tests-Expecta/Pods-SwaggerClient_Tests-Expecta-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Tests-Expecta/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Tests-Expecta/Pods-SwaggerClient_Tests-Expecta.modulemap"; - MTL_ENABLE_DEBUG_INFO = YES; - PRODUCT_NAME = Expecta; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - F6419E521DC6907A23B44A37 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 9771D508607ABB6410B0BF9F /* Pods-SwaggerClient_Tests.debug.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Tests/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests.modulemap"; - MTL_ENABLE_DEBUG_INFO = YES; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PODS_ROOT = "$(SRCROOT)"; - PRODUCT_NAME = Pods_SwaggerClient_Tests; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - F71480DA210FC6DFCC099C62 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 261CD7AA6DF0D6C7C0EBD146 /* Pods-SwaggerClient_Example-ISO8601-Private.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/Pods-SwaggerClient_Example-ISO8601/Pods-SwaggerClient_Example-ISO8601-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Example-ISO8601/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Example-ISO8601/Pods-SwaggerClient_Example-ISO8601.modulemap"; - MTL_ENABLE_DEBUG_INFO = YES; - PRODUCT_NAME = ISO8601; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - F970345CB4D7E00494DA2170 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7A66B4F9A973BBBA0D4AF2D7 /* Pods-SwaggerClient_Tests-JSONModel-Private.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel.modulemap"; - MTL_ENABLE_DEBUG_INFO = YES; - PRODUCT_NAME = JSONModel; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 0CA4D8762B52D96C8C564237 /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Example-AFNetworking" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 6037561365806EA7912120B7 /* Debug */, - A3EF19A924851BE6C96D5843 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 0CF9A436B18EF00915610CA8 /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Tests-SwaggerClient" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - A1ABD38F7BB787A7BB54FC0E /* Debug */, - 3FC10A6D6960BC43BB20B853 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 24A540001943BDE4C634EC51 /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Tests-Specta" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 5929DBB10E29005DC83A3346 /* Debug */, - 8F3972E289E9835DAB0BA58A /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 351BAE8D5BC62A097309ADC9 /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Tests-SwaggerClient-SwaggerClient" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 30FCF9AEE90EB01477EEDD21 /* Debug */, - 3D5D5F3CF6A8D4D00622A305 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 3D7EC3A64D24B9B21CAB0CB0 /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Example" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 99980674672C271843AEBE7D /* Debug */, - BDC2F51048C85553B9DC912C /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 440F2EB40823B7BE6C0366BF /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Tests-ISO8601" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 813A284274843355078ABEFF /* Debug */, - D6EDCE1A62BC8AC3F7F38CFF /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 45EDD505E7F0B8B9474DB404 /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Tests-AFNetworking" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - DDAB6F28ED3DCC0EF938E4CC /* Debug */, - 89426D48F1A5F252BA31BC19 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 6083D3A92D58EC4F28AE1B83 /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Example-SwaggerClient-SwaggerClient" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 837088993F8D419A5048972B /* Debug */, - 2D9DCA05584D9947769124F1 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 85CDE45473383342737F8E25 /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Example-JSONModel" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 3C4D84B09966C1EBB9326178 /* Debug */, - 49924A43BE9497F916594933 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 8F5905F41630018F867BF0DD /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Tests-JSONModel" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - F970345CB4D7E00494DA2170 /* Debug */, - 9EA376E3284FF916BB73C6C8 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 99E24E8C0F51BD67AFA23E56 /* Build configuration list for PBXProject "Pods" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 6491E34213FA00ABA3EC3414 /* Debug */, - 14C70FE0F9248716EE11B2CF /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - B99147797FD26A68689C683E /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Example-SwaggerClient" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - C13AFB5C5EFEEE7E88711C71 /* Debug */, - 8D9F50000A71314C8478F819 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - CE9D2C2EB73F81484282144B /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Tests-Expecta" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - E8E4045C9D79BC1F23331F37 /* Debug */, - E0D8A215A8D61E60A12A1BFF /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - D30DD5D7DFF977FDA7B6BEF1 /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Tests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - F6419E521DC6907A23B44A37 /* Debug */, - 4C2807B49537D196CE169CC2 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - D60F77FE8CF69D3A0CE90DB1 /* Build configuration list for PBXNativeTarget "Pods-SwaggerClient_Example-ISO8601" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - F71480DA210FC6DFCC099C62 /* Debug */, - BDECEB1160D6F35C0C30B5CB /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 2773EB90C58135F3C1FC4A1B /* Project object */; -} diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Example-AFNetworking.xcscheme b/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Example-AFNetworking.xcscheme deleted file mode 100644 index a91c8dbe5a6..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Example-AFNetworking.xcscheme +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Example-ISO8601.xcscheme b/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Example-ISO8601.xcscheme deleted file mode 100644 index ce67afc33a6..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Example-ISO8601.xcscheme +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Example-JSONModel.xcscheme b/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Example-JSONModel.xcscheme deleted file mode 100644 index ac951f5cd52..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Example-JSONModel.xcscheme +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Example-SwaggerClient-SwaggerClient.xcscheme b/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Example-SwaggerClient-SwaggerClient.xcscheme deleted file mode 100644 index f605c7dd48e..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Example-SwaggerClient-SwaggerClient.xcscheme +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Example-SwaggerClient.xcscheme b/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Example-SwaggerClient.xcscheme deleted file mode 100644 index 98577a45b4b..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Example-SwaggerClient.xcscheme +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Example.xcscheme b/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Example.xcscheme deleted file mode 100644 index c7fe2b95938..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Example.xcscheme +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests-AFNetworking.xcscheme b/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests-AFNetworking.xcscheme deleted file mode 100644 index 02301b1756c..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests-AFNetworking.xcscheme +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests-Expecta.xcscheme b/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests-Expecta.xcscheme deleted file mode 100644 index 1ce43043397..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests-Expecta.xcscheme +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests-ISO8601.xcscheme b/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests-ISO8601.xcscheme deleted file mode 100644 index 988d2641665..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests-ISO8601.xcscheme +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests-JSONModel.xcscheme b/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests-JSONModel.xcscheme deleted file mode 100644 index 19eafa3c13f..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests-JSONModel.xcscheme +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests-Specta.xcscheme b/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests-Specta.xcscheme deleted file mode 100644 index deb7ff17324..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests-Specta.xcscheme +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests-SwaggerClient-SwaggerClient.xcscheme b/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests-SwaggerClient-SwaggerClient.xcscheme deleted file mode 100644 index ab0552ad3e4..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests-SwaggerClient-SwaggerClient.xcscheme +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests-SwaggerClient.xcscheme b/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests-SwaggerClient.xcscheme deleted file mode 100644 index 81e7708f6eb..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests-SwaggerClient.xcscheme +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests.xcscheme b/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests.xcscheme deleted file mode 100644 index 18a5bbb7e5f..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/Pods-SwaggerClient_Tests.xcscheme +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/xcschememanagement.plist b/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/xcschememanagement.plist deleted file mode 100644 index a8522689c17..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata/geekerzp.xcuserdatad/xcschemes/xcschememanagement.plist +++ /dev/null @@ -1,152 +0,0 @@ - - - - - SchemeUserState - - Pods-SwaggerClient_Example-AFNetworking.xcscheme - - isShown - - - Pods-SwaggerClient_Example-ISO8601.xcscheme - - isShown - - - Pods-SwaggerClient_Example-JSONModel.xcscheme - - isShown - - - Pods-SwaggerClient_Example-SwaggerClient-SwaggerClient.xcscheme - - isShown - - - Pods-SwaggerClient_Example-SwaggerClient.xcscheme - - isShown - - - Pods-SwaggerClient_Example.xcscheme - - isShown - - - Pods-SwaggerClient_Tests-AFNetworking.xcscheme - - isShown - - - Pods-SwaggerClient_Tests-Expecta.xcscheme - - isShown - - - Pods-SwaggerClient_Tests-ISO8601.xcscheme - - isShown - - - Pods-SwaggerClient_Tests-JSONModel.xcscheme - - isShown - - - Pods-SwaggerClient_Tests-Specta.xcscheme - - isShown - - - Pods-SwaggerClient_Tests-SwaggerClient-SwaggerClient.xcscheme - - isShown - - - Pods-SwaggerClient_Tests-SwaggerClient.xcscheme - - isShown - - - Pods-SwaggerClient_Tests.xcscheme - - isShown - - - - SuppressBuildableAutocreation - - 0302FEB4C8D5554EBF417C18 - - primary - - - 3D847D51CC40CEBA17C36758 - - primary - - - 4B19C784C3E2E4F174682EE7 - - primary - - - 58684BF8E23BF0837CADD868 - - primary - - - 586988C23CE1F40608512406 - - primary - - - 5D6776B420CF321A265D866F - - primary - - - 7DCA9F990FC46BE1EFE6E984 - - primary - - - 9A7195F471543DF0C0847DF5 - - primary - - - AF87B186D8CCE5424F3A8D43 - - primary - - - BBD665C31D4B21357533473D - - primary - - - C215F478D13D9D22D8E1EF48 - - primary - - - DDC8A358588D2A3B692812B1 - - primary - - - EC89492AC5A2DC4B6E6BC599 - - primary - - - F41FA180E243133D32149CC3 - - primary - - - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/LICENSE b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/LICENSE deleted file mode 100644 index ca257c03c5a..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2012-2014 Specta Team. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/README.md b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/README.md deleted file mode 100644 index f453a2eb6e6..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# Specta - -A light-weight TDD / BDD framework for Objective-C. - -### Status -[![Build Status](https://travis-ci.org/specta/specta.png)](https://travis-ci.org/specta/specta) -[![Coverage Status](https://coveralls.io/repos/specta/specta/badge.svg)](https://coveralls.io/r/specta/specta) - -## FEATURES - -* An Objective-C RSpec-like BDD DSL -* Quick and easy set up -* Built on top of XCTest -* Excellent Xcode integration - -## SCREENSHOT - -![Specta Screenshot](https://raw.githubusercontent.com/specta/specta/master/misc/specta_screenshot.jpg) - -## SETUP - -Use [CocoaPods](http://github.com/CocoaPods/CocoaPods), [Carthage](https://github.com/carthage/carthage) or [Set up manually](#setting-up-manually) - -### CocoaPods - -1. Add Specta to your project's `Podfile`: - - ```ruby - target :MyApp do - # your app dependencies - end - - target :MyAppTests do - pod 'Specta', '~> 0.5' - # pod 'Expecta', '~> 0.3' # expecta matchers - # pod 'OCMock', '~> 2.2' # OCMock - # pod 'OCHamcrest', '~> 3.0' # hamcrest matchers - # pod 'OCMockito', '~> 1.0' # OCMock - # pod 'LRMocky', '~> 0.9' # LRMocky - end - ``` - -2. Run `pod update` or `pod install` in your project directory. - -### Carthage - -1. Add Specta to your project's `Cartfile.private` - - ``` - github "specta/specta" ~> 0.5 - ``` - -2. Run `carthage update` in your project directory -3. Drag the appropriate `Specta.framework` for your platform (located in Carthage/Build/) into your application’s Xcode project, and add it to your test target(s). -4. If you are building for iOS, a new `Run Script Phase` must be added to copy the framework. The instructions can be found on [Carthage's getting started instructions](https://github.com/carthage/carthage#getting-started) - -### SETTING UP MANUALLY - -1. Clone from Github. -2. Run `rake` in project root to build. -3. Add a "Cocoa/Cocoa Touch Unit Testing Bundle" target if you don't already have one. -4. Copy and add all header files in `Products` folder to the Test target in your Xcode project. -5. For **OS X projects**, copy and add `Specta.framework` in `Products/osx` folder to the test target in your Xcode project. - For **iOS projects**, copy and add `Specta.framework` in `Products/ios` folder to the test target in your Xcode project. - You can alternatively use `libSpecta.a`, if you prefer to add it as a static library for your project. (iOS 7 and below require this) -6. Add `-ObjC` and `-all_load` to the "Other Linker Flags" build setting for the test target in your Xcode project. -7. If you encounter linking issues with `_llvm_*` symbols, ensure your target's "Generate Test Coverage Files" and "Instrument Program Flow" build settings are set to `Yes`. - -## EXAMPLE - -```objective-c -#import // #import "Specta.h" if you're using libSpecta.a - -SharedExamplesBegin(MySharedExamples) -// Global shared examples are shared across all spec files. - -sharedExamplesFor(@"foo", ^(NSDictionary *data) { - __block id bar = nil; - beforeEach(^{ - bar = data[@"bar"]; - }); - it(@"should not be nil", ^{ - XCTAssertNotNil(bar); - }); -}); - -SharedExamplesEnd - -SpecBegin(Thing) - -describe(@"Thing", ^{ - sharedExamplesFor(@"another shared behavior", ^(NSDictionary *data) { - // Locally defined shared examples can override global shared examples within its scope. - }); - - beforeAll(^{ - // This is run once and only once before all of the examples - // in this group and before any beforeEach blocks. - }); - - beforeEach(^{ - // This is run before each example. - }); - - it(@"should do stuff", ^{ - // This is an example block. Place your assertions here. - }); - - it(@"should do some stuff asynchronously", ^{ - waitUntil(^(DoneCallback done) { - // Async example blocks need to invoke done() callback. - done(); - }); - }); - - itShouldBehaveLike(@"a shared behavior", @{@"key" : @"obj"}); - - itShouldBehaveLike(@"another shared behavior", ^{ - // Use a block that returns a dictionary if you need the context to be evaluated lazily, - // e.g. to use an object prepared in a beforeEach block. - return @{@"key" : @"obj"}; - }); - - describe(@"Nested examples", ^{ - it(@"should do even more stuff", ^{ - // ... - }); - }); - - pending(@"pending example"); - - pending(@"another pending example", ^{ - // ... - }); - - afterEach(^{ - // This is run after each example. - }); - - afterAll(^{ - // This is run once and only once after all of the examples - // in this group and after any afterEach blocks. - }); -}); - -SpecEnd -``` - -* `beforeEach` and `afterEach` are also aliased as `before` and `after` respectively. -* `describe` is also aliased as `context`. -* `it` is also aliased as `example` and `specify`. -* `itShouldBehaveLike` is also aliased as `itBehavesLike`. -* Use `pending` or prepend `x` to `describe`, `context`, `example`, `it`, and `specify` to mark examples or groups as pending. -* Use `^(DoneCallback done)` as shown in the example above to make examples wait for completion. `done()` callback needs to be invoked to let Specta know that your test is complete. The default timeout is 10.0 seconds but this can be changed by calling the function `setAsyncSpecTimeout(NSTimeInterval timeout)`. -* `(before|after)(Each/All)` also accept `^(DoneCallback done)`s. -* Do `#define SPT_CEDAR_SYNTAX` before importing Specta if you prefer to write `SPEC_BEGIN` and `SPEC_END` instead of `SpecBegin` and `SpecEnd`. -* Prepend `f` to your `describe`, `context`, `example`, `it`, and `specify` to set focus on examples or groups. When specs are focused, all unfocused specs are skipped. -* To use original XCTest reporter, set an environment variable named `SPECTA_REPORTER_CLASS` to `SPTXCTestReporter` in your test scheme. -* Set an environment variable `SPECTA_NO_SHUFFLE` with value `1` to disable test shuffling. -* Set an environment variable `SPECTA_SEED` to specify the random seed for test shuffling. - -Standard XCTest matchers such as `XCTAssertEqualObjects` and `XCTAssertNil` work, but you probably want to add a nicer matcher framework - [Expecta](http://github.com/specta/expecta/) to your setup. Or if you really prefer, [OCHamcrest](https://github.com/jonreid/OCHamcrest) works fine too. Also, add a mocking framework: [OCMock](http://ocmock.org/). - -## RUNNING TESTS IN COMMAND LINE - -* Run `rake test` in the cloned folder. - -## CONTRIBUTION GUIDELINES - -* Please use only spaces and indent 2 spaces at a time. -* Please prefix instance variable names with a single underscore (`_`). -* Please prefix custom classes and functions defined in the global scope with `SPT`. - -## LICENSE - -Copyright (c) 2012-2015 [Specta Team](https://github.com/specta?tab=members). This software is licensed under the [MIT License](http://github.com/specta/specta/raw/master/LICENSE). diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTCallSite.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTCallSite.h deleted file mode 100644 index adcd3b0a130..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTCallSite.h +++ /dev/null @@ -1,12 +0,0 @@ -#import - -@interface SPTCallSite : NSObject - -@property (nonatomic, copy, readonly) NSString *file; -@property (nonatomic, readonly) NSUInteger line; - -+ (instancetype)callSiteWithFile:(NSString *)file line:(NSUInteger)line; - -- (instancetype)initWithFile:(NSString *)file line:(NSUInteger)line; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTCallSite.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTCallSite.m deleted file mode 100644 index 585cecd1316..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTCallSite.m +++ /dev/null @@ -1,18 +0,0 @@ -#import "SPTCallSite.h" - -@implementation SPTCallSite - -+ (instancetype)callSiteWithFile:(NSString *)file line:(NSUInteger)line { - return [[self alloc] initWithFile:file line:line]; -} - -- (instancetype)initWithFile:(NSString *)file line:(NSUInteger)line { - self = [super init]; - if (self) { - _file = file; - _line = line; - } - return self; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTCompiledExample.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTCompiledExample.h deleted file mode 100644 index adb3aaa4331..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTCompiledExample.h +++ /dev/null @@ -1,17 +0,0 @@ -#import -#import "SpectaTypes.h" - -@interface SPTCompiledExample : NSObject - -@property (nonatomic, copy) NSString *name; -@property (nonatomic, copy) NSString *testCaseName; -@property (nonatomic, copy) SPTSpecBlock block; - -@property (nonatomic) BOOL pending; -@property (nonatomic, getter=isFocused) BOOL focused; - -@property (nonatomic) SEL testMethodSelector; - -- (id)initWithName:(NSString *)name testCaseName:(NSString *)testCaseName block:(SPTSpecBlock)block pending:(BOOL)pending focused:(BOOL)focused; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTCompiledExample.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTCompiledExample.m deleted file mode 100644 index e7621655b98..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTCompiledExample.m +++ /dev/null @@ -1,17 +0,0 @@ -#import "SPTCompiledExample.h" - -@implementation SPTCompiledExample - -- (id)initWithName:(NSString *)name testCaseName:(NSString *)testCaseName block:(SPTSpecBlock)block pending:(BOOL)pending focused:(BOOL)focused { - self = [super init]; - if (self) { - self.name = name; - self.testCaseName = testCaseName; - self.block = block; - self.pending = pending; - self.focused = focused; - } - return self; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTExample.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTExample.h deleted file mode 100644 index 849aacbccc8..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTExample.h +++ /dev/null @@ -1,17 +0,0 @@ -#import -#import "SpectaTypes.h" - -@class SPTCallSite; - -@interface SPTExample : NSObject - -@property (nonatomic, copy) NSString *name; -@property (nonatomic, retain) SPTCallSite *callSite; -@property (nonatomic, copy) SPTVoidBlock block; - -@property (nonatomic) BOOL pending; -@property (nonatomic, getter=isFocused) BOOL focused; - -- (id)initWithName:(NSString *)name callSite:(SPTCallSite *)callSite focused:(BOOL)focused block:(SPTVoidBlock)block; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTExample.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTExample.m deleted file mode 100644 index e5905a9d874..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTExample.m +++ /dev/null @@ -1,17 +0,0 @@ -#import "SPTExample.h" - -@implementation SPTExample - -- (id)initWithName:(NSString *)name callSite:(SPTCallSite *)callSite focused:(BOOL)focused block:(SPTVoidBlock)block { - self = [super init]; - if (self) { - self.name = name; - self.callSite = callSite; - self.block = block; - self.focused = focused; - self.pending = block == nil; - } - return self; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTExampleGroup.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTExampleGroup.h deleted file mode 100644 index f3d0060b55e..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTExampleGroup.h +++ /dev/null @@ -1,36 +0,0 @@ -#import -#import -#import "SpectaTypes.h" - -@class SPTExample; -@class SPTCallSite; - -@interface SPTExampleGroup : NSObject - -@property (nonatomic, copy) NSString *name; -@property (nonatomic, strong) SPTExampleGroup *root; -@property (nonatomic, strong) SPTExampleGroup *parent; -@property (nonatomic, strong) NSMutableArray *children; -@property (nonatomic, strong) NSMutableArray *beforeAllArray; -@property (nonatomic, strong) NSMutableArray *afterAllArray; -@property (nonatomic, strong) NSMutableArray *beforeEachArray; -@property (nonatomic, strong) NSMutableArray *afterEachArray; -@property (nonatomic, strong) NSMutableDictionary *sharedExamples; -@property (nonatomic) unsigned int exampleCount; -@property (nonatomic) unsigned int ranExampleCount; -@property (nonatomic) unsigned int pendingExampleCount; -@property (nonatomic, getter=isFocused) BOOL focused; - -- (id)initWithName:(NSString *)name parent:(SPTExampleGroup *)parent root:(SPTExampleGroup *)root; - -- (SPTExampleGroup *)addExampleGroupWithName:(NSString *)name focused:(BOOL)focused; -- (SPTExample *)addExampleWithName:(NSString *)name callSite:(SPTCallSite *)callSite focused:(BOOL)focused block:(SPTVoidBlock)block; - -- (void)addBeforeAllBlock:(SPTVoidBlock)block; -- (void)addAfterAllBlock:(SPTVoidBlock)block; -- (void)addBeforeEachBlock:(SPTVoidBlock)block; -- (void)addAfterEachBlock:(SPTVoidBlock)block; - -- (NSArray *)compileExamplesWithStack:(NSArray *)stack; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTExampleGroup.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTExampleGroup.m deleted file mode 100644 index cf518004f5e..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTExampleGroup.m +++ /dev/null @@ -1,335 +0,0 @@ -#import "SPTExampleGroup.h" -#import "SPTExample.h" -#import "SPTCompiledExample.h" -#import "SPTSpec.h" -#import "SpectaUtility.h" -#import "XCTest+Private.h" -#import "SPTGlobalBeforeAfterEach.h" -#import -#import - -static NSArray *ClassesWithClassMethod(SEL classMethodSelector) { - NSMutableArray *classesWithClassMethod = [[NSMutableArray alloc] init]; - - int numberOfClasses = objc_getClassList(NULL, 0); - if (numberOfClasses > 0) { - Class *classes = (Class *)malloc(sizeof(Class) *numberOfClasses); - numberOfClasses = objc_getClassList(classes, numberOfClasses); - - for(int classIndex = 0; classIndex < numberOfClasses; classIndex++) { - Class aClass = classes[classIndex]; - - if (class_conformsToProtocol(aClass, @protocol(SPTGlobalBeforeAfterEach))) { - Method globalMethod = class_getClassMethod(aClass, classMethodSelector); - if (globalMethod) { - [classesWithClassMethod addObject:aClass]; - } - } - } - - free(classes); - } - - return classesWithClassMethod; -} - -static void runExampleBlock(void (^block)(), NSString *name) { - if (!SPTIsBlock(block)) { - return; - } - - ((SPTVoidBlock)block)(); -} - -typedef NS_ENUM(NSInteger, SPTExampleGroupOrder) { - SPTExampleGroupOrderOutermostFirst = 1, - SPTExampleGroupOrderInnermostFirst -}; - -@interface SPTExampleGroup () - -- (void)incrementExampleCount; -- (void)incrementPendingExampleCount; -- (void)resetRanExampleCountIfNeeded; -- (void)incrementRanExampleCount; -- (void)runBeforeHooks:(NSString *)compiledName; -- (void)runBeforeAllHooks:(NSString *)compiledName; -- (void)runBeforeEachHooks:(NSString *)compiledName; -- (void)runAfterHooks:(NSString *)compiledName; -- (void)runAfterEachHooks:(NSString *)compiledName; -- (void)runAfterAllHooks:(NSString *)compiledName; - -@end - -@implementation SPTExampleGroup - -- (id)init { - self = [super init]; - if (self) { - self.name = nil; - self.root = nil; - self.parent = nil; - self.children = [NSMutableArray array]; - self.beforeAllArray = [NSMutableArray array]; - self.afterAllArray = [NSMutableArray array]; - self.beforeEachArray = [NSMutableArray array]; - self.afterEachArray = [NSMutableArray array]; - self.sharedExamples = [NSMutableDictionary dictionary]; - self.exampleCount = 0; - self.pendingExampleCount = 0; - self.ranExampleCount = 0; - } - return self; -} - -- (id)initWithName:(NSString *)name parent:(SPTExampleGroup *)parent root:(SPTExampleGroup *)root { - self = [self init]; - if (self) { - self.name = name; - self.parent = parent; - self.root = root; - } - return self; -} - -- (SPTExampleGroup *)addExampleGroupWithName:(NSString *)name focused:(BOOL)focused { - SPTExampleGroup *group = [[SPTExampleGroup alloc] initWithName:name parent:self root:self.root]; - group.focused = focused; - [self.children addObject:group]; - return group; -} - -- (SPTExample *)addExampleWithName:(NSString *)name callSite:(SPTCallSite *)callSite focused:(BOOL)focused block:(SPTVoidBlock)block { - SPTExample *example; - @synchronized(self) { - example = [[SPTExample alloc] initWithName:name callSite:callSite focused:focused block:block]; - [self.children addObject:example]; - - [self incrementExampleCount]; - if (example.pending) { - [self incrementPendingExampleCount]; - } - } - return example; -} - -- (void)incrementExampleCount { - SPTExampleGroup *group = self; - while (group != nil) { - group.exampleCount ++; - group = group.parent; - } -} - -- (void)incrementPendingExampleCount { - SPTExampleGroup *group = self; - while (group != nil) { - group.pendingExampleCount ++; - group = group.parent; - } -} - -- (void)resetRanExampleCountIfNeeded { - SPTExampleGroup *group = self; - while (group != nil) { - if (group.ranExampleCount >= group.exampleCount) { - group.ranExampleCount = 0; - } - group = group.parent; - } -} - -- (void)incrementRanExampleCount { - SPTExampleGroup *group = self; - while (group != nil) { - group.ranExampleCount ++; - group = group.parent; - } -} - -- (void)addBeforeAllBlock:(SPTVoidBlock)block { - if (!block) return; - [self.beforeAllArray addObject:[block copy]]; -} - -- (void)addAfterAllBlock:(SPTVoidBlock)block { - if (!block) return; - [self.afterAllArray addObject:[block copy]]; -} - -- (void)addBeforeEachBlock:(SPTVoidBlock)block { - if (!block) return; - [self.beforeEachArray addObject:[block copy]]; -} - -- (void)addAfterEachBlock:(SPTVoidBlock)block { - if (!block) return; - [self.afterEachArray addObject:[block copy]]; -} - -- (void)runGlobalBeforeEachHooks:(NSString *)compiledName { - static NSArray *globalBeforeEachClasses; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - globalBeforeEachClasses = ClassesWithClassMethod(@selector(beforeEach)); - }); - - for (Class class in globalBeforeEachClasses) { - [class beforeEach]; - } -} - -- (void)runGlobalAfterEachHooks:(NSString *)compiledName { - static NSArray *globalAfterEachClasses; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - globalAfterEachClasses = ClassesWithClassMethod(@selector(afterEach)); - }); - - for (Class class in globalAfterEachClasses) { - [class afterEach]; - } -} - -// Builds an array of example groups that enclose the current group. -// When in innermost-first order, the most deeply nested example groups, -// beginning with self, are placed at the beginning of the array. -// When in outermost-first order, the opposite is true, and the last -// group in the array (self) is the most deeply nested. -- (NSArray *)exampleGroupStackInOrder:(SPTExampleGroupOrder)order { - NSMutableArray *groups = [NSMutableArray array]; - SPTExampleGroup *group = self; - while (group != nil) { - switch (order) { - case SPTExampleGroupOrderOutermostFirst: - [groups insertObject:group atIndex:0]; - break; - case SPTExampleGroupOrderInnermostFirst: - [groups addObject:group]; - break; - } - group = group.parent; - } - - return [groups copy]; -} - -- (void)runBeforeHooks:(NSString *)compiledName { - [self runBeforeAllHooks:compiledName]; - [self runBeforeEachHooks:compiledName]; -} - -- (void)runBeforeAllHooks:(NSString *)compiledName { - for(SPTExampleGroup *group in [self exampleGroupStackInOrder:SPTExampleGroupOrderOutermostFirst]) { - if (group.ranExampleCount == 0) { - for (id beforeAllBlock in group.beforeAllArray) { - runExampleBlock(beforeAllBlock, [NSString stringWithFormat:@"%@ - before all block", compiledName]); - } - } - } -} - -- (void)runBeforeEachHooks:(NSString *)compiledName { - [self runGlobalBeforeEachHooks:compiledName]; - for (SPTExampleGroup *group in [self exampleGroupStackInOrder:SPTExampleGroupOrderOutermostFirst]) { - for (id beforeEachBlock in group.beforeEachArray) { - runExampleBlock(beforeEachBlock, [NSString stringWithFormat:@"%@ - before each block", compiledName]); - } - } -} - -- (void)runAfterHooks:(NSString *)compiledName { - [self runAfterEachHooks:compiledName]; - [self runAfterAllHooks:compiledName]; -} - -- (void)runAfterEachHooks:(NSString *)compiledName { - for (SPTExampleGroup *group in [self exampleGroupStackInOrder:SPTExampleGroupOrderInnermostFirst]) { - for (id afterEachBlock in group.afterEachArray) { - runExampleBlock(afterEachBlock, [NSString stringWithFormat:@"%@ - after each block", compiledName]); - } - } - [self runGlobalAfterEachHooks:compiledName]; -} - -- (void)runAfterAllHooks:(NSString *)compiledName { - for (SPTExampleGroup *group in [self exampleGroupStackInOrder:SPTExampleGroupOrderInnermostFirst]) { - if (group.ranExampleCount == group.exampleCount) { - for (id afterAllBlock in group.afterAllArray) { - runExampleBlock(afterAllBlock, [NSString stringWithFormat:@"%@ - after all block", compiledName]); - } - } - } -} - -- (BOOL)isFocusedOrHasFocusedAncestor { - SPTExampleGroup *ancestor = self; - while (ancestor != nil) { - if (ancestor.focused) { - return YES; - } else { - ancestor = ancestor.parent; - } - } - - return NO; -} - -- (NSArray *)compileExamplesWithStack:(NSArray *)stack { - BOOL groupIsFocusedOrHasFocusedAncestor = [self isFocusedOrHasFocusedAncestor]; - - NSArray *compiled = @[]; - - for(id child in self.children) { - if ([child isKindOfClass:[SPTExampleGroup class]]) { - SPTExampleGroup *group = child; - NSArray *newStack = [stack arrayByAddingObject:group]; - compiled = [compiled arrayByAddingObjectsFromArray:[group compileExamplesWithStack:newStack]]; - - } else if ([child isKindOfClass:[SPTExample class]]) { - SPTExample *example = child; - NSArray *newStack = [stack arrayByAddingObject:example]; - - NSString *compiledName = [spt_map(newStack, ^id(id obj, NSUInteger idx) { - return [obj name]; - }) componentsJoinedByString:@" "]; - - NSString *testCaseName = [spt_map(newStack, ^id(id obj, NSUInteger idx) { - return spt_underscorize([obj name]); - }) componentsJoinedByString:@"__"]; - - // If example is pending, run only before- and after-all hooks. - // Otherwise, run the example and all before and after hooks. - SPTSpecBlock compiledBlock = example.pending ? ^(SPTSpec *spec){ - @synchronized(self.root) { - [self resetRanExampleCountIfNeeded]; - [self runBeforeAllHooks:compiledName]; - [self incrementRanExampleCount]; - [self runAfterAllHooks:compiledName]; - } - } : ^(SPTSpec *spec) { - @synchronized(self.root) { - [self resetRanExampleCountIfNeeded]; - [self runBeforeHooks:compiledName]; - } - @try { - runExampleBlock(example.block, compiledName); - } - @catch(NSException *e) { - [spec spt_handleException:e]; - } - @finally { - @synchronized(self.root) { - [self incrementRanExampleCount]; - [self runAfterHooks:compiledName]; - } - } - }; - SPTCompiledExample *compiledExample = [[SPTCompiledExample alloc] initWithName:compiledName testCaseName:testCaseName block:compiledBlock pending:example.pending focused:(groupIsFocusedOrHasFocusedAncestor || example.focused)]; - compiled = [compiled arrayByAddingObject:compiledExample]; - } - } - return compiled; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTExcludeGlobalBeforeAfterEach.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTExcludeGlobalBeforeAfterEach.h deleted file mode 100644 index 9581f0bc75d..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTExcludeGlobalBeforeAfterEach.h +++ /dev/null @@ -1,10 +0,0 @@ -/* - * Copyright (c) 2015 Specta Team. All rights reserved. - */ -#import - -// This protocol was used for blacklisting classes for global beforeEach and afterEach blocks. -// Now, instead, classes are whitelisted by implementing the SPTGlobalBeforeAfterEach protocol. -__deprecated_msg("Please whitelist classes instead with the SPTGlobalBeforeAfterEach protocol") -@protocol SPTExcludeGlobalBeforeAfterEach -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTGlobalBeforeAfterEach.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTGlobalBeforeAfterEach.h deleted file mode 100644 index 490359ddf4e..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTGlobalBeforeAfterEach.h +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright (c) 2015 Specta Team. All rights reserved. - */ -#import - -// This protocol is used for whitelisting classes for global beforeEach and afterEach blocks. -// If you want a class to participate in those just add this protocol to a category and it will be -// included. -@protocol SPTGlobalBeforeAfterEach - -@optional -+ (void)beforeEach; -+ (void)afterEach; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTSharedExampleGroups.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTSharedExampleGroups.h deleted file mode 100644 index 090acba799d..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTSharedExampleGroups.h +++ /dev/null @@ -1,17 +0,0 @@ -#import -#import -#import - -@class _XCTestCaseImplementation; - -@class SPTExampleGroup; - -@interface SPTSharedExampleGroups : XCTestCase - -+ (void)addSharedExampleGroupWithName:(NSString *)name block:(SPTDictionaryBlock)block exampleGroup:(SPTExampleGroup *)exampleGroup; -+ (SPTDictionaryBlock)sharedExampleGroupWithName:(NSString *)name exampleGroup:(SPTExampleGroup *)exampleGroup; - -- (void)sharedExampleGroups; - -@end - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTSharedExampleGroups.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTSharedExampleGroups.m deleted file mode 100644 index 35b405c10f3..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTSharedExampleGroups.m +++ /dev/null @@ -1,74 +0,0 @@ -#import "SPTSharedExampleGroups.h" -#import "SPTExampleGroup.h" -#import "SPTSpec.h" -#import "SpectaUtility.h" -#import - -NSMutableDictionary *globalSharedExampleGroups = nil; -BOOL initialized = NO; - -@implementation SPTSharedExampleGroups - -+ (void)initialize { - Class SPTSharedExampleGroupsClass = [SPTSharedExampleGroups class]; - if ([self class] == SPTSharedExampleGroupsClass) { - if (!initialized) { - initialized = YES; - globalSharedExampleGroups = [[NSMutableDictionary alloc] init]; - - Class *classes = NULL; - int numClasses = objc_getClassList(NULL, 0); - - if (numClasses > 0) { - classes = (Class *)malloc(sizeof(Class) * numClasses); - numClasses = objc_getClassList(classes, numClasses); - - Class klass, superClass; - for(uint i = 0; i < numClasses; i++) { - klass = classes[i]; - superClass = class_getSuperclass(klass); - if (superClass == SPTSharedExampleGroupsClass) { - [[[klass alloc] init] sharedExampleGroups]; - } - } - - free(classes); - } - } - } -} - -+ (void)addSharedExampleGroupWithName:(NSString *)name block:(SPTDictionaryBlock)block exampleGroup:(SPTExampleGroup *)exampleGroup { - (exampleGroup == nil ? globalSharedExampleGroups : exampleGroup.sharedExamples)[name] = [block copy]; -} - -+ (SPTDictionaryBlock)sharedExampleGroupWithName:(NSString *)name exampleGroup:(SPTExampleGroup *)exampleGroup { - SPTDictionaryBlock sharedExampleGroup = nil; - while (exampleGroup != nil) { - if ((sharedExampleGroup = exampleGroup.sharedExamples[name])) { - return sharedExampleGroup; - } - exampleGroup = exampleGroup.parent; - } - return globalSharedExampleGroups[name]; -} - -- (void)sharedExampleGroups {} - -- (void)spt_handleException:(NSException *)exception { - [SPTCurrentSpec spt_handleException:exception]; -} - -- (void)recordFailureWithDescription:(NSString *)description inFile:(NSString *)filename atLine:(NSUInteger)lineNumber expected:(BOOL)expected { - [SPTCurrentSpec recordFailureWithDescription:description inFile:filename atLine:lineNumber expected:expected]; -} - -- (void)_recordUnexpectedFailureWithDescription:(NSString *)description exception:(NSException *)exception { - [SPTCurrentSpec _recordUnexpectedFailureWithDescription:description exception:exception]; -} - -- (_XCTestCaseImplementation *)internalImplementation { - return [SPTCurrentSpec internalImplementation]; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTSpec.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTSpec.h deleted file mode 100644 index ada4ea2d717..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTSpec.h +++ /dev/null @@ -1,28 +0,0 @@ -#import -#import - -@class - SPTTestSuite -, SPTCompiledExample -; - -@interface SPTSpec : XCTestCase - -@property (strong) XCTestCaseRun *spt_run; -@property (nonatomic) BOOL spt_pending; -@property (nonatomic) BOOL spt_skipped; - -+ (BOOL)spt_isDisabled; -+ (void)spt_setDisabled:(BOOL)disabled; -+ (BOOL)spt_focusedExamplesExist; -+ (SEL)spt_convertToTestMethod:(SPTCompiledExample *)example; -+ (SPTTestSuite *)spt_testSuite; -+ (void)spt_setCurrentTestSuite; -+ (void)spt_unsetCurrentTestSuite; -+ (void)spt_setCurrentTestSuiteFileName:(NSString *)fileName lineNumber:(NSUInteger)lineNumber; - -- (void)spec; -- (BOOL)spt_shouldRunExample:(SPTCompiledExample *)example; -- (void)spt_runExample:(SPTCompiledExample *)example; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTSpec.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTSpec.m deleted file mode 100644 index 76717830326..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTSpec.m +++ /dev/null @@ -1,209 +0,0 @@ -#import "SPTSpec.h" -#import "SPTTestSuite.h" -#import "SPTCompiledExample.h" -#import "SPTSharedExampleGroups.h" -#import "SpectaUtility.h" -#import -#import "XCTest+Private.h" - -@implementation SPTSpec - -+ (void)initialize { - [SPTSharedExampleGroups initialize]; - SPTTestSuite *testSuite = [[SPTTestSuite alloc] init]; - SPTSpec *spec = [[[self class] alloc] init]; - NSString *specName = NSStringFromClass([self class]); - objc_setAssociatedObject(self, "spt_testSuite", testSuite, OBJC_ASSOCIATION_RETAIN_NONATOMIC); - [self spt_setCurrentTestSuite]; - @try { - [spec spec]; - } - @catch (NSException *exception) { - fprintf(stderr, "%s: An exception has occured outside of tests, aborting.\n\n%s (%s) \n", [specName UTF8String], [[exception name] UTF8String], [[exception reason] UTF8String]); - if ([exception respondsToSelector:@selector(callStackSymbols)]) { - NSArray *callStackSymbols = [exception callStackSymbols]; - if (callStackSymbols) { - NSString *callStack = [NSString stringWithFormat:@"\n Call Stack:\n %@\n", [callStackSymbols componentsJoinedByString:@"\n "]]; - fprintf(stderr, "%s", [callStack UTF8String]); - } - } - exit(1); - } - @finally { - [self spt_unsetCurrentTestSuite]; - } - [testSuite compile]; - [super initialize]; -} - -+ (SPTTestSuite *)spt_testSuite { - return objc_getAssociatedObject(self, "spt_testSuite"); -} - -+ (BOOL)spt_isDisabled { - return [self spt_testSuite].disabled; -} - -+ (void)spt_setDisabled:(BOOL)disabled { - [self spt_testSuite].disabled = disabled; -} - -+ (NSArray *)spt_allSpecClasses { - static NSArray *allSpecClasses = nil; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - - NSMutableArray *specClasses = [[NSMutableArray alloc] init]; - - int numberOfClasses = objc_getClassList(NULL, 0); - if (numberOfClasses > 0) { - Class *classes = (Class *)malloc(sizeof(Class) * numberOfClasses); - numberOfClasses = objc_getClassList(classes, numberOfClasses); - - for (int classIndex = 0; classIndex < numberOfClasses; classIndex++) { - Class aClass = classes[classIndex]; - if (spt_isSpecClass(aClass)) { - [specClasses addObject:aClass]; - } - } - - free(classes); - } - - allSpecClasses = [specClasses copy]; - }); - - return allSpecClasses; -} - -+ (BOOL)spt_focusedExamplesExist { - for (Class specClass in [self spt_allSpecClasses]) { - SPTTestSuite *testSuite = [specClass spt_testSuite]; - if (testSuite.disabled == NO && [testSuite hasFocusedExamples]) { - return YES; - } - } - - return NO; -} - -+ (SEL)spt_convertToTestMethod:(SPTCompiledExample *)example { - @synchronized(example) { - if (!example.testMethodSelector) { - IMP imp = imp_implementationWithBlock(^(SPTSpec *self) { - [self spt_runExample:example]; - }); - - SEL sel; - unsigned int i = 0; - - do { - i++; - if (i == 1) { - sel = NSSelectorFromString([NSString stringWithFormat:@"test_%@", example.testCaseName]); - } else { - sel = NSSelectorFromString([NSString stringWithFormat:@"test_%@_%u", example.testCaseName, i]); - } - } while([self instancesRespondToSelector:sel]); - - class_addMethod(self, sel, imp, "@@:"); - example.testMethodSelector = sel; - } - } - - return example.testMethodSelector; -} - -+ (void)spt_setCurrentTestSuite { - SPTTestSuite *testSuite = [self spt_testSuite]; - [[NSThread currentThread] threadDictionary][spt_kCurrentTestSuiteKey] = testSuite; -} - -+ (void)spt_unsetCurrentTestSuite { - [[[NSThread currentThread] threadDictionary] removeObjectForKey:spt_kCurrentTestSuiteKey]; -} - -+ (void)spt_setCurrentTestSuiteFileName:(NSString *)fileName lineNumber:(NSUInteger)lineNumber { - SPTTestSuite *testSuite = [self spt_testSuite]; - testSuite.fileName = fileName; - testSuite.lineNumber = lineNumber; -} - -- (void)spec {} - -- (BOOL)spt_shouldRunExample:(SPTCompiledExample *)example { - return [[self class] spt_isDisabled] == NO && - (example.focused || [[self class] spt_focusedExamplesExist] == NO); -} - -- (void)spt_runExample:(SPTCompiledExample *)example { - [[NSThread currentThread] threadDictionary][spt_kCurrentSpecKey] = self; - - if ([self spt_shouldRunExample:example]) { - self.spt_pending = example.pending; - example.block(self); - } else if (!example.pending) { - self.spt_skipped = YES; - } - - [[[NSThread currentThread] threadDictionary] removeObjectForKey:spt_kCurrentSpecKey]; -} - -#pragma mark - XCTestCase overrides - -+ (NSArray *)testInvocations { - NSArray *compiledExamples = [self spt_testSuite].compiledExamples; - [NSMutableArray arrayWithCapacity:[compiledExamples count]]; - - NSMutableSet *addedSelectors = [NSMutableSet setWithCapacity:[compiledExamples count]]; - NSMutableArray *selectors = [NSMutableArray arrayWithCapacity:[compiledExamples count]]; - - // dynamically generate test methods with compiled examples - for (SPTCompiledExample *example in compiledExamples) { - SEL sel = [self spt_convertToTestMethod:example]; - NSString *selName = NSStringFromSelector(sel); - [selectors addObject: selName]; - [addedSelectors addObject: selName]; - } - - // look for any other test methods that may be present in class. - unsigned int n; - Method *imethods = class_copyMethodList(self, &n); - - for (NSUInteger i = 0; i < n; i++) { - struct objc_method_description *desc = method_getDescription(imethods[i]); - - char *types = desc->types; - SEL sel = desc->name; - NSString *selName = NSStringFromSelector(sel); - - if (strcmp(types, "@@:") == 0 && [selName hasPrefix:@"test"] && ![addedSelectors containsObject:selName]) { - [selectors addObject:NSStringFromSelector(sel)]; - } - } - - free(imethods); - - // create invocations from test method selectors - NSMutableArray *invocations = [NSMutableArray arrayWithCapacity:[selectors count]]; - for (NSString *selName in selectors) { - SEL sel = NSSelectorFromString(selName); - NSInvocation *inv = [NSInvocation invocationWithMethodSignature:[self instanceMethodSignatureForSelector:sel]]; - [inv setSelector:sel]; - [invocations addObject:inv]; - } - - return spt_shuffle(invocations); -} - -- (void)recordFailureWithDescription:(NSString *)description inFile:(NSString *)filename atLine:(NSUInteger)lineNumber expected:(BOOL)expected { - SPTSpec *currentSpec = SPTCurrentSpec; - [currentSpec.spt_run recordFailureWithDescription:description inFile:filename atLine:lineNumber expected:expected]; -} - -- (void)performTest:(XCTestRun *)run { - self.spt_run = (XCTestCaseRun *)run; - [super performTest:run]; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTTestSuite.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTTestSuite.h deleted file mode 100644 index 9bd90162d5f..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTTestSuite.h +++ /dev/null @@ -1,21 +0,0 @@ -#import - -@class - SPTExample -, SPTExampleGroup -; - -@interface SPTTestSuite : NSObject - -@property (nonatomic, strong) SPTExampleGroup *rootGroup; -@property (nonatomic, strong) NSMutableArray *groupStack; -@property (nonatomic, strong) NSArray *compiledExamples; -@property (nonatomic, copy) NSString *fileName; -@property (nonatomic) NSUInteger lineNumber; -@property (nonatomic, getter = isDisabled) BOOL disabled; -@property (nonatomic) BOOL hasFocusedExamples; - -- (SPTExampleGroup *)currentGroup; -- (void)compile; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTTestSuite.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTTestSuite.m deleted file mode 100644 index 7053edd6972..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SPTTestSuite.m +++ /dev/null @@ -1,31 +0,0 @@ -#import "SPTTestSuite.h" -#import "SPTExampleGroup.h" -#import "SPTCompiledExample.h" - -@implementation SPTTestSuite - -- (id)init { - self = [super init]; - if (self) { - self.rootGroup = [[SPTExampleGroup alloc] init]; - self.rootGroup.root = self.rootGroup; - self.groupStack = [NSMutableArray arrayWithObject:self.rootGroup]; - } - return self; -} - -- (SPTExampleGroup *)currentGroup { - return [self.groupStack lastObject]; -} - -- (void)compile { - self.compiledExamples = [self.rootGroup compileExamplesWithStack:@[]]; - for (SPTCompiledExample *example in self.compiledExamples) { - if (example.focused) { - self.hasFocusedExamples = YES; - break; - } - } -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/Specta.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/Specta.h deleted file mode 100644 index dda17f915a8..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/Specta.h +++ /dev/null @@ -1,14 +0,0 @@ -#import -#import - -//! Project version number for Specta. -FOUNDATION_EXPORT double SpectaVersionNumber; - -//! Project version string for Specta. -FOUNDATION_EXPORT const unsigned char SpectaVersionString[]; - -// In this header, you should import all the public headers of your framework using statements like #import - -#import -#import -#import diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SpectaDSL.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SpectaDSL.h deleted file mode 100644 index 284d4f54092..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SpectaDSL.h +++ /dev/null @@ -1,90 +0,0 @@ -#import - -#define SpecBegin(name) _SPTSpecBegin(name, __FILE__, __LINE__) -#define SpecEnd _SPTSpecEnd - -#define SharedExamplesBegin(name) _SPTSharedExampleGroupsBegin(name) -#define SharedExamplesEnd _SPTSharedExampleGroupsEnd -#define SharedExampleGroupsBegin(name) _SPTSharedExampleGroupsBegin(name) -#define SharedExampleGroupsEnd _SPTSharedExampleGroupsEnd - -typedef void (^DoneCallback)(void); - -OBJC_EXTERN void describe(NSString *name, void (^block)()); -OBJC_EXTERN void fdescribe(NSString *name, void (^block)()); - -OBJC_EXTERN void context(NSString *name, void (^block)()); -OBJC_EXTERN void fcontext(NSString *name, void (^block)()); - -OBJC_EXTERN void it(NSString *name, void (^block)()); -OBJC_EXTERN void fit(NSString *name, void (^block)()); - -OBJC_EXTERN void example(NSString *name, void (^block)()); -OBJC_EXTERN void fexample(NSString *name, void (^block)()); - -OBJC_EXTERN void specify(NSString *name, void (^block)()); -OBJC_EXTERN void fspecify(NSString *name, void (^block)()); - -#define pending(...) spt_pending_(__VA_ARGS__, nil) -#define xdescribe(...) spt_pending_(__VA_ARGS__, nil) -#define xcontext(...) spt_pending_(__VA_ARGS__, nil) -#define xexample(...) spt_pending_(__VA_ARGS__, nil) -#define xit(...) spt_pending_(__VA_ARGS__, nil) -#define xspecify(...) spt_pending_(__VA_ARGS__, nil) - -OBJC_EXTERN void beforeAll(void (^block)()); -OBJC_EXTERN void afterAll(void (^block)()); - -OBJC_EXTERN void beforeEach(void (^block)()); -OBJC_EXTERN void afterEach(void (^block)()); - -OBJC_EXTERN void before(void (^block)()); -OBJC_EXTERN void after(void (^block)()); - -OBJC_EXTERN void sharedExamplesFor(NSString *name, void (^block)(NSDictionary *data)); -OBJC_EXTERN void sharedExamples(NSString *name, void (^block)(NSDictionary *data)); - -#define itShouldBehaveLike(...) spt_itShouldBehaveLike_(@(__FILE__), __LINE__, __VA_ARGS__) -#define itBehavesLike(...) spt_itShouldBehaveLike_(@(__FILE__), __LINE__, __VA_ARGS__) - -OBJC_EXTERN void waitUntil(void (^block)(DoneCallback done)); -/** - * Runs the @c block and waits until the @c done block is called or the - * @c timeout has passed. - * - * @param timeout timeout for this @c block only; does not affect the global - * timeout, as @c setAsyncSpecTimeout() does. - * @param ^block runs test code - */ -OBJC_EXTERN void waitUntilTimeout(NSTimeInterval timeout, void (^block)(DoneCallback done)); - -OBJC_EXTERN void setAsyncSpecTimeout(NSTimeInterval timeout); - -// ---------------------------------------------------------------------------- - -#define _SPTSpecBegin(name, file, line) \ -@interface name##Spec : SPTSpec \ -@end \ -@implementation name##Spec \ -- (void)spec { \ - [[self class] spt_setCurrentTestSuiteFileName:(@(file)) lineNumber:(line)]; - -#define _SPTSpecEnd \ -} \ -@end - -#define _SPTSharedExampleGroupsBegin(name) \ -@interface name##SharedExampleGroups : SPTSharedExampleGroups \ -@end \ -@implementation name##SharedExampleGroups \ -- (void)sharedExampleGroups { - -#define _SPTSharedExampleGroupsEnd \ -} \ -@end - -OBJC_EXTERN void spt_it_(NSString *name, NSString *fileName, NSUInteger lineNumber, void (^block)()); -OBJC_EXTERN void spt_fit_(NSString *name, NSString *fileName, NSUInteger lineNumber, void (^block)()); -OBJC_EXTERN void spt_pending_(NSString *name, ...); -OBJC_EXTERN void spt_itShouldBehaveLike_(NSString *fileName, NSUInteger lineNumber, NSString *name, id dictionaryOrBlock); -OBJC_EXTERN void spt_itShouldBehaveLike_block(NSString *fileName, NSUInteger lineNumber, NSString *name, NSDictionary *(^block)()); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SpectaDSL.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SpectaDSL.m deleted file mode 100644 index 10edcd56a70..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SpectaDSL.m +++ /dev/null @@ -1,189 +0,0 @@ -#import "SpectaDSL.h" -#import "SpectaTypes.h" -#import "SpectaUtility.h" -#import "SPTTestSuite.h" -#import "SPTExampleGroup.h" -#import "SPTSharedExampleGroups.h" -#import "SPTSpec.h" -#import "SPTCallSite.h" -#import - -static NSTimeInterval asyncSpecTimeout = 10.0; - -static void spt_defineItBlock(NSString *name, NSString *fileName, NSUInteger lineNumber, BOOL focused, void (^block)()) { - SPTReturnUnlessBlockOrNil(block); - SPTCallSite *site = nil; - if (lineNumber && fileName) { - site = [SPTCallSite callSiteWithFile:fileName line:lineNumber]; - } - [SPTCurrentGroup addExampleWithName:name callSite:site focused:focused block:block]; -} - -static void spt_defineDescribeBlock(NSString *name, BOOL focused, void (^block)()) { - if (block) { - [SPTGroupStack addObject:[SPTCurrentGroup addExampleGroupWithName:name focused:focused]]; - block(); - [SPTGroupStack removeLastObject]; - } else { - spt_defineItBlock(name, nil, 0, focused, nil); - } -} - -void spt_it_(NSString *name, NSString *fileName, NSUInteger lineNumber, void (^block)()) { - spt_defineItBlock(name, fileName, lineNumber, NO, block); -} - -void spt_fit_(NSString *name, NSString *fileName, NSUInteger lineNumber, void (^block)()) { - spt_defineItBlock(name, fileName, lineNumber, YES, block); -} - -void spt_pending_(NSString *name, ...) { - spt_defineItBlock(name, nil, 0, NO, nil); -} - -void spt_itShouldBehaveLike_(NSString *fileName, NSUInteger lineNumber, NSString *name, id dictionaryOrBlock) { - SPTDictionaryBlock block = [SPTSharedExampleGroups sharedExampleGroupWithName:name exampleGroup:SPTCurrentGroup]; - if (block) { - if (SPTIsBlock(dictionaryOrBlock)) { - id (^dataBlock)(void) = [dictionaryOrBlock copy]; - - describe(name, ^{ - __block NSMutableDictionary *dataDict = [[NSMutableDictionary alloc] init]; - - beforeEach(^{ - NSDictionary *blockData = dataBlock(); - [dataDict removeAllObjects]; - [dataDict addEntriesFromDictionary:blockData]; - }); - - block(dataDict); - - afterAll(^{ - dataDict = nil; - }); - }); - } else { - NSDictionary *data = dictionaryOrBlock; - - describe(name, ^{ - block(data); - }); - } - } else { - SPTSpec *currentSpec = SPTCurrentSpec; - if (currentSpec) { - [currentSpec recordFailureWithDescription:@"itShouldBehaveLike should not be invoked inside an example block!" inFile:fileName atLine:lineNumber expected:NO]; - } else { - it(name, ^{ - [SPTCurrentSpec recordFailureWithDescription:[NSString stringWithFormat:@"Shared example group \"%@\" does not exist.", name] inFile:fileName atLine:lineNumber expected:NO]; - }); - } - } -} - -void spt_itShouldBehaveLike_block(NSString *fileName, NSUInteger lineNumber, NSString *name, NSDictionary *(^block)()) { - spt_itShouldBehaveLike_(fileName, lineNumber, name, (id)block); -} - -void describe(NSString *name, void (^block)()) { - spt_defineDescribeBlock(name, NO, block); -} - -void fdescribe(NSString *name, void (^block)()) { - spt_defineDescribeBlock(name, YES, block); -} - -void context(NSString *name, void (^block)()) { - describe(name, block); -} - -void fcontext(NSString *name, void (^block)()) { - fdescribe(name, block); -} - -void it(NSString *name, void (^block)()) { - spt_defineItBlock(name, nil, 0, NO, block); -} - -void fit(NSString *name, void (^block)()) { - spt_defineItBlock(name, nil, 0, YES, block); -} - -void example(NSString *name, void (^block)()) { - it(name, block); -} - -void fexample(NSString *name, void (^block)()) { - fit(name, block); -} - -void specify(NSString *name, void (^block)()) { - it(name, block); -} - -void fspecify(NSString *name, void (^block)()) { - fit(name, block); -} - -void beforeAll(void (^block)()) { - SPTReturnUnlessBlockOrNil(block); - [SPTCurrentGroup addBeforeAllBlock:block]; -} - -void afterAll(void (^block)()) { - SPTReturnUnlessBlockOrNil(block); - [SPTCurrentGroup addAfterAllBlock:block]; -} - -void beforeEach(void (^block)()) { - SPTReturnUnlessBlockOrNil(block); - [SPTCurrentGroup addBeforeEachBlock:block]; -} - -void afterEach(void (^block)()) { - SPTReturnUnlessBlockOrNil(block); - [SPTCurrentGroup addAfterEachBlock:block]; -} - -void before(void (^block)()) { - beforeEach(block); -} - -void after(void (^block)()) { - afterEach(block); -} - -void sharedExamplesFor(NSString *name, void (^block)(NSDictionary *data)) { - [SPTSharedExampleGroups addSharedExampleGroupWithName:name block:block exampleGroup:SPTCurrentGroup]; -} - -void sharedExamples(NSString *name, void (^block)(NSDictionary *data)) { - sharedExamplesFor(name, block); -} - -void waitUntil(void (^block)(DoneCallback done)) { - waitUntilTimeout(asyncSpecTimeout, block); -} - -void waitUntilTimeout(NSTimeInterval timeout, void (^block)(DoneCallback done)) { - __block uint32_t complete = 0; - dispatch_async(dispatch_get_main_queue(), ^{ - block(^{ - OSAtomicOr32Barrier(1, &complete); - }); - }); - NSDate *timeoutDate = [NSDate dateWithTimeIntervalSinceNow:timeout]; - while (!complete && [timeoutDate timeIntervalSinceNow] > 0) { - [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.01]]; - } - if (!complete) { - NSString *message = [NSString stringWithFormat:@"failed to invoke done() callback before timeout (%f seconds)", timeout]; - SPTSpec *currentSpec = SPTCurrentSpec; - SPTTestSuite *testSuite = [[currentSpec class] spt_testSuite]; - [currentSpec recordFailureWithDescription:message inFile:testSuite.fileName atLine:testSuite.lineNumber expected:YES]; - } -} - -void setAsyncSpecTimeout(NSTimeInterval timeout) { - asyncSpecTimeout = timeout; -} diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SpectaTypes.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SpectaTypes.h deleted file mode 100644 index f1f0ae3eaac..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SpectaTypes.h +++ /dev/null @@ -1,5 +0,0 @@ -@class SPTSpec; - -typedef void (^SPTVoidBlock)(); -typedef void (^SPTSpecBlock)(SPTSpec *spec); -typedef void (^SPTDictionaryBlock)(NSDictionary *dictionary); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SpectaUtility.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SpectaUtility.h deleted file mode 100644 index a3a8f071f5e..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SpectaUtility.h +++ /dev/null @@ -1,18 +0,0 @@ -#import - -extern NSString * const spt_kCurrentTestSuiteKey; -extern NSString * const spt_kCurrentSpecKey; - -#define SPTCurrentTestSuite [[NSThread mainThread] threadDictionary][spt_kCurrentTestSuiteKey] -#define SPTCurrentSpec [[NSThread mainThread] threadDictionary][spt_kCurrentSpecKey] -#define SPTCurrentGroup [SPTCurrentTestSuite currentGroup] -#define SPTGroupStack [SPTCurrentTestSuite groupStack] - -#define SPTReturnUnlessBlockOrNil(block) if ((block) && !SPTIsBlock((block))) return; -#define SPTIsBlock(obj) [(obj) isKindOfClass:NSClassFromString(@"NSBlock")] - -BOOL spt_isSpecClass(Class aClass); -NSString *spt_underscorize(NSString *string); -NSArray *spt_map(NSArray *array, id (^block)(id obj, NSUInteger idx)); -NSArray *spt_shuffle(NSArray *array); -unsigned int spt_seed(); diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SpectaUtility.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SpectaUtility.m deleted file mode 100644 index 9b2ee804d51..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/SpectaUtility.m +++ /dev/null @@ -1,79 +0,0 @@ -#import "SpectaUtility.h" -#import "SPTSpec.h" -#import - -NSString * const spt_kCurrentTestSuiteKey = @"SPTCurrentTestSuite"; -NSString * const spt_kCurrentSpecKey = @"SPTCurrentSpec"; - -static unsigned int seed = 0; - -BOOL spt_isSpecClass(Class aClass) { - Class superclass = class_getSuperclass(aClass); - while (superclass != Nil) { - if (superclass == [SPTSpec class]) { - return YES; - } else { - superclass = class_getSuperclass(superclass); - } - } - return NO; -} - -NSString *spt_underscorize(NSString *string) { - static NSMutableCharacterSet *invalidCharSet; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - invalidCharSet = [[NSMutableCharacterSet alloc] init]; - [invalidCharSet formUnionWithCharacterSet:[NSCharacterSet controlCharacterSet]]; - [invalidCharSet formUnionWithCharacterSet:[NSCharacterSet illegalCharacterSet]]; - [invalidCharSet formUnionWithCharacterSet:[NSCharacterSet newlineCharacterSet]]; - [invalidCharSet formUnionWithCharacterSet:[NSCharacterSet nonBaseCharacterSet]]; - [invalidCharSet formUnionWithCharacterSet:[NSCharacterSet punctuationCharacterSet]]; - [invalidCharSet formUnionWithCharacterSet:[NSCharacterSet symbolCharacterSet]]; - }); - NSString *stripped = [string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; - stripped = [[stripped componentsSeparatedByCharactersInSet:invalidCharSet] componentsJoinedByString:@""]; - - NSArray *components = [stripped componentsSeparatedByCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]; - stripped = [[components objectsAtIndexes:[components indexesOfObjectsPassingTest:^BOOL(id obj, NSUInteger idx, BOOL *stop) { - return ![obj isEqualToString:@""]; - }]] componentsJoinedByString:@"_"]; - return stripped; -} - -NSArray *spt_map(NSArray *array, id (^block)(id obj, NSUInteger idx)) { - NSMutableArray *mapped = [NSMutableArray arrayWithCapacity:[array count]]; - [array enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { - [mapped addObject:block(obj, idx)]; - }]; - return mapped; -} - -NSArray *spt_shuffle(NSArray *array) { - if (![[[[NSProcessInfo processInfo] environment] objectForKey:@"SPECTA_SHUFFLE"] isEqualToString:@"1"]) { - return array; - } - spt_seed(); - NSMutableArray *shuffled = [array mutableCopy]; - NSUInteger count = [shuffled count]; - for (NSUInteger i = 0; i < count; i++) { - NSUInteger r = random() % count; - [shuffled exchangeObjectAtIndex:i withObjectAtIndex:r]; - } - return shuffled; -} - -unsigned int spt_seed() { - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - NSString *envSeed = [[[NSProcessInfo processInfo] environment] objectForKey:@"SPECTA_SEED"]; - if (envSeed) { - sscanf([envSeed UTF8String], "%u", &seed); - } else { - seed = arc4random(); - } - srandom(seed); - printf("Test Seed: %u\n", seed); - }); - return seed; -} diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/XCTest+Private.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/XCTest+Private.h deleted file mode 100644 index 0b83aeb2189..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/XCTest+Private.h +++ /dev/null @@ -1,40 +0,0 @@ -#import - -#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 90000 || __MAC_OS_X_VERSION_MAX_ALLOWED >= 101100 - -@interface XCTestObservationCenter (SPTTestSuspention) - -- (void)_suspendObservationForBlock:(void (^)(void))block; - -@end - -#else - -@interface XCTestObservationCenter : NSObject - -+ (id)sharedObservationCenter; -- (void)_suspendObservationForBlock:(void (^)(void))block; - -@end - -#endif - -@protocol XCTestObservation -@end - -@interface _XCTestDriverTestObserver : NSObject - -- (void)stopObserving; -- (void)startObserving; - -@end - -@interface _XCTestCaseImplementation : NSObject -@end - -@interface XCTestCase () - -- (_XCTestCaseImplementation *)internalImplementation; -- (void)_recordUnexpectedFailureWithDescription:(NSString *)description exception:(NSException *)exception; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/XCTestCase+Specta.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/XCTestCase+Specta.h deleted file mode 100644 index 9ca8f8ab1eb..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/XCTestCase+Specta.h +++ /dev/null @@ -1,7 +0,0 @@ -#import - -@interface XCTestCase (Specta) - -- (void)spt_handleException:(NSException *)exception; - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/XCTestCase+Specta.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/XCTestCase+Specta.m deleted file mode 100644 index 4c503eec12a..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Specta/Specta/Specta/XCTestCase+Specta.m +++ /dev/null @@ -1,65 +0,0 @@ -#import -#import "XCTestCase+Specta.h" -#import "SPTSpec.h" -#import "SPTExample.h" -#import "SPTSharedExampleGroups.h" -#import "SpectaUtility.h" -#import "XCTest+Private.h" - -@interface XCTestCase (xct_allSubclasses) - -- (NSArray *)allSubclasses; -- (void)_dequeueFailures; - -@end - -@implementation XCTestCase (Specta) - -+ (void)load { - Method allSubclasses = class_getClassMethod(self, @selector(allSubclasses)); - Method allSubclasses_swizzle = class_getClassMethod(self , @selector(spt_allSubclasses_swizzle)); - method_exchangeImplementations(allSubclasses, allSubclasses_swizzle); - - Method dequeueFailures = class_getInstanceMethod(self, @selector(_dequeueFailures)); - Method dequeueFailures_swizzle = class_getInstanceMethod(self, @selector(spt_dequeueFailures)); - method_exchangeImplementations(dequeueFailures, dequeueFailures_swizzle); -} - -+ (NSArray *)spt_allSubclasses_swizzle { - NSArray *subclasses = [self spt_allSubclasses_swizzle]; // call original - NSMutableArray *filtered = [NSMutableArray arrayWithCapacity:[subclasses count]]; - // exclude SPTSpec base class and all subclasses of SPTSharedExampleGroups - for (id subclass in subclasses) { - if (subclass != [SPTSpec class] && ![subclass isKindOfClass:[SPTSharedExampleGroups class]]) { - [filtered addObject:subclass]; - } - } - return spt_shuffle(filtered); -} - -- (void)spt_dequeueFailures { - void(^dequeueFailures)() = ^() { - [self spt_dequeueFailures]; - }; - - if ([NSThread isMainThread]) { - dequeueFailures(); - } else { - dispatch_sync(dispatch_get_main_queue(), dequeueFailures); - } -} - -- (void)spt_handleException:(NSException *)exception { - NSString *description = [exception reason]; - if ([exception userInfo]) { - id line = [exception userInfo][@"line"]; - id file = [exception userInfo][@"file"]; - if ([line isKindOfClass:[NSNumber class]] && [file isKindOfClass:[NSString class]]) { - [self recordFailureWithDescription:description inFile:file atLine:[line unsignedIntegerValue] expected:YES]; - return; - } - } - [self _recordUnexpectedFailureWithDescription:description exception:exception]; -} - -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Info.plist b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Info.plist deleted file mode 100644 index 45fdab38185..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - org.cocoapods.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - 2.5.4 - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - NSPrincipalClass - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Pods-SwaggerClient_Example-AFNetworking-Private.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Pods-SwaggerClient_Example-AFNetworking-Private.xcconfig deleted file mode 100644 index 6038dd05ec4..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Pods-SwaggerClient_Example-AFNetworking-Private.xcconfig +++ /dev/null @@ -1,9 +0,0 @@ -#include "Pods-SwaggerClient_Example-AFNetworking.xcconfig" -CONFIGURATION_BUILD_DIR = $PODS_FRAMEWORK_BUILD_PATH -FRAMEWORK_SEARCH_PATHS = "$PODS_FRAMEWORK_BUILD_PATH" -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/AFNetworking" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/Expecta" "${PODS_ROOT}/Headers/Public/ISO8601" "${PODS_ROOT}/Headers/Public/JSONModel" "${PODS_ROOT}/Headers/Public/Specta" "${PODS_ROOT}/Headers/Public/SwaggerClient" -OTHER_LDFLAGS = ${PODS_SWAGGERCLIENT_EXAMPLE_AFNETWORKING_OTHER_LDFLAGS} -ObjC -PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-SwaggerClient_Example -PODS_ROOT = ${SRCROOT} -SKIP_INSTALL = YES \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Pods-SwaggerClient_Example-AFNetworking-dummy.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Pods-SwaggerClient_Example-AFNetworking-dummy.m deleted file mode 100644 index 121351f3b6d..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Pods-SwaggerClient_Example-AFNetworking-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_Pods_SwaggerClient_Example_AFNetworking : NSObject -@end -@implementation PodsDummy_Pods_SwaggerClient_Example_AFNetworking -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Pods-SwaggerClient_Example-AFNetworking-prefix.pch b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Pods-SwaggerClient_Example-AFNetworking-prefix.pch deleted file mode 100644 index e597ce6d7a5..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Pods-SwaggerClient_Example-AFNetworking-prefix.pch +++ /dev/null @@ -1,5 +0,0 @@ -#ifdef __OBJC__ -#import -#endif - -#import "Pods-SwaggerClient_Example-environment.h" diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Pods-SwaggerClient_Example-AFNetworking-umbrella.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Pods-SwaggerClient_Example-AFNetworking-umbrella.h deleted file mode 100644 index c0674fea370..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Pods-SwaggerClient_Example-AFNetworking-umbrella.h +++ /dev/null @@ -1,34 +0,0 @@ -#import - -#import "AFHTTPRequestOperation.h" -#import "AFHTTPRequestOperationManager.h" -#import "AFHTTPSessionManager.h" -#import "AFNetworking.h" -#import "AFNetworkReachabilityManager.h" -#import "AFSecurityPolicy.h" -#import "AFURLConnectionOperation.h" -#import "AFURLRequestSerialization.h" -#import "AFURLResponseSerialization.h" -#import "AFURLSessionManager.h" -#import "AFURLConnectionOperation.h" -#import "AFHTTPRequestOperation.h" -#import "AFHTTPRequestOperationManager.h" -#import "AFURLSessionManager.h" -#import "AFHTTPSessionManager.h" -#import "AFNetworkReachabilityManager.h" -#import "AFSecurityPolicy.h" -#import "AFURLRequestSerialization.h" -#import "AFURLResponseSerialization.h" -#import "AFNetworkActivityIndicatorManager.h" -#import "UIActivityIndicatorView+AFNetworking.h" -#import "UIAlertView+AFNetworking.h" -#import "UIButton+AFNetworking.h" -#import "UIImageView+AFNetworking.h" -#import "UIKit+AFNetworking.h" -#import "UIProgressView+AFNetworking.h" -#import "UIRefreshControl+AFNetworking.h" -#import "UIWebView+AFNetworking.h" - -FOUNDATION_EXPORT double AFNetworkingVersionNumber; -FOUNDATION_EXPORT const unsigned char AFNetworkingVersionString[]; - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Pods-SwaggerClient_Example-AFNetworking.modulemap b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Pods-SwaggerClient_Example-AFNetworking.modulemap deleted file mode 100644 index 27b03b27d63..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Pods-SwaggerClient_Example-AFNetworking.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module AFNetworking { - umbrella header "Pods-SwaggerClient_Example-AFNetworking-umbrella.h" - - export * - module * { export * } -} diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Pods-SwaggerClient_Example-AFNetworking.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Pods-SwaggerClient_Example-AFNetworking.xcconfig deleted file mode 100644 index 2062d788591..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-AFNetworking/Pods-SwaggerClient_Example-AFNetworking.xcconfig +++ /dev/null @@ -1 +0,0 @@ -PODS_SWAGGERCLIENT_EXAMPLE_AFNETWORKING_OTHER_LDFLAGS = -framework "CoreGraphics" -framework "MobileCoreServices" -framework "Security" -framework "SystemConfiguration" \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-ISO8601/Info.plist b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-ISO8601/Info.plist deleted file mode 100644 index 08376429b62..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-ISO8601/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - org.cocoapods.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - 0.3.0 - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - NSPrincipalClass - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-ISO8601/Pods-SwaggerClient_Example-ISO8601-Private.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-ISO8601/Pods-SwaggerClient_Example-ISO8601-Private.xcconfig deleted file mode 100644 index 174001d709b..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-ISO8601/Pods-SwaggerClient_Example-ISO8601-Private.xcconfig +++ /dev/null @@ -1,9 +0,0 @@ -#include "Pods-SwaggerClient_Example-ISO8601.xcconfig" -CONFIGURATION_BUILD_DIR = $PODS_FRAMEWORK_BUILD_PATH -FRAMEWORK_SEARCH_PATHS = "$PODS_FRAMEWORK_BUILD_PATH" -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/ISO8601" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/Expecta" "${PODS_ROOT}/Headers/Public/ISO8601" "${PODS_ROOT}/Headers/Public/JSONModel" "${PODS_ROOT}/Headers/Public/Specta" "${PODS_ROOT}/Headers/Public/SwaggerClient" -OTHER_LDFLAGS = ${PODS_SWAGGERCLIENT_EXAMPLE_ISO_____OTHER_LDFLAGS} -ObjC -PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-SwaggerClient_Example -PODS_ROOT = ${SRCROOT} -SKIP_INSTALL = YES \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-ISO8601/Pods-SwaggerClient_Example-ISO8601-dummy.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-ISO8601/Pods-SwaggerClient_Example-ISO8601-dummy.m deleted file mode 100644 index d00d9499765..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-ISO8601/Pods-SwaggerClient_Example-ISO8601-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_Pods_SwaggerClient_Example_ISO8601 : NSObject -@end -@implementation PodsDummy_Pods_SwaggerClient_Example_ISO8601 -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-ISO8601/Pods-SwaggerClient_Example-ISO8601-prefix.pch b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-ISO8601/Pods-SwaggerClient_Example-ISO8601-prefix.pch deleted file mode 100644 index e597ce6d7a5..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-ISO8601/Pods-SwaggerClient_Example-ISO8601-prefix.pch +++ /dev/null @@ -1,5 +0,0 @@ -#ifdef __OBJC__ -#import -#endif - -#import "Pods-SwaggerClient_Example-environment.h" diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-ISO8601/Pods-SwaggerClient_Example-ISO8601-umbrella.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-ISO8601/Pods-SwaggerClient_Example-ISO8601-umbrella.h deleted file mode 100644 index cb8c2f8c323..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-ISO8601/Pods-SwaggerClient_Example-ISO8601-umbrella.h +++ /dev/null @@ -1,9 +0,0 @@ -#import - -#import "ISO8601.h" -#import "ISO8601Serialization.h" -#import "NSDate+ISO8601.h" - -FOUNDATION_EXPORT double ISO8601VersionNumber; -FOUNDATION_EXPORT const unsigned char ISO8601VersionString[]; - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-ISO8601/Pods-SwaggerClient_Example-ISO8601.modulemap b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-ISO8601/Pods-SwaggerClient_Example-ISO8601.modulemap deleted file mode 100644 index 67b0fba4245..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-ISO8601/Pods-SwaggerClient_Example-ISO8601.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module ISO8601 { - umbrella header "Pods-SwaggerClient_Example-ISO8601-umbrella.h" - - export * - module * { export * } -} diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-ISO8601/Pods-SwaggerClient_Example-ISO8601.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-ISO8601/Pods-SwaggerClient_Example-ISO8601.xcconfig deleted file mode 100644 index f5de60d3b21..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-ISO8601/Pods-SwaggerClient_Example-ISO8601.xcconfig +++ /dev/null @@ -1 +0,0 @@ -PODS_SWAGGERCLIENT_EXAMPLE_ISO_____OTHER_LDFLAGS = -framework "Foundation" \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-JSONModel/Info.plist b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-JSONModel/Info.plist deleted file mode 100644 index 01903d77110..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-JSONModel/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - org.cocoapods.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.1.0 - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - NSPrincipalClass - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-JSONModel/Pods-SwaggerClient_Example-JSONModel-Private.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-JSONModel/Pods-SwaggerClient_Example-JSONModel-Private.xcconfig deleted file mode 100644 index 7145cef6bf3..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-JSONModel/Pods-SwaggerClient_Example-JSONModel-Private.xcconfig +++ /dev/null @@ -1,9 +0,0 @@ -#include "Pods-SwaggerClient_Example-JSONModel.xcconfig" -CONFIGURATION_BUILD_DIR = $PODS_FRAMEWORK_BUILD_PATH -FRAMEWORK_SEARCH_PATHS = "$PODS_FRAMEWORK_BUILD_PATH" -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/JSONModel" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/Expecta" "${PODS_ROOT}/Headers/Public/ISO8601" "${PODS_ROOT}/Headers/Public/JSONModel" "${PODS_ROOT}/Headers/Public/Specta" "${PODS_ROOT}/Headers/Public/SwaggerClient" -OTHER_LDFLAGS = -ObjC -PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-SwaggerClient_Example -PODS_ROOT = ${SRCROOT} -SKIP_INSTALL = YES \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-JSONModel/Pods-SwaggerClient_Example-JSONModel-dummy.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-JSONModel/Pods-SwaggerClient_Example-JSONModel-dummy.m deleted file mode 100644 index dad0697d0cb..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-JSONModel/Pods-SwaggerClient_Example-JSONModel-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_Pods_SwaggerClient_Example_JSONModel : NSObject -@end -@implementation PodsDummy_Pods_SwaggerClient_Example_JSONModel -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-JSONModel/Pods-SwaggerClient_Example-JSONModel-prefix.pch b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-JSONModel/Pods-SwaggerClient_Example-JSONModel-prefix.pch deleted file mode 100644 index e597ce6d7a5..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-JSONModel/Pods-SwaggerClient_Example-JSONModel-prefix.pch +++ /dev/null @@ -1,5 +0,0 @@ -#ifdef __OBJC__ -#import -#endif - -#import "Pods-SwaggerClient_Example-environment.h" diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-JSONModel/Pods-SwaggerClient_Example-JSONModel-umbrella.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-JSONModel/Pods-SwaggerClient_Example-JSONModel-umbrella.h deleted file mode 100644 index a976352169b..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-JSONModel/Pods-SwaggerClient_Example-JSONModel-umbrella.h +++ /dev/null @@ -1,17 +0,0 @@ -#import - -#import "JSONModel.h" -#import "JSONModelArray.h" -#import "JSONModelClassProperty.h" -#import "JSONModelError.h" -#import "NSArray+JSONModel.h" -#import "JSONModelLib.h" -#import "JSONAPI.h" -#import "JSONHTTPClient.h" -#import "JSONModel+networking.h" -#import "JSONKeyMapper.h" -#import "JSONValueTransformer.h" - -FOUNDATION_EXPORT double JSONModelVersionNumber; -FOUNDATION_EXPORT const unsigned char JSONModelVersionString[]; - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-JSONModel/Pods-SwaggerClient_Example-JSONModel.modulemap b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-JSONModel/Pods-SwaggerClient_Example-JSONModel.modulemap deleted file mode 100644 index 4282e5d525a..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-JSONModel/Pods-SwaggerClient_Example-JSONModel.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module JSONModel { - umbrella header "Pods-SwaggerClient_Example-JSONModel-umbrella.h" - - export * - module * { export * } -} diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-JSONModel/Pods-SwaggerClient_Example-JSONModel.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-JSONModel/Pods-SwaggerClient_Example-JSONModel.xcconfig deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Info.plist b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Info.plist deleted file mode 100644 index 4ba5fa28b78..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - org.cocoapods.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - 0.1.0 - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - NSPrincipalClass - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Pods-SwaggerClient_Example-SwaggerClient-Private.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Pods-SwaggerClient_Example-SwaggerClient-Private.xcconfig deleted file mode 100644 index e9a17045872..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Pods-SwaggerClient_Example-SwaggerClient-Private.xcconfig +++ /dev/null @@ -1,9 +0,0 @@ -#include "Pods-SwaggerClient_Example-SwaggerClient.xcconfig" -CONFIGURATION_BUILD_DIR = $PODS_FRAMEWORK_BUILD_PATH -FRAMEWORK_SEARCH_PATHS = "$PODS_FRAMEWORK_BUILD_PATH" -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/SwaggerClient" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/Expecta" "${PODS_ROOT}/Headers/Public/ISO8601" "${PODS_ROOT}/Headers/Public/JSONModel" "${PODS_ROOT}/Headers/Public/Specta" "${PODS_ROOT}/Headers/Public/SwaggerClient" -OTHER_LDFLAGS = -ObjC -PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-SwaggerClient_Example -PODS_ROOT = ${SRCROOT} -SKIP_INSTALL = YES \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Pods-SwaggerClient_Example-SwaggerClient-dummy.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Pods-SwaggerClient_Example-SwaggerClient-dummy.m deleted file mode 100644 index 4b501b10324..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Pods-SwaggerClient_Example-SwaggerClient-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_Pods_SwaggerClient_Example_SwaggerClient : NSObject -@end -@implementation PodsDummy_Pods_SwaggerClient_Example_SwaggerClient -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Pods-SwaggerClient_Example-SwaggerClient-prefix.pch b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Pods-SwaggerClient_Example-SwaggerClient-prefix.pch deleted file mode 100644 index e597ce6d7a5..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Pods-SwaggerClient_Example-SwaggerClient-prefix.pch +++ /dev/null @@ -1,5 +0,0 @@ -#ifdef __OBJC__ -#import -#endif - -#import "Pods-SwaggerClient_Example-environment.h" diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Pods-SwaggerClient_Example-SwaggerClient-umbrella.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Pods-SwaggerClient_Example-SwaggerClient-umbrella.h deleted file mode 100644 index c06b45cd7d2..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Pods-SwaggerClient_Example-SwaggerClient-umbrella.h +++ /dev/null @@ -1,24 +0,0 @@ -#import - -#import "JSONValueTransformer+ISO8601.h" -#import "SWGApiClient.h" -#import "SWGCategory.h" -#import "SWGConfiguration.h" -#import "SWGFile.h" -#import "SWGJSONRequestSerializer.h" -#import "SWGJSONResponseSerializer.h" -#import "SWGMyresult.h" -#import "SWGMythingApi.h" -#import "SWGObject.h" -#import "SWGOrder.h" -#import "SWGPet.h" -#import "SWGPetApi.h" -#import "SWGQueryParamCollection.h" -#import "SWGStoreApi.h" -#import "SWGTag.h" -#import "SWGUser.h" -#import "SWGUserApi.h" - -FOUNDATION_EXPORT double SwaggerClientVersionNumber; -FOUNDATION_EXPORT const unsigned char SwaggerClientVersionString[]; - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Pods-SwaggerClient_Example-SwaggerClient.modulemap b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Pods-SwaggerClient_Example-SwaggerClient.modulemap deleted file mode 100644 index 7abc3afbdc0..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Pods-SwaggerClient_Example-SwaggerClient.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module SwaggerClient { - umbrella header "Pods-SwaggerClient_Example-SwaggerClient-umbrella.h" - - export * - module * { export * } -} diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Pods-SwaggerClient_Example-SwaggerClient.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example-SwaggerClient/Pods-SwaggerClient_Example-SwaggerClient.xcconfig deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Info.plist b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Info.plist deleted file mode 100644 index 69745425863..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - org.cocoapods.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0.0 - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - NSPrincipalClass - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example-acknowledgements.markdown b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example-acknowledgements.markdown deleted file mode 100644 index 3d56e061c3f..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example-acknowledgements.markdown +++ /dev/null @@ -1,100 +0,0 @@ -# Acknowledgements -This application makes use of the following third party libraries: - -## AFNetworking - -Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - -## ISO8601 - -Copyright (c) 2014 Sam Soffes, http://soff.es - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - -## JSONModel - -JSONModel - -Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -This code is distributed under the terms and conditions of the MIT license. - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in the -Software without restriction, including without limitation the rights to use, copy, -modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, -and to permit persons to whom the Software is furnished to do so, subject to the -following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, -INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF -CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE -OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - - -## SwaggerClient - -Copyright (c) 2015 geekerzp - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -Generated by CocoaPods - http://cocoapods.org diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example-acknowledgements.plist b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example-acknowledgements.plist deleted file mode 100644 index 14fcac8bb22..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example-acknowledgements.plist +++ /dev/null @@ -1,142 +0,0 @@ - - - - - PreferenceSpecifiers - - - FooterText - This application makes use of the following third party libraries: - Title - Acknowledgements - Type - PSGroupSpecifier - - - FooterText - Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - Title - AFNetworking - Type - PSGroupSpecifier - - - FooterText - Copyright (c) 2014 Sam Soffes, http://soff.es - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - Title - ISO8601 - Type - PSGroupSpecifier - - - FooterText - JSONModel - -Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -This code is distributed under the terms and conditions of the MIT license. - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in the -Software without restriction, including without limitation the rights to use, copy, -modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, -and to permit persons to whom the Software is furnished to do so, subject to the -following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, -INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF -CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE -OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - - Title - JSONModel - Type - PSGroupSpecifier - - - FooterText - Copyright (c) 2015 geekerzp <geekerzp@gmail.com> - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - Title - SwaggerClient - Type - PSGroupSpecifier - - - FooterText - Generated by CocoaPods - http://cocoapods.org - Title - - Type - PSGroupSpecifier - - - StringsTable - Acknowledgements - Title - Acknowledgements - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example-dummy.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example-dummy.m deleted file mode 100644 index 8cff8be0250..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_Pods_SwaggerClient_Example : NSObject -@end -@implementation PodsDummy_Pods_SwaggerClient_Example -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example-environment.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example-environment.h deleted file mode 100644 index 577f1da7e4c..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example-environment.h +++ /dev/null @@ -1,68 +0,0 @@ - -// To check if a library is compiled with CocoaPods you -// can use the `COCOAPODS` macro definition which is -// defined in the xcconfigs so it is available in -// headers also when they are imported in the client -// project. - - -// AFNetworking -#define COCOAPODS_POD_AVAILABLE_AFNetworking -#define COCOAPODS_VERSION_MAJOR_AFNetworking 2 -#define COCOAPODS_VERSION_MINOR_AFNetworking 5 -#define COCOAPODS_VERSION_PATCH_AFNetworking 4 - -// AFNetworking/NSURLConnection -#define COCOAPODS_POD_AVAILABLE_AFNetworking_NSURLConnection -#define COCOAPODS_VERSION_MAJOR_AFNetworking_NSURLConnection 2 -#define COCOAPODS_VERSION_MINOR_AFNetworking_NSURLConnection 5 -#define COCOAPODS_VERSION_PATCH_AFNetworking_NSURLConnection 4 - -// AFNetworking/NSURLSession -#define COCOAPODS_POD_AVAILABLE_AFNetworking_NSURLSession -#define COCOAPODS_VERSION_MAJOR_AFNetworking_NSURLSession 2 -#define COCOAPODS_VERSION_MINOR_AFNetworking_NSURLSession 5 -#define COCOAPODS_VERSION_PATCH_AFNetworking_NSURLSession 4 - -// AFNetworking/Reachability -#define COCOAPODS_POD_AVAILABLE_AFNetworking_Reachability -#define COCOAPODS_VERSION_MAJOR_AFNetworking_Reachability 2 -#define COCOAPODS_VERSION_MINOR_AFNetworking_Reachability 5 -#define COCOAPODS_VERSION_PATCH_AFNetworking_Reachability 4 - -// AFNetworking/Security -#define COCOAPODS_POD_AVAILABLE_AFNetworking_Security -#define COCOAPODS_VERSION_MAJOR_AFNetworking_Security 2 -#define COCOAPODS_VERSION_MINOR_AFNetworking_Security 5 -#define COCOAPODS_VERSION_PATCH_AFNetworking_Security 4 - -// AFNetworking/Serialization -#define COCOAPODS_POD_AVAILABLE_AFNetworking_Serialization -#define COCOAPODS_VERSION_MAJOR_AFNetworking_Serialization 2 -#define COCOAPODS_VERSION_MINOR_AFNetworking_Serialization 5 -#define COCOAPODS_VERSION_PATCH_AFNetworking_Serialization 4 - -// AFNetworking/UIKit -#define COCOAPODS_POD_AVAILABLE_AFNetworking_UIKit -#define COCOAPODS_VERSION_MAJOR_AFNetworking_UIKit 2 -#define COCOAPODS_VERSION_MINOR_AFNetworking_UIKit 5 -#define COCOAPODS_VERSION_PATCH_AFNetworking_UIKit 4 - -// ISO8601 -#define COCOAPODS_POD_AVAILABLE_ISO8601 -#define COCOAPODS_VERSION_MAJOR_ISO8601 0 -#define COCOAPODS_VERSION_MINOR_ISO8601 3 -#define COCOAPODS_VERSION_PATCH_ISO8601 0 - -// JSONModel -#define COCOAPODS_POD_AVAILABLE_JSONModel -#define COCOAPODS_VERSION_MAJOR_JSONModel 1 -#define COCOAPODS_VERSION_MINOR_JSONModel 1 -#define COCOAPODS_VERSION_PATCH_JSONModel 0 - -// SwaggerClient -#define COCOAPODS_POD_AVAILABLE_SwaggerClient -#define COCOAPODS_VERSION_MAJOR_SwaggerClient 0 -#define COCOAPODS_VERSION_MINOR_SwaggerClient 1 -#define COCOAPODS_VERSION_PATCH_SwaggerClient 0 - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example-frameworks.sh b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example-frameworks.sh deleted file mode 100755 index 5000ed902ca..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example-frameworks.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh -set -e - -echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" -mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - -SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" - -install_framework() -{ - local source="${BUILT_PRODUCTS_DIR}/Pods-SwaggerClient_Example/$1" - local destination="${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - - if [ -L "${source}" ]; then - echo "Symlinked..." - source=$(readlink "${source}") - fi - - # use filter instead of exclude so missing patterns dont' throw errors - echo "rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers/" --filter "- PrivateHeaders/" --filter "- Modules/" ${source} ${destination}" - rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers/" --filter "- PrivateHeaders/" --filter "- Modules/" "${source}" "${destination}" - # Resign the code if required by the build settings to avoid unstable apps - if [ "${CODE_SIGNING_REQUIRED}" == "YES" ]; then - code_sign "${destination}/$1" - fi - - # Embed linked Swift runtime libraries - local basename - basename=$(echo $1 | sed -E s/\\..+// && exit ${PIPESTATUS[0]}) - local swift_runtime_libs - swift_runtime_libs=$(xcrun otool -LX "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/$1/${basename}" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) - for lib in $swift_runtime_libs; do - echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" - rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" - if [ "${CODE_SIGNING_REQUIRED}" == "YES" ]; then - code_sign "${destination}/${lib}" - fi - done -} - -# Signs a framework with the provided identity -code_sign() { - # Use the current code_sign_identitiy - echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" - echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements $1" - /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1" -} - - -if [[ "$CONFIGURATION" == "Debug" ]]; then - install_framework 'AFNetworking.framework' - install_framework 'ISO8601.framework' - install_framework 'JSONModel.framework' - install_framework 'SwaggerClient.framework' -fi -if [[ "$CONFIGURATION" == "Release" ]]; then - install_framework 'AFNetworking.framework' - install_framework 'ISO8601.framework' - install_framework 'JSONModel.framework' - install_framework 'SwaggerClient.framework' -fi diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example-resources.sh b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example-resources.sh deleted file mode 100755 index 43f08523e1c..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example-resources.sh +++ /dev/null @@ -1,93 +0,0 @@ -#!/bin/sh -set -e - -mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" - -RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt -> "$RESOURCES_TO_COPY" - -XCASSET_FILES=() - -realpath() { - DIRECTORY=$(cd "${1%/*}" && pwd) - FILENAME="${1##*/}" - echo "$DIRECTORY/$FILENAME" -} - -install_resource() -{ - case $1 in - *.storyboard) - echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" - ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" - ;; - *.xib) - echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" - ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" - ;; - *.framework) - echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - ;; - *.xcdatamodel) - echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" - xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" - ;; - *.xcdatamodeld) - echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" - xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" - ;; - *.xcmappingmodel) - echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" - xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" - ;; - *.xcassets) - ABSOLUTE_XCASSET_FILE=$(realpath "${PODS_ROOT}/$1") - XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") - ;; - /*) - echo "$1" - echo "$1" >> "$RESOURCES_TO_COPY" - ;; - *) - echo "${PODS_ROOT}/$1" - echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" - ;; - esac -} - -rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -if [[ "${ACTION}" == "install" ]]; then - rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -fi -rm -f "$RESOURCES_TO_COPY" - -if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] -then - case "${TARGETED_DEVICE_FAMILY}" in - 1,2) - TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" - ;; - 1) - TARGET_DEVICE_ARGS="--target-device iphone" - ;; - 2) - TARGET_DEVICE_ARGS="--target-device ipad" - ;; - *) - TARGET_DEVICE_ARGS="--target-device mac" - ;; - esac - - # Find all other xcassets (this unfortunately includes those of path pods and other targets). - OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) - while read line; do - if [[ $line != "`realpath $PODS_ROOT`*" ]]; then - XCASSET_FILES+=("$line") - fi - done <<<"$OTHER_XCASSETS" - - printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -fi diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example-umbrella.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example-umbrella.h deleted file mode 100644 index ae48c113af8..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example-umbrella.h +++ /dev/null @@ -1,6 +0,0 @@ -#import - - -FOUNDATION_EXPORT double Pods_SwaggerClient_ExampleVersionNumber; -FOUNDATION_EXPORT const unsigned char Pods_SwaggerClient_ExampleVersionString[]; - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example.debug.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example.debug.xcconfig deleted file mode 100644 index decd9a900fe..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example.debug.xcconfig +++ /dev/null @@ -1,8 +0,0 @@ -FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_FRAMEWORK_BUILD_PATH" -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' -OTHER_CFLAGS = $(inherited) -iquote "$PODS_FRAMEWORK_BUILD_PATH/AFNetworking.framework/Headers" -iquote "$PODS_FRAMEWORK_BUILD_PATH/ISO8601.framework/Headers" -iquote "$PODS_FRAMEWORK_BUILD_PATH/JSONModel.framework/Headers" -iquote "$PODS_FRAMEWORK_BUILD_PATH/SwaggerClient.framework/Headers" -OTHER_LDFLAGS = $(inherited) -ObjC -framework "AFNetworking" -framework "ISO8601" -framework "JSONModel" -framework "SwaggerClient" -OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS) -PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-SwaggerClient_Example -PODS_ROOT = ${SRCROOT}/Pods \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example.modulemap b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example.modulemap deleted file mode 100644 index 14d347684cb..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module Pods_SwaggerClient_Example { - umbrella header "Pods-SwaggerClient_Example-umbrella.h" - - export * - module * { export * } -} diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example.release.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example.release.xcconfig deleted file mode 100644 index decd9a900fe..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Example/Pods-SwaggerClient_Example.release.xcconfig +++ /dev/null @@ -1,8 +0,0 @@ -FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_FRAMEWORK_BUILD_PATH" -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' -OTHER_CFLAGS = $(inherited) -iquote "$PODS_FRAMEWORK_BUILD_PATH/AFNetworking.framework/Headers" -iquote "$PODS_FRAMEWORK_BUILD_PATH/ISO8601.framework/Headers" -iquote "$PODS_FRAMEWORK_BUILD_PATH/JSONModel.framework/Headers" -iquote "$PODS_FRAMEWORK_BUILD_PATH/SwaggerClient.framework/Headers" -OTHER_LDFLAGS = $(inherited) -ObjC -framework "AFNetworking" -framework "ISO8601" -framework "JSONModel" -framework "SwaggerClient" -OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS) -PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-SwaggerClient_Example -PODS_ROOT = ${SRCROOT}/Pods \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Info.plist b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Info.plist deleted file mode 100644 index 45fdab38185..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - org.cocoapods.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - 2.5.4 - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - NSPrincipalClass - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking-Private.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking-Private.xcconfig deleted file mode 100644 index c0dfe5e1977..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking-Private.xcconfig +++ /dev/null @@ -1,9 +0,0 @@ -#include "Pods-SwaggerClient_Tests-AFNetworking.xcconfig" -CONFIGURATION_BUILD_DIR = $PODS_FRAMEWORK_BUILD_PATH -FRAMEWORK_SEARCH_PATHS = "$PODS_FRAMEWORK_BUILD_PATH" -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/AFNetworking" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/Expecta" "${PODS_ROOT}/Headers/Public/ISO8601" "${PODS_ROOT}/Headers/Public/JSONModel" "${PODS_ROOT}/Headers/Public/Specta" "${PODS_ROOT}/Headers/Public/SwaggerClient" -OTHER_LDFLAGS = ${PODS_SWAGGERCLIENT_TESTS_AFNETWORKING_OTHER_LDFLAGS} -ObjC -PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-SwaggerClient_Tests -PODS_ROOT = ${SRCROOT} -SKIP_INSTALL = YES \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking-dummy.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking-dummy.m deleted file mode 100644 index d0c911293c3..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_Pods_SwaggerClient_Tests_AFNetworking : NSObject -@end -@implementation PodsDummy_Pods_SwaggerClient_Tests_AFNetworking -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking-prefix.pch b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking-prefix.pch deleted file mode 100644 index a0fd887ec64..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking-prefix.pch +++ /dev/null @@ -1,5 +0,0 @@ -#ifdef __OBJC__ -#import -#endif - -#import "Pods-SwaggerClient_Tests-environment.h" diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking-umbrella.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking-umbrella.h deleted file mode 100644 index c0674fea370..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking-umbrella.h +++ /dev/null @@ -1,34 +0,0 @@ -#import - -#import "AFHTTPRequestOperation.h" -#import "AFHTTPRequestOperationManager.h" -#import "AFHTTPSessionManager.h" -#import "AFNetworking.h" -#import "AFNetworkReachabilityManager.h" -#import "AFSecurityPolicy.h" -#import "AFURLConnectionOperation.h" -#import "AFURLRequestSerialization.h" -#import "AFURLResponseSerialization.h" -#import "AFURLSessionManager.h" -#import "AFURLConnectionOperation.h" -#import "AFHTTPRequestOperation.h" -#import "AFHTTPRequestOperationManager.h" -#import "AFURLSessionManager.h" -#import "AFHTTPSessionManager.h" -#import "AFNetworkReachabilityManager.h" -#import "AFSecurityPolicy.h" -#import "AFURLRequestSerialization.h" -#import "AFURLResponseSerialization.h" -#import "AFNetworkActivityIndicatorManager.h" -#import "UIActivityIndicatorView+AFNetworking.h" -#import "UIAlertView+AFNetworking.h" -#import "UIButton+AFNetworking.h" -#import "UIImageView+AFNetworking.h" -#import "UIKit+AFNetworking.h" -#import "UIProgressView+AFNetworking.h" -#import "UIRefreshControl+AFNetworking.h" -#import "UIWebView+AFNetworking.h" - -FOUNDATION_EXPORT double AFNetworkingVersionNumber; -FOUNDATION_EXPORT const unsigned char AFNetworkingVersionString[]; - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking.modulemap b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking.modulemap deleted file mode 100644 index 6000a4918ad..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module AFNetworking { - umbrella header "Pods-SwaggerClient_Tests-AFNetworking-umbrella.h" - - export * - module * { export * } -} diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking.xcconfig deleted file mode 100644 index 4ce4ab2de66..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-AFNetworking/Pods-SwaggerClient_Tests-AFNetworking.xcconfig +++ /dev/null @@ -1 +0,0 @@ -PODS_SWAGGERCLIENT_TESTS_AFNETWORKING_OTHER_LDFLAGS = -framework "CoreGraphics" -framework "MobileCoreServices" -framework "Security" -framework "SystemConfiguration" \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Expecta/Info.plist b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Expecta/Info.plist deleted file mode 100644 index 69745425863..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Expecta/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - org.cocoapods.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0.0 - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - NSPrincipalClass - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Expecta/Pods-SwaggerClient_Tests-Expecta-Private.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Expecta/Pods-SwaggerClient_Tests-Expecta-Private.xcconfig deleted file mode 100644 index e18db53277d..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Expecta/Pods-SwaggerClient_Tests-Expecta-Private.xcconfig +++ /dev/null @@ -1,9 +0,0 @@ -#include "Pods-SwaggerClient_Tests-Expecta.xcconfig" -CONFIGURATION_BUILD_DIR = $PODS_FRAMEWORK_BUILD_PATH -FRAMEWORK_SEARCH_PATHS = "$PODS_FRAMEWORK_BUILD_PATH" ${PODS_SWAGGERCLIENT_TESTS_EXPECTA_FRAMEWORK_SEARCH_PATHS} -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/Expecta" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/Expecta" "${PODS_ROOT}/Headers/Public/ISO8601" "${PODS_ROOT}/Headers/Public/JSONModel" "${PODS_ROOT}/Headers/Public/Specta" "${PODS_ROOT}/Headers/Public/SwaggerClient" -OTHER_LDFLAGS = ${PODS_SWAGGERCLIENT_TESTS_EXPECTA_OTHER_LDFLAGS} -ObjC -PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-SwaggerClient_Tests -PODS_ROOT = ${SRCROOT} -SKIP_INSTALL = YES \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Expecta/Pods-SwaggerClient_Tests-Expecta-dummy.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Expecta/Pods-SwaggerClient_Tests-Expecta-dummy.m deleted file mode 100644 index 482295da5cb..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Expecta/Pods-SwaggerClient_Tests-Expecta-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_Pods_SwaggerClient_Tests_Expecta : NSObject -@end -@implementation PodsDummy_Pods_SwaggerClient_Tests_Expecta -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Expecta/Pods-SwaggerClient_Tests-Expecta-prefix.pch b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Expecta/Pods-SwaggerClient_Tests-Expecta-prefix.pch deleted file mode 100644 index a0fd887ec64..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Expecta/Pods-SwaggerClient_Tests-Expecta-prefix.pch +++ /dev/null @@ -1,5 +0,0 @@ -#ifdef __OBJC__ -#import -#endif - -#import "Pods-SwaggerClient_Tests-environment.h" diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Expecta/Pods-SwaggerClient_Tests-Expecta-umbrella.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Expecta/Pods-SwaggerClient_Tests-Expecta-umbrella.h deleted file mode 100644 index 79e13088a46..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Expecta/Pods-SwaggerClient_Tests-Expecta-umbrella.h +++ /dev/null @@ -1,45 +0,0 @@ -#import - -#import "EXPBlockDefinedMatcher.h" -#import "EXPDefines.h" -#import "EXPDoubleTuple.h" -#import "Expecta.h" -#import "ExpectaObject.h" -#import "ExpectaSupport.h" -#import "EXPExpect.h" -#import "EXPFloatTuple.h" -#import "EXPMatcher.h" -#import "EXPUnsupportedObject.h" -#import "EXPMatcherHelpers.h" -#import "EXPMatchers+beCloseTo.h" -#import "EXPMatchers+beFalsy.h" -#import "EXPMatchers+beginWith.h" -#import "EXPMatchers+beGreaterThan.h" -#import "EXPMatchers+beGreaterThanOrEqualTo.h" -#import "EXPMatchers+beIdenticalTo.h" -#import "EXPMatchers+beInstanceOf.h" -#import "EXPMatchers+beInTheRangeOf.h" -#import "EXPMatchers+beKindOf.h" -#import "EXPMatchers+beLessThan.h" -#import "EXPMatchers+beLessThanOrEqualTo.h" -#import "EXPMatchers+beNil.h" -#import "EXPMatchers+beSubclassOf.h" -#import "EXPMatchers+beSupersetOf.h" -#import "EXPMatchers+beTruthy.h" -#import "EXPMatchers+conformTo.h" -#import "EXPMatchers+contain.h" -#import "EXPMatchers+endWith.h" -#import "EXPMatchers+equal.h" -#import "EXPMatchers+haveCountOf.h" -#import "EXPMatchers+match.h" -#import "EXPMatchers+postNotification.h" -#import "EXPMatchers+raise.h" -#import "EXPMatchers+raiseWithReason.h" -#import "EXPMatchers+respondTo.h" -#import "EXPMatchers.h" -#import "NSObject+Expecta.h" -#import "NSValue+Expecta.h" - -FOUNDATION_EXPORT double ExpectaVersionNumber; -FOUNDATION_EXPORT const unsigned char ExpectaVersionString[]; - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Expecta/Pods-SwaggerClient_Tests-Expecta.modulemap b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Expecta/Pods-SwaggerClient_Tests-Expecta.modulemap deleted file mode 100644 index 6c1abefa610..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Expecta/Pods-SwaggerClient_Tests-Expecta.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module Expecta { - umbrella header "Pods-SwaggerClient_Tests-Expecta-umbrella.h" - - export * - module * { export * } -} diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Expecta/Pods-SwaggerClient_Tests-Expecta.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Expecta/Pods-SwaggerClient_Tests-Expecta.xcconfig deleted file mode 100644 index 2aa144b52d8..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Expecta/Pods-SwaggerClient_Tests-Expecta.xcconfig +++ /dev/null @@ -1,2 +0,0 @@ -PODS_SWAGGERCLIENT_TESTS_EXPECTA_FRAMEWORK_SEARCH_PATHS = $(inherited) $(DEVELOPER_FRAMEWORKS_DIR) "$(PLATFORM_DIR)/Developer/Library/Frameworks" "$(DEVELOPER_DIR)/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks" "$(SDKROOT)/Developer/Library/Frameworks" -PODS_SWAGGERCLIENT_TESTS_EXPECTA_OTHER_LDFLAGS = -framework "Foundation" -framework "XCTest" \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Info.plist b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Info.plist deleted file mode 100644 index 08376429b62..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - org.cocoapods.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - 0.3.0 - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - NSPrincipalClass - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601-Private.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601-Private.xcconfig deleted file mode 100644 index ed2be536d46..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601-Private.xcconfig +++ /dev/null @@ -1,9 +0,0 @@ -#include "Pods-SwaggerClient_Tests-ISO8601.xcconfig" -CONFIGURATION_BUILD_DIR = $PODS_FRAMEWORK_BUILD_PATH -FRAMEWORK_SEARCH_PATHS = "$PODS_FRAMEWORK_BUILD_PATH" -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/ISO8601" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/Expecta" "${PODS_ROOT}/Headers/Public/ISO8601" "${PODS_ROOT}/Headers/Public/JSONModel" "${PODS_ROOT}/Headers/Public/Specta" "${PODS_ROOT}/Headers/Public/SwaggerClient" -OTHER_LDFLAGS = ${PODS_SWAGGERCLIENT_TESTS_ISO_____OTHER_LDFLAGS} -ObjC -PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-SwaggerClient_Tests -PODS_ROOT = ${SRCROOT} -SKIP_INSTALL = YES \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601-dummy.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601-dummy.m deleted file mode 100644 index 11ef219610c..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_Pods_SwaggerClient_Tests_ISO8601 : NSObject -@end -@implementation PodsDummy_Pods_SwaggerClient_Tests_ISO8601 -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601-prefix.pch b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601-prefix.pch deleted file mode 100644 index a0fd887ec64..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601-prefix.pch +++ /dev/null @@ -1,5 +0,0 @@ -#ifdef __OBJC__ -#import -#endif - -#import "Pods-SwaggerClient_Tests-environment.h" diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601-umbrella.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601-umbrella.h deleted file mode 100644 index cb8c2f8c323..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601-umbrella.h +++ /dev/null @@ -1,9 +0,0 @@ -#import - -#import "ISO8601.h" -#import "ISO8601Serialization.h" -#import "NSDate+ISO8601.h" - -FOUNDATION_EXPORT double ISO8601VersionNumber; -FOUNDATION_EXPORT const unsigned char ISO8601VersionString[]; - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601.modulemap b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601.modulemap deleted file mode 100644 index 9b57225fa7b..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module ISO8601 { - umbrella header "Pods-SwaggerClient_Tests-ISO8601-umbrella.h" - - export * - module * { export * } -} diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601.xcconfig deleted file mode 100644 index d9702176287..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-ISO8601/Pods-SwaggerClient_Tests-ISO8601.xcconfig +++ /dev/null @@ -1 +0,0 @@ -PODS_SWAGGERCLIENT_TESTS_ISO_____OTHER_LDFLAGS = -framework "Foundation" \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Info.plist b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Info.plist deleted file mode 100644 index 01903d77110..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - org.cocoapods.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.1.0 - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - NSPrincipalClass - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel-Private.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel-Private.xcconfig deleted file mode 100644 index ba2e6833224..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel-Private.xcconfig +++ /dev/null @@ -1,9 +0,0 @@ -#include "Pods-SwaggerClient_Tests-JSONModel.xcconfig" -CONFIGURATION_BUILD_DIR = $PODS_FRAMEWORK_BUILD_PATH -FRAMEWORK_SEARCH_PATHS = "$PODS_FRAMEWORK_BUILD_PATH" -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/JSONModel" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/Expecta" "${PODS_ROOT}/Headers/Public/ISO8601" "${PODS_ROOT}/Headers/Public/JSONModel" "${PODS_ROOT}/Headers/Public/Specta" "${PODS_ROOT}/Headers/Public/SwaggerClient" -OTHER_LDFLAGS = -ObjC -PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-SwaggerClient_Tests -PODS_ROOT = ${SRCROOT} -SKIP_INSTALL = YES \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel-dummy.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel-dummy.m deleted file mode 100644 index 448bc3508f5..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_Pods_SwaggerClient_Tests_JSONModel : NSObject -@end -@implementation PodsDummy_Pods_SwaggerClient_Tests_JSONModel -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel-prefix.pch b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel-prefix.pch deleted file mode 100644 index a0fd887ec64..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel-prefix.pch +++ /dev/null @@ -1,5 +0,0 @@ -#ifdef __OBJC__ -#import -#endif - -#import "Pods-SwaggerClient_Tests-environment.h" diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel-umbrella.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel-umbrella.h deleted file mode 100644 index a976352169b..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel-umbrella.h +++ /dev/null @@ -1,17 +0,0 @@ -#import - -#import "JSONModel.h" -#import "JSONModelArray.h" -#import "JSONModelClassProperty.h" -#import "JSONModelError.h" -#import "NSArray+JSONModel.h" -#import "JSONModelLib.h" -#import "JSONAPI.h" -#import "JSONHTTPClient.h" -#import "JSONModel+networking.h" -#import "JSONKeyMapper.h" -#import "JSONValueTransformer.h" - -FOUNDATION_EXPORT double JSONModelVersionNumber; -FOUNDATION_EXPORT const unsigned char JSONModelVersionString[]; - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel.modulemap b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel.modulemap deleted file mode 100644 index fe2c58e963a..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module JSONModel { - umbrella header "Pods-SwaggerClient_Tests-JSONModel-umbrella.h" - - export * - module * { export * } -} diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-JSONModel/Pods-SwaggerClient_Tests-JSONModel.xcconfig deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Specta/Info.plist b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Specta/Info.plist deleted file mode 100644 index 98bb3e157b3..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Specta/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - org.cocoapods.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0.2 - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - NSPrincipalClass - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Specta/Pods-SwaggerClient_Tests-Specta-Private.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Specta/Pods-SwaggerClient_Tests-Specta-Private.xcconfig deleted file mode 100644 index d5415cec587..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Specta/Pods-SwaggerClient_Tests-Specta-Private.xcconfig +++ /dev/null @@ -1,9 +0,0 @@ -#include "Pods-SwaggerClient_Tests-Specta.xcconfig" -CONFIGURATION_BUILD_DIR = $PODS_FRAMEWORK_BUILD_PATH -FRAMEWORK_SEARCH_PATHS = "$PODS_FRAMEWORK_BUILD_PATH" ${PODS_SWAGGERCLIENT_TESTS_SPECTA_FRAMEWORK_SEARCH_PATHS} -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/Specta" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/Expecta" "${PODS_ROOT}/Headers/Public/ISO8601" "${PODS_ROOT}/Headers/Public/JSONModel" "${PODS_ROOT}/Headers/Public/Specta" "${PODS_ROOT}/Headers/Public/SwaggerClient" -OTHER_LDFLAGS = ${PODS_SWAGGERCLIENT_TESTS_SPECTA_OTHER_LDFLAGS} -ObjC -PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-SwaggerClient_Tests -PODS_ROOT = ${SRCROOT} -SKIP_INSTALL = YES \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Specta/Pods-SwaggerClient_Tests-Specta-dummy.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Specta/Pods-SwaggerClient_Tests-Specta-dummy.m deleted file mode 100644 index 45689da3374..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Specta/Pods-SwaggerClient_Tests-Specta-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_Pods_SwaggerClient_Tests_Specta : NSObject -@end -@implementation PodsDummy_Pods_SwaggerClient_Tests_Specta -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Specta/Pods-SwaggerClient_Tests-Specta-prefix.pch b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Specta/Pods-SwaggerClient_Tests-Specta-prefix.pch deleted file mode 100644 index a0fd887ec64..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Specta/Pods-SwaggerClient_Tests-Specta-prefix.pch +++ /dev/null @@ -1,5 +0,0 @@ -#ifdef __OBJC__ -#import -#endif - -#import "Pods-SwaggerClient_Tests-environment.h" diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Specta/Pods-SwaggerClient_Tests-Specta-umbrella.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Specta/Pods-SwaggerClient_Tests-Specta-umbrella.h deleted file mode 100644 index c6cc903818a..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Specta/Pods-SwaggerClient_Tests-Specta-umbrella.h +++ /dev/null @@ -1,21 +0,0 @@ -#import - -#import "Specta.h" -#import "SpectaDSL.h" -#import "SpectaTypes.h" -#import "SpectaUtility.h" -#import "SPTCallSite.h" -#import "SPTCompiledExample.h" -#import "SPTExample.h" -#import "SPTExampleGroup.h" -#import "SPTExcludeGlobalBeforeAfterEach.h" -#import "SPTGlobalBeforeAfterEach.h" -#import "SPTSharedExampleGroups.h" -#import "SPTSpec.h" -#import "SPTTestSuite.h" -#import "XCTest+Private.h" -#import "XCTestCase+Specta.h" - -FOUNDATION_EXPORT double SpectaVersionNumber; -FOUNDATION_EXPORT const unsigned char SpectaVersionString[]; - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Specta/Pods-SwaggerClient_Tests-Specta.modulemap b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Specta/Pods-SwaggerClient_Tests-Specta.modulemap deleted file mode 100644 index 3c36f0e1733..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Specta/Pods-SwaggerClient_Tests-Specta.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module Specta { - umbrella header "Pods-SwaggerClient_Tests-Specta-umbrella.h" - - export * - module * { export * } -} diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Specta/Pods-SwaggerClient_Tests-Specta.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Specta/Pods-SwaggerClient_Tests-Specta.xcconfig deleted file mode 100644 index 23ae7b74d46..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-Specta/Pods-SwaggerClient_Tests-Specta.xcconfig +++ /dev/null @@ -1,2 +0,0 @@ -PODS_SWAGGERCLIENT_TESTS_SPECTA_FRAMEWORK_SEARCH_PATHS = $(inherited) $(DEVELOPER_FRAMEWORKS_DIR) "$(PLATFORM_DIR)/Developer/Library/Frameworks" "$(DEVELOPER_DIR)/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks" "$(SDKROOT)/Developer/Library/Frameworks" -PODS_SWAGGERCLIENT_TESTS_SPECTA_OTHER_LDFLAGS = -framework "Foundation" -framework "XCTest" \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Info.plist b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Info.plist deleted file mode 100644 index 4ba5fa28b78..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - org.cocoapods.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - 0.1.0 - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - NSPrincipalClass - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient-Private.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient-Private.xcconfig deleted file mode 100644 index 1a0bff64c1f..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient-Private.xcconfig +++ /dev/null @@ -1,9 +0,0 @@ -#include "Pods-SwaggerClient_Tests-SwaggerClient.xcconfig" -CONFIGURATION_BUILD_DIR = $PODS_FRAMEWORK_BUILD_PATH -FRAMEWORK_SEARCH_PATHS = "$PODS_FRAMEWORK_BUILD_PATH" -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/SwaggerClient" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/Expecta" "${PODS_ROOT}/Headers/Public/ISO8601" "${PODS_ROOT}/Headers/Public/JSONModel" "${PODS_ROOT}/Headers/Public/Specta" "${PODS_ROOT}/Headers/Public/SwaggerClient" -OTHER_LDFLAGS = -ObjC -PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-SwaggerClient_Tests -PODS_ROOT = ${SRCROOT} -SKIP_INSTALL = YES \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient-dummy.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient-dummy.m deleted file mode 100644 index 2ffbcb3c277..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_Pods_SwaggerClient_Tests_SwaggerClient : NSObject -@end -@implementation PodsDummy_Pods_SwaggerClient_Tests_SwaggerClient -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient-prefix.pch b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient-prefix.pch deleted file mode 100644 index a0fd887ec64..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient-prefix.pch +++ /dev/null @@ -1,5 +0,0 @@ -#ifdef __OBJC__ -#import -#endif - -#import "Pods-SwaggerClient_Tests-environment.h" diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient-umbrella.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient-umbrella.h deleted file mode 100644 index c06b45cd7d2..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient-umbrella.h +++ /dev/null @@ -1,24 +0,0 @@ -#import - -#import "JSONValueTransformer+ISO8601.h" -#import "SWGApiClient.h" -#import "SWGCategory.h" -#import "SWGConfiguration.h" -#import "SWGFile.h" -#import "SWGJSONRequestSerializer.h" -#import "SWGJSONResponseSerializer.h" -#import "SWGMyresult.h" -#import "SWGMythingApi.h" -#import "SWGObject.h" -#import "SWGOrder.h" -#import "SWGPet.h" -#import "SWGPetApi.h" -#import "SWGQueryParamCollection.h" -#import "SWGStoreApi.h" -#import "SWGTag.h" -#import "SWGUser.h" -#import "SWGUserApi.h" - -FOUNDATION_EXPORT double SwaggerClientVersionNumber; -FOUNDATION_EXPORT const unsigned char SwaggerClientVersionString[]; - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient.modulemap b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient.modulemap deleted file mode 100644 index 8f68ac79d83..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module SwaggerClient { - umbrella header "Pods-SwaggerClient_Tests-SwaggerClient-umbrella.h" - - export * - module * { export * } -} diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests-SwaggerClient/Pods-SwaggerClient_Tests-SwaggerClient.xcconfig deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Info.plist b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Info.plist deleted file mode 100644 index 69745425863..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - org.cocoapods.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0.0 - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - NSPrincipalClass - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests-acknowledgements.markdown b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests-acknowledgements.markdown deleted file mode 100644 index cfedc7b5ebb..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests-acknowledgements.markdown +++ /dev/null @@ -1,147 +0,0 @@ -# Acknowledgements -This application makes use of the following third party libraries: - -## AFNetworking - -Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - -## Expecta - -Copyright (c) 2011-2015 Specta Team - https://github.com/specta - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - -## ISO8601 - -Copyright (c) 2014 Sam Soffes, http://soff.es - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - -## JSONModel - -JSONModel - -Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -This code is distributed under the terms and conditions of the MIT license. - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in the -Software without restriction, including without limitation the rights to use, copy, -modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, -and to permit persons to whom the Software is furnished to do so, subject to the -following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, -INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF -CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE -OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - - -## Specta - -Copyright (c) 2012-2014 Specta Team. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - - -## SwaggerClient - -Copyright (c) 2015 geekerzp - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -Generated by CocoaPods - http://cocoapods.org diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests-acknowledgements.plist b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests-acknowledgements.plist deleted file mode 100644 index 33f0788f6e2..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests-acknowledgements.plist +++ /dev/null @@ -1,197 +0,0 @@ - - - - - PreferenceSpecifiers - - - FooterText - This application makes use of the following third party libraries: - Title - Acknowledgements - Type - PSGroupSpecifier - - - FooterText - Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - Title - AFNetworking - Type - PSGroupSpecifier - - - FooterText - Copyright (c) 2011-2015 Specta Team - https://github.com/specta - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - Title - Expecta - Type - PSGroupSpecifier - - - FooterText - Copyright (c) 2014 Sam Soffes, http://soff.es - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - Title - ISO8601 - Type - PSGroupSpecifier - - - FooterText - JSONModel - -Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. -This code is distributed under the terms and conditions of the MIT license. - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in the -Software without restriction, including without limitation the rights to use, copy, -modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, -and to permit persons to whom the Software is furnished to do so, subject to the -following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, -INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF -CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE -OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense - - Title - JSONModel - Type - PSGroupSpecifier - - - FooterText - Copyright (c) 2012-2014 Specta Team. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - - Title - Specta - Type - PSGroupSpecifier - - - FooterText - Copyright (c) 2015 geekerzp <geekerzp@gmail.com> - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - Title - SwaggerClient - Type - PSGroupSpecifier - - - FooterText - Generated by CocoaPods - http://cocoapods.org - Title - - Type - PSGroupSpecifier - - - StringsTable - Acknowledgements - Title - Acknowledgements - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests-dummy.m b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests-dummy.m deleted file mode 100644 index 3070d921688..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_Pods_SwaggerClient_Tests : NSObject -@end -@implementation PodsDummy_Pods_SwaggerClient_Tests -@end diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests-environment.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests-environment.h deleted file mode 100644 index 3705e69c6fb..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests-environment.h +++ /dev/null @@ -1,80 +0,0 @@ - -// To check if a library is compiled with CocoaPods you -// can use the `COCOAPODS` macro definition which is -// defined in the xcconfigs so it is available in -// headers also when they are imported in the client -// project. - - -// AFNetworking -#define COCOAPODS_POD_AVAILABLE_AFNetworking -#define COCOAPODS_VERSION_MAJOR_AFNetworking 2 -#define COCOAPODS_VERSION_MINOR_AFNetworking 5 -#define COCOAPODS_VERSION_PATCH_AFNetworking 4 - -// AFNetworking/NSURLConnection -#define COCOAPODS_POD_AVAILABLE_AFNetworking_NSURLConnection -#define COCOAPODS_VERSION_MAJOR_AFNetworking_NSURLConnection 2 -#define COCOAPODS_VERSION_MINOR_AFNetworking_NSURLConnection 5 -#define COCOAPODS_VERSION_PATCH_AFNetworking_NSURLConnection 4 - -// AFNetworking/NSURLSession -#define COCOAPODS_POD_AVAILABLE_AFNetworking_NSURLSession -#define COCOAPODS_VERSION_MAJOR_AFNetworking_NSURLSession 2 -#define COCOAPODS_VERSION_MINOR_AFNetworking_NSURLSession 5 -#define COCOAPODS_VERSION_PATCH_AFNetworking_NSURLSession 4 - -// AFNetworking/Reachability -#define COCOAPODS_POD_AVAILABLE_AFNetworking_Reachability -#define COCOAPODS_VERSION_MAJOR_AFNetworking_Reachability 2 -#define COCOAPODS_VERSION_MINOR_AFNetworking_Reachability 5 -#define COCOAPODS_VERSION_PATCH_AFNetworking_Reachability 4 - -// AFNetworking/Security -#define COCOAPODS_POD_AVAILABLE_AFNetworking_Security -#define COCOAPODS_VERSION_MAJOR_AFNetworking_Security 2 -#define COCOAPODS_VERSION_MINOR_AFNetworking_Security 5 -#define COCOAPODS_VERSION_PATCH_AFNetworking_Security 4 - -// AFNetworking/Serialization -#define COCOAPODS_POD_AVAILABLE_AFNetworking_Serialization -#define COCOAPODS_VERSION_MAJOR_AFNetworking_Serialization 2 -#define COCOAPODS_VERSION_MINOR_AFNetworking_Serialization 5 -#define COCOAPODS_VERSION_PATCH_AFNetworking_Serialization 4 - -// AFNetworking/UIKit -#define COCOAPODS_POD_AVAILABLE_AFNetworking_UIKit -#define COCOAPODS_VERSION_MAJOR_AFNetworking_UIKit 2 -#define COCOAPODS_VERSION_MINOR_AFNetworking_UIKit 5 -#define COCOAPODS_VERSION_PATCH_AFNetworking_UIKit 4 - -// Expecta -#define COCOAPODS_POD_AVAILABLE_Expecta -#define COCOAPODS_VERSION_MAJOR_Expecta 1 -#define COCOAPODS_VERSION_MINOR_Expecta 0 -#define COCOAPODS_VERSION_PATCH_Expecta 0 - -// ISO8601 -#define COCOAPODS_POD_AVAILABLE_ISO8601 -#define COCOAPODS_VERSION_MAJOR_ISO8601 0 -#define COCOAPODS_VERSION_MINOR_ISO8601 3 -#define COCOAPODS_VERSION_PATCH_ISO8601 0 - -// JSONModel -#define COCOAPODS_POD_AVAILABLE_JSONModel -#define COCOAPODS_VERSION_MAJOR_JSONModel 1 -#define COCOAPODS_VERSION_MINOR_JSONModel 1 -#define COCOAPODS_VERSION_PATCH_JSONModel 0 - -// Specta -#define COCOAPODS_POD_AVAILABLE_Specta -#define COCOAPODS_VERSION_MAJOR_Specta 1 -#define COCOAPODS_VERSION_MINOR_Specta 0 -#define COCOAPODS_VERSION_PATCH_Specta 2 - -// SwaggerClient -#define COCOAPODS_POD_AVAILABLE_SwaggerClient -#define COCOAPODS_VERSION_MAJOR_SwaggerClient 0 -#define COCOAPODS_VERSION_MINOR_SwaggerClient 1 -#define COCOAPODS_VERSION_PATCH_SwaggerClient 0 - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests-frameworks.sh b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests-frameworks.sh deleted file mode 100755 index 12a617f5427..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests-frameworks.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/sh -set -e - -echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" -mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - -SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" - -install_framework() -{ - local source="${BUILT_PRODUCTS_DIR}/Pods-SwaggerClient_Tests/$1" - local destination="${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - - if [ -L "${source}" ]; then - echo "Symlinked..." - source=$(readlink "${source}") - fi - - # use filter instead of exclude so missing patterns dont' throw errors - echo "rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers/" --filter "- PrivateHeaders/" --filter "- Modules/" ${source} ${destination}" - rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers/" --filter "- PrivateHeaders/" --filter "- Modules/" "${source}" "${destination}" - # Resign the code if required by the build settings to avoid unstable apps - if [ "${CODE_SIGNING_REQUIRED}" == "YES" ]; then - code_sign "${destination}/$1" - fi - - # Embed linked Swift runtime libraries - local basename - basename=$(echo $1 | sed -E s/\\..+// && exit ${PIPESTATUS[0]}) - local swift_runtime_libs - swift_runtime_libs=$(xcrun otool -LX "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/$1/${basename}" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) - for lib in $swift_runtime_libs; do - echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" - rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" - if [ "${CODE_SIGNING_REQUIRED}" == "YES" ]; then - code_sign "${destination}/${lib}" - fi - done -} - -# Signs a framework with the provided identity -code_sign() { - # Use the current code_sign_identitiy - echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" - echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements $1" - /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1" -} - - -if [[ "$CONFIGURATION" == "Debug" ]]; then - install_framework 'AFNetworking.framework' - install_framework 'Expecta.framework' - install_framework 'ISO8601.framework' - install_framework 'JSONModel.framework' - install_framework 'Specta.framework' - install_framework 'SwaggerClient.framework' -fi -if [[ "$CONFIGURATION" == "Release" ]]; then - install_framework 'AFNetworking.framework' - install_framework 'Expecta.framework' - install_framework 'ISO8601.framework' - install_framework 'JSONModel.framework' - install_framework 'Specta.framework' - install_framework 'SwaggerClient.framework' -fi diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests-resources.sh b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests-resources.sh deleted file mode 100755 index 43f08523e1c..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests-resources.sh +++ /dev/null @@ -1,93 +0,0 @@ -#!/bin/sh -set -e - -mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" - -RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt -> "$RESOURCES_TO_COPY" - -XCASSET_FILES=() - -realpath() { - DIRECTORY=$(cd "${1%/*}" && pwd) - FILENAME="${1##*/}" - echo "$DIRECTORY/$FILENAME" -} - -install_resource() -{ - case $1 in - *.storyboard) - echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" - ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" - ;; - *.xib) - echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" - ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" - ;; - *.framework) - echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - ;; - *.xcdatamodel) - echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" - xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" - ;; - *.xcdatamodeld) - echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" - xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" - ;; - *.xcmappingmodel) - echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" - xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" - ;; - *.xcassets) - ABSOLUTE_XCASSET_FILE=$(realpath "${PODS_ROOT}/$1") - XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") - ;; - /*) - echo "$1" - echo "$1" >> "$RESOURCES_TO_COPY" - ;; - *) - echo "${PODS_ROOT}/$1" - echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" - ;; - esac -} - -rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -if [[ "${ACTION}" == "install" ]]; then - rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -fi -rm -f "$RESOURCES_TO_COPY" - -if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] -then - case "${TARGETED_DEVICE_FAMILY}" in - 1,2) - TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" - ;; - 1) - TARGET_DEVICE_ARGS="--target-device iphone" - ;; - 2) - TARGET_DEVICE_ARGS="--target-device ipad" - ;; - *) - TARGET_DEVICE_ARGS="--target-device mac" - ;; - esac - - # Find all other xcassets (this unfortunately includes those of path pods and other targets). - OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) - while read line; do - if [[ $line != "`realpath $PODS_ROOT`*" ]]; then - XCASSET_FILES+=("$line") - fi - done <<<"$OTHER_XCASSETS" - - printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -fi diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests-umbrella.h b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests-umbrella.h deleted file mode 100644 index a7d41120961..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests-umbrella.h +++ /dev/null @@ -1,6 +0,0 @@ -#import - - -FOUNDATION_EXPORT double Pods_SwaggerClient_TestsVersionNumber; -FOUNDATION_EXPORT const unsigned char Pods_SwaggerClient_TestsVersionString[]; - diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests.debug.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests.debug.xcconfig deleted file mode 100644 index fe70161b278..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests.debug.xcconfig +++ /dev/null @@ -1,8 +0,0 @@ -FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_FRAMEWORK_BUILD_PATH" -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' -OTHER_CFLAGS = $(inherited) -iquote "$PODS_FRAMEWORK_BUILD_PATH/AFNetworking.framework/Headers" -iquote "$PODS_FRAMEWORK_BUILD_PATH/Expecta.framework/Headers" -iquote "$PODS_FRAMEWORK_BUILD_PATH/ISO8601.framework/Headers" -iquote "$PODS_FRAMEWORK_BUILD_PATH/JSONModel.framework/Headers" -iquote "$PODS_FRAMEWORK_BUILD_PATH/Specta.framework/Headers" -iquote "$PODS_FRAMEWORK_BUILD_PATH/SwaggerClient.framework/Headers" -OTHER_LDFLAGS = $(inherited) -ObjC -framework "AFNetworking" -framework "Expecta" -framework "ISO8601" -framework "JSONModel" -framework "Specta" -framework "SwaggerClient" -OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS) -PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-SwaggerClient_Tests -PODS_ROOT = ${SRCROOT}/Pods \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests.modulemap b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests.modulemap deleted file mode 100644 index 9701f82c7d4..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module Pods_SwaggerClient_Tests { - umbrella header "Pods-SwaggerClient_Tests-umbrella.h" - - export * - module * { export * } -} diff --git a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests.release.xcconfig b/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests.release.xcconfig deleted file mode 100644 index fe70161b278..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/Pods/Target Support Files/Pods-SwaggerClient_Tests/Pods-SwaggerClient_Tests.release.xcconfig +++ /dev/null @@ -1,8 +0,0 @@ -FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_FRAMEWORK_BUILD_PATH" -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' -OTHER_CFLAGS = $(inherited) -iquote "$PODS_FRAMEWORK_BUILD_PATH/AFNetworking.framework/Headers" -iquote "$PODS_FRAMEWORK_BUILD_PATH/Expecta.framework/Headers" -iquote "$PODS_FRAMEWORK_BUILD_PATH/ISO8601.framework/Headers" -iquote "$PODS_FRAMEWORK_BUILD_PATH/JSONModel.framework/Headers" -iquote "$PODS_FRAMEWORK_BUILD_PATH/Specta.framework/Headers" -iquote "$PODS_FRAMEWORK_BUILD_PATH/SwaggerClient.framework/Headers" -OTHER_LDFLAGS = $(inherited) -ObjC -framework "AFNetworking" -framework "Expecta" -framework "ISO8601" -framework "JSONModel" -framework "Specta" -framework "SwaggerClient" -OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS) -PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-SwaggerClient_Tests -PODS_ROOT = ${SRCROOT}/Pods \ No newline at end of file diff --git a/samples/client/petstore/objc/SwaggerClientTests/SwaggerClient.xcworkspace/contents.xcworkspacedata b/samples/client/petstore/objc/SwaggerClientTests/SwaggerClient.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 9b3fa18954f..00000000000 --- a/samples/client/petstore/objc/SwaggerClientTests/SwaggerClient.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/samples/client/petstore/objc/SwaggerClientTests/SwaggerClient.xcworkspace/xcuserdata/geekerzp.xcuserdatad/UserInterfaceState.xcuserstate b/samples/client/petstore/objc/SwaggerClientTests/SwaggerClient.xcworkspace/xcuserdata/geekerzp.xcuserdatad/UserInterfaceState.xcuserstate deleted file mode 100644 index ddc6d5bd9aa..00000000000 Binary files a/samples/client/petstore/objc/SwaggerClientTests/SwaggerClient.xcworkspace/xcuserdata/geekerzp.xcuserdatad/UserInterfaceState.xcuserstate and /dev/null differ