From d37e7533969d4aba2a8c390ba18680c126b3f05e Mon Sep 17 00:00:00 2001 From: KWANG HYOUN KIM Date: Wed, 23 Jan 2019 19:01:10 +0900 Subject: [PATCH] Updated: gitignore file to exclude Pods folder of Example. Changed: remove dependency of ObjectMapper. --- .gitignore | 3 +- APNSUtil.podspec | 3 +- APNSUtil/Classes/APNSManager.swift | 18 +- APNSUtilAppExtension.podspec | 3 +- Example/APNSUtil.xcodeproj/project.pbxproj | 6 +- .../xcshareddata/IDEWorkspaceChecks.plist | 8 + Example/APNSUtil/APNSPayload.swift | 12 +- Example/Podfile | 2 +- Example/Podfile.lock | 17 +- .../Pods/Local Podspecs/APNSUtil.podspec.json | 40 - Example/Pods/Manifest.lock | 23 - Example/Pods/ObjectMapper/LICENSE | 8 - Example/Pods/ObjectMapper/README-CN.md | 502 -------- .../Sources/CustomDateFormatTransform.swift | 40 - .../ObjectMapper/Sources/DataTransform.swift | 50 - .../Sources/DateFormatterTransform.swift | 54 - .../ObjectMapper/Sources/DateTransform.swift | 55 - .../Sources/DictionaryTransform.swift | 58 - .../ObjectMapper/Sources/EnumOperators.swift | 100 -- .../ObjectMapper/Sources/EnumTransform.swift | 50 - .../Pods/ObjectMapper/Sources/FromJSON.swift | 202 ---- .../Sources/HexColorTransform.swift | 126 -- .../Sources/ISO8601DateTransform.swift | 47 - .../Sources/ImmutableMappable.swift | 321 ----- .../Sources/IntegerOperators.swift | 151 --- Example/Pods/ObjectMapper/Sources/Map.swift | 204 ---- .../Pods/ObjectMapper/Sources/MapError.swift | 68 -- .../Pods/ObjectMapper/Sources/Mappable.swift | 136 --- .../Pods/ObjectMapper/Sources/Mapper.swift | 490 -------- .../Sources/NSDecimalNumberTransform.swift | 52 - .../Pods/ObjectMapper/Sources/Operators.swift | 398 ------- .../Pods/ObjectMapper/Sources/ToJSON.swift | 181 --- .../ObjectMapper/Sources/TransformOf.swift | 48 - .../Sources/TransformOperators.swift | 689 ----------- .../ObjectMapper/Sources/TransformType.swift | 35 - .../ObjectMapper/Sources/URLTransform.swift | 67 -- Example/Pods/Pods.xcodeproj/project.pbxproj | 1049 ----------------- .../APNSUtil/APNSUtil-dummy.m | 5 - .../APNSUtil/APNSUtil-prefix.pch | 12 - .../APNSUtil/APNSUtil-umbrella.h | 16 - .../APNSUtil/APNSUtil.modulemap | 6 - .../APNSUtil/APNSUtil.xcconfig | 10 - .../Target Support Files/APNSUtil/Info.plist | 26 - .../ObjectMapper/Info.plist | 26 - .../ObjectMapper/ObjectMapper-dummy.m | 5 - .../ObjectMapper/ObjectMapper-prefix.pch | 12 - .../ObjectMapper/ObjectMapper-umbrella.h | 16 - .../ObjectMapper/ObjectMapper.modulemap | 6 - .../ObjectMapper/ObjectMapper.xcconfig | 9 - .../Pods-APNSUtil_Example/Info.plist | 26 - ...APNSUtil_Example-acknowledgements.markdown | 40 - ...ds-APNSUtil_Example-acknowledgements.plist | 78 -- .../Pods-APNSUtil_Example-dummy.m | 5 - .../Pods-APNSUtil_Example-frameworks.sh | 155 --- .../Pods-APNSUtil_Example-resources.sh | 118 -- .../Pods-APNSUtil_Example-umbrella.h | 16 - .../Pods-APNSUtil_Example.debug.xcconfig | 11 - .../Pods-APNSUtil_Example.modulemap | 6 - .../Pods-APNSUtil_Example.release.xcconfig | 11 - .../Pods-APNSUtil_Tests/Info.plist | 26 - ...s-APNSUtil_Tests-acknowledgements.markdown | 3 - ...Pods-APNSUtil_Tests-acknowledgements.plist | 29 - .../Pods-APNSUtil_Tests-dummy.m | 5 - .../Pods-APNSUtil_Tests-frameworks.sh | 146 --- .../Pods-APNSUtil_Tests-resources.sh | 118 -- .../Pods-APNSUtil_Tests-umbrella.h | 16 - .../Pods-APNSUtil_Tests.debug.xcconfig | 8 - .../Pods-APNSUtil_Tests.modulemap | 6 - .../Pods-APNSUtil_Tests.release.xcconfig | 8 - 69 files changed, 31 insertions(+), 6265 deletions(-) create mode 100644 Example/APNSUtil.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist delete mode 100644 Example/Pods/Local Podspecs/APNSUtil.podspec.json delete mode 100644 Example/Pods/Manifest.lock delete mode 100644 Example/Pods/ObjectMapper/LICENSE delete mode 100644 Example/Pods/ObjectMapper/README-CN.md delete mode 100644 Example/Pods/ObjectMapper/Sources/CustomDateFormatTransform.swift delete mode 100644 Example/Pods/ObjectMapper/Sources/DataTransform.swift delete mode 100644 Example/Pods/ObjectMapper/Sources/DateFormatterTransform.swift delete mode 100644 Example/Pods/ObjectMapper/Sources/DateTransform.swift delete mode 100644 Example/Pods/ObjectMapper/Sources/DictionaryTransform.swift delete mode 100644 Example/Pods/ObjectMapper/Sources/EnumOperators.swift delete mode 100644 Example/Pods/ObjectMapper/Sources/EnumTransform.swift delete mode 100755 Example/Pods/ObjectMapper/Sources/FromJSON.swift delete mode 100644 Example/Pods/ObjectMapper/Sources/HexColorTransform.swift delete mode 100644 Example/Pods/ObjectMapper/Sources/ISO8601DateTransform.swift delete mode 100644 Example/Pods/ObjectMapper/Sources/ImmutableMappable.swift delete mode 100644 Example/Pods/ObjectMapper/Sources/IntegerOperators.swift delete mode 100644 Example/Pods/ObjectMapper/Sources/Map.swift delete mode 100644 Example/Pods/ObjectMapper/Sources/MapError.swift delete mode 100644 Example/Pods/ObjectMapper/Sources/Mappable.swift delete mode 100755 Example/Pods/ObjectMapper/Sources/Mapper.swift delete mode 100644 Example/Pods/ObjectMapper/Sources/NSDecimalNumberTransform.swift delete mode 100755 Example/Pods/ObjectMapper/Sources/Operators.swift delete mode 100644 Example/Pods/ObjectMapper/Sources/ToJSON.swift delete mode 100644 Example/Pods/ObjectMapper/Sources/TransformOf.swift delete mode 100644 Example/Pods/ObjectMapper/Sources/TransformOperators.swift delete mode 100644 Example/Pods/ObjectMapper/Sources/TransformType.swift delete mode 100644 Example/Pods/ObjectMapper/Sources/URLTransform.swift delete mode 100644 Example/Pods/Pods.xcodeproj/project.pbxproj delete mode 100644 Example/Pods/Target Support Files/APNSUtil/APNSUtil-dummy.m delete mode 100644 Example/Pods/Target Support Files/APNSUtil/APNSUtil-prefix.pch delete mode 100644 Example/Pods/Target Support Files/APNSUtil/APNSUtil-umbrella.h delete mode 100644 Example/Pods/Target Support Files/APNSUtil/APNSUtil.modulemap delete mode 100644 Example/Pods/Target Support Files/APNSUtil/APNSUtil.xcconfig delete mode 100644 Example/Pods/Target Support Files/APNSUtil/Info.plist delete mode 100644 Example/Pods/Target Support Files/ObjectMapper/Info.plist delete mode 100644 Example/Pods/Target Support Files/ObjectMapper/ObjectMapper-dummy.m delete mode 100644 Example/Pods/Target Support Files/ObjectMapper/ObjectMapper-prefix.pch delete mode 100644 Example/Pods/Target Support Files/ObjectMapper/ObjectMapper-umbrella.h delete mode 100644 Example/Pods/Target Support Files/ObjectMapper/ObjectMapper.modulemap delete mode 100644 Example/Pods/Target Support Files/ObjectMapper/ObjectMapper.xcconfig delete mode 100644 Example/Pods/Target Support Files/Pods-APNSUtil_Example/Info.plist delete mode 100644 Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-acknowledgements.markdown delete mode 100644 Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-acknowledgements.plist delete mode 100644 Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-dummy.m delete mode 100755 Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-frameworks.sh delete mode 100755 Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-resources.sh delete mode 100644 Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-umbrella.h delete mode 100644 Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example.debug.xcconfig delete mode 100644 Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example.modulemap delete mode 100644 Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example.release.xcconfig delete mode 100644 Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Info.plist delete mode 100644 Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-acknowledgements.markdown delete mode 100644 Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-acknowledgements.plist delete mode 100644 Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-dummy.m delete mode 100755 Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-frameworks.sh delete mode 100755 Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-resources.sh delete mode 100644 Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-umbrella.h delete mode 100644 Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests.debug.xcconfig delete mode 100644 Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests.modulemap delete mode 100644 Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests.release.xcconfig diff --git a/.gitignore b/.gitignore index 5d40f71..f19f0c4 100644 --- a/.gitignore +++ b/.gitignore @@ -45,7 +45,8 @@ playground.xcworkspace # you should judge for yourself, the pros and cons are mentioned at: # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control # -# Pods/ +Pods/ +Example/Pods/ # Carthage # diff --git a/APNSUtil.podspec b/APNSUtil.podspec index e534289..19cc05f 100644 --- a/APNSUtil.podspec +++ b/APNSUtil.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'APNSUtil' - s.version = '1.1.5' + s.version = '1.2.0' s.summary = 'APNSUtil is makes code simple using apple push notification service.' s.description = 'APNSUtil is makes code simple using apple push notification service.' s.homepage = 'https://github.com/pisces/APNSUtil' @@ -17,5 +17,4 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/pisces/APNSUtil.git', :tag => s.version.to_s } s.ios.deployment_target = '9.0' s.source_files = 'APNSUtil/Classes/**/*' - s.dependency 'ObjectMapper', '~> 3.1' end diff --git a/APNSUtil/Classes/APNSManager.swift b/APNSUtil/Classes/APNSManager.swift index 903f65b..9ac721b 100644 --- a/APNSUtil/Classes/APNSManager.swift +++ b/APNSUtil/Classes/APNSManager.swift @@ -8,7 +8,6 @@ import UIKit import UserNotifications -import ObjectMapper public class APNSManager { @@ -43,16 +42,19 @@ public class APNSManager { dequeue() return self } - public func didFinishLaunching(withOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?, as type: T.Type) { + public func didFinishLaunching(withOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?, as type: T.Type) { let remote = launchOptions?[UIApplicationLaunchOptionsKey.remoteNotification] as? [AnyHashable: Any] let local = launchOptions?[UIApplicationLaunchOptionsKey.localNotification] as? [AnyHashable: Any] guard let userInfo = remote ?? local else {return} didReceive(userInfo: userInfo, as: type, isInactive: true) } - public func didReceive(userInfo: [AnyHashable : Any], as: T.Type, isInactive: Bool) { - let map = Map(mappingType: .fromJSON, JSON: userInfo as! [String: Any]) - let model = T.init(map: map)! - enqueue(RemoteNotificationElement(isInactive: isInactive, model: model)).dequeue() + public func didReceive(userInfo: [AnyHashable : Any], as: T.Type, isInactive: Bool) { + do { + let data = try JSONSerialization.data(withJSONObject: userInfo, options: .prettyPrinted) + let model = try JSONDecoder().decode(`as`, from: data) + enqueue(RemoteNotificationElement(isInactive: isInactive, model: model)).dequeue() + } catch { + } } public func processing(_ subscribable: Subscribable, _ closure: @escaping Processing) -> APNSManager { guard processingClosureMap[subscribable.hash] == nil else {return self} @@ -132,7 +134,7 @@ public class APNSManager { } public struct RemoteNotificationElement { - public typealias T = Mappable + public typealias T = Decodable public private(set) var isInactive: Bool = false private var model: T! @@ -142,7 +144,7 @@ public struct RemoteNotificationElement { self.model = model } - public func payload() -> E { + public func payload() -> E { return model as! E } } diff --git a/APNSUtilAppExtension.podspec b/APNSUtilAppExtension.podspec index d756ed6..71b64f3 100644 --- a/APNSUtilAppExtension.podspec +++ b/APNSUtilAppExtension.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'APNSUtilAppExtension' - s.version = '1.1.5' + s.version = '1.2.0' s.summary = 'APNSUtil is makes code simple using apple push notification service.' s.description = 'APNSUtil is makes code simple using apple push notification service.' s.homepage = 'https://github.com/pisces/APNSUtil' @@ -17,6 +17,5 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/pisces/APNSUtil.git', :tag => s.version.to_s } s.ios.deployment_target = '9.0' s.source_files = 'APNSUtil/Classes/**/*' - s.dependency 'ObjectMapper', '~> 3.1' s.pod_target_xcconfig = { 'OTHER_SWIFT_FLAGS' => '-DAPP_EXTENSIONS' } end diff --git a/Example/APNSUtil.xcodeproj/project.pbxproj b/Example/APNSUtil.xcodeproj/project.pbxproj index 1d73955..ae2c5ed 100644 --- a/Example/APNSUtil.xcodeproj/project.pbxproj +++ b/Example/APNSUtil.xcodeproj/project.pbxproj @@ -288,18 +288,16 @@ files = ( ); inputPaths = ( - "${SRCROOT}/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-frameworks.sh", + "${PODS_ROOT}/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-frameworks.sh", "${BUILT_PRODUCTS_DIR}/APNSUtil/APNSUtil.framework", - "${BUILT_PRODUCTS_DIR}/ObjectMapper/ObjectMapper.framework", ); name = "[CP] Embed Pods Frameworks"; outputPaths = ( "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/APNSUtil.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ObjectMapper.framework", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-frameworks.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; BDAD0D8957304EFC768F6D68 /* [CP] Check Pods Manifest.lock */ = { diff --git a/Example/APNSUtil.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Example/APNSUtil.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/Example/APNSUtil.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Example/APNSUtil/APNSPayload.swift b/Example/APNSUtil/APNSPayload.swift index 7c3093c..1b14938 100644 --- a/Example/APNSUtil/APNSPayload.swift +++ b/Example/APNSUtil/APNSPayload.swift @@ -7,23 +7,13 @@ // import APNSUtil -import ObjectMapper extension RemoteNotificationElement { typealias T = APNSPayload } -struct APNSPayload: Mappable { +struct APNSPayload: Decodable { var msg: String? var id: String? - - init?(map: Map) { - mapping(map: map) - } - - mutating func mapping(map: Map) { - msg <- map["msg"] - id <- map["id"] - } } diff --git a/Example/Podfile b/Example/Podfile index bd08d8b..623c5a6 100644 --- a/Example/Podfile +++ b/Example/Podfile @@ -1,7 +1,7 @@ use_frameworks! target 'APNSUtil_Example' do - pod 'APNSUtil/AppExtension', :path => '../' + pod 'APNSUtil', :path => '../' target 'APNSUtil_Tests' do inherit! :search_paths diff --git a/Example/Podfile.lock b/Example/Podfile.lock index 5449a13..054ae54 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -1,23 +1,16 @@ PODS: - - APNSUtil/AppExtension (1.1.4): - - ObjectMapper (~> 3.1) - - ObjectMapper (3.3.0) + - APNSUtil (1.2.0) DEPENDENCIES: - - APNSUtil/AppExtension (from `../`) - -SPEC REPOS: - https://github.com/cocoapods/specs.git: - - ObjectMapper + - APNSUtil (from `../`) EXTERNAL SOURCES: APNSUtil: :path: "../" SPEC CHECKSUMS: - APNSUtil: f17545141df5eced25cbe5cbd6381ba4b79b9247 - ObjectMapper: b612bf8c8e99c4dc0bb6013a51f7c27966ed5da9 + APNSUtil: 0cb42dffae8b96391243270c1c0566e5f64022a6 -PODFILE CHECKSUM: 7563841551ece1485579af146b74c9ca08ddb06d +PODFILE CHECKSUM: 682a114a47371b5a83ba6292e00758c19f6a5987 -COCOAPODS: 1.5.3 +COCOAPODS: 1.6.0.beta.2 diff --git a/Example/Pods/Local Podspecs/APNSUtil.podspec.json b/Example/Pods/Local Podspecs/APNSUtil.podspec.json deleted file mode 100644 index a21b403..0000000 --- a/Example/Pods/Local Podspecs/APNSUtil.podspec.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "APNSUtil", - "version": "1.1.4", - "summary": "APNSUtil is makes code simple using apple push notification service.", - "description": "APNSUtil is makes code simple using apple push notification service.", - "homepage": "https://github.com/pisces/APNSUtil", - "license": { - "type": "MIT", - "file": "LICENSE" - }, - "authors": { - "pisces": "hh963103@gmail.com" - }, - "source": { - "git": "https://github.com/pisces/APNSUtil.git", - "tag": "1.1.4" - }, - "platforms": { - "ios": "9.0" - }, - "dependencies": { - "ObjectMapper": [ - "~> 3.1" - ] - }, - "default_subspecs": "Core", - "subspecs": [ - { - "name": "Core", - "source_files": "APNSUtil/Classes/**/*" - }, - { - "name": "AppExtension", - "source_files": "APNSUtil/Classes/**/*", - "pod_target_xcconfig": { - "OTHER_SWIFT_FLAGS": "-DEXTENSIONS" - } - } - ] -} diff --git a/Example/Pods/Manifest.lock b/Example/Pods/Manifest.lock deleted file mode 100644 index 5449a13..0000000 --- a/Example/Pods/Manifest.lock +++ /dev/null @@ -1,23 +0,0 @@ -PODS: - - APNSUtil/AppExtension (1.1.4): - - ObjectMapper (~> 3.1) - - ObjectMapper (3.3.0) - -DEPENDENCIES: - - APNSUtil/AppExtension (from `../`) - -SPEC REPOS: - https://github.com/cocoapods/specs.git: - - ObjectMapper - -EXTERNAL SOURCES: - APNSUtil: - :path: "../" - -SPEC CHECKSUMS: - APNSUtil: f17545141df5eced25cbe5cbd6381ba4b79b9247 - ObjectMapper: b612bf8c8e99c4dc0bb6013a51f7c27966ed5da9 - -PODFILE CHECKSUM: 7563841551ece1485579af146b74c9ca08ddb06d - -COCOAPODS: 1.5.3 diff --git a/Example/Pods/ObjectMapper/LICENSE b/Example/Pods/ObjectMapper/LICENSE deleted file mode 100644 index be48bc6..0000000 --- a/Example/Pods/ObjectMapper/LICENSE +++ /dev/null @@ -1,8 +0,0 @@ -The MIT License (MIT) -Copyright (c) 2014 Hearst - -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/Example/Pods/ObjectMapper/README-CN.md b/Example/Pods/ObjectMapper/README-CN.md deleted file mode 100644 index b1a0209..0000000 --- a/Example/Pods/ObjectMapper/README-CN.md +++ /dev/null @@ -1,502 +0,0 @@ -# ObjectMapper-CN-Guide -> 文档由Swift老司机活动中心负责翻译,欢迎关注[@SwiftOldDriver](http://weibo.com/6062089411)。翻译有问题可以到 [ObjectMapper-CN-Guide](https://github.com/SwiftOldDriver/ObjectMapper-CN-Guide) 提 PR。 - -[ObjectMapper](https://github.com/Hearst-DD/ObjectMapper) 是一个使用 Swift 编写的用于 model 对象(类和结构体)和 JSON 之间转换的框架。 - -- [特性](#特性) -- [基础使用方法](#基础使用方法) -- [映射嵌套对象](#映射嵌套对象) -- [自定义转换规则](#自定义转换规则) -- [继承](#继承) -- [泛型对象](#泛型对象) -- [映射时的上下文对象](#映射时的上下文对象) -- [ObjectMapper + Alamofire](#objectmapper--alamofire) -- [ObjectMapper + Realm](#objectmapper--realm) -- [待完成](#待完成) -- [安装](#安装) - -# 特性: -- 把 JSON 映射成对象 -- 把对象映射 JSON -- 支持嵌套对象 (单独的成员变量、在数组或字典中都可以) -- 在转换过程支持自定义规则 -- 支持结构体( Struct ) -- [Immutable support](#immutablemappable-protocol-beta) (目前还在 beta ) - -# 基础使用方法 -为了支持映射,类或者结构体只需要实现```Mappable```协议。这个协议包含以下方法: -```swift -init?(map: Map) -mutating func mapping(map: Map) -``` -ObjectMapper使用自定义的```<-``` 运算符来声明成员变量和 JSON 的映射关系。 -```swift -class User: Mappable { - var username: String? - var age: Int? - var weight: Double! - var array: [AnyObject]? - var dictionary: [String : AnyObject] = [:] - var bestFriend: User? // 嵌套的 User 对象 - var friends: [User]? // Users 的数组 - var birthday: NSDate? - - required init?(map: Map) { - - } - - // Mappable - func mapping(map: Map) { - username <- map["username"] - age <- map["age"] - weight <- map["weight"] - array <- map["arr"] - dictionary <- map["dict"] - bestFriend <- map["best_friend"] - friends <- map["friends"] - birthday <- (map["birthday"], DateTransform()) - } -} - -struct Temperature: Mappable { - var celsius: Double? - var fahrenheit: Double? - - init?(map: Map) { - - } - - mutating func mapping(map: Map) { - celsius <- map["celsius"] - fahrenheit <- map["fahrenheit"] - } -} -``` - -一旦你的对象实现了 `Mappable`, ObjectMapper就可以让你轻松的实现和 JSON 之间的转换。 - -把 JSON 字符串转成 model 对象: - -```swift -let user = User(JSONString: JSONString) -``` - -把一个 model 转成 JSON 字符串: - -```swift -let JSONString = user.toJSONString(prettyPrint: true) -``` - -也可以使用`Mapper.swift`类来完成转换(这个类还额外提供了一些函数来处理一些特殊的情况: - -```swift -// 把 JSON 字符串转成 Model -let user = Mapper().map(JSONString: JSONString) -// 根据 Model 生成 JSON 字符串 -let JSONString = Mapper().toJSONString(user, prettyPrint: true) -``` - -ObjectMapper支持以下的类型映射到对象中: - -- `Int` -- `Bool` -- `Double` -- `Float` -- `String` -- `RawRepresentable` (枚举) -- `Array` -- `Dictionary` -- `Object` -- `Array` -- `Array>` -- `Set` -- `Dictionary` -- `Dictionary>` -- 以上所有的 Optional 类型 -- 以上所有的隐式强制解包类型(Implicitly Unwrapped Optional) - -## `Mappable` 协议 - -#### `mutating func mapping(map: Map)` -所有的映射最后都会调用到这个函数。当解析 JSON 时,这个函数会在对象创建成功后被执行。当生成 JSON 时就只有这个函数会被对象调用。 - -#### `init?(map: Map)` -这个可失败的初始化函数是 ObjectMapper 创建对象的时候使用的。开发者可以通过这个函数在映射前校验 JSON 。如果在这个方法里返回 nil 就不会执行 `mapping` 函数。可以通过传入的保存着 JSON 的 `Map` 对象进行校验: - -```swift -required init?(map: Map){ - // 检查 JSON 里是否有一定要有的 "name" 属性 - if map.JSONDictionary["name"] == nil { - return nil - } -} -``` - -## `StaticMappable` 协议 -`StaticMappable` 是 `Mappable` 之外的另一种选择。 这个协议可以让开发者通过一个静态函数初始化对象而不是通过 `init?(map: Map)`。 - -注意: `StaticMappable` 和 `Mappable` 都继承了 `BaseMappable` 协议。 `BaseMappable` 协议声明了 `mapping(map: Map)` 函数。 - -#### `static func objectForMapping(map: Map) -> BaseMappable?` -ObjectMapper 使用这个函数获取对象后进行映射。开发者需要在这个函数里返回一个实现 `BaseMappable` 对象的实例。这个函数也可以用于: - -- 在对象进行映射前校验 JSON -- 提供一个缓存过的对象用于映射 -- 返回另外一种类型的对象(当然是必须实现了 BaseMappable)用于映射。比如你可能通过检查 JSON 推断出用于映射的对象 ([看这个例子](https://github.com/Hearst-DD/ObjectMapper/blob/master/ObjectMapperTests/ClassClusterTests.swift#L62))。 - -如果你需要在 extension 里实现 ObjectMapper,你需要选择这个协议而不是 `Mappable` 。 - -## `ImmutableMappable` Protocol (Beta) - -> ⚠️ 这个特性还处于 Beta 阶段。正式发布时 API 可能会完全不同。 - -使用 `ImmutableMappable` 可以映射不可变的属性。下面的表格展示了 `ImmutableMappable` 和 `Mappable` 的不同: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ImmutableMappableMappable
Properties
-
-let id: Int
-let name: String?
-
-
-
-var id: Int!
-var name: String?
-
-
JSON -> Model
-
-init(map: Map) throws {
-  id   = try map.value("id")
-  name = try? map.value("name")
-}
-
-
-
-mutating func mapping(map: Map) {
-  id   <- map["id"]
-  name <- map["name"]
-}
-
-
Model -> JSON
-
-mutating func mapping(map: Map) {
-  id   >>> map["id"]
-  name >>> map["name"]
-}
-
-
-
-mutating func mapping(map: Map) {
-  id   <- map["id"]
-  name <- map["name"]
-}
-
-
Initializing
-
-try User(JSONString: JSONString)
-
-
-
-User(JSONString: JSONString)
-
-
- -#### `init(map: Map) throws` - -这个可能抛出异常的初始化函数用于在提供的 `Map` 里映射不可变属性。每个不可变的初始化属性都要在这个初始化函数里初始化。 - -当发生下列情况时初始化函数会抛出一个错误: - -- `Map` 根据提供的键名获取不到对应值 -- `Map` 使用 `Transform` 后没有得到值 - -`ImmutableMappable` 使用 `Map.value(_:using:)` 方法从 `Map` 中获取值。因为可能抛出异常,这个方法在使用时需要使用 `try` 关键字。 `Optional` 的属性可以简单的用 `try?` 处理。 - -```swift -init(map: Map) throws { - name = try map.value("name") // throws an error when it fails - createdAt = try map.value("createdAt", using: DateTransform()) // throws an error when it fails - updatedAt = try? map.value("updatedAt", using: DateTransform()) // optional - posts = (try? map.value("posts")) ?? [] // optional + default value -} -``` - -#### `mutating func mapping(map: Map)` - -这个方法是在 Model 转回 JSON 时调用的。因为不可变的属性不能被 `<-` 映射,所以映射回来时需要使用 `>>>` 。 - -```swift -mutating func mapping(map: Map) { - name >>> map["name"] - createdAt >>> (map["createdAt"], DateTransform()) - updatedAt >>> (map["updatedAt"], DateTransform()) - posts >>> map["posts"] -} -``` -# 轻松映射嵌套对象 - -ObjectMapper 支持使用点语法来轻松实现嵌套对象的映射。比如有如下的 JSON 字符串: - -```json -"distance" : { - "text" : "102 ft", - "value" : 31 -} -``` -你可以通过这种写法直接访问到嵌套对象: - -```swift -func mapping(map: Map) { - distance <- map["distance.value"] -} -``` -嵌套的键名也支持访问数组中的值。如果有一个返回的 JSON 是一个包含 distance 的数组,可以通过这种写法访问: - -``` -distance <- map["distances.0.value"] -``` -如果你的键名刚好含有 `.` 符号,你需要特别声明关闭上面提到的获取嵌套对象功能: - -```swift -func mapping(map: Map) { - identifier <- map["app.identifier", nested: false] -} -``` -如果刚好有嵌套的对象的键名还有 `.` ,可以在中间加入一个自定义的分割符([#629](https://github.com/Hearst-DD/ObjectMapper/pull/629)): -```swift -func mapping(map: Map) { - appName <- map["com.myapp.info->com.myapp.name", delimiter: "->"] -} -``` -这种情况的 JSON 是这样的: - -```json -"com.myapp.info" : { - "com.myapp.name" : "SwiftOldDriver" -} -``` - -# 自定义转换规则 -ObjectMapper 也支持在映射时自定义转换规则。如果要使用自定义转换,创建一个 tuple(元祖)包含 ```map["field_name"]``` 和你要使用的变换放在 ```<-``` 的右边: - -```swift -birthday <- (map["birthday"], DateTransform()) -``` -当解析 JSON 时上面的转换会把 JSON 里面的 Int 值转成一个 NSDate ,如果是对象转为 JSON 时,则会把 NSDate 对象转成 Int 值。 - -只要实现```TransformType``` 协议就可以轻松的创建自定义的转换规则: - -```swift -public protocol TransformType { - associatedtype Object - associatedtype JSON - - func transformFromJSON(_ value: Any?) -> Object? - func transformToJSON(_ value: Object?) -> JSON? -} -``` - -### TransformOf -大多数情况下你都可以使用框架提供的转换类 ```TransformOf``` 来快速的实现一个期望的转换。 ```TransformOf``` 的初始化需要两个类型和两个闭包。两个类型声明了转换的目标类型和源类型,闭包则实现具体转换逻辑。 - -举个例子,如果你想要把一个 JSON 字符串转成 Int ,你可以像这样使用 ```TransformOf``` : - -```swift -let transform = TransformOf(fromJSON: { (value: String?) -> Int? in - // 把值从 String? 转成 Int? - return Int(value!) -}, toJSON: { (value: Int?) -> String? in - // 把值从 Int? 转成 String? - if let value = value { - return String(value) - } - return nil -}) - -id <- (map["id"], transform) -``` -这是一种更省略的写法: - -```swift -id <- (map["id"], TransformOf(fromJSON: { Int($0!) }, toJSON: { $0.map { String($0) } })) -``` -# 继承 - -实现了 ```Mappable``` 协议的类可以容易的被继承。当继承一个 mappable 的类时,使用这样的结构: - -```swift -class Base: Mappable { - var base: String? - - required init?(map: Map) { - - } - - func mapping(map: Map) { - base <- map["base"] - } -} - -class Subclass: Base { - var sub: String? - - required init?(map: Map) { - super.init(map) - } - - override func mapping(map: Map) { - super.mapping(map) - - sub <- map["sub"] - } -} -``` - -注意确认子类中的实现调用了父类中正确的初始化器和映射函数。 - -# 泛型对象 - -ObjectMapper 可以处理泛型只要这个泛型也实现了`Mappable`协议。看这个例子: - -```swift -class Result: Mappable { - var result: T? - - required init?(map: Map){ - - } - - func mapping(map: Map) { - result <- map["result"] - } -} - -let result = Mapper>().map(JSON) -``` -# 映射时的上下文对象 - -`Map` 是在映射时传入的对象,带有一个 optional `MapContext` 对象,开发者可以通过使用这个对象在映射时传入一些信息。 - -为了使用这个特性,需要先创建一个对象实现了 `MapContext` 协议(这个协议是空的),然后在初始化时传入 `Mapper` 中。 - -```swift -struct Context: MapContext { - var importantMappingInfo = "映射时需要知道的额外信息" -} - -class User: Mappable { - var name: String? - - required init?(map: Map){ - - } - - func mapping(map: Map){ - if let context = map.context as? Context { - // 获取到额外的信息 - } - } -} - -let context = Context() -let user = Mapper(context: context).map(JSONString) -``` - -# ObjectMapper + Alamofire - -如果网络层你使用的是 [Alamofire](https://github.com/Alamofire/Alamofire) ,并且你希望把返回的结果转换成 Swift 对象,你可以使用 [AlamofireObjectMapper](https://github.com/tristanhimmelman/AlamofireObjectMapper) 。这是一个使用 ObjectMapper 实现的把返回的 JSON 自动转成 Swift 对象的 Alamofire 的扩展。 - - -# ObjectMapper + Realm - -ObjectMapper 可以和 Realm 一起配合使用。使用下面的声明结构就可以使用 ObjectMapper 生成 Realm 对象: - -```swift -class Model: Object, Mappable { - dynamic var name = "" - - required convenience init?(map: Map) { - self.init() - } - - func mapping(map: Map) { - name <- map["name"] - } -} -``` - -如果你想要序列化相关联的 RealmObject,你可以使用 [ObjectMapper+Realm](https://github.com/jakenberg/ObjectMapper-Realm)。这是一个简单的 Realm 扩展,用于把任意的 JSON 序列化成 Realm 的类(ealm's List class。) - -注意:使用 ObjectMappers 的 `toJSON` 函数来生成 JSON 字符串只在 Realm 的写事务中有效(write transaction)。这是因为 ObjectMapper 在解析和生成时在映射函数( `<-` )中使用 `inout` 作为标记( flag )。Realm 会检测到标记并且强制要求 `toJSON` 函数只能在一个写的事务中调用,即使这个对象并没有被修改。 - -# 待完成 -- 改善错误的处理。可能使用 `throws` 来处理。 -- 相关类的文档完善 - -# 安装 -### Cocoapods -如果你的项目使用 [CocoaPods 0.36 及以上](http://blog.cocoapods.org/Pod-Authors-Guide-to-CocoaPods-Frameworks/) 的版本,你可以把下面内容添加到在 `Podfile` 中,将 ObjectMapper 添加到你的项目中: - -```ruby -pod 'ObjectMapper', '~> 2.2' -``` - -### Carthage -如果你的项目使用 [Carthage](https://github.com/Carthage/Carthage) ,你可以把下面的内容添加到 `Cartfile` 中,将 ObjectMapper 的依赖到你的项目中: - -``` -github "Hearst-DD/ObjectMapper" ~> 2.2 -``` - -### Swift Package Manager -如果你的项目使用 [Swift Package Manager](https://swift.org/package-manager/) ,那么你可以把下面内容添加到 `Package.swift` 中的 `dependencies` 数组中,将 ObjectMapper 的依赖到你的项目中: - -```swift -.Package(url: "https://github.com/Hearst-DD/ObjectMapper.git", majorVersion: 2, minor: 2), -``` - - -### Submodule -此外,ObjectMapper 也可以作为一个 submodule 添加到项目中: - -1. 打开终端,使用 `cd` 命令进入项目文件的根目录下,然后在终端中输入 `git submodule add https://github.com/Hearst-DD/ObjectMapper.git` ,把 ObjectMapper 作为项目的一个 [submodule](http://git-scm.com/docs/git-submodule) 添加进来。 -2. 打开 `ObjectMapper` 文件,并将 `ObjectMapper.xcodeproj` 拖进你 app 项目的文件导航中。 -3. 在 Xcode 中,文件导航中点击蓝色项目图标进入到 target 配置界面,在侧边栏的 "TARGETS" 下选择主工程对应的target。 -4. 确保 `ObjectMapper.framework` 的部署版本( deployment target )和主工程的部署版本保持一致。 -5. 在配置界面的顶部选项栏中,打开 "Build Phases" 面板。 -6. 展开 "Target Dependencies" 组,并添加 `ObjectMapper.framework` 。 -7. 点击面板左上角的 `+` 按钮,选择 "New Copy Files Phase"。将这个阶段重命名为 "Copy Frameworks",设置 "Destination" 为 "Frameworks",最后添加 `ObjectMapper.framework` 。 - - diff --git a/Example/Pods/ObjectMapper/Sources/CustomDateFormatTransform.swift b/Example/Pods/ObjectMapper/Sources/CustomDateFormatTransform.swift deleted file mode 100644 index 3cd5c59..0000000 --- a/Example/Pods/ObjectMapper/Sources/CustomDateFormatTransform.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// CustomDateFormatTransform.swift -// ObjectMapper -// -// Created by Dan McCracken on 3/8/15. -// -// The MIT License (MIT) -// -// Copyright (c) 2014-2016 Hearst -// -// 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 Foundation - -open class CustomDateFormatTransform: DateFormatterTransform { - - public init(formatString: String) { - let formatter = DateFormatter() - formatter.locale = Locale(identifier: "en_US_POSIX") - formatter.dateFormat = formatString - - super.init(dateFormatter: formatter) - } -} diff --git a/Example/Pods/ObjectMapper/Sources/DataTransform.swift b/Example/Pods/ObjectMapper/Sources/DataTransform.swift deleted file mode 100644 index d96f3d6..0000000 --- a/Example/Pods/ObjectMapper/Sources/DataTransform.swift +++ /dev/null @@ -1,50 +0,0 @@ -// -// DataTransform.swift -// ObjectMapper -// -// Created by Yagrushkin, Evgeny on 8/30/16. -// -// The MIT License (MIT) -// -// Copyright (c) 2014-2016 Hearst -// -// 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 Foundation - -open class DataTransform: TransformType { - public typealias Object = Data - public typealias JSON = String - - public init() {} - - open func transformFromJSON(_ value: Any?) -> Data? { - guard let string = value as? String else{ - return nil - } - return Data(base64Encoded: string) - } - - open func transformToJSON(_ value: Data?) -> String? { - guard let data = value else{ - return nil - } - return data.base64EncodedString() - } -} diff --git a/Example/Pods/ObjectMapper/Sources/DateFormatterTransform.swift b/Example/Pods/ObjectMapper/Sources/DateFormatterTransform.swift deleted file mode 100644 index fa75f3b..0000000 --- a/Example/Pods/ObjectMapper/Sources/DateFormatterTransform.swift +++ /dev/null @@ -1,54 +0,0 @@ -// -// DateFormatterTransform.swift -// ObjectMapper -// -// Created by Tristan Himmelman on 2015-03-09. -// -// The MIT License (MIT) -// -// Copyright (c) 2014-2016 Hearst -// -// 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 Foundation - -open class DateFormatterTransform: TransformType { - public typealias Object = Date - public typealias JSON = String - - public let dateFormatter: DateFormatter - - public init(dateFormatter: DateFormatter) { - self.dateFormatter = dateFormatter - } - - open func transformFromJSON(_ value: Any?) -> Date? { - if let dateString = value as? String { - return dateFormatter.date(from: dateString) - } - return nil - } - - open func transformToJSON(_ value: Date?) -> String? { - if let date = value { - return dateFormatter.string(from: date) - } - return nil - } -} diff --git a/Example/Pods/ObjectMapper/Sources/DateTransform.swift b/Example/Pods/ObjectMapper/Sources/DateTransform.swift deleted file mode 100644 index 2c175cb..0000000 --- a/Example/Pods/ObjectMapper/Sources/DateTransform.swift +++ /dev/null @@ -1,55 +0,0 @@ -// -// DateTransform.swift -// ObjectMapper -// -// Created by Tristan Himmelman on 2014-10-13. -// -// The MIT License (MIT) -// -// Copyright (c) 2014-2016 Hearst -// -// 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 Foundation - -open class DateTransform: TransformType { - public typealias Object = Date - public typealias JSON = Double - - public init() {} - - open func transformFromJSON(_ value: Any?) -> Date? { - if let timeInt = value as? Double { - return Date(timeIntervalSince1970: TimeInterval(timeInt)) - } - - if let timeStr = value as? String { - return Date(timeIntervalSince1970: TimeInterval(atof(timeStr))) - } - - return nil - } - - open func transformToJSON(_ value: Date?) -> Double? { - if let date = value { - return Double(date.timeIntervalSince1970) - } - return nil - } -} diff --git a/Example/Pods/ObjectMapper/Sources/DictionaryTransform.swift b/Example/Pods/ObjectMapper/Sources/DictionaryTransform.swift deleted file mode 100644 index e7b6ef3..0000000 --- a/Example/Pods/ObjectMapper/Sources/DictionaryTransform.swift +++ /dev/null @@ -1,58 +0,0 @@ -// -// DictionaryTransform.swift -// ObjectMapper -// -// Created by Milen Halachev on 7/20/16. -// Copyright © 2016 hearst. All rights reserved. -// - -import Foundation - -///Transforms [String: AnyObject] <-> [Key: Value] where Key is RawRepresentable as String, Value is Mappable -public struct DictionaryTransform: TransformType where Key: Hashable, Key: RawRepresentable, Key.RawValue == String, Value: Mappable { - - public init() { - - } - - public func transformFromJSON(_ value: Any?) -> [Key: Value]? { - - guard let json = value as? [String: Any] else { - - return nil - } - - let result = json.reduce([:]) { (result, element) -> [Key: Value] in - - guard - let key = Key(rawValue: element.0), - let valueJSON = element.1 as? [String: Any], - let value = Value(JSON: valueJSON) - else { - - return result - } - - var result = result - result[key] = value - return result - } - - return result - } - - public func transformToJSON(_ value: [Key: Value]?) -> Any? { - - let result = value?.reduce([:]) { (result, element) -> [String: Any] in - - let key = element.0.rawValue - let value = element.1.toJSON() - - var result = result - result[key] = value - return result - } - - return result - } -} diff --git a/Example/Pods/ObjectMapper/Sources/EnumOperators.swift b/Example/Pods/ObjectMapper/Sources/EnumOperators.swift deleted file mode 100644 index e4b3a38..0000000 --- a/Example/Pods/ObjectMapper/Sources/EnumOperators.swift +++ /dev/null @@ -1,100 +0,0 @@ -// -// EnumOperators.swift -// ObjectMapper -// -// Created by Tristan Himmelman on 2016-09-26. -// Copyright © 2016 hearst. All rights reserved. -// - -import Foundation - - -// MARK:- Raw Representable types - -/// Object of Raw Representable type -public func <- (left: inout T, right: Map) { - left <- (right, EnumTransform()) -} - -public func >>> (left: T, right: Map) { - left >>> (right, EnumTransform()) -} - - -/// Optional Object of Raw Representable type -public func <- (left: inout T?, right: Map) { - left <- (right, EnumTransform()) -} - -public func >>> (left: T?, right: Map) { - left >>> (right, EnumTransform()) -} - - -// Code targeting the Swift 4.1 compiler and below. -#if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) -/// Implicitly Unwrapped Optional Object of Raw Representable type -public func <- (left: inout T!, right: Map) { - left <- (right, EnumTransform()) -} -#endif - -// MARK:- Arrays of Raw Representable type - -/// Array of Raw Representable object -public func <- (left: inout [T], right: Map) { - left <- (right, EnumTransform()) -} - -public func >>> (left: [T], right: Map) { - left >>> (right, EnumTransform()) -} - - -/// Array of Raw Representable object -public func <- (left: inout [T]?, right: Map) { - left <- (right, EnumTransform()) -} - -public func >>> (left: [T]?, right: Map) { - left >>> (right, EnumTransform()) -} - - -// Code targeting the Swift 4.1 compiler and below. -#if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) -/// Array of Raw Representable object -public func <- (left: inout [T]!, right: Map) { - left <- (right, EnumTransform()) -} -#endif - -// MARK:- Dictionaries of Raw Representable type - -/// Dictionary of Raw Representable object -public func <- (left: inout [String: T], right: Map) { - left <- (right, EnumTransform()) -} - -public func >>> (left: [String: T], right: Map) { - left >>> (right, EnumTransform()) -} - - -/// Dictionary of Raw Representable object -public func <- (left: inout [String: T]?, right: Map) { - left <- (right, EnumTransform()) -} - -public func >>> (left: [String: T]?, right: Map) { - left >>> (right, EnumTransform()) -} - - -// Code targeting the Swift 4.1 compiler and below. -#if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) -/// Dictionary of Raw Representable object -public func <- (left: inout [String: T]!, right: Map) { - left <- (right, EnumTransform()) -} -#endif diff --git a/Example/Pods/ObjectMapper/Sources/EnumTransform.swift b/Example/Pods/ObjectMapper/Sources/EnumTransform.swift deleted file mode 100644 index 43e4ce7..0000000 --- a/Example/Pods/ObjectMapper/Sources/EnumTransform.swift +++ /dev/null @@ -1,50 +0,0 @@ -// -// EnumTransform.swift -// ObjectMapper -// -// Created by Kaan Dedeoglu on 3/20/15. -// -// The MIT License (MIT) -// -// Copyright (c) 2014-2016 Hearst -// -// 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 Foundation - -open class EnumTransform: TransformType { - public typealias Object = T - public typealias JSON = T.RawValue - - public init() {} - - open func transformFromJSON(_ value: Any?) -> T? { - if let raw = value as? T.RawValue { - return T(rawValue: raw) - } - return nil - } - - open func transformToJSON(_ value: T?) -> T.RawValue? { - if let obj = value { - return obj.rawValue - } - return nil - } -} diff --git a/Example/Pods/ObjectMapper/Sources/FromJSON.swift b/Example/Pods/ObjectMapper/Sources/FromJSON.swift deleted file mode 100755 index c5a2898..0000000 --- a/Example/Pods/ObjectMapper/Sources/FromJSON.swift +++ /dev/null @@ -1,202 +0,0 @@ -// -// FromJSON.swift -// ObjectMapper -// -// Created by Tristan Himmelman on 2014-10-09. -// -// The MIT License (MIT) -// -// Copyright (c) 2014-2016 Hearst -// -// 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. - -internal final class FromJSON { - - /// Basic type - class func basicType(_ field: inout FieldType, object: FieldType?) { - if let value = object { - field = value - } - } - - /// optional basic type - class func optionalBasicType(_ field: inout FieldType?, object: FieldType?) { - field = object - } - - // Code targeting the Swift 4.1 compiler and below. - #if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) - /// Implicitly unwrapped optional basic type - class func optionalBasicType(_ field: inout FieldType!, object: FieldType?) { - field = object - } - #endif - - /// Mappable object - class func object(_ field: inout N, map: Map) { - if map.toObject { - field = Mapper(context: map.context).map(JSONObject: map.currentValue, toObject: field) - } else if let value: N = Mapper(context: map.context).map(JSONObject: map.currentValue) { - field = value - } - } - - /// Optional Mappable Object - - class func optionalObject(_ field: inout N?, map: Map) { - if let f = field , map.toObject && map.currentValue != nil { - field = Mapper(context: map.context).map(JSONObject: map.currentValue, toObject: f) - } else { - field = Mapper(context: map.context).map(JSONObject: map.currentValue) - } - } - - // Code targeting the Swift 4.1 compiler and below. - #if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) - /// Implicitly unwrapped Optional Mappable Object - class func optionalObject(_ field: inout N!, map: Map) { - if let f = field , map.toObject && map.currentValue != nil { - field = Mapper(context: map.context).map(JSONObject: map.currentValue, toObject: f) - } else { - field = Mapper(context: map.context).map(JSONObject: map.currentValue) - } - } - #endif - - /// mappable object array - class func objectArray(_ field: inout Array, map: Map) { - if let objects = Mapper(context: map.context).mapArray(JSONObject: map.currentValue) { - field = objects - } - } - - /// optional mappable object array - - class func optionalObjectArray(_ field: inout Array?, map: Map) { - if let objects: Array = Mapper(context: map.context).mapArray(JSONObject: map.currentValue) { - field = objects - } else { - field = nil - } - } - - // Code targeting the Swift 4.1 compiler and below. - #if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) - /// Implicitly unwrapped optional mappable object array - class func optionalObjectArray(_ field: inout Array!, map: Map) { - if let objects: Array = Mapper(context: map.context).mapArray(JSONObject: map.currentValue) { - field = objects - } else { - field = nil - } - } - #endif - - /// mappable object array - class func twoDimensionalObjectArray(_ field: inout Array>, map: Map) { - if let objects = Mapper(context: map.context).mapArrayOfArrays(JSONObject: map.currentValue) { - field = objects - } - } - - /// optional mappable 2 dimentional object array - class func optionalTwoDimensionalObjectArray(_ field: inout Array>?, map: Map) { - field = Mapper(context: map.context).mapArrayOfArrays(JSONObject: map.currentValue) - } - - // Code targeting the Swift 4.1 compiler and below. - #if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) - /// Implicitly unwrapped optional 2 dimentional mappable object array - class func optionalTwoDimensionalObjectArray(_ field: inout Array>!, map: Map) { - field = Mapper(context: map.context).mapArrayOfArrays(JSONObject: map.currentValue) - } - #endif - - /// Dctionary containing Mappable objects - class func objectDictionary(_ field: inout Dictionary, map: Map) { - if map.toObject { - field = Mapper(context: map.context).mapDictionary(JSONObject: map.currentValue, toDictionary: field) - } else { - if let objects = Mapper(context: map.context).mapDictionary(JSONObject: map.currentValue) { - field = objects - } - } - } - - /// Optional dictionary containing Mappable objects - class func optionalObjectDictionary(_ field: inout Dictionary?, map: Map) { - if let f = field , map.toObject && map.currentValue != nil { - field = Mapper(context: map.context).mapDictionary(JSONObject: map.currentValue, toDictionary: f) - } else { - field = Mapper(context: map.context).mapDictionary(JSONObject: map.currentValue) - } - } - - // Code targeting the Swift 4.1 compiler and below. - #if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) - /// Implicitly unwrapped Dictionary containing Mappable objects - class func optionalObjectDictionary(_ field: inout Dictionary!, map: Map) { - if let f = field , map.toObject && map.currentValue != nil { - field = Mapper(context: map.context).mapDictionary(JSONObject: map.currentValue, toDictionary: f) - } else { - field = Mapper(context: map.context).mapDictionary(JSONObject: map.currentValue) - } - } - #endif - - /// Dictionary containing Array of Mappable objects - class func objectDictionaryOfArrays(_ field: inout Dictionary, map: Map) { - if let objects = Mapper(context: map.context).mapDictionaryOfArrays(JSONObject: map.currentValue) { - field = objects - } - } - - /// Optional Dictionary containing Array of Mappable objects - class func optionalObjectDictionaryOfArrays(_ field: inout Dictionary?, map: Map) { - field = Mapper(context: map.context).mapDictionaryOfArrays(JSONObject: map.currentValue) - } - - // Code targeting the Swift 4.1 compiler and below. - #if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) - /// Implicitly unwrapped Dictionary containing Array of Mappable objects - class func optionalObjectDictionaryOfArrays(_ field: inout Dictionary!, map: Map) { - field = Mapper(context: map.context).mapDictionaryOfArrays(JSONObject: map.currentValue) - } - #endif - - /// mappable object Set - class func objectSet(_ field: inout Set, map: Map) { - if let objects = Mapper(context: map.context).mapSet(JSONObject: map.currentValue) { - field = objects - } - } - - /// optional mappable object array - class func optionalObjectSet(_ field: inout Set?, map: Map) { - field = Mapper(context: map.context).mapSet(JSONObject: map.currentValue) - } - - // Code targeting the Swift 4.1 compiler and below. - #if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) - /// Implicitly unwrapped optional mappable object array - class func optionalObjectSet(_ field: inout Set!, map: Map) { - field = Mapper(context: map.context).mapSet(JSONObject: map.currentValue) - } - #endif -} diff --git a/Example/Pods/ObjectMapper/Sources/HexColorTransform.swift b/Example/Pods/ObjectMapper/Sources/HexColorTransform.swift deleted file mode 100644 index ac045a3..0000000 --- a/Example/Pods/ObjectMapper/Sources/HexColorTransform.swift +++ /dev/null @@ -1,126 +0,0 @@ -// -// HexColorTransform.swift -// ObjectMapper -// -// Created by Vitaliy Kuzmenko on 10/10/16. -// Copyright © 2016 hearst. All rights reserved. -// - -#if os(iOS) || os(tvOS) || os(watchOS) -import UIKit -#elseif os(macOS) -import Cocoa -#endif - -#if os(iOS) || os(tvOS) || os(watchOS) || os(macOS) -open class HexColorTransform: TransformType { - - #if os(iOS) || os(tvOS) || os(watchOS) - public typealias Object = UIColor - #else - public typealias Object = NSColor - #endif - - public typealias JSON = String - - var prefix: Bool = false - - var alpha: Bool = false - - public init(prefixToJSON: Bool = false, alphaToJSON: Bool = false) { - alpha = alphaToJSON - prefix = prefixToJSON - } - - open func transformFromJSON(_ value: Any?) -> Object? { - if let rgba = value as? String { - if rgba.hasPrefix("#") { - let index = rgba.index(rgba.startIndex, offsetBy: 1) - let hex = String(rgba[index...]) - return getColor(hex: hex) - } else { - return getColor(hex: rgba) - } - } - return nil - } - - open func transformToJSON(_ value: Object?) -> JSON? { - if let value = value { - return hexString(color: value) - } - return nil - } - - fileprivate func hexString(color: Object) -> String { - let comps = color.cgColor.components! - let compsCount = color.cgColor.numberOfComponents - let r: Int - let g: Int - var b: Int - let a = Int(comps[compsCount - 1] * 255) - if compsCount == 4 { // RGBA - r = Int(comps[0] * 255) - g = Int(comps[1] * 255) - b = Int(comps[2] * 255) - } else { // Grayscale - r = Int(comps[0] * 255) - g = Int(comps[0] * 255) - b = Int(comps[0] * 255) - } - var hexString: String = "" - if prefix { - hexString = "#" - } - hexString += String(format: "%02X%02X%02X", r, g, b) - - if alpha { - hexString += String(format: "%02X", a) - } - return hexString - } - - fileprivate func getColor(hex: String) -> Object? { - var red: CGFloat = 0.0 - var green: CGFloat = 0.0 - var blue: CGFloat = 0.0 - var alpha: CGFloat = 1.0 - - let scanner = Scanner(string: hex) - var hexValue: CUnsignedLongLong = 0 - if scanner.scanHexInt64(&hexValue) { - switch (hex.count) { - case 3: - red = CGFloat((hexValue & 0xF00) >> 8) / 15.0 - green = CGFloat((hexValue & 0x0F0) >> 4) / 15.0 - blue = CGFloat(hexValue & 0x00F) / 15.0 - case 4: - red = CGFloat((hexValue & 0xF000) >> 12) / 15.0 - green = CGFloat((hexValue & 0x0F00) >> 8) / 15.0 - blue = CGFloat((hexValue & 0x00F0) >> 4) / 15.0 - alpha = CGFloat(hexValue & 0x000F) / 15.0 - case 6: - red = CGFloat((hexValue & 0xFF0000) >> 16) / 255.0 - green = CGFloat((hexValue & 0x00FF00) >> 8) / 255.0 - blue = CGFloat(hexValue & 0x0000FF) / 255.0 - case 8: - red = CGFloat((hexValue & 0xFF000000) >> 24) / 255.0 - green = CGFloat((hexValue & 0x00FF0000) >> 16) / 255.0 - blue = CGFloat((hexValue & 0x0000FF00) >> 8) / 255.0 - alpha = CGFloat(hexValue & 0x000000FF) / 255.0 - default: - // Invalid RGB string, number of characters after '#' should be either 3, 4, 6 or 8 - return nil - } - } else { - // "Scan hex error - return nil - } - #if os(iOS) || os(tvOS) || os(watchOS) - return UIColor(red: red, green: green, blue: blue, alpha: alpha) - #else - return NSColor(calibratedRed: red, green: green, blue: blue, alpha: alpha) - #endif - } -} -#endif diff --git a/Example/Pods/ObjectMapper/Sources/ISO8601DateTransform.swift b/Example/Pods/ObjectMapper/Sources/ISO8601DateTransform.swift deleted file mode 100644 index 2200423..0000000 --- a/Example/Pods/ObjectMapper/Sources/ISO8601DateTransform.swift +++ /dev/null @@ -1,47 +0,0 @@ -// -// ISO8601DateTransform.swift -// ObjectMapper -// -// Created by Jean-Pierre Mouilleseaux on 21 Nov 2014. -// -// The MIT License (MIT) -// -// Copyright (c) 2014-2016 Hearst -// -// 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 Foundation - -public extension DateFormatter { - public convenience init(withFormat format : String, locale : String) { - self.init() - self.locale = Locale(identifier: locale) - dateFormat = format - } -} - -open class ISO8601DateTransform: DateFormatterTransform { - - static let reusableISODateFormatter = DateFormatter(withFormat: "yyyy-MM-dd'T'HH:mm:ssZZZZZ", locale: "en_US_POSIX") - - public init() { - super.init(dateFormatter: ISO8601DateTransform.reusableISODateFormatter) - } -} - diff --git a/Example/Pods/ObjectMapper/Sources/ImmutableMappable.swift b/Example/Pods/ObjectMapper/Sources/ImmutableMappable.swift deleted file mode 100644 index 27b6315..0000000 --- a/Example/Pods/ObjectMapper/Sources/ImmutableMappable.swift +++ /dev/null @@ -1,321 +0,0 @@ -// -// ImmutableMappble.swift -// ObjectMapper -// -// Created by Suyeol Jeon on 23/09/2016. -// -// The MIT License (MIT) -// -// Copyright (c) 2014-2016 Hearst -// -// 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. - -public protocol ImmutableMappable: BaseMappable { - init(map: Map) throws -} - -public extension ImmutableMappable { - - /// Implement this method to support object -> JSON transform. - public func mapping(map: Map) {} - - /// Initializes object from a JSON String - public init(JSONString: String, context: MapContext? = nil) throws { - self = try Mapper(context: context).map(JSONString: JSONString) - } - - /// Initializes object from a JSON Dictionary - public init(JSON: [String: Any], context: MapContext? = nil) throws { - self = try Mapper(context: context).map(JSON: JSON) - } - - /// Initializes object from a JSONObject - public init(JSONObject: Any, context: MapContext? = nil) throws { - self = try Mapper(context: context).map(JSONObject: JSONObject) - } - -} - -public extension Map { - - fileprivate func currentValue(for key: String, nested: Bool? = nil, delimiter: String = ".") -> Any? { - let isNested = nested ?? key.contains(delimiter) - return self[key, nested: isNested, delimiter: delimiter].currentValue - } - - // MARK: Basic - - /// Returns a value or throws an error. - public func value(_ key: String, nested: Bool? = nil, delimiter: String = ".", file: StaticString = #file, function: StaticString = #function, line: UInt = #line) throws -> T { - let currentValue = self.currentValue(for: key, nested: nested, delimiter: delimiter) - guard let value = currentValue as? T else { - throw MapError(key: key, currentValue: currentValue, reason: "Cannot cast to '\(T.self)'", file: file, function: function, line: line) - } - return value - } - - /// Returns a transformed value or throws an error. - public func value(_ key: String, nested: Bool? = nil, delimiter: String = ".", using transform: Transform, file: StaticString = #file, function: StaticString = #function, line: UInt = #line) throws -> Transform.Object { - let currentValue = self.currentValue(for: key, nested: nested, delimiter: delimiter) - guard let value = transform.transformFromJSON(currentValue) else { - throw MapError(key: key, currentValue: currentValue, reason: "Cannot transform to '\(Transform.Object.self)' using \(transform)", file: file, function: function, line: line) - } - return value - } - - /// Returns a RawRepresentable type or throws an error. - public func value(_ key: String, nested: Bool? = nil, delimiter: String = ".", file: StaticString = #file, function: StaticString = #function, line: UInt = #line) throws -> T { - return try self.value(key, nested: nested, delimiter: delimiter, using: EnumTransform(), file: file, function: function, line: line) - } - - /// Returns a `[RawRepresentable]` type or throws an error. - public func value(_ key: String, nested: Bool? = nil, delimiter: String = ".", file: StaticString = #file, function: StaticString = #function, line: UInt = #line) throws -> [T] { - return try self.value(key, nested: nested, delimiter: delimiter, using: EnumTransform(), file: file, function: function, line: line) - } - - // MARK: BaseMappable - - /// Returns a `BaseMappable` object or throws an error. - public func value(_ key: String, nested: Bool? = nil, delimiter: String = ".", file: StaticString = #file, function: StaticString = #function, line: UInt = #line) throws -> T { - let currentValue = self.currentValue(for: key, nested: nested, delimiter: delimiter) - guard let JSONObject = currentValue else { - throw MapError(key: key, currentValue: currentValue, reason: "Found unexpected nil value", file: file, function: function, line: line) - } - return try Mapper(context: context).mapOrFail(JSONObject: JSONObject) - } - - // MARK: [BaseMappable] - - /// Returns a `[BaseMappable]` or throws an error. - public func value(_ key: String, nested: Bool? = nil, delimiter: String = ".", file: StaticString = #file, function: StaticString = #function, line: UInt = #line) throws -> [T] { - let currentValue = self.currentValue(for: key, nested: nested, delimiter: delimiter) - guard let jsonArray = currentValue as? [Any] else { - throw MapError(key: key, currentValue: currentValue, reason: "Cannot cast to '[Any]'", file: file, function: function, line: line) - } - - return try jsonArray.map { JSONObject -> T in - return try Mapper(context: context).mapOrFail(JSONObject: JSONObject) - } - } - - /// Returns a `[BaseMappable]` using transform or throws an error. - public func value(_ key: String, nested: Bool? = nil, delimiter: String = ".", using transform: Transform, file: StaticString = #file, function: StaticString = #function, line: UInt = #line) throws -> [Transform.Object] { - let currentValue = self.currentValue(for: key, nested: nested, delimiter: delimiter) - guard let jsonArray = currentValue as? [Any] else { - throw MapError(key: key, currentValue: currentValue, reason: "Cannot cast to '[Any]'", file: file, function: function, line: line) - } - - return try jsonArray.map { json -> Transform.Object in - guard let object = transform.transformFromJSON(json) else { - throw MapError(key: "\(key)", currentValue: json, reason: "Cannot transform to '\(Transform.Object.self)' using \(transform)", file: file, function: function, line: line) - } - return object - } - } - - // MARK: [String: BaseMappable] - - /// Returns a `[String: BaseMappable]` or throws an error. - public func value(_ key: String, nested: Bool? = nil, delimiter: String = ".", file: StaticString = #file, function: StaticString = #function, line: UInt = #line) throws -> [String: T] { - - let currentValue = self.currentValue(for: key, nested: nested, delimiter: delimiter) - guard let jsonDictionary = currentValue as? [String: Any] else { - throw MapError(key: key, currentValue: currentValue, reason: "Cannot cast to '[String: Any]'", file: file, function: function, line: line) - } - var value: [String: T] = [:] - for (key, json) in jsonDictionary { - value[key] = try Mapper(context: context).mapOrFail(JSONObject: json) - } - return value - } - - /// Returns a `[String: BaseMappable]` using transform or throws an error. - public func value(_ key: String, nested: Bool? = nil, delimiter: String = ".", using transform: Transform, file: StaticString = #file, function: StaticString = #function, line: UInt = #line) throws -> [String: Transform.Object] { - - let currentValue = self.currentValue(for: key, nested: nested, delimiter: delimiter) - guard let jsonDictionary = currentValue as? [String: Any] else { - throw MapError(key: key, currentValue: currentValue, reason: "Cannot cast to '[String: Any]'", file: file, function: function, line: line) - } - var value: [String: Transform.Object] = [:] - for (key, json) in jsonDictionary { - guard let object = transform.transformFromJSON(json) else { - throw MapError(key: key, currentValue: json, reason: "Cannot transform to '\(Transform.Object.self)' using \(transform)", file: file, function: function, line: line) - } - value[key] = object - } - return value - } - - // MARK: [[BaseMappable]] - /// Returns a `[[BaseMappable]]` or throws an error. - public func value(_ key: String, nested: Bool? = nil, delimiter: String = ".", file: StaticString = #file, function: StaticString = #function, line: UInt = #line) throws -> [[T]] { - - let currentValue = self.currentValue(for: key, nested: nested, delimiter: delimiter) - guard let json2DArray = currentValue as? [[Any]] else { - throw MapError(key: key, currentValue: currentValue, reason: "Cannot cast to '[[Any]]'", file: file, function: function, line: line) - } - return try json2DArray.map { jsonArray in - try jsonArray.map { jsonObject -> T in - return try Mapper(context: context).mapOrFail(JSONObject: jsonObject) - } - } - } - - /// Returns a `[[BaseMappable]]` using transform or throws an error. - public func value(_ key: String, nested: Bool? = nil, delimiter: String = ".", using transform: Transform, file: StaticString = #file, function: StaticString = #function, line: UInt = #line) throws -> [[Transform.Object]] { - - let currentValue = self.currentValue(for: key, nested: nested, delimiter: delimiter) - guard let json2DArray = currentValue as? [[Any]] else { - throw MapError(key: key, currentValue: currentValue, reason: "Cannot cast to '[[Any]]'", - file: file, function: function, line: line) - } - - return try json2DArray.map { jsonArray in - try jsonArray.map { json -> Transform.Object in - guard let object = transform.transformFromJSON(json) else { - throw MapError(key: "\(key)", currentValue: json, reason: "Cannot transform to '\(Transform.Object.self)' using \(transform)", file: file, function: function, line: line) - } - return object - } - } - } -} - -public extension Mapper where N: ImmutableMappable { - - public func map(JSON: [String: Any]) throws -> N { - return try self.mapOrFail(JSON: JSON) - } - - public func map(JSONString: String) throws -> N { - return try mapOrFail(JSONString: JSONString) - } - - public func map(JSONObject: Any) throws -> N { - return try mapOrFail(JSONObject: JSONObject) - } - - // MARK: Array mapping functions - - public func mapArray(JSONArray: [[String: Any]]) throws -> [N] { - #if swift(>=4.1) - return try JSONArray.compactMap(mapOrFail) - #else - return try JSONArray.flatMap(mapOrFail) - #endif - } - - public func mapArray(JSONString: String) throws -> [N] { - guard let JSONObject = Mapper.parseJSONString(JSONString: JSONString) else { - throw MapError(key: nil, currentValue: JSONString, reason: "Cannot convert string into Any'") - } - - return try mapArray(JSONObject: JSONObject) - } - - public func mapArray(JSONObject: Any) throws -> [N] { - guard let JSONArray = JSONObject as? [[String: Any]] else { - throw MapError(key: nil, currentValue: JSONObject, reason: "Cannot cast to '[[String: Any]]'") - } - - return try mapArray(JSONArray: JSONArray) - } - - // MARK: Dictionary mapping functions - - public func mapDictionary(JSONString: String) throws -> [String: N] { - guard let JSONObject = Mapper.parseJSONString(JSONString: JSONString) else { - throw MapError(key: nil, currentValue: JSONString, reason: "Cannot convert string into Any'") - } - - return try mapDictionary(JSONObject: JSONObject) - } - - public func mapDictionary(JSONObject: Any?) throws -> [String: N] { - guard let JSON = JSONObject as? [String: [String: Any]] else { - throw MapError(key: nil, currentValue: JSONObject, reason: "Cannot cast to '[String: [String: Any]]''") - } - - return try mapDictionary(JSON: JSON) - } - - public func mapDictionary(JSON: [String: [String: Any]]) throws -> [String: N] { - return try JSON.filterMap(mapOrFail) - } - - // MARK: Dictinoary of arrays mapping functions - - public func mapDictionaryOfArrays(JSONObject: Any?) throws -> [String: [N]] { - guard let JSON = JSONObject as? [String: [[String: Any]]] else { - throw MapError(key: nil, currentValue: JSONObject, reason: "Cannot cast to '[String: [String: Any]]''") - } - return try mapDictionaryOfArrays(JSON: JSON) - } - - public func mapDictionaryOfArrays(JSON: [String: [[String: Any]]]) throws -> [String: [N]] { - return try JSON.filterMap { array -> [N] in - try mapArray(JSONArray: array) - } - } - - // MARK: 2 dimentional array mapping functions - - public func mapArrayOfArrays(JSONObject: Any?) throws -> [[N]] { - guard let JSONArray = JSONObject as? [[[String: Any]]] else { - throw MapError(key: nil, currentValue: JSONObject, reason: "Cannot cast to '[[[String: Any]]]''") - } - return try JSONArray.map(mapArray) - } - -} - -internal extension Mapper { - - internal func mapOrFail(JSON: [String: Any]) throws -> N { - let map = Map(mappingType: .fromJSON, JSON: JSON, context: context, shouldIncludeNilValues: shouldIncludeNilValues) - - // Check if object is ImmutableMappable, if so use ImmutableMappable protocol for mapping - if let klass = N.self as? ImmutableMappable.Type, - var object = try klass.init(map: map) as? N { - object.mapping(map: map) - return object - } - - // If not, map the object the standard way - guard let value = self.map(JSON: JSON) else { - throw MapError(key: nil, currentValue: JSON, reason: "Cannot map to '\(N.self)'") - } - return value - } - - internal func mapOrFail(JSONString: String) throws -> N { - guard let JSON = Mapper.parseJSONStringIntoDictionary(JSONString: JSONString) else { - throw MapError(key: nil, currentValue: JSONString, reason: "Cannot parse into '[String: Any]'") - } - return try mapOrFail(JSON: JSON) - } - - internal func mapOrFail(JSONObject: Any) throws -> N { - guard let JSON = JSONObject as? [String: Any] else { - throw MapError(key: nil, currentValue: JSONObject, reason: "Cannot cast to '[String: Any]'") - } - return try mapOrFail(JSON: JSON) - } - -} diff --git a/Example/Pods/ObjectMapper/Sources/IntegerOperators.swift b/Example/Pods/ObjectMapper/Sources/IntegerOperators.swift deleted file mode 100644 index cd80334..0000000 --- a/Example/Pods/ObjectMapper/Sources/IntegerOperators.swift +++ /dev/null @@ -1,151 +0,0 @@ -// -// IntegerOperators.swift -// ObjectMapper -// -// Created by Suyeol Jeon on 17/02/2017. -// Copyright © 2017 hearst. All rights reserved. -// - -import Foundation - -// MARK: - Signed Integer - -/// SignedInteger mapping -public func <- (left: inout T, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - let value: T = toSignedInteger(right.currentValue) ?? 0 - FromJSON.basicType(&left, object: value) - case .toJSON: - left >>> right - default: () - } -} - -/// Optional SignedInteger mapping -public func <- (left: inout T?, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - let value: T? = toSignedInteger(right.currentValue) - FromJSON.basicType(&left, object: value) - case .toJSON: - left >>> right - default: () - } -} - -// Code targeting the Swift 4.1 compiler and below. -#if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) -/// ImplicitlyUnwrappedOptional SignedInteger mapping -public func <- (left: inout T!, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - let value: T! = toSignedInteger(right.currentValue) - FromJSON.basicType(&left, object: value) - case .toJSON: - left >>> right - default: () - } -} -#endif - - -// MARK: - Unsigned Integer - -/// UnsignedInteger mapping -public func <- (left: inout T, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - let value: T = toUnsignedInteger(right.currentValue) ?? 0 - FromJSON.basicType(&left, object: value) - case .toJSON: - left >>> right - default: () - } -} - - -/// Optional UnsignedInteger mapping -public func <- (left: inout T?, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - let value: T? = toUnsignedInteger(right.currentValue) - FromJSON.basicType(&left, object: value) - case .toJSON: - left >>> right - default: () - } -} - -// Code targeting the Swift 4.1 compiler and below. -#if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) -/// ImplicitlyUnwrappedOptional UnsignedInteger mapping -public func <- (left: inout T!, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - let value: T! = toUnsignedInteger(right.currentValue) - FromJSON.basicType(&left, object: value) - case .toJSON: - left >>> right - default: () - } -} -#endif - -// MARK: - Casting Utils - -/// Convert any value to `SignedInteger`. -private func toSignedInteger(_ value: Any?) -> T? { - guard - let value = value, - case let number as NSNumber = value - else { - return nil - } - - if T.self == Int.self, let x = Int(exactly: number.int64Value) { - return T.init(x) - } - if T.self == Int8.self, let x = Int8(exactly: number.int64Value) { - return T.init(x) - } - if T.self == Int16.self, let x = Int16(exactly: number.int64Value) { - return T.init(x) - } - if T.self == Int32.self, let x = Int32(exactly: number.int64Value) { - return T.init(x) - } - if T.self == Int64.self, let x = Int64(exactly: number.int64Value) { - return T.init(x) - } - - return nil -} - -/// Convert any value to `UnsignedInteger`. -private func toUnsignedInteger(_ value: Any?) -> T? { - guard - let value = value, - case let number as NSNumber = value - else { - return nil - } - - if T.self == UInt.self, let x = UInt(exactly: number.uint64Value) { - return T.init(x) - } - if T.self == UInt8.self, let x = UInt8(exactly: number.uint64Value) { - return T.init(x) - } - if T.self == UInt16.self, let x = UInt16(exactly: number.uint64Value) { - return T.init(x) - } - if T.self == UInt32.self, let x = UInt32(exactly: number.uint64Value) { - return T.init(x) - } - if T.self == UInt64.self, let x = UInt64(exactly: number.uint64Value) { - return T.init(x) - } - - return nil -} diff --git a/Example/Pods/ObjectMapper/Sources/Map.swift b/Example/Pods/ObjectMapper/Sources/Map.swift deleted file mode 100644 index cec8925..0000000 --- a/Example/Pods/ObjectMapper/Sources/Map.swift +++ /dev/null @@ -1,204 +0,0 @@ -// -// Map.swift -// ObjectMapper -// -// Created by Tristan Himmelman on 2015-10-09. -// -// The MIT License (MIT) -// -// Copyright (c) 2014-2016 Hearst -// -// 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 Foundation - -/// MapContext is available for developers who wish to pass information around during the mapping process. -public protocol MapContext { - -} - -/// A class used for holding mapping data -public final class Map { - public let mappingType: MappingType - - public internal(set) var JSON: [String: Any] = [:] - public internal(set) var isKeyPresent = false - public internal(set) var currentValue: Any? - public internal(set) var currentKey: String? - var keyIsNested = false - public internal(set) var nestedKeyDelimiter: String = "." - public var context: MapContext? - public var shouldIncludeNilValues = false /// If this is set to true, toJSON output will include null values for any variables that are not set. - - public let toObject: Bool // indicates whether the mapping is being applied to an existing object - - public init(mappingType: MappingType, JSON: [String: Any], toObject: Bool = false, context: MapContext? = nil, shouldIncludeNilValues: Bool = false) { - - self.mappingType = mappingType - self.JSON = JSON - self.toObject = toObject - self.context = context - self.shouldIncludeNilValues = shouldIncludeNilValues - } - - /// Sets the current mapper value and key. - /// The Key paramater can be a period separated string (ex. "distance.value") to access sub objects. - public subscript(key: String) -> Map { - // save key and value associated to it - return self.subscript(key: key) - } - - public subscript(key: String, delimiter delimiter: String) -> Map { - return self.subscript(key: key, delimiter: delimiter) - } - - public subscript(key: String, nested nested: Bool) -> Map { - return self.subscript(key: key, nested: nested) - } - - public subscript(key: String, nested nested: Bool, delimiter delimiter: String) -> Map { - return self.subscript(key: key, nested: nested, delimiter: delimiter) - } - - public subscript(key: String, ignoreNil ignoreNil: Bool) -> Map { - return self.subscript(key: key, ignoreNil: ignoreNil) - } - - public subscript(key: String, delimiter delimiter: String, ignoreNil ignoreNil: Bool) -> Map { - return self.subscript(key: key, delimiter: delimiter, ignoreNil: ignoreNil) - } - - public subscript(key: String, nested nested: Bool, ignoreNil ignoreNil: Bool) -> Map { - return self.subscript(key: key, nested: nested, ignoreNil: ignoreNil) - } - - public subscript(key: String, nested nested: Bool?, delimiter delimiter: String, ignoreNil ignoreNil: Bool) -> Map { - return self.subscript(key: key, nested: nested, delimiter: delimiter, ignoreNil: ignoreNil) - } - - private func `subscript`(key: String, nested: Bool? = nil, delimiter: String = ".", ignoreNil: Bool = false) -> Map { - // save key and value associated to it - currentKey = key - keyIsNested = nested ?? key.contains(delimiter) - nestedKeyDelimiter = delimiter - - if mappingType == .fromJSON { - // check if a value exists for the current key - // do this pre-check for performance reasons - if keyIsNested { - // break down the components of the key that are separated by delimiter - (isKeyPresent, currentValue) = valueFor(ArraySlice(key.components(separatedBy: delimiter)), dictionary: JSON) - } else { - let object = JSON[key] - let isNSNull = object is NSNull - isKeyPresent = isNSNull ? true : object != nil - currentValue = isNSNull ? nil : object - } - - // update isKeyPresent if ignoreNil is true - if ignoreNil && currentValue == nil { - isKeyPresent = false - } - } - - return self - } - - public func value() -> T? { - let value = currentValue as? T - - // Swift 4.1 breaks Float casting from `NSNumber`. So Added extra checks for `Float` `[Float]` and `[String:Float]` - if value == nil && T.self == Float.self { - if let v = currentValue as? NSNumber { - return v.floatValue as? T - } - } else if value == nil && T.self == [Float].self { - if let v = currentValue as? [Double] { - #if swift(>=4.1) - return v.compactMap{ Float($0) } as? T - #else - return v.flatMap{ Float($0) } as? T - #endif - } - } else if value == nil && T.self == [String:Float].self { - if let v = currentValue as? [String:Double] { - return v.mapValues{ Float($0) } as? T - } - } - return value - } -} - -/// Fetch value from JSON dictionary, loop through keyPathComponents until we reach the desired object -private func valueFor(_ keyPathComponents: ArraySlice, dictionary: [String: Any]) -> (Bool, Any?) { - // Implement it as a tail recursive function. - if keyPathComponents.isEmpty { - return (false, nil) - } - - if let keyPath = keyPathComponents.first { - let isTail = keyPathComponents.count == 1 - let object = dictionary[keyPath] - if object is NSNull { - return (isTail, nil) - } else if keyPathComponents.count > 1, let dict = object as? [String: Any] { - let tail = keyPathComponents.dropFirst() - return valueFor(tail, dictionary: dict) - } else if keyPathComponents.count > 1, let array = object as? [Any] { - let tail = keyPathComponents.dropFirst() - return valueFor(tail, array: array) - } else { - return (isTail && object != nil, object) - } - } - - return (false, nil) -} - -/// Fetch value from JSON Array, loop through keyPathComponents them until we reach the desired object -private func valueFor(_ keyPathComponents: ArraySlice, array: [Any]) -> (Bool, Any?) { - // Implement it as a tail recursive function. - - if keyPathComponents.isEmpty { - return (false, nil) - } - - //Try to convert keypath to Int as index - if let keyPath = keyPathComponents.first, - let index = Int(keyPath) , index >= 0 && index < array.count { - - let isTail = keyPathComponents.count == 1 - let object = array[index] - - if object is NSNull { - return (isTail, nil) - } else if keyPathComponents.count > 1, let array = object as? [Any] { - let tail = keyPathComponents.dropFirst() - return valueFor(tail, array: array) - } else if keyPathComponents.count > 1, let dict = object as? [String: Any] { - let tail = keyPathComponents.dropFirst() - return valueFor(tail, dictionary: dict) - } else { - return (isTail, object) - } - } - - return (false, nil) -} diff --git a/Example/Pods/ObjectMapper/Sources/MapError.swift b/Example/Pods/ObjectMapper/Sources/MapError.swift deleted file mode 100644 index 8e1c69a..0000000 --- a/Example/Pods/ObjectMapper/Sources/MapError.swift +++ /dev/null @@ -1,68 +0,0 @@ -// -// MapError.swift -// ObjectMapper -// -// Created by Tristan Himmelman on 2016-09-26. -// -// The MIT License (MIT) -// -// Copyright (c) 2014-2016 Hearst -// -// 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 Foundation - -public struct MapError: Error { - public var key: String? - public var currentValue: Any? - public var reason: String? - public var file: StaticString? - public var function: StaticString? - public var line: UInt? - - public init(key: String?, currentValue: Any?, reason: String?, file: StaticString? = nil, function: StaticString? = nil, line: UInt? = nil) { - self.key = key - self.currentValue = currentValue - self.reason = reason - self.file = file - self.function = function - self.line = line - } -} - -extension MapError: CustomStringConvertible { - - private var location: String? { - guard let file = file, let function = function, let line = line else { return nil } - let fileName = ((String(describing: file).components(separatedBy: "/").last ?? "").components(separatedBy: ".").first ?? "") - return "\(fileName).\(function):\(line)" - } - - public var description: String { - let info: [(String, Any?)] = [ - ("- reason", reason), - ("- location", location), - ("- key", key), - ("- currentValue", currentValue), - ] - let infoString = info.map { "\($0.0): \($0.1 ?? "nil")" }.joined(separator: "\n") - return "Got an error while mapping.\n\(infoString)" - } - -} diff --git a/Example/Pods/ObjectMapper/Sources/Mappable.swift b/Example/Pods/ObjectMapper/Sources/Mappable.swift deleted file mode 100644 index ac5d71d..0000000 --- a/Example/Pods/ObjectMapper/Sources/Mappable.swift +++ /dev/null @@ -1,136 +0,0 @@ -// -// Mappable.swift -// ObjectMapper -// -// Created by Scott Hoyt on 10/25/15. -// -// The MIT License (MIT) -// -// Copyright (c) 2014-2016 Hearst -// -// 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 Foundation - -/// BaseMappable should not be implemented directly. Mappable or StaticMappable should be used instead -public protocol BaseMappable { - /// This function is where all variable mappings should occur. It is executed by Mapper during the mapping (serialization and deserialization) process. - mutating func mapping(map: Map) -} - -public protocol Mappable: BaseMappable { - /// This function can be used to validate JSON prior to mapping. Return nil to cancel mapping at this point - init?(map: Map) -} - -public protocol StaticMappable: BaseMappable { - /// This is function that can be used to: - /// 1) provide an existing cached object to be used for mapping - /// 2) return an object of another class (which conforms to BaseMappable) to be used for mapping. For instance, you may inspect the JSON to infer the type of object that should be used for any given mapping - static func objectForMapping(map: Map) -> BaseMappable? -} - -public extension BaseMappable { - - /// Initializes object from a JSON String - public init?(JSONString: String, context: MapContext? = nil) { - if let obj: Self = Mapper(context: context).map(JSONString: JSONString) { - self = obj - } else { - return nil - } - } - - /// Initializes object from a JSON Dictionary - public init?(JSON: [String: Any], context: MapContext? = nil) { - if let obj: Self = Mapper(context: context).map(JSON: JSON) { - self = obj - } else { - return nil - } - } - - /// Returns the JSON Dictionary for the object - public func toJSON() -> [String: Any] { - return Mapper().toJSON(self) - } - - /// Returns the JSON String for the object - public func toJSONString(prettyPrint: Bool = false) -> String? { - return Mapper().toJSONString(self, prettyPrint: prettyPrint) - } -} - -public extension Array where Element: BaseMappable { - - /// Initialize Array from a JSON String - public init?(JSONString: String, context: MapContext? = nil) { - if let obj: [Element] = Mapper(context: context).mapArray(JSONString: JSONString) { - self = obj - } else { - return nil - } - } - - /// Initialize Array from a JSON Array - public init(JSONArray: [[String: Any]], context: MapContext? = nil) { - let obj: [Element] = Mapper(context: context).mapArray(JSONArray: JSONArray) - self = obj - } - - /// Returns the JSON Array - public func toJSON() -> [[String: Any]] { - return Mapper().toJSONArray(self) - } - - /// Returns the JSON String for the object - public func toJSONString(prettyPrint: Bool = false) -> String? { - return Mapper().toJSONString(self, prettyPrint: prettyPrint) - } -} - -public extension Set where Element: BaseMappable { - - /// Initializes a set from a JSON String - public init?(JSONString: String, context: MapContext? = nil) { - if let obj: Set = Mapper(context: context).mapSet(JSONString: JSONString) { - self = obj - } else { - return nil - } - } - - /// Initializes a set from JSON - public init?(JSONArray: [[String: Any]], context: MapContext? = nil) { - guard let obj = Mapper(context: context).mapSet(JSONArray: JSONArray) as Set? else { - return nil - } - self = obj - } - - /// Returns the JSON Set - public func toJSON() -> [[String: Any]] { - return Mapper().toJSONSet(self) - } - - /// Returns the JSON String for the object - public func toJSONString(prettyPrint: Bool = false) -> String? { - return Mapper().toJSONString(self, prettyPrint: prettyPrint) - } -} diff --git a/Example/Pods/ObjectMapper/Sources/Mapper.swift b/Example/Pods/ObjectMapper/Sources/Mapper.swift deleted file mode 100755 index ffbae4f..0000000 --- a/Example/Pods/ObjectMapper/Sources/Mapper.swift +++ /dev/null @@ -1,490 +0,0 @@ -// -// Mapper.swift -// ObjectMapper -// -// Created by Tristan Himmelman on 2014-10-09. -// -// The MIT License (MIT) -// -// Copyright (c) 2014-2016 Hearst -// -// 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 Foundation - -public enum MappingType { - case fromJSON - case toJSON -} - -/// The Mapper class provides methods for converting Model objects to JSON and methods for converting JSON to Model objects -public final class Mapper { - - public var context: MapContext? - public var shouldIncludeNilValues = false /// If this is set to true, toJSON output will include null values for any variables that are not set. - - public init(context: MapContext? = nil, shouldIncludeNilValues: Bool = false){ - self.context = context - self.shouldIncludeNilValues = shouldIncludeNilValues - } - - // MARK: Mapping functions that map to an existing object toObject - - /// Maps a JSON object to an existing Mappable object if it is a JSON dictionary, or returns the passed object as is - public func map(JSONObject: Any?, toObject object: N) -> N { - if let JSON = JSONObject as? [String: Any] { - return map(JSON: JSON, toObject: object) - } - - return object - } - - /// Map a JSON string onto an existing object - public func map(JSONString: String, toObject object: N) -> N { - if let JSON = Mapper.parseJSONStringIntoDictionary(JSONString: JSONString) { - return map(JSON: JSON, toObject: object) - } - return object - } - - /// Maps a JSON dictionary to an existing object that conforms to Mappable. - /// Usefull for those pesky objects that have crappy designated initializers like NSManagedObject - public func map(JSON: [String: Any], toObject object: N) -> N { - var mutableObject = object - let map = Map(mappingType: .fromJSON, JSON: JSON, toObject: true, context: context, shouldIncludeNilValues: shouldIncludeNilValues) - mutableObject.mapping(map: map) - return mutableObject - } - - //MARK: Mapping functions that create an object - - /// Map a JSON string to an object that conforms to Mappable - public func map(JSONString: String) -> N? { - if let JSON = Mapper.parseJSONStringIntoDictionary(JSONString: JSONString) { - return map(JSON: JSON) - } - - return nil - } - - /// Maps a JSON object to a Mappable object if it is a JSON dictionary or NSString, or returns nil. - public func map(JSONObject: Any?) -> N? { - if let JSON = JSONObject as? [String: Any] { - return map(JSON: JSON) - } - - return nil - } - - /// Maps a JSON dictionary to an object that conforms to Mappable - public func map(JSON: [String: Any]) -> N? { - let map = Map(mappingType: .fromJSON, JSON: JSON, context: context, shouldIncludeNilValues: shouldIncludeNilValues) - - if let klass = N.self as? StaticMappable.Type { // Check if object is StaticMappable - if var object = klass.objectForMapping(map: map) as? N { - object.mapping(map: map) - return object - } - } else if let klass = N.self as? Mappable.Type { // Check if object is Mappable - if var object = klass.init(map: map) as? N { - object.mapping(map: map) - return object - } - } else if let klass = N.self as? ImmutableMappable.Type { // Check if object is ImmutableMappable - do { - return try klass.init(map: map) as? N - } catch let error { - #if DEBUG - let exception: NSException - if let mapError = error as? MapError { - exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil) - } else { - exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil) - } - exception.raise() - #endif - } - } else { - // Ensure BaseMappable is not implemented directly - assert(false, "BaseMappable should not be implemented directly. Please implement Mappable, StaticMappable or ImmutableMappable") - } - - return nil - } - - // MARK: Mapping functions for Arrays and Dictionaries - - /// Maps a JSON array to an object that conforms to Mappable - public func mapArray(JSONString: String) -> [N]? { - let parsedJSON: Any? = Mapper.parseJSONString(JSONString: JSONString) - - if let objectArray = mapArray(JSONObject: parsedJSON) { - return objectArray - } - - // failed to parse JSON into array form - // try to parse it into a dictionary and then wrap it in an array - if let object = map(JSONObject: parsedJSON) { - return [object] - } - - return nil - } - - /// Maps a JSON object to an array of Mappable objects if it is an array of JSON dictionary, or returns nil. - public func mapArray(JSONObject: Any?) -> [N]? { - if let JSONArray = JSONObject as? [[String: Any]] { - return mapArray(JSONArray: JSONArray) - } - - return nil - } - - /// Maps an array of JSON dictionary to an array of Mappable objects - public func mapArray(JSONArray: [[String: Any]]) -> [N] { - // map every element in JSON array to type N - #if swift(>=4.1) - let result = JSONArray.compactMap(map) - #else - let result = JSONArray.flatMap(map) - #endif - return result - } - - /// Maps a JSON object to a dictionary of Mappable objects if it is a JSON dictionary of dictionaries, or returns nil. - public func mapDictionary(JSONString: String) -> [String: N]? { - let parsedJSON: Any? = Mapper.parseJSONString(JSONString: JSONString) - return mapDictionary(JSONObject: parsedJSON) - } - - /// Maps a JSON object to a dictionary of Mappable objects if it is a JSON dictionary of dictionaries, or returns nil. - public func mapDictionary(JSONObject: Any?) -> [String: N]? { - if let JSON = JSONObject as? [String: [String: Any]] { - return mapDictionary(JSON: JSON) - } - - return nil - } - - /// Maps a JSON dictionary of dictionaries to a dictionary of Mappable objects - public func mapDictionary(JSON: [String: [String: Any]]) -> [String: N]? { - // map every value in dictionary to type N - let result = JSON.filterMap(map) - if result.isEmpty == false { - return result - } - - return nil - } - - /// Maps a JSON object to a dictionary of Mappable objects if it is a JSON dictionary of dictionaries, or returns nil. - public func mapDictionary(JSONObject: Any?, toDictionary dictionary: [String: N]) -> [String: N] { - if let JSON = JSONObject as? [String : [String : Any]] { - return mapDictionary(JSON: JSON, toDictionary: dictionary) - } - - return dictionary - } - - /// Maps a JSON dictionary of dictionaries to an existing dictionary of Mappable objects - public func mapDictionary(JSON: [String: [String: Any]], toDictionary dictionary: [String: N]) -> [String: N] { - var mutableDictionary = dictionary - for (key, value) in JSON { - if let object = dictionary[key] { - _ = map(JSON: value, toObject: object) - } else { - mutableDictionary[key] = map(JSON: value) - } - } - - return mutableDictionary - } - - /// Maps a JSON object to a dictionary of arrays of Mappable objects - public func mapDictionaryOfArrays(JSONObject: Any?) -> [String: [N]]? { - if let JSON = JSONObject as? [String: [[String: Any]]] { - return mapDictionaryOfArrays(JSON: JSON) - } - - return nil - } - - ///Maps a JSON dictionary of arrays to a dictionary of arrays of Mappable objects - public func mapDictionaryOfArrays(JSON: [String: [[String: Any]]]) -> [String: [N]]? { - // map every value in dictionary to type N - let result = JSON.filterMap { - mapArray(JSONArray: $0) - } - - if result.isEmpty == false { - return result - } - - return nil - } - - /// Maps an 2 dimentional array of JSON dictionaries to a 2 dimentional array of Mappable objects - public func mapArrayOfArrays(JSONObject: Any?) -> [[N]]? { - if let JSONArray = JSONObject as? [[[String: Any]]] { - var objectArray = [[N]]() - for innerJSONArray in JSONArray { - let array = mapArray(JSONArray: innerJSONArray) - objectArray.append(array) - } - - if objectArray.isEmpty == false { - return objectArray - } - } - - return nil - } - - // MARK: Utility functions for converting strings to JSON objects - - /// Convert a JSON String into a Dictionary using NSJSONSerialization - public static func parseJSONStringIntoDictionary(JSONString: String) -> [String: Any]? { - let parsedJSON: Any? = Mapper.parseJSONString(JSONString: JSONString) - return parsedJSON as? [String: Any] - } - - /// Convert a JSON String into an Object using NSJSONSerialization - public static func parseJSONString(JSONString: String) -> Any? { - let data = JSONString.data(using: String.Encoding.utf8, allowLossyConversion: true) - if let data = data { - let parsedJSON: Any? - do { - parsedJSON = try JSONSerialization.jsonObject(with: data, options: JSONSerialization.ReadingOptions.allowFragments) - } catch let error { - print(error) - parsedJSON = nil - } - return parsedJSON - } - - return nil - } -} - -extension Mapper { - // MARK: Functions that create model from JSON file - - /// JSON file to Mappable object - /// - parameter JSONfile: Filename - /// - Returns: Mappable object - public func map(JSONfile: String) -> N? { - if let path = Bundle.main.path(forResource: JSONfile, ofType: nil) { - do { - let JSONString = try String(contentsOfFile: path) - do { - return self.map(JSONString: JSONString) - } - } catch { - return nil - } - } - return nil - } - - /// JSON file to Mappable object array - /// - parameter JSONfile: Filename - /// - Returns: Mappable object array - public func mapArray(JSONfile: String) -> [N]? { - if let path = Bundle.main.path(forResource: JSONfile, ofType: nil) { - do { - let JSONString = try String(contentsOfFile: path) - do { - return self.mapArray(JSONString: JSONString) - } - } catch { - return nil - } - } - return nil - } -} - -extension Mapper { - - // MARK: Functions that create JSON from objects - - ///Maps an object that conforms to Mappable to a JSON dictionary - public func toJSON(_ object: N) -> [String: Any] { - var mutableObject = object - let map = Map(mappingType: .toJSON, JSON: [:], context: context, shouldIncludeNilValues: shouldIncludeNilValues) - mutableObject.mapping(map: map) - return map.JSON - } - - ///Maps an array of Objects to an array of JSON dictionaries [[String: Any]] - public func toJSONArray(_ array: [N]) -> [[String: Any]] { - return array.map { - // convert every element in array to JSON dictionary equivalent - self.toJSON($0) - } - } - - ///Maps a dictionary of Objects that conform to Mappable to a JSON dictionary of dictionaries. - public func toJSONDictionary(_ dictionary: [String: N]) -> [String: [String: Any]] { - return dictionary.map { (arg: (key: String, value: N)) in - // convert every value in dictionary to its JSON dictionary equivalent - return (arg.key, self.toJSON(arg.value)) - } - } - - ///Maps a dictionary of Objects that conform to Mappable to a JSON dictionary of dictionaries. - public func toJSONDictionaryOfArrays(_ dictionary: [String: [N]]) -> [String: [[String: Any]]] { - return dictionary.map { (arg: (key: String, value: [N])) in - // convert every value (array) in dictionary to its JSON dictionary equivalent - return (arg.key, self.toJSONArray(arg.value)) - } - } - - /// Maps an Object to a JSON string with option of pretty formatting - public func toJSONString(_ object: N, prettyPrint: Bool = false) -> String? { - let JSONDict = toJSON(object) - - return Mapper.toJSONString(JSONDict as Any, prettyPrint: prettyPrint) - } - - /// Maps an array of Objects to a JSON string with option of pretty formatting - public func toJSONString(_ array: [N], prettyPrint: Bool = false) -> String? { - let JSONDict = toJSONArray(array) - - return Mapper.toJSONString(JSONDict as Any, prettyPrint: prettyPrint) - } - - /// Converts an Object to a JSON string with option of pretty formatting - public static func toJSONString(_ JSONObject: Any, prettyPrint: Bool) -> String? { - let options: JSONSerialization.WritingOptions = prettyPrint ? .prettyPrinted : [] - if let JSON = Mapper.toJSONData(JSONObject, options: options) { - return String(data: JSON, encoding: String.Encoding.utf8) - } - - return nil - } - - /// Converts an Object to JSON data with options - public static func toJSONData(_ JSONObject: Any, options: JSONSerialization.WritingOptions) -> Data? { - if JSONSerialization.isValidJSONObject(JSONObject) { - let JSONData: Data? - do { - JSONData = try JSONSerialization.data(withJSONObject: JSONObject, options: options) - } catch let error { - print(error) - JSONData = nil - } - - return JSONData - } - - return nil - } -} - -extension Mapper where N: Hashable { - - /// Maps a JSON array to an object that conforms to Mappable - public func mapSet(JSONString: String) -> Set? { - let parsedJSON: Any? = Mapper.parseJSONString(JSONString: JSONString) - - if let objectArray = mapArray(JSONObject: parsedJSON) { - return Set(objectArray) - } - - // failed to parse JSON into array form - // try to parse it into a dictionary and then wrap it in an array - if let object = map(JSONObject: parsedJSON) { - return Set([object]) - } - - return nil - } - - /// Maps a JSON object to an Set of Mappable objects if it is an array of JSON dictionary, or returns nil. - public func mapSet(JSONObject: Any?) -> Set? { - if let JSONArray = JSONObject as? [[String: Any]] { - return mapSet(JSONArray: JSONArray) - } - - return nil - } - - /// Maps an Set of JSON dictionary to an array of Mappable objects - public func mapSet(JSONArray: [[String: Any]]) -> Set { - // map every element in JSON array to type N - #if swift(>=4.1) - return Set(JSONArray.compactMap(map)) - #else - return Set(JSONArray.flatMap(map)) - #endif - } - - ///Maps a Set of Objects to a Set of JSON dictionaries [[String : Any]] - public func toJSONSet(_ set: Set) -> [[String: Any]] { - return set.map { - // convert every element in set to JSON dictionary equivalent - self.toJSON($0) - } - } - - /// Maps a set of Objects to a JSON string with option of pretty formatting - public func toJSONString(_ set: Set, prettyPrint: Bool = false) -> String? { - let JSONDict = toJSONSet(set) - - return Mapper.toJSONString(JSONDict as Any, prettyPrint: prettyPrint) - } -} - -extension Dictionary { - internal func map(_ f: (Element) throws -> (K, V)) rethrows -> [K: V] { - var mapped = [K: V]() - - for element in self { - let newElement = try f(element) - mapped[newElement.0] = newElement.1 - } - - return mapped - } - - internal func map(_ f: (Element) throws -> (K, [V])) rethrows -> [K: [V]] { - var mapped = [K: [V]]() - - for element in self { - let newElement = try f(element) - mapped[newElement.0] = newElement.1 - } - - return mapped - } - - - internal func filterMap(_ f: (Value) throws -> U?) rethrows -> [Key: U] { - var mapped = [Key: U]() - - for (key, value) in self { - if let newValue = try f(value) { - mapped[key] = newValue - } - } - - return mapped - } -} diff --git a/Example/Pods/ObjectMapper/Sources/NSDecimalNumberTransform.swift b/Example/Pods/ObjectMapper/Sources/NSDecimalNumberTransform.swift deleted file mode 100644 index 5852135..0000000 --- a/Example/Pods/ObjectMapper/Sources/NSDecimalNumberTransform.swift +++ /dev/null @@ -1,52 +0,0 @@ -// -// TransformOf.swift -// ObjectMapper -// -// Created by Tristan Himmelman on 8/22/16. -// -// The MIT License (MIT) -// -// Copyright (c) 2014-2016 Hearst -// -// 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 Foundation - -open class NSDecimalNumberTransform: TransformType { - public typealias Object = NSDecimalNumber - public typealias JSON = String - - public init() {} - - open func transformFromJSON(_ value: Any?) -> NSDecimalNumber? { - if let string = value as? String { - return NSDecimalNumber(string: string) - } else if let number = value as? NSNumber { - return NSDecimalNumber(decimal: number.decimalValue) - } else if let double = value as? Double { - return NSDecimalNumber(floatLiteral: double) - } - return nil - } - - open func transformToJSON(_ value: NSDecimalNumber?) -> String? { - guard let value = value else { return nil } - return value.description - } -} diff --git a/Example/Pods/ObjectMapper/Sources/Operators.swift b/Example/Pods/ObjectMapper/Sources/Operators.swift deleted file mode 100755 index 30c2f12..0000000 --- a/Example/Pods/ObjectMapper/Sources/Operators.swift +++ /dev/null @@ -1,398 +0,0 @@ -// -// Operators.swift -// ObjectMapper -// -// Created by Tristan Himmelman on 2014-10-09. -// -// The MIT License (MIT) -// -// Copyright (c) 2014-2016 Hearst -// -// 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. - -/** -* This file defines a new operator which is used to create a mapping between an object and a JSON key value. -* There is an overloaded operator definition for each type of object that is supported in ObjectMapper. -* This provides a way to add custom logic to handle specific types of objects -*/ - -/// Operator used for defining mappings to and from JSON -infix operator <- - -/// Operator used to define mappings to JSON -infix operator >>> - -// MARK:- Objects with Basic types - -/// Object of Basic type -public func <- (left: inout T, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - FromJSON.basicType(&left, object: right.value()) - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: T, right: Map) { - if right.mappingType == .toJSON { - ToJSON.basicType(left, map: right) - } -} - - -/// Optional object of basic type -public func <- (left: inout T?, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - FromJSON.optionalBasicType(&left, object: right.value()) - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: T?, right: Map) { - if right.mappingType == .toJSON { - ToJSON.optionalBasicType(left, map: right) - } -} - - -// Code targeting the Swift 4.1 compiler and below. -#if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) -/// Implicitly unwrapped optional object of basic type -public func <- (left: inout T!, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - FromJSON.optionalBasicType(&left, object: right.value()) - case .toJSON: - left >>> right - default: () - } -} -#endif - -// MARK:- Mappable Objects - - -/// Object conforming to Mappable -public func <- (left: inout T, right: Map) { - switch right.mappingType { - case .fromJSON: - FromJSON.object(&left, map: right) - case .toJSON: - left >>> right - } -} - -public func >>> (left: T, right: Map) { - if right.mappingType == .toJSON { - ToJSON.object(left, map: right) - } -} - - -/// Optional Mappable objects -public func <- (left: inout T?, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - FromJSON.optionalObject(&left, map: right) - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: T?, right: Map) { - if right.mappingType == .toJSON { - ToJSON.optionalObject(left, map: right) - } -} - - -// Code targeting the Swift 4.1 compiler and below. -#if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) -/// Implicitly unwrapped optional Mappable objects -public func <- (left: inout T!, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - FromJSON.optionalObject(&left, map: right) - case .toJSON: - left >>> right - default: () - } -} -#endif - -// MARK:- Dictionary of Mappable objects - Dictionary - -/// Dictionary of Mappable objects -public func <- (left: inout Dictionary, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - FromJSON.objectDictionary(&left, map: right) - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: Dictionary, right: Map) { - if right.mappingType == .toJSON { - ToJSON.objectDictionary(left, map: right) - } -} - - -/// Optional Dictionary of Mappable object -public func <- (left: inout Dictionary?, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - FromJSON.optionalObjectDictionary(&left, map: right) - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: Dictionary?, right: Map) { - if right.mappingType == .toJSON { - ToJSON.optionalObjectDictionary(left, map: right) - } -} - - -// Code targeting the Swift 4.1 compiler and below. -#if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) -/// Implicitly unwrapped Optional Dictionary of Mappable object -public func <- (left: inout Dictionary!, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - FromJSON.optionalObjectDictionary(&left, map: right) - case .toJSON: - left >>> right - default: () - } -} -#endif - -/// Dictionary of Mappable objects -public func <- (left: inout Dictionary, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - FromJSON.objectDictionaryOfArrays(&left, map: right) - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: Dictionary, right: Map) { - if right.mappingType == .toJSON { - ToJSON.objectDictionaryOfArrays(left, map: right) - } -} - -/// Optional Dictionary of Mappable object -public func <- (left: inout Dictionary?, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - FromJSON.optionalObjectDictionaryOfArrays(&left, map: right) - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: Dictionary?, right: Map) { - if right.mappingType == .toJSON { - ToJSON.optionalObjectDictionaryOfArrays(left, map: right) - } -} - - -// Code targeting the Swift 4.1 compiler and below. -#if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) -/// Implicitly unwrapped Optional Dictionary of Mappable object -public func <- (left: inout Dictionary!, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - FromJSON.optionalObjectDictionaryOfArrays(&left, map: right) - case .toJSON: - left >>> right - default: () - } -} -#endif - -// MARK:- Array of Mappable objects - Array - -/// Array of Mappable objects -public func <- (left: inout Array, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - FromJSON.objectArray(&left, map: right) - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: Array, right: Map) { - if right.mappingType == .toJSON { - ToJSON.objectArray(left, map: right) - } -} - -/// Optional array of Mappable objects -public func <- (left: inout Array?, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - FromJSON.optionalObjectArray(&left, map: right) - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: Array?, right: Map) { - if right.mappingType == .toJSON { - ToJSON.optionalObjectArray(left, map: right) - } -} - - -// Code targeting the Swift 4.1 compiler and below. -#if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) -/// Implicitly unwrapped Optional array of Mappable objects -public func <- (left: inout Array!, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - FromJSON.optionalObjectArray(&left, map: right) - case .toJSON: - left >>> right - default: () - } -} -#endif - -// MARK:- Array of Array of Mappable objects - Array> - -/// Array of Array Mappable objects -public func <- (left: inout Array>, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - FromJSON.twoDimensionalObjectArray(&left, map: right) - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: Array>, right: Map) { - if right.mappingType == .toJSON { - ToJSON.twoDimensionalObjectArray(left, map: right) - } -} - - -/// Optional array of Mappable objects -public func <- (left:inout Array>?, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - FromJSON.optionalTwoDimensionalObjectArray(&left, map: right) - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: Array>?, right: Map) { - if right.mappingType == .toJSON { - ToJSON.optionalTwoDimensionalObjectArray(left, map: right) - } -} - - -// Code targeting the Swift 4.1 compiler and below. -#if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) -/// Implicitly unwrapped Optional array of Mappable objects -public func <- (left: inout Array>!, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - FromJSON.optionalTwoDimensionalObjectArray(&left, map: right) - case .toJSON: - left >>> right - default: () - } -} -#endif - -// MARK:- Set of Mappable objects - Set - -/// Set of Mappable objects -public func <- (left: inout Set, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - FromJSON.objectSet(&left, map: right) - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: Set, right: Map) { - if right.mappingType == .toJSON { - ToJSON.objectSet(left, map: right) - } -} - - -/// Optional Set of Mappable objects -public func <- (left: inout Set?, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - FromJSON.optionalObjectSet(&left, map: right) - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: Set?, right: Map) { - if right.mappingType == .toJSON { - ToJSON.optionalObjectSet(left, map: right) - } -} - - -// Code targeting the Swift 4.1 compiler and below. -#if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) -/// Implicitly unwrapped Optional Set of Mappable objects -public func <- (left: inout Set!, right: Map) { - switch right.mappingType { - case .fromJSON where right.isKeyPresent: - FromJSON.optionalObjectSet(&left, map: right) - case .toJSON: - left >>> right - default: () - } -} -#endif diff --git a/Example/Pods/ObjectMapper/Sources/ToJSON.swift b/Example/Pods/ObjectMapper/Sources/ToJSON.swift deleted file mode 100644 index 4109b3c..0000000 --- a/Example/Pods/ObjectMapper/Sources/ToJSON.swift +++ /dev/null @@ -1,181 +0,0 @@ -// -// ToJSON.swift -// ObjectMapper -// -// Created by Tristan Himmelman on 2014-10-13. -// -// The MIT License (MIT) -// -// Copyright (c) 2014-2016 Hearst -// -// 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 Foundation - -private func setValue(_ value: Any, map: Map) { - setValue(value, key: map.currentKey!, checkForNestedKeys: map.keyIsNested, delimiter: map.nestedKeyDelimiter, dictionary: &map.JSON) -} - -private func setValue(_ value: Any, key: String, checkForNestedKeys: Bool, delimiter: String, dictionary: inout [String : Any]) { - if checkForNestedKeys { - let keyComponents = ArraySlice(key.components(separatedBy: delimiter).filter { !$0.isEmpty }.map { $0 }) - setValue(value, forKeyPathComponents: keyComponents, dictionary: &dictionary) - } else { - dictionary[key] = value - } -} - -private func setValue(_ value: Any, forKeyPathComponents components: ArraySlice, dictionary: inout [String : Any]) { - if components.isEmpty { - return - } - - let head = components.first! - - if components.count == 1 { - dictionary[String(head)] = value - } else { - var child = dictionary[String(head)] as? [String : Any] - if child == nil { - child = [:] - } - - let tail = components.dropFirst() - setValue(value, forKeyPathComponents: tail, dictionary: &child!) - - dictionary[String(head)] = child - } -} - -internal final class ToJSON { - - class func basicType(_ field: N, map: Map) { - if let x = field as Any? , false - || x is NSNumber // Basic types - || x is Bool - || x is Int - || x is Double - || x is Float - || x is String - || x is NSNull - || x is Array // Arrays - || x is Array - || x is Array - || x is Array - || x is Array - || x is Array - || x is Array - || x is Array> - || x is Dictionary // Dictionaries - || x is Dictionary - || x is Dictionary - || x is Dictionary - || x is Dictionary - || x is Dictionary - || x is Dictionary - { - setValue(x, map: map) - } - } - - class func optionalBasicType(_ field: N?, map: Map) { - if let field = field { - basicType(field, map: map) - } else if map.shouldIncludeNilValues { - basicType(NSNull(), map: map) //If BasicType is nil, emit NSNull into the JSON output - } - } - - class func object(_ field: N, map: Map) { - if let result = Mapper(context: map.context, shouldIncludeNilValues: map.shouldIncludeNilValues).toJSON(field) as Any? { - setValue(result, map: map) - } - } - - class func optionalObject(_ field: N?, map: Map) { - if let field = field { - object(field, map: map) - } else if map.shouldIncludeNilValues { - basicType(NSNull(), map: map) //If field is nil, emit NSNull into the JSON output - } - } - - class func objectArray(_ field: Array, map: Map) { - let JSONObjects = Mapper(context: map.context, shouldIncludeNilValues: map.shouldIncludeNilValues).toJSONArray(field) - - setValue(JSONObjects, map: map) - } - - class func optionalObjectArray(_ field: Array?, map: Map) { - if let field = field { - objectArray(field, map: map) - } - } - - class func twoDimensionalObjectArray(_ field: Array>, map: Map) { - var array = [[[String: Any]]]() - for innerArray in field { - let JSONObjects = Mapper(context: map.context, shouldIncludeNilValues: map.shouldIncludeNilValues).toJSONArray(innerArray) - array.append(JSONObjects) - } - setValue(array, map: map) - } - - class func optionalTwoDimensionalObjectArray(_ field: Array>?, map: Map) { - if let field = field { - twoDimensionalObjectArray(field, map: map) - } - } - - class func objectSet(_ field: Set, map: Map) { - let JSONObjects = Mapper(context: map.context, shouldIncludeNilValues: map.shouldIncludeNilValues).toJSONSet(field) - - setValue(JSONObjects, map: map) - } - - class func optionalObjectSet(_ field: Set?, map: Map) { - if let field = field { - objectSet(field, map: map) - } - } - - class func objectDictionary(_ field: Dictionary, map: Map) { - let JSONObjects = Mapper(context: map.context, shouldIncludeNilValues: map.shouldIncludeNilValues).toJSONDictionary(field) - - setValue(JSONObjects, map: map) - } - - class func optionalObjectDictionary(_ field: Dictionary?, map: Map) { - if let field = field { - objectDictionary(field, map: map) - } - } - - class func objectDictionaryOfArrays(_ field: Dictionary, map: Map) { - let JSONObjects = Mapper(context: map.context, shouldIncludeNilValues: map.shouldIncludeNilValues).toJSONDictionaryOfArrays(field) - - setValue(JSONObjects, map: map) - } - - class func optionalObjectDictionaryOfArrays(_ field: Dictionary?, map: Map) { - if let field = field { - objectDictionaryOfArrays(field, map: map) - } - } -} diff --git a/Example/Pods/ObjectMapper/Sources/TransformOf.swift b/Example/Pods/ObjectMapper/Sources/TransformOf.swift deleted file mode 100644 index 97056c6..0000000 --- a/Example/Pods/ObjectMapper/Sources/TransformOf.swift +++ /dev/null @@ -1,48 +0,0 @@ -// -// TransformOf.swift -// ObjectMapper -// -// Created by Syo Ikeda on 1/23/15. -// -// The MIT License (MIT) -// -// Copyright (c) 2014-2016 Hearst -// -// 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. - -open class TransformOf: TransformType { - public typealias Object = ObjectType - public typealias JSON = JSONType - - private let fromJSON: (JSONType?) -> ObjectType? - private let toJSON: (ObjectType?) -> JSONType? - - public init(fromJSON: @escaping(JSONType?) -> ObjectType?, toJSON: @escaping(ObjectType?) -> JSONType?) { - self.fromJSON = fromJSON - self.toJSON = toJSON - } - - open func transformFromJSON(_ value: Any?) -> ObjectType? { - return fromJSON(value as? JSONType) - } - - open func transformToJSON(_ value: ObjectType?) -> JSONType? { - return toJSON(value) - } -} diff --git a/Example/Pods/ObjectMapper/Sources/TransformOperators.swift b/Example/Pods/ObjectMapper/Sources/TransformOperators.swift deleted file mode 100644 index bd13951..0000000 --- a/Example/Pods/ObjectMapper/Sources/TransformOperators.swift +++ /dev/null @@ -1,689 +0,0 @@ -// -// TransformOperators.swift -// ObjectMapper -// -// Created by Tristan Himmelman on 2016-09-26. -// Copyright © 2016 hearst. All rights reserved. -// - -import Foundation - -// MARK:- Transforms - -/// Object of Basic type with Transform -public func <- (left: inout Transform.Object, right: (Map, Transform)) { - let (map, transform) = right - switch map.mappingType { - case .fromJSON where map.isKeyPresent: - let value = transform.transformFromJSON(map.currentValue) - FromJSON.basicType(&left, object: value) - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: Transform.Object, right: (Map, Transform)) { - let (map, transform) = right - if map.mappingType == .toJSON { - let value: Transform.JSON? = transform.transformToJSON(left) - ToJSON.optionalBasicType(value, map: map) - } -} - - -/// Optional object of basic type with Transform -public func <- (left: inout Transform.Object?, right: (Map, Transform)) { - let (map, transform) = right - switch map.mappingType { - case .fromJSON where map.isKeyPresent: - let value = transform.transformFromJSON(map.currentValue) - FromJSON.optionalBasicType(&left, object: value) - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: Transform.Object?, right: (Map, Transform)) { - let (map, transform) = right - if map.mappingType == .toJSON { - let value: Transform.JSON? = transform.transformToJSON(left) - ToJSON.optionalBasicType(value, map: map) - } -} - - -// Code targeting the Swift 4.1 compiler and below. -#if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) -/// Implicitly unwrapped optional object of basic type with Transform -public func <- (left: inout Transform.Object!, right: (Map, Transform)) { - let (map, transform) = right - switch map.mappingType { - case .fromJSON where map.isKeyPresent: - let value = transform.transformFromJSON(map.currentValue) - FromJSON.optionalBasicType(&left, object: value) - case .toJSON: - left >>> right - default: () - } -} -#endif - -/// Array of Basic type with Transform -public func <- (left: inout [Transform.Object], right: (Map, Transform)) { - let (map, transform) = right - switch map.mappingType { - case .fromJSON where map.isKeyPresent: - let values = fromJSONArrayWithTransform(map.currentValue, transform: transform) - FromJSON.basicType(&left, object: values) - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: [Transform.Object], right: (Map, Transform)) { - let (map, transform) = right - if map.mappingType == .toJSON{ - let values = toJSONArrayWithTransform(left, transform: transform) - ToJSON.optionalBasicType(values, map: map) - } -} - - -/// Optional array of Basic type with Transform -public func <- (left: inout [Transform.Object]?, right: (Map, Transform)) { - let (map, transform) = right - switch map.mappingType { - case .fromJSON where map.isKeyPresent: - let values = fromJSONArrayWithTransform(map.currentValue, transform: transform) - FromJSON.optionalBasicType(&left, object: values) - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: [Transform.Object]?, right: (Map, Transform)) { - let (map, transform) = right - if map.mappingType == .toJSON { - let values = toJSONArrayWithTransform(left, transform: transform) - ToJSON.optionalBasicType(values, map: map) - } -} - - -// Code targeting the Swift 4.1 compiler and below. -#if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) -/// Implicitly unwrapped optional array of Basic type with Transform -public func <- (left: inout [Transform.Object]!, right: (Map, Transform)) { - let (map, transform) = right - switch map.mappingType { - case .fromJSON where map.isKeyPresent: - let values = fromJSONArrayWithTransform(map.currentValue, transform: transform) - FromJSON.optionalBasicType(&left, object: values) - case .toJSON: - left >>> right - default: () - } -} -#endif - -/// Dictionary of Basic type with Transform -public func <- (left: inout [String: Transform.Object], right: (Map, Transform)) { - let (map, transform) = right - switch map.mappingType { - case .fromJSON where map.isKeyPresent: - let values = fromJSONDictionaryWithTransform(map.currentValue, transform: transform) - FromJSON.basicType(&left, object: values) - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: [String: Transform.Object], right: (Map, Transform)) { - let (map, transform) = right - if map.mappingType == . toJSON { - let values = toJSONDictionaryWithTransform(left, transform: transform) - ToJSON.optionalBasicType(values, map: map) - } -} - - -/// Optional dictionary of Basic type with Transform -public func <- (left: inout [String: Transform.Object]?, right: (Map, Transform)) { - let (map, transform) = right - switch map.mappingType { - case .fromJSON where map.isKeyPresent: - let values = fromJSONDictionaryWithTransform(map.currentValue, transform: transform) - FromJSON.optionalBasicType(&left, object: values) - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: [String: Transform.Object]?, right: (Map, Transform)) { - let (map, transform) = right - if map.mappingType == .toJSON { - let values = toJSONDictionaryWithTransform(left, transform: transform) - ToJSON.optionalBasicType(values, map: map) - } -} - - -// Code targeting the Swift 4.1 compiler and below. -#if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) -/// Implicitly unwrapped optional dictionary of Basic type with Transform -public func <- (left: inout [String: Transform.Object]!, right: (Map, Transform)) { - let (map, transform) = right - switch map.mappingType { - case .fromJSON where map.isKeyPresent: - let values = fromJSONDictionaryWithTransform(map.currentValue, transform: transform) - FromJSON.optionalBasicType(&left, object: values) - case .toJSON: - left >>> right - default: () - } -} -#endif - -// MARK:- Transforms of Mappable Objects - - -/// Object conforming to Mappable that have transforms -public func <- (left: inout Transform.Object, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - switch map.mappingType { - case .fromJSON where map.isKeyPresent: - let value: Transform.Object? = transform.transformFromJSON(map.currentValue) - FromJSON.basicType(&left, object: value) - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: Transform.Object, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - if map.mappingType == .toJSON { - let value: Transform.JSON? = transform.transformToJSON(left) - ToJSON.optionalBasicType(value, map: map) - } -} - - -/// Optional Mappable objects that have transforms -public func <- (left: inout Transform.Object?, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - switch map.mappingType { - case .fromJSON where map.isKeyPresent: - let value: Transform.Object? = transform.transformFromJSON(map.currentValue) - FromJSON.optionalBasicType(&left, object: value) - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: Transform.Object?, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - if map.mappingType == .toJSON{ - let value: Transform.JSON? = transform.transformToJSON(left) - ToJSON.optionalBasicType(value, map: map) - } -} - - -// Code targeting the Swift 4.1 compiler and below. -#if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) -/// Implicitly unwrapped optional Mappable objects that have transforms -public func <- (left: inout Transform.Object!, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - switch map.mappingType { - case .fromJSON where map.isKeyPresent: - let value: Transform.Object? = transform.transformFromJSON(map.currentValue) - FromJSON.optionalBasicType(&left, object: value) - case .toJSON: - left >>> right - default: () - } -} -#endif - - -// MARK:- Dictionary of Mappable objects with a transform - Dictionary - -/// Dictionary of Mappable objects with a transform -public func <- (left: inout Dictionary, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - if map.mappingType == .fromJSON && map.isKeyPresent, - let object = map.currentValue as? [String: Any] { - let value = fromJSONDictionaryWithTransform(object as Any?, transform: transform) ?? left - FromJSON.basicType(&left, object: value) - } else if map.mappingType == .toJSON { - left >>> right - } -} - -public func >>> (left: Dictionary, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - if map.mappingType == .toJSON { - let value = toJSONDictionaryWithTransform(left, transform: transform) - ToJSON.basicType(value, map: map) - } -} - - -/// Optional Dictionary of Mappable object with a transform -public func <- (left: inout Dictionary?, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - if map.mappingType == .fromJSON && map.isKeyPresent, let object = map.currentValue as? [String : Any]{ - let value = fromJSONDictionaryWithTransform(object as Any?, transform: transform) ?? left - FromJSON.optionalBasicType(&left, object: value) - } else if map.mappingType == .toJSON { - left >>> right - } -} - -public func >>> (left: Dictionary?, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - if map.mappingType == .toJSON { - let value = toJSONDictionaryWithTransform(left, transform: transform) - ToJSON.optionalBasicType(value, map: map) - } -} - - -// Code targeting the Swift 4.1 compiler and below. -#if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) -/// Implicitly unwrapped Optional Dictionary of Mappable object with a transform -public func <- (left: inout Dictionary!, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - if map.mappingType == .fromJSON && map.isKeyPresent, let dictionary = map.currentValue as? [String : Any]{ - let transformedDictionary = fromJSONDictionaryWithTransform(dictionary as Any?, transform: transform) ?? left - FromJSON.optionalBasicType(&left, object: transformedDictionary) - } else if map.mappingType == .toJSON { - left >>> right - } -} -#endif - -/// Dictionary of Mappable objects with a transform -public func <- (left: inout Dictionary, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - - if let dictionary = map.currentValue as? [String : [Any]], map.mappingType == .fromJSON && map.isKeyPresent { - let transformedDictionary = dictionary.map { (arg: (key: String, values: [Any])) -> (String, [Transform.Object]) in - let (key, values) = arg - if let jsonArray = fromJSONArrayWithTransform(values, transform: transform) { - return (key, jsonArray) - } - if let leftValue = left[key] { - return (key, leftValue) - } - return (key, []) - } - - FromJSON.basicType(&left, object: transformedDictionary) - } else if map.mappingType == .toJSON { - left >>> right - } -} - -public func >>> (left: Dictionary, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - - if map.mappingType == .toJSON { - - let transformedDictionary = left.map { (arg: (key: String, value: [Transform.Object])) in - return (arg.key, toJSONArrayWithTransform(arg.value, transform: transform) ?? []) - } - - ToJSON.basicType(transformedDictionary, map: map) - } -} - - -/// Optional Dictionary of Mappable object with a transform -public func <- (left: inout Dictionary?, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - - if let dictionary = map.currentValue as? [String : [Any]], map.mappingType == .fromJSON && map.isKeyPresent { - - let transformedDictionary = dictionary.map { (arg: (key: String, values: [Any])) -> (String, [Transform.Object]) in - let (key, values) = arg - if let jsonArray = fromJSONArrayWithTransform(values, transform: transform) { - return (key, jsonArray) - } - if let leftValue = left?[key] { - return (key, leftValue) - } - return (key, []) - } - - FromJSON.optionalBasicType(&left, object: transformedDictionary) - } else if map.mappingType == .toJSON { - left >>> right - } -} - -public func >>> (left: Dictionary?, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - - if map.mappingType == .toJSON { - let transformedDictionary = left?.map { (arg: (key: String, values: [Transform.Object])) in - return (arg.key, toJSONArrayWithTransform(arg.values, transform: transform) ?? []) - } - - ToJSON.optionalBasicType(transformedDictionary, map: map) - } -} - - -// Code targeting the Swift 4.1 compiler and below. -#if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) -/// Implicitly unwrapped Optional Dictionary of Mappable object with a transform -public func <- (left: inout Dictionary!, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - - if let dictionary = map.currentValue as? [String : [Any]], map.mappingType == .fromJSON && map.isKeyPresent { - let transformedDictionary = dictionary.map { (arg: (key: String, values: [Any])) -> (String, [Transform.Object]) in - let (key, values) = arg - if let jsonArray = fromJSONArrayWithTransform(values, transform: transform) { - return (key, jsonArray) - } - if let leftValue = left?[key] { - return (key, leftValue) - } - return (key, []) - } - FromJSON.optionalBasicType(&left, object: transformedDictionary) - } else if map.mappingType == .toJSON { - left >>> right - } -} -#endif - -// MARK:- Array of Mappable objects with transforms - Array - -/// Array of Mappable objects -public func <- (left: inout Array, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - switch map.mappingType { - case .fromJSON where map.isKeyPresent: - if let transformedValues = fromJSONArrayWithTransform(map.currentValue, transform: transform) { - FromJSON.basicType(&left, object: transformedValues) - } - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: Array, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - if map.mappingType == .toJSON { - let transformedValues = toJSONArrayWithTransform(left, transform: transform) - ToJSON.optionalBasicType(transformedValues, map: map) - } -} - - -/// Optional array of Mappable objects -public func <- (left: inout Array?, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - switch map.mappingType { - case .fromJSON where map.isKeyPresent: - let transformedValues = fromJSONArrayWithTransform(map.currentValue, transform: transform) - FromJSON.optionalBasicType(&left, object: transformedValues) - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: Array?, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - if map.mappingType == .toJSON { - let transformedValues = toJSONArrayWithTransform(left, transform: transform) - ToJSON.optionalBasicType(transformedValues, map: map) - } -} - - -// Code targeting the Swift 4.1 compiler and below. -#if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) -/// Implicitly unwrapped Optional array of Mappable objects -public func <- (left: inout Array!, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - switch map.mappingType { - case .fromJSON where map.isKeyPresent: - let transformedValues = fromJSONArrayWithTransform(map.currentValue, transform: transform) - FromJSON.optionalBasicType(&left, object: transformedValues) - case .toJSON: - left >>> right - default: () - } -} -#endif - -// MARK:- Array of Array of objects - Array>> with transforms - -/// Array of Array of objects with transform -public func <- (left: inout [[Transform.Object]], right: (Map, Transform)) { - let (map, transform) = right - switch map.mappingType { - case .toJSON: - left >>> right - case .fromJSON where map.isKeyPresent: - guard let original2DArray = map.currentValue as? [[Any]] else { break } - #if swift(>=4.1) - let transformed2DArray = original2DArray.compactMap { values in - fromJSONArrayWithTransform(values as Any?, transform: transform) - } - #else - let transformed2DArray = original2DArray.flatMap { values in - fromJSONArrayWithTransform(values as Any?, transform: transform) - } - #endif - FromJSON.basicType(&left, object: transformed2DArray) - default: - break - } -} - -public func >>> (left: [[Transform.Object]], right: (Map, Transform)) { - let (map, transform) = right - if map.mappingType == .toJSON{ - #if swift(>=4.1) - let transformed2DArray = left.compactMap { values in - toJSONArrayWithTransform(values, transform: transform) - } - #else - let transformed2DArray = left.flatMap { values in - toJSONArrayWithTransform(values, transform: transform) - } - #endif - ToJSON.basicType(transformed2DArray, map: map) - } -} - -/// Optional array of array of objects with transform -public func <- (left: inout [[Transform.Object]]?, right: (Map, Transform)) { - let (map, transform) = right - switch map.mappingType { - case .toJSON: - left >>> right - case .fromJSON where map.isKeyPresent: - guard let original2DArray = map.currentValue as? [[Any]] else { break } - #if swift(>=4.1) - let transformed2DArray = original2DArray.compactMap { values in - fromJSONArrayWithTransform(values as Any?, transform: transform) - } - #else - let transformed2DArray = original2DArray.flatMap { values in - fromJSONArrayWithTransform(values as Any?, transform: transform) - } - #endif - FromJSON.optionalBasicType(&left, object: transformed2DArray) - default: - break - } -} - -public func >>> (left: [[Transform.Object]]?, right: (Map, Transform)) { - let (map, transform) = right - if map.mappingType == .toJSON { - #if swift(>=4.1) - let transformed2DArray = left?.compactMap { values in - toJSONArrayWithTransform(values, transform: transform) - } - #else - let transformed2DArray = left?.flatMap { values in - toJSONArrayWithTransform(values, transform: transform) - } - #endif - ToJSON.optionalBasicType(transformed2DArray, map: map) - } -} - - -// Code targeting the Swift 4.1 compiler and below. -#if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) -/// Implicitly unwrapped Optional array of array of objects with transform -public func <- (left: inout [[Transform.Object]]!, right: (Map, Transform)) { - let (map, transform) = right - switch map.mappingType { - case .toJSON: - left >>> right - case .fromJSON where map.isKeyPresent: - guard let original2DArray = map.currentValue as? [[Any]] else { break } - #if swift(>=4.1) - let transformed2DArray = original2DArray.compactMap { values in - fromJSONArrayWithTransform(values as Any?, transform: transform) - } - #else - let transformed2DArray = original2DArray.flatMap { values in - fromJSONArrayWithTransform(values as Any?, transform: transform) - } - #endif - FromJSON.optionalBasicType(&left, object: transformed2DArray) - default: - break - } -} -#endif - -// MARK:- Set of Mappable objects with a transform - Set - -/// Set of Mappable objects with transform -public func <- (left: inout Set, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - switch map.mappingType { - case .fromJSON where map.isKeyPresent: - if let transformedValues = fromJSONArrayWithTransform(map.currentValue, transform: transform) { - FromJSON.basicType(&left, object: Set(transformedValues)) - } - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: Set, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - if map.mappingType == .toJSON { - let transformedValues = toJSONArrayWithTransform(Array(left), transform: transform) - ToJSON.optionalBasicType(transformedValues, map: map) - } -} - - -/// Optional Set of Mappable objects with transform -public func <- (left: inout Set?, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - switch map.mappingType { - case .fromJSON where map.isKeyPresent: - if let transformedValues = fromJSONArrayWithTransform(map.currentValue, transform: transform) { - FromJSON.basicType(&left, object: Set(transformedValues)) - } - case .toJSON: - left >>> right - default: () - } -} - -public func >>> (left: Set?, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - if map.mappingType == .toJSON { - if let values = left { - let transformedValues = toJSONArrayWithTransform(Array(values), transform: transform) - ToJSON.optionalBasicType(transformedValues, map: map) - } - } -} - - -// Code targeting the Swift 4.1 compiler and below. -#if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))) -/// Implicitly unwrapped Optional set of Mappable objects with transform -public func <- (left: inout Set!, right: (Map, Transform)) where Transform.Object: BaseMappable { - let (map, transform) = right - switch map.mappingType { - case .fromJSON where map.isKeyPresent: - if let transformedValues = fromJSONArrayWithTransform(map.currentValue, transform: transform) { - FromJSON.basicType(&left, object: Set(transformedValues)) - } - case .toJSON: - left >>> right - default: () - } -} -#endif - - -private func fromJSONArrayWithTransform(_ input: Any?, transform: Transform) -> [Transform.Object]? { - if let values = input as? [Any] { - #if swift(>=4.1) - return values.compactMap { value in - return transform.transformFromJSON(value) - } - #else - return values.flatMap { value in - return transform.transformFromJSON(value) - } - #endif - } else { - return nil - } -} - -private func fromJSONDictionaryWithTransform(_ input: Any?, transform: Transform) -> [String: Transform.Object]? { - if let values = input as? [String: Any] { - return values.filterMap { value in - return transform.transformFromJSON(value) - } - } else { - return nil - } -} - -private func toJSONArrayWithTransform(_ input: [Transform.Object]?, transform: Transform) -> [Transform.JSON]? { - #if swift(>=4.1) - return input?.compactMap { value in - return transform.transformToJSON(value) - } - #else - return input?.flatMap { value in - return transform.transformToJSON(value) - } - #endif -} - -private func toJSONDictionaryWithTransform(_ input: [String: Transform.Object]?, transform: Transform) -> [String: Transform.JSON]? { - return input?.filterMap { value in - return transform.transformToJSON(value) - } -} diff --git a/Example/Pods/ObjectMapper/Sources/TransformType.swift b/Example/Pods/ObjectMapper/Sources/TransformType.swift deleted file mode 100644 index 61578c3..0000000 --- a/Example/Pods/ObjectMapper/Sources/TransformType.swift +++ /dev/null @@ -1,35 +0,0 @@ -// -// TransformType.swift -// ObjectMapper -// -// Created by Syo Ikeda on 2/4/15. -// -// The MIT License (MIT) -// -// Copyright (c) 2014-2016 Hearst -// -// 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. - -public protocol TransformType { - associatedtype Object - associatedtype JSON - - func transformFromJSON(_ value: Any?) -> Object? - func transformToJSON(_ value: Object?) -> JSON? -} diff --git a/Example/Pods/ObjectMapper/Sources/URLTransform.swift b/Example/Pods/ObjectMapper/Sources/URLTransform.swift deleted file mode 100644 index 5624476..0000000 --- a/Example/Pods/ObjectMapper/Sources/URLTransform.swift +++ /dev/null @@ -1,67 +0,0 @@ -// -// URLTransform.swift -// ObjectMapper -// -// Created by Tristan Himmelman on 2014-10-27. -// -// The MIT License (MIT) -// -// Copyright (c) 2014-2016 Hearst -// -// 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 Foundation - -open class URLTransform: TransformType { - public typealias Object = URL - public typealias JSON = String - private let shouldEncodeURLString: Bool - private let allowedCharacterSet: CharacterSet - - /** - Initializes the URLTransform with an option to encode URL strings before converting them to an NSURL - - parameter shouldEncodeUrlString: when true (the default) the string is encoded before passing - to `NSURL(string:)` - - returns: an initialized transformer - */ - public init(shouldEncodeURLString: Bool = false, allowedCharacterSet: CharacterSet = .urlQueryAllowed) { - self.shouldEncodeURLString = shouldEncodeURLString - self.allowedCharacterSet = allowedCharacterSet - } - - open func transformFromJSON(_ value: Any?) -> URL? { - guard let URLString = value as? String else { return nil } - - if !shouldEncodeURLString { - return URL(string: URLString) - } - - guard let escapedURLString = URLString.addingPercentEncoding(withAllowedCharacters: allowedCharacterSet) else { - return nil - } - return URL(string: escapedURLString) - } - - open func transformToJSON(_ value: URL?) -> String? { - if let URL = value { - return URL.absoluteString - } - return nil - } -} diff --git a/Example/Pods/Pods.xcodeproj/project.pbxproj b/Example/Pods/Pods.xcodeproj/project.pbxproj deleted file mode 100644 index d28b5f0..0000000 --- a/Example/Pods/Pods.xcodeproj/project.pbxproj +++ /dev/null @@ -1,1049 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 086A8AF4D45C37DBF66FFE06E0E53EAB /* FromJSON.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5BF0B134157103FEB6F696A98717239 /* FromJSON.swift */; }; - 0A14CF82F625AADBB9B9C6EE2A7993AA /* IntegerOperators.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4FA3A66A9DB9005FD97A879F6E83548C /* IntegerOperators.swift */; }; - 0B007CC659F8554C442D7EF9C377078A /* MapError.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9ED836E99AE21969C18AFBBA73D80A94 /* MapError.swift */; }; - 0BB4EF281398F2725F72FDEE1810B637 /* Pods-APNSUtil_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 0393E58277FFD205AC1BB642E960A266 /* Pods-APNSUtil_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0F40F698021C9299193EC14311186BDB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BBF2A8127EDF29ABAA8C2FD230237309 /* Foundation.framework */; }; - 19A895C2151A5A4B52BCD5D5E9797B6F /* APNSManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00C19797055CE2B76DE9109793C5FD82 /* APNSManager.swift */; }; - 21B8AED5D25F4B2C7255A9C3A9DE9009 /* Map.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6120B0816E36E534E503459F567D5F2E /* Map.swift */; }; - 2DBA6D39E5E5D7B47DF44F6050FEE260 /* ObjectMapper-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 8494D45D8B456EE21C2DE03D0C773DB5 /* ObjectMapper-dummy.m */; }; - 44293254A39E424D2CB406C290761A8B /* APNSInstance.swift in Sources */ = {isa = PBXBuildFile; fileRef = A4C3DFAC3853B52D22A7EA0BD66E0D9A /* APNSInstance.swift */; }; - 474BC828D1115EB6A350756458E0CD06 /* ObjectMapper-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 1E023E6493ACEB9868503EC7EDBE5D11 /* ObjectMapper-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 52352D8AE4204254CF01F4C61E2DBACA /* ImmutableMappable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 767F089886989F6B9C79D75736C0BB57 /* ImmutableMappable.swift */; }; - 57329B514E9D4BBE5BD639CB65E2D410 /* Pods-APNSUtil_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 96FCA337FBF60194A73E76356D17E996 /* Pods-APNSUtil_Tests-dummy.m */; }; - 6642343C39E61A97888633E5D3616551 /* Mapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = FB0E4295B6584D52405249434A611730 /* Mapper.swift */; }; - 669B159536242BE0DE4C0AC2E31F9B4B /* Pods-APNSUtil_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 4F5408078ECCBEFB371816F8EF7F616F /* Pods-APNSUtil_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 669D8F671D23CE98407225F0D17CF5C9 /* TransformOperators.swift in Sources */ = {isa = PBXBuildFile; fileRef = A99342F019C81C5AE15B9FD7009B4E52 /* TransformOperators.swift */; }; - 66C7E88A92C4A4FC90E950F03EA3F3B3 /* CustomDateFormatTransform.swift in Sources */ = {isa = PBXBuildFile; fileRef = E83936D4B9772BB61E1C33AA865075BA /* CustomDateFormatTransform.swift */; }; - 6AB999682AEADEC01033A502E5D4DF66 /* EnumTransform.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA8903DF0A4E2F85EE8118C3A85A8449 /* EnumTransform.swift */; }; - 7D43908E837AEA87F9EC7AB9CA7D5F05 /* NSDecimalNumberTransform.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03735EF0E77C1DDACDF7C9A83303C091 /* NSDecimalNumberTransform.swift */; }; - 80A5224ACFBEE451D8E2BB597D51B04C /* HexColorTransform.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9619F2DCB9545FF6416CC1520E8A289 /* HexColorTransform.swift */; }; - 95BF1622195CDF8B8F272F3A09C27B48 /* ObjectMapper.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 515BB24BCB558A6C6816DC6C1C97492C /* ObjectMapper.framework */; }; - A0211B66CDF5096C93213096CAB483DA /* EnumOperators.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51737AB9AC204BFA21929556B7D8A784 /* EnumOperators.swift */; }; - AE5FA5CC909C66AC780471FC2436687B /* DictionaryTransform.swift in Sources */ = {isa = PBXBuildFile; fileRef = F1AB1F917FD0794BF93B05D9A01C52FB /* DictionaryTransform.swift */; }; - B06D659923AA2EB173C0C7C442F63EBE /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BBF2A8127EDF29ABAA8C2FD230237309 /* Foundation.framework */; }; - B3B81E463BC81C00610AF41B78AEC7D6 /* DataTransform.swift in Sources */ = {isa = PBXBuildFile; fileRef = D008BDF2149DE2E101DD576A6D9FCDFB /* DataTransform.swift */; }; - BDCD0842F48C5A23486CD1B0E4376D0B /* APNSUtil-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 8A1375AB07086E3A43EC970268165217 /* APNSUtil-dummy.m */; }; - C16DC31933B961B45FC44C858C620D57 /* Operators.swift in Sources */ = {isa = PBXBuildFile; fileRef = F67846576657F67A40688F35D8BBF4F5 /* Operators.swift */; }; - C1A7AC15996C3A3B90B73914563CEEB9 /* NSObject+Codable.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1F1F30E6142A80F186028D06A853CDF /* NSObject+Codable.swift */; }; - C838DE7EDB4FDC47FCD3018DB34443AF /* ToJSON.swift in Sources */ = {isa = PBXBuildFile; fileRef = F825ABC70E24EFAF9D9357AE3EF270C5 /* ToJSON.swift */; }; - CA685C6CACDDCAD80706FE33EF9A1905 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BBF2A8127EDF29ABAA8C2FD230237309 /* Foundation.framework */; }; - CAC46E189303160EBAB515A335C99D37 /* APNSUtil-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 33B6530E4688602DFE9A15FBB798D441 /* APNSUtil-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - CCB5E192A3648BAC01F775D8FEF8367B /* Mappable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 29707823C343DB3178B8BD2738202502 /* Mappable.swift */; }; - D032EE0329B34654DE7C65A43474A7AD /* DateFormatterTransform.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8B05DBA920727DA97A2230EC1D55998F /* DateFormatterTransform.swift */; }; - D7321A0F3650CDAC522A1CB5D94B2ACD /* Pods-APNSUtil_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 58B8289040B5B31F3143D320DEAE4B13 /* Pods-APNSUtil_Example-dummy.m */; }; - DCAB3433A670BDF58C354F20B1670434 /* TransformType.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA25BC5EA0ED4E982FF381F264738E55 /* TransformType.swift */; }; - DD28908AC1D5C478DC67ECA80BF0074A /* ISO8601DateTransform.swift in Sources */ = {isa = PBXBuildFile; fileRef = 049BA216F194C705BC41B6247C3D93F8 /* ISO8601DateTransform.swift */; }; - E910392E480DF8A592D7008A1EA61A83 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BBF2A8127EDF29ABAA8C2FD230237309 /* Foundation.framework */; }; - F19BA340DCAEFE6014E919C73A3624FC /* TransformOf.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1B464D60284C4B2CA3692CEE336D072A /* TransformOf.swift */; }; - F27EC6987FD85560B14A2947B1717EF7 /* DateTransform.swift in Sources */ = {isa = PBXBuildFile; fileRef = 798746DC36878BAB77E1AEB5ACD85688 /* DateTransform.swift */; }; - F6E786841CF58C38A04BFEF25487FC9C /* URLTransform.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1FE2520AB1362BD0248CA322C2139490 /* URLTransform.swift */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 01588DFC7117C99E4DB7167B8975AF8D /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; - proxyType = 1; - remoteGlobalIDString = 91F32B3378812126AF7C2C5F509F611E; - remoteInfo = "Pods-APNSUtil_Example"; - }; - 097F39686B79EA39C000E7A84947C94D /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; - proxyType = 1; - remoteGlobalIDString = 427EEA9FEC39BBE1D05384CD8362177E; - remoteInfo = APNSUtil; - }; - 3A2935EFF85DBF5E644B48087878968C /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; - proxyType = 1; - remoteGlobalIDString = 4A3627E04D7B66CB45B951C08F6E17E9; - remoteInfo = ObjectMapper; - }; - 4D3BB247F628845F838C9303B6E3DB9A /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; - proxyType = 1; - remoteGlobalIDString = 4A3627E04D7B66CB45B951C08F6E17E9; - remoteInfo = ObjectMapper; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 00C19797055CE2B76DE9109793C5FD82 /* APNSManager.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = APNSManager.swift; path = APNSUtil/Classes/APNSManager.swift; sourceTree = ""; }; - 03735EF0E77C1DDACDF7C9A83303C091 /* NSDecimalNumberTransform.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = NSDecimalNumberTransform.swift; path = Sources/NSDecimalNumberTransform.swift; sourceTree = ""; }; - 0393E58277FFD205AC1BB642E960A266 /* Pods-APNSUtil_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-APNSUtil_Example-umbrella.h"; sourceTree = ""; }; - 049BA216F194C705BC41B6247C3D93F8 /* ISO8601DateTransform.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ISO8601DateTransform.swift; path = Sources/ISO8601DateTransform.swift; sourceTree = ""; }; - 0BCCFD1903B1884610060217187254D4 /* Pods-APNSUtil_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-APNSUtil_Example-acknowledgements.plist"; sourceTree = ""; }; - 1B464D60284C4B2CA3692CEE336D072A /* TransformOf.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = TransformOf.swift; path = Sources/TransformOf.swift; sourceTree = ""; }; - 1E023E6493ACEB9868503EC7EDBE5D11 /* ObjectMapper-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ObjectMapper-umbrella.h"; sourceTree = ""; }; - 1FE2520AB1362BD0248CA322C2139490 /* URLTransform.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = URLTransform.swift; path = Sources/URLTransform.swift; sourceTree = ""; }; - 2559174051DA86B4829ED4A96FCD3B1B /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE; sourceTree = ""; }; - 29707823C343DB3178B8BD2738202502 /* Mappable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Mappable.swift; path = Sources/Mappable.swift; sourceTree = ""; }; - 2F456DFA3E5F6BA6D8F6F535F73BB6C6 /* Pods-APNSUtil_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-APNSUtil_Example.modulemap"; sourceTree = ""; }; - 338141D00227FAD06C670B0FE5AAA0B5 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 33B6530E4688602DFE9A15FBB798D441 /* APNSUtil-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "APNSUtil-umbrella.h"; sourceTree = ""; }; - 36D3BD0AFDDB60206C0F959F8C178D48 /* ObjectMapper.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = ObjectMapper.modulemap; sourceTree = ""; }; - 39D5607F45F50EDF5AD05C48163EFED1 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; path = README.md; sourceTree = ""; }; - 3C977545AAD1588AA3AD47AF010ADDCD /* APNSUtil-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "APNSUtil-prefix.pch"; sourceTree = ""; }; - 41EB78D4B926EBB3D6919ECC9724904C /* Pods-APNSUtil_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-APNSUtil_Tests-acknowledgements.plist"; sourceTree = ""; }; - 44DC3EEB3DF7D78FE6284D7880DDF9C0 /* APNSUtil.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; path = APNSUtil.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; - 4F5408078ECCBEFB371816F8EF7F616F /* Pods-APNSUtil_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-APNSUtil_Tests-umbrella.h"; sourceTree = ""; }; - 4FA3A66A9DB9005FD97A879F6E83548C /* IntegerOperators.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IntegerOperators.swift; path = Sources/IntegerOperators.swift; sourceTree = ""; }; - 515BB24BCB558A6C6816DC6C1C97492C /* ObjectMapper.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ObjectMapper.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 51737AB9AC204BFA21929556B7D8A784 /* EnumOperators.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = EnumOperators.swift; path = Sources/EnumOperators.swift; sourceTree = ""; }; - 549588D01CD05ED6490FBAD6B7217DB3 /* Pods-APNSUtil_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-APNSUtil_Example.release.xcconfig"; sourceTree = ""; }; - 55D7A65984508E134CF227F0FF498AB3 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 56E140897C7688E1E4A1BA84BFBA0658 /* ObjectMapper.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = ObjectMapper.framework; path = ObjectMapper.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 58B8289040B5B31F3143D320DEAE4B13 /* Pods-APNSUtil_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-APNSUtil_Example-dummy.m"; sourceTree = ""; }; - 5AA10CBBD16B457F364F93AC2125A84E /* Pods-APNSUtil_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-APNSUtil_Tests-acknowledgements.markdown"; sourceTree = ""; }; - 5EF84B945573302F48C0552E8D524FB9 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 6120B0816E36E534E503459F567D5F2E /* Map.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Map.swift; path = Sources/Map.swift; sourceTree = ""; }; - 725C6A197DCDE3F393B6572AC55AFC02 /* Pods_APNSUtil_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_APNSUtil_Example.framework; path = "Pods-APNSUtil_Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; - 744D8D4DCD9E8FED4CE26CA48A72B456 /* Pods-APNSUtil_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-APNSUtil_Tests.release.xcconfig"; sourceTree = ""; }; - 747AF3505460C6BC0A626265B3F6A87A /* APNSUtil.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = APNSUtil.modulemap; sourceTree = ""; }; - 767F089886989F6B9C79D75736C0BB57 /* ImmutableMappable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ImmutableMappable.swift; path = Sources/ImmutableMappable.swift; sourceTree = ""; }; - 798746DC36878BAB77E1AEB5ACD85688 /* DateTransform.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DateTransform.swift; path = Sources/DateTransform.swift; sourceTree = ""; }; - 7BAFE235011BACB43C7E7884DF8148F4 /* Pods-APNSUtil_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-APNSUtil_Example.debug.xcconfig"; sourceTree = ""; }; - 7CF8844DCA11691B1D7C86437D44D11C /* ObjectMapper.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = ObjectMapper.xcconfig; sourceTree = ""; }; - 8494D45D8B456EE21C2DE03D0C773DB5 /* ObjectMapper-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "ObjectMapper-dummy.m"; sourceTree = ""; }; - 8A1375AB07086E3A43EC970268165217 /* APNSUtil-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "APNSUtil-dummy.m"; sourceTree = ""; }; - 8B05DBA920727DA97A2230EC1D55998F /* DateFormatterTransform.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DateFormatterTransform.swift; path = Sources/DateFormatterTransform.swift; sourceTree = ""; }; - 90232C14852A4838379602F03C9931C5 /* APNSUtil.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = APNSUtil.xcconfig; sourceTree = ""; }; - 92CAA0BD4FF82C53F443C5226F9305AA /* APNSUtil.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = APNSUtil.framework; path = APNSUtil.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; - 96FCA337FBF60194A73E76356D17E996 /* Pods-APNSUtil_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-APNSUtil_Tests-dummy.m"; sourceTree = ""; }; - 9ED836E99AE21969C18AFBBA73D80A94 /* MapError.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = MapError.swift; path = Sources/MapError.swift; sourceTree = ""; }; - A08EEF14654EA9962E8CFA936B2BA17E /* Pods-APNSUtil_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-APNSUtil_Tests.modulemap"; sourceTree = ""; }; - A4C3DFAC3853B52D22A7EA0BD66E0D9A /* APNSInstance.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = APNSInstance.swift; path = APNSUtil/Classes/APNSInstance.swift; sourceTree = ""; }; - A51059F9E8FFB106FFEB59327CC63027 /* Pods-APNSUtil_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-APNSUtil_Tests.debug.xcconfig"; sourceTree = ""; }; - A99342F019C81C5AE15B9FD7009B4E52 /* TransformOperators.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = TransformOperators.swift; path = Sources/TransformOperators.swift; sourceTree = ""; }; - AAEA8BC4AB1041C505F05D53FB7FE323 /* Pods-APNSUtil_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-APNSUtil_Example-acknowledgements.markdown"; sourceTree = ""; }; - B1F1F30E6142A80F186028D06A853CDF /* NSObject+Codable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSObject+Codable.swift"; path = "APNSUtil/Classes/NSObject+Codable.swift"; sourceTree = ""; }; - B44E10B4AC3F4E1F2B40814F8942B1AC /* Pods-APNSUtil_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-APNSUtil_Example-resources.sh"; sourceTree = ""; }; - B9619F2DCB9545FF6416CC1520E8A289 /* HexColorTransform.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = HexColorTransform.swift; path = Sources/HexColorTransform.swift; sourceTree = ""; }; - BBE8D87EA9344ACEE360049411D79A6A /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - BBF2A8127EDF29ABAA8C2FD230237309 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; - C9819FF443EA52C3A215FEDC223BA165 /* Pods-APNSUtil_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-APNSUtil_Tests-frameworks.sh"; sourceTree = ""; }; - CA25BC5EA0ED4E982FF381F264738E55 /* TransformType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = TransformType.swift; path = Sources/TransformType.swift; sourceTree = ""; }; - CE428BA3359C942DF9E2D73E9B82215D /* ObjectMapper-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ObjectMapper-prefix.pch"; sourceTree = ""; }; - D008BDF2149DE2E101DD576A6D9FCDFB /* DataTransform.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DataTransform.swift; path = Sources/DataTransform.swift; sourceTree = ""; }; - D5BF0B134157103FEB6F696A98717239 /* FromJSON.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = FromJSON.swift; path = Sources/FromJSON.swift; sourceTree = ""; }; - DA8903DF0A4E2F85EE8118C3A85A8449 /* EnumTransform.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = EnumTransform.swift; path = Sources/EnumTransform.swift; sourceTree = ""; }; - DBBE8444E6933FF1EB1D69F63B927346 /* Pods-APNSUtil_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-APNSUtil_Tests-resources.sh"; sourceTree = ""; }; - E218CD0160F90E89470DAF4345708DE9 /* Pods_APNSUtil_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_APNSUtil_Tests.framework; path = "Pods-APNSUtil_Tests.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; - E83936D4B9772BB61E1C33AA865075BA /* CustomDateFormatTransform.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CustomDateFormatTransform.swift; path = Sources/CustomDateFormatTransform.swift; sourceTree = ""; }; - F1AB1F917FD0794BF93B05D9A01C52FB /* DictionaryTransform.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DictionaryTransform.swift; path = Sources/DictionaryTransform.swift; sourceTree = ""; }; - F67846576657F67A40688F35D8BBF4F5 /* Operators.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Operators.swift; path = Sources/Operators.swift; sourceTree = ""; }; - F825ABC70E24EFAF9D9357AE3EF270C5 /* ToJSON.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ToJSON.swift; path = Sources/ToJSON.swift; sourceTree = ""; }; - F93544FB2082421B19124E3119C1EEBF /* Pods-APNSUtil_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-APNSUtil_Example-frameworks.sh"; sourceTree = ""; }; - FB0E4295B6584D52405249434A611730 /* Mapper.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Mapper.swift; path = Sources/Mapper.swift; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 1268F118B4903B36FB7118B36D5BA6E7 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 0F40F698021C9299193EC14311186BDB /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4F66BA02F4A9C5518DE9E927B32A203D /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - E910392E480DF8A592D7008A1EA61A83 /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 8E4EE43734851AD9DE7585F201948BD7 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - CA685C6CACDDCAD80706FE33EF9A1905 /* Foundation.framework in Frameworks */, - 95BF1622195CDF8B8F272F3A09C27B48 /* ObjectMapper.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - E7E8A9AEF2259F03268A1E07C95020DD /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - B06D659923AA2EB173C0C7C442F63EBE /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 179CBE3A5CF8B2DA9FABB02125929363 /* AppExtension */ = { - isa = PBXGroup; - children = ( - A4C3DFAC3853B52D22A7EA0BD66E0D9A /* APNSInstance.swift */, - 00C19797055CE2B76DE9109793C5FD82 /* APNSManager.swift */, - B1F1F30E6142A80F186028D06A853CDF /* NSObject+Codable.swift */, - ); - name = AppExtension; - sourceTree = ""; - }; - 26DDEF2F61CF33FEA186FFB9487A2EB3 /* Pods-APNSUtil_Example */ = { - isa = PBXGroup; - children = ( - 55D7A65984508E134CF227F0FF498AB3 /* Info.plist */, - 2F456DFA3E5F6BA6D8F6F535F73BB6C6 /* Pods-APNSUtil_Example.modulemap */, - AAEA8BC4AB1041C505F05D53FB7FE323 /* Pods-APNSUtil_Example-acknowledgements.markdown */, - 0BCCFD1903B1884610060217187254D4 /* Pods-APNSUtil_Example-acknowledgements.plist */, - 58B8289040B5B31F3143D320DEAE4B13 /* Pods-APNSUtil_Example-dummy.m */, - F93544FB2082421B19124E3119C1EEBF /* Pods-APNSUtil_Example-frameworks.sh */, - B44E10B4AC3F4E1F2B40814F8942B1AC /* Pods-APNSUtil_Example-resources.sh */, - 0393E58277FFD205AC1BB642E960A266 /* Pods-APNSUtil_Example-umbrella.h */, - 7BAFE235011BACB43C7E7884DF8148F4 /* Pods-APNSUtil_Example.debug.xcconfig */, - 549588D01CD05ED6490FBAD6B7217DB3 /* Pods-APNSUtil_Example.release.xcconfig */, - ); - name = "Pods-APNSUtil_Example"; - path = "Target Support Files/Pods-APNSUtil_Example"; - sourceTree = ""; - }; - 5847D19AF5D69423BC477B126BCE928A /* Support Files */ = { - isa = PBXGroup; - children = ( - 747AF3505460C6BC0A626265B3F6A87A /* APNSUtil.modulemap */, - 90232C14852A4838379602F03C9931C5 /* APNSUtil.xcconfig */, - 8A1375AB07086E3A43EC970268165217 /* APNSUtil-dummy.m */, - 3C977545AAD1588AA3AD47AF010ADDCD /* APNSUtil-prefix.pch */, - 33B6530E4688602DFE9A15FBB798D441 /* APNSUtil-umbrella.h */, - BBE8D87EA9344ACEE360049411D79A6A /* Info.plist */, - ); - name = "Support Files"; - path = "Example/Pods/Target Support Files/APNSUtil"; - sourceTree = ""; - }; - 72A4F101D4D40D3C9EBA12D90663F5FA /* Frameworks */ = { - isa = PBXGroup; - children = ( - 515BB24BCB558A6C6816DC6C1C97492C /* ObjectMapper.framework */, - B698BE032F2E2D71DEAC2D89C403A556 /* iOS */, - ); - name = Frameworks; - sourceTree = ""; - }; - 77FF15A0C96E2572FA18708AB8AFBBF1 /* Targets Support Files */ = { - isa = PBXGroup; - children = ( - 26DDEF2F61CF33FEA186FFB9487A2EB3 /* Pods-APNSUtil_Example */, - 7E4E9B89DBBC84C2FB048AE0FF38F606 /* Pods-APNSUtil_Tests */, - ); - name = "Targets Support Files"; - sourceTree = ""; - }; - 7DB346D0F39D3F0E887471402A8071AB = { - isa = PBXGroup; - children = ( - 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, - BED86C25667A428A8AABBFAE91D5F8C0 /* Development Pods */, - 72A4F101D4D40D3C9EBA12D90663F5FA /* Frameworks */, - CC5B8196EA553435A0AFBC67D217E66A /* Pods */, - CCCDE2FA6E8947C9F141F9F07D1B7903 /* Products */, - 77FF15A0C96E2572FA18708AB8AFBBF1 /* Targets Support Files */, - ); - sourceTree = ""; - }; - 7E4E9B89DBBC84C2FB048AE0FF38F606 /* Pods-APNSUtil_Tests */ = { - isa = PBXGroup; - children = ( - 338141D00227FAD06C670B0FE5AAA0B5 /* Info.plist */, - A08EEF14654EA9962E8CFA936B2BA17E /* Pods-APNSUtil_Tests.modulemap */, - 5AA10CBBD16B457F364F93AC2125A84E /* Pods-APNSUtil_Tests-acknowledgements.markdown */, - 41EB78D4B926EBB3D6919ECC9724904C /* Pods-APNSUtil_Tests-acknowledgements.plist */, - 96FCA337FBF60194A73E76356D17E996 /* Pods-APNSUtil_Tests-dummy.m */, - C9819FF443EA52C3A215FEDC223BA165 /* Pods-APNSUtil_Tests-frameworks.sh */, - DBBE8444E6933FF1EB1D69F63B927346 /* Pods-APNSUtil_Tests-resources.sh */, - 4F5408078ECCBEFB371816F8EF7F616F /* Pods-APNSUtil_Tests-umbrella.h */, - A51059F9E8FFB106FFEB59327CC63027 /* Pods-APNSUtil_Tests.debug.xcconfig */, - 744D8D4DCD9E8FED4CE26CA48A72B456 /* Pods-APNSUtil_Tests.release.xcconfig */, - ); - name = "Pods-APNSUtil_Tests"; - path = "Target Support Files/Pods-APNSUtil_Tests"; - sourceTree = ""; - }; - 85D9D463A70B24A845EB51B9A8E63EF0 /* APNSUtil */ = { - isa = PBXGroup; - children = ( - 179CBE3A5CF8B2DA9FABB02125929363 /* AppExtension */, - CDBCD622B86540253B3113584E14D8B0 /* Pod */, - 5847D19AF5D69423BC477B126BCE928A /* Support Files */, - ); - name = APNSUtil; - path = ../..; - sourceTree = ""; - }; - B698BE032F2E2D71DEAC2D89C403A556 /* iOS */ = { - isa = PBXGroup; - children = ( - BBF2A8127EDF29ABAA8C2FD230237309 /* Foundation.framework */, - ); - name = iOS; - sourceTree = ""; - }; - BED86C25667A428A8AABBFAE91D5F8C0 /* Development Pods */ = { - isa = PBXGroup; - children = ( - 85D9D463A70B24A845EB51B9A8E63EF0 /* APNSUtil */, - ); - name = "Development Pods"; - sourceTree = ""; - }; - CC5B8196EA553435A0AFBC67D217E66A /* Pods */ = { - isa = PBXGroup; - children = ( - FC4A35C54D3E8B5ACCFDC068C994443D /* ObjectMapper */, - ); - name = Pods; - sourceTree = ""; - }; - CCCDE2FA6E8947C9F141F9F07D1B7903 /* Products */ = { - isa = PBXGroup; - children = ( - 92CAA0BD4FF82C53F443C5226F9305AA /* APNSUtil.framework */, - 56E140897C7688E1E4A1BA84BFBA0658 /* ObjectMapper.framework */, - 725C6A197DCDE3F393B6572AC55AFC02 /* Pods_APNSUtil_Example.framework */, - E218CD0160F90E89470DAF4345708DE9 /* Pods_APNSUtil_Tests.framework */, - ); - name = Products; - sourceTree = ""; - }; - CDBCD622B86540253B3113584E14D8B0 /* Pod */ = { - isa = PBXGroup; - children = ( - 44DC3EEB3DF7D78FE6284D7880DDF9C0 /* APNSUtil.podspec */, - 2559174051DA86B4829ED4A96FCD3B1B /* LICENSE */, - 39D5607F45F50EDF5AD05C48163EFED1 /* README.md */, - ); - name = Pod; - sourceTree = ""; - }; - D0DAB34034226B311B9A9A021AD9794A /* Support Files */ = { - isa = PBXGroup; - children = ( - 5EF84B945573302F48C0552E8D524FB9 /* Info.plist */, - 36D3BD0AFDDB60206C0F959F8C178D48 /* ObjectMapper.modulemap */, - 7CF8844DCA11691B1D7C86437D44D11C /* ObjectMapper.xcconfig */, - 8494D45D8B456EE21C2DE03D0C773DB5 /* ObjectMapper-dummy.m */, - CE428BA3359C942DF9E2D73E9B82215D /* ObjectMapper-prefix.pch */, - 1E023E6493ACEB9868503EC7EDBE5D11 /* ObjectMapper-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/ObjectMapper"; - sourceTree = ""; - }; - FC4A35C54D3E8B5ACCFDC068C994443D /* ObjectMapper */ = { - isa = PBXGroup; - children = ( - E83936D4B9772BB61E1C33AA865075BA /* CustomDateFormatTransform.swift */, - D008BDF2149DE2E101DD576A6D9FCDFB /* DataTransform.swift */, - 8B05DBA920727DA97A2230EC1D55998F /* DateFormatterTransform.swift */, - 798746DC36878BAB77E1AEB5ACD85688 /* DateTransform.swift */, - F1AB1F917FD0794BF93B05D9A01C52FB /* DictionaryTransform.swift */, - 51737AB9AC204BFA21929556B7D8A784 /* EnumOperators.swift */, - DA8903DF0A4E2F85EE8118C3A85A8449 /* EnumTransform.swift */, - D5BF0B134157103FEB6F696A98717239 /* FromJSON.swift */, - B9619F2DCB9545FF6416CC1520E8A289 /* HexColorTransform.swift */, - 767F089886989F6B9C79D75736C0BB57 /* ImmutableMappable.swift */, - 4FA3A66A9DB9005FD97A879F6E83548C /* IntegerOperators.swift */, - 049BA216F194C705BC41B6247C3D93F8 /* ISO8601DateTransform.swift */, - 6120B0816E36E534E503459F567D5F2E /* Map.swift */, - 9ED836E99AE21969C18AFBBA73D80A94 /* MapError.swift */, - 29707823C343DB3178B8BD2738202502 /* Mappable.swift */, - FB0E4295B6584D52405249434A611730 /* Mapper.swift */, - 03735EF0E77C1DDACDF7C9A83303C091 /* NSDecimalNumberTransform.swift */, - F67846576657F67A40688F35D8BBF4F5 /* Operators.swift */, - F825ABC70E24EFAF9D9357AE3EF270C5 /* ToJSON.swift */, - 1B464D60284C4B2CA3692CEE336D072A /* TransformOf.swift */, - A99342F019C81C5AE15B9FD7009B4E52 /* TransformOperators.swift */, - CA25BC5EA0ED4E982FF381F264738E55 /* TransformType.swift */, - 1FE2520AB1362BD0248CA322C2139490 /* URLTransform.swift */, - D0DAB34034226B311B9A9A021AD9794A /* Support Files */, - ); - name = ObjectMapper; - path = ObjectMapper; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - 385793A7DDD1CE950EA739100FB1B39E /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 669B159536242BE0DE4C0AC2E31F9B4B /* Pods-APNSUtil_Tests-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 6A8887174504558B14F8198E27964B44 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 474BC828D1115EB6A350756458E0CD06 /* ObjectMapper-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 8F1995B88DED991E40D157380E756AFC /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 0BB4EF281398F2725F72FDEE1810B637 /* Pods-APNSUtil_Example-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - F2E9A9DE370A1B402FE9B2EEEC8B6C8F /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - CAC46E189303160EBAB515A335C99D37 /* APNSUtil-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - 427EEA9FEC39BBE1D05384CD8362177E /* APNSUtil */ = { - isa = PBXNativeTarget; - buildConfigurationList = 546EEB2C80213DCACC3ECAC3B2221624 /* Build configuration list for PBXNativeTarget "APNSUtil" */; - buildPhases = ( - 7C1A2F57B1F481A6E630EF34FCF58B5D /* Sources */, - 8E4EE43734851AD9DE7585F201948BD7 /* Frameworks */, - F2E9A9DE370A1B402FE9B2EEEC8B6C8F /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - F4A1F1E8AAFAE6794E73E1040724EA3F /* PBXTargetDependency */, - ); - name = APNSUtil; - productName = APNSUtil; - productReference = 92CAA0BD4FF82C53F443C5226F9305AA /* APNSUtil.framework */; - productType = "com.apple.product-type.framework"; - }; - 4A3627E04D7B66CB45B951C08F6E17E9 /* ObjectMapper */ = { - isa = PBXNativeTarget; - buildConfigurationList = 73BC79ED6F797336AE4EFB58D2283593 /* Build configuration list for PBXNativeTarget "ObjectMapper" */; - buildPhases = ( - B05C0EC2B40206471597461D13BEB688 /* Sources */, - E7E8A9AEF2259F03268A1E07C95020DD /* Frameworks */, - 6A8887174504558B14F8198E27964B44 /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = ObjectMapper; - productName = ObjectMapper; - productReference = 56E140897C7688E1E4A1BA84BFBA0658 /* ObjectMapper.framework */; - productType = "com.apple.product-type.framework"; - }; - 4A5214D300117AACB0B48E2523FAFFF6 /* Pods-APNSUtil_Tests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 9D182F330A468434760F877F49864D4F /* Build configuration list for PBXNativeTarget "Pods-APNSUtil_Tests" */; - buildPhases = ( - 0652ACC7465B1E28A2629000298BEF52 /* Sources */, - 1268F118B4903B36FB7118B36D5BA6E7 /* Frameworks */, - 385793A7DDD1CE950EA739100FB1B39E /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - 3E59911581D00E918748C3FAFB459D93 /* PBXTargetDependency */, - ); - name = "Pods-APNSUtil_Tests"; - productName = "Pods-APNSUtil_Tests"; - productReference = E218CD0160F90E89470DAF4345708DE9 /* Pods_APNSUtil_Tests.framework */; - productType = "com.apple.product-type.framework"; - }; - 91F32B3378812126AF7C2C5F509F611E /* Pods-APNSUtil_Example */ = { - isa = PBXNativeTarget; - buildConfigurationList = 8C0341C8C1F8AB1588FFEBA85B33B9BE /* Build configuration list for PBXNativeTarget "Pods-APNSUtil_Example" */; - buildPhases = ( - 658C1C23C16895806968145FF28D76CA /* Sources */, - 4F66BA02F4A9C5518DE9E927B32A203D /* Frameworks */, - 8F1995B88DED991E40D157380E756AFC /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - CBA6D0B0D6D1304B2C041FAC76F5185B /* PBXTargetDependency */, - B6505FF31BE0AFCC7CA472617A7F9F5C /* PBXTargetDependency */, - ); - name = "Pods-APNSUtil_Example"; - productName = "Pods-APNSUtil_Example"; - productReference = 725C6A197DCDE3F393B6572AC55AFC02 /* Pods_APNSUtil_Example.framework */; - productType = "com.apple.product-type.framework"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0930; - LastUpgradeCheck = 0930; - }; - buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - ); - mainGroup = 7DB346D0F39D3F0E887471402A8071AB; - productRefGroup = CCCDE2FA6E8947C9F141F9F07D1B7903 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 427EEA9FEC39BBE1D05384CD8362177E /* APNSUtil */, - 4A3627E04D7B66CB45B951C08F6E17E9 /* ObjectMapper */, - 91F32B3378812126AF7C2C5F509F611E /* Pods-APNSUtil_Example */, - 4A5214D300117AACB0B48E2523FAFFF6 /* Pods-APNSUtil_Tests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXSourcesBuildPhase section */ - 0652ACC7465B1E28A2629000298BEF52 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 57329B514E9D4BBE5BD639CB65E2D410 /* Pods-APNSUtil_Tests-dummy.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 658C1C23C16895806968145FF28D76CA /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - D7321A0F3650CDAC522A1CB5D94B2ACD /* Pods-APNSUtil_Example-dummy.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7C1A2F57B1F481A6E630EF34FCF58B5D /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 44293254A39E424D2CB406C290761A8B /* APNSInstance.swift in Sources */, - 19A895C2151A5A4B52BCD5D5E9797B6F /* APNSManager.swift in Sources */, - BDCD0842F48C5A23486CD1B0E4376D0B /* APNSUtil-dummy.m in Sources */, - C1A7AC15996C3A3B90B73914563CEEB9 /* NSObject+Codable.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - B05C0EC2B40206471597461D13BEB688 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 66C7E88A92C4A4FC90E950F03EA3F3B3 /* CustomDateFormatTransform.swift in Sources */, - B3B81E463BC81C00610AF41B78AEC7D6 /* DataTransform.swift in Sources */, - D032EE0329B34654DE7C65A43474A7AD /* DateFormatterTransform.swift in Sources */, - F27EC6987FD85560B14A2947B1717EF7 /* DateTransform.swift in Sources */, - AE5FA5CC909C66AC780471FC2436687B /* DictionaryTransform.swift in Sources */, - A0211B66CDF5096C93213096CAB483DA /* EnumOperators.swift in Sources */, - 6AB999682AEADEC01033A502E5D4DF66 /* EnumTransform.swift in Sources */, - 086A8AF4D45C37DBF66FFE06E0E53EAB /* FromJSON.swift in Sources */, - 80A5224ACFBEE451D8E2BB597D51B04C /* HexColorTransform.swift in Sources */, - 52352D8AE4204254CF01F4C61E2DBACA /* ImmutableMappable.swift in Sources */, - 0A14CF82F625AADBB9B9C6EE2A7993AA /* IntegerOperators.swift in Sources */, - DD28908AC1D5C478DC67ECA80BF0074A /* ISO8601DateTransform.swift in Sources */, - 21B8AED5D25F4B2C7255A9C3A9DE9009 /* Map.swift in Sources */, - 0B007CC659F8554C442D7EF9C377078A /* MapError.swift in Sources */, - CCB5E192A3648BAC01F775D8FEF8367B /* Mappable.swift in Sources */, - 6642343C39E61A97888633E5D3616551 /* Mapper.swift in Sources */, - 7D43908E837AEA87F9EC7AB9CA7D5F05 /* NSDecimalNumberTransform.swift in Sources */, - 2DBA6D39E5E5D7B47DF44F6050FEE260 /* ObjectMapper-dummy.m in Sources */, - C16DC31933B961B45FC44C858C620D57 /* Operators.swift in Sources */, - C838DE7EDB4FDC47FCD3018DB34443AF /* ToJSON.swift in Sources */, - F19BA340DCAEFE6014E919C73A3624FC /* TransformOf.swift in Sources */, - 669D8F671D23CE98407225F0D17CF5C9 /* TransformOperators.swift in Sources */, - DCAB3433A670BDF58C354F20B1670434 /* TransformType.swift in Sources */, - F6E786841CF58C38A04BFEF25487FC9C /* URLTransform.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 3E59911581D00E918748C3FAFB459D93 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Pods-APNSUtil_Example"; - target = 91F32B3378812126AF7C2C5F509F611E /* Pods-APNSUtil_Example */; - targetProxy = 01588DFC7117C99E4DB7167B8975AF8D /* PBXContainerItemProxy */; - }; - B6505FF31BE0AFCC7CA472617A7F9F5C /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = ObjectMapper; - target = 4A3627E04D7B66CB45B951C08F6E17E9 /* ObjectMapper */; - targetProxy = 3A2935EFF85DBF5E644B48087878968C /* PBXContainerItemProxy */; - }; - CBA6D0B0D6D1304B2C041FAC76F5185B /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = APNSUtil; - target = 427EEA9FEC39BBE1D05384CD8362177E /* APNSUtil */; - targetProxy = 097F39686B79EA39C000E7A84947C94D /* PBXContainerItemProxy */; - }; - F4A1F1E8AAFAE6794E73E1040724EA3F /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = ObjectMapper; - target = 4A3627E04D7B66CB45B951C08F6E17E9 /* ObjectMapper */; - targetProxy = 4D3BB247F628845F838C9303B6E3DB9A /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - 008EE3F62D6073FFE80E37483B1F96D7 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = A51059F9E8FFB106FFEB59327CC63027 /* Pods-APNSUtil_Tests.debug.xcconfig */; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; - CODE_SIGN_IDENTITY = ""; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = "Target Support Files/Pods-APNSUtil_Tests/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MACH_O_TYPE = staticlib; - MODULEMAP_FILE = "Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests.modulemap"; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PODS_ROOT = "$(SRCROOT)"; - PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 199D972A13F2B4C56847F7A89CCA83BC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGNING_ALLOWED = NO; - CODE_SIGNING_REQUIRED = NO; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "POD_CONFIGURATION_DEBUG=1", - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - PRODUCT_NAME = "$(TARGET_NAME)"; - STRIP_INSTALLED_PRODUCT = NO; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SYMROOT = "${SRCROOT}/../build"; - }; - name = Debug; - }; - 46B3D9027BC3AFD09F407BE1F3B08488 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7CF8844DCA11691B1D7C86437D44D11C /* ObjectMapper.xcconfig */; - buildSettings = { - CODE_SIGN_IDENTITY = ""; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - GCC_PREFIX_HEADER = "Target Support Files/ObjectMapper/ObjectMapper-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/ObjectMapper/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/ObjectMapper/ObjectMapper.modulemap"; - PRODUCT_MODULE_NAME = ObjectMapper; - PRODUCT_NAME = ObjectMapper; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 5E3ACBE54AC1E94660886DC1583BDBE6 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 744D8D4DCD9E8FED4CE26CA48A72B456 /* Pods-APNSUtil_Tests.release.xcconfig */; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; - CODE_SIGN_IDENTITY = ""; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = "Target Support Files/Pods-APNSUtil_Tests/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MACH_O_TYPE = staticlib; - MODULEMAP_FILE = "Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests.modulemap"; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PODS_ROOT = "$(SRCROOT)"; - PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 6EB75546FBD27AF17CA7AA92F2FD170F /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7CF8844DCA11691B1D7C86437D44D11C /* ObjectMapper.xcconfig */; - buildSettings = { - CODE_SIGN_IDENTITY = ""; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - GCC_PREFIX_HEADER = "Target Support Files/ObjectMapper/ObjectMapper-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/ObjectMapper/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/ObjectMapper/ObjectMapper.modulemap"; - PRODUCT_MODULE_NAME = ObjectMapper; - PRODUCT_NAME = ObjectMapper; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 9A2DC6D234DEE57D573C78B88AEDDFCA /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7BAFE235011BACB43C7E7884DF8148F4 /* Pods-APNSUtil_Example.debug.xcconfig */; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; - CODE_SIGN_IDENTITY = ""; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = "Target Support Files/Pods-APNSUtil_Example/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MACH_O_TYPE = staticlib; - MODULEMAP_FILE = "Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example.modulemap"; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PODS_ROOT = "$(SRCROOT)"; - PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - C3FC1592BEB59CE29B5A87F76E6AD2E1 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 549588D01CD05ED6490FBAD6B7217DB3 /* Pods-APNSUtil_Example.release.xcconfig */; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; - CODE_SIGN_IDENTITY = ""; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = "Target Support Files/Pods-APNSUtil_Example/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MACH_O_TYPE = staticlib; - MODULEMAP_FILE = "Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example.modulemap"; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PODS_ROOT = "$(SRCROOT)"; - PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - E035A02284DC0DC6123970D4A290171C /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 90232C14852A4838379602F03C9931C5 /* APNSUtil.xcconfig */; - buildSettings = { - CODE_SIGN_IDENTITY = ""; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - GCC_PREFIX_HEADER = "Target Support Files/APNSUtil/APNSUtil-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/APNSUtil/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/APNSUtil/APNSUtil.modulemap"; - PRODUCT_MODULE_NAME = APNSUtil; - PRODUCT_NAME = APNSUtil; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - EB50C64783373268ACB56E4B1ADCE0ED /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 90232C14852A4838379602F03C9931C5 /* APNSUtil.xcconfig */; - buildSettings = { - CODE_SIGN_IDENTITY = ""; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - GCC_PREFIX_HEADER = "Target Support Files/APNSUtil/APNSUtil-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/APNSUtil/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/APNSUtil/APNSUtil.modulemap"; - PRODUCT_MODULE_NAME = APNSUtil; - PRODUCT_NAME = APNSUtil; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - FDB2FC4A1E5891381CD9D922145497F1 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGNING_ALLOWED = NO; - CODE_SIGNING_REQUIRED = NO; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_NO_COMMON_BLOCKS = YES; - GCC_PREPROCESSOR_DEFINITIONS = ( - "POD_CONFIGURATION_RELEASE=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; - MTL_ENABLE_DEBUG_INFO = NO; - PRODUCT_NAME = "$(TARGET_NAME)"; - STRIP_INSTALLED_PRODUCT = NO; - SYMROOT = "${SRCROOT}/../build"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 199D972A13F2B4C56847F7A89CCA83BC /* Debug */, - FDB2FC4A1E5891381CD9D922145497F1 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 546EEB2C80213DCACC3ECAC3B2221624 /* Build configuration list for PBXNativeTarget "APNSUtil" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - E035A02284DC0DC6123970D4A290171C /* Debug */, - EB50C64783373268ACB56E4B1ADCE0ED /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 73BC79ED6F797336AE4EFB58D2283593 /* Build configuration list for PBXNativeTarget "ObjectMapper" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 6EB75546FBD27AF17CA7AA92F2FD170F /* Debug */, - 46B3D9027BC3AFD09F407BE1F3B08488 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 8C0341C8C1F8AB1588FFEBA85B33B9BE /* Build configuration list for PBXNativeTarget "Pods-APNSUtil_Example" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 9A2DC6D234DEE57D573C78B88AEDDFCA /* Debug */, - C3FC1592BEB59CE29B5A87F76E6AD2E1 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 9D182F330A468434760F877F49864D4F /* Build configuration list for PBXNativeTarget "Pods-APNSUtil_Tests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 008EE3F62D6073FFE80E37483B1F96D7 /* Debug */, - 5E3ACBE54AC1E94660886DC1583BDBE6 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; -} diff --git a/Example/Pods/Target Support Files/APNSUtil/APNSUtil-dummy.m b/Example/Pods/Target Support Files/APNSUtil/APNSUtil-dummy.m deleted file mode 100644 index 9642a05..0000000 --- a/Example/Pods/Target Support Files/APNSUtil/APNSUtil-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_APNSUtil : NSObject -@end -@implementation PodsDummy_APNSUtil -@end diff --git a/Example/Pods/Target Support Files/APNSUtil/APNSUtil-prefix.pch b/Example/Pods/Target Support Files/APNSUtil/APNSUtil-prefix.pch deleted file mode 100644 index beb2a24..0000000 --- a/Example/Pods/Target Support Files/APNSUtil/APNSUtil-prefix.pch +++ /dev/null @@ -1,12 +0,0 @@ -#ifdef __OBJC__ -#import -#else -#ifndef FOUNDATION_EXPORT -#if defined(__cplusplus) -#define FOUNDATION_EXPORT extern "C" -#else -#define FOUNDATION_EXPORT extern -#endif -#endif -#endif - diff --git a/Example/Pods/Target Support Files/APNSUtil/APNSUtil-umbrella.h b/Example/Pods/Target Support Files/APNSUtil/APNSUtil-umbrella.h deleted file mode 100644 index 374bef2..0000000 --- a/Example/Pods/Target Support Files/APNSUtil/APNSUtil-umbrella.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifdef __OBJC__ -#import -#else -#ifndef FOUNDATION_EXPORT -#if defined(__cplusplus) -#define FOUNDATION_EXPORT extern "C" -#else -#define FOUNDATION_EXPORT extern -#endif -#endif -#endif - - -FOUNDATION_EXPORT double APNSUtilVersionNumber; -FOUNDATION_EXPORT const unsigned char APNSUtilVersionString[]; - diff --git a/Example/Pods/Target Support Files/APNSUtil/APNSUtil.modulemap b/Example/Pods/Target Support Files/APNSUtil/APNSUtil.modulemap deleted file mode 100644 index 35cba4c..0000000 --- a/Example/Pods/Target Support Files/APNSUtil/APNSUtil.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module APNSUtil { - umbrella header "APNSUtil-umbrella.h" - - export * - module * { export * } -} diff --git a/Example/Pods/Target Support Files/APNSUtil/APNSUtil.xcconfig b/Example/Pods/Target Support Files/APNSUtil/APNSUtil.xcconfig deleted file mode 100644 index 9c813b7..0000000 --- a/Example/Pods/Target Support Files/APNSUtil/APNSUtil.xcconfig +++ /dev/null @@ -1,10 +0,0 @@ -CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/APNSUtil -FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/ObjectMapper" -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -OTHER_SWIFT_FLAGS = $(inherited) -DEXTENSIONS $(inherited) "-D" "COCOAPODS" -PODS_BUILD_DIR = ${BUILD_DIR} -PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) -PODS_ROOT = ${SRCROOT} -PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. -PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} -SKIP_INSTALL = YES diff --git a/Example/Pods/Target Support Files/APNSUtil/Info.plist b/Example/Pods/Target Support Files/APNSUtil/Info.plist deleted file mode 100644 index 02abef5..0000000 --- a/Example/Pods/Target Support Files/APNSUtil/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - ${PRODUCT_BUNDLE_IDENTIFIER} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.1.4 - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - NSPrincipalClass - - - diff --git a/Example/Pods/Target Support Files/ObjectMapper/Info.plist b/Example/Pods/Target Support Files/ObjectMapper/Info.plist deleted file mode 100644 index 3ac477e..0000000 --- a/Example/Pods/Target Support Files/ObjectMapper/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - ${PRODUCT_BUNDLE_IDENTIFIER} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - 3.3.0 - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - NSPrincipalClass - - - diff --git a/Example/Pods/Target Support Files/ObjectMapper/ObjectMapper-dummy.m b/Example/Pods/Target Support Files/ObjectMapper/ObjectMapper-dummy.m deleted file mode 100644 index 7033cce..0000000 --- a/Example/Pods/Target Support Files/ObjectMapper/ObjectMapper-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_ObjectMapper : NSObject -@end -@implementation PodsDummy_ObjectMapper -@end diff --git a/Example/Pods/Target Support Files/ObjectMapper/ObjectMapper-prefix.pch b/Example/Pods/Target Support Files/ObjectMapper/ObjectMapper-prefix.pch deleted file mode 100644 index beb2a24..0000000 --- a/Example/Pods/Target Support Files/ObjectMapper/ObjectMapper-prefix.pch +++ /dev/null @@ -1,12 +0,0 @@ -#ifdef __OBJC__ -#import -#else -#ifndef FOUNDATION_EXPORT -#if defined(__cplusplus) -#define FOUNDATION_EXPORT extern "C" -#else -#define FOUNDATION_EXPORT extern -#endif -#endif -#endif - diff --git a/Example/Pods/Target Support Files/ObjectMapper/ObjectMapper-umbrella.h b/Example/Pods/Target Support Files/ObjectMapper/ObjectMapper-umbrella.h deleted file mode 100644 index e993e40..0000000 --- a/Example/Pods/Target Support Files/ObjectMapper/ObjectMapper-umbrella.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifdef __OBJC__ -#import -#else -#ifndef FOUNDATION_EXPORT -#if defined(__cplusplus) -#define FOUNDATION_EXPORT extern "C" -#else -#define FOUNDATION_EXPORT extern -#endif -#endif -#endif - - -FOUNDATION_EXPORT double ObjectMapperVersionNumber; -FOUNDATION_EXPORT const unsigned char ObjectMapperVersionString[]; - diff --git a/Example/Pods/Target Support Files/ObjectMapper/ObjectMapper.modulemap b/Example/Pods/Target Support Files/ObjectMapper/ObjectMapper.modulemap deleted file mode 100644 index 539c248..0000000 --- a/Example/Pods/Target Support Files/ObjectMapper/ObjectMapper.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module ObjectMapper { - umbrella header "ObjectMapper-umbrella.h" - - export * - module * { export * } -} diff --git a/Example/Pods/Target Support Files/ObjectMapper/ObjectMapper.xcconfig b/Example/Pods/Target Support Files/ObjectMapper/ObjectMapper.xcconfig deleted file mode 100644 index 42c18cb..0000000 --- a/Example/Pods/Target Support Files/ObjectMapper/ObjectMapper.xcconfig +++ /dev/null @@ -1,9 +0,0 @@ -CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/ObjectMapper -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" -PODS_BUILD_DIR = ${BUILD_DIR} -PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) -PODS_ROOT = ${SRCROOT} -PODS_TARGET_SRCROOT = ${PODS_ROOT}/ObjectMapper -PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} -SKIP_INSTALL = YES diff --git a/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Info.plist b/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Info.plist deleted file mode 100644 index 2243fe6..0000000 --- a/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - ${PRODUCT_BUNDLE_IDENTIFIER} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0.0 - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - NSPrincipalClass - - - diff --git a/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-acknowledgements.markdown b/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-acknowledgements.markdown deleted file mode 100644 index 6c5d9cc..0000000 --- a/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-acknowledgements.markdown +++ /dev/null @@ -1,40 +0,0 @@ -# Acknowledgements -This application makes use of the following third party libraries: - -## APNSUtil - -MIT License - -Copyright (c) 2018 Steve Kim - -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. - - -## ObjectMapper - -The MIT License (MIT) -Copyright (c) 2014 Hearst - -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 - https://cocoapods.org diff --git a/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-acknowledgements.plist b/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-acknowledgements.plist deleted file mode 100644 index 7f7d2dd..0000000 --- a/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-acknowledgements.plist +++ /dev/null @@ -1,78 +0,0 @@ - - - - - PreferenceSpecifiers - - - FooterText - This application makes use of the following third party libraries: - Title - Acknowledgements - Type - PSGroupSpecifier - - - FooterText - MIT License - -Copyright (c) 2018 Steve Kim - -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. - - License - MIT - Title - APNSUtil - Type - PSGroupSpecifier - - - FooterText - The MIT License (MIT) -Copyright (c) 2014 Hearst - -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. - - License - MIT - Title - ObjectMapper - Type - PSGroupSpecifier - - - FooterText - Generated by CocoaPods - https://cocoapods.org - Title - - Type - PSGroupSpecifier - - - StringsTable - Acknowledgements - Title - Acknowledgements - - diff --git a/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-dummy.m b/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-dummy.m deleted file mode 100644 index e90e6cd..0000000 --- a/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_Pods_APNSUtil_Example : NSObject -@end -@implementation PodsDummy_Pods_APNSUtil_Example -@end diff --git a/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-frameworks.sh b/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-frameworks.sh deleted file mode 100755 index ea1ff22..0000000 --- a/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-frameworks.sh +++ /dev/null @@ -1,155 +0,0 @@ -#!/bin/sh -set -e -set -u -set -o pipefail - -if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then - # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy - # frameworks to, so exit 0 (signalling the script phase was successful). - exit 0 -fi - -echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" -mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - -COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" -SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" - -# Used as a return value for each invocation of `strip_invalid_archs` function. -STRIP_BINARY_RETVAL=0 - -# This protects against multiple targets copying the same framework dependency at the same time. The solution -# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html -RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") - -# Copies and strips a vendored framework -install_framework() -{ - if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then - local source="${BUILT_PRODUCTS_DIR}/$1" - elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then - local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" - elif [ -r "$1" ]; then - local source="$1" - fi - - local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - - if [ -L "${source}" ]; then - echo "Symlinked..." - source="$(readlink "${source}")" - fi - - # Use filter instead of exclude so missing patterns don't throw errors. - echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" - rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" - - local basename - basename="$(basename -s .framework "$1")" - binary="${destination}/${basename}.framework/${basename}" - if ! [ -r "$binary" ]; then - binary="${destination}/${basename}" - fi - - # Strip invalid architectures so "fat" simulator / device frameworks work on device - if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then - strip_invalid_archs "$binary" - fi - - # Resign the code if required by the build settings to avoid unstable apps - code_sign_if_enabled "${destination}/$(basename "$1")" - - # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. - if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then - local swift_runtime_libs - swift_runtime_libs=$(xcrun otool -LX "$binary" | 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}" - code_sign_if_enabled "${destination}/${lib}" - done - fi -} - -# Copies and strips a vendored dSYM -install_dsym() { - local source="$1" - if [ -r "$source" ]; then - # Copy the dSYM into a the targets temp dir. - echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" - rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" - - local basename - basename="$(basename -s .framework.dSYM "$source")" - binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" - - # Strip invalid architectures so "fat" simulator / device frameworks work on device - if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then - strip_invalid_archs "$binary" - fi - - if [[ $STRIP_BINARY_RETVAL == 1 ]]; then - # Move the stripped file into its final destination. - echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" - rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" - else - # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. - touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" - fi - fi -} - -# Signs a framework with the provided identity -code_sign_if_enabled() { - if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then - # Use the current code_sign_identitiy - echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" - local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" - - if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then - code_sign_cmd="$code_sign_cmd &" - fi - echo "$code_sign_cmd" - eval "$code_sign_cmd" - fi -} - -# Strip invalid architectures -strip_invalid_archs() { - binary="$1" - # Get architectures for current target binary - binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" - # Intersect them with the architectures we are building for - intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" - # If there are no archs supported by this binary then warn the user - if [[ -z "$intersected_archs" ]]; then - echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." - STRIP_BINARY_RETVAL=0 - return - fi - stripped="" - for arch in $binary_archs; do - if ! [[ "${ARCHS}" == *"$arch"* ]]; then - # Strip non-valid architectures in-place - lipo -remove "$arch" -output "$binary" "$binary" || exit 1 - stripped="$stripped $arch" - fi - done - if [[ "$stripped" ]]; then - echo "Stripped $binary of architectures:$stripped" - fi - STRIP_BINARY_RETVAL=1 -} - - -if [[ "$CONFIGURATION" == "Debug" ]]; then - install_framework "${BUILT_PRODUCTS_DIR}/APNSUtil/APNSUtil.framework" - install_framework "${BUILT_PRODUCTS_DIR}/ObjectMapper/ObjectMapper.framework" -fi -if [[ "$CONFIGURATION" == "Release" ]]; then - install_framework "${BUILT_PRODUCTS_DIR}/APNSUtil/APNSUtil.framework" - install_framework "${BUILT_PRODUCTS_DIR}/ObjectMapper/ObjectMapper.framework" -fi -if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then - wait -fi diff --git a/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-resources.sh b/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-resources.sh deleted file mode 100755 index 345301f..0000000 --- a/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-resources.sh +++ /dev/null @@ -1,118 +0,0 @@ -#!/bin/sh -set -e -set -u -set -o pipefail - -if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then - # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy - # resources to, so exit 0 (signalling the script phase was successful). - exit 0 -fi - -mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" - -RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt -> "$RESOURCES_TO_COPY" - -XCASSET_FILES=() - -# This protects against multiple targets copying the same framework dependency at the same time. The solution -# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html -RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") - -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" - ;; - 3) - TARGET_DEVICE_ARGS="--target-device tv" - ;; - 4) - TARGET_DEVICE_ARGS="--target-device watch" - ;; - *) - TARGET_DEVICE_ARGS="--target-device mac" - ;; -esac - -install_resource() -{ - if [[ "$1" = /* ]] ; then - RESOURCE_PATH="$1" - else - RESOURCE_PATH="${PODS_ROOT}/$1" - fi - if [[ ! -e "$RESOURCE_PATH" ]] ; then - cat << EOM -error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. -EOM - exit 1 - fi - case $RESOURCE_PATH in - *.storyboard) - echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true - ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} - ;; - *.xib) - echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true - ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} - ;; - *.framework) - echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true - mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true - rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - ;; - *.xcdatamodel) - echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true - xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" - ;; - *.xcdatamodeld) - echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true - xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" - ;; - *.xcmappingmodel) - echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true - xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" - ;; - *.xcassets) - ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" - XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") - ;; - *) - echo "$RESOURCE_PATH" || true - echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" - ;; - esac -} - -mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then - mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" - 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 - # 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 != "${PODS_ROOT}*" ]]; then - XCASSET_FILES+=("$line") - fi - done <<<"$OTHER_XCASSETS" - - if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then - printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" - else - printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" - fi -fi diff --git a/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-umbrella.h b/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-umbrella.h deleted file mode 100644 index e629057..0000000 --- a/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example-umbrella.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifdef __OBJC__ -#import -#else -#ifndef FOUNDATION_EXPORT -#if defined(__cplusplus) -#define FOUNDATION_EXPORT extern "C" -#else -#define FOUNDATION_EXPORT extern -#endif -#endif -#endif - - -FOUNDATION_EXPORT double Pods_APNSUtil_ExampleVersionNumber; -FOUNDATION_EXPORT const unsigned char Pods_APNSUtil_ExampleVersionString[]; - diff --git a/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example.debug.xcconfig b/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example.debug.xcconfig deleted file mode 100644 index 97dc3b7..0000000 --- a/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example.debug.xcconfig +++ /dev/null @@ -1,11 +0,0 @@ -ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES -FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/APNSUtil" "${PODS_CONFIGURATION_BUILD_DIR}/ObjectMapper" -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' -OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/APNSUtil/APNSUtil.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/ObjectMapper/ObjectMapper.framework/Headers" -OTHER_LDFLAGS = $(inherited) -framework "APNSUtil" -framework "ObjectMapper" -OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" -PODS_BUILD_DIR = ${BUILD_DIR} -PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) -PODS_PODFILE_DIR_PATH = ${SRCROOT}/. -PODS_ROOT = ${SRCROOT}/Pods diff --git a/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example.modulemap b/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example.modulemap deleted file mode 100644 index 07883b1..0000000 --- a/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module Pods_APNSUtil_Example { - umbrella header "Pods-APNSUtil_Example-umbrella.h" - - export * - module * { export * } -} diff --git a/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example.release.xcconfig b/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example.release.xcconfig deleted file mode 100644 index 97dc3b7..0000000 --- a/Example/Pods/Target Support Files/Pods-APNSUtil_Example/Pods-APNSUtil_Example.release.xcconfig +++ /dev/null @@ -1,11 +0,0 @@ -ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES -FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/APNSUtil" "${PODS_CONFIGURATION_BUILD_DIR}/ObjectMapper" -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' -OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/APNSUtil/APNSUtil.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/ObjectMapper/ObjectMapper.framework/Headers" -OTHER_LDFLAGS = $(inherited) -framework "APNSUtil" -framework "ObjectMapper" -OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" -PODS_BUILD_DIR = ${BUILD_DIR} -PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) -PODS_PODFILE_DIR_PATH = ${SRCROOT}/. -PODS_ROOT = ${SRCROOT}/Pods diff --git a/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Info.plist b/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Info.plist deleted file mode 100644 index 2243fe6..0000000 --- a/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - ${PRODUCT_BUNDLE_IDENTIFIER} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0.0 - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - NSPrincipalClass - - - diff --git a/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-acknowledgements.markdown b/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-acknowledgements.markdown deleted file mode 100644 index 102af75..0000000 --- a/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-acknowledgements.markdown +++ /dev/null @@ -1,3 +0,0 @@ -# Acknowledgements -This application makes use of the following third party libraries: -Generated by CocoaPods - https://cocoapods.org diff --git a/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-acknowledgements.plist b/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-acknowledgements.plist deleted file mode 100644 index 7acbad1..0000000 --- a/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-acknowledgements.plist +++ /dev/null @@ -1,29 +0,0 @@ - - - - - PreferenceSpecifiers - - - FooterText - This application makes use of the following third party libraries: - Title - Acknowledgements - Type - PSGroupSpecifier - - - FooterText - Generated by CocoaPods - https://cocoapods.org - Title - - Type - PSGroupSpecifier - - - StringsTable - Acknowledgements - Title - Acknowledgements - - diff --git a/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-dummy.m b/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-dummy.m deleted file mode 100644 index 833b46f..0000000 --- a/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_Pods_APNSUtil_Tests : NSObject -@end -@implementation PodsDummy_Pods_APNSUtil_Tests -@end diff --git a/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-frameworks.sh b/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-frameworks.sh deleted file mode 100755 index 08e3eaa..0000000 --- a/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-frameworks.sh +++ /dev/null @@ -1,146 +0,0 @@ -#!/bin/sh -set -e -set -u -set -o pipefail - -if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then - # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy - # frameworks to, so exit 0 (signalling the script phase was successful). - exit 0 -fi - -echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" -mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - -COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" -SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" - -# Used as a return value for each invocation of `strip_invalid_archs` function. -STRIP_BINARY_RETVAL=0 - -# This protects against multiple targets copying the same framework dependency at the same time. The solution -# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html -RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") - -# Copies and strips a vendored framework -install_framework() -{ - if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then - local source="${BUILT_PRODUCTS_DIR}/$1" - elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then - local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" - elif [ -r "$1" ]; then - local source="$1" - fi - - local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - - if [ -L "${source}" ]; then - echo "Symlinked..." - source="$(readlink "${source}")" - fi - - # Use filter instead of exclude so missing patterns don't throw errors. - echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" - rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" - - local basename - basename="$(basename -s .framework "$1")" - binary="${destination}/${basename}.framework/${basename}" - if ! [ -r "$binary" ]; then - binary="${destination}/${basename}" - fi - - # Strip invalid architectures so "fat" simulator / device frameworks work on device - if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then - strip_invalid_archs "$binary" - fi - - # Resign the code if required by the build settings to avoid unstable apps - code_sign_if_enabled "${destination}/$(basename "$1")" - - # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. - if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then - local swift_runtime_libs - swift_runtime_libs=$(xcrun otool -LX "$binary" | 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}" - code_sign_if_enabled "${destination}/${lib}" - done - fi -} - -# Copies and strips a vendored dSYM -install_dsym() { - local source="$1" - if [ -r "$source" ]; then - # Copy the dSYM into a the targets temp dir. - echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" - rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" - - local basename - basename="$(basename -s .framework.dSYM "$source")" - binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" - - # Strip invalid architectures so "fat" simulator / device frameworks work on device - if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then - strip_invalid_archs "$binary" - fi - - if [[ $STRIP_BINARY_RETVAL == 1 ]]; then - # Move the stripped file into its final destination. - echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" - rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" - else - # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. - touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" - fi - fi -} - -# Signs a framework with the provided identity -code_sign_if_enabled() { - if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then - # Use the current code_sign_identitiy - echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" - local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" - - if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then - code_sign_cmd="$code_sign_cmd &" - fi - echo "$code_sign_cmd" - eval "$code_sign_cmd" - fi -} - -# Strip invalid architectures -strip_invalid_archs() { - binary="$1" - # Get architectures for current target binary - binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" - # Intersect them with the architectures we are building for - intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" - # If there are no archs supported by this binary then warn the user - if [[ -z "$intersected_archs" ]]; then - echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." - STRIP_BINARY_RETVAL=0 - return - fi - stripped="" - for arch in $binary_archs; do - if ! [[ "${ARCHS}" == *"$arch"* ]]; then - # Strip non-valid architectures in-place - lipo -remove "$arch" -output "$binary" "$binary" || exit 1 - stripped="$stripped $arch" - fi - done - if [[ "$stripped" ]]; then - echo "Stripped $binary of architectures:$stripped" - fi - STRIP_BINARY_RETVAL=1 -} - -if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then - wait -fi diff --git a/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-resources.sh b/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-resources.sh deleted file mode 100755 index 345301f..0000000 --- a/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-resources.sh +++ /dev/null @@ -1,118 +0,0 @@ -#!/bin/sh -set -e -set -u -set -o pipefail - -if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then - # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy - # resources to, so exit 0 (signalling the script phase was successful). - exit 0 -fi - -mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" - -RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt -> "$RESOURCES_TO_COPY" - -XCASSET_FILES=() - -# This protects against multiple targets copying the same framework dependency at the same time. The solution -# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html -RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") - -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" - ;; - 3) - TARGET_DEVICE_ARGS="--target-device tv" - ;; - 4) - TARGET_DEVICE_ARGS="--target-device watch" - ;; - *) - TARGET_DEVICE_ARGS="--target-device mac" - ;; -esac - -install_resource() -{ - if [[ "$1" = /* ]] ; then - RESOURCE_PATH="$1" - else - RESOURCE_PATH="${PODS_ROOT}/$1" - fi - if [[ ! -e "$RESOURCE_PATH" ]] ; then - cat << EOM -error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. -EOM - exit 1 - fi - case $RESOURCE_PATH in - *.storyboard) - echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true - ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} - ;; - *.xib) - echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true - ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} - ;; - *.framework) - echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true - mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true - rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - ;; - *.xcdatamodel) - echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true - xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" - ;; - *.xcdatamodeld) - echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true - xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" - ;; - *.xcmappingmodel) - echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true - xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" - ;; - *.xcassets) - ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" - XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") - ;; - *) - echo "$RESOURCE_PATH" || true - echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" - ;; - esac -} - -mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then - mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" - 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 - # 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 != "${PODS_ROOT}*" ]]; then - XCASSET_FILES+=("$line") - fi - done <<<"$OTHER_XCASSETS" - - if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then - printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" - else - printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" - fi -fi diff --git a/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-umbrella.h b/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-umbrella.h deleted file mode 100644 index d42f6bc..0000000 --- a/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests-umbrella.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifdef __OBJC__ -#import -#else -#ifndef FOUNDATION_EXPORT -#if defined(__cplusplus) -#define FOUNDATION_EXPORT extern "C" -#else -#define FOUNDATION_EXPORT extern -#endif -#endif -#endif - - -FOUNDATION_EXPORT double Pods_APNSUtil_TestsVersionNumber; -FOUNDATION_EXPORT const unsigned char Pods_APNSUtil_TestsVersionString[]; - diff --git a/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests.debug.xcconfig b/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests.debug.xcconfig deleted file mode 100644 index 6f255a7..0000000 --- a/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests.debug.xcconfig +++ /dev/null @@ -1,8 +0,0 @@ -FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/APNSUtil" "${PODS_CONFIGURATION_BUILD_DIR}/ObjectMapper" -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' -OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/APNSUtil/APNSUtil.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/ObjectMapper/ObjectMapper.framework/Headers" -PODS_BUILD_DIR = ${BUILD_DIR} -PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) -PODS_PODFILE_DIR_PATH = ${SRCROOT}/. -PODS_ROOT = ${SRCROOT}/Pods diff --git a/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests.modulemap b/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests.modulemap deleted file mode 100644 index 7e9243b..0000000 --- a/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module Pods_APNSUtil_Tests { - umbrella header "Pods-APNSUtil_Tests-umbrella.h" - - export * - module * { export * } -} diff --git a/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests.release.xcconfig b/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests.release.xcconfig deleted file mode 100644 index 6f255a7..0000000 --- a/Example/Pods/Target Support Files/Pods-APNSUtil_Tests/Pods-APNSUtil_Tests.release.xcconfig +++ /dev/null @@ -1,8 +0,0 @@ -FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/APNSUtil" "${PODS_CONFIGURATION_BUILD_DIR}/ObjectMapper" -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' -OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/APNSUtil/APNSUtil.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/ObjectMapper/ObjectMapper.framework/Headers" -PODS_BUILD_DIR = ${BUILD_DIR} -PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) -PODS_PODFILE_DIR_PATH = ${SRCROOT}/. -PODS_ROOT = ${SRCROOT}/Pods