diff --git a/.gitIgnore b/.gitIgnore deleted file mode 100644 index 312d1f6..0000000 --- a/.gitIgnore +++ /dev/null @@ -1,68 +0,0 @@ -# Xcode -# -# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore - -## Build generated -build/ -DerivedData/ - -## Various settings -*.pbxuser -!default.pbxuser -*.mode1v3 -!default.mode1v3 -*.mode2v3 -!default.mode2v3 -*.perspectivev3 -!default.perspectivev3 -xcuserdata/ - -## Other -*.moved-aside -*.xccheckout -*.xcscmblueprint - -## Obj-C/Swift specific -*.hmap -*.ipa -*.dSYM.zip -*.dSYM - -## Playgrounds -timeline.xctimeline -playground.xcworkspace - -# Swift Package Manager -# -# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. -# Packages/ -# Package.pins -# Package.resolved -.build/ - -# CocoaPods -# -# We recommend against adding the Pods directory to your .gitignore. However -# 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/ - -# Carthage -# -# Add this line if you want to avoid checking in source code from Carthage dependencies. -# Carthage/Checkouts - -Carthage/Build - -# fastlane -# -# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the -# screenshots whenever they are needed. -# For more information about the recommended setup visit: -# https://docs.fastlane.tools/best-practices/source-control/#source-control - -fastlane/report.xml -fastlane/Preview.html -fastlane/screenshots/**/*.png -fastlane/test_output diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5cec1cb --- /dev/null +++ b/.gitignore @@ -0,0 +1,133 @@ + +# Created by https://www.toptal.com/developers/gitignore/api/xcode,cocoapods,swift,fastlane +# Edit at https://www.toptal.com/developers/gitignore?templates=xcode,cocoapods,swift,fastlane + +### CocoaPods ### +## CocoaPods GitIgnore Template + +# CocoaPods - Only use to conserve bandwidth / Save time on Pushing +# - Also handy if you have a large number of dependant pods +# - AS PER https://guides.cocoapods.org/using/using-cocoapods.html NEVER IGNORE THE LOCK FILE +Pods/ + +### fastlane ### +# fastlane - A streamlined workflow tool for Cocoa deployment +# +# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the +# screenshots whenever they are needed. +# For more information about the recommended setup visit: +# https://docs.fastlane.tools/best-practices/source-control/#source-control + +# fastlane specific +fastlane/report.xml + +# deliver temporary files +fastlane/Preview.html + +# snapshot generated screenshots +fastlane/screenshots/**/*.png +fastlane/screenshots/screenshots.html + +# scan temporary files +fastlane/test_output + +# Fastlane.swift runner binary +fastlane/FastlaneRunner + +### Swift ### +# Xcode +# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore + +## User settings +xcuserdata/ + +## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) +*.xcscmblueprint +*.xccheckout + +## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) +build/ +DerivedData/ +*.moved-aside +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 + +## Obj-C/Swift specific +*.hmap + +## App packaging +*.ipa +*.dSYM.zip +*.dSYM + +## Playgrounds +timeline.xctimeline +playground.xcworkspace + +# Swift Package Manager +# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. +# Packages/ +# Package.pins +# Package.resolved +# *.xcodeproj +# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata +# hence it is not needed unless you have added a package configuration file to your project +# .swiftpm + +.build/ + +# CocoaPods +# We recommend against adding the Pods directory to your .gitignore. However +# 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/ +# Add this line if you want to avoid checking in source code from the Xcode workspace +# *.xcworkspace + +# Carthage +# Add this line if you want to avoid checking in source code from Carthage dependencies. +# Carthage/Checkouts + +Carthage/Build/ + +# Add this lines if you are using Accio dependency management (Deprecated since Xcode 12) +# Dependencies/ +# .accio/ + +# fastlane +# It is recommended to not store the screenshots in the git repo. +# Instead, use fastlane to re-generate the screenshots whenever they are needed. +# For more information about the recommended setup visit: +# https://docs.fastlane.tools/best-practices/source-control/#source-control + + +# Code Injection +# After new code Injection tools there's a generated folder /iOSInjectionProject +# https://github.com/johnno1962/injectionforxcode + +iOSInjectionProject/ + +### Xcode ### +# Xcode +# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore + + + + +## Gcc Patch +/*.gcno + +### Xcode Patch ### +*.xcodeproj/* +!*.xcodeproj/project.pbxproj +!*.xcodeproj/xcshareddata/ +!*.xcworkspace/contents.xcworkspacedata +**/xcshareddata/WorkspaceSettings.xcsettings + +# End of https://www.toptal.com/developers/gitignore/api/xcode,cocoapods,swift,fastlane diff --git "a/BringMyOwnBeer\360\237\215\272.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/BringMyOwnBeer\360\237\215\272.xcodeproj/project.xcworkspace/contents.xcworkspacedata" deleted file mode 100644 index 0e652b9..0000000 --- "a/BringMyOwnBeer\360\237\215\272.xcodeproj/project.xcworkspace/contents.xcworkspacedata" +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git "a/BringMyOwnBeer\360\237\215\272.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist" "b/BringMyOwnBeer\360\237\215\272.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist" deleted file mode 100644 index 18d9810..0000000 --- "a/BringMyOwnBeer\360\237\215\272.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist" +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git "a/BringMyOwnBeer\360\237\215\272.xcodeproj/project.xcworkspace/xcuserdata/boyoung.xcuserdatad/UserInterfaceState.xcuserstate" "b/BringMyOwnBeer\360\237\215\272.xcodeproj/project.xcworkspace/xcuserdata/boyoung.xcuserdatad/UserInterfaceState.xcuserstate" deleted file mode 100644 index 7c1f3c7..0000000 Binary files "a/BringMyOwnBeer\360\237\215\272.xcodeproj/project.xcworkspace/xcuserdata/boyoung.xcuserdatad/UserInterfaceState.xcuserstate" and /dev/null differ diff --git "a/BringMyOwnBeer\360\237\215\272.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/xcschememanagement.plist" "b/BringMyOwnBeer\360\237\215\272.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/xcschememanagement.plist" deleted file mode 100644 index d8a2ee1..0000000 --- "a/BringMyOwnBeer\360\237\215\272.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/xcschememanagement.plist" +++ /dev/null @@ -1,14 +0,0 @@ - - - - - SchemeUserState - - BringMyOwnBeer🍺.xcscheme_^#shared#^_ - - orderHint - 22 - - - - diff --git "a/BringMyOwnBeer\360\237\215\272.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings" "b/BringMyOwnBeer\360\237\215\272.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings" deleted file mode 100644 index 949b678..0000000 --- "a/BringMyOwnBeer\360\237\215\272.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings" +++ /dev/null @@ -1,8 +0,0 @@ - - - - - BuildSystemType - Original - - diff --git "a/BringMyOwnBeer\360\237\215\272.xcworkspace/xcuserdata/boyoung.xcuserdatad/UserInterfaceState.xcuserstate" "b/BringMyOwnBeer\360\237\215\272.xcworkspace/xcuserdata/boyoung.xcuserdatad/UserInterfaceState.xcuserstate" deleted file mode 100644 index be6d93d..0000000 Binary files "a/BringMyOwnBeer\360\237\215\272.xcworkspace/xcuserdata/boyoung.xcuserdatad/UserInterfaceState.xcuserstate" and /dev/null differ diff --git "a/BringMyOwnBeer\360\237\215\272.xcworkspace/xcuserdata/boyoung.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist" "b/BringMyOwnBeer\360\237\215\272.xcworkspace/xcuserdata/boyoung.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist" deleted file mode 100644 index ed9a9b4..0000000 --- "a/BringMyOwnBeer\360\237\215\272.xcworkspace/xcuserdata/boyoung.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist" +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/Pods/Differentiator/LICENSE.md b/Pods/Differentiator/LICENSE.md deleted file mode 100644 index 6705bea..0000000 --- a/Pods/Differentiator/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 RxSwift Community - -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/Pods/Differentiator/README.md b/Pods/Differentiator/README.md deleted file mode 100644 index 88891b6..0000000 --- a/Pods/Differentiator/README.md +++ /dev/null @@ -1,169 +0,0 @@ -[![Travis CI](https://travis-ci.org/RxSwiftCommunity/RxDataSources.svg?branch=master)](https://travis-ci.org/RxSwiftCommunity/RxDataSources) - -Table and Collection view data sources -====================================== - -## Features - -- [x] **O(N)** algorithm for calculating differences - - the algorithm has the assumption that all sections and items are unique so there is no ambiguity - - in case there is ambiguity, fallbacks automagically on non animated refresh -- [x] it applies additional heuristics to send the least number of commands to sectioned view - - even though the running time is linear, preferred number of sent commands is usually a lot less than linear - - it is preferred (and possible) to cap the number of changes to some small number, and in case the number of changes grows towards linear, just do normal reload -- [x] Supports **extending your item and section structures** - - just extend your item with `IdentifiableType` and `Equatable`, and your section with `AnimatableSectionModelType` -- [x] Supports all combinations of two level hierarchical animations for **both sections and items** - - Section animations: Insert, Delete, Move - - Item animations: Insert, Delete, Move, Reload (if old value is not equal to new value) -- [x] Configurable animation types for `Insert`, `Reload` and `Delete` (Automatic, Fade, ...) -- [x] Example app -- [x] Randomized stress tests (example app) -- [x] Supports editing out of the box (example app) -- [x] Works with `UITableView` and `UICollectionView` - -## Why -Writing table and collection view data sources is tedious. There is a large number of delegate methods that need to be implemented for the simplest case possible. - -RxSwift helps alleviate some of the burden with a simple data binding mechanism: -1) Turn your data into an Observable sequence -2) Bind the data to the tableView/collectionView using one of: - - `rx.items(dataSource:protocol)` - - `rx.items(cellIdentifier:String)` - - `rx.items(cellIdentifier:String:Cell.Type:_:)` - - `rx.items(_:_:)` - -```swift -let data = Observable<[String]>.just(["first element", "second element", "third element"]) - -data.bind(to: tableView.rx.items(cellIdentifier: "Cell")) { index, model, cell in - cell.textLabel?.text = model -} -.disposed(by: disposeBag) -``` - -This works well with simple data sets but does not handle cases where you need to bind complex data sets with multiples sections, or when you need to perform animations when adding/modifying/deleting items. - -These are precisely the use cases that RxDataSources helps solve. - -With RxDataSources, it is super easy to just write - -```swift -let dataSource = RxTableViewSectionedReloadDataSource>(configureCell: configureCell) -Observable.just([SectionModel(model: "title", items: [1, 2, 3])]) - .bind(to: tableView.rx.items(dataSource: dataSource)) - .disposed(by: disposeBag) -``` -![RxDataSources example app](https://raw.githubusercontent.com/kzaher/rxswiftcontent/rxdatasources/RxDataSources.gif) - -## How -Given the following custom data structure: -```swift -struct CustomData { - var anInt: Int - var aString: String - var aCGPoint: CGPoint -} -``` - -1) Start by defining your sections with a struct that conforms to the `SectionModelType` protocol: - - define the `Item` typealias: equal to the type of items that the section will contain - - declare an `items` property: of type array of `Item` - -```swift -struct SectionOfCustomData { - var header: String - var items: [Item] -} -extension SectionOfCustomData: SectionModelType { - typealias Item = CustomData - - init(original: SectionOfCustomData, items: [Item]) { - self = original - self.items = items - } -} -``` - -2) Create a dataSource object and pass it your `SectionOfCustomData` type: -```swift -let dataSource = RxTableViewSectionedReloadDataSource( - configureCell: { dataSource, tableView, indexPath, item in - let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) - cell.textLabel?.text = "Item \(item.anInt): \(item.aString) - \(item.aCGPoint.x):\(item.aCGPoint.y)" - return cell -}) -``` - -3) Customize closures on the dataSource as needed: -- `titleForHeaderInSection` -- `titleForFooterInSection` -- etc - -```swift -dataSource.titleForHeaderInSection = { dataSource, index in - return dataSource.sectionModels[index].header -} - -dataSource.titleForFooterInSection = { dataSource, indexPath in - return dataSource.sectionModels[index].footer -} - -dataSource.canEditRowAtIndexPath = { dataSource, indexPath in - return true -} - -dataSource.canMoveRowAtIndexPath = { dataSource, indexPath in - return true -} -``` - -4) Define the actual data as an Observable sequence of CustomData objects and bind it to the tableView -```swift -let sections = [ - SectionOfCustomData(header: "First section", items: [CustomData(anInt: 0, aString: "zero", aCGPoint: CGPoint.zero), CustomData(anInt: 1, aString: "one", aCGPoint: CGPoint(x: 1, y: 1)) ]), - SectionOfCustomData(header: "Second section", items: [CustomData(anInt: 2, aString: "two", aCGPoint: CGPoint(x: 2, y: 2)), CustomData(anInt: 3, aString: "three", aCGPoint: CGPoint(x: 3, y: 3)) ]) -] - -Observable.just(sections) - .bind(to: tableView.rx.items(dataSource: dataSource)) - .disposed(by: disposeBag) -``` - -### Animated Data Sources - -RxDataSources provides two special data source types that automatically take care of animating changes in the bound data source: `RxTableViewSectionedAnimatedDataSource` and `RxCollectionViewSectionedAnimatedDataSource`. - -To use one of the two animated data sources, you must take a few extra steps on top of those outlined above: - -- SectionOfCustomData needs to conform to `AnimatableSectionModelType` -- Your data model must conform to - * `IdentifiableType`: The `identity` provided by the `IdentifiableType` protocol must be an **immutable identifier representing an instance of the model**. For example, in case of a `Car` model, you might want to use the car's `plateNumber` as its identity. - * `Equatable`: Conforming to `Equatable` helps `RxDataSources` determine which cells have changed so it can animate only these specific cells. Meaning, changing **any** of the `Car` model's properties will trigger an animated reload of that cell. - -## Requirements - -Xcode 9.0 - -Swift 4.0 - -For Swift 3.x version please use versions `1.0 ... 2.0.2` -For Swift 2.3 version please use versions `0.1 ... 0.9` - -## Installation - -**We'll try to keep the API as stable as possible, but breaking API changes can occur.** - -### CocoaPods - -Podfile -``` -pod 'RxDataSources', '~> 3.0' -``` - -### Carthage - -Cartfile -``` -github "RxSwiftCommunity/RxDataSources" ~> 3.0 -``` diff --git a/Pods/Differentiator/Sources/Differentiator/AnimatableSectionModel.swift b/Pods/Differentiator/Sources/Differentiator/AnimatableSectionModel.swift deleted file mode 100644 index 8141a62..0000000 --- a/Pods/Differentiator/Sources/Differentiator/AnimatableSectionModel.swift +++ /dev/null @@ -1,49 +0,0 @@ -// -// AnimatableSectionModel.swift -// RxDataSources -// -// Created by Krunoslav Zaher on 1/10/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -import Foundation - -public struct AnimatableSectionModel { - public var model: Section - public var items: [Item] - - public init(model: Section, items: [ItemType]) { - self.model = model - self.items = items - } - -} - -extension AnimatableSectionModel - : AnimatableSectionModelType { - public typealias Item = ItemType - public typealias Identity = Section.Identity - - public var identity: Section.Identity { - return model.identity - } - - public init(original: AnimatableSectionModel, items: [Item]) { - self.model = original.model - self.items = items - } - - public var hashValue: Int { - return self.model.identity.hashValue - } -} - - -extension AnimatableSectionModel - : CustomStringConvertible { - - public var description: String { - return "HashableSectionModel(model: \"\(self.model)\", items: \(items))" - } - -} diff --git a/Pods/Differentiator/Sources/Differentiator/AnimatableSectionModelType+ItemPath.swift b/Pods/Differentiator/Sources/Differentiator/AnimatableSectionModelType+ItemPath.swift deleted file mode 100644 index 8a2b862..0000000 --- a/Pods/Differentiator/Sources/Differentiator/AnimatableSectionModelType+ItemPath.swift +++ /dev/null @@ -1,15 +0,0 @@ -// -// AnimatableSectionModelType+ItemPath.swift -// RxDataSources -// -// Created by Krunoslav Zaher on 1/9/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -import Foundation - -extension Array where Element: AnimatableSectionModelType { - subscript(index: ItemPath) -> Element.Item { - return self[index.sectionIndex].items[index.itemIndex] - } -} \ No newline at end of file diff --git a/Pods/Differentiator/Sources/Differentiator/AnimatableSectionModelType.swift b/Pods/Differentiator/Sources/Differentiator/AnimatableSectionModelType.swift deleted file mode 100644 index 53e6e5c..0000000 --- a/Pods/Differentiator/Sources/Differentiator/AnimatableSectionModelType.swift +++ /dev/null @@ -1,14 +0,0 @@ -// -// AnimatableSectionModelType.swift -// RxDataSources -// -// Created by Krunoslav Zaher on 1/6/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -import Foundation - -public protocol AnimatableSectionModelType - : SectionModelType - , IdentifiableType where Item: IdentifiableType, Item: Equatable { -} diff --git a/Pods/Differentiator/Sources/Differentiator/Changeset.swift b/Pods/Differentiator/Sources/Differentiator/Changeset.swift deleted file mode 100644 index b3e88a3..0000000 --- a/Pods/Differentiator/Sources/Differentiator/Changeset.swift +++ /dev/null @@ -1,92 +0,0 @@ -// -// Changeset.swift -// RxDataSources -// -// Created by Krunoslav Zaher on 5/30/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import Foundation - -public struct Changeset { - public typealias I = S.Item - - public let reloadData: Bool - - public let originalSections: [S] - public let finalSections: [S] - - public let insertedSections: [Int] - public let deletedSections: [Int] - public let movedSections: [(from: Int, to: Int)] - public let updatedSections: [Int] - - public let insertedItems: [ItemPath] - public let deletedItems: [ItemPath] - public let movedItems: [(from: ItemPath, to: ItemPath)] - public let updatedItems: [ItemPath] - - init(reloadData: Bool = false, - originalSections: [S] = [], - finalSections: [S] = [], - insertedSections: [Int] = [], - deletedSections: [Int] = [], - movedSections: [(from: Int, to: Int)] = [], - updatedSections: [Int] = [], - - insertedItems: [ItemPath] = [], - deletedItems: [ItemPath] = [], - movedItems: [(from: ItemPath, to: ItemPath)] = [], - updatedItems: [ItemPath] = [] - ) { - self.reloadData = reloadData - - self.originalSections = originalSections - self.finalSections = finalSections - - self.insertedSections = insertedSections - self.deletedSections = deletedSections - self.movedSections = movedSections - self.updatedSections = updatedSections - - self.insertedItems = insertedItems - self.deletedItems = deletedItems - self.movedItems = movedItems - self.updatedItems = updatedItems - } - - public static func initialValue(_ sections: [S]) -> Changeset { - return Changeset( - reloadData: true, - finalSections: sections, - insertedSections: Array(0 ..< sections.count) as [Int] - ) - } -} - -extension ItemPath - : CustomDebugStringConvertible { - public var debugDescription : String { - return "(\(sectionIndex), \(itemIndex))" - } -} - -extension Changeset - : CustomDebugStringConvertible { - - public var debugDescription : String { - let serializedSections = "[\n" + finalSections.map { "\($0)" }.joined(separator: ",\n") + "\n]\n" - return " >> Final sections" - + " \n\(serializedSections)" - + (!insertedSections.isEmpty || !deletedSections.isEmpty || !movedSections.isEmpty || !updatedSections.isEmpty ? "\nSections:" : "") - + (!insertedSections.isEmpty ? "\ninsertedSections:\n\t\(insertedSections)" : "") - + (!deletedSections.isEmpty ? "\ndeletedSections:\n\t\(deletedSections)" : "") - + (!movedSections.isEmpty ? "\nmovedSections:\n\t\(movedSections)" : "") - + (!updatedSections.isEmpty ? "\nupdatesSections:\n\t\(updatedSections)" : "") - + (!insertedItems.isEmpty || !deletedItems.isEmpty || !movedItems.isEmpty || !updatedItems.isEmpty ? "\nItems:" : "") - + (!insertedItems.isEmpty ? "\ninsertedItems:\n\t\(insertedItems)" : "") - + (!deletedItems.isEmpty ? "\ndeletedItems:\n\t\(deletedItems)" : "") - + (!movedItems.isEmpty ? "\nmovedItems:\n\t\(movedItems)" : "") - + (!updatedItems.isEmpty ? "\nupdatedItems:\n\t\(updatedItems)" : "") - } -} diff --git a/Pods/Differentiator/Sources/Differentiator/Diff.swift b/Pods/Differentiator/Sources/Differentiator/Diff.swift deleted file mode 100644 index b1ff394..0000000 --- a/Pods/Differentiator/Sources/Differentiator/Diff.swift +++ /dev/null @@ -1,793 +0,0 @@ -// -// Differentiator.swift -// RxDataSources -// -// Created by Krunoslav Zaher on 6/27/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import Foundation - -fileprivate extension AnimatableSectionModelType { - init(safeOriginal: Self, safeItems: [Item]) throws { - self.init(original: safeOriginal, items: safeItems) - - if self.items != safeItems || self.identity != safeOriginal.identity { - throw Diff.Error.invalidInitializerImplementation(section: self, expectedItems: safeItems, expectedIdentifier: safeOriginal.identity) - } - } -} - -public enum Diff { - - public enum Error : Swift.Error, CustomDebugStringConvertible { - - case duplicateItem(item: Any) - case duplicateSection(section: Any) - case invalidInitializerImplementation(section: Any, expectedItems: Any, expectedIdentifier: Any) - - public var debugDescription: String { - switch self { - case let .duplicateItem(item): - return "Duplicate item \(item)" - case let .duplicateSection(section): - return "Duplicate section \(section)" - case let .invalidInitializerImplementation(section, expectedItems, expectedIdentifier): - return "Wrong initializer implementation for: \(section)\n" + - "Expected it should return items: \(expectedItems)\n" + - "Expected it should have id: \(expectedIdentifier)" - } - } - } - - private enum EditEvent : CustomDebugStringConvertible { - case inserted // can't be found in old sections - case insertedAutomatically // Item inside section being inserted - case deleted // Was in old, not in new, in it's place is something "not new" :(, otherwise it's Updated - case deletedAutomatically // Item inside section that is being deleted - case moved // same item, but was on different index, and needs explicit move - case movedAutomatically // don't need to specify any changes for those rows - case untouched - - var debugDescription: String { - get { - switch self { - case .inserted: - return "Inserted" - case .insertedAutomatically: - return "InsertedAutomatically" - case .deleted: - return "Deleted" - case .deletedAutomatically: - return "DeletedAutomatically" - case .moved: - return "Moved" - case .movedAutomatically: - return "MovedAutomatically" - case .untouched: - return "Untouched" - } - } - } - } - - private struct SectionAssociatedData : CustomDebugStringConvertible { - var event: EditEvent - var indexAfterDelete: Int? - var moveIndex: Int? - var itemCount: Int - - var debugDescription: String { - get { - return "\(event), \(String(describing: indexAfterDelete))" - } - } - - static var initial: SectionAssociatedData { - return SectionAssociatedData(event: .untouched, indexAfterDelete: nil, moveIndex: nil, itemCount: 0) - } - } - - private struct ItemAssociatedData: CustomDebugStringConvertible { - var event: EditEvent - var indexAfterDelete: Int? - var moveIndex: ItemPath? - - var debugDescription: String { - get { - return "\(event) \(String(describing: indexAfterDelete))" - } - } - - static var initial : ItemAssociatedData { - return ItemAssociatedData(event: .untouched, indexAfterDelete: nil, moveIndex: nil) - } - } - - private static func indexSections(_ sections: [S]) throws -> [S.Identity : Int] { - var indexedSections: [S.Identity : Int] = [:] - for (i, section) in sections.enumerated() { - guard indexedSections[section.identity] == nil else { - #if DEBUG - if indexedSections[section.identity] != nil { - print("Section \(section) has already been indexed at \(indexedSections[section.identity]!)") - } - #endif - throw Error.duplicateSection(section: section) - } - indexedSections[section.identity] = i - } - - return indexedSections - } - - //================================================================================ - // Optimizations because Swift dictionaries are extremely slow (ARC, bridging ...) - //================================================================================ - // swift dictionary optimizations { - - private struct OptimizedIdentity : Hashable { - - let hashValue: Int - let identity: UnsafePointer - - init(_ identity: UnsafePointer) { - self.identity = identity - self.hashValue = identity.pointee.hashValue - } - - static func == (lhs: OptimizedIdentity, rhs: OptimizedIdentity) -> Bool { - if lhs.hashValue != rhs.hashValue { - return false - } - - if lhs.identity.distance(to: rhs.identity) == 0 { - return true - } - - return lhs.identity.pointee == rhs.identity.pointee - } - - } - - private static func calculateAssociatedData( - initialItemCache: ContiguousArray>, - finalItemCache: ContiguousArray> - ) throws - -> (ContiguousArray>, ContiguousArray>) { - - typealias Identity = Item.Identity - let totalInitialItems = initialItemCache.map { $0.count }.reduce(0, +) - - var initialIdentities: ContiguousArray = ContiguousArray() - var initialItemPaths: ContiguousArray = ContiguousArray() - - initialIdentities.reserveCapacity(totalInitialItems) - initialItemPaths.reserveCapacity(totalInitialItems) - - for (i, items) in initialItemCache.enumerated() { - for j in 0 ..< items.count { - let item = items[j] - initialIdentities.append(item.identity) - initialItemPaths.append(ItemPath(sectionIndex: i, itemIndex: j)) - } - } - - var initialItemData = ContiguousArray(initialItemCache.map { items in - return ContiguousArray(repeating: ItemAssociatedData.initial, count: items.count) - }) - - var finalItemData = ContiguousArray(finalItemCache.map { items in - return ContiguousArray(repeating: ItemAssociatedData.initial, count: items.count) - }) - - try initialIdentities.withUnsafeBufferPointer { (identitiesBuffer: UnsafeBufferPointer) -> () in - var dictionary: [OptimizedIdentity: Int] = Dictionary(minimumCapacity: totalInitialItems * 2) - - for i in 0 ..< initialIdentities.count { - let identityPointer = identitiesBuffer.baseAddress!.advanced(by: i) - - let key = OptimizedIdentity(identityPointer) - - if let existingValueItemPathIndex = dictionary[key] { - let itemPath = initialItemPaths[existingValueItemPathIndex] - let item = initialItemCache[itemPath.sectionIndex][itemPath.itemIndex] - #if DEBUG - print("Item \(item) has already been indexed at \(itemPath)" ) - #endif - throw Error.duplicateItem(item: item) - } - - dictionary[key] = i - } - - for (i, items) in finalItemCache.enumerated() { - for j in 0 ..< items.count { - let item = items[j] - var identity = item.identity - let key = OptimizedIdentity(&identity) - guard let initialItemPathIndex = dictionary[key] else { - continue - } - let itemPath = initialItemPaths[initialItemPathIndex] - if initialItemData[itemPath.sectionIndex][itemPath.itemIndex].moveIndex != nil { - throw Error.duplicateItem(item: item) - } - - initialItemData[itemPath.sectionIndex][itemPath.itemIndex].moveIndex = ItemPath(sectionIndex: i, itemIndex: j) - finalItemData[i][j].moveIndex = itemPath - } - } - - return () - } - - return (initialItemData, finalItemData) - } - - // } swift dictionary optimizations - - /* - - I've uncovered this case during random stress testing of logic. - This is the hardest generic update case that causes two passes, first delete, and then move/insert - - [ - NumberSection(model: "1", items: [1111]), - NumberSection(model: "2", items: [2222]), - ] - - [ - NumberSection(model: "2", items: [0]), - NumberSection(model: "1", items: []), - ] - - If update is in the form - - * Move section from 2 to 1 - * Delete Items at paths 0 - 0, 1 - 0 - * Insert Items at paths 0 - 0 - - or - - * Move section from 2 to 1 - * Delete Items at paths 0 - 0 - * Reload Items at paths 1 - 0 - - or - - * Move section from 2 to 1 - * Delete Items at paths 0 - 0 - * Reload Items at paths 0 - 0 - - it crashes table view. - - No matter what change is performed, it fails for me. - If anyone knows how to make this work for one Changeset, PR is welcome. - - */ - - // If you are considering working out your own algorithm, these are tricky - // transition cases that you can use. - - // case 1 - /* - from = [ - NumberSection(model: "section 4", items: [10, 11, 12]), - NumberSection(model: "section 9", items: [25, 26, 27]), - ] - to = [ - HashableSectionModel(model: "section 9", items: [11, 26, 27]), - HashableSectionModel(model: "section 4", items: [10, 12]) - ] - */ - - // case 2 - /* - from = [ - HashableSectionModel(model: "section 10", items: [26]), - HashableSectionModel(model: "section 7", items: [5, 29]), - HashableSectionModel(model: "section 1", items: [14]), - HashableSectionModel(model: "section 5", items: [16]), - HashableSectionModel(model: "section 4", items: []), - HashableSectionModel(model: "section 8", items: [3, 15, 19, 23]), - HashableSectionModel(model: "section 3", items: [20]) - ] - to = [ - HashableSectionModel(model: "section 10", items: [26]), - HashableSectionModel(model: "section 1", items: [14]), - HashableSectionModel(model: "section 9", items: [3]), - HashableSectionModel(model: "section 5", items: [16, 8]), - HashableSectionModel(model: "section 8", items: [15, 19, 23]), - HashableSectionModel(model: "section 3", items: [20]), - HashableSectionModel(model: "Section 2", items: [7]) - ] - */ - - // case 3 - /* - from = [ - HashableSectionModel(model: "section 4", items: [5]), - HashableSectionModel(model: "section 6", items: [20, 14]), - HashableSectionModel(model: "section 9", items: []), - HashableSectionModel(model: "section 2", items: [2, 26]), - HashableSectionModel(model: "section 8", items: [23]), - HashableSectionModel(model: "section 10", items: [8, 18, 13]), - HashableSectionModel(model: "section 1", items: [28, 25, 6, 11, 10, 29, 24, 7, 19]) - ] - to = [ - HashableSectionModel(model: "section 4", items: [5]), - HashableSectionModel(model: "section 6", items: [20, 14]), - HashableSectionModel(model: "section 9", items: [16]), - HashableSectionModel(model: "section 7", items: [17, 15, 4]), - HashableSectionModel(model: "section 2", items: [2, 26, 23]), - HashableSectionModel(model: "section 8", items: []), - HashableSectionModel(model: "section 10", items: [8, 18, 13]), - HashableSectionModel(model: "section 1", items: [28, 25, 6, 11, 10, 29, 24, 7, 19]) - ] - */ - - // Generates differential changes suitable for sectioned view consumption. - // It will not only detect changes between two states, but it will also try to compress those changes into - // almost minimal set of changes. - // - // I know, I know, it's ugly :( Totally agree, but this is the only general way I could find that works 100%, and - // avoids UITableView quirks. - // - // Please take into consideration that I was also convinced about 20 times that I've found a simple general - // solution, but then UITableView falls apart under stress testing :( - // - // Sincerely, if somebody else would present me this 250 lines of code, I would call him a mad man. I would think - // that there has to be a simpler solution. Well, after 3 days, I'm not convinced any more :) - // - // Maybe it can be made somewhat simpler, but don't think it can be made much simpler. - // - // The algorithm could take anywhere from 1 to 3 table view transactions to finish the updates. - // - // * stage 1 - remove deleted sections and items - // * stage 2 - move sections into place - // * stage 3 - fix moved and new items - // - // There maybe exists a better division, but time will tell. - // - public static func differencesForSectionedView( - initialSections: [S], - finalSections: [S]) - throws -> [Changeset] { - typealias I = S.Item - - var result: [Changeset] = [] - - var sectionCommands = try CommandGenerator.generatorForInitialSections(initialSections, finalSections: finalSections) - - result.append(contentsOf: try sectionCommands.generateDeleteSectionsDeletedItemsAndUpdatedItems()) - result.append(contentsOf: try sectionCommands.generateInsertAndMoveSections()) - result.append(contentsOf: try sectionCommands.generateInsertAndMovedItems()) - - return result - } - - - @available(*, deprecated, renamed: "differencesForSectionedView(initialSections:finalSections:)") - public static func differencesForSectionedView( - _ initialSections: [S], - finalSections: [S]) - throws -> [Changeset] { - return try differencesForSectionedView(initialSections: initialSections, finalSections: finalSections) - } - - private struct CommandGenerator { - typealias Item = S.Item - - let initialSections: [S] - let finalSections: [S] - - let initialSectionData: ContiguousArray - let finalSectionData: ContiguousArray - - let initialItemData: ContiguousArray> - let finalItemData: ContiguousArray> - - let initialItemCache: ContiguousArray> - let finalItemCache: ContiguousArray> - - static func generatorForInitialSections( - _ initialSections: [S], - finalSections: [S] - ) throws -> CommandGenerator { - - let (initialSectionData, finalSectionData) = try calculateSectionMovements(initialSections: initialSections, finalSections: finalSections) - - let initialItemCache = ContiguousArray(initialSections.map { - ContiguousArray($0.items) - }) - - let finalItemCache = ContiguousArray(finalSections.map { - ContiguousArray($0.items) - }) - - let (initialItemData, finalItemData) = try calculateItemMovements( - initialItemCache: initialItemCache, - finalItemCache: finalItemCache, - initialSectionData: initialSectionData, - finalSectionData: finalSectionData - ) - - return CommandGenerator( - initialSections: initialSections, - finalSections: finalSections, - - initialSectionData: initialSectionData, - finalSectionData: finalSectionData, - - initialItemData: initialItemData, - finalItemData: finalItemData, - - initialItemCache: initialItemCache, - finalItemCache: finalItemCache - ) - } - - static func calculateItemMovements( - initialItemCache: ContiguousArray>, - finalItemCache: ContiguousArray>, - initialSectionData: ContiguousArray, - finalSectionData: ContiguousArray) throws - -> (ContiguousArray>, ContiguousArray>) { - - var (initialItemData, finalItemData) = try Diff.calculateAssociatedData( - initialItemCache: initialItemCache, - finalItemCache: finalItemCache - ) - - let findNextUntouchedOldIndex = { (initialSectionIndex: Int, initialSearchIndex: Int?) -> Int? in - guard var i2 = initialSearchIndex else { - return nil - } - - while i2 < initialSectionData[initialSectionIndex].itemCount { - if initialItemData[initialSectionIndex][i2].event == .untouched { - return i2 - } - - i2 = i2 + 1 - } - - return nil - } - - // first mark deleted items - for i in 0 ..< initialItemCache.count { - guard let _ = initialSectionData[i].moveIndex else { - continue - } - - var indexAfterDelete = 0 - for j in 0 ..< initialItemCache[i].count { - - guard let finalIndexPath = initialItemData[i][j].moveIndex else { - initialItemData[i][j].event = .deleted - continue - } - - // from this point below, section has to be move type because it's initial and not deleted - - // because there is no move to inserted section - if finalSectionData[finalIndexPath.sectionIndex].event == .inserted { - initialItemData[i][j].event = .deleted - continue - } - - initialItemData[i][j].indexAfterDelete = indexAfterDelete - indexAfterDelete += 1 - } - } - - // mark moved or moved automatically - for i in 0 ..< finalItemCache.count { - guard let originalSectionIndex = finalSectionData[i].moveIndex else { - continue - } - - var untouchedIndex: Int? = 0 - for j in 0 ..< finalItemCache[i].count { - untouchedIndex = findNextUntouchedOldIndex(originalSectionIndex, untouchedIndex) - - guard let originalIndex = finalItemData[i][j].moveIndex else { - finalItemData[i][j].event = .inserted - continue - } - - // In case trying to move from deleted section, abort, otherwise it will crash table view - if initialSectionData[originalIndex.sectionIndex].event == .deleted { - finalItemData[i][j].event = .inserted - continue - } - // original section can't be inserted - else if initialSectionData[originalIndex.sectionIndex].event == .inserted { - try precondition(false, "New section in initial sections, that is wrong") - } - - let initialSectionEvent = initialSectionData[originalIndex.sectionIndex].event - try precondition(initialSectionEvent == .moved || initialSectionEvent == .movedAutomatically, "Section not moved") - - let eventType = originalIndex == ItemPath(sectionIndex: originalSectionIndex, itemIndex: untouchedIndex ?? -1) - ? EditEvent.movedAutomatically : EditEvent.moved - - initialItemData[originalIndex.sectionIndex][originalIndex.itemIndex].event = eventType - finalItemData[i][j].event = eventType - } - } - - return (initialItemData, finalItemData) - } - - static func calculateSectionMovements(initialSections: [S], finalSections: [S]) throws - -> (ContiguousArray, ContiguousArray) { - - let initialSectionIndexes = try Diff.indexSections(initialSections) - - var initialSectionData = ContiguousArray(repeating: SectionAssociatedData.initial, count: initialSections.count) - var finalSectionData = ContiguousArray(repeating: SectionAssociatedData.initial, count: finalSections.count) - - for (i, section) in finalSections.enumerated() { - finalSectionData[i].itemCount = finalSections[i].items.count - guard let initialSectionIndex = initialSectionIndexes[section.identity] else { - continue - } - - if initialSectionData[initialSectionIndex].moveIndex != nil { - throw Error.duplicateSection(section: section) - } - - initialSectionData[initialSectionIndex].moveIndex = i - finalSectionData[i].moveIndex = initialSectionIndex - } - - var sectionIndexAfterDelete = 0 - - // deleted sections - for i in 0 ..< initialSectionData.count { - initialSectionData[i].itemCount = initialSections[i].items.count - if initialSectionData[i].moveIndex == nil { - initialSectionData[i].event = .deleted - continue - } - - initialSectionData[i].indexAfterDelete = sectionIndexAfterDelete - sectionIndexAfterDelete += 1 - } - - // moved sections - - var untouchedOldIndex: Int? = 0 - let findNextUntouchedOldIndex = { (initialSearchIndex: Int?) -> Int? in - guard var i = initialSearchIndex else { - return nil - } - - while i < initialSections.count { - if initialSectionData[i].event == .untouched { - return i - } - - i = i + 1 - } - - return nil - } - - // inserted and moved sections { - // this should fix all sections and move them into correct places - // 2nd stage - for i in 0 ..< finalSections.count { - untouchedOldIndex = findNextUntouchedOldIndex(untouchedOldIndex) - - // oh, it did exist - if let oldSectionIndex = finalSectionData[i].moveIndex { - let moveType = oldSectionIndex != untouchedOldIndex ? EditEvent.moved : EditEvent.movedAutomatically - - finalSectionData[i].event = moveType - initialSectionData[oldSectionIndex].event = moveType - } - else { - finalSectionData[i].event = .inserted - } - } - - // inserted sections - for (i, section) in finalSectionData.enumerated() { - if section.moveIndex == nil { - _ = finalSectionData[i].event == .inserted - } - } - - return (initialSectionData, finalSectionData) - } - - mutating func generateDeleteSectionsDeletedItemsAndUpdatedItems() throws -> [Changeset] { - var deletedSections = [Int]() - - var deletedItems = [ItemPath]() - var updatedItems = [ItemPath]() - - var afterDeleteState = [S]() - - // mark deleted items { - // 1rst stage again (I know, I know ...) - for (i, initialItems) in initialItemCache.enumerated() { - let event = initialSectionData[i].event - - // Deleted section will take care of deleting child items. - // In case of moving an item from deleted section, tableview will - // crash anyway, so this is not limiting anything. - if event == .deleted { - deletedSections.append(i) - continue - } - - var afterDeleteItems: [S.Item] = [] - for j in 0 ..< initialItems.count { - let event = initialItemData[i][j].event - switch event { - case .deleted: - deletedItems.append(ItemPath(sectionIndex: i, itemIndex: j)) - case .moved, .movedAutomatically: - let finalItemIndex = try initialItemData[i][j].moveIndex.unwrap() - let finalItem = finalItemCache[finalItemIndex.sectionIndex][finalItemIndex.itemIndex] - if finalItem != initialSections[i].items[j] { - updatedItems.append(ItemPath(sectionIndex: i, itemIndex: j)) - } - afterDeleteItems.append(finalItem) - default: - try precondition(false, "Unhandled case") - } - } - - afterDeleteState.append(try S.init(safeOriginal: initialSections[i], safeItems: afterDeleteItems)) - } - // } - - if deletedItems.isEmpty && deletedSections.isEmpty && updatedItems.isEmpty { - return [] - } - - return [Changeset( - finalSections: afterDeleteState, - deletedSections: deletedSections, - deletedItems: deletedItems, - updatedItems: updatedItems - )] - } - - func generateInsertAndMoveSections() throws -> [Changeset] { - - var movedSections = [(from: Int, to: Int)]() - var insertedSections = [Int]() - - for i in 0 ..< initialSections.count { - switch initialSectionData[i].event { - case .deleted: - break - case .moved: - movedSections.append((from: try initialSectionData[i].indexAfterDelete.unwrap(), to: try initialSectionData[i].moveIndex.unwrap())) - case .movedAutomatically: - break - default: - try precondition(false, "Unhandled case in initial sections") - } - } - - for i in 0 ..< finalSections.count { - switch finalSectionData[i].event { - case .inserted: - insertedSections.append(i) - default: - break - } - } - - if insertedSections.isEmpty && movedSections.isEmpty { - return [] - } - - // sections should be in place, but items should be original without deleted ones - let sectionsAfterChange: [S] = try self.finalSections.enumerated().map { i, s -> S in - let event = self.finalSectionData[i].event - - if event == .inserted { - // it's already set up - return s - } - else if event == .moved || event == .movedAutomatically { - let originalSectionIndex = try finalSectionData[i].moveIndex.unwrap() - let originalSection = initialSections[originalSectionIndex] - - var items: [S.Item] = [] - items.reserveCapacity(originalSection.items.count) - let itemAssociatedData = self.initialItemData[originalSectionIndex] - for j in 0 ..< originalSection.items.count { - let initialData = itemAssociatedData[j] - - guard initialData.event != .deleted else { - continue - } - - guard let finalIndex = initialData.moveIndex else { - try precondition(false, "Item was moved, but no final location.") - continue - } - - items.append(finalItemCache[finalIndex.sectionIndex][finalIndex.itemIndex]) - } - - let modifiedSection = try S.init(safeOriginal: s, safeItems: items) - - return modifiedSection - } - else { - try precondition(false, "This is weird, this shouldn't happen") - return s - } - } - - return [Changeset( - finalSections: sectionsAfterChange, - insertedSections: insertedSections, - movedSections: movedSections - )] - } - - mutating func generateInsertAndMovedItems() throws -> [Changeset] { - var insertedItems = [ItemPath]() - var movedItems = [(from: ItemPath, to: ItemPath)]() - - // mark new and moved items { - // 3rd stage - for i in 0 ..< finalSections.count { - let finalSection = finalSections[i] - - let sectionEvent = finalSectionData[i].event - // new and deleted sections cause reload automatically - if sectionEvent != .moved && sectionEvent != .movedAutomatically { - continue - } - - for j in 0 ..< finalSection.items.count { - let currentItemEvent = finalItemData[i][j].event - - try precondition(currentItemEvent != .untouched, "Current event is not untouched") - - let event = finalItemData[i][j].event - - switch event { - case .inserted: - insertedItems.append(ItemPath(sectionIndex: i, itemIndex: j)) - case .moved: - let originalIndex = try finalItemData[i][j].moveIndex.unwrap() - let finalSectionIndex = try initialSectionData[originalIndex.sectionIndex].moveIndex.unwrap() - let moveFromItemWithIndex = try initialItemData[originalIndex.sectionIndex][originalIndex.itemIndex].indexAfterDelete.unwrap() - - let moveCommand = ( - from: ItemPath(sectionIndex: finalSectionIndex, itemIndex: moveFromItemWithIndex), - to: ItemPath(sectionIndex: i, itemIndex: j) - ) - movedItems.append(moveCommand) - default: - break - } - } - } - // } - - if insertedItems.isEmpty && movedItems.isEmpty { - return [] - } - return [Changeset( - finalSections: finalSections, - insertedItems: insertedItems, - movedItems: movedItems - )] - } - } -} diff --git a/Pods/Differentiator/Sources/Differentiator/IdentifiableType.swift b/Pods/Differentiator/Sources/Differentiator/IdentifiableType.swift deleted file mode 100644 index 9bda068..0000000 --- a/Pods/Differentiator/Sources/Differentiator/IdentifiableType.swift +++ /dev/null @@ -1,15 +0,0 @@ -// -// IdentifiableType.swift -// RxDataSources -// -// Created by Krunoslav Zaher on 1/6/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -import Foundation - -public protocol IdentifiableType { - associatedtype Identity: Hashable - - var identity : Identity { get } -} \ No newline at end of file diff --git a/Pods/Differentiator/Sources/Differentiator/IdentifiableValue.swift b/Pods/Differentiator/Sources/Differentiator/IdentifiableValue.swift deleted file mode 100644 index 6d02d65..0000000 --- a/Pods/Differentiator/Sources/Differentiator/IdentifiableValue.swift +++ /dev/null @@ -1,41 +0,0 @@ -// -// IdentifiableValue.swift -// RxDataSources -// -// Created by Krunoslav Zaher on 1/7/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -import Foundation - -public struct IdentifiableValue { - public let value: Value -} - -extension IdentifiableValue - : IdentifiableType { - - public typealias Identity = Value - - public var identity : Identity { - return value - } -} - -extension IdentifiableValue - : Equatable - , CustomStringConvertible - , CustomDebugStringConvertible { - - public var description: String { - return "\(value)" - } - - public var debugDescription: String { - return "\(value)" - } -} - -public func == (lhs: IdentifiableValue, rhs: IdentifiableValue) -> Bool { - return lhs.value == rhs.value -} diff --git a/Pods/Differentiator/Sources/Differentiator/ItemPath.swift b/Pods/Differentiator/Sources/Differentiator/ItemPath.swift deleted file mode 100644 index 9551e11..0000000 --- a/Pods/Differentiator/Sources/Differentiator/ItemPath.swift +++ /dev/null @@ -1,35 +0,0 @@ -// -// ItemPath.swift -// RxDataSources -// -// Created by Krunoslav Zaher on 1/9/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -import Foundation - -public struct ItemPath { - public let sectionIndex: Int - public let itemIndex: Int - - public init(sectionIndex: Int, itemIndex: Int) { - self.sectionIndex = sectionIndex - self.itemIndex = itemIndex - } -} - -extension ItemPath : Equatable { - -} - -public func == (lhs: ItemPath, rhs: ItemPath) -> Bool { - return lhs.sectionIndex == rhs.sectionIndex && lhs.itemIndex == rhs.itemIndex -} - -extension ItemPath: Hashable { - - public var hashValue: Int { - return sectionIndex.byteSwapped.hashValue ^ itemIndex.hashValue - } - -} diff --git a/Pods/Differentiator/Sources/Differentiator/Optional+Extensions.swift b/Pods/Differentiator/Sources/Differentiator/Optional+Extensions.swift deleted file mode 100644 index 2a642ff..0000000 --- a/Pods/Differentiator/Sources/Differentiator/Optional+Extensions.swift +++ /dev/null @@ -1,21 +0,0 @@ -// -// Optional+Extensions.swift -// RxDataSources -// -// Created by Krunoslav Zaher on 1/8/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -import Foundation - -extension Optional { - func unwrap() throws -> Wrapped { - if let unwrapped = self { - return unwrapped - } - else { - debugFatalError("Error during unwrapping optional") - throw DifferentiatorError.unwrappingOptional - } - } -} diff --git a/Pods/Differentiator/Sources/Differentiator/SectionModel.swift b/Pods/Differentiator/Sources/Differentiator/SectionModel.swift deleted file mode 100644 index 1367c2a..0000000 --- a/Pods/Differentiator/Sources/Differentiator/SectionModel.swift +++ /dev/null @@ -1,44 +0,0 @@ -// -// SectionModel.swift -// RxDataSources -// -// Created by Krunoslav Zaher on 6/16/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import Foundation - -public struct SectionModel { - public var model: Section - public var items: [Item] - - public init(model: Section, items: [Item]) { - self.model = model - self.items = items - } -} - -extension SectionModel - : SectionModelType { - public typealias Identity = Section - public typealias Item = ItemType - - public var identity: Section { - return model - } -} - -extension SectionModel - : CustomStringConvertible { - - public var description: String { - return "\(self.model) > \(items)" - } -} - -extension SectionModel { - public init(original: SectionModel, items: [Item]) { - self.model = original.model - self.items = items - } -} diff --git a/Pods/Differentiator/Sources/Differentiator/SectionModelType.swift b/Pods/Differentiator/Sources/Differentiator/SectionModelType.swift deleted file mode 100644 index 1bbfb2d..0000000 --- a/Pods/Differentiator/Sources/Differentiator/SectionModelType.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// SectionModelType.swift -// RxDataSources -// -// Created by Krunoslav Zaher on 6/28/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import Foundation - -public protocol SectionModelType { - associatedtype Item - - var items: [Item] { get } - - init(original: Self, items: [Item]) -} \ No newline at end of file diff --git a/Pods/Differentiator/Sources/Differentiator/Utilities.swift b/Pods/Differentiator/Sources/Differentiator/Utilities.swift deleted file mode 100644 index c884f57..0000000 --- a/Pods/Differentiator/Sources/Differentiator/Utilities.swift +++ /dev/null @@ -1,35 +0,0 @@ -// -// Utilities.swift -// RxDataSources -// -// Created by muukii on 8/2/17. -// Copyright © 2017 kzaher. All rights reserved. -// - -import Foundation - -enum DifferentiatorError : Error { - case unwrappingOptional - case preconditionFailed(message: String) -} - -func precondition(_ condition: Bool, _ message: @autoclosure() -> String) throws -> () { - if condition { - return - } - debugFatalError("Precondition failed") - - throw DifferentiatorError.preconditionFailed(message: message()) -} - -func debugFatalError(_ error: Error) { - debugFatalError("\(error)") -} - -func debugFatalError(_ message: String) { - #if DEBUG - fatalError(message) - #else - print(message) - #endif -} diff --git a/Pods/Kingfisher/LICENSE b/Pods/Kingfisher/LICENSE deleted file mode 100644 index 5023261..0000000 --- a/Pods/Kingfisher/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2018 Wei Wang - -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/Pods/Kingfisher/README.md b/Pods/Kingfisher/README.md deleted file mode 100644 index fa38fc1..0000000 --- a/Pods/Kingfisher/README.md +++ /dev/null @@ -1,116 +0,0 @@ -

- -Kingfisher - -

- -

- - - - - -codebeat badge - - -

- -Kingfisher is a lightweight, pure-Swift library for downloading and caching images from the web. This project is heavily inspired by the popular [SDWebImage](https://github.com/rs/SDWebImage). It provides you a chance to use a pure-Swift alternative in your next app. - -## Features - -- [x] Asynchronous image downloading and caching. -- [x] `URLSession`-based networking. Basic image processors and filters supplied. -- [x] Multiple-layer cache for both memory and disk. -- [x] Cancelable downloading and processing tasks to improve performance. -- [x] Independent components. Use the downloader or caching system separately as you need. -- [x] Prefetching images and showing them from cache later when necessary. -- [x] Extensions for `UIImageView`, `NSImage` and `UIButton` to directly set an image from a URL. -- [x] Built-in transition animation when setting images. -- [x] Customizable placeholder while loading images. -- [x] Extensible image processing and image format support. - -The simplest use-case is setting an image to an image view with the `UIImageView` extension: - -```swift -let url = URL(string: "url_of_your_image") -imageView.kf.setImage(with: url) -``` - -Kingfisher will download the image from `url`, send it to both the memory cache and the disk cache, and display it in `imageView`. When you use the same code later, the image will be retrieved from cache and shown immediately. - -For more examples of using Kingfisher, take a look at the [Cheat Sheet](https://github.com/onevcat/Kingfisher/wiki/Cheat-Sheet). - -## Requirements - -- iOS 8.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+ -- Swift 4 (Kingfisher 4.x), Swift 3 (Kingfisher 3.x) - -Main development of Kingfisher is based on Swift 4. Only critical bug fixes will be applied to Kingfisher 3.x. - -- Kingfisher 4.0 Migration - Kingfisher 3.x should be source compatible to Kingfisher 4. The reason for a major update is that we need to specify the Swift version explicitly for Xcode. All deprecated methods in Kingfisher 3 has been removed, so please ensure you have no warning left before you migrate from Kingfisher 3 to Kingfisher 4. If you have any trouble in migrating, please open an issue to discuss. -- [Kingfisher 3.0 Migration Guide](https://github.com/onevcat/Kingfisher/wiki/Kingfisher-3.0-Migration-Guide) - If you are upgrading to Kingfisher 3.x from an earlier version, please read this for more information. - -## Next Steps - -We prepared a [wiki page](https://github.com/onevcat/Kingfisher/wiki). You can find tons of useful things there. - -* [Installation Guide](https://github.com/onevcat/Kingfisher/wiki/Installation-Guide) - Follow it to integrate Kingfisher into your project. -* [Cheat Sheet](https://github.com/onevcat/Kingfisher/wiki/Cheat-Sheet)- Curious about what Kingfisher could do and how would it look like when used in your project? See this page for useful code snippets. If you are already familiar with Kingfisher, you could also learn new tricks to improve the way you use Kingfisher! -* [API Reference](http://onevcat.github.io/Kingfisher/) - Lastly, please remember to read the full whenever you may need a more detailed reference. - -## Other - -### Future of Kingfisher - -I want to keep Kingfisher lightweight. This framework will focus on providing a simple solution for downloading and caching images. This doesn’t mean the framework can’t be improved. Kingfisher is far from perfect, so necessary and useful updates will be made to make it better. - -### Developments and Tests - -Any contributing and pull requests are warmly welcome. However, before you plan to implement some features or try to fix an uncertain issue, it is recommended to open a discussion first. - -The test images are contained in another project to keep this project repo fast and slim. You could run `./setup.sh` in the root folder of Kingfisher to clone the test images when you need to run the tests target. It would be appreciated if your pull requests could build and with all tests green. :) - -### About the logo - -The logo of Kingfisher is inspired by [Tangram (七巧板)](http://en.wikipedia.org/wiki/Tangram), a dissection puzzle consisting of seven flat shapes from China. I believe she's a kingfisher bird instead of a swift, but someone insists that she is a pigeon. I guess I should give her a name. Hi, guys, do you have any suggestions? - -### Contact - -Follow and contact me on [Twitter](http://twitter.com/onevcat) or [Sina Weibo](http://weibo.com/onevcat). If you find an issue, just [open a ticket](https://github.com/onevcat/Kingfisher/issues/new). Pull requests are warmly welcome as well. - -## Contributors - -This project exists thanks to all the people who contribute. [[Contribute]](https://github.com/onevcat/Kingfisher/blob/master/CONTRIBUTING.md). - - - -## Backers - -Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/kingfisher#backer)] - - - - -## Sponsors - -Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/kingfisher#sponsor)] - - - - - - - - - - - - - - -### License - -Kingfisher is released under the MIT license. See LICENSE for details. - - diff --git a/Pods/Kingfisher/Sources/AnimatedImageView.swift b/Pods/Kingfisher/Sources/AnimatedImageView.swift deleted file mode 100755 index 340adc3..0000000 --- a/Pods/Kingfisher/Sources/AnimatedImageView.swift +++ /dev/null @@ -1,503 +0,0 @@ -// -// AnimatableImageView.swift -// Kingfisher -// -// Created by bl4ckra1sond3tre on 4/22/16. -// -// The AnimatableImageView, AnimatedFrame and Animator is a modified version of -// some classes from kaishin's Gifu project (https://github.com/kaishin/Gifu) -// -// The MIT License (MIT) -// -// Copyright (c) 2018 Reda Lemeden. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -// the Software, and to permit persons to whom the Software is furnished to do so, -// subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -// The name and characters used in the demo of this software are property of their -// respective owners. - -import UIKit -import ImageIO - -/// Protocol of `AnimatedImageView`. -public protocol AnimatedImageViewDelegate: AnyObject { - /** - Called after the animatedImageView has finished each animation loop. - - - parameter imageView: The animatedImageView that is being animated. - - parameter count: The looped count. - */ - func animatedImageView(_ imageView: AnimatedImageView, didPlayAnimationLoops count: UInt) - - /** - Called after the animatedImageView has reached the max repeat count. - - - parameter imageView: The animatedImageView that is being animated. - */ - func animatedImageViewDidFinishAnimating(_ imageView: AnimatedImageView) -} - -extension AnimatedImageViewDelegate { - public func animatedImageView(_ imageView: AnimatedImageView, didPlayAnimationLoops count: UInt) {} - public func animatedImageViewDidFinishAnimating(_ imageView: AnimatedImageView) {} -} - -/// `AnimatedImageView` is a subclass of `UIImageView` for displaying animated image. -open class AnimatedImageView: UIImageView { - - /// Proxy object for prevending a reference cycle between the CADDisplayLink and AnimatedImageView. - class TargetProxy { - private weak var target: AnimatedImageView? - - init(target: AnimatedImageView) { - self.target = target - } - - @objc func onScreenUpdate() { - target?.updateFrame() - } - } - - /// Enumeration that specifies repeat count of GIF - public enum RepeatCount: Equatable { - case once - case finite(count: UInt) - case infinite - - public static func ==(lhs: RepeatCount, rhs: RepeatCount) -> Bool { - switch (lhs, rhs) { - case let (.finite(l), .finite(r)): - return l == r - case (.once, .once), - (.infinite, .infinite): - return true - case (.once, .finite(let count)), - (.finite(let count), .once): - return count == 1 - case (.once, _), - (.infinite, _), - (.finite, _): - return false - } - } - } - - // MARK: - Public property - /// Whether automatically play the animation when the view become visible. Default is true. - public var autoPlayAnimatedImage = true - - /// The size of the frame cache. - public var framePreloadCount = 10 - - /// Specifies whether the GIF frames should be pre-scaled to save memory. Default is true. - public var needsPrescaling = true - - /// The animation timer's run loop mode. Default is `NSRunLoopCommonModes`. Set this property to `NSDefaultRunLoopMode` will make the animation pause during UIScrollView scrolling. - #if swift(>=4.2) - public var runLoopMode = RunLoop.Mode.common { - willSet { - if runLoopMode == newValue { - return - } else { - stopAnimating() - displayLink.remove(from: .main, forMode: runLoopMode) - displayLink.add(to: .main, forMode: newValue) - startAnimating() - } - } - } - #else - public var runLoopMode = RunLoopMode.commonModes { - willSet { - if runLoopMode == newValue { - return - } else { - stopAnimating() - displayLink.remove(from: .main, forMode: runLoopMode) - displayLink.add(to: .main, forMode: newValue) - startAnimating() - } - } - } - #endif - - /// The repeat count. - public var repeatCount = RepeatCount.infinite { - didSet { - if oldValue != repeatCount { - reset() - setNeedsDisplay() - layer.setNeedsDisplay() - } - } - } - - /// Delegate of this `AnimatedImageView` object. See `AnimatedImageViewDelegate` protocol for more. - public weak var delegate: AnimatedImageViewDelegate? - - // MARK: - Private property - /// `Animator` instance that holds the frames of a specific image in memory. - private var animator: Animator? - - /// A flag to avoid invalidating the displayLink on deinit if it was never created, because displayLink is so lazy. :D - private var isDisplayLinkInitialized: Bool = false - - /// A display link that keeps calling the `updateFrame` method on every screen refresh. - private lazy var displayLink: CADisplayLink = { - self.isDisplayLinkInitialized = true - let displayLink = CADisplayLink(target: TargetProxy(target: self), selector: #selector(TargetProxy.onScreenUpdate)) - displayLink.add(to: .main, forMode: self.runLoopMode) - displayLink.isPaused = true - return displayLink - }() - - // MARK: - Override - override open var image: Image? { - didSet { - if image != oldValue { - reset() - } - setNeedsDisplay() - layer.setNeedsDisplay() - } - } - - deinit { - if isDisplayLinkInitialized { - displayLink.invalidate() - } - } - - override open var isAnimating: Bool { - if isDisplayLinkInitialized { - return !displayLink.isPaused - } else { - return super.isAnimating - } - } - - /// Starts the animation. - override open func startAnimating() { - if self.isAnimating { - return - } else { - if animator?.isReachMaxRepeatCount ?? false { - return - } - - displayLink.isPaused = false - } - } - - /// Stops the animation. - override open func stopAnimating() { - super.stopAnimating() - if isDisplayLinkInitialized { - displayLink.isPaused = true - } - } - - override open func display(_ layer: CALayer) { - if let currentFrame = animator?.currentFrame { - layer.contents = currentFrame.cgImage - } else { - layer.contents = image?.cgImage - } - } - - override open func didMoveToWindow() { - super.didMoveToWindow() - didMove() - } - - override open func didMoveToSuperview() { - super.didMoveToSuperview() - didMove() - } - - // This is for back compatibility that using regular UIImageView to show animated image. - override func shouldPreloadAllAnimation() -> Bool { - return false - } - - // MARK: - Private method - /// Reset the animator. - private func reset() { - animator = nil - if let imageSource = image?.kf.imageSource?.imageRef { - animator = Animator(imageSource: imageSource, - contentMode: contentMode, - size: bounds.size, - framePreloadCount: framePreloadCount, - repeatCount: repeatCount) - animator?.delegate = self - animator?.needsPrescaling = needsPrescaling - animator?.prepareFramesAsynchronously() - } - didMove() - } - - private func didMove() { - if autoPlayAnimatedImage && animator != nil { - if let _ = superview, let _ = window { - startAnimating() - } else { - stopAnimating() - } - } - } - - /// Update the current frame with the displayLink duration. - private func updateFrame() { - let duration: CFTimeInterval - - // CA based display link is opt-out from ProMotion by default. - // So the duration and its FPS might not match. - // See [#718](https://github.com/onevcat/Kingfisher/issues/718) - if #available(iOS 10.0, tvOS 10.0, *) { - // By setting CADisableMinimumFrameDuration to YES in Info.plist may - // cause the preferredFramesPerSecond being 0 - if displayLink.preferredFramesPerSecond == 0 { - duration = displayLink.duration - } else { - // Some devices (like iPad Pro 10.5) will have a different FPS. - duration = 1.0 / Double(displayLink.preferredFramesPerSecond) - } - } else { - duration = displayLink.duration - } - - if animator?.updateCurrentFrame(duration: duration) ?? false { - layer.setNeedsDisplay() - - if animator?.isReachMaxRepeatCount ?? false { - stopAnimating() - delegate?.animatedImageViewDidFinishAnimating(self) - } - } - } -} - -extension AnimatedImageView: AnimatorDelegate { - func animator(_ animator: Animator, didPlayAnimationLoops count: UInt) { - delegate?.animatedImageView(self, didPlayAnimationLoops: count) - } -} - -/// Keeps a reference to an `Image` instance and its duration as a GIF frame. -struct AnimatedFrame { - var image: Image? - let duration: TimeInterval - - static let null: AnimatedFrame = AnimatedFrame(image: .none, duration: 0.0) -} - -protocol AnimatorDelegate: AnyObject { - func animator(_ animator: Animator, didPlayAnimationLoops count: UInt) -} - -// MARK: - Animator -class Animator { - // MARK: Private property - fileprivate let size: CGSize - fileprivate let maxFrameCount: Int - fileprivate let imageSource: CGImageSource - fileprivate let maxRepeatCount: AnimatedImageView.RepeatCount - - fileprivate var animatedFrames = [AnimatedFrame]() - fileprivate let maxTimeStep: TimeInterval = 1.0 - fileprivate var frameCount = 0 - fileprivate var currentFrameIndex = 0 - fileprivate var currentFrameIndexInBuffer = 0 - fileprivate var currentPreloadIndex = 0 - fileprivate var timeSinceLastFrameChange: TimeInterval = 0.0 - fileprivate var needsPrescaling = true - fileprivate var currentRepeatCount: UInt = 0 - fileprivate weak var delegate: AnimatorDelegate? - - /// Loop count of animated image. - private var loopCount = 0 - - var currentFrame: UIImage? { - return frame(at: currentFrameIndexInBuffer) - } - - var isReachMaxRepeatCount: Bool { - switch maxRepeatCount { - case .once: - return currentRepeatCount >= 1 - case .finite(let maxCount): - return currentRepeatCount >= maxCount - case .infinite: - return false - } - } - - var contentMode = UIView.ContentMode.scaleToFill - - private lazy var preloadQueue: DispatchQueue = { - return DispatchQueue(label: "com.onevcat.Kingfisher.Animator.preloadQueue") - }() - - /** - Init an animator with image source reference. - - - parameter imageSource: The reference of animated image. - - parameter contentMode: Content mode of AnimatedImageView. - - parameter size: Size of AnimatedImageView. - - parameter framePreloadCount: Frame cache size. - - - returns: The animator object. - */ - init(imageSource source: CGImageSource, - contentMode mode: UIView.ContentMode, - size: CGSize, - framePreloadCount count: Int, - repeatCount: AnimatedImageView.RepeatCount) { - self.imageSource = source - self.contentMode = mode - self.size = size - self.maxFrameCount = count - self.maxRepeatCount = repeatCount - } - - func frame(at index: Int) -> Image? { - return animatedFrames[safe: index]?.image - } - - func prepareFramesAsynchronously() { - preloadQueue.async { [weak self] in - self?.prepareFrames() - } - } - - private func prepareFrames() { - frameCount = CGImageSourceGetCount(imageSource) - - if let properties = CGImageSourceCopyProperties(imageSource, nil), - let gifInfo = (properties as NSDictionary)[kCGImagePropertyGIFDictionary as String] as? NSDictionary, - let loopCount = gifInfo[kCGImagePropertyGIFLoopCount as String] as? Int - { - self.loopCount = loopCount - } - - let frameToProcess = min(frameCount, maxFrameCount) - animatedFrames.reserveCapacity(frameToProcess) - animatedFrames = (0.. AnimatedFrame { - - guard let imageRef = CGImageSourceCreateImageAtIndex(imageSource, index, nil) else { - return AnimatedFrame.null - } - - let defaultGIFFrameDuration = 0.100 - let frameDuration = imageSource.kf.gifProperties(at: index).map { - gifInfo -> Double in - - let unclampedDelayTime = gifInfo[kCGImagePropertyGIFUnclampedDelayTime as String] as Double? - let delayTime = gifInfo[kCGImagePropertyGIFDelayTime as String] as Double? - let duration = unclampedDelayTime ?? delayTime ?? 0.0 - - /** - http://opensource.apple.com/source/WebCore/WebCore-7600.1.25/platform/graphics/cg/ImageSourceCG.cpp - Many annoying ads specify a 0 duration to make an image flash as quickly as - possible. We follow Safari and Firefox's behavior and use a duration of 100 ms - for any frames that specify a duration of <= 10 ms. - See and for more information. - - See also: http://nullsleep.tumblr.com/post/16524517190/animated-gif-minimum-frame-delay-browser. - */ - return duration > 0.011 ? duration : defaultGIFFrameDuration - } ?? defaultGIFFrameDuration - - let image = Image(cgImage: imageRef) - let scaledImage: Image? - - if needsPrescaling { - scaledImage = image.kf.resize(to: size, for: contentMode) - } else { - scaledImage = image - } - - return AnimatedFrame(image: scaledImage, duration: frameDuration) - } - - /** - Updates the current frame if necessary using the frame timer and the duration of each frame in `animatedFrames`. - */ - func updateCurrentFrame(duration: CFTimeInterval) -> Bool { - timeSinceLastFrameChange += min(maxTimeStep, duration) - guard let frameDuration = animatedFrames[safe: currentFrameIndexInBuffer]?.duration, frameDuration <= timeSinceLastFrameChange else { - return false - } - - timeSinceLastFrameChange -= frameDuration - - let lastFrameIndex = currentFrameIndexInBuffer - currentFrameIndexInBuffer += 1 - currentFrameIndexInBuffer = currentFrameIndexInBuffer % animatedFrames.count - - if animatedFrames.count < frameCount { - preloadFrameAsynchronously(at: lastFrameIndex) - } - - currentFrameIndex += 1 - - if currentFrameIndex == frameCount { - currentFrameIndex = 0 - currentRepeatCount += 1 - - delegate?.animator(self, didPlayAnimationLoops: currentRepeatCount) - } - - return true - } - - private func preloadFrameAsynchronously(at index: Int) { - preloadQueue.async { [weak self] in - self?.preloadFrame(at: index) - } - } - - private func preloadFrame(at index: Int) { - animatedFrames[index] = prepareFrame(at: currentPreloadIndex) - currentPreloadIndex += 1 - currentPreloadIndex = currentPreloadIndex % frameCount - } -} - -extension CGImageSource: KingfisherCompatible { } -extension Kingfisher where Base: CGImageSource { - func gifProperties(at index: Int) -> [String: Double]? { - let properties = CGImageSourceCopyPropertiesAtIndex(base, index, nil) as Dictionary? - return properties?[kCGImagePropertyGIFDictionary] as? [String: Double] - } -} - -extension Array { - fileprivate subscript(safe index: Int) -> Element? { - return indices ~= index ? self[index] : nil - } -} - -private func pure(_ value: T) -> [T] { - return [value] -} diff --git a/Pods/Kingfisher/Sources/Box.swift b/Pods/Kingfisher/Sources/Box.swift deleted file mode 100644 index 7714a68..0000000 --- a/Pods/Kingfisher/Sources/Box.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// Box.swift -// Kingfisher -// -// Created by Wei Wang on 2018/3/17. -// Copyright (c) 2018 Wei Wang -// -// 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 - -class Box { - let value: T - - init(_ value: T) { - self.value = value - } -} diff --git a/Pods/Kingfisher/Sources/CacheSerializer.swift b/Pods/Kingfisher/Sources/CacheSerializer.swift deleted file mode 100644 index c3b6a27..0000000 --- a/Pods/Kingfisher/Sources/CacheSerializer.swift +++ /dev/null @@ -1,87 +0,0 @@ -// -// CacheSerializer.swift -// Kingfisher -// -// Created by Wei Wang on 2016/09/02. -// -// Copyright (c) 2018 Wei Wang -// -// 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 - -/// An `CacheSerializer` would be used to convert some data to an image object for -/// retrieving from disk cache and vice versa for storing to disk cache. -public protocol CacheSerializer { - - /// Get the serialized data from a provided image - /// and optional original data for caching to disk. - /// - /// - /// - parameter image: The image needed to be serialized. - /// - parameter original: The original data which is just downloaded. - /// If the image is retrieved from cache instead of - /// downloaded, it will be `nil`. - /// - /// - returns: A data which will be stored to cache, or `nil` when no valid - /// data could be serialized. - func data(with image: Image, original: Data?) -> Data? - - /// Get an image deserialized from provided data. - /// - /// - parameter data: The data from which an image should be deserialized. - /// - parameter options: Options for deserialization. - /// - /// - returns: An image deserialized or `nil` when no valid image - /// could be deserialized. - func image(with data: Data, options: KingfisherOptionsInfo?) -> Image? -} - - -/// `DefaultCacheSerializer` is a basic `CacheSerializer` used in default cache of -/// Kingfisher. It could serialize and deserialize PNG, JEPG and GIF images. For -/// image other than these formats, a normalized `pngRepresentation` will be used. -public struct DefaultCacheSerializer: CacheSerializer { - - public static let `default` = DefaultCacheSerializer() - private init() {} - - public func data(with image: Image, original: Data?) -> Data? { - let imageFormat = original?.kf.imageFormat ?? .unknown - - let data: Data? - switch imageFormat { - case .PNG: data = image.kf.pngRepresentation() - case .JPEG: data = image.kf.jpegRepresentation(compressionQuality: 1.0) - case .GIF: data = image.kf.gifRepresentation() - case .unknown: data = original ?? image.kf.normalized.kf.pngRepresentation() - } - - return data - } - - public func image(with data: Data, options: KingfisherOptionsInfo?) -> Image? { - let options = options ?? KingfisherEmptyOptionsInfo - return Kingfisher.image( - data: data, - scale: options.scaleFactor, - preloadAllAnimationData: options.preloadAllAnimationData, - onlyFirstFrame: options.onlyLoadFirstFrame) - } -} diff --git a/Pods/Kingfisher/Sources/Filter.swift b/Pods/Kingfisher/Sources/Filter.swift deleted file mode 100644 index 0df99e4..0000000 --- a/Pods/Kingfisher/Sources/Filter.swift +++ /dev/null @@ -1,144 +0,0 @@ -// -// Filter.swift -// Kingfisher -// -// Created by Wei Wang on 2016/08/31. -// -// Copyright (c) 2018 Wei Wang -// -// 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 CoreImage -import Accelerate - -// Reuse the same CI Context for all CI drawing. -private let ciContext = CIContext(options: nil) - -/// Transformer method which will be used in to provide a `Filter`. -public typealias Transformer = (CIImage) -> CIImage? - -/// Supply a filter to create an `ImageProcessor`. -public protocol CIImageProcessor: ImageProcessor { - var filter: Filter { get } -} - -extension CIImageProcessor { - public func process(item: ImageProcessItem, options: KingfisherOptionsInfo) -> Image? { - switch item { - case .image(let image): - return image.kf.apply(filter) - case .data(_): - return (DefaultImageProcessor.default >> self).process(item: item, options: options) - } - } -} - -/// Wrapper for a `Transformer` of CIImage filters. -public struct Filter { - - let transform: Transformer - - public init(transform: @escaping Transformer) { - self.transform = transform - } - - /// Tint filter which will apply a tint color to images. - public static var tint: (Color) -> Filter = { - color in - Filter(transform: { input in - let colorFilter = CIFilter(name: "CIConstantColorGenerator")! - colorFilter.setValue(CIColor(color: color), forKey: kCIInputColorKey) - - let colorImage = colorFilter.outputImage - let filter = CIFilter(name: "CISourceOverCompositing")! - filter.setValue(colorImage, forKey: kCIInputImageKey) - filter.setValue(input, forKey: kCIInputBackgroundImageKey) - #if swift(>=4.0) - return filter.outputImage?.cropped(to: input.extent) - #else - return filter.outputImage?.cropping(to: input.extent) - #endif - }) - } - - public typealias ColorElement = (CGFloat, CGFloat, CGFloat, CGFloat) - - /// Color control filter which will apply color control change to images. - public static var colorControl: (ColorElement) -> Filter = { arg -> Filter in - let (brightness, contrast, saturation, inputEV) = arg - return Filter(transform: { input in - let paramsColor = [kCIInputBrightnessKey: brightness, - kCIInputContrastKey: contrast, - kCIInputSaturationKey: saturation] - - let paramsExposure = [kCIInputEVKey: inputEV] - #if swift(>=4.0) - let blackAndWhite = input.applyingFilter("CIColorControls", parameters: paramsColor) - return blackAndWhite.applyingFilter("CIExposureAdjust", parameters: paramsExposure) - #else - let blackAndWhite = input.applyingFilter("CIColorControls", withInputParameters: paramsColor) - return blackAndWhite.applyingFilter("CIExposureAdjust", withInputParameters: paramsExposure) - #endif - }) - } -} - -// MARK: - Deprecated -extension Filter { - @available(*, deprecated, message: "Use init(transform:) instead.", renamed: "init(transform:)") - public init(tranform: @escaping Transformer) { - self.transform = tranform - } -} - -extension Kingfisher where Base: Image { - /// Apply a `Filter` containing `CIImage` transformer to `self`. - /// - /// - parameter filter: The filter used to transform `self`. - /// - /// - returns: A transformed image by input `Filter`. - /// - /// - Note: Only CG-based images are supported. If any error happens during transforming, `self` will be returned. - public func apply(_ filter: Filter) -> Image { - - guard let cgImage = cgImage else { - assertionFailure("[Kingfisher] Tint image only works for CG-based image.") - return base - } - - let inputImage = CIImage(cgImage: cgImage) - guard let outputImage = filter.transform(inputImage) else { - return base - } - - guard let result = ciContext.createCGImage(outputImage, from: outputImage.extent) else { - assertionFailure("[Kingfisher] Can not make an tint image within context.") - return base - } - - #if os(macOS) - return fixedForRetinaPixel(cgImage: result, to: size) - #else - return Image(cgImage: result, scale: base.scale, orientation: base.imageOrientation) - #endif - } - -} diff --git a/Pods/Kingfisher/Sources/FormatIndicatedCacheSerializer.swift b/Pods/Kingfisher/Sources/FormatIndicatedCacheSerializer.swift deleted file mode 100644 index 71f5856..0000000 --- a/Pods/Kingfisher/Sources/FormatIndicatedCacheSerializer.swift +++ /dev/null @@ -1,96 +0,0 @@ -// -// RequestModifier.swift -// Kingfisher -// -// Created by Junyu Kuang on 5/28/17. -// -// Copyright (c) 2018 Wei Wang -// -// 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 - -/// `FormatIndicatedCacheSerializer` let you indicate an image format for serialized caches. -/// -/// It could serialize and deserialize PNG, JEPG and GIF images. For -/// image other than these formats, a normalized `pngRepresentation` will be used. -/// -/// Example: -/// ```` -/// private let profileImageSize = CGSize(width: 44, height: 44) -/// -/// private let imageProcessor = RoundCornerImageProcessor( -/// cornerRadius: profileImageSize.width / 2, targetSize: profileImageSize) -/// -/// private let optionsInfo: KingfisherOptionsInfo = [ -/// .cacheSerializer(FormatIndicatedCacheSerializer.png), -/// .backgroundDecode, .processor(imageProcessor), .scaleFactor(UIScreen.main.scale)] -/// -/// extension UIImageView { -/// func setProfileImage(with url: URL) { -/// // Image will always cached as PNG format to preserve alpha channel for round rect. -/// _ = kf.setImage(with: url, options: optionsInfo) -/// } -///} -/// ```` -public struct FormatIndicatedCacheSerializer: CacheSerializer { - - public static let png = FormatIndicatedCacheSerializer(imageFormat: .PNG) - public static let jpeg = FormatIndicatedCacheSerializer(imageFormat: .JPEG) - public static let gif = FormatIndicatedCacheSerializer(imageFormat: .GIF) - - /// The indicated image format. - private let imageFormat: ImageFormat - - public func data(with image: Image, original: Data?) -> Data? { - - func imageData(withFormat imageFormat: ImageFormat) -> Data? { - switch imageFormat { - case .PNG: return image.kf.pngRepresentation() - case .JPEG: return image.kf.jpegRepresentation(compressionQuality: 1.0) - case .GIF: return image.kf.gifRepresentation() - case .unknown: return nil - } - } - - // generate data with indicated image format - if let data = imageData(withFormat: imageFormat) { - return data - } - - let originalFormat = original?.kf.imageFormat ?? .unknown - - // generate data with original image's format - if originalFormat != imageFormat, let data = imageData(withFormat: originalFormat) { - return data - } - - return original ?? image.kf.normalized.kf.pngRepresentation() - } - - /// Same implementation as `DefaultCacheSerializer`. - public func image(with data: Data, options: KingfisherOptionsInfo?) -> Image? { - let options = options ?? KingfisherEmptyOptionsInfo - return Kingfisher.image( - data: data, - scale: options.scaleFactor, - preloadAllAnimationData: options.preloadAllAnimationData, - onlyFirstFrame: options.onlyLoadFirstFrame) - } -} diff --git a/Pods/Kingfisher/Sources/Image.swift b/Pods/Kingfisher/Sources/Image.swift deleted file mode 100755 index 66ae7a6..0000000 --- a/Pods/Kingfisher/Sources/Image.swift +++ /dev/null @@ -1,1045 +0,0 @@ -// -// Image.swift -// Kingfisher -// -// Created by Wei Wang on 16/1/6. -// -// Copyright (c) 2018 Wei Wang -// -// 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. - - -#if os(macOS) -import AppKit -private var imagesKey: Void? -private var durationKey: Void? -#else -import UIKit -import MobileCoreServices -private var imageSourceKey: Void? -#endif -private var animatedImageDataKey: Void? - -import ImageIO -import CoreGraphics - -#if !os(watchOS) -import Accelerate -import CoreImage -#endif - -// MARK: - Image Properties -extension Kingfisher where Base: Image { - fileprivate(set) var animatedImageData: Data? { - get { - return objc_getAssociatedObject(base, &animatedImageDataKey) as? Data - } - set { - objc_setAssociatedObject(base, &animatedImageDataKey, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) - } - } - - #if os(macOS) - var cgImage: CGImage? { - return base.cgImage(forProposedRect: nil, context: nil, hints: nil) - } - - var scale: CGFloat { - return 1.0 - } - - fileprivate(set) var images: [Image]? { - get { - return objc_getAssociatedObject(base, &imagesKey) as? [Image] - } - set { - objc_setAssociatedObject(base, &imagesKey, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) - } - } - - fileprivate(set) var duration: TimeInterval { - get { - return objc_getAssociatedObject(base, &durationKey) as? TimeInterval ?? 0.0 - } - set { - objc_setAssociatedObject(base, &durationKey, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) - } - } - - var size: CGSize { - return base.representations.reduce(CGSize.zero, { size, rep in - return CGSize(width: max(size.width, CGFloat(rep.pixelsWide)), height: max(size.height, CGFloat(rep.pixelsHigh))) - }) - } - - #else - var cgImage: CGImage? { - return base.cgImage - } - - var scale: CGFloat { - return base.scale - } - - var images: [Image]? { - return base.images - } - - var duration: TimeInterval { - return base.duration - } - - fileprivate(set) var imageSource: ImageSource? { - get { - return objc_getAssociatedObject(base, &imageSourceKey) as? ImageSource - } - set { - objc_setAssociatedObject(base, &imageSourceKey, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) - } - } - - var size: CGSize { - return base.size - } - #endif -} - -// MARK: - Image Conversion -extension Kingfisher where Base: Image { - #if os(macOS) - static func image(cgImage: CGImage, scale: CGFloat, refImage: Image?) -> Image { - return Image(cgImage: cgImage, size: CGSize.zero) - } - - /** - Normalize the image. This method does nothing in OS X. - - - returns: The image itself. - */ - public var normalized: Image { - return base - } - - static func animated(with images: [Image], forDuration forDurationduration: TimeInterval) -> Image? { - return nil - } - #else - static func image(cgImage: CGImage, scale: CGFloat, refImage: Image?) -> Image { - if let refImage = refImage { - return Image(cgImage: cgImage, scale: scale, orientation: refImage.imageOrientation) - } else { - return Image(cgImage: cgImage, scale: scale, orientation: .up) - } - } - - /** - Normalize the image. This method will try to redraw an image with orientation and scale considered. - - - returns: The normalized image with orientation set to up and correct scale. - */ - public var normalized: Image { - // prevent animated image (GIF) lose it's images - guard images == nil else { return base } - // No need to do anything if already up - guard base.imageOrientation != .up else { return base } - - return draw(cgImage: nil, to: size) { - base.draw(in: CGRect(origin: CGPoint.zero, size: size)) - } - } - - static func animated(with images: [Image], forDuration duration: TimeInterval) -> Image? { - return .animatedImage(with: images, duration: duration) - } - #endif -} - -// MARK: - Image Representation -extension Kingfisher where Base: Image { - // MARK: - PNG - public func pngRepresentation() -> Data? { - #if os(macOS) - guard let cgimage = cgImage else { - return nil - } - let rep = NSBitmapImageRep(cgImage: cgimage) - return rep.representation(using: .png, properties: [:]) - #else - #if swift(>=4.2) - return base.pngData() - #else - return UIImagePNGRepresentation(base) - #endif - #endif - } - - // MARK: - JPEG - public func jpegRepresentation(compressionQuality: CGFloat) -> Data? { - #if os(macOS) - guard let cgImage = cgImage else { - return nil - } - let rep = NSBitmapImageRep(cgImage: cgImage) - return rep.representation(using:.jpeg, properties: [.compressionFactor: compressionQuality]) - #else - #if swift(>=4.2) - return base.jpegData(compressionQuality: compressionQuality) - #else - return UIImageJPEGRepresentation(base, compressionQuality) - #endif - #endif - } - - // MARK: - GIF - public func gifRepresentation() -> Data? { - return animatedImageData - } -} - -// MARK: - Create images from data -extension Kingfisher where Base: Image { - public static func animated(with data: Data, scale: CGFloat = 1.0, duration: TimeInterval = 0.0, preloadAll: Bool, onlyFirstFrame: Bool = false) -> Image? { - - func decode(from imageSource: CGImageSource, for options: NSDictionary) -> ([Image], TimeInterval)? { - - //Calculates frame duration for a gif frame out of the kCGImagePropertyGIFDictionary dictionary - func frameDuration(from gifInfo: NSDictionary?) -> Double { - let gifDefaultFrameDuration = 0.100 - - guard let gifInfo = gifInfo else { - return gifDefaultFrameDuration - } - - let unclampedDelayTime = gifInfo[kCGImagePropertyGIFUnclampedDelayTime as String] as? NSNumber - let delayTime = gifInfo[kCGImagePropertyGIFDelayTime as String] as? NSNumber - let duration = unclampedDelayTime ?? delayTime - - guard let frameDuration = duration else { return gifDefaultFrameDuration } - - return frameDuration.doubleValue > 0.011 ? frameDuration.doubleValue : gifDefaultFrameDuration - } - - let frameCount = CGImageSourceGetCount(imageSource) - var images = [Image]() - var gifDuration = 0.0 - for i in 0 ..< frameCount { - - guard let imageRef = CGImageSourceCreateImageAtIndex(imageSource, i, options) else { - return nil - } - - if frameCount == 1 { - // Single frame - gifDuration = Double.infinity - } else { - - // Animated GIF - guard let properties = CGImageSourceCopyPropertiesAtIndex(imageSource, i, nil) else { - return nil - } - - let gifInfo = (properties as NSDictionary)[kCGImagePropertyGIFDictionary as String] as? NSDictionary - gifDuration += frameDuration(from: gifInfo) - } - - images.append(Kingfisher.image(cgImage: imageRef, scale: scale, refImage: nil)) - - if onlyFirstFrame { break } - } - - return (images, gifDuration) - } - - // Start of kf.animatedImageWithGIFData - let options: NSDictionary = [kCGImageSourceShouldCache as String: true, kCGImageSourceTypeIdentifierHint as String: kUTTypeGIF] - guard let imageSource = CGImageSourceCreateWithData(data as CFData, options) else { - return nil - } - - #if os(macOS) - guard let (images, gifDuration) = decode(from: imageSource, for: options) else { - return nil - } - let image: Image? - if onlyFirstFrame { - image = images.first - } else { - image = Image(data: data) - image?.kf.images = images - image?.kf.duration = gifDuration - } - image?.kf.animatedImageData = data - return image - #else - - let image: Image? - if preloadAll || onlyFirstFrame { - guard let (images, gifDuration) = decode(from: imageSource, for: options) else { return nil } - image = onlyFirstFrame ? images.first : Kingfisher.animated(with: images, forDuration: duration <= 0.0 ? gifDuration : duration) - } else { - image = Image(data: data, scale: scale) - image?.kf.imageSource = ImageSource(ref: imageSource) - } - image?.kf.animatedImageData = data - return image - #endif - } - - public static func image(data: Data, scale: CGFloat, preloadAllAnimationData: Bool, onlyFirstFrame: Bool) -> Image? { - var image: Image? - - #if os(macOS) - switch data.kf.imageFormat { - case .JPEG: - image = Image(data: data) - case .PNG: - image = Image(data: data) - case .GIF: - image = Kingfisher.animated( - with: data, - scale: scale, - duration: 0.0, - preloadAll: preloadAllAnimationData, - onlyFirstFrame: onlyFirstFrame) - case .unknown: - image = Image(data: data) - } - #else - switch data.kf.imageFormat { - case .JPEG: - image = Image(data: data, scale: scale) - case .PNG: - image = Image(data: data, scale: scale) - case .GIF: - image = Kingfisher.animated( - with: data, - scale: scale, - duration: 0.0, - preloadAll: preloadAllAnimationData, - onlyFirstFrame: onlyFirstFrame) - case .unknown: - image = Image(data: data, scale: scale) - } - #endif - - return image - } -} - -// MARK: - Image Transforming -extension Kingfisher where Base: Image { - // MARK: - Blend Mode - /// Create image based on `self` and apply blend mode. - /// - /// - parameter blendMode: The blend mode of creating image. - /// - parameter alpha: The alpha should be used for image. - /// - parameter backgroundColor: The background color for the output image. - /// - /// - returns: An image with blend mode applied. - /// - /// - Note: This method only works for CG-based image. - #if !os(macOS) - public func image(withBlendMode blendMode: CGBlendMode, - alpha: CGFloat = 1.0, - backgroundColor: Color? = nil) -> Image - { - guard let cgImage = cgImage else { - assertionFailure("[Kingfisher] Blend mode image only works for CG-based image.") - return base - } - - let rect = CGRect(origin: .zero, size: size) - return draw(cgImage: cgImage, to: rect.size) { - if let backgroundColor = backgroundColor { - backgroundColor.setFill() - UIRectFill(rect) - } - - base.draw(in: rect, blendMode: blendMode, alpha: alpha) - } - } - #endif - - // MARK: - Compositing Operation - /// Create image based on `self` and apply compositing operation. - /// - /// - parameter compositingOperation: The compositing operation of creating image. - /// - parameter alpha: The alpha should be used for image. - /// - parameter backgroundColor: The background color for the output image. - /// - /// - returns: An image with compositing operation applied. - /// - /// - Note: This method only works for CG-based image. - #if os(macOS) - public func image(withCompositingOperation compositingOperation: NSCompositingOperation, - alpha: CGFloat = 1.0, - backgroundColor: Color? = nil) -> Image - { - guard let cgImage = cgImage else { - assertionFailure("[Kingfisher] Compositing Operation image only works for CG-based image.") - return base - } - - let rect = CGRect(origin: .zero, size: size) - return draw(cgImage: cgImage, to: rect.size) { - if let backgroundColor = backgroundColor { - backgroundColor.setFill() - rect.fill() - } - - base.draw(in: rect, from: NSRect.zero, operation: compositingOperation, fraction: alpha) - } - } - #endif - - // MARK: - Round Corner - /// Create a round corner image based on `self`. - /// - /// - parameter radius: The round corner radius of creating image. - /// - parameter size: The target size of creating image. - /// - parameter corners: The target corners which will be applied rounding. - /// - parameter backgroundColor: The background color for the output image - /// - /// - returns: An image with round corner of `self`. - /// - /// - Note: This method only works for CG-based image. - public func image(withRoundRadius radius: CGFloat, - fit size: CGSize, - roundingCorners corners: RectCorner = .all, - backgroundColor: Color? = nil) -> Image - { - guard let cgImage = cgImage else { - assertionFailure("[Kingfisher] Round corner image only works for CG-based image.") - return base - } - - let rect = CGRect(origin: CGPoint(x: 0, y: 0), size: size) - return draw(cgImage: cgImage, to: size) { - #if os(macOS) - if let backgroundColor = backgroundColor { - let rectPath = NSBezierPath(rect: rect) - backgroundColor.setFill() - rectPath.fill() - } - - let path = NSBezierPath(roundedRect: rect, byRoundingCorners: corners, radius: radius) - #if swift(>=4.2) - path.windingRule = .evenOdd - #else - path.windingRule = .evenOddWindingRule - #endif - path.addClip() - base.draw(in: rect) - #else - guard let context = UIGraphicsGetCurrentContext() else { - assertionFailure("[Kingfisher] Failed to create CG context for image.") - return - } - - if let backgroundColor = backgroundColor { - let rectPath = UIBezierPath(rect: rect) - backgroundColor.setFill() - rectPath.fill() - } - - let path = UIBezierPath(roundedRect: rect, - byRoundingCorners: corners.uiRectCorner, - cornerRadii: CGSize(width: radius, height: radius)).cgPath - context.addPath(path) - context.clip() - base.draw(in: rect) - #endif - } - } - - #if os(iOS) || os(tvOS) - func resize(to size: CGSize, for contentMode: UIView.ContentMode) -> Image { - switch contentMode { - case .scaleAspectFit: - return resize(to: size, for: .aspectFit) - case .scaleAspectFill: - return resize(to: size, for: .aspectFill) - default: - return resize(to: size) - } - } - #endif - - // MARK: - Resize - /// Resize `self` to an image of new size. - /// - /// - parameter size: The target size. - /// - /// - returns: An image with new size. - /// - /// - Note: This method only works for CG-based image. - public func resize(to size: CGSize) -> Image { - - guard let cgImage = cgImage else { - assertionFailure("[Kingfisher] Resize only works for CG-based image.") - return base - } - - let rect = CGRect(origin: CGPoint(x: 0, y: 0), size: size) - return draw(cgImage: cgImage, to: size) { - #if os(macOS) - base.draw(in: rect, from: NSRect.zero, operation: .copy, fraction: 1.0) - #else - base.draw(in: rect) - #endif - } - } - - /// Resize `self` to an image of new size, respecting the content mode. - /// - /// - Parameters: - /// - size: The target size. - /// - contentMode: Content mode of output image should be. - /// - Returns: An image with new size. - public func resize(to size: CGSize, for contentMode: ContentMode) -> Image { - switch contentMode { - case .aspectFit: - let newSize = self.size.kf.constrained(size) - return resize(to: newSize) - case .aspectFill: - let newSize = self.size.kf.filling(size) - return resize(to: newSize) - default: - return resize(to: size) - } - } - - public func crop(to size: CGSize, anchorOn anchor: CGPoint) -> Image { - guard let cgImage = cgImage else { - assertionFailure("[Kingfisher] Crop only works for CG-based image.") - return base - } - - let rect = self.size.kf.constrainedRect(for: size, anchor: anchor) - guard let image = cgImage.cropping(to: rect.scaled(scale)) else { - assertionFailure("[Kingfisher] Cropping image failed.") - return base - } - - return Kingfisher.image(cgImage: image, scale: scale, refImage: base) - } - - // MARK: - Blur - - /// Create an image with blur effect based on `self`. - /// - /// - parameter radius: The blur radius should be used when creating blur effect. - /// - /// - returns: An image with blur effect applied. - /// - /// - Note: This method only works for CG-based image. - public func blurred(withRadius radius: CGFloat) -> Image { - #if os(watchOS) - return base - #else - guard let cgImage = cgImage else { - assertionFailure("[Kingfisher] Blur only works for CG-based image.") - return base - } - - // http://www.w3.org/TR/SVG/filters.html#feGaussianBlurElement - // let d = floor(s * 3*sqrt(2*pi)/4 + 0.5) - // if d is odd, use three box-blurs of size 'd', centered on the output pixel. - let s = Float(max(radius, 2.0)) - // We will do blur on a resized image (*0.5), so the blur radius could be half as well. - - // Fix the slow compiling time for Swift 3. - // See https://github.com/onevcat/Kingfisher/issues/611 - let pi2 = 2 * Float.pi - let sqrtPi2 = sqrt(pi2) - var targetRadius = floor(s * 3.0 * sqrtPi2 / 4.0 + 0.5) - - if targetRadius.isEven { - targetRadius += 1 - } - - let iterations: Int - if radius < 0.5 { - iterations = 1 - } else if radius < 1.5 { - iterations = 2 - } else { - iterations = 3 - } - - let w = Int(size.width) - let h = Int(size.height) - let rowBytes = Int(CGFloat(cgImage.bytesPerRow)) - - func createEffectBuffer(_ context: CGContext) -> vImage_Buffer { - let data = context.data - let width = vImagePixelCount(context.width) - let height = vImagePixelCount(context.height) - let rowBytes = context.bytesPerRow - - return vImage_Buffer(data: data, height: height, width: width, rowBytes: rowBytes) - } - - guard let context = beginContext(size: size, scale: scale) else { - assertionFailure("[Kingfisher] Failed to create CG context for blurring image.") - return base - } - defer { endContext() } - - context.draw(cgImage, in: CGRect(x: 0, y: 0, width: w, height: h)) - - var inBuffer = createEffectBuffer(context) - - guard let outContext = beginContext(size: size, scale: scale) else { - assertionFailure("[Kingfisher] Failed to create CG context for blurring image.") - return base - } - defer { endContext() } - var outBuffer = createEffectBuffer(outContext) - - for _ in 0 ..< iterations { - vImageBoxConvolve_ARGB8888(&inBuffer, &outBuffer, nil, 0, 0, UInt32(targetRadius), UInt32(targetRadius), nil, vImage_Flags(kvImageEdgeExtend)) - (inBuffer, outBuffer) = (outBuffer, inBuffer) - } - - #if os(macOS) - let result = outContext.makeImage().flatMap { fixedForRetinaPixel(cgImage: $0, to: size) } - #else - let result = outContext.makeImage().flatMap { Image(cgImage: $0, scale: base.scale, orientation: base.imageOrientation) } - #endif - guard let blurredImage = result else { - assertionFailure("[Kingfisher] Can not make an blurred image within this context.") - return base - } - - return blurredImage - #endif - } - - // MARK: - Overlay - - /// Create an image from `self` with a color overlay layer. - /// - /// - parameter color: The color should be use to overlay. - /// - parameter fraction: Fraction of input color. From 0.0 to 1.0. 0.0 means solid color, 1.0 means transparent overlay. - /// - /// - returns: An image with a color overlay applied. - /// - /// - Note: This method only works for CG-based image. - public func overlaying(with color: Color, fraction: CGFloat) -> Image { - - guard let cgImage = cgImage else { - assertionFailure("[Kingfisher] Overlaying only works for CG-based image.") - return base - } - - let rect = CGRect(x: 0, y: 0, width: size.width, height: size.height) - return draw(cgImage: cgImage, to: rect.size) { - #if os(macOS) - base.draw(in: rect) - if fraction > 0 { - color.withAlphaComponent(1 - fraction).set() - rect.fill(using: .sourceAtop) - } - #else - color.set() - UIRectFill(rect) - base.draw(in: rect, blendMode: .destinationIn, alpha: 1.0) - - if fraction > 0 { - base.draw(in: rect, blendMode: .sourceAtop, alpha: fraction) - } - #endif - } - } - - // MARK: - Tint - - /// Create an image from `self` with a color tint. - /// - /// - parameter color: The color should be used to tint `self` - /// - /// - returns: An image with a color tint applied. - public func tinted(with color: Color) -> Image { - #if os(watchOS) - return base - #else - return apply(.tint(color)) - #endif - } - - // MARK: - Color Control - - /// Create an image from `self` with color control. - /// - /// - parameter brightness: Brightness changing to image. - /// - parameter contrast: Contrast changing to image. - /// - parameter saturation: Saturation changing to image. - /// - parameter inputEV: InputEV changing to image. - /// - /// - returns: An image with color control applied. - public func adjusted(brightness: CGFloat, contrast: CGFloat, saturation: CGFloat, inputEV: CGFloat) -> Image { - #if os(watchOS) - return base - #else - return apply(.colorControl((brightness, contrast, saturation, inputEV))) - #endif - } - - /// Return an image with given scale. - /// - /// - Parameter scale: Target scale factor the new image should have. - /// - Returns: The image with target scale. If the base image is already in the scale, `base` will be returned. - public func scaled(to scale: CGFloat) -> Image { - guard scale != self.scale else { - return base - } - guard let cgImage = cgImage else { - assertionFailure("[Kingfisher] Scaling only works for CG-based image.") - return base - } - return Kingfisher.image(cgImage: cgImage, scale: scale, refImage: base) - } -} - -// MARK: - Decode -extension Kingfisher where Base: Image { - public var decoded: Image { - return decoded(scale: scale) - } - - public func decoded(scale: CGFloat) -> Image { - // prevent animated image (GIF) lose it's images - #if os(iOS) - if imageSource != nil { return base } - #else - if images != nil { return base } - #endif - - guard let imageRef = self.cgImage else { - assertionFailure("[Kingfisher] Decoding only works for CG-based image.") - return base - } - - // Draw CGImage in a plain context with scale of 1.0. - guard let context = beginContext(size: CGSize(width: imageRef.width, height: imageRef.height), scale: 1.0) else { - assertionFailure("[Kingfisher] Decoding fails to create a valid context.") - return base - } - - defer { endContext() } - - let rect = CGRect(x: 0, y: 0, width: CGFloat(imageRef.width), height: CGFloat(imageRef.height)) - context.draw(imageRef, in: rect) - let decompressedImageRef = context.makeImage() - return Kingfisher.image(cgImage: decompressedImageRef!, scale: scale, refImage: base) - } -} - -/// Reference the source image reference -final class ImageSource { - var imageRef: CGImageSource? - init(ref: CGImageSource) { - self.imageRef = ref - } -} - -// MARK: - Image format -private struct ImageHeaderData { - static var PNG: [UInt8] = [0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A] - static var JPEG_SOI: [UInt8] = [0xFF, 0xD8] - static var JPEG_IF: [UInt8] = [0xFF] - static var GIF: [UInt8] = [0x47, 0x49, 0x46] -} - -public enum ImageFormat { - case unknown, PNG, JPEG, GIF -} - - -// MARK: - Misc Helpers -public struct DataProxy { - fileprivate let base: Data - init(proxy: Data) { - base = proxy - } -} - -extension Data: KingfisherCompatible { - public typealias CompatibleType = DataProxy - public var kf: DataProxy { - return DataProxy(proxy: self) - } -} - -extension DataProxy { - public var imageFormat: ImageFormat { - var buffer = [UInt8](repeating: 0, count: 8) - (base as NSData).getBytes(&buffer, length: 8) - if buffer == ImageHeaderData.PNG { - return .PNG - } else if buffer[0] == ImageHeaderData.JPEG_SOI[0] && - buffer[1] == ImageHeaderData.JPEG_SOI[1] && - buffer[2] == ImageHeaderData.JPEG_IF[0] - { - return .JPEG - } else if buffer[0] == ImageHeaderData.GIF[0] && - buffer[1] == ImageHeaderData.GIF[1] && - buffer[2] == ImageHeaderData.GIF[2] - { - return .GIF - } - - return .unknown - } -} - -public struct CGSizeProxy { - fileprivate let base: CGSize - init(proxy: CGSize) { - base = proxy - } -} - -extension CGSize: KingfisherCompatible { - public typealias CompatibleType = CGSizeProxy - public var kf: CGSizeProxy { - return CGSizeProxy(proxy: self) - } -} - -extension CGSizeProxy { - - public func resize(to size: CGSize, for contentMode: ContentMode) -> CGSize { - switch contentMode { - case .aspectFit: - return constrained(size) - case .aspectFill: - return filling(size) - default: - return self.base - } - } - - public func constrained(_ size: CGSize) -> CGSize { - let aspectWidth = round(aspectRatio * size.height) - let aspectHeight = round(size.width / aspectRatio) - - return aspectWidth > size.width ? CGSize(width: size.width, height: aspectHeight) : CGSize(width: aspectWidth, height: size.height) - } - - public func filling(_ size: CGSize) -> CGSize { - let aspectWidth = round(aspectRatio * size.height) - let aspectHeight = round(size.width / aspectRatio) - - return aspectWidth < size.width ? CGSize(width: size.width, height: aspectHeight) : CGSize(width: aspectWidth, height: size.height) - } - - private var aspectRatio: CGFloat { - return base.height == 0.0 ? 1.0 : base.width / base.height - } - - - public func constrainedRect(for size: CGSize, anchor: CGPoint) -> CGRect { - - let unifiedAnchor = CGPoint(x: anchor.x.clamped(to: 0.0...1.0), - y: anchor.y.clamped(to: 0.0...1.0)) - - let x = unifiedAnchor.x * base.width - unifiedAnchor.x * size.width - let y = unifiedAnchor.y * base.height - unifiedAnchor.y * size.height - let r = CGRect(x: x, y: y, width: size.width, height: size.height) - - let ori = CGRect(origin: CGPoint.zero, size: base) - return ori.intersection(r) - } -} - -extension CGRect { - func scaled(_ scale: CGFloat) -> CGRect { - return CGRect(x: origin.x * scale, y: origin.y * scale, - width: size.width * scale, height: size.height * scale) - } -} - -extension Comparable { - func clamped(to limits: ClosedRange) -> Self { - return min(max(self, limits.lowerBound), limits.upperBound) - } -} - -extension Kingfisher where Base: Image { - - func beginContext(size: CGSize, scale: CGFloat) -> CGContext? { - #if os(macOS) - guard let rep = NSBitmapImageRep( - bitmapDataPlanes: nil, - pixelsWide: Int(size.width), - pixelsHigh: Int(size.height), - bitsPerSample: cgImage?.bitsPerComponent ?? 8, - samplesPerPixel: 4, - hasAlpha: true, - isPlanar: false, - colorSpaceName: .calibratedRGB, - bytesPerRow: 0, - bitsPerPixel: 0) else - { - assertionFailure("[Kingfisher] Image representation cannot be created.") - return nil - } - rep.size = size - NSGraphicsContext.saveGraphicsState() - guard let context = NSGraphicsContext(bitmapImageRep: rep) else { - assertionFailure("[Kingfisher] Image contenxt cannot be created.") - return nil - } - - NSGraphicsContext.current = context - return context.cgContext - #else - UIGraphicsBeginImageContextWithOptions(size, false, scale) - let context = UIGraphicsGetCurrentContext() - context?.scaleBy(x: 1.0, y: -1.0) - context?.translateBy(x: 0, y: -size.height) - return context - #endif - } - - func endContext() { - #if os(macOS) - NSGraphicsContext.restoreGraphicsState() - #else - UIGraphicsEndImageContext() - #endif - } - - func draw(cgImage: CGImage?, to size: CGSize, draw: ()->()) -> Image { - #if os(macOS) - guard let rep = NSBitmapImageRep( - bitmapDataPlanes: nil, - pixelsWide: Int(size.width), - pixelsHigh: Int(size.height), - bitsPerSample: cgImage?.bitsPerComponent ?? 8, - samplesPerPixel: 4, - hasAlpha: true, - isPlanar: false, - colorSpaceName: .calibratedRGB, - bytesPerRow: 0, - bitsPerPixel: 0) else - { - assertionFailure("[Kingfisher] Image representation cannot be created.") - return base - } - rep.size = size - - NSGraphicsContext.saveGraphicsState() - - let context = NSGraphicsContext(bitmapImageRep: rep) - NSGraphicsContext.current = context - draw() - NSGraphicsContext.restoreGraphicsState() - - let outputImage = Image(size: size) - outputImage.addRepresentation(rep) - return outputImage - #else - - UIGraphicsBeginImageContextWithOptions(size, false, scale) - defer { UIGraphicsEndImageContext() } - draw() - return UIGraphicsGetImageFromCurrentImageContext() ?? base - - #endif - } - - #if os(macOS) - func fixedForRetinaPixel(cgImage: CGImage, to size: CGSize) -> Image { - - let image = Image(cgImage: cgImage, size: base.size) - let rect = CGRect(origin: CGPoint(x: 0, y: 0), size: size) - - return draw(cgImage: cgImage, to: self.size) { - image.draw(in: rect, from: NSRect.zero, operation: .copy, fraction: 1.0) - } - } - #endif -} - -extension Float { - var isEven: Bool { - return truncatingRemainder(dividingBy: 2.0) == 0 - } -} - -#if os(macOS) -extension NSBezierPath { - convenience init(roundedRect rect: NSRect, topLeftRadius: CGFloat, topRightRadius: CGFloat, - bottomLeftRadius: CGFloat, bottomRightRadius: CGFloat) - { - self.init() - - let maxCorner = min(rect.width, rect.height) / 2 - - let radiusTopLeft = min(maxCorner, max(0, topLeftRadius)) - let radiusTopRight = min(maxCorner, max(0, topRightRadius)) - let radiusBottomLeft = min(maxCorner, max(0, bottomLeftRadius)) - let radiusBottomRight = min(maxCorner, max(0, bottomRightRadius)) - - guard !NSIsEmptyRect(rect) else { - return - } - - let topLeft = NSMakePoint(NSMinX(rect), NSMaxY(rect)); - let topRight = NSMakePoint(NSMaxX(rect), NSMaxY(rect)); - let bottomRight = NSMakePoint(NSMaxX(rect), NSMinY(rect)); - - move(to: NSMakePoint(NSMidX(rect), NSMaxY(rect))) - appendArc(from: topLeft, to: rect.origin, radius: radiusTopLeft) - appendArc(from: rect.origin, to: bottomRight, radius: radiusBottomLeft) - appendArc(from: bottomRight, to: topRight, radius: radiusBottomRight) - appendArc(from: topRight, to: topLeft, radius: radiusTopRight) - close() - } - - convenience init(roundedRect rect: NSRect, byRoundingCorners corners: RectCorner, radius: CGFloat) { - let radiusTopLeft = corners.contains(.topLeft) ? radius : 0 - let radiusTopRight = corners.contains(.topRight) ? radius : 0 - let radiusBottomLeft = corners.contains(.bottomLeft) ? radius : 0 - let radiusBottomRight = corners.contains(.bottomRight) ? radius : 0 - - self.init(roundedRect: rect, topLeftRadius: radiusTopLeft, topRightRadius: radiusTopRight, - bottomLeftRadius: radiusBottomLeft, bottomRightRadius: radiusBottomRight) - } -} - -#else -extension RectCorner { - var uiRectCorner: UIRectCorner { - - var result: UIRectCorner = [] - - if self.contains(.topLeft) { result.insert(.topLeft) } - if self.contains(.topRight) { result.insert(.topRight) } - if self.contains(.bottomLeft) { result.insert(.bottomLeft) } - if self.contains(.bottomRight) { result.insert(.bottomRight) } - - return result - } -} -#endif - diff --git a/Pods/Kingfisher/Sources/ImageCache.swift b/Pods/Kingfisher/Sources/ImageCache.swift deleted file mode 100755 index 74b5dec..0000000 --- a/Pods/Kingfisher/Sources/ImageCache.swift +++ /dev/null @@ -1,742 +0,0 @@ -// -// ImageCache.swift -// Kingfisher -// -// Created by Wei Wang on 15/4/6. -// -// Copyright (c) 2018 Wei Wang -// -// 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. - -#if os(macOS) -import AppKit -#else -import UIKit -#endif - -extension Notification.Name { - /** - This notification will be sent when the disk cache got cleaned either there are cached files expired or the total size exceeding the max allowed size. The manually invoking of `clearDiskCache` method will not trigger this notification. - - The `object` of this notification is the `ImageCache` object which sends the notification. - - A list of removed hashes (files) could be retrieved by accessing the array under `KingfisherDiskCacheCleanedHashKey` key in `userInfo` of the notification object you received. By checking the array, you could know the hash codes of files are removed. - - The main purpose of this notification is supplying a chance to maintain some necessary information on the cached files. See [this wiki](https://github.com/onevcat/Kingfisher/wiki/How-to-implement-ETag-based-304-(Not-Modified)-handling-in-Kingfisher) for a use case on it. - */ - public static let KingfisherDidCleanDiskCache = Notification.Name.init("com.onevcat.Kingfisher.KingfisherDidCleanDiskCache") -} - -/** -Key for array of cleaned hashes in `userInfo` of `KingfisherDidCleanDiskCacheNotification`. -*/ -public let KingfisherDiskCacheCleanedHashKey = "com.onevcat.Kingfisher.cleanedHash" - -/// It represents a task of retrieving image. You can call `cancel` on it to stop the process. -public typealias RetrieveImageDiskTask = DispatchWorkItem - -/** -Cache type of a cached image. - -- None: The image is not cached yet when retrieving it. -- Memory: The image is cached in memory. -- Disk: The image is cached in disk. -*/ -public enum CacheType { - case none, memory, disk - - public var cached: Bool { - switch self { - case .memory, .disk: return true - case .none: return false - } - } -} - -/// `ImageCache` represents both the memory and disk cache system of Kingfisher. -/// While a default image cache object will be used if you prefer the extension methods of Kingfisher, -/// you can create your own cache object and configure it as your need. You could use an `ImageCache` -/// object to manipulate memory and disk cache for Kingfisher. -open class ImageCache { - - //Memory - fileprivate let memoryCache = NSCache() - - /// The largest cache cost of memory cache. The total cost is pixel count of - /// all cached images in memory. - /// Default is unlimited. Memory cache will be purged automatically when a - /// memory warning notification is received. - open var maxMemoryCost: UInt = 0 { - didSet { - self.memoryCache.totalCostLimit = Int(maxMemoryCost) - } - } - - //Disk - fileprivate let ioQueue: DispatchQueue - fileprivate var fileManager: FileManager! - - ///The disk cache location. - public let diskCachePath: String - - /// The default file extension appended to cached files. - open var pathExtension: String? - - /// The longest time duration in second of the cache being stored in disk. - /// Default is 1 week (60 * 60 * 24 * 7 seconds). - /// Setting this to a negative value will make the disk cache never expiring. - open var maxCachePeriodInSecond: TimeInterval = 60 * 60 * 24 * 7 //Cache exists for 1 week - - /// The largest disk size can be taken for the cache. It is the total - /// allocated size of cached files in bytes. - /// Default is no limit. - open var maxDiskCacheSize: UInt = 0 - - fileprivate let processQueue: DispatchQueue - - /// The default cache. - public static let `default` = ImageCache(name: "default") - - /// Closure that defines the disk cache path from a given path and cacheName. - public typealias DiskCachePathClosure = (String?, String) -> String - - /// The default DiskCachePathClosure - public final class func defaultDiskCachePathClosure(path: String?, cacheName: String) -> String { - let dstPath = path ?? NSSearchPathForDirectoriesInDomains(.cachesDirectory, .userDomainMask, true).first! - return (dstPath as NSString).appendingPathComponent(cacheName) - } - - /** - Init method. Passing a name for the cache. It represents a cache folder in the memory and disk. - - - parameter name: Name of the cache. It will be used as the memory cache name and the disk cache folder name - appending to the cache path. This value should not be an empty string. - - parameter path: Optional - Location of cache path on disk. If `nil` is passed in (the default value), - the `.cachesDirectory` in of your app will be used. - - parameter diskCachePathClosure: Closure that takes in an optional initial path string and generates - the final disk cache path. You could use it to fully customize your cache path. - */ - public init(name: String, - path: String? = nil, - diskCachePathClosure: DiskCachePathClosure = ImageCache.defaultDiskCachePathClosure) - { - - if name.isEmpty { - fatalError("[Kingfisher] You should specify a name for the cache. A cache with empty name is not permitted.") - } - - let cacheName = "com.onevcat.Kingfisher.ImageCache.\(name)" - memoryCache.name = cacheName - - diskCachePath = diskCachePathClosure(path, cacheName) - - let ioQueueName = "com.onevcat.Kingfisher.ImageCache.ioQueue.\(name)" - ioQueue = DispatchQueue(label: ioQueueName) - - let processQueueName = "com.onevcat.Kingfisher.ImageCache.processQueue.\(name)" - processQueue = DispatchQueue(label: processQueueName, attributes: .concurrent) - - ioQueue.sync { fileManager = FileManager() } - -#if !os(macOS) && !os(watchOS) - - #if swift(>=4.2) - let memoryNotification = UIApplication.didReceiveMemoryWarningNotification - let terminateNotification = UIApplication.willTerminateNotification - let enterbackgroundNotification = UIApplication.didEnterBackgroundNotification - #else - let memoryNotification = NSNotification.Name.UIApplicationDidReceiveMemoryWarning - let terminateNotification = NSNotification.Name.UIApplicationWillTerminate - let enterbackgroundNotification = NSNotification.Name.UIApplicationDidEnterBackground - #endif - - NotificationCenter.default.addObserver( - self, selector: #selector(clearMemoryCache), name: memoryNotification, object: nil) - NotificationCenter.default.addObserver( - self, selector: #selector(cleanExpiredDiskCache), name: terminateNotification, object: nil) - NotificationCenter.default.addObserver( - self, selector: #selector(backgroundCleanExpiredDiskCache), name: enterbackgroundNotification, object: nil) -#endif - } - - deinit { - NotificationCenter.default.removeObserver(self) - } - - - // MARK: - Store & Remove - - /** - Store an image to cache. It will be saved to both memory and disk. It is an async operation. - - - parameter image: The image to be stored. - - parameter original: The original data of the image. - Kingfisher will use it to check the format of the image and optimize cache size on disk. - If `nil` is supplied, the image data will be saved as a normalized PNG file. - It is strongly suggested to supply it whenever possible, to get a better performance and disk usage. - - parameter key: Key for the image. - - parameter identifier: The identifier of processor used. If you are using a processor for the image, pass the identifier of - processor to it. - This identifier will be used to generate a corresponding key for the combination of `key` and processor. - - parameter toDisk: Whether this image should be cached to disk or not. If false, the image will be only cached in memory. - - parameter completionHandler: Called when store operation completes. - */ - open func store(_ image: Image, - original: Data? = nil, - forKey key: String, - processorIdentifier identifier: String = "", - cacheSerializer serializer: CacheSerializer = DefaultCacheSerializer.default, - toDisk: Bool = true, - completionHandler: (() -> Void)? = nil) - { - - let computedKey = key.computedKey(with: identifier) - memoryCache.setObject(image, forKey: computedKey as NSString, cost: image.kf.imageCost) - - func callHandlerInMainQueue() { - if let handler = completionHandler { - DispatchQueue.main.async { - handler() - } - } - } - - if toDisk { - ioQueue.async { - - if let data = serializer.data(with: image, original: original) { - if !self.fileManager.fileExists(atPath: self.diskCachePath) { - do { - try self.fileManager.createDirectory(atPath: self.diskCachePath, withIntermediateDirectories: true, attributes: nil) - } catch _ {} - } - - self.fileManager.createFile(atPath: self.cachePath(forComputedKey: computedKey), contents: data, attributes: nil) - } - callHandlerInMainQueue() - } - } else { - callHandlerInMainQueue() - } - } - - /** - Remove the image for key for the cache. It will be opted out from both memory and disk. - It is an async operation. - - - parameter key: Key for the image. - - parameter identifier: The identifier of processor used. If you are using a processor for the image, pass the identifier of processor to it. - This identifier will be used to generate a corresponding key for the combination of `key` and processor. - - parameter fromMemory: Whether this image should be removed from memory or not. If false, the image won't be removed from memory. - - parameter fromDisk: Whether this image should be removed from disk or not. If false, the image won't be removed from disk. - - parameter completionHandler: Called when removal operation completes. - */ - open func removeImage(forKey key: String, - processorIdentifier identifier: String = "", - fromMemory: Bool = true, - fromDisk: Bool = true, - completionHandler: (() -> Void)? = nil) - { - let computedKey = key.computedKey(with: identifier) - - if fromMemory { - memoryCache.removeObject(forKey: computedKey as NSString) - } - - func callHandlerInMainQueue() { - if let handler = completionHandler { - DispatchQueue.main.async { - handler() - } - } - } - - if fromDisk { - ioQueue.async{ - do { - try self.fileManager.removeItem(atPath: self.cachePath(forComputedKey: computedKey)) - } catch _ {} - callHandlerInMainQueue() - } - } else { - callHandlerInMainQueue() - } - } - - // MARK: - Get data from cache - - /** - Get an image for a key from memory or disk. - - - parameter key: Key for the image. - - parameter options: Options of retrieving image. If you need to retrieve an image which was - stored with a specified `ImageProcessor`, pass the processor in the option too. - - parameter completionHandler: Called when getting operation completes with image result and cached type of - this image. If there is no such key cached, the image will be `nil`. - - - returns: The retrieving task. - */ - @discardableResult - open func retrieveImage(forKey key: String, - options: KingfisherOptionsInfo?, - completionHandler: ((Image?, CacheType) -> Void)?) -> RetrieveImageDiskTask? - { - // No completion handler. Not start working and early return. - guard let completionHandler = completionHandler else { - return nil - } - - var block: RetrieveImageDiskTask? - let options = options ?? KingfisherEmptyOptionsInfo - let imageModifier = options.imageModifier - - if let image = self.retrieveImageInMemoryCache(forKey: key, options: options) { - options.callbackDispatchQueue.safeAsync { - completionHandler(imageModifier.modify(image), .memory) - } - } else if options.fromMemoryCacheOrRefresh { // Only allows to get images from memory cache. - options.callbackDispatchQueue.safeAsync { - completionHandler(nil, .none) - } - } else { - var sSelf: ImageCache! = self - block = DispatchWorkItem(block: { - // Begin to load image from disk - if let image = sSelf.retrieveImageInDiskCache(forKey: key, options: options) { - if options.backgroundDecode { - sSelf.processQueue.async { - - let result = image.kf.decoded - - sSelf.store(result, - forKey: key, - processorIdentifier: options.processor.identifier, - cacheSerializer: options.cacheSerializer, - toDisk: false, - completionHandler: nil) - options.callbackDispatchQueue.safeAsync { - completionHandler(imageModifier.modify(result), .disk) - sSelf = nil - } - } - } else { - sSelf.store(image, - forKey: key, - processorIdentifier: options.processor.identifier, - cacheSerializer: options.cacheSerializer, - toDisk: false, - completionHandler: nil - ) - options.callbackDispatchQueue.safeAsync { - completionHandler(imageModifier.modify(image), .disk) - sSelf = nil - } - } - } else { - // No image found from either memory or disk - options.callbackDispatchQueue.safeAsync { - completionHandler(nil, .none) - sSelf = nil - } - } - }) - - sSelf.ioQueue.async(execute: block!) - } - - return block - } - - /** - Get an image for a key from memory. - - - parameter key: Key for the image. - - parameter options: Options of retrieving image. If you need to retrieve an image which was - stored with a specified `ImageProcessor`, pass the processor in the option too. - - returns: The image object if it is cached, or `nil` if there is no such key in the cache. - */ - open func retrieveImageInMemoryCache(forKey key: String, options: KingfisherOptionsInfo? = nil) -> Image? { - - let options = options ?? KingfisherEmptyOptionsInfo - let computedKey = key.computedKey(with: options.processor.identifier) - - return memoryCache.object(forKey: computedKey as NSString) as? Image - } - - /** - Get an image for a key from disk. - - - parameter key: Key for the image. - - parameter options: Options of retrieving image. If you need to retrieve an image which was - stored with a specified `ImageProcessor`, pass the processor in the option too. - - - returns: The image object if it is cached, or `nil` if there is no such key in the cache. - */ - open func retrieveImageInDiskCache(forKey key: String, options: KingfisherOptionsInfo? = nil) -> Image? { - - let options = options ?? KingfisherEmptyOptionsInfo - let computedKey = key.computedKey(with: options.processor.identifier) - - return diskImage(forComputedKey: computedKey, serializer: options.cacheSerializer, options: options) - } - - - // MARK: - Clear & Clean - - /** - Clear memory cache. - */ - @objc public func clearMemoryCache() { - memoryCache.removeAllObjects() - } - - /** - Clear disk cache. This is an async operation. - - - parameter completionHander: Called after the operation completes. - */ - open func clearDiskCache(completion handler: (()->())? = nil) { - ioQueue.async { - do { - try self.fileManager.removeItem(atPath: self.diskCachePath) - try self.fileManager.createDirectory(atPath: self.diskCachePath, withIntermediateDirectories: true, attributes: nil) - } catch _ { } - - if let handler = handler { - DispatchQueue.main.async { - handler() - } - } - } - } - - /** - Clean expired disk cache. This is an async operation. - */ - @objc fileprivate func cleanExpiredDiskCache() { - cleanExpiredDiskCache(completion: nil) - } - - /** - Clean expired disk cache. This is an async operation. - - - parameter completionHandler: Called after the operation completes. - */ - open func cleanExpiredDiskCache(completion handler: (()->())? = nil) { - - // Do things in concurrent io queue - ioQueue.async { - - var (URLsToDelete, diskCacheSize, cachedFiles) = self.travelCachedFiles(onlyForCacheSize: false) - - for fileURL in URLsToDelete { - do { - try self.fileManager.removeItem(at: fileURL) - } catch _ { } - } - - if self.maxDiskCacheSize > 0 && diskCacheSize > self.maxDiskCacheSize { - let targetSize = self.maxDiskCacheSize / 2 - - // Sort files by last modify date. We want to clean from the oldest files. - let sortedFiles = cachedFiles.keysSortedByValue { - resourceValue1, resourceValue2 -> Bool in - - if let date1 = resourceValue1.contentAccessDate, - let date2 = resourceValue2.contentAccessDate - { - return date1.compare(date2) == .orderedAscending - } - - // Not valid date information. This should not happen. Just in case. - return true - } - - for fileURL in sortedFiles { - - do { - try self.fileManager.removeItem(at: fileURL) - } catch { } - - URLsToDelete.append(fileURL) - - if let fileSize = cachedFiles[fileURL]?.totalFileAllocatedSize { - diskCacheSize -= UInt(fileSize) - } - - if diskCacheSize < targetSize { - break - } - } - } - - DispatchQueue.main.async { - - if URLsToDelete.count != 0 { - let cleanedHashes = URLsToDelete.map { $0.lastPathComponent } - NotificationCenter.default.post(name: .KingfisherDidCleanDiskCache, object: self, userInfo: [KingfisherDiskCacheCleanedHashKey: cleanedHashes]) - } - - handler?() - } - } - } - - fileprivate func travelCachedFiles(onlyForCacheSize: Bool) -> (urlsToDelete: [URL], diskCacheSize: UInt, cachedFiles: [URL: URLResourceValues]) { - - let diskCacheURL = URL(fileURLWithPath: diskCachePath) - let resourceKeys: Set = [.isDirectoryKey, .contentAccessDateKey, .totalFileAllocatedSizeKey] - let expiredDate: Date? = (maxCachePeriodInSecond < 0) ? nil : Date(timeIntervalSinceNow: -maxCachePeriodInSecond) - - var cachedFiles = [URL: URLResourceValues]() - var urlsToDelete = [URL]() - var diskCacheSize: UInt = 0 - - for fileUrl in (try? fileManager.contentsOfDirectory(at: diskCacheURL, includingPropertiesForKeys: Array(resourceKeys), options: .skipsHiddenFiles)) ?? [] { - - do { - let resourceValues = try fileUrl.resourceValues(forKeys: resourceKeys) - // If it is a Directory. Continue to next file URL. - if resourceValues.isDirectory == true { - continue - } - - // If this file is expired, add it to URLsToDelete - if !onlyForCacheSize, - let expiredDate = expiredDate, - let lastAccessData = resourceValues.contentAccessDate, - (lastAccessData as NSDate).laterDate(expiredDate) == expiredDate - { - urlsToDelete.append(fileUrl) - continue - } - - if let fileSize = resourceValues.totalFileAllocatedSize { - diskCacheSize += UInt(fileSize) - if !onlyForCacheSize { - cachedFiles[fileUrl] = resourceValues - } - } - } catch _ { } - } - - return (urlsToDelete, diskCacheSize, cachedFiles) - } - -#if !os(macOS) && !os(watchOS) - /** - Clean expired disk cache when app in background. This is an async operation. - In most cases, you should not call this method explicitly. - It will be called automatically when `UIApplicationDidEnterBackgroundNotification` received. - */ - @objc public func backgroundCleanExpiredDiskCache() { - // if 'sharedApplication()' is unavailable, then return - guard let sharedApplication = Kingfisher.shared else { return } - - func endBackgroundTask(_ task: inout UIBackgroundTaskIdentifier) { - sharedApplication.endBackgroundTask(task) - #if swift(>=4.2) - task = UIBackgroundTaskIdentifier.invalid - #else - task = UIBackgroundTaskInvalid - #endif - } - - var backgroundTask: UIBackgroundTaskIdentifier! - backgroundTask = sharedApplication.beginBackgroundTask { - endBackgroundTask(&backgroundTask!) - } - - cleanExpiredDiskCache { - endBackgroundTask(&backgroundTask!) - } - } -#endif - - - // MARK: - Check cache status - - /// Cache type for checking whether an image is cached for a key in current cache. - /// - /// - Parameters: - /// - key: Key for the image. - /// - identifier: Processor identifier which used for this image. Default is empty string. - /// - Returns: A `CacheType` instance which indicates the cache status. `.none` means the image is not in cache yet. - open func imageCachedType(forKey key: String, processorIdentifier identifier: String = "") -> CacheType { - let computedKey = key.computedKey(with: identifier) - - if memoryCache.object(forKey: computedKey as NSString) != nil { - return .memory - } - - let filePath = cachePath(forComputedKey: computedKey) - - var diskCached = false - ioQueue.sync { - diskCached = fileManager.fileExists(atPath: filePath) - } - - if diskCached { - return .disk - } - - return .none - } - - /** - Get the hash for the key. This could be used for matching files. - - - parameter key: The key which is used for caching. - - parameter identifier: The identifier of processor used. If you are using a processor for the image, pass the identifier of processor to it. - - - returns: Corresponding hash. - */ - open func hash(forKey key: String, processorIdentifier identifier: String = "") -> String { - let computedKey = key.computedKey(with: identifier) - return cacheFileName(forComputedKey: computedKey) - } - - /** - Calculate the disk size taken by cache. - It is the total allocated size of the cached files in bytes. - - - parameter completionHandler: Called with the calculated size when finishes. - */ - open func calculateDiskCacheSize(completion handler: @escaping ((_ size: UInt) -> Void)) { - ioQueue.async { - let (_, diskCacheSize, _) = self.travelCachedFiles(onlyForCacheSize: true) - DispatchQueue.main.async { - handler(diskCacheSize) - } - } - } - - /** - Get the cache path for the key. - It is useful for projects with UIWebView or anyone that needs access to the local file path. - - i.e. Replace the `` tag in your HTML. - - - Note: This method does not guarantee there is an image already cached in the path. It just returns the path - that the image should be. - You could use `isImageCached(forKey:)` method to check whether the image is cached under that key. - */ - open func cachePath(forKey key: String, processorIdentifier identifier: String = "") -> String { - let computedKey = key.computedKey(with: identifier) - return cachePath(forComputedKey: computedKey) - } - - open func cachePath(forComputedKey key: String) -> String { - let fileName = cacheFileName(forComputedKey: key) - return (diskCachePath as NSString).appendingPathComponent(fileName) - } -} - -// MARK: - Internal Helper -extension ImageCache { - - func diskImage(forComputedKey key: String, serializer: CacheSerializer, options: KingfisherOptionsInfo) -> Image? { - if let data = diskImageData(forComputedKey: key) { - return serializer.image(with: data, options: options) - } else { - return nil - } - } - - func diskImageData(forComputedKey key: String) -> Data? { - let filePath = cachePath(forComputedKey: key) - return (try? Data(contentsOf: URL(fileURLWithPath: filePath))) - } - - func cacheFileName(forComputedKey key: String) -> String { - if let ext = self.pathExtension { - return (key.kf.md5 as NSString).appendingPathExtension(ext)! - } - return key.kf.md5 - } -} - -// MARK: - Deprecated -extension ImageCache { - /** - * Cache result for checking whether an image is cached for a key. - */ - @available(*, deprecated, - message: "CacheCheckResult is deprecated. Use imageCachedType(forKey:processorIdentifier:) API instead.") - public struct CacheCheckResult { - public let cached: Bool - public let cacheType: CacheType? - } - - /** - Check whether an image is cached for a key. - - - parameter key: Key for the image. - - - returns: The check result. - */ - @available(*, deprecated, - message: "Use imageCachedType(forKey:processorIdentifier:) instead. CacheCheckResult.none indicates not being cached.", - renamed: "imageCachedType(forKey:processorIdentifier:)") - open func isImageCached(forKey key: String, processorIdentifier identifier: String = "") -> CacheCheckResult { - let result = imageCachedType(forKey: key, processorIdentifier: identifier) - switch result { - case .memory, .disk: - return CacheCheckResult(cached: true, cacheType: result) - case .none: - return CacheCheckResult(cached: false, cacheType: nil) - } - } -} - -extension Kingfisher where Base: Image { - var imageCost: Int { - return images == nil ? - Int(size.height * size.width * scale * scale) : - Int(size.height * size.width * scale * scale) * images!.count - } -} - -extension Dictionary { - func keysSortedByValue(_ isOrderedBefore: (Value, Value) -> Bool) -> [Key] { - return Array(self).sorted{ isOrderedBefore($0.1, $1.1) }.map{ $0.0 } - } -} - -#if !os(macOS) && !os(watchOS) -// MARK: - For App Extensions -extension UIApplication: KingfisherCompatible { } -extension Kingfisher where Base: UIApplication { - public static var shared: UIApplication? { - let selector = NSSelectorFromString("sharedApplication") - guard Base.responds(to: selector) else { return nil } - return Base.perform(selector).takeUnretainedValue() as? UIApplication - } -} -#endif - -extension String { - func computedKey(with identifier: String) -> String { - if identifier.isEmpty { - return self - } else { - return appending("@\(identifier)") - } - } -} diff --git a/Pods/Kingfisher/Sources/ImageDownloader.swift b/Pods/Kingfisher/Sources/ImageDownloader.swift deleted file mode 100755 index 4a24735..0000000 --- a/Pods/Kingfisher/Sources/ImageDownloader.swift +++ /dev/null @@ -1,677 +0,0 @@ -// -// ImageDownloader.swift -// Kingfisher -// -// Created by Wei Wang on 15/4/6. -// -// Copyright (c) 2018 Wei Wang -// -// 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. - -#if os(macOS) -import AppKit -#else -import UIKit -#endif - -/// Progress update block of downloader. -public typealias ImageDownloaderProgressBlock = DownloadProgressBlock - -/// Completion block of downloader. -public typealias ImageDownloaderCompletionHandler = ((_ image: Image?, _ error: NSError?, _ url: URL?, _ originalData: Data?) -> Void) - -/// Download task. -public struct RetrieveImageDownloadTask { - let internalTask: URLSessionDataTask - - /// Downloader by which this task is initialized. - public private(set) weak var ownerDownloader: ImageDownloader? - - - /// Cancel this download task. It will trigger the completion handler with an NSURLErrorCancelled error. - /// If you want to cancel all downloading tasks, call `cancelAll()` of `ImageDownloader` instance. - public func cancel() { - ownerDownloader?.cancel(self) - } - - /// The original request URL of this download task. - public var url: URL? { - return internalTask.originalRequest?.url - } - - /// The relative priority of this download task. - /// It represents the `priority` property of the internal `NSURLSessionTask` of this download task. - /// The value for it is between 0.0~1.0. Default priority is value of 0.5. - /// See documentation on `priority` of `NSURLSessionTask` for more about it. - public var priority: Float { - get { - return internalTask.priority - } - set { - internalTask.priority = newValue - } - } -} - -///The code of errors which `ImageDownloader` might encountered. -public enum KingfisherError: Int { - - /// badData: The downloaded data is not an image or the data is corrupted. - case badData = 10000 - - /// notModified: The remote server responded a 304 code. No image data downloaded. - case notModified = 10001 - - /// The HTTP status code in response is not valid. If an invalid - /// code error received, you could check the value under `KingfisherErrorStatusCodeKey` - /// in `userInfo` to see the code. - case invalidStatusCode = 10002 - - /// notCached: The image requested is not in cache but .onlyFromCache is activated. - case notCached = 10003 - - /// The URL is invalid. - case invalidURL = 20000 - - /// The downloading task is cancelled before started. - case downloadCancelledBeforeStarting = 30000 -} - -/// Key will be used in the `userInfo` of `.invalidStatusCode` -public let KingfisherErrorStatusCodeKey = "statusCode" - -/// Protocol of `ImageDownloader`. -public protocol ImageDownloaderDelegate: AnyObject { - /** - Called when the `ImageDownloader` object will start downloading an image from specified URL. - - - parameter downloader: The `ImageDownloader` object finishes the downloading. - - parameter url: URL of the original request URL. - - parameter response: The request object for the download process. - */ - func imageDownloader(_ downloader: ImageDownloader, willDownloadImageForURL url: URL, with request: URLRequest?) - - /** - Called when the `ImageDownloader` completes a downloading request with success or failure. - - - parameter downloader: The `ImageDownloader` object finishes the downloading. - - parameter url: URL of the original request URL. - - parameter response: The response object of the downloading process. - - parameter error: The error in case of failure. - */ - func imageDownloader(_ downloader: ImageDownloader, didFinishDownloadingImageForURL url: URL, with response: URLResponse?, error: Error?) - - /** - Called when the `ImageDownloader` object successfully downloaded an image from specified URL. - - - parameter downloader: The `ImageDownloader` object finishes the downloading. - - parameter image: Downloaded image. - - parameter url: URL of the original request URL. - - parameter response: The response object of the downloading process. - */ - func imageDownloader(_ downloader: ImageDownloader, didDownload image: Image, for url: URL, with response: URLResponse?) - - /** - Check if a received HTTP status code is valid or not. - By default, a status code between 200 to 400 (excluded) is considered as valid. - If an invalid code is received, the downloader will raise an .invalidStatusCode error. - It has a `userInfo` which includes this statusCode and localizedString error message. - - - parameter code: The received HTTP status code. - - parameter downloader: The `ImageDownloader` object asking for validate status code. - - - returns: Whether this HTTP status code is valid or not. - - - Note: If the default 200 to 400 valid code does not suit your need, - you can implement this method to change that behavior. - */ - func isValidStatusCode(_ code: Int, for downloader: ImageDownloader) -> Bool - - /** - Called when the `ImageDownloader` object successfully downloaded image data from specified URL. - - - parameter downloader: The `ImageDownloader` object finishes data downloading. - - parameter data: Downloaded data. - - parameter url: URL of the original request URL. - - - returns: The data from which Kingfisher should use to create an image. - - - Note: This callback can be used to preprocess raw image data - before creation of UIImage instance (i.e. decrypting or verification). - */ - func imageDownloader(_ downloader: ImageDownloader, didDownload data: Data, for url: URL) -> Data? -} - -extension ImageDownloaderDelegate { - - public func imageDownloader(_ downloader: ImageDownloader, willDownloadImageForURL url: URL, with request: URLRequest?) {} - - public func imageDownloader(_ downloader: ImageDownloader, didFinishDownloadingImageForURL url: URL, with response: URLResponse?, error: Error?) {} - - public func imageDownloader(_ downloader: ImageDownloader, didDownload image: Image, for url: URL, with response: URLResponse?) {} - - public func isValidStatusCode(_ code: Int, for downloader: ImageDownloader) -> Bool { - return (200..<400).contains(code) - } - public func imageDownloader(_ downloader: ImageDownloader, didDownload data: Data, for url: URL) -> Data? { - return data - } -} - -/// Protocol indicates that an authentication challenge could be handled. -public protocol AuthenticationChallengeResponsable: AnyObject { - /** - Called when an session level authentication challenge is received. - This method provide a chance to handle and response to the authentication challenge before downloading could start. - - - parameter downloader: The downloader which receives this challenge. - - parameter challenge: An object that contains the request for authentication. - - parameter completionHandler: A handler that your delegate method must call. - - - Note: This method is a forward from `URLSessionDelegate.urlSession(:didReceiveChallenge:completionHandler:)`. Please refer to the document of it in `URLSessionDelegate`. - */ - func downloader(_ downloader: ImageDownloader, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) - - /** - Called when an session level authentication challenge is received. - This method provide a chance to handle and response to the authentication challenge before downloading could start. - - - parameter downloader: The downloader which receives this challenge. - - parameter task: The task whose request requires authentication. - - parameter challenge: An object that contains the request for authentication. - - parameter completionHandler: A handler that your delegate method must call. - - - Note: This method is a forward from `URLSessionTaskDelegate.urlSession(:task:didReceiveChallenge:completionHandler:)`. Please refer to the document of it in `URLSessionTaskDelegate`. - */ - func downloader(_ downloader: ImageDownloader, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -} - -extension AuthenticationChallengeResponsable { - - func downloader(_ downloader: ImageDownloader, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) { - - if challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust { - if let trustedHosts = downloader.trustedHosts, trustedHosts.contains(challenge.protectionSpace.host) { - let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!) - completionHandler(.useCredential, credential) - return - } - } - - completionHandler(.performDefaultHandling, nil) - } - - func downloader(_ downloader: ImageDownloader, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) { - - completionHandler(.performDefaultHandling, nil) - } - -} - -/// `ImageDownloader` represents a downloading manager for requesting the image with a URL from server. -open class ImageDownloader { - - class ImageFetchLoad { - var contents = [(callback: CallbackPair, options: KingfisherOptionsInfo)]() - var responseData = NSMutableData() - - var downloadTaskCount = 0 - var downloadTask: RetrieveImageDownloadTask? - var cancelSemaphore: DispatchSemaphore? - } - - // MARK: - Public property - /// The duration before the download is timeout. Default is 15 seconds. - open var downloadTimeout: TimeInterval = 15.0 - - /// A set of trusted hosts when receiving server trust challenges. A challenge with host name contained in this set will be ignored. - /// You can use this set to specify the self-signed site. It only will be used if you don't specify the `authenticationChallengeResponder`. - /// If `authenticationChallengeResponder` is set, this property will be ignored and the implementation of `authenticationChallengeResponder` will be used instead. - open var trustedHosts: Set? - - /// Use this to set supply a configuration for the downloader. By default, NSURLSessionConfiguration.ephemeralSessionConfiguration() will be used. - /// You could change the configuration before a downloading task starts. A configuration without persistent storage for caches is requested for downloader working correctly. - open var sessionConfiguration = URLSessionConfiguration.ephemeral { - didSet { - session?.invalidateAndCancel() - session = URLSession(configuration: sessionConfiguration, delegate: sessionHandler, delegateQueue: nil) - } - } - - /// Whether the download requests should use pipline or not. Default is false. - open var requestsUsePipelining = false - - fileprivate let sessionHandler: ImageDownloaderSessionHandler - fileprivate var session: URLSession? - - /// Delegate of this `ImageDownloader` object. See `ImageDownloaderDelegate` protocol for more. - open weak var delegate: ImageDownloaderDelegate? - - /// A responder for authentication challenge. - /// Downloader will forward the received authentication challenge for the downloading session to this responder. - open weak var authenticationChallengeResponder: AuthenticationChallengeResponsable? - - // MARK: - Internal property - let barrierQueue: DispatchQueue - let processQueue: DispatchQueue - let cancelQueue: DispatchQueue - - typealias CallbackPair = (progressBlock: ImageDownloaderProgressBlock?, completionHandler: ImageDownloaderCompletionHandler?) - - var fetchLoads = [URL: ImageFetchLoad]() - - // MARK: - Public method - /// The default downloader. - public static let `default` = ImageDownloader(name: "default") - - /** - Init a downloader with name. - - - parameter name: The name for the downloader. It should not be empty. - */ - public init(name: String) { - if name.isEmpty { - fatalError("[Kingfisher] You should specify a name for the downloader. A downloader with empty name is not permitted.") - } - - barrierQueue = DispatchQueue(label: "com.onevcat.Kingfisher.ImageDownloader.Barrier.\(name)", attributes: .concurrent) - processQueue = DispatchQueue(label: "com.onevcat.Kingfisher.ImageDownloader.Process.\(name)", attributes: .concurrent) - cancelQueue = DispatchQueue(label: "com.onevcat.Kingfisher.ImageDownloader.Cancel.\(name)") - - sessionHandler = ImageDownloaderSessionHandler(name: name) - - // Provide a default implement for challenge responder. - authenticationChallengeResponder = sessionHandler - session = URLSession(configuration: sessionConfiguration, delegate: sessionHandler, delegateQueue: .main) - } - - deinit { - session?.invalidateAndCancel() - } - - func fetchLoad(for url: URL) -> ImageFetchLoad? { - var fetchLoad: ImageFetchLoad? - barrierQueue.sync(flags: .barrier) { fetchLoad = fetchLoads[url] } - return fetchLoad - } - - /** - Download an image with a URL and option. - - - parameter url: Target URL. - - parameter retrieveImageTask: The task to cooperate with cache. Pass `nil` if you are not trying to use downloader and cache. - - parameter options: The options could control download behavior. See `KingfisherOptionsInfo`. - - parameter progressBlock: Called when the download progress updated. - - parameter completionHandler: Called when the download progress finishes. - - - returns: A downloading task. You could call `cancel` on it to stop the downloading process. - */ - @discardableResult - open func downloadImage(with url: URL, - retrieveImageTask: RetrieveImageTask? = nil, - options: KingfisherOptionsInfo? = nil, - progressBlock: ImageDownloaderProgressBlock? = nil, - completionHandler: ImageDownloaderCompletionHandler? = nil) -> RetrieveImageDownloadTask? - { - if let retrieveImageTask = retrieveImageTask, retrieveImageTask.cancelledBeforeDownloadStarting { - completionHandler?(nil, NSError(domain: KingfisherErrorDomain, code: KingfisherError.downloadCancelledBeforeStarting.rawValue, userInfo: nil), nil, nil) - return nil - } - - let timeout = self.downloadTimeout == 0.0 ? 15.0 : self.downloadTimeout - - // We need to set the URL as the load key. So before setup progress, we need to ask the `requestModifier` for a final URL. - var request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalCacheData, timeoutInterval: timeout) - request.httpShouldUsePipelining = requestsUsePipelining - - if let modifier = options?.modifier { - guard let r = modifier.modified(for: request) else { - completionHandler?(nil, NSError(domain: KingfisherErrorDomain, code: KingfisherError.downloadCancelledBeforeStarting.rawValue, userInfo: nil), nil, nil) - return nil - } - request = r - } - - // There is a possibility that request modifier changed the url to `nil` or empty. - guard let url = request.url, !url.absoluteString.isEmpty else { - completionHandler?(nil, NSError(domain: KingfisherErrorDomain, code: KingfisherError.invalidURL.rawValue, userInfo: nil), nil, nil) - return nil - } - - var downloadTask: RetrieveImageDownloadTask? - setup(progressBlock: progressBlock, with: completionHandler, for: url, options: options) {(session, fetchLoad) -> Void in - if fetchLoad.downloadTask == nil { - let dataTask = session.dataTask(with: request) - - fetchLoad.downloadTask = RetrieveImageDownloadTask(internalTask: dataTask, ownerDownloader: self) - - dataTask.priority = options?.downloadPriority ?? URLSessionTask.defaultPriority - self.delegate?.imageDownloader(self, willDownloadImageForURL: url, with: request) - dataTask.resume() - - // Hold self while the task is executing. - self.sessionHandler.downloadHolder = self - } - - fetchLoad.downloadTaskCount += 1 - downloadTask = fetchLoad.downloadTask - - retrieveImageTask?.downloadTask = downloadTask - } - return downloadTask - } - -} - -// MARK: - Download method -extension ImageDownloader { - - // A single key may have multiple callbacks. Only download once. - func setup(progressBlock: ImageDownloaderProgressBlock?, with completionHandler: ImageDownloaderCompletionHandler?, for url: URL, options: KingfisherOptionsInfo?, started: @escaping ((URLSession, ImageFetchLoad) -> Void)) { - - func prepareFetchLoad() { - barrierQueue.sync(flags: .barrier) { - let loadObjectForURL = fetchLoads[url] ?? ImageFetchLoad() - let callbackPair = (progressBlock: progressBlock, completionHandler: completionHandler) - - loadObjectForURL.contents.append((callbackPair, options ?? KingfisherEmptyOptionsInfo)) - - fetchLoads[url] = loadObjectForURL - - if let session = session { - started(session, loadObjectForURL) - } - } - } - - if let fetchLoad = fetchLoad(for: url), fetchLoad.downloadTaskCount == 0 { - if fetchLoad.cancelSemaphore == nil { - fetchLoad.cancelSemaphore = DispatchSemaphore(value: 0) - } - cancelQueue.async { - _ = fetchLoad.cancelSemaphore?.wait(timeout: .distantFuture) - fetchLoad.cancelSemaphore = nil - prepareFetchLoad() - } - } else { - prepareFetchLoad() - } - } - - private func cancelTaskImpl(_ task: RetrieveImageDownloadTask, fetchLoad: ImageFetchLoad? = nil, ignoreTaskCount: Bool = false) { - - func getFetchLoad(from task: RetrieveImageDownloadTask) -> ImageFetchLoad? { - guard let URL = task.internalTask.originalRequest?.url, - let imageFetchLoad = self.fetchLoads[URL] else - { - return nil - } - return imageFetchLoad - } - - guard let imageFetchLoad = fetchLoad ?? getFetchLoad(from: task) else { - return - } - - imageFetchLoad.downloadTaskCount -= 1 - if ignoreTaskCount || imageFetchLoad.downloadTaskCount == 0 { - task.internalTask.cancel() - } - } - - func cancel(_ task: RetrieveImageDownloadTask) { - barrierQueue.sync(flags: .barrier) { cancelTaskImpl(task) } - } - - /// Cancel all downloading tasks. It will trigger the completion handlers for all not-yet-finished - /// downloading tasks with an NSURLErrorCancelled error. - /// - /// If you need to only cancel a certain task, call `cancel()` on the `RetrieveImageDownloadTask` - /// returned by the downloading methods. - public func cancelAll() { - barrierQueue.sync(flags: .barrier) { - fetchLoads.forEach { v in - let fetchLoad = v.value - guard let task = fetchLoad.downloadTask else { return } - cancelTaskImpl(task, fetchLoad: fetchLoad, ignoreTaskCount: true) - } - } - } -} - -// MARK: - NSURLSessionDataDelegate - -/// Delegate class for `NSURLSessionTaskDelegate`. -/// The session object will hold its delegate until it gets invalidated. -/// If we use `ImageDownloader` as the session delegate, it will not be released. -/// So we need an additional handler to break the retain cycle. -// See https://github.com/onevcat/Kingfisher/issues/235 -final class ImageDownloaderSessionHandler: NSObject, URLSessionDataDelegate, AuthenticationChallengeResponsable { - - private let downloaderQueue: DispatchQueue - - // The holder will keep downloader not released while a data task is being executed. - // It will be set when the task started, and reset when the task finished. - private var _downloadHolder: ImageDownloader? - var downloadHolder: ImageDownloader? { - get { - return downloaderQueue.sync { _downloadHolder } - } - set { - downloaderQueue.sync { _downloadHolder = newValue } - } - } - - init(name: String) { - downloaderQueue = DispatchQueue(label: "com.onevcat.Kingfisher.ImageDownloader.SessionHandler.\(name)") - super.init() - } - - func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) { - - guard let downloader = downloadHolder else { - completionHandler(.cancel) - return - } - - var disposition = URLSession.ResponseDisposition.allow - - if let statusCode = (response as? HTTPURLResponse)?.statusCode, - let url = dataTask.originalRequest?.url, - !(downloader.delegate ?? downloader).isValidStatusCode(statusCode, for: downloader) - { - let error = NSError(domain: KingfisherErrorDomain, - code: KingfisherError.invalidStatusCode.rawValue, - userInfo: [KingfisherErrorStatusCodeKey: statusCode, NSLocalizedDescriptionKey: HTTPURLResponse.localizedString(forStatusCode: statusCode)]) - - // Needs to be called before callCompletionHandlerFailure() because it removes downloadHolder - if let downloader = downloadHolder { - downloader.delegate?.imageDownloader(downloader, didFinishDownloadingImageForURL: url, with: response, error: error) - } - - callCompletionHandlerFailure(error: error, url: url) - disposition = .cancel - } - - completionHandler(disposition) - } - - func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) { - - guard let downloader = downloadHolder else { - return - } - - if let url = dataTask.originalRequest?.url, let fetchLoad = downloader.fetchLoad(for: url) { - fetchLoad.responseData.append(data) - - if let expectedLength = dataTask.response?.expectedContentLength { - for content in fetchLoad.contents { - DispatchQueue.main.async { - content.callback.progressBlock?(Int64(fetchLoad.responseData.length), expectedLength) - } - } - } - } - } - - func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) { - - guard let url = task.originalRequest?.url else { - return - } - - if let downloader = downloadHolder { - downloader.delegate?.imageDownloader(downloader, didFinishDownloadingImageForURL: url, with: task.response, error: error) - } - - guard error == nil else { - callCompletionHandlerFailure(error: error!, url: url) - return - } - - processImage(for: task, url: url) - } - - /** - This method is exposed since the compiler requests. Do not call it. - */ - func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) { - guard let downloader = downloadHolder else { - return - } - - downloader.authenticationChallengeResponder?.downloader(downloader, didReceive: challenge, completionHandler: completionHandler) - } - - func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) { - guard let downloader = downloadHolder else { - return - } - - downloader.authenticationChallengeResponder?.downloader(downloader, task: task, didReceive: challenge, completionHandler: completionHandler) - } - - private func cleanFetchLoad(for url: URL) { - guard let downloader = downloadHolder else { - return - } - - downloader.barrierQueue.sync(flags: .barrier) { - downloader.fetchLoads.removeValue(forKey: url) - if downloader.fetchLoads.isEmpty { - downloadHolder = nil - } - } - } - - private func callCompletionHandlerFailure(error: Error, url: URL) { - guard let downloader = downloadHolder, let fetchLoad = downloader.fetchLoad(for: url) else { - return - } - - // We need to clean the fetch load first, before actually calling completion handler. - cleanFetchLoad(for: url) - - var leftSignal: Int - repeat { - leftSignal = fetchLoad.cancelSemaphore?.signal() ?? 0 - } while leftSignal != 0 - - for content in fetchLoad.contents { - content.options.callbackDispatchQueue.safeAsync { - content.callback.completionHandler?(nil, error as NSError, url, nil) - } - } - } - - private func processImage(for task: URLSessionTask, url: URL) { - - guard let downloader = downloadHolder else { - return - } - - // We are on main queue when receiving this. - downloader.processQueue.async { - - guard let fetchLoad = downloader.fetchLoad(for: url) else { - return - } - - self.cleanFetchLoad(for: url) - - let data: Data? - let fetchedData = fetchLoad.responseData as Data - - if let delegate = downloader.delegate { - data = delegate.imageDownloader(downloader, didDownload: fetchedData, for: url) - } else { - data = fetchedData - } - - // Cache the processed images. So we do not need to re-process the image if using the same processor. - // Key is the identifier of processor. - var imageCache: [String: Image] = [:] - for content in fetchLoad.contents { - - let options = content.options - let completionHandler = content.callback.completionHandler - let callbackQueue = options.callbackDispatchQueue - - let processor = options.processor - var image = imageCache[processor.identifier] - if let data = data, image == nil { - image = processor.process(item: .data(data), options: options) - // Add the processed image to cache. - // If `image` is nil, nothing will happen (since the key is not existing before). - imageCache[processor.identifier] = image - } - - if let image = image { - - downloader.delegate?.imageDownloader(downloader, didDownload: image, for: url, with: task.response) - - let imageModifier = options.imageModifier - let finalImage = imageModifier.modify(image) - - if options.backgroundDecode { - let decodedImage = finalImage.kf.decoded - callbackQueue.safeAsync { completionHandler?(decodedImage, nil, url, data) } - } else { - callbackQueue.safeAsync { completionHandler?(finalImage, nil, url, data) } - } - - } else { - if let res = task.response as? HTTPURLResponse , res.statusCode == 304 { - let notModified = NSError(domain: KingfisherErrorDomain, code: KingfisherError.notModified.rawValue, userInfo: nil) - completionHandler?(nil, notModified, url, nil) - continue - } - - let badData = NSError(domain: KingfisherErrorDomain, code: KingfisherError.badData.rawValue, userInfo: nil) - callbackQueue.safeAsync { completionHandler?(nil, badData, url, nil) } - } - } - } - } -} - -// Placeholder. For retrieving extension methods of ImageDownloaderDelegate -extension ImageDownloader: ImageDownloaderDelegate {} - diff --git a/Pods/Kingfisher/Sources/ImageModifier.swift b/Pods/Kingfisher/Sources/ImageModifier.swift deleted file mode 100644 index ddd7ffc..0000000 --- a/Pods/Kingfisher/Sources/ImageModifier.swift +++ /dev/null @@ -1,191 +0,0 @@ -// -// ImageModifier.swift -// Kingfisher -// -// Created by Ethan Gill on 2017/11/28. -// -// Copyright (c) 2018 Ethan Gill -// -// 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 - -/// An `ImageModifier` can be used to change properties on an Image in between -/// cache serialization and use of the image. -public protocol ImageModifier { - /// Modify an input `Image`. - /// - /// - parameter image: Image which will be modified by `self` - /// - /// - returns: The modified image. - /// - /// - Note: The return value will be unmodified if modifying is not possible on - /// the current platform. - /// - Note: Most modifiers support UIImage or NSImage, but not CGImage. - func modify(_ image: Image) -> Image -} - -extension ImageModifier { - func modify(_ image: Image?) -> Image? { - guard let image = image else { - return nil - } - return modify(image) - } -} - -typealias ModifierImp = ((Image) -> Image) - -fileprivate struct GeneralModifier: ImageModifier { - let identifier: String - let m: ModifierImp - func modify(_ image: Image) -> Image { - return m(image) - } -} - -/// The default modifier. -/// Does nothing and returns the image it was given -public struct DefaultImageModifier: ImageModifier { - - /// A default `DefaultImageModifier` which can be used everywhere. - public static let `default` = DefaultImageModifier() - - /// Initialize a `DefaultImageModifier` - private init() {} - - /// Modify an input `Image`. - /// - /// - parameter image: Image which will be modified by `self` - /// - /// - returns: The modified image. - /// - /// - Note: See documentation of `ImageModifier` protocol for more. - public func modify(_ image: Image) -> Image { - return image - } -} - -/// A custom modifier. -/// Can be initialized with a block to modify images in a custom way -public struct AnyImageModifier: ImageModifier { - - /// A block which modifies images, or returns the original image - /// if modification cannot be performed. - let block: (Image) -> Image - - /// Initialize an `AnyImageModifier` - public init(modify: @escaping (Image) -> Image) { - block = modify - } - - /// Modifies an input `Image` using this `AnyImageModifier`'s `block`. - /// - /// - parameter image: Image which will be modified by `self` - /// - /// - returns: The modified image. - /// - /// - Note: See documentation of `ImageModifier` protocol for more. - public func modify(_ image: Image) -> Image { - return block(image) - } -} - -#if os(iOS) || os(tvOS) || os(watchOS) -import UIKit - -/// Modifier for setting the rendering mode of images. -/// Only UI-based images are supported; if a non-UI image is passed in, the -/// modifier will do nothing. -public struct RenderingModeImageModifier: ImageModifier { - - /// The rendering mode to apply to the image. - public let renderingMode: UIImage.RenderingMode - - /// Initialize a `RenderingModeImageModifier` - /// - /// - parameter renderingMode: The rendering mode to apply to the image. - /// Default is .automatic - public init(renderingMode: UIImage.RenderingMode = .automatic) { - self.renderingMode = renderingMode - } - - /// Modify an input `Image`. - /// - /// - parameter image: Image which will be modified by `self` - /// - /// - returns: The modified image. - /// - /// - Note: See documentation of `ImageModifier` protocol for more. - public func modify(_ image: Image) -> Image { - return image.withRenderingMode(renderingMode) - } -} - -/// Modifier for setting the `flipsForRightToLeftLayoutDirection` property of images. -/// Only UI-based images are supported; if a non-UI image is passed in, the -/// modifier will do nothing. -public struct FlipsForRightToLeftLayoutDirectionImageModifier: ImageModifier { - /// Initialize a `FlipsForRightToLeftLayoutDirectionImageModifier` - /// - /// - Note: On versions of iOS lower than 9.0, the image will be returned - /// unmodified. - public init() {} - - /// Modify an input `Image`. - /// - /// - parameter image: Image which will be modified by `self` - /// - /// - returns: The modified image. - /// - /// - Note: See documentation of `ImageModifier` protocol for more. - public func modify(_ image: Image) -> Image { - if #available(iOS 9.0, *) { - return image.imageFlippedForRightToLeftLayoutDirection() - } else { - return image - } - } -} - -/// Modifier for setting the `alignmentRectInsets` property of images. -/// Only UI-based images are supported; if a non-UI image is passed in, the -/// modifier will do nothing. -public struct AlignmentRectInsetsImageModifier: ImageModifier { - - /// The alignment insets to apply to the image - public let alignmentInsets: UIEdgeInsets - - /// Initialize a `AlignmentRectInsetsImageModifier` - public init(alignmentInsets: UIEdgeInsets) { - self.alignmentInsets = alignmentInsets - } - - /// Modify an input `Image`. - /// - /// - parameter image: Image which will be modified by `self` - /// - /// - returns: The modified image. - /// - /// - Note: See documentation of `ImageModifier` protocol for more. - public func modify(_ image: Image) -> Image { - return image.withAlignmentRectInsets(alignmentInsets) - } -} -#endif diff --git a/Pods/Kingfisher/Sources/ImagePrefetcher.swift b/Pods/Kingfisher/Sources/ImagePrefetcher.swift deleted file mode 100755 index 7a2a24b..0000000 --- a/Pods/Kingfisher/Sources/ImagePrefetcher.swift +++ /dev/null @@ -1,277 +0,0 @@ -// -// ImagePrefetcher.swift -// Kingfisher -// -// Created by Claire Knight on 24/02/2016 -// -// Copyright (c) 2018 Wei Wang -// -// 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. - - -#if os(macOS) - import AppKit -#else - import UIKit -#endif - - -/// Progress update block of prefetcher. -/// -/// - `skippedResources`: An array of resources that are already cached before the prefetching starting. -/// - `failedResources`: An array of resources that fail to be downloaded. It could because of being cancelled while downloading, encountered an error when downloading or the download not being started at all. -/// - `completedResources`: An array of resources that are downloaded and cached successfully. -public typealias PrefetcherProgressBlock = ((_ skippedResources: [Resource], _ failedResources: [Resource], _ completedResources: [Resource]) -> Void) - -/// Completion block of prefetcher. -/// -/// - `skippedResources`: An array of resources that are already cached before the prefetching starting. -/// - `failedResources`: An array of resources that fail to be downloaded. It could because of being cancelled while downloading, encountered an error when downloading or the download not being started at all. -/// - `completedResources`: An array of resources that are downloaded and cached successfully. -public typealias PrefetcherCompletionHandler = ((_ skippedResources: [Resource], _ failedResources: [Resource], _ completedResources: [Resource]) -> Void) - -/// `ImagePrefetcher` represents a downloading manager for requesting many images via URLs, then caching them. -/// This is useful when you know a list of image resources and want to download them before showing. -public class ImagePrefetcher { - - /// The maximum concurrent downloads to use when prefetching images. Default is 5. - public var maxConcurrentDownloads = 5 - - /// The dispatch queue to use for handling resource process so downloading does not occur on the main thread - /// This prevents stuttering when preloading images in a collection view or table view - private var prefetchQueue: DispatchQueue - - private let prefetchResources: [Resource] - private let optionsInfo: KingfisherOptionsInfo - private var progressBlock: PrefetcherProgressBlock? - private var completionHandler: PrefetcherCompletionHandler? - - private var tasks = [URL: RetrieveImageDownloadTask]() - - private var pendingResources: ArraySlice - private var skippedResources = [Resource]() - private var completedResources = [Resource]() - private var failedResources = [Resource]() - - private var stopped = false - - // The created manager used for prefetch. We will use the helper method in manager. - private let manager: KingfisherManager - - private var finished: Bool { - return failedResources.count + skippedResources.count + completedResources.count == prefetchResources.count && self.tasks.isEmpty - } - - /** - Init an image prefetcher with an array of URLs. - - The prefetcher should be initiated with a list of prefetching targets. The URLs list is immutable. - After you get a valid `ImagePrefetcher` object, you could call `start()` on it to begin the prefetching process. - The images already cached will be skipped without downloading again. - - - parameter urls: The URLs which should be prefetched. - - parameter options: A dictionary could control some behaviors. See `KingfisherOptionsInfo` for more. - - parameter progressBlock: Called every time an resource is downloaded, skipped or cancelled. - - parameter completionHandler: Called when the whole prefetching process finished. - - - Note: By default, the `ImageDownloader.defaultDownloader` and `ImageCache.defaultCache` will be used as - the downloader and cache target respectively. You can specify another downloader or cache by using a customized `KingfisherOptionsInfo`. - Both the progress and completion block will be invoked in main thread. The `CallbackDispatchQueue` in `optionsInfo` will be ignored in this method. - */ - public convenience init(urls: [URL], - options: KingfisherOptionsInfo? = nil, - progressBlock: PrefetcherProgressBlock? = nil, - completionHandler: PrefetcherCompletionHandler? = nil) - { - let resources: [Resource] = urls.map { $0 } - self.init(resources: resources, options: options, progressBlock: progressBlock, completionHandler: completionHandler) - } - - /** - Init an image prefetcher with an array of resources. - - The prefetcher should be initiated with a list of prefetching targets. The resources list is immutable. - After you get a valid `ImagePrefetcher` object, you could call `start()` on it to begin the prefetching process. - The images already cached will be skipped without downloading again. - - - parameter resources: The resources which should be prefetched. See `Resource` type for more. - - parameter options: A dictionary could control some behaviors. See `KingfisherOptionsInfo` for more. - - parameter progressBlock: Called every time an resource is downloaded, skipped or cancelled. - - parameter completionHandler: Called when the whole prefetching process finished. - - - Note: By default, the `ImageDownloader.defaultDownloader` and `ImageCache.defaultCache` will be used as - the downloader and cache target respectively. You can specify another downloader or cache by using a customized `KingfisherOptionsInfo`. - Both the progress and completion block will be invoked in main thread. The `CallbackDispatchQueue` in `optionsInfo` will be ignored in this method. - */ - public init(resources: [Resource], - options: KingfisherOptionsInfo? = nil, - progressBlock: PrefetcherProgressBlock? = nil, - completionHandler: PrefetcherCompletionHandler? = nil) - { - prefetchResources = resources - pendingResources = ArraySlice(resources) - - // Set up the dispatch queue that all our work should occur on. - let prefetchQueueName = "com.onevcat.Kingfisher.PrefetchQueue" - prefetchQueue = DispatchQueue(label: prefetchQueueName) - - // We want all callbacks from our prefetch queue, so we should ignore the call back queue in options - var optionsInfoWithoutQueue = options?.removeAllMatchesIgnoringAssociatedValue(.callbackDispatchQueue(nil)) ?? KingfisherEmptyOptionsInfo - - // Add our own callback dispatch queue to make sure all callbacks are coming back in our expected queue - optionsInfoWithoutQueue.append(.callbackDispatchQueue(prefetchQueue)) - - self.optionsInfo = optionsInfoWithoutQueue - - let cache = self.optionsInfo.targetCache ?? .default - let downloader = self.optionsInfo.downloader ?? .default - manager = KingfisherManager(downloader: downloader, cache: cache) - - self.progressBlock = progressBlock - self.completionHandler = completionHandler - } - - /** - Start to download the resources and cache them. This can be useful for background downloading - of assets that are required for later use in an app. This code will not try and update any UI - with the results of the process. - */ - public func start() - { - // Since we want to handle the resources cancellation in the prefetch queue only. - prefetchQueue.async { - - guard !self.stopped else { - assertionFailure("You can not restart the same prefetcher. Try to create a new prefetcher.") - self.handleComplete() - return - } - - guard self.maxConcurrentDownloads > 0 else { - assertionFailure("There should be concurrent downloads value should be at least 1.") - self.handleComplete() - return - } - - guard self.prefetchResources.count > 0 else { - self.handleComplete() - return - } - - let initialConcurentDownloads = min(self.prefetchResources.count, self.maxConcurrentDownloads) - for _ in 0 ..< initialConcurentDownloads { - if let resource = self.pendingResources.popFirst() { - self.startPrefetching(resource) - } - } - } - } - - - /** - Stop current downloading progress, and cancel any future prefetching activity that might be occuring. - */ - public func stop() { - prefetchQueue.async { - if self.finished { return } - self.stopped = true - self.tasks.values.forEach { $0.cancel() } - } - } - - func downloadAndCache(_ resource: Resource) { - - let downloadTaskCompletionHandler: CompletionHandler = { (image, error, _, _) -> Void in - self.tasks.removeValue(forKey: resource.downloadURL) - if let _ = error { - self.failedResources.append(resource) - } else { - self.completedResources.append(resource) - } - - self.reportProgress() - if self.stopped { - if self.tasks.isEmpty { - self.failedResources.append(contentsOf: self.pendingResources) - self.handleComplete() - } - } else { - self.reportCompletionOrStartNext() - } - } - - let downloadTask = manager.downloadAndCacheImage( - with: resource.downloadURL, - forKey: resource.cacheKey, - retrieveImageTask: RetrieveImageTask(), - progressBlock: nil, - completionHandler: downloadTaskCompletionHandler, - options: optionsInfo) - - if let downloadTask = downloadTask { - tasks[resource.downloadURL] = downloadTask - } - } - - func append(cached resource: Resource) { - skippedResources.append(resource) - - reportProgress() - reportCompletionOrStartNext() - } - - func startPrefetching(_ resource: Resource) - { - if optionsInfo.forceRefresh { - downloadAndCache(resource) - } else { - let alreadyInCache = manager.cache.imageCachedType(forKey: resource.cacheKey, - processorIdentifier: optionsInfo.processor.identifier).cached - if alreadyInCache { - append(cached: resource) - } else { - downloadAndCache(resource) - } - } - } - - func reportProgress() { - progressBlock?(skippedResources, failedResources, completedResources) - } - - func reportCompletionOrStartNext() { - prefetchQueue.async { - if let resource = self.pendingResources.popFirst() { - self.startPrefetching(resource) - } else { - guard self.tasks.isEmpty else { return } - self.handleComplete() - } - } - } - - func handleComplete() { - // The completion handler should be called on the main thread - DispatchQueue.main.safeAsync { - self.completionHandler?(self.skippedResources, self.failedResources, self.completedResources) - self.completionHandler = nil - self.progressBlock = nil - } - } -} diff --git a/Pods/Kingfisher/Sources/ImageProcessor.swift b/Pods/Kingfisher/Sources/ImageProcessor.swift deleted file mode 100644 index 9d63cda..0000000 --- a/Pods/Kingfisher/Sources/ImageProcessor.swift +++ /dev/null @@ -1,713 +0,0 @@ -// -// ImageProcessor.swift -// Kingfisher -// -// Created by Wei Wang on 2016/08/26. -// -// Copyright (c) 2018 Wei Wang -// -// 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 -import CoreGraphics - -#if os(macOS) -import AppKit -#endif - -/// The item which could be processed by an `ImageProcessor` -/// -/// - image: Input image -/// - data: Input data -public enum ImageProcessItem { - case image(Image) - case data(Data) -} - -/// An `ImageProcessor` would be used to convert some downloaded data to an image. -public protocol ImageProcessor { - /// Identifier of the processor. It will be used to identify the processor when - /// caching and retrieving an image. You might want to make sure that processors with - /// same properties/functionality have the same identifiers, so correct processed images - /// could be retrieved with proper key. - /// - /// - Note: Do not supply an empty string for a customized processor, which is already taken by - /// the `DefaultImageProcessor`. It is recommended to use a reverse domain name notation - /// string of your own for the identifier. - var identifier: String { get } - - /// Process an input `ImageProcessItem` item to an image for this processor. - /// - /// - parameter item: Input item which will be processed by `self` - /// - parameter options: Options when processing the item. - /// - /// - returns: The processed image. - /// - /// - Note: The return value will be `nil` if processing failed while converting data to image. - /// If input item is already an image and there is any errors in processing, the input - /// image itself will be returned. - /// - Note: Most processor only supports CG-based images. - /// watchOS is not supported for processors containing filter, the input image will be returned directly on watchOS. - func process(item: ImageProcessItem, options: KingfisherOptionsInfo) -> Image? -} - -typealias ProcessorImp = ((ImageProcessItem, KingfisherOptionsInfo) -> Image?) - -public extension ImageProcessor { - - /// Append an `ImageProcessor` to another. The identifier of the new `ImageProcessor` - /// will be "\(self.identifier)|>\(another.identifier)". - /// - /// - parameter another: An `ImageProcessor` you want to append to `self`. - /// - /// - returns: The new `ImageProcessor` will process the image in the order - /// of the two processors concatenated. - public func append(another: ImageProcessor) -> ImageProcessor { - let newIdentifier = identifier.appending("|>\(another.identifier)") - return GeneralProcessor(identifier: newIdentifier) { - item, options in - if let image = self.process(item: item, options: options) { - return another.process(item: .image(image), options: options) - } else { - return nil - } - } - } -} - -func ==(left: ImageProcessor, right: ImageProcessor) -> Bool { - return left.identifier == right.identifier -} - -func !=(left: ImageProcessor, right: ImageProcessor) -> Bool { - return !(left == right) -} - -fileprivate struct GeneralProcessor: ImageProcessor { - let identifier: String - let p: ProcessorImp - func process(item: ImageProcessItem, options: KingfisherOptionsInfo) -> Image? { - return p(item, options) - } -} - -/// The default processor. It convert the input data to a valid image. -/// Images of .PNG, .JPEG and .GIF format are supported. -/// If an image is given, `DefaultImageProcessor` will do nothing on it and just return that image. -public struct DefaultImageProcessor: ImageProcessor { - - /// A default `DefaultImageProcessor` could be used across. - public static let `default` = DefaultImageProcessor() - - /// Identifier of the processor. - /// - Note: See documentation of `ImageProcessor` protocol for more. - public let identifier = "" - - /// Initialize a `DefaultImageProcessor` - public init() {} - - /// Process an input `ImageProcessItem` item to an image for this processor. - /// - /// - parameter item: Input item which will be processed by `self` - /// - parameter options: Options when processing the item. - /// - /// - returns: The processed image. - /// - /// - Note: See documentation of `ImageProcessor` protocol for more. - public func process(item: ImageProcessItem, options: KingfisherOptionsInfo) -> Image? { - switch item { - case .image(let image): - return image.kf.scaled(to: options.scaleFactor) - case .data(let data): - return Kingfisher.image( - data: data, - scale: options.scaleFactor, - preloadAllAnimationData: options.preloadAllAnimationData, - onlyFirstFrame: options.onlyLoadFirstFrame) - } - } -} - -public struct RectCorner: OptionSet { - public let rawValue: Int - public static let topLeft = RectCorner(rawValue: 1 << 0) - public static let topRight = RectCorner(rawValue: 1 << 1) - public static let bottomLeft = RectCorner(rawValue: 1 << 2) - public static let bottomRight = RectCorner(rawValue: 1 << 3) - public static let all: RectCorner = [.topLeft, .topRight, .bottomLeft, .bottomRight] - - public init(rawValue: Int) { - self.rawValue = rawValue - } - - var cornerIdentifier: String { - if self == .all { - return "" - } - return "_corner(\(rawValue))" - } -} - -#if !os(macOS) -/// Processor for adding an blend mode to images. Only CG-based images are supported. -public struct BlendImageProcessor: ImageProcessor { - - /// Identifier of the processor. - /// - Note: See documentation of `ImageProcessor` protocol for more. - public let identifier: String - - /// Blend Mode will be used to blend the input image. - public let blendMode: CGBlendMode - /// Alpha will be used when blend image. - public let alpha: CGFloat - - /// Background color of the output image. If `nil`, it will stay transparent. - public let backgroundColor: Color? - - /// Initialize an `BlendImageProcessor` - /// - /// - parameter blendMode: Blend Mode will be used to blend the input image. - /// - parameter alpha: Alpha will be used when blend image. - /// From 0.0 to 1.0. 1.0 means solid image, 0.0 means transparent image. - /// Default is 1.0. - /// - parameter backgroundColor: Background color to apply for the output image. Default is `nil`. - public init(blendMode: CGBlendMode, alpha: CGFloat = 1.0, backgroundColor: Color? = nil) { - self.blendMode = blendMode - self.alpha = alpha - self.backgroundColor = backgroundColor - var identifier = "com.onevcat.Kingfisher.BlendImageProcessor(\(blendMode.rawValue),\(alpha))" - if let color = backgroundColor { - identifier.append("_\(color.hex)") - } - self.identifier = identifier - } - - /// Process an input `ImageProcessItem` item to an image for this processor. - /// - /// - parameter item: Input item which will be processed by `self` - /// - parameter options: Options when processing the item. - /// - /// - returns: The processed image. - /// - /// - Note: See documentation of `ImageProcessor` protocol for more. - public func process(item: ImageProcessItem, options: KingfisherOptionsInfo) -> Image? { - switch item { - case .image(let image): - return image.kf.scaled(to: options.scaleFactor) - .kf.image(withBlendMode: blendMode, alpha: alpha, backgroundColor: backgroundColor) - case .data(_): - return (DefaultImageProcessor.default >> self).process(item: item, options: options) - } - } -} -#endif - -#if os(macOS) -/// Processor for adding an compositing operation to images. Only CG-based images are supported in macOS. -public struct CompositingImageProcessor: ImageProcessor { - - /// Identifier of the processor. - /// - Note: See documentation of `ImageProcessor` protocol for more. - public let identifier: String - - /// Compositing operation will be used to the input image. - public let compositingOperation: NSCompositingOperation - - /// Alpha will be used when compositing image. - public let alpha: CGFloat - - /// Background color of the output image. If `nil`, it will stay transparent. - public let backgroundColor: Color? - - /// Initialize an `CompositingImageProcessor` - /// - /// - parameter compositingOperation: Compositing operation will be used to the input image. - /// - parameter alpha: Alpha will be used when compositing image. - /// From 0.0 to 1.0. 1.0 means solid image, 0.0 means transparent image. - /// Default is 1.0. - /// - parameter backgroundColor: Background color to apply for the output image. Default is `nil`. - public init(compositingOperation: NSCompositingOperation, - alpha: CGFloat = 1.0, - backgroundColor: Color? = nil) - { - self.compositingOperation = compositingOperation - self.alpha = alpha - self.backgroundColor = backgroundColor - var identifier = "com.onevcat.Kingfisher.CompositingImageProcessor(\(compositingOperation.rawValue),\(alpha))" - if let color = backgroundColor { - identifier.append("_\(color.hex)") - } - self.identifier = identifier - } - - /// Process an input `ImageProcessItem` item to an image for this processor. - /// - /// - parameter item: Input item which will be processed by `self` - /// - parameter options: Options when processing the item. - /// - /// - returns: The processed image. - /// - /// - Note: See documentation of `ImageProcessor` protocol for more. - public func process(item: ImageProcessItem, options: KingfisherOptionsInfo) -> Image? { - switch item { - case .image(let image): - return image.kf.scaled(to: options.scaleFactor) - .kf.image(withCompositingOperation: compositingOperation, alpha: alpha, backgroundColor: backgroundColor) - case .data(_): - return (DefaultImageProcessor.default >> self).process(item: item, options: options) - } - } -} -#endif - -/// Processor for making round corner images. Only CG-based images are supported in macOS, -/// if a non-CG image passed in, the processor will do nothing. -public struct RoundCornerImageProcessor: ImageProcessor { - - /// Identifier of the processor. - /// - Note: See documentation of `ImageProcessor` protocol for more. - public let identifier: String - - /// Corner radius will be applied in processing. - public let cornerRadius: CGFloat - - /// The target corners which will be applied rounding. - public let roundingCorners: RectCorner - - /// Target size of output image should be. If `nil`, the image will keep its original size after processing. - public let targetSize: CGSize? - - /// Background color of the output image. If `nil`, it will stay transparent. - public let backgroundColor: Color? - - /// Initialize a `RoundCornerImageProcessor` - /// - /// - parameter cornerRadius: Corner radius will be applied in processing. - /// - parameter targetSize: Target size of output image should be. If `nil`, - /// the image will keep its original size after processing. - /// Default is `nil`. - /// - parameter corners: The target corners which will be applied rounding. Default is `.all`. - /// - parameter backgroundColor: Background color to apply for the output image. Default is `nil`. - public init(cornerRadius: CGFloat, targetSize: CGSize? = nil, roundingCorners corners: RectCorner = .all, backgroundColor: Color? = nil) { - self.cornerRadius = cornerRadius - self.targetSize = targetSize - self.roundingCorners = corners - self.backgroundColor = backgroundColor - - self.identifier = { - var identifier = "" - - if let size = targetSize { - identifier = "com.onevcat.Kingfisher.RoundCornerImageProcessor(\(cornerRadius)_\(size)\(corners.cornerIdentifier))" - } else { - identifier = "com.onevcat.Kingfisher.RoundCornerImageProcessor(\(cornerRadius)\(corners.cornerIdentifier))" - } - if let backgroundColor = backgroundColor { - identifier += "_\(backgroundColor)" - } - - return identifier - }() - } - - /// Process an input `ImageProcessItem` item to an image for this processor. - /// - /// - parameter item: Input item which will be processed by `self` - /// - parameter options: Options when processing the item. - /// - /// - returns: The processed image. - /// - /// - Note: See documentation of `ImageProcessor` protocol for more. - public func process(item: ImageProcessItem, options: KingfisherOptionsInfo) -> Image? { - switch item { - case .image(let image): - let size = targetSize ?? image.kf.size - return image.kf.scaled(to: options.scaleFactor) - .kf.image(withRoundRadius: cornerRadius, fit: size, roundingCorners: roundingCorners, backgroundColor: backgroundColor) - case .data(_): - return (DefaultImageProcessor.default >> self).process(item: item, options: options) - } - } -} - - -/// Specify how a size adjusts itself to fit a target size. -/// -/// - none: Not scale the content. -/// - aspectFit: Scale the content to fit the size of the view by maintaining the aspect ratio. -/// - aspectFill: Scale the content to fill the size of the view -public enum ContentMode { - case none - case aspectFit - case aspectFill -} - -/// Processor for resizing images. Only CG-based images are supported in macOS. -public struct ResizingImageProcessor: ImageProcessor { - - /// Identifier of the processor. - /// - Note: See documentation of `ImageProcessor` protocol for more. - public let identifier: String - - /// The reference size for resizing operation. - public let referenceSize: CGSize - - /// Target content mode of output image should be. - /// Default to ContentMode.none - public let targetContentMode: ContentMode - - /// Initialize a `ResizingImageProcessor`. - /// - /// - Parameters: - /// - referenceSize: The reference size for resizing operation. - /// - mode: Target content mode of output image should be. - /// - /// - Note: - /// The instance of `ResizingImageProcessor` will follow its `mode` property - /// and try to resizing the input images to fit or fill the `referenceSize`. - /// That means if you are using a `mode` besides of `.none`, you may get an - /// image with its size not be the same as the `referenceSize`. - /// - /// **Example**: With input image size: {100, 200}, - /// `referenceSize`: {100, 100}, `mode`: `.aspectFit`, - /// you will get an output image with size of {50, 100}, which "fit"s - /// the `referenceSize`. - /// - /// If you need an output image exactly to be a specified size, append or use - /// a `CroppingImageProcessor`. - public init(referenceSize: CGSize, mode: ContentMode = .none) { - self.referenceSize = referenceSize - self.targetContentMode = mode - - if mode == .none { - self.identifier = "com.onevcat.Kingfisher.ResizingImageProcessor(\(referenceSize))" - } else { - self.identifier = "com.onevcat.Kingfisher.ResizingImageProcessor(\(referenceSize), \(mode))" - } - } - - /// Process an input `ImageProcessItem` item to an image for this processor. - /// - /// - parameter item: Input item which will be processed by `self` - /// - parameter options: Options when processing the item. - /// - /// - returns: The processed image. - /// - /// - Note: See documentation of `ImageProcessor` protocol for more. - public func process(item: ImageProcessItem, options: KingfisherOptionsInfo) -> Image? { - switch item { - case .image(let image): - return image.kf.scaled(to: options.scaleFactor) - .kf.resize(to: referenceSize, for: targetContentMode) - case .data(_): - return (DefaultImageProcessor.default >> self).process(item: item, options: options) - } - } -} - -/// Processor for adding blur effect to images. `Accelerate.framework` is used underhood for -/// a better performance. A simulated Gaussian blur with specified blur radius will be applied. -public struct BlurImageProcessor: ImageProcessor { - - /// Identifier of the processor. - /// - Note: See documentation of `ImageProcessor` protocol for more. - public let identifier: String - - /// Blur radius for the simulated Gaussian blur. - public let blurRadius: CGFloat - - /// Initialize a `BlurImageProcessor` - /// - /// - parameter blurRadius: Blur radius for the simulated Gaussian blur. - public init(blurRadius: CGFloat) { - self.blurRadius = blurRadius - self.identifier = "com.onevcat.Kingfisher.BlurImageProcessor(\(blurRadius))" - } - - /// Process an input `ImageProcessItem` item to an image for this processor. - /// - /// - parameter item: Input item which will be processed by `self` - /// - parameter options: Options when processing the item. - /// - /// - returns: The processed image. - /// - /// - Note: See documentation of `ImageProcessor` protocol for more. - public func process(item: ImageProcessItem, options: KingfisherOptionsInfo) -> Image? { - switch item { - case .image(let image): - let radius = blurRadius * options.scaleFactor - return image.kf.scaled(to: options.scaleFactor) - .kf.blurred(withRadius: radius) - case .data(_): - return (DefaultImageProcessor.default >> self).process(item: item, options: options) - } - } -} - -/// Processor for adding an overlay to images. Only CG-based images are supported in macOS. -public struct OverlayImageProcessor: ImageProcessor { - - /// Identifier of the processor. - /// - Note: See documentation of `ImageProcessor` protocol for more. - public let identifier: String - - /// Overlay color will be used to overlay the input image. - public let overlay: Color - - /// Fraction will be used when overlay the color to image. - public let fraction: CGFloat - - /// Initialize an `OverlayImageProcessor` - /// - /// - parameter overlay: Overlay color will be used to overlay the input image. - /// - parameter fraction: Fraction will be used when overlay the color to image. - /// From 0.0 to 1.0. 0.0 means solid color, 1.0 means transparent overlay. - public init(overlay: Color, fraction: CGFloat = 0.5) { - self.overlay = overlay - self.fraction = fraction - self.identifier = "com.onevcat.Kingfisher.OverlayImageProcessor(\(overlay.hex)_\(fraction))" - } - - /// Process an input `ImageProcessItem` item to an image for this processor. - /// - /// - parameter item: Input item which will be processed by `self` - /// - parameter options: Options when processing the item. - /// - /// - returns: The processed image. - /// - /// - Note: See documentation of `ImageProcessor` protocol for more. - public func process(item: ImageProcessItem, options: KingfisherOptionsInfo) -> Image? { - switch item { - case .image(let image): - return image.kf.scaled(to: options.scaleFactor) - .kf.overlaying(with: overlay, fraction: fraction) - case .data(_): - return (DefaultImageProcessor.default >> self).process(item: item, options: options) - } - } -} - -/// Processor for tint images with color. Only CG-based images are supported. -public struct TintImageProcessor: ImageProcessor { - - /// Identifier of the processor. - /// - Note: See documentation of `ImageProcessor` protocol for more. - public let identifier: String - - /// Tint color will be used to tint the input image. - public let tint: Color - - /// Initialize a `TintImageProcessor` - /// - /// - parameter tint: Tint color will be used to tint the input image. - public init(tint: Color) { - self.tint = tint - self.identifier = "com.onevcat.Kingfisher.TintImageProcessor(\(tint.hex))" - } - - /// Process an input `ImageProcessItem` item to an image for this processor. - /// - /// - parameter item: Input item which will be processed by `self` - /// - parameter options: Options when processing the item. - /// - /// - returns: The processed image. - /// - /// - Note: See documentation of `ImageProcessor` protocol for more. - public func process(item: ImageProcessItem, options: KingfisherOptionsInfo) -> Image? { - switch item { - case .image(let image): - return image.kf.scaled(to: options.scaleFactor) - .kf.tinted(with: tint) - case .data(_): - return (DefaultImageProcessor.default >> self).process(item: item, options: options) - } - } -} - -/// Processor for applying some color control to images. Only CG-based images are supported. -/// watchOS is not supported. -public struct ColorControlsProcessor: ImageProcessor { - - /// Identifier of the processor. - /// - Note: See documentation of `ImageProcessor` protocol for more. - public let identifier: String - - /// Brightness changing to image. - public let brightness: CGFloat - - /// Contrast changing to image. - public let contrast: CGFloat - - /// Saturation changing to image. - public let saturation: CGFloat - - /// InputEV changing to image. - public let inputEV: CGFloat - - /// Initialize a `ColorControlsProcessor` - /// - /// - parameter brightness: Brightness changing to image. - /// - parameter contrast: Contrast changing to image. - /// - parameter saturation: Saturation changing to image. - /// - parameter inputEV: InputEV changing to image. - public init(brightness: CGFloat, contrast: CGFloat, saturation: CGFloat, inputEV: CGFloat) { - self.brightness = brightness - self.contrast = contrast - self.saturation = saturation - self.inputEV = inputEV - self.identifier = "com.onevcat.Kingfisher.ColorControlsProcessor(\(brightness)_\(contrast)_\(saturation)_\(inputEV))" - } - - /// Process an input `ImageProcessItem` item to an image for this processor. - /// - /// - parameter item: Input item which will be processed by `self` - /// - parameter options: Options when processing the item. - /// - /// - returns: The processed image. - /// - /// - Note: See documentation of `ImageProcessor` protocol for more. - public func process(item: ImageProcessItem, options: KingfisherOptionsInfo) -> Image? { - switch item { - case .image(let image): - return image.kf.scaled(to: options.scaleFactor) - .kf.adjusted(brightness: brightness, contrast: contrast, saturation: saturation, inputEV: inputEV) - case .data(_): - return (DefaultImageProcessor.default >> self).process(item: item, options: options) - } - } -} - -/// Processor for applying black and white effect to images. Only CG-based images are supported. -/// watchOS is not supported. -public struct BlackWhiteProcessor: ImageProcessor { - - /// Identifier of the processor. - /// - Note: See documentation of `ImageProcessor` protocol for more. - public let identifier = "com.onevcat.Kingfisher.BlackWhiteProcessor" - - /// Initialize a `BlackWhiteProcessor` - public init() {} - - /// Process an input `ImageProcessItem` item to an image for this processor. - /// - /// - parameter item: Input item which will be processed by `self` - /// - parameter options: Options when processing the item. - /// - /// - returns: The processed image. - /// - /// - Note: See documentation of `ImageProcessor` protocol for more. - public func process(item: ImageProcessItem, options: KingfisherOptionsInfo) -> Image? { - return ColorControlsProcessor(brightness: 0.0, contrast: 1.0, saturation: 0.0, inputEV: 0.7) - .process(item: item, options: options) - } -} - -/// Processor for cropping an image. Only CG-based images are supported. -/// watchOS is not supported. -public struct CroppingImageProcessor: ImageProcessor { - - /// Identifier of the processor. - /// - Note: See documentation of `ImageProcessor` protocol for more. - public let identifier: String - - /// Target size of output image should be. - public let size: CGSize - - /// Anchor point from which the output size should be calculate. - /// The anchor point is consisted by two values between 0.0 and 1.0. - /// It indicates a related point in current image. - /// See `CroppingImageProcessor.init(size:anchor:)` for more. - public let anchor: CGPoint - - /// Initialize a `CroppingImageProcessor` - /// - /// - Parameters: - /// - size: Target size of output image should be. - /// - anchor: The anchor point from which the size should be calculated. - /// Default is `CGPoint(x: 0.5, y: 0.5)`, which means the center of input image. - /// - Note: - /// The anchor point is consisted by two values between 0.0 and 1.0. - /// It indicates a related point in current image, eg: (0.0, 0.0) for top-left - /// corner, (0.5, 0.5) for center and (1.0, 1.0) for bottom-right corner. - /// The `size` property of `CroppingImageProcessor` will be used along with - /// `anchor` to calculate a target rectangle in the size of image. - /// - /// The target size will be automatically calculated with a reasonable behavior. - /// For example, when you have an image size of `CGSize(width: 100, height: 100)`, - /// and a target size of `CGSize(width: 20, height: 20)`: - /// - with a (0.0, 0.0) anchor (top-left), the crop rect will be `{0, 0, 20, 20}`; - /// - with a (0.5, 0.5) anchor (center), it will be `{40, 40, 20, 20}` - /// - while with a (1.0, 1.0) anchor (bottom-right), it will be `{80, 80, 20, 20}` - public init(size: CGSize, anchor: CGPoint = CGPoint(x: 0.5, y: 0.5)) { - self.size = size - self.anchor = anchor - self.identifier = "com.onevcat.Kingfisher.CroppingImageProcessor(\(size)_\(anchor))" - } - - /// Process an input `ImageProcessItem` item to an image for this processor. - /// - /// - parameter item: Input item which will be processed by `self` - /// - parameter options: Options when processing the item. - /// - /// - returns: The processed image. - /// - /// - Note: See documentation of `ImageProcessor` protocol for more. - public func process(item: ImageProcessItem, options: KingfisherOptionsInfo) -> Image? { - switch item { - case .image(let image): - return image.kf.scaled(to: options.scaleFactor) - .kf.crop(to: size, anchorOn: anchor) - case .data(_): return (DefaultImageProcessor.default >> self).process(item: item, options: options) - } - } -} - -/// Concatenate two `ImageProcessor`s. `ImageProcessor.appen(another:)` is used internally. -/// -/// - parameter left: First processor. -/// - parameter right: Second processor. -/// -/// - returns: The concatenated processor. -public func >>(left: ImageProcessor, right: ImageProcessor) -> ImageProcessor { - return left.append(another: right) -} - -extension Color { - var hex: String { - var r: CGFloat = 0 - var g: CGFloat = 0 - var b: CGFloat = 0 - var a: CGFloat = 0 - - #if os(macOS) - (usingColorSpace(.sRGB) ?? self).getRed(&r, green: &g, blue: &b, alpha: &a) - #else - getRed(&r, green: &g, blue: &b, alpha: &a) - #endif - - let rInt = Int(r * 255) << 24 - let gInt = Int(g * 255) << 16 - let bInt = Int(b * 255) << 8 - let aInt = Int(a * 255) - - let rgba = rInt | gInt | bInt | aInt - - return String(format:"#%08x", rgba) - } -} diff --git a/Pods/Kingfisher/Sources/ImageTransition.swift b/Pods/Kingfisher/Sources/ImageTransition.swift deleted file mode 100755 index 3bc13b8..0000000 --- a/Pods/Kingfisher/Sources/ImageTransition.swift +++ /dev/null @@ -1,128 +0,0 @@ -// -// ImageTransition.swift -// Kingfisher -// -// Created by Wei Wang on 15/9/18. -// -// Copyright (c) 2018 Wei Wang -// -// 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. - -#if os(macOS) -// Not implemented for macOS and watchOS yet. - -import AppKit - -/// Image transition is not supported on macOS. -public enum ImageTransition { - case none - var duration: TimeInterval { - return 0 - } -} - -#elseif os(watchOS) -import UIKit -/// Image transition is not supported on watchOS. -public enum ImageTransition { - case none - var duration: TimeInterval { - return 0 - } -} -#else -import UIKit - -/** -Transition effect which will be used when an image downloaded and set by `UIImageView` extension API in Kingfisher. -You can assign an enum value with transition duration as an item in `KingfisherOptionsInfo` -to enable the animation transition. - -Apple's UIViewAnimationOptions is used under the hood. -For custom transition, you should specified your own transition options, animations and -completion handler as well. -*/ -public enum ImageTransition { - /// No animation transition. - case none - - /// Fade in the loaded image. - case fade(TimeInterval) - - /// Flip from left transition. - case flipFromLeft(TimeInterval) - - /// Flip from right transition. - case flipFromRight(TimeInterval) - - /// Flip from top transition. - case flipFromTop(TimeInterval) - - /// Flip from bottom transition. - case flipFromBottom(TimeInterval) - - /// Custom transition. - case custom(duration: TimeInterval, - options: UIView.AnimationOptions, - animations: ((UIImageView, UIImage) -> Void)?, - completion: ((Bool) -> Void)?) - - var duration: TimeInterval { - switch self { - case .none: return 0 - case .fade(let duration): return duration - - case .flipFromLeft(let duration): return duration - case .flipFromRight(let duration): return duration - case .flipFromTop(let duration): return duration - case .flipFromBottom(let duration): return duration - - case .custom(let duration, _, _, _): return duration - } - } - - var animationOptions: UIView.AnimationOptions { - switch self { - case .none: return [] - case .fade(_): return .transitionCrossDissolve - - case .flipFromLeft(_): return .transitionFlipFromLeft - case .flipFromRight(_): return .transitionFlipFromRight - case .flipFromTop(_): return .transitionFlipFromTop - case .flipFromBottom(_): return .transitionFlipFromBottom - - case .custom(_, let options, _, _): return options - } - } - - var animations: ((UIImageView, UIImage) -> Void)? { - switch self { - case .custom(_, _, let animations, _): return animations - default: return { $0.image = $1 } - } - } - - var completion: ((Bool) -> Void)? { - switch self { - case .custom(_, _, _, let completion): return completion - default: return nil - } - } -} -#endif diff --git a/Pods/Kingfisher/Sources/ImageView+Kingfisher.swift b/Pods/Kingfisher/Sources/ImageView+Kingfisher.swift deleted file mode 100755 index cb230fb..0000000 --- a/Pods/Kingfisher/Sources/ImageView+Kingfisher.swift +++ /dev/null @@ -1,263 +0,0 @@ -// -// ImageView+Kingfisher.swift -// Kingfisher -// -// Created by Wei Wang on 15/4/6. -// -// Copyright (c) 2018 Wei Wang -// -// 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. - - -#if os(macOS) -import AppKit -#else -import UIKit -#endif - -// MARK: - Extension methods. -/** - * Set image to use from web. - */ -extension Kingfisher where Base: ImageView { - /** - Set an image with a resource, a placeholder image, options, progress handler and completion handler. - - - parameter resource: Resource object contains information such as `cacheKey` and `downloadURL`. - - parameter placeholder: A placeholder image when retrieving the image at URL. - - parameter options: A dictionary could control some behaviors. See `KingfisherOptionsInfo` for more. - - parameter progressBlock: Called when the image downloading progress gets updated. - - parameter completionHandler: Called when the image retrieved and set. - - - returns: A task represents the retrieving process. - - - note: Both the `progressBlock` and `completionHandler` will be invoked in main thread. - The `CallbackDispatchQueue` specified in `optionsInfo` will not be used in callbacks of this method. - - If `resource` is `nil`, the `placeholder` image will be set and - `completionHandler` will be called with both `error` and `image` being `nil`. - */ - @discardableResult - public func setImage(with resource: Resource?, - placeholder: Placeholder? = nil, - options: KingfisherOptionsInfo? = nil, - progressBlock: DownloadProgressBlock? = nil, - completionHandler: CompletionHandler? = nil) -> RetrieveImageTask - { - guard let resource = resource else { - self.placeholder = placeholder - setWebURL(nil) - completionHandler?(nil, nil, .none, nil) - return .empty - } - - var options = KingfisherManager.shared.defaultOptions + (options ?? KingfisherEmptyOptionsInfo) - let noImageOrPlaceholderSet = base.image == nil && self.placeholder == nil - - if !options.keepCurrentImageWhileLoading || noImageOrPlaceholderSet { // Always set placeholder while there is no image/placehoer yet. - self.placeholder = placeholder - } - - let maybeIndicator = indicator - maybeIndicator?.startAnimatingView() - - setWebURL(resource.downloadURL) - - if base.shouldPreloadAllAnimation() { - options.append(.preloadAllAnimationData) - } - - let task = KingfisherManager.shared.retrieveImage( - with: resource, - options: options, - progressBlock: { receivedSize, totalSize in - guard resource.downloadURL == self.webURL else { - return - } - if let progressBlock = progressBlock { - progressBlock(receivedSize, totalSize) - } - }, - completionHandler: {[weak base] image, error, cacheType, imageURL in - DispatchQueue.main.safeAsync { - maybeIndicator?.stopAnimatingView() - guard let strongBase = base, imageURL == self.webURL else { - completionHandler?(image, error, cacheType, imageURL) - return - } - - self.setImageTask(nil) - guard let image = image else { - completionHandler?(nil, error, cacheType, imageURL) - return - } - - guard let transitionItem = options.lastMatchIgnoringAssociatedValue(.transition(.none)), - case .transition(let transition) = transitionItem, ( options.forceTransition || cacheType == .none) else - { - self.placeholder = nil - strongBase.image = image - completionHandler?(image, error, cacheType, imageURL) - return - } - - #if !os(macOS) - UIView.transition(with: strongBase, duration: 0.0, options: [], - animations: { maybeIndicator?.stopAnimatingView() }, - completion: { _ in - - self.placeholder = nil - UIView.transition(with: strongBase, duration: transition.duration, - options: [transition.animationOptions, .allowUserInteraction], - animations: { - // Set image property in the animation. - transition.animations?(strongBase, image) - }, - completion: { finished in - transition.completion?(finished) - completionHandler?(image, error, cacheType, imageURL) - }) - }) - #endif - } - }) - - setImageTask(task) - - return task - } - - /** - Cancel the image download task bounded to the image view if it is running. - Nothing will happen if the downloading has already finished. - */ - public func cancelDownloadTask() { - imageTask?.cancel() - } -} - -// MARK: - Associated Object -private var lastURLKey: Void? -private var indicatorKey: Void? -private var indicatorTypeKey: Void? -private var placeholderKey: Void? -private var imageTaskKey: Void? - -extension Kingfisher where Base: ImageView { - /// Get the image URL binded to this image view. - public var webURL: URL? { - return objc_getAssociatedObject(base, &lastURLKey) as? URL - } - - fileprivate func setWebURL(_ url: URL?) { - objc_setAssociatedObject(base, &lastURLKey, url, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) - } - - /// Holds which indicator type is going to be used. - /// Default is .none, means no indicator will be shown. - public var indicatorType: IndicatorType { - get { - let indicator = objc_getAssociatedObject(base, &indicatorTypeKey) as? IndicatorType - return indicator ?? .none - } - - set { - switch newValue { - case .none: - indicator = nil - case .activity: - indicator = ActivityIndicator() - case .image(let data): - indicator = ImageIndicator(imageData: data) - case .custom(let anIndicator): - indicator = anIndicator - } - - objc_setAssociatedObject(base, &indicatorTypeKey, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) - } - } - - /// Holds any type that conforms to the protocol `Indicator`. - /// The protocol `Indicator` has a `view` property that will be shown when loading an image. - /// It will be `nil` if `indicatorType` is `.none`. - public fileprivate(set) var indicator: Indicator? { - get { - guard let box = objc_getAssociatedObject(base, &indicatorKey) as? Box else { - return nil - } - return box.value - } - - set { - // Remove previous - if let previousIndicator = indicator { - previousIndicator.view.removeFromSuperview() - } - - // Add new - if var newIndicator = newValue { - // Set default indicator frame if the view's frame not set. - if newIndicator.view.frame == .zero { - newIndicator.view.frame = base.frame - } - newIndicator.viewCenter = CGPoint(x: base.bounds.midX, y: base.bounds.midY) - newIndicator.view.isHidden = true - base.addSubview(newIndicator.view) - } - - // Save in associated object - // Wrap newValue with Box to workaround an issue that Swift does not recognize - // and casting protocol for associate object correctly. https://github.com/onevcat/Kingfisher/issues/872 - objc_setAssociatedObject(base, &indicatorKey, newValue.map(Box.init), .OBJC_ASSOCIATION_RETAIN_NONATOMIC) - } - } - - fileprivate var imageTask: RetrieveImageTask? { - return objc_getAssociatedObject(base, &imageTaskKey) as? RetrieveImageTask - } - - fileprivate func setImageTask(_ task: RetrieveImageTask?) { - objc_setAssociatedObject(base, &imageTaskKey, task, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) - } - - public fileprivate(set) var placeholder: Placeholder? { - get { - return objc_getAssociatedObject(base, &placeholderKey) as? Placeholder - } - - set { - if let previousPlaceholder = placeholder { - previousPlaceholder.remove(from: base) - } - - if let newPlaceholder = newValue { - newPlaceholder.add(to: base) - } else { - base.image = nil - } - - objc_setAssociatedObject(base, &placeholderKey, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) - } - } -} - - -@objc extension ImageView { - func shouldPreloadAllAnimation() -> Bool { return true } -} diff --git a/Pods/Kingfisher/Sources/Indicator.swift b/Pods/Kingfisher/Sources/Indicator.swift deleted file mode 100644 index f8fcf09..0000000 --- a/Pods/Kingfisher/Sources/Indicator.swift +++ /dev/null @@ -1,203 +0,0 @@ -// -// Indicator.swift -// Kingfisher -// -// Created by João D. Moreira on 30/08/16. -// -// Copyright (c) 2018 Wei Wang -// -// 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. - -#if os(macOS) - import AppKit -#else - import UIKit -#endif - -#if os(macOS) - public typealias IndicatorView = NSView -#else - public typealias IndicatorView = UIView -#endif - -public enum IndicatorType { - /// No indicator. - case none - /// Use system activity indicator. - case activity - /// Use an image as indicator. GIF is supported. - case image(imageData: Data) - /// Use a custom indicator, which conforms to the `Indicator` protocol. - case custom(indicator: Indicator) -} - -// MARK: - Indicator Protocol -public protocol Indicator { - func startAnimatingView() - func stopAnimatingView() - - var viewCenter: CGPoint { get set } - var view: IndicatorView { get } -} - -extension Indicator { - #if os(macOS) - public var viewCenter: CGPoint { - get { - let frame = view.frame - return CGPoint(x: frame.origin.x + frame.size.width / 2.0, y: frame.origin.y + frame.size.height / 2.0 ) - } - set { - let frame = view.frame - let newFrame = CGRect(x: newValue.x - frame.size.width / 2.0, - y: newValue.y - frame.size.height / 2.0, - width: frame.size.width, - height: frame.size.height) - view.frame = newFrame - } - } - #else - public var viewCenter: CGPoint { - get { - return view.center - } - set { - view.center = newValue - } - } - #endif -} - -// MARK: - ActivityIndicator -// Displays a NSProgressIndicator / UIActivityIndicatorView -final class ActivityIndicator: Indicator { - - #if os(macOS) - private let activityIndicatorView: NSProgressIndicator - #else - private let activityIndicatorView: UIActivityIndicatorView - #endif - private var animatingCount = 0 - - var view: IndicatorView { - return activityIndicatorView - } - - func startAnimatingView() { - animatingCount += 1 - // Already animating - if animatingCount == 1 { - #if os(macOS) - activityIndicatorView.startAnimation(nil) - #else - activityIndicatorView.startAnimating() - #endif - activityIndicatorView.isHidden = false - } - } - - func stopAnimatingView() { - animatingCount = max(animatingCount - 1, 0) - if animatingCount == 0 { - #if os(macOS) - activityIndicatorView.stopAnimation(nil) - #else - activityIndicatorView.stopAnimating() - #endif - activityIndicatorView.isHidden = true - } - } - - init() { - #if os(macOS) - activityIndicatorView = NSProgressIndicator(frame: CGRect(x: 0, y: 0, width: 16, height: 16)) - activityIndicatorView.controlSize = .small - activityIndicatorView.style = .spinning - #else - #if os(tvOS) - let indicatorStyle = UIActivityIndicatorView.Style.white - #else - let indicatorStyle = UIActivityIndicatorView.Style.gray - #endif - #if swift(>=4.2) - activityIndicatorView = UIActivityIndicatorView(style: indicatorStyle) - #else - activityIndicatorView = UIActivityIndicatorView(activityIndicatorStyle: indicatorStyle) - #endif - activityIndicatorView.autoresizingMask = [.flexibleLeftMargin, .flexibleRightMargin, .flexibleBottomMargin, .flexibleTopMargin] - #endif - } -} - -// MARK: - ImageIndicator -// Displays an ImageView. Supports gif -final class ImageIndicator: Indicator { - private let animatedImageIndicatorView: ImageView - - var view: IndicatorView { - return animatedImageIndicatorView - } - - init?(imageData data: Data, processor: ImageProcessor = DefaultImageProcessor.default, options: KingfisherOptionsInfo = KingfisherEmptyOptionsInfo) { - - var options = options - // Use normal image view to show animations, so we need to preload all animation data. - if !options.preloadAllAnimationData { - options.append(.preloadAllAnimationData) - } - - guard let image = processor.process(item: .data(data), options: options) else { - return nil - } - - animatedImageIndicatorView = ImageView() - animatedImageIndicatorView.image = image - animatedImageIndicatorView.frame = CGRect(x: 0, y: 0, width: image.size.width, height: image.size.height) - - #if os(macOS) - // Need for gif to animate on macOS - self.animatedImageIndicatorView.imageScaling = .scaleNone - self.animatedImageIndicatorView.canDrawSubviewsIntoLayer = true - #else - animatedImageIndicatorView.contentMode = .center - animatedImageIndicatorView.autoresizingMask = [.flexibleLeftMargin, - .flexibleRightMargin, - .flexibleBottomMargin, - .flexibleTopMargin] - #endif - } - - func startAnimatingView() { - #if os(macOS) - animatedImageIndicatorView.animates = true - #else - animatedImageIndicatorView.startAnimating() - #endif - animatedImageIndicatorView.isHidden = false - } - - func stopAnimatingView() { - #if os(macOS) - animatedImageIndicatorView.animates = false - #else - animatedImageIndicatorView.stopAnimating() - #endif - animatedImageIndicatorView.isHidden = true - } -} diff --git a/Pods/Kingfisher/Sources/Kingfisher.h b/Pods/Kingfisher/Sources/Kingfisher.h deleted file mode 100644 index 0e11d43..0000000 --- a/Pods/Kingfisher/Sources/Kingfisher.h +++ /dev/null @@ -1,37 +0,0 @@ -// -// Kingfisher.h -// Kingfisher -// -// Created by Wei Wang on 15/4/6. -// -// Copyright (c) 2018 Wei Wang -// -// 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 - -//! Project version number for Kingfisher. -FOUNDATION_EXPORT double KingfisherVersionNumber; - -//! Project version string for Kingfisher. -FOUNDATION_EXPORT const unsigned char KingfisherVersionString[]; - -// In this header, you should import all the public headers of your framework using statements like #import - - diff --git a/Pods/Kingfisher/Sources/Kingfisher.swift b/Pods/Kingfisher/Sources/Kingfisher.swift deleted file mode 100644 index 7958060..0000000 --- a/Pods/Kingfisher/Sources/Kingfisher.swift +++ /dev/null @@ -1,77 +0,0 @@ -// -// Kingfisher.swift -// Kingfisher -// -// Created by Wei Wang on 16/9/14. -// -// Copyright (c) 2018 Wei Wang -// -// 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 -import ImageIO - -#if os(macOS) - import AppKit - public typealias Image = NSImage - public typealias View = NSView - public typealias Color = NSColor - public typealias ImageView = NSImageView - public typealias Button = NSButton -#else - import UIKit - public typealias Image = UIImage - public typealias Color = UIColor - #if !os(watchOS) - public typealias ImageView = UIImageView - public typealias View = UIView - public typealias Button = UIButton - #else - import WatchKit - #endif -#endif - -public final class Kingfisher { - public let base: Base - public init(_ base: Base) { - self.base = base - } -} - -/** - A type that has Kingfisher extensions. - */ -public protocol KingfisherCompatible { - associatedtype CompatibleType - var kf: CompatibleType { get } -} - -public extension KingfisherCompatible { - public var kf: Kingfisher { - return Kingfisher(self) - } -} - -extension Image: KingfisherCompatible { } -#if !os(watchOS) -extension ImageView: KingfisherCompatible { } -extension Button: KingfisherCompatible { } -#else -extension WKInterfaceImage: KingfisherCompatible { } -#endif diff --git a/Pods/Kingfisher/Sources/KingfisherManager.swift b/Pods/Kingfisher/Sources/KingfisherManager.swift deleted file mode 100755 index cb2a14e..0000000 --- a/Pods/Kingfisher/Sources/KingfisherManager.swift +++ /dev/null @@ -1,297 +0,0 @@ -// -// KingfisherManager.swift -// Kingfisher -// -// Created by Wei Wang on 15/4/6. -// -// Copyright (c) 2018 Wei Wang -// -// 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. - -#if os(macOS) -import AppKit -#else -import UIKit -#endif - -public typealias DownloadProgressBlock = ((_ receivedSize: Int64, _ totalSize: Int64) -> Void) -public typealias CompletionHandler = ((_ image: Image?, _ error: NSError?, _ cacheType: CacheType, _ imageURL: URL?) -> Void) - -/// RetrieveImageTask represents a task of image retrieving process. -/// It contains an async task of getting image from disk and from network. -public final class RetrieveImageTask { - - public static let empty = RetrieveImageTask() - - // If task is canceled before the download task started (which means the `downloadTask` is nil), - // the download task should not begin. - var cancelledBeforeDownloadStarting: Bool = false - - /// The network retrieve task in this image task. - public var downloadTask: RetrieveImageDownloadTask? - - /** - Cancel current task. If this task is already done, do nothing. - */ - public func cancel() { - if let downloadTask = downloadTask { - downloadTask.cancel() - } else { - cancelledBeforeDownloadStarting = true - } - } -} - -/// Error domain of Kingfisher -public let KingfisherErrorDomain = "com.onevcat.Kingfisher.Error" - -/// Main manager class of Kingfisher. It connects Kingfisher downloader and cache. -/// You can use this class to retrieve an image via a specified URL from web or cache. -public class KingfisherManager { - - /// Shared manager used by the extensions across Kingfisher. - public static let shared = KingfisherManager() - - /// Cache used by this manager - public var cache: ImageCache - - /// Downloader used by this manager - public var downloader: ImageDownloader - - /// Default options used by the manager. This option will be used in - /// Kingfisher manager related methods, including all image view and - /// button extension methods. You can also passing the options per image by - /// sending an `options` parameter to Kingfisher's APIs, the per image option - /// will overwrite the default ones if exist. - /// - /// - Note: This option will not be applied to independent using of `ImageDownloader` or `ImageCache`. - public var defaultOptions = KingfisherEmptyOptionsInfo - - var currentDefaultOptions: KingfisherOptionsInfo { - return [.downloader(downloader), .targetCache(cache)] + defaultOptions - } - - fileprivate let processQueue: DispatchQueue - - convenience init() { - self.init(downloader: .default, cache: .default) - } - - init(downloader: ImageDownloader, cache: ImageCache) { - self.downloader = downloader - self.cache = cache - - let processQueueName = "com.onevcat.Kingfisher.KingfisherManager.processQueue.\(UUID().uuidString)" - processQueue = DispatchQueue(label: processQueueName, attributes: .concurrent) - } - - /** - Get an image with resource. - If KingfisherOptions.None is used as `options`, Kingfisher will seek the image in memory and disk first. - If not found, it will download the image at `resource.downloadURL` and cache it with `resource.cacheKey`. - These default behaviors could be adjusted by passing different options. See `KingfisherOptions` for more. - - - parameter resource: Resource object contains information such as `cacheKey` and `downloadURL`. - - parameter options: A dictionary could control some behaviors. See `KingfisherOptionsInfo` for more. - - parameter progressBlock: Called every time downloaded data changed. This could be used as a progress UI. - - parameter completionHandler: Called when the whole retrieving process finished. - - - returns: A `RetrieveImageTask` task object. You can use this object to cancel the task. - */ - @discardableResult - public func retrieveImage(with resource: Resource, - options: KingfisherOptionsInfo?, - progressBlock: DownloadProgressBlock?, - completionHandler: CompletionHandler?) -> RetrieveImageTask - { - let task = RetrieveImageTask() - let options = currentDefaultOptions + (options ?? KingfisherEmptyOptionsInfo) - if options.forceRefresh { - _ = downloadAndCacheImage( - with: resource.downloadURL, - forKey: resource.cacheKey, - retrieveImageTask: task, - progressBlock: progressBlock, - completionHandler: completionHandler, - options: options) - } else { - tryToRetrieveImageFromCache( - forKey: resource.cacheKey, - with: resource.downloadURL, - retrieveImageTask: task, - progressBlock: progressBlock, - completionHandler: completionHandler, - options: options) - } - - return task - } - - @discardableResult - func downloadAndCacheImage(with url: URL, - forKey key: String, - retrieveImageTask: RetrieveImageTask, - progressBlock: DownloadProgressBlock?, - completionHandler: CompletionHandler?, - options: KingfisherOptionsInfo) -> RetrieveImageDownloadTask? - { - let downloader = options.downloader ?? self.downloader - let processQueue = self.processQueue - return downloader.downloadImage(with: url, retrieveImageTask: retrieveImageTask, options: options, - progressBlock: { receivedSize, totalSize in - progressBlock?(receivedSize, totalSize) - }, - completionHandler: { image, error, imageURL, originalData in - - let targetCache = options.targetCache ?? self.cache - if let error = error, error.code == KingfisherError.notModified.rawValue { - // Not modified. Try to find the image from cache. - // (The image should be in cache. It should be guaranteed by the framework users.) - targetCache.retrieveImage(forKey: key, options: options, completionHandler: { (cacheImage, cacheType) -> Void in - completionHandler?(cacheImage, nil, cacheType, url) - }) - return - } - - if let image = image, let originalData = originalData { - targetCache.store(image, - original: originalData, - forKey: key, - processorIdentifier:options.processor.identifier, - cacheSerializer: options.cacheSerializer, - toDisk: !options.cacheMemoryOnly, - completionHandler: { - guard options.waitForCache else { return } - - let cacheType = targetCache.imageCachedType(forKey: key, processorIdentifier: options.processor.identifier) - completionHandler?(image, nil, cacheType, url) - }) - - if options.cacheOriginalImage && options.processor != DefaultImageProcessor.default { - let originalCache = options.originalCache ?? targetCache - let defaultProcessor = DefaultImageProcessor.default - processQueue.async { - if let originalImage = defaultProcessor.process(item: .data(originalData), options: options) { - originalCache.store(originalImage, - original: originalData, - forKey: key, - processorIdentifier: defaultProcessor.identifier, - cacheSerializer: options.cacheSerializer, - toDisk: !options.cacheMemoryOnly, - completionHandler: nil) - } - } - } - } - - if options.waitForCache == false || image == nil { - completionHandler?(image, error, .none, url) - } - }) - } - - func tryToRetrieveImageFromCache(forKey key: String, - with url: URL, - retrieveImageTask: RetrieveImageTask, - progressBlock: DownloadProgressBlock?, - completionHandler: CompletionHandler?, - options: KingfisherOptionsInfo) - { - - let diskTaskCompletionHandler: CompletionHandler = { (image, error, cacheType, imageURL) -> Void in - completionHandler?(image, error, cacheType, imageURL) - } - - func handleNoCache() { - if options.onlyFromCache { - let error = NSError(domain: KingfisherErrorDomain, code: KingfisherError.notCached.rawValue, userInfo: nil) - diskTaskCompletionHandler(nil, error, .none, url) - return - } - self.downloadAndCacheImage( - with: url, - forKey: key, - retrieveImageTask: retrieveImageTask, - progressBlock: progressBlock, - completionHandler: diskTaskCompletionHandler, - options: options) - - } - - let targetCache = options.targetCache ?? self.cache - let processQueue = self.processQueue - // First, try to get the exactly image from cache - targetCache.retrieveImage(forKey: key, options: options) { image, cacheType in - // If found, we could finish now. - if image != nil { - diskTaskCompletionHandler(image, nil, cacheType, url) - return - } - - // If not found, and we are using a default processor, download it! - let processor = options.processor - guard processor != DefaultImageProcessor.default else { - handleNoCache() - return - } - - // If processor is not the default one, we have a chance to check whether - // the original image is already in cache. - let originalCache = options.originalCache ?? targetCache - let optionsWithoutProcessor = options.removeAllMatchesIgnoringAssociatedValue(.processor(processor)) - originalCache.retrieveImage(forKey: key, options: optionsWithoutProcessor) { image, cacheType in - // If we found the original image, there is no need to download it again. - // We could just apply processor to it now. - guard let image = image else { - handleNoCache() - return - } - - processQueue.async { - guard let processedImage = processor.process(item: .image(image), options: options) else { - options.callbackDispatchQueue.safeAsync { - diskTaskCompletionHandler(nil, nil, .none, url) - } - return - } - targetCache.store(processedImage, - original: nil, - forKey: key, - processorIdentifier:options.processor.identifier, - cacheSerializer: options.cacheSerializer, - toDisk: !options.cacheMemoryOnly, - completionHandler: { - guard options.waitForCache else { return } - - let cacheType = targetCache.imageCachedType(forKey: key, processorIdentifier: options.processor.identifier) - options.callbackDispatchQueue.safeAsync { - diskTaskCompletionHandler(processedImage, nil, cacheType, url) - } - }) - - if options.waitForCache == false { - options.callbackDispatchQueue.safeAsync { - diskTaskCompletionHandler(processedImage, nil, .none, url) - } - } - } - } - } - } -} diff --git a/Pods/Kingfisher/Sources/KingfisherOptionsInfo.swift b/Pods/Kingfisher/Sources/KingfisherOptionsInfo.swift deleted file mode 100755 index 68833a1..0000000 --- a/Pods/Kingfisher/Sources/KingfisherOptionsInfo.swift +++ /dev/null @@ -1,364 +0,0 @@ -// -// KingfisherOptionsInfo.swift -// Kingfisher -// -// Created by Wei Wang on 15/4/23. -// -// Copyright (c) 2018 Wei Wang -// -// 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. - -#if os(macOS) -import AppKit -#else -import UIKit -#endif - - -/** -* KingfisherOptionsInfo is a typealias for [KingfisherOptionsInfoItem]. You can use the enum of option item with value to control some behaviors of Kingfisher. -*/ -public typealias KingfisherOptionsInfo = [KingfisherOptionsInfoItem] -let KingfisherEmptyOptionsInfo = [KingfisherOptionsInfoItem]() - -/** -Items could be added into KingfisherOptionsInfo. -*/ -public enum KingfisherOptionsInfoItem { - /// The associated value of this member should be an ImageCache object. Kingfisher will use the specified - /// cache object when handling related operations, including trying to retrieve the cached images and store - /// the downloaded image to it. - case targetCache(ImageCache) - - /// Cache for storing and retrieving original image. - /// Preferred prior to targetCache for storing and retrieving original images if specified. - /// Only used if a non-default image processor is involved. - case originalCache(ImageCache) - - /// The associated value of this member should be an ImageDownloader object. Kingfisher will use this - /// downloader to download the images. - case downloader(ImageDownloader) - - /// Member for animation transition when using UIImageView. Kingfisher will use the `ImageTransition` of - /// this enum to animate the image in if it is downloaded from web. The transition will not happen when the - /// image is retrieved from either memory or disk cache by default. If you need to do the transition even when - /// the image being retrieved from cache, set `ForceTransition` as well. - case transition(ImageTransition) - - /// Associated `Float` value will be set as the priority of image download task. The value for it should be - /// between 0.0~1.0. If this option not set, the default value (`NSURLSessionTaskPriorityDefault`) will be used. - case downloadPriority(Float) - - /// If set, `Kingfisher` will ignore the cache and try to fire a download task for the resource. - case forceRefresh - - /// If set, `Kingfisher` will try to retrieve the image from memory cache first. If the image is not in memory - /// cache, then it will ignore the disk cache but download the image again from network. This is useful when - /// you want to display a changeable image behind the same url, while avoiding download it again and again. - case fromMemoryCacheOrRefresh - - /// If set, setting the image to an image view will happen with transition even when retrieved from cache. - /// See `Transition` option for more. - case forceTransition - - /// If set, `Kingfisher` will only cache the value in memory but not in disk. - case cacheMemoryOnly - - /// If set, `Kingfisher` will wait for caching operation to be completed before calling the completion block. - case waitForCache - - /// If set, `Kingfisher` will only try to retrieve the image from cache not from network. - case onlyFromCache - - /// Decode the image in background thread before using. - case backgroundDecode - - /// The associated value of this member will be used as the target queue of dispatch callbacks when - /// retrieving images from cache. If not set, `Kingfisher` will use main queue for callbacks. - case callbackDispatchQueue(DispatchQueue?) - - /// The associated value of this member will be used as the scale factor when converting retrieved data to an image. - /// It is the image scale, instead of your screen scale. You may need to specify the correct scale when you dealing - /// with 2x or 3x retina images. - case scaleFactor(CGFloat) - - /// Whether all the animated image data should be preloaded. Default it false, which means following frames will be - /// loaded on need. If true, all the animated image data will be loaded and decoded into memory. This option is mainly - /// used for back compatibility internally. You should not set it directly. `AnimatedImageView` will not preload - /// all data, while a normal image view (`UIImageView` or `NSImageView`) will load all data. Choose to use - /// corresponding image view type instead of setting this option. - case preloadAllAnimationData - - /// The `ImageDownloadRequestModifier` contained will be used to change the request before it being sent. - /// This is the last chance you can modify the request. You can modify the request for some customizing purpose, - /// such as adding auth token to the header, do basic HTTP auth or something like url mapping. The original request - /// will be sent without any modification by default. - case requestModifier(ImageDownloadRequestModifier) - - /// Processor for processing when the downloading finishes, a processor will convert the downloaded data to an image - /// and/or apply some filter on it. If a cache is connected to the downloader (it happens when you are using - /// KingfisherManager or the image extension methods), the converted image will also be sent to cache as well as the - /// image view. `DefaultImageProcessor.default` will be used by default. - case processor(ImageProcessor) - - /// Supply an `CacheSerializer` to convert some data to an image object for - /// retrieving from disk cache or vice versa for storing to disk cache. - /// `DefaultCacheSerializer.default` will be used by default. - case cacheSerializer(CacheSerializer) - - /// Modifier for modifying an image right before it is used. - /// If the image was fetched directly from the downloader, the modifier will - /// run directly after the processor. - /// If the image is being fetched from a cache, the modifier will run after - /// the cacheSerializer. - /// Use `ImageModifier` when you need to set properties on a concrete type - /// of `Image`, such as a `UIImage`, that do not persist when caching the image. - case imageModifier(ImageModifier) - - /// Keep the existing image while setting another image to an image view. - /// By setting this option, the placeholder image parameter of imageview extension method - /// will be ignored and the current image will be kept while loading or downloading the new image. - case keepCurrentImageWhileLoading - - /// If set, Kingfisher will only load the first frame from a animated image data file as a single image. - /// Loading a lot of animated images may take too much memory. It will be useful when you want to display a - /// static preview of the first frame from a animated image. - /// This option will be ignored if the target image is not animated image data. - case onlyLoadFirstFrame - - /// If set and an `ImageProcessor` is used, Kingfisher will try to cache both - /// the final result and original image. Kingfisher will have a chance to use - /// the original image when another processor is applied to the same resource, - /// instead of downloading it again. - case cacheOriginalImage -} - -precedencegroup ItemComparisonPrecedence { - associativity: none - higherThan: LogicalConjunctionPrecedence -} - -infix operator <== : ItemComparisonPrecedence - -// This operator returns true if two `KingfisherOptionsInfoItem` enum is the same, without considering the associated values. -func <== (lhs: KingfisherOptionsInfoItem, rhs: KingfisherOptionsInfoItem) -> Bool { - switch (lhs, rhs) { - case (.targetCache(_), .targetCache(_)): return true - case (.originalCache(_), .originalCache(_)): return true - case (.downloader(_), .downloader(_)): return true - case (.transition(_), .transition(_)): return true - case (.downloadPriority(_), .downloadPriority(_)): return true - case (.forceRefresh, .forceRefresh): return true - case (.fromMemoryCacheOrRefresh, .fromMemoryCacheOrRefresh): return true - case (.forceTransition, .forceTransition): return true - case (.cacheMemoryOnly, .cacheMemoryOnly): return true - case (.waitForCache, .waitForCache): return true - case (.onlyFromCache, .onlyFromCache): return true - case (.backgroundDecode, .backgroundDecode): return true - case (.callbackDispatchQueue(_), .callbackDispatchQueue(_)): return true - case (.scaleFactor(_), .scaleFactor(_)): return true - case (.preloadAllAnimationData, .preloadAllAnimationData): return true - case (.requestModifier(_), .requestModifier(_)): return true - case (.processor(_), .processor(_)): return true - case (.cacheSerializer(_), .cacheSerializer(_)): return true - case (.imageModifier(_), .imageModifier(_)): return true - case (.keepCurrentImageWhileLoading, .keepCurrentImageWhileLoading): return true - case (.onlyLoadFirstFrame, .onlyLoadFirstFrame): return true - case (.cacheOriginalImage, .cacheOriginalImage): return true - default: return false - } -} - - -extension Collection where Iterator.Element == KingfisherOptionsInfoItem { - func lastMatchIgnoringAssociatedValue(_ target: Iterator.Element) -> Iterator.Element? { - return reversed().first { $0 <== target } - } - - func removeAllMatchesIgnoringAssociatedValue(_ target: Iterator.Element) -> [Iterator.Element] { - return filter { !($0 <== target) } - } -} - -public extension Collection where Iterator.Element == KingfisherOptionsInfoItem { - /// The target `ImageCache` which is used. - public var targetCache: ImageCache? { - if let item = lastMatchIgnoringAssociatedValue(.targetCache(.default)), - case .targetCache(let cache) = item - { - return cache - } - return nil - } - - /// The original `ImageCache` which is used. - public var originalCache: ImageCache? { - if let item = lastMatchIgnoringAssociatedValue(.originalCache(.default)), - case .originalCache(let cache) = item - { - return cache - } - return targetCache - } - - /// The `ImageDownloader` which is specified. - public var downloader: ImageDownloader? { - if let item = lastMatchIgnoringAssociatedValue(.downloader(.default)), - case .downloader(let downloader) = item - { - return downloader - } - return nil - } - - /// Member for animation transition when using UIImageView. - public var transition: ImageTransition { - if let item = lastMatchIgnoringAssociatedValue(.transition(.none)), - case .transition(let transition) = item - { - return transition - } - return ImageTransition.none - } - - /// A `Float` value set as the priority of image download task. The value for it should be - /// between 0.0~1.0. - public var downloadPriority: Float { - if let item = lastMatchIgnoringAssociatedValue(.downloadPriority(0)), - case .downloadPriority(let priority) = item - { - return priority - } - return URLSessionTask.defaultPriority - } - - /// Whether an image will be always downloaded again or not. - public var forceRefresh: Bool { - return contains{ $0 <== .forceRefresh } - } - - /// Whether an image should be got only from memory cache or download. - public var fromMemoryCacheOrRefresh: Bool { - return contains{ $0 <== .fromMemoryCacheOrRefresh } - } - - /// Whether the transition should always happen or not. - public var forceTransition: Bool { - return contains{ $0 <== .forceTransition } - } - - /// Whether cache the image only in memory or not. - public var cacheMemoryOnly: Bool { - return contains{ $0 <== .cacheMemoryOnly } - } - - /// Whether the caching operation will be waited or not. - public var waitForCache: Bool { - return contains{ $0 <== .waitForCache } - } - - /// Whether only load the images from cache or not. - public var onlyFromCache: Bool { - return contains{ $0 <== .onlyFromCache } - } - - /// Whether the image should be decoded in background or not. - public var backgroundDecode: Bool { - return contains{ $0 <== .backgroundDecode } - } - - /// Whether the image data should be all loaded at once if it is an animated image. - public var preloadAllAnimationData: Bool { - return contains { $0 <== .preloadAllAnimationData } - } - - /// The queue of callbacks should happen from Kingfisher. - public var callbackDispatchQueue: DispatchQueue { - if let item = lastMatchIgnoringAssociatedValue(.callbackDispatchQueue(nil)), - case .callbackDispatchQueue(let queue) = item - { - return queue ?? DispatchQueue.main - } - return DispatchQueue.main - } - - /// The scale factor which should be used for the image. - public var scaleFactor: CGFloat { - if let item = lastMatchIgnoringAssociatedValue(.scaleFactor(0)), - case .scaleFactor(let scale) = item - { - return scale - } - return 1.0 - } - - /// The `ImageDownloadRequestModifier` will be used before sending a download request. - public var modifier: ImageDownloadRequestModifier { - if let item = lastMatchIgnoringAssociatedValue(.requestModifier(NoModifier.default)), - case .requestModifier(let modifier) = item - { - return modifier - } - return NoModifier.default - } - - /// `ImageProcessor` for processing when the downloading finishes. - public var processor: ImageProcessor { - if let item = lastMatchIgnoringAssociatedValue(.processor(DefaultImageProcessor.default)), - case .processor(let processor) = item - { - return processor - } - return DefaultImageProcessor.default - } - - /// `ImageModifier` for modifying right before the image is displayed. - public var imageModifier: ImageModifier { - if let item = lastMatchIgnoringAssociatedValue(.imageModifier(DefaultImageModifier.default)), - case .imageModifier(let imageModifier) = item - { - return imageModifier - } - return DefaultImageModifier.default - } - - /// `CacheSerializer` to convert image to data for storing in cache. - public var cacheSerializer: CacheSerializer { - if let item = lastMatchIgnoringAssociatedValue(.cacheSerializer(DefaultCacheSerializer.default)), - case .cacheSerializer(let cacheSerializer) = item - { - return cacheSerializer - } - return DefaultCacheSerializer.default - } - - /// Keep the existing image while setting another image to an image view. - /// Or the placeholder will be used while downloading. - public var keepCurrentImageWhileLoading: Bool { - return contains { $0 <== .keepCurrentImageWhileLoading } - } - - public var onlyLoadFirstFrame: Bool { - return contains { $0 <== .onlyLoadFirstFrame } - } - - public var cacheOriginalImage: Bool { - return contains { $0 <== .cacheOriginalImage } - } -} diff --git a/Pods/Kingfisher/Sources/Placeholder.swift b/Pods/Kingfisher/Sources/Placeholder.swift deleted file mode 100755 index 3ebaf0b..0000000 --- a/Pods/Kingfisher/Sources/Placeholder.swift +++ /dev/null @@ -1,82 +0,0 @@ -// -// Placeholder.swift -// Kingfisher -// -// Created by Tieme van Veen on 28/08/2017. -// -// Copyright (c) 2018 Wei Wang -// -// 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. - -#if os(macOS) - import AppKit -#else - import UIKit -#endif - - -/// Represent a placeholder type which could be set while loading as well as -/// loading finished without getting an image. -public protocol Placeholder { - - /// How the placeholder should be added to a given image view. - func add(to imageView: ImageView) - - /// How the placeholder should be removed from a given image view. - func remove(from imageView: ImageView) -} - -/// Default implementation of an image placeholder. The image will be set or -/// reset directly for `image` property of the image view. -extension Placeholder where Self: Image { - - /// How the placeholder should be added to a given image view. - public func add(to imageView: ImageView) { imageView.image = self } - - /// How the placeholder should be removed from a given image view. - public func remove(from imageView: ImageView) { imageView.image = nil } -} - -extension Image: Placeholder {} - -/// Default implementation of an arbitrary view as placeholder. The view will be -/// added as a subview when adding and be removed from its super view when removing. -/// -/// To use your customize View type as placeholder, simply let it conforming to -/// `Placeholder` by `extension MyView: Placeholder {}`. -extension Placeholder where Self: View { - - /// How the placeholder should be added to a given image view. - public func add(to imageView: ImageView) { - imageView.addSubview(self) - - self.translatesAutoresizingMaskIntoConstraints = false - NSLayoutConstraint.activate([ - NSLayoutConstraint(item: self, attribute: .centerX, relatedBy: .equal, toItem: imageView, attribute: .centerX, multiplier: 1, constant: 0), - NSLayoutConstraint(item: self, attribute: .centerY, relatedBy: .equal, toItem: imageView, attribute: .centerY, multiplier: 1, constant: 0), - NSLayoutConstraint(item: self, attribute: .height, relatedBy: .equal, toItem: imageView, attribute: .height, multiplier: 1, constant: 0), - NSLayoutConstraint(item: self, attribute: .width, relatedBy: .equal, toItem: imageView, attribute: .width, multiplier: 1, constant: 0) - ]) - } - - /// How the placeholder should be removed from a given image view. - public func remove(from imageView: ImageView) { - self.removeFromSuperview() - } -} diff --git a/Pods/Kingfisher/Sources/RequestModifier.swift b/Pods/Kingfisher/Sources/RequestModifier.swift deleted file mode 100644 index 1e099bf..0000000 --- a/Pods/Kingfisher/Sources/RequestModifier.swift +++ /dev/null @@ -1,53 +0,0 @@ -// -// RequestModifier.swift -// Kingfisher -// -// Created by Wei Wang on 2016/09/05. -// -// Copyright (c) 2018 Wei Wang -// -// 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 - -/// Request modifier of image downloader. -public protocol ImageDownloadRequestModifier { - func modified(for request: URLRequest) -> URLRequest? -} - -struct NoModifier: ImageDownloadRequestModifier { - static let `default` = NoModifier() - private init() {} - func modified(for request: URLRequest) -> URLRequest? { - return request - } -} - -public struct AnyModifier: ImageDownloadRequestModifier { - - let block: (URLRequest) -> URLRequest? - - public func modified(for request: URLRequest) -> URLRequest? { - return block(request) - } - - public init(modify: @escaping (URLRequest) -> URLRequest? ) { - block = modify - } -} diff --git a/Pods/Kingfisher/Sources/Resource.swift b/Pods/Kingfisher/Sources/Resource.swift deleted file mode 100755 index c71f24d..0000000 --- a/Pods/Kingfisher/Sources/Resource.swift +++ /dev/null @@ -1,74 +0,0 @@ -// -// Resource.swift -// Kingfisher -// -// Created by Wei Wang on 15/4/6. -// -// Copyright (c) 2018 Wei Wang -// -// 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 - - -/// `Resource` protocol defines how to download and cache a resource from network. -public protocol Resource { - /// The key used in cache. - var cacheKey: String { get } - - /// The target image URL. - var downloadURL: URL { get } -} - -/** - ImageResource is a simple combination of `downloadURL` and `cacheKey`. - - When passed to image view set methods, Kingfisher will try to download the target - image from the `downloadURL`, and then store it with the `cacheKey` as the key in cache. - */ -public struct ImageResource: Resource { - /// The key used in cache. - public let cacheKey: String - - /// The target image URL. - public let downloadURL: URL - - /** - Create a resource. - - - parameter downloadURL: The target image URL. - - parameter cacheKey: The cache key. If `nil`, Kingfisher will use the `absoluteString` of `downloadURL` as the key. - - - returns: A resource. - */ - public init(downloadURL: URL, cacheKey: String? = nil) { - self.downloadURL = downloadURL - self.cacheKey = cacheKey ?? downloadURL.absoluteString - } -} - -/** - URL conforms to `Resource` in Kingfisher. - The `absoluteString` of this URL is used as `cacheKey`. And the URL itself will be used as `downloadURL`. - If you need customize the url and/or cache key, use `ImageResource` instead. - */ -extension URL: Resource { - public var cacheKey: String { return absoluteString } - public var downloadURL: URL { return self } -} diff --git a/Pods/Kingfisher/Sources/String+MD5.swift b/Pods/Kingfisher/Sources/String+MD5.swift deleted file mode 100755 index fa173a9..0000000 --- a/Pods/Kingfisher/Sources/String+MD5.swift +++ /dev/null @@ -1,285 +0,0 @@ -// -// String+MD5.swift -// Kingfisher -// -// To date, adding CommonCrypto to a Swift framework is problematic. See: -// http://stackoverflow.com/questions/25248598/importing-commoncrypto-in-a-swift-framework -// We're using a subset and modified version of CryptoSwift as an alternative. -// The following is an altered source version that only includes MD5. The original software can be found at: -// https://github.com/krzyzanowskim/CryptoSwift -// This is the original copyright notice: - -/* -Copyright (C) 2014 Marcin Krzyżanowski -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose,including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: -- The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation is required. -- Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -- This notice may not be removed or altered from any source or binary distribution. -*/ - -import Foundation - -extension String: KingfisherCompatible { } - -extension Kingfisher where Base == String { - public var md5: String { - if let data = base.data(using: .utf8, allowLossyConversion: true) { - - let message = data.withUnsafeBytes { bytes -> [UInt8] in - return Array(UnsafeBufferPointer(start: bytes, count: data.count)) - } - - let MD5Calculator = MD5(message) - let MD5Data = MD5Calculator.calculate() - - var MD5String = String() - for c in MD5Data { - MD5String += String(format: "%02x", c) - } - return MD5String - - } else { - return base - } - } -} - - -/** array of bytes, little-endian representation */ -func arrayOfBytes(_ value: T, length: Int? = nil) -> [UInt8] { - let totalBytes = length ?? (MemoryLayout.size * 8) - - let valuePointer = UnsafeMutablePointer.allocate(capacity: 1) - valuePointer.pointee = value - - let bytes = valuePointer.withMemoryRebound(to: UInt8.self, capacity: totalBytes) { (bytesPointer) -> [UInt8] in - var bytes = [UInt8](repeating: 0, count: totalBytes) - for j in 0...size, totalBytes) { - bytes[totalBytes - 1 - j] = (bytesPointer + j).pointee - } - return bytes - } - - #if swift(>=4.1) - valuePointer.deinitialize(count: 1) - valuePointer.deallocate() - #else - valuePointer.deinitialize() - valuePointer.deallocate(capacity: 1) - #endif - - return bytes -} - -extension Int { - /** Array of bytes with optional padding (little-endian) */ - func bytes(_ totalBytes: Int = MemoryLayout.size) -> [UInt8] { - return arrayOfBytes(self, length: totalBytes) - } - -} - -extension NSMutableData { - - /** Convenient way to append bytes */ - func appendBytes(_ arrayOfBytes: [UInt8]) { - append(arrayOfBytes, length: arrayOfBytes.count) - } - -} - -protocol HashProtocol { - var message: Array { get } - - /** Common part for hash calculation. Prepare header data. */ - func prepare(_ len: Int) -> Array -} - -extension HashProtocol { - - func prepare(_ len: Int) -> Array { - var tmpMessage = message - - // Step 1. Append Padding Bits - tmpMessage.append(0x80) // append one bit (UInt8 with one bit) to message - - // append "0" bit until message length in bits ≡ 448 (mod 512) - var msgLength = tmpMessage.count - var counter = 0 - - while msgLength % len != (len - 8) { - counter += 1 - msgLength += 1 - } - - tmpMessage += Array(repeating: 0, count: counter) - return tmpMessage - } -} - -func toUInt32Array(_ slice: ArraySlice) -> Array { - var result = Array() - result.reserveCapacity(16) - - for idx in stride(from: slice.startIndex, to: slice.endIndex, by: MemoryLayout.size) { - let d0 = UInt32(slice[idx.advanced(by: 3)]) << 24 - let d1 = UInt32(slice[idx.advanced(by: 2)]) << 16 - let d2 = UInt32(slice[idx.advanced(by: 1)]) << 8 - let d3 = UInt32(slice[idx]) - let val: UInt32 = d0 | d1 | d2 | d3 - - result.append(val) - } - return result -} - -struct BytesIterator: IteratorProtocol { - - let chunkSize: Int - let data: [UInt8] - - init(chunkSize: Int, data: [UInt8]) { - self.chunkSize = chunkSize - self.data = data - } - - var offset = 0 - - mutating func next() -> ArraySlice? { - let end = min(chunkSize, data.count - offset) - let result = data[offset.. 0 ? result : nil - } -} - -struct BytesSequence: Sequence { - let chunkSize: Int - let data: [UInt8] - - func makeIterator() -> BytesIterator { - return BytesIterator(chunkSize: chunkSize, data: data) - } -} - -func rotateLeft(_ value: UInt32, bits: UInt32) -> UInt32 { - return ((value << bits) & 0xFFFFFFFF) | (value >> (32 - bits)) -} - -class MD5: HashProtocol { - - static let size = 16 // 128 / 8 - let message: [UInt8] - - init (_ message: [UInt8]) { - self.message = message - } - - /** specifies the per-round shift amounts */ - private let shifts: [UInt32] = [7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, - 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, - 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, - 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21] - - /** binary integer part of the sines of integers (Radians) */ - private let sines: [UInt32] = [0xd76aa478, 0xe8c7b756, 0x242070db, 0xc1bdceee, - 0xf57c0faf, 0x4787c62a, 0xa8304613, 0xfd469501, - 0x698098d8, 0x8b44f7af, 0xffff5bb1, 0x895cd7be, - 0x6b901122, 0xfd987193, 0xa679438e, 0x49b40821, - 0xf61e2562, 0xc040b340, 0x265e5a51, 0xe9b6c7aa, - 0xd62f105d, 0x02441453, 0xd8a1e681, 0xe7d3fbc8, - 0x21e1cde6, 0xc33707d6, 0xf4d50d87, 0x455a14ed, - 0xa9e3e905, 0xfcefa3f8, 0x676f02d9, 0x8d2a4c8a, - 0xfffa3942, 0x8771f681, 0x6d9d6122, 0xfde5380c, - 0xa4beea44, 0x4bdecfa9, 0xf6bb4b60, 0xbebfbc70, - 0x289b7ec6, 0xeaa127fa, 0xd4ef3085, 0x4881d05, - 0xd9d4d039, 0xe6db99e5, 0x1fa27cf8, 0xc4ac5665, - 0xf4292244, 0x432aff97, 0xab9423a7, 0xfc93a039, - 0x655b59c3, 0x8f0ccc92, 0xffeff47d, 0x85845dd1, - 0x6fa87e4f, 0xfe2ce6e0, 0xa3014314, 0x4e0811a1, - 0xf7537e82, 0xbd3af235, 0x2ad7d2bb, 0xeb86d391] - - private let hashes: [UInt32] = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476] - - func calculate() -> [UInt8] { - var tmpMessage = prepare(64) - tmpMessage.reserveCapacity(tmpMessage.count + 4) - - // hash values - var hh = hashes - - // Step 2. Append Length a 64-bit representation of lengthInBits - let lengthInBits = (message.count * 8) - let lengthBytes = lengthInBits.bytes(64 / 8) - tmpMessage += lengthBytes.reversed() - - // Process the message in successive 512-bit chunks: - let chunkSizeBytes = 512 / 8 // 64 - - for chunk in BytesSequence(chunkSize: chunkSizeBytes, data: tmpMessage) { - // break chunk into sixteen 32-bit words M[j], 0 ≤ j ≤ 15 - var M = toUInt32Array(chunk) - assert(M.count == 16, "Invalid array") - - // Initialize hash value for this chunk: - var A: UInt32 = hh[0] - var B: UInt32 = hh[1] - var C: UInt32 = hh[2] - var D: UInt32 = hh[3] - - var dTemp: UInt32 = 0 - - // Main loop - for j in 0 ..< sines.count { - var g = 0 - var F: UInt32 = 0 - - switch j { - case 0...15: - F = (B & C) | ((~B) & D) - g = j - break - case 16...31: - F = (D & B) | (~D & C) - g = (5 * j + 1) % 16 - break - case 32...47: - F = B ^ C ^ D - g = (3 * j + 5) % 16 - break - case 48...63: - F = C ^ (B | (~D)) - g = (7 * j) % 16 - break - default: - break - } - dTemp = D - D = C - C = B - B = B &+ rotateLeft((A &+ F &+ sines[j] &+ M[g]), bits: shifts[j]) - A = dTemp - } - - hh[0] = hh[0] &+ A - hh[1] = hh[1] &+ B - hh[2] = hh[2] &+ C - hh[3] = hh[3] &+ D - } - - var result = [UInt8]() - result.reserveCapacity(hh.count / 4) - - hh.forEach { - let itemLE = $0.littleEndian - let r1 = UInt8(itemLE & 0xff) - let r2 = UInt8((itemLE >> 8) & 0xff) - let r3 = UInt8((itemLE >> 16) & 0xff) - let r4 = UInt8((itemLE >> 24) & 0xff) - result += [r1, r2, r3, r4] - } - return result - } -} diff --git a/Pods/Kingfisher/Sources/ThreadHelper.swift b/Pods/Kingfisher/Sources/ThreadHelper.swift deleted file mode 100755 index a737b6e..0000000 --- a/Pods/Kingfisher/Sources/ThreadHelper.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// ThreadHelper.swift -// Kingfisher -// -// Created by Wei Wang on 15/10/9. -// -// Copyright (c) 2018 Wei Wang -// -// 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 - -extension DispatchQueue { - // This method will dispatch the `block` to self. - // If `self` is the main queue, and current thread is main thread, the block - // will be invoked immediately instead of being dispatched. - func safeAsync(_ block: @escaping ()->()) { - if self === DispatchQueue.main && Thread.isMainThread { - block() - } else { - async { block() } - } - } -} diff --git a/Pods/Kingfisher/Sources/UIButton+Kingfisher.swift b/Pods/Kingfisher/Sources/UIButton+Kingfisher.swift deleted file mode 100755 index 344c489..0000000 --- a/Pods/Kingfisher/Sources/UIButton+Kingfisher.swift +++ /dev/null @@ -1,274 +0,0 @@ -// -// UIButton+Kingfisher.swift -// Kingfisher -// -// Created by Wei Wang on 15/4/13. -// -// Copyright (c) 2018 Wei Wang -// -// 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 UIKit - -// MARK: - Set Images -/** - * Set image to use in button from web for a specified state. - */ -extension Kingfisher where Base: UIButton { - /** - Set an image to use for a specified state with a resource, a placeholder image, options, progress handler and - completion handler. - - - parameter resource: Resource object contains information such as `cacheKey` and `downloadURL`. - - parameter state: The state that uses the specified image. - - parameter placeholder: A placeholder image when retrieving the image at URL. - - parameter options: A dictionary could control some behaviors. See `KingfisherOptionsInfo` for more. - - parameter progressBlock: Called when the image downloading progress gets updated. - - parameter completionHandler: Called when the image retrieved and set. - - - returns: A task represents the retrieving process. - - - note: Both the `progressBlock` and `completionHandler` will be invoked in main thread. - The `CallbackDispatchQueue` specified in `optionsInfo` will not be used in callbacks of this method. - - If `resource` is `nil`, the `placeholder` image will be set and - `completionHandler` will be called with both `error` and `image` being `nil`. - */ - @discardableResult - public func setImage(with resource: Resource?, - for state: UIControl.State, - placeholder: UIImage? = nil, - options: KingfisherOptionsInfo? = nil, - progressBlock: DownloadProgressBlock? = nil, - completionHandler: CompletionHandler? = nil) -> RetrieveImageTask - { - guard let resource = resource else { - base.setImage(placeholder, for: state) - setWebURL(nil, for: state) - completionHandler?(nil, nil, .none, nil) - return .empty - } - - let options = KingfisherManager.shared.defaultOptions + (options ?? KingfisherEmptyOptionsInfo) - if !options.keepCurrentImageWhileLoading { - base.setImage(placeholder, for: state) - } - - setWebURL(resource.downloadURL, for: state) - let task = KingfisherManager.shared.retrieveImage( - with: resource, - options: options, - progressBlock: { receivedSize, totalSize in - guard resource.downloadURL == self.webURL(for: state) else { - return - } - if let progressBlock = progressBlock { - progressBlock(receivedSize, totalSize) - } - }, - completionHandler: {[weak base] image, error, cacheType, imageURL in - DispatchQueue.main.safeAsync { - guard let strongBase = base, imageURL == self.webURL(for: state) else { - completionHandler?(image, error, cacheType, imageURL) - return - } - self.setImageTask(nil) - if image != nil { - strongBase.setImage(image, for: state) - } - - completionHandler?(image, error, cacheType, imageURL) - } - }) - - setImageTask(task) - return task - } - - /** - Cancel the image download task bounded to the image view if it is running. - Nothing will happen if the downloading has already finished. - */ - public func cancelImageDownloadTask() { - imageTask?.cancel() - } - - /** - Set the background image to use for a specified state with a resource, - a placeholder image, options progress handler and completion handler. - - - parameter resource: Resource object contains information such as `cacheKey` and `downloadURL`. - - parameter state: The state that uses the specified image. - - parameter placeholder: A placeholder image when retrieving the image at URL. - - parameter options: A dictionary could control some behaviors. See `KingfisherOptionsInfo` for more. - - parameter progressBlock: Called when the image downloading progress gets updated. - - parameter completionHandler: Called when the image retrieved and set. - - - returns: A task represents the retrieving process. - - - note: Both the `progressBlock` and `completionHandler` will be invoked in main thread. - The `CallbackDispatchQueue` specified in `optionsInfo` will not be used in callbacks of this method. - - If `resource` is `nil`, the `placeholder` image will be set and - `completionHandler` will be called with both `error` and `image` being `nil`. - */ - @discardableResult - public func setBackgroundImage(with resource: Resource?, - for state: UIControl.State, - placeholder: UIImage? = nil, - options: KingfisherOptionsInfo? = nil, - progressBlock: DownloadProgressBlock? = nil, - completionHandler: CompletionHandler? = nil) -> RetrieveImageTask - { - guard let resource = resource else { - base.setBackgroundImage(placeholder, for: state) - setBackgroundWebURL(nil, for: state) - completionHandler?(nil, nil, .none, nil) - return .empty - } - - let options = KingfisherManager.shared.defaultOptions + (options ?? KingfisherEmptyOptionsInfo) - if !options.keepCurrentImageWhileLoading { - base.setBackgroundImage(placeholder, for: state) - } - - setBackgroundWebURL(resource.downloadURL, for: state) - let task = KingfisherManager.shared.retrieveImage( - with: resource, - options: options, - progressBlock: { receivedSize, totalSize in - guard resource.downloadURL == self.backgroundWebURL(for: state) else { - return - } - if let progressBlock = progressBlock { - progressBlock(receivedSize, totalSize) - } - }, - completionHandler: { [weak base] image, error, cacheType, imageURL in - DispatchQueue.main.safeAsync { - guard let strongBase = base, imageURL == self.backgroundWebURL(for: state) else { - completionHandler?(image, error, cacheType, imageURL) - return - } - self.setBackgroundImageTask(nil) - if image != nil { - strongBase.setBackgroundImage(image, for: state) - } - completionHandler?(image, error, cacheType, imageURL) - } - }) - - setBackgroundImageTask(task) - return task - } - - /** - Cancel the background image download task bounded to the image view if it is running. - Nothing will happen if the downloading has already finished. - */ - public func cancelBackgroundImageDownloadTask() { - backgroundImageTask?.cancel() - } - -} - -// MARK: - Associated Object -private var lastURLKey: Void? -private var imageTaskKey: Void? - -extension Kingfisher where Base: UIButton { - /** - Get the image URL binded to this button for a specified state. - - - parameter state: The state that uses the specified image. - - - returns: Current URL for image. - */ - public func webURL(for state: UIControl.State) -> URL? { - return webURLs[NSNumber(value:state.rawValue)] as? URL - } - - fileprivate func setWebURL(_ url: URL?, for state: UIControl.State) { - webURLs[NSNumber(value:state.rawValue)] = url - } - - fileprivate var webURLs: NSMutableDictionary { - var dictionary = objc_getAssociatedObject(base, &lastURLKey) as? NSMutableDictionary - if dictionary == nil { - dictionary = NSMutableDictionary() - setWebURLs(dictionary!) - } - return dictionary! - } - - fileprivate func setWebURLs(_ URLs: NSMutableDictionary) { - objc_setAssociatedObject(base, &lastURLKey, URLs, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) - } - - fileprivate var imageTask: RetrieveImageTask? { - return objc_getAssociatedObject(base, &imageTaskKey) as? RetrieveImageTask - } - - fileprivate func setImageTask(_ task: RetrieveImageTask?) { - objc_setAssociatedObject(base, &imageTaskKey, task, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) - } -} - - -private var lastBackgroundURLKey: Void? -private var backgroundImageTaskKey: Void? - - -extension Kingfisher where Base: UIButton { - /** - Get the background image URL binded to this button for a specified state. - - - parameter state: The state that uses the specified background image. - - - returns: Current URL for background image. - */ - public func backgroundWebURL(for state: UIControl.State) -> URL? { - return backgroundWebURLs[NSNumber(value:state.rawValue)] as? URL - } - - fileprivate func setBackgroundWebURL(_ url: URL?, for state: UIControl.State) { - backgroundWebURLs[NSNumber(value:state.rawValue)] = url - } - - fileprivate var backgroundWebURLs: NSMutableDictionary { - var dictionary = objc_getAssociatedObject(base, &lastBackgroundURLKey) as? NSMutableDictionary - if dictionary == nil { - dictionary = NSMutableDictionary() - setBackgroundWebURLs(dictionary!) - } - return dictionary! - } - - fileprivate func setBackgroundWebURLs(_ URLs: NSMutableDictionary) { - objc_setAssociatedObject(base, &lastBackgroundURLKey, URLs, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) - } - - fileprivate var backgroundImageTask: RetrieveImageTask? { - return objc_getAssociatedObject(base, &backgroundImageTaskKey) as? RetrieveImageTask - } - - fileprivate func setBackgroundImageTask(_ task: RetrieveImageTask?) { - objc_setAssociatedObject(base, &backgroundImageTaskKey, task, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) - } -} diff --git a/Pods/Manifest.lock b/Pods/Manifest.lock deleted file mode 100644 index ad74802..0000000 --- a/Pods/Manifest.lock +++ /dev/null @@ -1,87 +0,0 @@ -PODS: - - Differentiator (3.1.0) - - Kingfisher (4.10.1) - - Nimble (8.0.2) - - Quick (1.3.4) - - RxAppState (1.5.0): - - RxCocoa (~> 4.4) - - RxSwift (~> 4.4) - - RxAtomic (4.4.2) - - RxBlocking (4.5.0): - - RxSwift (>= 4.4.2, ~> 4.4) - - RxCocoa (4.4.2): - - RxSwift (>= 4.4.2, ~> 4.4) - - RxDataSources (3.1.0): - - Differentiator (~> 3.0) - - RxCocoa (~> 4.0) - - RxSwift (~> 4.0) - - RxKeyboard (0.9.0): - - RxCocoa (>= 4.3.1) - - RxSwift (>= 4.3.1) - - RxOptional (3.6.2): - - RxCocoa (~> 4.0) - - RxSwift (~> 4.0) - - RxSwift (4.4.2): - - RxAtomic (>= 4.4.2, ~> 4.4) - - RxTest (4.5.0): - - RxSwift (>= 4.4.2, ~> 4.4) - - SnapKit (4.2.0) - - Then (2.4.0) - - Toaster (2.1.1) - -DEPENDENCIES: - - Kingfisher (~> 4.10.1) - - Nimble (~> 8.0.0) - - Quick (~> 1.3.1) - - RxAppState - - RxBlocking (~> 4.0) - - RxCocoa (~> 4.4.0) - - RxDataSources (~> 3.1.0) - - RxKeyboard (~> 0.9.0) - - RxOptional (~> 3.6.2) - - RxSwift (~> 4.4.0) - - RxTest (~> 4.0) - - SnapKit (~> 4.2.0) - - Then (~> 2.4.0) - - Toaster (~> 2.1.0) - -SPEC REPOS: - https://github.com/CocoaPods/Specs.git: - - Differentiator - - Kingfisher - - Nimble - - Quick - - RxAppState - - RxAtomic - - RxBlocking - - RxCocoa - - RxDataSources - - RxKeyboard - - RxOptional - - RxSwift - - RxTest - - SnapKit - - Then - - Toaster - -SPEC CHECKSUMS: - Differentiator: be49ca3408f0ecfc761e4c7763d20c62be01b9ad - Kingfisher: c148cd7b47ebde9989f6bc7c27dcaa79d81279a0 - Nimble: 622629381bda1dd5678162f21f1368cec7cbba60 - Quick: f4f7f063c524394c73ed93ac70983c609805d481 - RxAppState: 46cae19e582daf7283a8f9ef553e7c049e1565b4 - RxAtomic: d00e97c10db88c6f08540e0bf2752fc5a2404167 - RxBlocking: 79413e4d916f44bb3e113c5b2cc059e36fe58910 - RxCocoa: 477990dc3b4c3ff55fb0ac77e1cc06244e0aaec8 - RxDataSources: a843bad90c29817f5923ec8163f4af2de084ceb3 - RxKeyboard: 4f782303f499f41577b41c96c6a9a5d7acd51a47 - RxOptional: 80426a0ddbd092573e4c482d8cc13302078c4d5e - RxSwift: 74c29b693c8e42b0f64400e8b06564575742d649 - RxTest: 3ccb66bfbace0bf7df1c43a7c75d046f8ce60372 - SnapKit: fe8a619752f3f27075cc9a90244d75c6c3f27e2a - Then: 71866660c7af35a7343831f7668e7cd2b62ee0f2 - Toaster: a6c9532de1ded8105e77376f7dffeb2e12b46dbb - -PODFILE CHECKSUM: 40af1741cc4f5d8f03824484297ed0554bb9cc30 - -COCOAPODS: 1.8.3 diff --git a/Pods/Nimble/Carthage/Checkouts/CwlCatchException/Sources/CwlCatchException/CwlCatchException.swift b/Pods/Nimble/Carthage/Checkouts/CwlCatchException/Sources/CwlCatchException/CwlCatchException.swift deleted file mode 100644 index 3e89e23..0000000 --- a/Pods/Nimble/Carthage/Checkouts/CwlCatchException/Sources/CwlCatchException/CwlCatchException.swift +++ /dev/null @@ -1,35 +0,0 @@ -// -// CwlCatchException.swift -// CwlAssertionTesting -// -// Created by Matt Gallagher on 2016/01/10. -// Copyright © 2016 Matt Gallagher ( http://cocoawithlove.com ). All rights reserved. -// -// Permission to use, copy, modify, and/or distribute this software for any -// purpose with or without fee is hereby granted, provided that the above -// copyright notice and this permission notice appear in all copies. -// -// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY -// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -// IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -// - -import Foundation - -#if SWIFT_PACKAGE -import CwlCatchExceptionSupport -#endif - -private func catchReturnTypeConverter(_ type: T.Type, block: () -> Void) -> T? { - return catchExceptionOfKind(type, block) as? T -} - -extension NSException { - public static func catchException(in block: () -> Void) -> Self? { - return catchReturnTypeConverter(self, block: block) - } -} diff --git a/Pods/Nimble/Carthage/Checkouts/CwlCatchException/Sources/CwlCatchExceptionSupport/CwlCatchException.m b/Pods/Nimble/Carthage/Checkouts/CwlCatchException/Sources/CwlCatchExceptionSupport/CwlCatchException.m deleted file mode 100644 index 8cf414f..0000000 --- a/Pods/Nimble/Carthage/Checkouts/CwlCatchException/Sources/CwlCatchExceptionSupport/CwlCatchException.m +++ /dev/null @@ -1,37 +0,0 @@ -// -// CwlCatchException.m -// CwlAssertionTesting -// -// Created by Matt Gallagher on 2016/01/10. -// Copyright © 2016 Matt Gallagher ( http://cocoawithlove.com ). All rights reserved. -// -// Permission to use, copy, modify, and/or distribute this software for any -// purpose with or without fee is hereby granted, provided that the above -// copyright notice and this permission notice appear in all copies. -// -// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY -// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -// IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -// - -#import "CwlCatchException.h" - -#if !SWIFT_PACKAGE && NON_SWIFT_PACKAGE -__attribute__((visibility("hidden"))) -#endif -NSException* catchExceptionOfKind(Class __nonnull type, __attribute__((noescape)) void (^ __nonnull inBlock)(void)) { - @try { - inBlock(); - } @catch (NSException *exception) { - if ([exception isKindOfClass:type]) { - return exception; - } else { - @throw; - } - } - return nil; -} diff --git a/Pods/Nimble/Carthage/Checkouts/CwlCatchException/Sources/CwlCatchExceptionSupport/include/CwlCatchException.h b/Pods/Nimble/Carthage/Checkouts/CwlCatchException/Sources/CwlCatchExceptionSupport/include/CwlCatchException.h deleted file mode 100644 index 0c8dd87..0000000 --- a/Pods/Nimble/Carthage/Checkouts/CwlCatchException/Sources/CwlCatchExceptionSupport/include/CwlCatchException.h +++ /dev/null @@ -1,32 +0,0 @@ -// -// CwlCatchException.h -// CwlCatchException -// -// Created by Matt Gallagher on 2016/01/10. -// Copyright © 2016 Matt Gallagher ( http://cocoawithlove.com ). All rights reserved. -// -// Permission to use, copy, modify, and/or distribute this software for any -// purpose with or without fee is hereby granted, provided that the above -// copyright notice and this permission notice appear in all copies. -// -// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY -// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -// IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -// - -#import - -//! Project version number for CwlCatchException. -FOUNDATION_EXPORT double CwlCatchExceptionVersionNumber; - -//! Project version string for CwlCatchException. -FOUNDATION_EXPORT const unsigned char CwlCatchExceptionVersionString[]; - -#if !SWIFT_PACKAGE && NON_SWIFT_PACKAGE -__attribute__((visibility("hidden"))) -#endif -NSException* __nullable catchExceptionOfKind(Class __nonnull type, __attribute__((noescape)) void (^ __nonnull inBlock)(void)); diff --git a/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlMachBadInstructionHandler/CwlMachBadInstructionHandler.m b/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlMachBadInstructionHandler/CwlMachBadInstructionHandler.m deleted file mode 100644 index 8183196..0000000 --- a/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlMachBadInstructionHandler/CwlMachBadInstructionHandler.m +++ /dev/null @@ -1,50 +0,0 @@ -// -// CwlMachBadExceptionHandler.m -// CwlPreconditionTesting -// -// Created by Matt Gallagher on 2016/01/10. -// Copyright © 2016 Matt Gallagher ( http://cocoawithlove.com ). All rights reserved. -// -// Permission to use, copy, modify, and/or distribute this software for any -// purpose with or without fee is hereby granted, provided that the above -// copyright notice and this permission notice appear in all copies. -// -// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY -// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -// IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -// - -#if defined(__x86_64__) - - #import "mach_excServer.h" - #import "CwlMachBadInstructionHandler.h" - - @protocol BadInstructionReply - +(NSNumber *)receiveReply:(NSValue *)value; - @end - - /// A basic function that receives callbacks from mach_exc_server and relays them to the Swift implemented BadInstructionException.catch_mach_exception_raise_state. - kern_return_t catch_mach_exception_raise_state(mach_port_t exception_port, exception_type_t exception, const mach_exception_data_t code, mach_msg_type_number_t codeCnt, int *flavor, const thread_state_t old_state, mach_msg_type_number_t old_stateCnt, thread_state_t new_state, mach_msg_type_number_t *new_stateCnt) { - bad_instruction_exception_reply_t reply = { exception_port, exception, code, codeCnt, flavor, old_state, old_stateCnt, new_state, new_stateCnt }; - Class badInstructionClass = NSClassFromString(@"BadInstructionException"); - NSValue *value = [NSValue valueWithBytes: &reply objCType: @encode(bad_instruction_exception_reply_t)]; - return [[badInstructionClass performSelector: @selector(receiveReply:) withObject: value] intValue]; - } - - // The mach port should be configured so that this function is never used. - kern_return_t catch_mach_exception_raise(mach_port_t exception_port, mach_port_t thread, mach_port_t task, exception_type_t exception, mach_exception_data_t code, mach_msg_type_number_t codeCnt) { - assert(false); - return KERN_FAILURE; - } - - // The mach port should be configured so that this function is never used. - kern_return_t catch_mach_exception_raise_state_identity(mach_port_t exception_port, mach_port_t thread, mach_port_t task, exception_type_t exception, mach_exception_data_t code, mach_msg_type_number_t codeCnt, int *flavor, thread_state_t old_state, mach_msg_type_number_t old_stateCnt, thread_state_t new_state, mach_msg_type_number_t *new_stateCnt) { - assert(false); - return KERN_FAILURE; - } - -#endif diff --git a/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlMachBadInstructionHandler/include/CwlMachBadInstructionHandler.h b/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlMachBadInstructionHandler/include/CwlMachBadInstructionHandler.h deleted file mode 100644 index aef59c2..0000000 --- a/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlMachBadInstructionHandler/include/CwlMachBadInstructionHandler.h +++ /dev/null @@ -1,70 +0,0 @@ -// -// CwlMachBadInstructionHandler.h -// CwlPreconditionTesting -// -// Created by Matt Gallagher on 2016/01/10. -// Copyright © 2016 Matt Gallagher ( http://cocoawithlove.com ). All rights reserved. -// -// Permission to use, copy, modify, and/or distribute this software for any -// purpose with or without fee is hereby granted, provided that the above -// copyright notice and this permission notice appear in all copies. -// -// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY -// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -// IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -// - -#import -#import - -NS_ASSUME_NONNULL_BEGIN - -extern boolean_t mach_exc_server(mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP); - -// The request_mach_exception_raise_t struct is passed to mach_msg which assumes its exact layout. To avoid problems with different layouts, we keep the definition in C rather than Swift. -typedef struct -{ - mach_msg_header_t Head; - /* start of the kernel processed data */ - mach_msg_body_t msgh_body; - mach_msg_port_descriptor_t thread; - mach_msg_port_descriptor_t task; - /* end of the kernel processed data */ - NDR_record_t NDR; - exception_type_t exception; - mach_msg_type_number_t codeCnt; - int64_t code[2]; - int flavor; - mach_msg_type_number_t old_stateCnt; - natural_t old_state[224]; -} request_mach_exception_raise_t; - -// The reply_mach_exception_raise_state_t struct is passed to mach_msg which assumes its exact layout. To avoid problems with different layouts, we keep the definition in C rather than Swift. -typedef struct -{ - mach_msg_header_t Head; - NDR_record_t NDR; - kern_return_t RetCode; - int flavor; - mach_msg_type_number_t new_stateCnt; - natural_t new_state[224]; -} reply_mach_exception_raise_state_t; - -typedef struct -{ - mach_port_t exception_port; - exception_type_t exception; - mach_exception_data_type_t const * _Nullable code; - mach_msg_type_number_t codeCnt; - int32_t * _Nullable flavor; - natural_t const * _Nullable old_state; - mach_msg_type_number_t old_stateCnt; - thread_state_t _Nullable new_state; - mach_msg_type_number_t * _Nullable new_stateCnt; -} bad_instruction_exception_reply_t; - -NS_ASSUME_NONNULL_END diff --git a/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlMachBadInstructionHandler/mach_excServer.c b/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlMachBadInstructionHandler/mach_excServer.c deleted file mode 100644 index 733c564..0000000 --- a/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlMachBadInstructionHandler/mach_excServer.c +++ /dev/null @@ -1,537 +0,0 @@ -/* - * IDENTIFICATION: - * stub generated Sun Jan 29 19:05:29 2017 - * with a MiG generated by bootstrap_cmds-96.20.2 - * OPTIONS: - */ - -#if defined(__x86_64__) - -/* Module mach_exc */ - -#define __MIG_check__Request__mach_exc_subsystem__ 1 - -#include "mach_excServer.h" - -#ifndef mig_internal -#define mig_internal static __inline__ -#endif /* mig_internal */ - -#ifndef mig_external -#define mig_external -#endif /* mig_external */ - -#if !defined(__MigTypeCheck) && defined(TypeCheck) -#define __MigTypeCheck TypeCheck /* Legacy setting */ -#endif /* !defined(__MigTypeCheck) */ - -#if !defined(__MigKernelSpecificCode) && defined(_MIG_KERNEL_SPECIFIC_CODE_) -#define __MigKernelSpecificCode _MIG_KERNEL_SPECIFIC_CODE_ /* Legacy setting */ -#endif /* !defined(__MigKernelSpecificCode) */ - -#ifndef LimitCheck -#define LimitCheck 0 -#endif /* LimitCheck */ - -#ifndef min -#define min(a,b) ( ((a) < (b))? (a): (b) ) -#endif /* min */ - -#if !defined(_WALIGN_) -#define _WALIGN_(x) (((x) + 3) & ~3) -#endif /* !defined(_WALIGN_) */ - -#if !defined(_WALIGNSZ_) -#define _WALIGNSZ_(x) _WALIGN_(sizeof(x)) -#endif /* !defined(_WALIGNSZ_) */ - -#ifndef UseStaticTemplates -#define UseStaticTemplates 0 -#endif /* UseStaticTemplates */ - -#ifndef __DeclareRcvRpc -#define __DeclareRcvRpc(_NUM_, _NAME_) -#endif /* __DeclareRcvRpc */ - -#ifndef __BeforeRcvRpc -#define __BeforeRcvRpc(_NUM_, _NAME_) -#endif /* __BeforeRcvRpc */ - -#ifndef __AfterRcvRpc -#define __AfterRcvRpc(_NUM_, _NAME_) -#endif /* __AfterRcvRpc */ - -#ifndef __DeclareRcvSimple -#define __DeclareRcvSimple(_NUM_, _NAME_) -#endif /* __DeclareRcvSimple */ - -#ifndef __BeforeRcvSimple -#define __BeforeRcvSimple(_NUM_, _NAME_) -#endif /* __BeforeRcvSimple */ - -#ifndef __AfterRcvSimple -#define __AfterRcvSimple(_NUM_, _NAME_) -#endif /* __AfterRcvSimple */ - -#define novalue void - -#define msgh_request_port msgh_local_port -#define MACH_MSGH_BITS_REQUEST(bits) MACH_MSGH_BITS_LOCAL(bits) -#define msgh_reply_port msgh_remote_port -#define MACH_MSGH_BITS_REPLY(bits) MACH_MSGH_BITS_REMOTE(bits) - -#define MIG_RETURN_ERROR(X, code) {\ - ((mig_reply_error_t *)X)->RetCode = code;\ - ((mig_reply_error_t *)X)->NDR = NDR_record;\ - return;\ - } - -/* Forward Declarations */ - - -mig_internal novalue _Xmach_exception_raise - (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP); - -mig_internal novalue _Xmach_exception_raise_state - (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP); - -mig_internal novalue _Xmach_exception_raise_state_identity - (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP); - - -#if ( __MigTypeCheck ) -#if __MIG_check__Request__mach_exc_subsystem__ -#if !defined(__MIG_check__Request__mach_exception_raise_t__defined) -#define __MIG_check__Request__mach_exception_raise_t__defined - -mig_internal kern_return_t __MIG_check__Request__mach_exception_raise_t(__attribute__((__unused__)) __Request__mach_exception_raise_t *In0P) -{ - - typedef __Request__mach_exception_raise_t __Request; -#if __MigTypeCheck - unsigned int msgh_size; -#endif /* __MigTypeCheck */ - -#if __MigTypeCheck - msgh_size = In0P->Head.msgh_size; - if (!(In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || - (In0P->msgh_body.msgh_descriptor_count != 2) || - (msgh_size < (mach_msg_size_t)(sizeof(__Request) - 16)) || (msgh_size > (mach_msg_size_t)sizeof(__Request))) - return MIG_BAD_ARGUMENTS; -#endif /* __MigTypeCheck */ - -#if __MigTypeCheck - if (In0P->thread.type != MACH_MSG_PORT_DESCRIPTOR || - In0P->thread.disposition != 17) - return MIG_TYPE_ERROR; -#endif /* __MigTypeCheck */ - -#if __MigTypeCheck - if (In0P->task.type != MACH_MSG_PORT_DESCRIPTOR || - In0P->task.disposition != 17) - return MIG_TYPE_ERROR; -#endif /* __MigTypeCheck */ - -#if defined(__NDR_convert__int_rep__Request__mach_exception_raise_t__codeCnt__defined) - if (In0P->NDR.int_rep != NDR_record.int_rep) - __NDR_convert__int_rep__Request__mach_exception_raise_t__codeCnt(&In0P->codeCnt, In0P->NDR.int_rep); -#endif /* __NDR_convert__int_rep__Request__mach_exception_raise_t__codeCnt__defined */ -#if __MigTypeCheck - if ( In0P->codeCnt > 2 ) - return MIG_BAD_ARGUMENTS; - if (((msgh_size - (mach_msg_size_t)(sizeof(__Request) - 16)) / 8 < In0P->codeCnt) || - (msgh_size != (mach_msg_size_t)(sizeof(__Request) - 16) + (8 * In0P->codeCnt))) - return MIG_BAD_ARGUMENTS; -#endif /* __MigTypeCheck */ - - return MACH_MSG_SUCCESS; -} -#endif /* !defined(__MIG_check__Request__mach_exception_raise_t__defined) */ -#endif /* __MIG_check__Request__mach_exc_subsystem__ */ -#endif /* ( __MigTypeCheck ) */ - - -/* Routine mach_exception_raise */ -mig_internal novalue _Xmach_exception_raise - (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP) -{ - -#ifdef __MigPackStructs -#pragma pack(4) -#endif - typedef struct { - mach_msg_header_t Head; - /* start of the kernel processed data */ - mach_msg_body_t msgh_body; - mach_msg_port_descriptor_t thread; - mach_msg_port_descriptor_t task; - /* end of the kernel processed data */ - NDR_record_t NDR; - exception_type_t exception; - mach_msg_type_number_t codeCnt; - int64_t code[2]; - mach_msg_trailer_t trailer; - } Request __attribute__((unused)); -#ifdef __MigPackStructs -#pragma pack() -#endif - typedef __Request__mach_exception_raise_t __Request; - typedef __Reply__mach_exception_raise_t Reply __attribute__((unused)); - - /* - * typedef struct { - * mach_msg_header_t Head; - * NDR_record_t NDR; - * kern_return_t RetCode; - * } mig_reply_error_t; - */ - - Request *In0P = (Request *) InHeadP; - Reply *OutP = (Reply *) OutHeadP; -#ifdef __MIG_check__Request__mach_exception_raise_t__defined - kern_return_t check_result; -#endif /* __MIG_check__Request__mach_exception_raise_t__defined */ - - __DeclareRcvRpc(2405, "mach_exception_raise") - __BeforeRcvRpc(2405, "mach_exception_raise") - -#if defined(__MIG_check__Request__mach_exception_raise_t__defined) - check_result = __MIG_check__Request__mach_exception_raise_t((__Request *)In0P); - if (check_result != MACH_MSG_SUCCESS) - { MIG_RETURN_ERROR(OutP, check_result); } -#endif /* defined(__MIG_check__Request__mach_exception_raise_t__defined) */ - - OutP->RetCode = catch_mach_exception_raise(In0P->Head.msgh_request_port, In0P->thread.name, In0P->task.name, In0P->exception, In0P->code, In0P->codeCnt); - - OutP->NDR = NDR_record; - - - __AfterRcvRpc(2405, "mach_exception_raise") -} - -#if ( __MigTypeCheck ) -#if __MIG_check__Request__mach_exc_subsystem__ -#if !defined(__MIG_check__Request__mach_exception_raise_state_t__defined) -#define __MIG_check__Request__mach_exception_raise_state_t__defined - -mig_internal kern_return_t __MIG_check__Request__mach_exception_raise_state_t(__attribute__((__unused__)) __Request__mach_exception_raise_state_t *In0P, __attribute__((__unused__)) __Request__mach_exception_raise_state_t **In1PP) -{ - - typedef __Request__mach_exception_raise_state_t __Request; - __Request *In1P; -#if __MigTypeCheck - unsigned int msgh_size; -#endif /* __MigTypeCheck */ - unsigned int msgh_size_delta; - -#if __MigTypeCheck - msgh_size = In0P->Head.msgh_size; - if ((In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || - (msgh_size < (mach_msg_size_t)(sizeof(__Request) - 912)) || (msgh_size > (mach_msg_size_t)sizeof(__Request))) - return MIG_BAD_ARGUMENTS; -#endif /* __MigTypeCheck */ - -#if defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_t__codeCnt__defined) - if (In0P->NDR.int_rep != NDR_record.int_rep) - __NDR_convert__int_rep__Request__mach_exception_raise_state_t__codeCnt(&In0P->codeCnt, In0P->NDR.int_rep); -#endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_t__codeCnt__defined */ - msgh_size_delta = (8 * In0P->codeCnt); -#if __MigTypeCheck - if ( In0P->codeCnt > 2 ) - return MIG_BAD_ARGUMENTS; - if (((msgh_size - (mach_msg_size_t)(sizeof(__Request) - 912)) / 8 < In0P->codeCnt) || - (msgh_size < (mach_msg_size_t)(sizeof(__Request) - 912) + (8 * In0P->codeCnt))) - return MIG_BAD_ARGUMENTS; - msgh_size -= msgh_size_delta; -#endif /* __MigTypeCheck */ - - *In1PP = In1P = (__Request *) ((pointer_t) In0P + msgh_size_delta - 16); - -#if defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_stateCnt__defined) - if (In0P->NDR.int_rep != NDR_record.int_rep) - __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_stateCnt(&In1P->old_stateCnt, In1P->NDR.int_rep); -#endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_stateCnt__defined */ -#if __MigTypeCheck - if ( In1P->old_stateCnt > 224 ) - return MIG_BAD_ARGUMENTS; - if (((msgh_size - (mach_msg_size_t)(sizeof(__Request) - 912)) / 4 < In1P->old_stateCnt) || - (msgh_size != (mach_msg_size_t)(sizeof(__Request) - 912) + (4 * In1P->old_stateCnt))) - return MIG_BAD_ARGUMENTS; -#endif /* __MigTypeCheck */ - - return MACH_MSG_SUCCESS; -} -#endif /* !defined(__MIG_check__Request__mach_exception_raise_state_t__defined) */ -#endif /* __MIG_check__Request__mach_exc_subsystem__ */ -#endif /* ( __MigTypeCheck ) */ - - -/* Routine mach_exception_raise_state */ -mig_internal novalue _Xmach_exception_raise_state - (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP) -{ - -#ifdef __MigPackStructs -#pragma pack(4) -#endif - typedef struct { - mach_msg_header_t Head; - NDR_record_t NDR; - exception_type_t exception; - mach_msg_type_number_t codeCnt; - int64_t code[2]; - int flavor; - mach_msg_type_number_t old_stateCnt; - natural_t old_state[224]; - mach_msg_trailer_t trailer; - } Request __attribute__((unused)); -#ifdef __MigPackStructs -#pragma pack() -#endif - typedef __Request__mach_exception_raise_state_t __Request; - typedef __Reply__mach_exception_raise_state_t Reply __attribute__((unused)); - - /* - * typedef struct { - * mach_msg_header_t Head; - * NDR_record_t NDR; - * kern_return_t RetCode; - * } mig_reply_error_t; - */ - - Request *In0P = (Request *) InHeadP; - Request *In1P; - Reply *OutP = (Reply *) OutHeadP; -#ifdef __MIG_check__Request__mach_exception_raise_state_t__defined - kern_return_t check_result; -#endif /* __MIG_check__Request__mach_exception_raise_state_t__defined */ - - __DeclareRcvRpc(2406, "mach_exception_raise_state") - __BeforeRcvRpc(2406, "mach_exception_raise_state") - -#if defined(__MIG_check__Request__mach_exception_raise_state_t__defined) - check_result = __MIG_check__Request__mach_exception_raise_state_t((__Request *)In0P, (__Request **)&In1P); - if (check_result != MACH_MSG_SUCCESS) - { MIG_RETURN_ERROR(OutP, check_result); } -#endif /* defined(__MIG_check__Request__mach_exception_raise_state_t__defined) */ - - OutP->new_stateCnt = 224; - - OutP->RetCode = catch_mach_exception_raise_state(In0P->Head.msgh_request_port, In0P->exception, In0P->code, In0P->codeCnt, &In1P->flavor, In1P->old_state, In1P->old_stateCnt, OutP->new_state, &OutP->new_stateCnt); - if (OutP->RetCode != KERN_SUCCESS) { - MIG_RETURN_ERROR(OutP, OutP->RetCode); - } - - OutP->NDR = NDR_record; - - - OutP->flavor = In1P->flavor; - OutP->Head.msgh_size = (mach_msg_size_t)(sizeof(Reply) - 896) + (((4 * OutP->new_stateCnt))); - - __AfterRcvRpc(2406, "mach_exception_raise_state") -} - -#if ( __MigTypeCheck ) -#if __MIG_check__Request__mach_exc_subsystem__ -#if !defined(__MIG_check__Request__mach_exception_raise_state_identity_t__defined) -#define __MIG_check__Request__mach_exception_raise_state_identity_t__defined - -mig_internal kern_return_t __MIG_check__Request__mach_exception_raise_state_identity_t(__attribute__((__unused__)) __Request__mach_exception_raise_state_identity_t *In0P, __attribute__((__unused__)) __Request__mach_exception_raise_state_identity_t **In1PP) -{ - - typedef __Request__mach_exception_raise_state_identity_t __Request; - __Request *In1P; -#if __MigTypeCheck - unsigned int msgh_size; -#endif /* __MigTypeCheck */ - unsigned int msgh_size_delta; - -#if __MigTypeCheck - msgh_size = In0P->Head.msgh_size; - if (!(In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || - (In0P->msgh_body.msgh_descriptor_count != 2) || - (msgh_size < (mach_msg_size_t)(sizeof(__Request) - 912)) || (msgh_size > (mach_msg_size_t)sizeof(__Request))) - return MIG_BAD_ARGUMENTS; -#endif /* __MigTypeCheck */ - -#if __MigTypeCheck - if (In0P->thread.type != MACH_MSG_PORT_DESCRIPTOR || - In0P->thread.disposition != 17) - return MIG_TYPE_ERROR; -#endif /* __MigTypeCheck */ - -#if __MigTypeCheck - if (In0P->task.type != MACH_MSG_PORT_DESCRIPTOR || - In0P->task.disposition != 17) - return MIG_TYPE_ERROR; -#endif /* __MigTypeCheck */ - -#if defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__codeCnt__defined) - if (In0P->NDR.int_rep != NDR_record.int_rep) - __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__codeCnt(&In0P->codeCnt, In0P->NDR.int_rep); -#endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__codeCnt__defined */ - msgh_size_delta = (8 * In0P->codeCnt); -#if __MigTypeCheck - if ( In0P->codeCnt > 2 ) - return MIG_BAD_ARGUMENTS; - if (((msgh_size - (mach_msg_size_t)(sizeof(__Request) - 912)) / 8 < In0P->codeCnt) || - (msgh_size < (mach_msg_size_t)(sizeof(__Request) - 912) + (8 * In0P->codeCnt))) - return MIG_BAD_ARGUMENTS; - msgh_size -= msgh_size_delta; -#endif /* __MigTypeCheck */ - - *In1PP = In1P = (__Request *) ((pointer_t) In0P + msgh_size_delta - 16); - -#if defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_stateCnt__defined) - if (In0P->NDR.int_rep != NDR_record.int_rep) - __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_stateCnt(&In1P->old_stateCnt, In1P->NDR.int_rep); -#endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_stateCnt__defined */ -#if __MigTypeCheck - if ( In1P->old_stateCnt > 224 ) - return MIG_BAD_ARGUMENTS; - if (((msgh_size - (mach_msg_size_t)(sizeof(__Request) - 912)) / 4 < In1P->old_stateCnt) || - (msgh_size != (mach_msg_size_t)(sizeof(__Request) - 912) + (4 * In1P->old_stateCnt))) - return MIG_BAD_ARGUMENTS; -#endif /* __MigTypeCheck */ - - return MACH_MSG_SUCCESS; -} -#endif /* !defined(__MIG_check__Request__mach_exception_raise_state_identity_t__defined) */ -#endif /* __MIG_check__Request__mach_exc_subsystem__ */ -#endif /* ( __MigTypeCheck ) */ - - -/* Routine mach_exception_raise_state_identity */ -mig_internal novalue _Xmach_exception_raise_state_identity - (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP) -{ - -#ifdef __MigPackStructs -#pragma pack(4) -#endif - typedef struct { - mach_msg_header_t Head; - /* start of the kernel processed data */ - mach_msg_body_t msgh_body; - mach_msg_port_descriptor_t thread; - mach_msg_port_descriptor_t task; - /* end of the kernel processed data */ - NDR_record_t NDR; - exception_type_t exception; - mach_msg_type_number_t codeCnt; - int64_t code[2]; - int flavor; - mach_msg_type_number_t old_stateCnt; - natural_t old_state[224]; - mach_msg_trailer_t trailer; - } Request __attribute__((unused)); -#ifdef __MigPackStructs -#pragma pack() -#endif - typedef __Request__mach_exception_raise_state_identity_t __Request; - typedef __Reply__mach_exception_raise_state_identity_t Reply __attribute__((unused)); - - /* - * typedef struct { - * mach_msg_header_t Head; - * NDR_record_t NDR; - * kern_return_t RetCode; - * } mig_reply_error_t; - */ - - Request *In0P = (Request *) InHeadP; - Request *In1P; - Reply *OutP = (Reply *) OutHeadP; -#ifdef __MIG_check__Request__mach_exception_raise_state_identity_t__defined - kern_return_t check_result; -#endif /* __MIG_check__Request__mach_exception_raise_state_identity_t__defined */ - - __DeclareRcvRpc(2407, "mach_exception_raise_state_identity") - __BeforeRcvRpc(2407, "mach_exception_raise_state_identity") - -#if defined(__MIG_check__Request__mach_exception_raise_state_identity_t__defined) - check_result = __MIG_check__Request__mach_exception_raise_state_identity_t((__Request *)In0P, (__Request **)&In1P); - if (check_result != MACH_MSG_SUCCESS) - { MIG_RETURN_ERROR(OutP, check_result); } -#endif /* defined(__MIG_check__Request__mach_exception_raise_state_identity_t__defined) */ - - OutP->new_stateCnt = 224; - - OutP->RetCode = catch_mach_exception_raise_state_identity(In0P->Head.msgh_request_port, In0P->thread.name, In0P->task.name, In0P->exception, In0P->code, In0P->codeCnt, &In1P->flavor, In1P->old_state, In1P->old_stateCnt, OutP->new_state, &OutP->new_stateCnt); - if (OutP->RetCode != KERN_SUCCESS) { - MIG_RETURN_ERROR(OutP, OutP->RetCode); - } - - OutP->NDR = NDR_record; - - - OutP->flavor = In1P->flavor; - OutP->Head.msgh_size = (mach_msg_size_t)(sizeof(Reply) - 896) + (((4 * OutP->new_stateCnt))); - - __AfterRcvRpc(2407, "mach_exception_raise_state_identity") -} - - - -/* Description of this subsystem, for use in direct RPC */ -const struct catch_mach_exc_subsystem catch_mach_exc_subsystem = { - mach_exc_server_routine, - 2405, - 2408, - (mach_msg_size_t)sizeof(union __ReplyUnion__catch_mach_exc_subsystem), - (vm_address_t)0, - { - { (mig_impl_routine_t) 0, - (mig_stub_routine_t) _Xmach_exception_raise, 6, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__mach_exception_raise_t)}, - { (mig_impl_routine_t) 0, - (mig_stub_routine_t) _Xmach_exception_raise_state, 9, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__mach_exception_raise_state_t)}, - { (mig_impl_routine_t) 0, - (mig_stub_routine_t) _Xmach_exception_raise_state_identity, 11, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__mach_exception_raise_state_identity_t)}, - } -}; - -mig_external boolean_t mach_exc_server - (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP) -{ - /* - * typedef struct { - * mach_msg_header_t Head; - * NDR_record_t NDR; - * kern_return_t RetCode; - * } mig_reply_error_t; - */ - - register mig_routine_t routine; - - OutHeadP->msgh_bits = MACH_MSGH_BITS(MACH_MSGH_BITS_REPLY(InHeadP->msgh_bits), 0); - OutHeadP->msgh_remote_port = InHeadP->msgh_reply_port; - /* Minimal size: routine() will update it if different */ - OutHeadP->msgh_size = (mach_msg_size_t)sizeof(mig_reply_error_t); - OutHeadP->msgh_local_port = MACH_PORT_NULL; - OutHeadP->msgh_id = InHeadP->msgh_id + 100; - OutHeadP->msgh_reserved = 0; - - if ((InHeadP->msgh_id > 2407) || (InHeadP->msgh_id < 2405) || - ((routine = catch_mach_exc_subsystem.routine[InHeadP->msgh_id - 2405].stub_routine) == 0)) { - ((mig_reply_error_t *)OutHeadP)->NDR = NDR_record; - ((mig_reply_error_t *)OutHeadP)->RetCode = MIG_BAD_ID; - return FALSE; - } - (*routine) (InHeadP, OutHeadP); - return TRUE; -} - -mig_external mig_routine_t mach_exc_server_routine - (mach_msg_header_t *InHeadP) -{ - register int msgh_id; - - msgh_id = InHeadP->msgh_id - 2405; - - if ((msgh_id > 2) || (msgh_id < 0)) - return 0; - - return catch_mach_exc_subsystem.routine[msgh_id].stub_routine; -} - -#endif diff --git a/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlMachBadInstructionHandler/mach_excServer.h b/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlMachBadInstructionHandler/mach_excServer.h deleted file mode 100644 index 52e53ae..0000000 --- a/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlMachBadInstructionHandler/mach_excServer.h +++ /dev/null @@ -1,321 +0,0 @@ -#ifndef _mach_exc_server_ -#define _mach_exc_server_ - -/* Module mach_exc */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/* BEGIN VOUCHER CODE */ - -#ifndef KERNEL -#if defined(__has_include) -#if __has_include() -#ifndef USING_VOUCHERS -#define USING_VOUCHERS -#endif -#ifndef __VOUCHER_FORWARD_TYPE_DECLS__ -#define __VOUCHER_FORWARD_TYPE_DECLS__ -#ifdef __cplusplus -extern "C" { -#endif - extern boolean_t voucher_mach_msg_set(mach_msg_header_t *msg) __attribute__((weak_import)); -#ifdef __cplusplus -} -#endif -#endif // __VOUCHER_FORWARD_TYPE_DECLS__ -#endif // __has_include() -#endif // __has_include -#endif // !KERNEL - -/* END VOUCHER CODE */ - - -/* BEGIN MIG_STRNCPY_ZEROFILL CODE */ - -#if defined(__has_include) -#if __has_include() -#ifndef USING_MIG_STRNCPY_ZEROFILL -#define USING_MIG_STRNCPY_ZEROFILL -#endif -#ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ -#define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ -#ifdef __cplusplus -extern "C" { -#endif - extern int mig_strncpy_zerofill(char *dest, const char *src, int len) __attribute__((weak_import)); -#ifdef __cplusplus -} -#endif -#endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ -#endif /* __has_include() */ -#endif /* __has_include */ - -/* END MIG_STRNCPY_ZEROFILL CODE */ - - -#ifdef AUTOTEST -#ifndef FUNCTION_PTR_T -#define FUNCTION_PTR_T -typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); -typedef struct { - char *name; - function_ptr_t function; -} function_table_entry; -typedef function_table_entry *function_table_t; -#endif /* FUNCTION_PTR_T */ -#endif /* AUTOTEST */ - -#ifndef mach_exc_MSG_COUNT -#define mach_exc_MSG_COUNT 3 -#endif /* mach_exc_MSG_COUNT */ - -#include -#include -#include -#include - -#ifdef __BeforeMigServerHeader -__BeforeMigServerHeader -#endif /* __BeforeMigServerHeader */ - - -/* Routine mach_exception_raise */ -#ifdef mig_external -mig_external -#else -extern -#endif /* mig_external */ -kern_return_t catch_mach_exception_raise -( - mach_port_t exception_port, - mach_port_t thread, - mach_port_t task, - exception_type_t exception, - mach_exception_data_t code, - mach_msg_type_number_t codeCnt -); - -/* Routine mach_exception_raise_state */ -#ifdef mig_external -mig_external -#else -extern -#endif /* mig_external */ -kern_return_t catch_mach_exception_raise_state -( - mach_port_t exception_port, - exception_type_t exception, - const mach_exception_data_t code, - mach_msg_type_number_t codeCnt, - int *flavor, - const thread_state_t old_state, - mach_msg_type_number_t old_stateCnt, - thread_state_t new_state, - mach_msg_type_number_t *new_stateCnt -); - -/* Routine mach_exception_raise_state_identity */ -#ifdef mig_external -mig_external -#else -extern -#endif /* mig_external */ -kern_return_t catch_mach_exception_raise_state_identity -( - mach_port_t exception_port, - mach_port_t thread, - mach_port_t task, - exception_type_t exception, - mach_exception_data_t code, - mach_msg_type_number_t codeCnt, - int *flavor, - thread_state_t old_state, - mach_msg_type_number_t old_stateCnt, - thread_state_t new_state, - mach_msg_type_number_t *new_stateCnt -); - -#ifdef mig_external -mig_external -#else -extern -#endif /* mig_external */ -boolean_t mach_exc_server( - mach_msg_header_t *InHeadP, - mach_msg_header_t *OutHeadP); - -#ifdef mig_external -mig_external -#else -extern -#endif /* mig_external */ -mig_routine_t mach_exc_server_routine( - mach_msg_header_t *InHeadP); - - -/* Description of this subsystem, for use in direct RPC */ -extern const struct catch_mach_exc_subsystem { - mig_server_routine_t server; /* Server routine */ - mach_msg_id_t start; /* Min routine number */ - mach_msg_id_t end; /* Max routine number + 1 */ - unsigned int maxsize; /* Max msg size */ - vm_address_t reserved; /* Reserved */ - struct routine_descriptor /*Array of routine descriptors */ - routine[3]; -} catch_mach_exc_subsystem; - -/* typedefs for all requests */ - -#ifndef __Request__mach_exc_subsystem__defined -#define __Request__mach_exc_subsystem__defined - -#ifdef __MigPackStructs -#pragma pack(4) -#endif - typedef struct { - mach_msg_header_t Head; - /* start of the kernel processed data */ - mach_msg_body_t msgh_body; - mach_msg_port_descriptor_t thread; - mach_msg_port_descriptor_t task; - /* end of the kernel processed data */ - NDR_record_t NDR; - exception_type_t exception; - mach_msg_type_number_t codeCnt; - int64_t code[2]; - } __Request__mach_exception_raise_t __attribute__((unused)); -#ifdef __MigPackStructs -#pragma pack() -#endif - -#ifdef __MigPackStructs -#pragma pack(4) -#endif - typedef struct { - mach_msg_header_t Head; - NDR_record_t NDR; - exception_type_t exception; - mach_msg_type_number_t codeCnt; - int64_t code[2]; - int flavor; - mach_msg_type_number_t old_stateCnt; - natural_t old_state[224]; - } __Request__mach_exception_raise_state_t __attribute__((unused)); -#ifdef __MigPackStructs -#pragma pack() -#endif - -#ifdef __MigPackStructs -#pragma pack(4) -#endif - typedef struct { - mach_msg_header_t Head; - /* start of the kernel processed data */ - mach_msg_body_t msgh_body; - mach_msg_port_descriptor_t thread; - mach_msg_port_descriptor_t task; - /* end of the kernel processed data */ - NDR_record_t NDR; - exception_type_t exception; - mach_msg_type_number_t codeCnt; - int64_t code[2]; - int flavor; - mach_msg_type_number_t old_stateCnt; - natural_t old_state[224]; - } __Request__mach_exception_raise_state_identity_t __attribute__((unused)); -#ifdef __MigPackStructs -#pragma pack() -#endif -#endif /* !__Request__mach_exc_subsystem__defined */ - - -/* union of all requests */ - -#ifndef __RequestUnion__catch_mach_exc_subsystem__defined -#define __RequestUnion__catch_mach_exc_subsystem__defined -union __RequestUnion__catch_mach_exc_subsystem { - __Request__mach_exception_raise_t Request_mach_exception_raise; - __Request__mach_exception_raise_state_t Request_mach_exception_raise_state; - __Request__mach_exception_raise_state_identity_t Request_mach_exception_raise_state_identity; -}; -#endif /* __RequestUnion__catch_mach_exc_subsystem__defined */ -/* typedefs for all replies */ - -#ifndef __Reply__mach_exc_subsystem__defined -#define __Reply__mach_exc_subsystem__defined - -#ifdef __MigPackStructs -#pragma pack(4) -#endif - typedef struct { - mach_msg_header_t Head; - NDR_record_t NDR; - kern_return_t RetCode; - } __Reply__mach_exception_raise_t __attribute__((unused)); -#ifdef __MigPackStructs -#pragma pack() -#endif - -#ifdef __MigPackStructs -#pragma pack(4) -#endif - typedef struct { - mach_msg_header_t Head; - NDR_record_t NDR; - kern_return_t RetCode; - int flavor; - mach_msg_type_number_t new_stateCnt; - natural_t new_state[224]; - } __Reply__mach_exception_raise_state_t __attribute__((unused)); -#ifdef __MigPackStructs -#pragma pack() -#endif - -#ifdef __MigPackStructs -#pragma pack(4) -#endif - typedef struct { - mach_msg_header_t Head; - NDR_record_t NDR; - kern_return_t RetCode; - int flavor; - mach_msg_type_number_t new_stateCnt; - natural_t new_state[224]; - } __Reply__mach_exception_raise_state_identity_t __attribute__((unused)); -#ifdef __MigPackStructs -#pragma pack() -#endif -#endif /* !__Reply__mach_exc_subsystem__defined */ - - -/* union of all replies */ - -#ifndef __ReplyUnion__catch_mach_exc_subsystem__defined -#define __ReplyUnion__catch_mach_exc_subsystem__defined -union __ReplyUnion__catch_mach_exc_subsystem { - __Reply__mach_exception_raise_t Reply_mach_exception_raise; - __Reply__mach_exception_raise_state_t Reply_mach_exception_raise_state; - __Reply__mach_exception_raise_state_identity_t Reply_mach_exception_raise_state_identity; -}; -#endif /* __RequestUnion__catch_mach_exc_subsystem__defined */ - -#ifndef subsystem_to_name_map_mach_exc -#define subsystem_to_name_map_mach_exc \ - { "mach_exception_raise", 2405 },\ - { "mach_exception_raise_state", 2406 },\ - { "mach_exception_raise_state_identity", 2407 } -#endif - -#ifdef __AfterMigServerHeader -__AfterMigServerHeader -#endif /* __AfterMigServerHeader */ - -#endif /* _mach_exc_server_ */ diff --git a/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlBadInstructionException.swift b/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlBadInstructionException.swift deleted file mode 100644 index 91e5d4d..0000000 --- a/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlBadInstructionException.swift +++ /dev/null @@ -1,89 +0,0 @@ -// -// CwlBadInstructionException.swift -// CwlPreconditionTesting -// -// Created by Matt Gallagher on 2016/01/10. -// Copyright © 2016 Matt Gallagher ( http://cocoawithlove.com ). All rights reserved. -// -// Permission to use, copy, modify, and/or distribute this software for any -// purpose with or without fee is hereby granted, provided that the above -// copyright notice and this permission notice appear in all copies. -// -// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY -// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -// IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -// - -import Foundation - -#if SWIFT_PACKAGE - import CwlMachBadInstructionHandler -#endif - -private func raiseBadInstructionException() { - BadInstructionException().raise() -} - -/// A simple NSException subclass. It's not required to subclass NSException (since the exception type is represented in the name) but this helps for identifying the exception through runtime type. -@objc(BadInstructionException) -public class BadInstructionException: NSException { - static var name: String = "com.cocoawithlove.BadInstruction" - - init() { - super.init(name: NSExceptionName(rawValue: BadInstructionException.name), reason: nil, userInfo: nil) - } - - required public init?(coder aDecoder: NSCoder) { - super.init(coder: aDecoder) - } - - /// An Objective-C callable function, invoked from the `mach_exc_server` callback function `catch_mach_exception_raise_state` to push the `raiseBadInstructionException` function onto the stack. - @objc(receiveReply:) - public class func receiveReply(_ value: NSValue) -> NSNumber { - #if arch(x86_64) - var reply = bad_instruction_exception_reply_t(exception_port: 0, exception: 0, code: nil, codeCnt: 0, flavor: nil, old_state: nil, old_stateCnt: 0, new_state: nil, new_stateCnt: nil) - withUnsafeMutablePointer(to: &reply) { value.getValue(UnsafeMutableRawPointer($0)) } - - let old_state: UnsafePointer = reply.old_state! - let old_stateCnt: mach_msg_type_number_t = reply.old_stateCnt - let new_state: thread_state_t = reply.new_state! - let new_stateCnt: UnsafeMutablePointer = reply.new_stateCnt! - - // Make sure we've been given enough memory - if old_stateCnt != x86_THREAD_STATE64_COUNT || new_stateCnt.pointee < x86_THREAD_STATE64_COUNT { - return NSNumber(value: KERN_INVALID_ARGUMENT) - } - - // Read the old thread state - var state = old_state.withMemoryRebound(to: x86_thread_state64_t.self, capacity: 1) { return $0.pointee } - - // 1. Decrement the stack pointer - state.__rsp -= __uint64_t(MemoryLayout.size) - - // 2. Save the old Instruction Pointer to the stack. - if let pointer = UnsafeMutablePointer<__uint64_t>(bitPattern: UInt(state.__rsp)) { - pointer.pointee = state.__rip - } else { - return NSNumber(value: KERN_INVALID_ARGUMENT) - } - - // 3. Set the Instruction Pointer to the new function's address - var f: @convention(c) () -> Void = raiseBadInstructionException - withUnsafePointer(to: &f) { - state.__rip = $0.withMemoryRebound(to: __uint64_t.self, capacity: 1) { return $0.pointee } - } - - // Write the new thread state - new_state.withMemoryRebound(to: x86_thread_state64_t.self, capacity: 1) { $0.pointee = state } - new_stateCnt.pointee = x86_THREAD_STATE64_COUNT - - return NSNumber(value: KERN_SUCCESS) - #else - fatalError("Unavailable for this CPU architecture") - #endif - } -} diff --git a/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlCatchBadInstruction.swift b/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlCatchBadInstruction.swift deleted file mode 100644 index f96ec63..0000000 --- a/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlCatchBadInstruction.swift +++ /dev/null @@ -1,197 +0,0 @@ -// -// CwlCatchBadInstruction.swift -// CwlPreconditionTesting -// -// Created by Matt Gallagher on 2016/01/10. -// Copyright © 2016 Matt Gallagher ( http://cocoawithlove.com ). All rights reserved. -// -// Permission to use, copy, modify, and/or distribute this software for any -// purpose with or without fee is hereby granted, provided that the above -// copyright notice and this permission notice appear in all copies. -// -// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY -// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -// IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -// - -import Foundation - -#if SWIFT_PACKAGE - import CwlMachBadInstructionHandler -#endif - -#if arch(x86_64) - - private enum PthreadError: Error { case code(Int32) } - private enum MachExcServer: Error { case code(kern_return_t) } - - /// A quick function for converting Mach error results into Swift errors - private func kernCheck(_ f: () -> Int32) throws { - let r = f() - guard r == KERN_SUCCESS else { - throw NSError(domain: NSMachErrorDomain, code: Int(r), userInfo: nil) - } - } - - extension request_mach_exception_raise_t { - mutating func withMsgHeaderPointer(in block: (UnsafeMutablePointer) -> R) -> R { - return withUnsafeMutablePointer(to: &self) { p -> R in - return p.withMemoryRebound(to: mach_msg_header_t.self, capacity: 1) { ptr -> R in - return block(ptr) - } - } - } - } - - extension reply_mach_exception_raise_state_t { - mutating func withMsgHeaderPointer(in block: (UnsafeMutablePointer) -> R) -> R { - return withUnsafeMutablePointer(to: &self) { p -> R in - return p.withMemoryRebound(to: mach_msg_header_t.self, capacity: 1) { ptr -> R in - return block(ptr) - } - } - } - } - - /// A structure used to store context associated with the Mach message port - private struct MachContext { - var masks = execTypesCountTuple() - var count: mach_msg_type_number_t = 0 - var ports = execTypesCountTuple() - var behaviors = execTypesCountTuple() - var flavors = execTypesCountTuple() - var currentExceptionPort: mach_port_t = 0 - var handlerThread: pthread_t? = nil - - static func internalMutablePointers(_ m: UnsafeMutablePointer>, _ c: UnsafeMutablePointer, _ p: UnsafeMutablePointer>, _ b: UnsafeMutablePointer>, _ f: UnsafeMutablePointer>, _ block: (UnsafeMutablePointer, UnsafeMutablePointer, UnsafeMutablePointer, UnsafeMutablePointer, UnsafeMutablePointer) -> R) -> R { - return m.withMemoryRebound(to: exception_mask_t.self, capacity: 1) { masksPtr in - return c.withMemoryRebound(to: mach_msg_type_number_t.self, capacity: 1) { countPtr in - return p.withMemoryRebound(to: mach_port_t.self, capacity: 1) { portsPtr in - return b.withMemoryRebound(to: exception_behavior_t.self, capacity: 1) { behaviorsPtr in - return f.withMemoryRebound(to: thread_state_flavor_t.self, capacity: 1) { flavorsPtr in - return block(masksPtr, countPtr, portsPtr, behaviorsPtr, flavorsPtr) - } - } - } - } - } - } - - mutating func withUnsafeMutablePointers(in block: @escaping (UnsafeMutablePointer, UnsafeMutablePointer, UnsafeMutablePointer, UnsafeMutablePointer, UnsafeMutablePointer) -> R) -> R { - return MachContext.internalMutablePointers(&masks, &count, &ports, &behaviors, &flavors, block) - } - } - - /// A function for receiving mach messages and parsing the first with mach_exc_server (and if any others are received, throwing them away). - private func machMessageHandler(_ arg: UnsafeMutableRawPointer) -> UnsafeMutableRawPointer? { - let context = arg.assumingMemoryBound(to: MachContext.self).pointee - var request = request_mach_exception_raise_t() - var reply = reply_mach_exception_raise_state_t() - - var handledfirstException = false - repeat { do { - // Request the next mach message from the port - request.Head.msgh_local_port = context.currentExceptionPort - request.Head.msgh_size = UInt32(MemoryLayout.size) - let requestSize = request.Head.msgh_size - try kernCheck { request.withMsgHeaderPointer { requestPtr in - mach_msg(requestPtr, MACH_RCV_MSG | MACH_RCV_INTERRUPT, 0, requestSize, context.currentExceptionPort, 0, UInt32(MACH_PORT_NULL)) - } } - - // Prepare the reply structure - reply.Head.msgh_bits = MACH_MSGH_BITS(MACH_MSGH_BITS_REMOTE(request.Head.msgh_bits), 0) - reply.Head.msgh_local_port = UInt32(MACH_PORT_NULL) - reply.Head.msgh_remote_port = request.Head.msgh_remote_port - reply.Head.msgh_size = UInt32(MemoryLayout.size) - reply.NDR = NDR_record - - if !handledfirstException { - // Use the MiG generated server to invoke our handler for the request and fill in the rest of the reply structure - guard request.withMsgHeaderPointer(in: { requestPtr in reply.withMsgHeaderPointer { replyPtr in - mach_exc_server(requestPtr, replyPtr) - } }) != 0 else { throw MachExcServer.code(reply.RetCode) } - - handledfirstException = true - } else { - // If multiple fatal errors occur, don't handle subsquent errors (let the program crash) - reply.RetCode = KERN_FAILURE - } - - // Send the reply - let replySize = reply.Head.msgh_size - try kernCheck { reply.withMsgHeaderPointer { replyPtr in - mach_msg(replyPtr, MACH_SEND_MSG, replySize, 0, UInt32(MACH_PORT_NULL), 0, UInt32(MACH_PORT_NULL)) - } } - } catch let error as NSError where (error.domain == NSMachErrorDomain && (error.code == Int(MACH_RCV_PORT_CHANGED) || error.code == Int(MACH_RCV_INVALID_NAME))) { - // Port was already closed before we started or closed while we were listening. - // This means the controlling thread shut down. - return nil - } catch { - // Should never be reached but this is testing code, don't try to recover, just abort - fatalError("Mach message error: \(error)") - } } while true - } - - /// Run the provided block. If a mach "BAD_INSTRUCTION" exception is raised, catch it and return a BadInstructionException (which captures stack information about the throw site, if desired). Otherwise return nil. - /// NOTE: This function is only intended for use in test harnesses – use in a distributed build is almost certainly a bad choice. If a "BAD_INSTRUCTION" exception is raised, the block will be exited before completion via Objective-C exception. The risks associated with an Objective-C exception apply here: most Swift/Objective-C functions are *not* exception-safe. Memory may be leaked and the program will not necessarily be left in a safe state. - /// - parameter block: a function without parameters that will be run - /// - returns: if an EXC_BAD_INSTRUCTION is raised during the execution of `block` then a BadInstructionException will be returned, otherwise `nil`. - public func catchBadInstruction(in block: () -> Void) -> BadInstructionException? { - var context = MachContext() - var result: BadInstructionException? = nil - do { - var handlerThread: pthread_t? = nil - defer { - // 8. Wait for the thread to terminate *if* we actually made it to the creation point - // The mach port should be destroyed *before* calling pthread_join to avoid a deadlock. - if handlerThread != nil { - pthread_join(handlerThread!, nil) - } - } - - try kernCheck { - // 1. Create the mach port - mach_port_allocate(mach_task_self_, MACH_PORT_RIGHT_RECEIVE, &context.currentExceptionPort) - } - defer { - // 7. Cleanup the mach port - mach_port_destroy(mach_task_self_, context.currentExceptionPort) - } - - try kernCheck { - // 2. Configure the mach port - mach_port_insert_right(mach_task_self_, context.currentExceptionPort, context.currentExceptionPort, MACH_MSG_TYPE_MAKE_SEND) - } - - let currentExceptionPtr = context.currentExceptionPort - try kernCheck { context.withUnsafeMutablePointers { masksPtr, countPtr, portsPtr, behaviorsPtr, flavorsPtr in - // 3. Apply the mach port as the handler for this thread - thread_swap_exception_ports(mach_thread_self(), EXC_MASK_BAD_INSTRUCTION, currentExceptionPtr, Int32(bitPattern: UInt32(EXCEPTION_STATE) | MACH_EXCEPTION_CODES), x86_THREAD_STATE64, masksPtr, countPtr, portsPtr, behaviorsPtr, flavorsPtr) - } } - - defer { context.withUnsafeMutablePointers { masksPtr, countPtr, portsPtr, behaviorsPtr, flavorsPtr in - // 6. Unapply the mach port - _ = thread_swap_exception_ports(mach_thread_self(), EXC_MASK_BAD_INSTRUCTION, 0, EXCEPTION_DEFAULT, THREAD_STATE_NONE, masksPtr, countPtr, portsPtr, behaviorsPtr, flavorsPtr) - } } - - try withUnsafeMutablePointer(to: &context) { c throws in - // 4. Create the thread - let e = pthread_create(&handlerThread, nil, machMessageHandler, c) - guard e == 0 else { throw PthreadError.code(e) } - - // 5. Run the block - result = BadInstructionException.catchException(in: block) - } - } catch { - // Should never be reached but this is testing code, don't try to recover, just abort - fatalError("Mach port error: \(error)") - } - return result - } - -#endif - diff --git a/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlDarwinDefinitions.swift b/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlDarwinDefinitions.swift deleted file mode 100644 index 8d99d5e..0000000 --- a/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlDarwinDefinitions.swift +++ /dev/null @@ -1,55 +0,0 @@ -// -// CwlDarwinDefinitions.swift -// CwlPreconditionTesting -// -// Created by Matt Gallagher on 2016/01/10. -// Copyright © 2016 Matt Gallagher ( http://cocoawithlove.com ). All rights reserved. -// -// Permission to use, copy, modify, and/or distribute this software for any -// purpose with or without fee is hereby granted, provided that the above -// copyright notice and this permission notice appear in all copies. -// -// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY -// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -// IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -// - -import Darwin - -#if arch(x86_64) - - // From /usr/include/mach/message.h - // #define MACH_MSG_TYPE_MAKE_SEND 20 /* Must hold receive right */ - // #define MACH_MSGH_BITS_REMOTE(bits) \ - // ((bits) & MACH_MSGH_BITS_REMOTE_MASK) - // #define MACH_MSGH_BITS(remote, local) /* legacy */ \ - // ((remote) | ((local) << 8)) - public let MACH_MSG_TYPE_MAKE_SEND: UInt32 = 20 - public func MACH_MSGH_BITS_REMOTE(_ bits: UInt32) -> UInt32 { return bits & UInt32(MACH_MSGH_BITS_REMOTE_MASK) } - public func MACH_MSGH_BITS(_ remote: UInt32, _ local: UInt32) -> UInt32 { return ((remote) | ((local) << 8)) } - - // From /usr/include/mach/exception_types.h - // #define EXC_BAD_INSTRUCTION 2 /* Instruction failed */ - // #define EXC_MASK_BAD_INSTRUCTION (1 << EXC_BAD_INSTRUCTION) - public let EXC_BAD_INSTRUCTION: UInt32 = 2 - public let EXC_MASK_BAD_INSTRUCTION: UInt32 = 1 << EXC_BAD_INSTRUCTION - - // From /usr/include/mach/i386/thread_status.h - // #define x86_THREAD_STATE64_COUNT ((mach_msg_type_number_t) \ - // ( sizeof (x86_thread_state64_t) / sizeof (int) )) - public let x86_THREAD_STATE64_COUNT = UInt32(MemoryLayout.size / MemoryLayout.size) - - public let EXC_TYPES_COUNT = 14 - public struct execTypesCountTuple { - // From /usr/include/mach/i386/exception.h - // #define EXC_TYPES_COUNT 14 /* incl. illegal exception 0 */ - public var value: (T, T, T, T, T, T, T, T, T, T, T, T, T, T) = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) - public init() { - } - } - -#endif diff --git a/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/Mach/CwlPreconditionTesting.h b/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/Mach/CwlPreconditionTesting.h deleted file mode 100644 index 7c50da1..0000000 --- a/Pods/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/Mach/CwlPreconditionTesting.h +++ /dev/null @@ -1,32 +0,0 @@ -// -// CwlPreconditionTesting.h -// CwlPreconditionTesting -// -// Created by Matt Gallagher on 2016/01/10. -// Copyright © 2016 Matt Gallagher ( http://cocoawithlove.com ). All rights reserved. -// -// Permission to use, copy, modify, and/or distribute this software for any -// purpose with or without fee is hereby granted, provided that the above -// copyright notice and this permission notice appear in all copies. -// -// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY -// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -// IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -// - -#import - -extern bool _swift_reportFatalErrorsToDebugger; - -//! Project version number for CwlUtils. -FOUNDATION_EXPORT double CwlPreconditionTestingVersionNumber; - -//! Project version string for CwlUtils. -FOUNDATION_EXPORT const unsigned char CwlAssertingTestingVersionString[]; - -#include "CwlMachBadInstructionHandler.h" -#include "CwlCatchException.h" diff --git a/Pods/Nimble/LICENSE b/Pods/Nimble/LICENSE deleted file mode 100644 index 82b84bf..0000000 --- a/Pods/Nimble/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2016 Quick Team - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/Pods/Nimble/README.md b/Pods/Nimble/README.md deleted file mode 100644 index 4f7f89b..0000000 --- a/Pods/Nimble/README.md +++ /dev/null @@ -1,1772 +0,0 @@ -# Nimble - -[![Build Status](https://travis-ci.org/Quick/Nimble.svg?branch=master)](https://travis-ci.org/Quick/Nimble) -[![CocoaPods](https://img.shields.io/cocoapods/v/Nimble.svg)](https://cocoapods.org/pods/Nimble) -[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) -[![Accio supported](https://img.shields.io/badge/Accio-supported-0A7CF5.svg?style=flat)](https://github.com/JamitLabs/Accio) -[![Platforms](https://img.shields.io/cocoapods/p/Nimble.svg)](https://cocoapods.org/pods/Nimble) -[![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com) - -Use Nimble to express the expected outcomes of Swift -or Objective-C expressions. Inspired by -[Cedar](https://github.com/pivotal/cedar). - -```swift -// Swift -expect(1 + 1).to(equal(2)) -expect(1.2).to(beCloseTo(1.1, within: 0.1)) -expect(3) > 2 -expect("seahorse").to(contain("sea")) -expect(["Atlantic", "Pacific"]).toNot(contain("Mississippi")) -expect(ocean.isClean).toEventually(beTruthy()) -``` - -# How to Use Nimble - - - -**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)* - -- [Some Background: Expressing Outcomes Using Assertions in XCTest](#some-background-expressing-outcomes-using-assertions-in-xctest) -- [Nimble: Expectations Using `expect(...).to`](#nimble-expectations-using-expectto) - - [Custom Failure Messages](#custom-failure-messages) - - [Type Safety](#type-safety) - - [Operator Overloads](#operator-overloads) - - [Lazily Computed Values](#lazily-computed-values) - - [C Primitives](#c-primitives) - - [Asynchronous Expectations](#asynchronous-expectations) - - [Objective-C Support](#objective-c-support) - - [Disabling Objective-C Shorthand](#disabling-objective-c-shorthand) -- [Built-in Matcher Functions](#built-in-matcher-functions) - - [Type Checking](#type-checking) - - [Equivalence](#equivalence) - - [Identity](#identity) - - [Comparisons](#comparisons) - - [Types/Classes](#typesclasses) - - [Truthiness](#truthiness) - - [Swift Assertions](#swift-assertions) - - [Swift Error Handling](#swift-error-handling) - - [Exceptions](#exceptions) - - [Collection Membership](#collection-membership) - - [Strings](#strings) - - [Collection Elements](#collection-elements) - - [Collection Count](#collection-count) - - [Notifications](#notifications) - - [Matching a value to any of a group of matchers](#matching-a-value-to-any-of-a-group-of-matchers) - - [Custom Validation](#custom-validation) -- [Writing Your Own Matchers](#writing-your-own-matchers) - - [PredicateResult](#predicateresult) - - [Lazy Evaluation](#lazy-evaluation) - - [Type Checking via Swift Generics](#type-checking-via-swift-generics) - - [Customizing Failure Messages](#customizing-failure-messages) - - [Basic Customization](#basic-customization) - - [Full Customization](#full-customization) - - [Supporting Objective-C](#supporting-objective-c) - - [Properly Handling `nil` in Objective-C Matchers](#properly-handling-nil-in-objective-c-matchers) - - [Migrating from the Old Matcher API](#migrating-from-the-old-matcher-api) - - [Minimal Step - Use `.predicate`](#minimal-step---use-predicate) - - [Convert to use `Predicate` Type with Old Matcher Constructor](#convert-to-use-predicate-type-with-old-matcher-constructor) - - [Convert to `Predicate` Type with Preferred Constructor](#convert-to-predicate-type-with-preferred-constructor) - - [Deprecation Roadmap](#deprecation-roadmap) -- [Installing Nimble](#installing-nimble) - - [Installing Nimble as a Submodule](#installing-nimble-as-a-submodule) - - [Installing Nimble via CocoaPods](#installing-nimble-via-cocoapods) - - [Installing Nimble via Accio](#installing-nimble-via-accio) - - [Using Nimble without XCTest](#using-nimble-without-xctest) - - - -# Some Background: Expressing Outcomes Using Assertions in XCTest - -Apple's Xcode includes the XCTest framework, which provides -assertion macros to test whether code behaves properly. -For example, to assert that `1 + 1 = 2`, XCTest has you write: - -```swift -// Swift - -XCTAssertEqual(1 + 1, 2, "expected one plus one to equal two") -``` - -Or, in Objective-C: - -```objc -// Objective-C - -XCTAssertEqual(1 + 1, 2, @"expected one plus one to equal two"); -``` - -XCTest assertions have a couple of drawbacks: - -1. **Not enough macros.** There's no easy way to assert that a string - contains a particular substring, or that a number is less than or - equal to another. -2. **It's hard to write asynchronous tests.** XCTest forces you to write - a lot of boilerplate code. - -Nimble addresses these concerns. - -# Nimble: Expectations Using `expect(...).to` - -Nimble allows you to express expectations using a natural, -easily understood language: - -```swift -// Swift - -import Nimble - -expect(seagull.squawk).to(equal("Squee!")) -``` - -```objc -// Objective-C - -@import Nimble; - -expect(seagull.squawk).to(equal(@"Squee!")); -``` - -> The `expect` function autocompletes to include `file:` and `line:`, - but these parameters are optional. Use the default values to have - Xcode highlight the correct line when an expectation is not met. - -To perform the opposite expectation--to assert something is *not* -equal--use `toNot` or `notTo`: - -```swift -// Swift - -import Nimble - -expect(seagull.squawk).toNot(equal("Oh, hello there!")) -expect(seagull.squawk).notTo(equal("Oh, hello there!")) -``` - -```objc -// Objective-C - -@import Nimble; - -expect(seagull.squawk).toNot(equal(@"Oh, hello there!")); -expect(seagull.squawk).notTo(equal(@"Oh, hello there!")); -``` - -## Custom Failure Messages - -Would you like to add more information to the test's failure messages? Use the `description` optional argument to add your own text: - -```swift -// Swift - -expect(1 + 1).to(equal(3)) -// failed - expected to equal <3>, got <2> - -expect(1 + 1).to(equal(3), description: "Make sure libKindergartenMath is loaded") -// failed - Make sure libKindergartenMath is loaded -// expected to equal <3>, got <2> -``` - -Or the *WithDescription version in Objective-C: - -```objc -// Objective-C - -@import Nimble; - -expect(@(1+1)).to(equal(@3)); -// failed - expected to equal <3.0000>, got <2.0000> - -expect(@(1+1)).toWithDescription(equal(@3), @"Make sure libKindergartenMath is loaded"); -// failed - Make sure libKindergartenMath is loaded -// expected to equal <3.0000>, got <2.0000> -``` - -## Type Safety - -Nimble makes sure you don't compare two types that don't match: - -```swift -// Swift - -// Does not compile: -expect(1 + 1).to(equal("Squee!")) -``` - -> Nimble uses generics--only available in Swift--to ensure - type correctness. That means type checking is - not available when using Nimble in Objective-C. :sob: - -## Operator Overloads - -Tired of so much typing? With Nimble, you can use overloaded operators -like `==` for equivalence, or `>` for comparisons: - -```swift -// Swift - -// Passes if squawk does not equal "Hi!": -expect(seagull.squawk) != "Hi!" - -// Passes if 10 is greater than 2: -expect(10) > 2 -``` - -> Operator overloads are only available in Swift, so you won't be able - to use this syntax in Objective-C. :broken_heart: - -## Lazily Computed Values - -The `expect` function doesn't evaluate the value it's given until it's -time to match. So Nimble can test whether an expression raises an -exception once evaluated: - -```swift -// Swift - -// Note: Swift currently doesn't have exceptions. -// Only Objective-C code can raise exceptions -// that Nimble will catch. -// (see https://github.com/Quick/Nimble/issues/220#issuecomment-172667064) -let exception = NSException( - name: NSInternalInconsistencyException, - reason: "Not enough fish in the sea.", - userInfo: ["something": "is fishy"]) -expect { exception.raise() }.to(raiseException()) - -// Also, you can customize raiseException to be more specific -expect { exception.raise() }.to(raiseException(named: NSInternalInconsistencyException)) -expect { exception.raise() }.to(raiseException( - named: NSInternalInconsistencyException, - reason: "Not enough fish in the sea")) -expect { exception.raise() }.to(raiseException( - named: NSInternalInconsistencyException, - reason: "Not enough fish in the sea", - userInfo: ["something": "is fishy"])) -``` - -Objective-C works the same way, but you must use the `expectAction` -macro when making an expectation on an expression that has no return -value: - -```objc -// Objective-C - -NSException *exception = [NSException exceptionWithName:NSInternalInconsistencyException - reason:@"Not enough fish in the sea." - userInfo:nil]; -expectAction(^{ [exception raise]; }).to(raiseException()); - -// Use the property-block syntax to be more specific. -expectAction(^{ [exception raise]; }).to(raiseException().named(NSInternalInconsistencyException)); -expectAction(^{ [exception raise]; }).to(raiseException(). - named(NSInternalInconsistencyException). - reason("Not enough fish in the sea")); -expectAction(^{ [exception raise]; }).to(raiseException(). - named(NSInternalInconsistencyException). - reason("Not enough fish in the sea"). - userInfo(@{@"something": @"is fishy"})); - -// You can also pass a block for custom matching of the raised exception -expectAction(exception.raise()).to(raiseException().satisfyingBlock(^(NSException *exception) { - expect(exception.name).to(beginWith(NSInternalInconsistencyException)); -})); -``` - -## C Primitives - -Some testing frameworks make it hard to test primitive C values. -In Nimble, it just works: - -```swift -// Swift - -let actual: CInt = 1 -let expectedValue: CInt = 1 -expect(actual).to(equal(expectedValue)) -``` - -In fact, Nimble uses type inference, so you can write the above -without explicitly specifying both types: - -```swift -// Swift - -expect(1 as CInt).to(equal(1)) -``` - -> In Objective-C, Nimble only supports Objective-C objects. To - make expectations on primitive C values, wrap then in an object - literal: - -```objc -expect(@(1 + 1)).to(equal(@2)); -``` - -## Asynchronous Expectations - -In Nimble, it's easy to make expectations on values that are updated -asynchronously. Just use `toEventually` or `toEventuallyNot`: - -```swift -// Swift -DispatchQueue.main.async { - ocean.add("dolphins") - ocean.add("whales") -} -expect(ocean).toEventually(contain("dolphins", "whales")) -``` - - -```objc -// Objective-C - -dispatch_async(dispatch_get_main_queue(), ^{ - [ocean add:@"dolphins"]; - [ocean add:@"whales"]; -}); -expect(ocean).toEventually(contain(@"dolphins", @"whales")); -``` - -Note: toEventually triggers its polls on the main thread. Blocking the main -thread will cause Nimble to stop the run loop. This can cause test pollution -for whatever incomplete code that was running on the main thread. Blocking the -main thread can be caused by blocking IO, calls to sleep(), deadlocks, and -synchronous IPC. - -In the above example, `ocean` is constantly re-evaluated. If it ever -contains dolphins and whales, the expectation passes. If `ocean` still -doesn't contain them, even after being continuously re-evaluated for one -whole second, the expectation fails. - -Sometimes it takes more than a second for a value to update. In those -cases, use the `timeout` parameter: - -```swift -// Swift - -// Waits three seconds for ocean to contain "starfish": -expect(ocean).toEventually(contain("starfish"), timeout: 3) - -// Evaluate someValue every 0.2 seconds repeatedly until it equals 100, or fails if it timeouts after 5.5 seconds. -expect(someValue).toEventually(equal(100), timeout: 5.5, pollInterval: 0.2) -``` - -```objc -// Objective-C - -// Waits three seconds for ocean to contain "starfish": -expect(ocean).withTimeout(3).toEventually(contain(@"starfish")); -``` - -You can also provide a callback by using the `waitUntil` function: - -```swift -// Swift - -waitUntil { done in - ocean.goFish { success in - expect(success).to(beTrue()) - done() - } -} -``` - -```objc -// Objective-C - -waitUntil(^(void (^done)(void)){ - [ocean goFishWithHandler:^(BOOL success){ - expect(success).to(beTrue()); - done(); - }]; -}); -``` - -`waitUntil` also optionally takes a timeout parameter: - -```swift -// Swift - -waitUntil(timeout: 10) { done in - ocean.goFish { success in - expect(success).to(beTrue()) - done() - } -} -``` - -```objc -// Objective-C - -waitUntilTimeout(10, ^(void (^done)(void)){ - [ocean goFishWithHandler:^(BOOL success){ - expect(success).to(beTrue()); - done(); - }]; -}); -``` - -Note: `waitUntil` triggers its timeout code on the main thread. Blocking the main -thread will cause Nimble to stop the run loop to continue. This can cause test -pollution for whatever incomplete code that was running on the main thread. -Blocking the main thread can be caused by blocking IO, calls to sleep(), -deadlocks, and synchronous IPC. - -In some cases (e.g. when running on slower machines) it can be useful to modify -the default timeout and poll interval values. This can be done as follows: - -```swift -// Swift - -// Increase the global timeout to 5 seconds: -Nimble.AsyncDefaults.Timeout = 5 - -// Slow the polling interval to 0.1 seconds: -Nimble.AsyncDefaults.PollInterval = 0.1 -``` - -## Objective-C Support - -Nimble has full support for Objective-C. However, there are two things -to keep in mind when using Nimble in Objective-C: - -1. All parameters passed to the `expect` function, as well as matcher - functions like `equal`, must be Objective-C objects or can be converted into - an `NSObject` equivalent: - - ```objc - // Objective-C - - @import Nimble; - - expect(@(1 + 1)).to(equal(@2)); - expect(@"Hello world").to(contain(@"world")); - - // Boxed as NSNumber * - expect(2).to(equal(2)); - expect(1.2).to(beLessThan(2.0)); - expect(true).to(beTruthy()); - - // Boxed as NSString * - expect("Hello world").to(equal("Hello world")); - - // Boxed as NSRange - expect(NSMakeRange(1, 10)).to(equal(NSMakeRange(1, 10))); - ``` - -2. To make an expectation on an expression that does not return a value, - such as `-[NSException raise]`, use `expectAction` instead of - `expect`: - - ```objc - // Objective-C - - expectAction(^{ [exception raise]; }).to(raiseException()); - ``` - -The following types are currently converted to an `NSObject` type: - - - **C Numeric types** are converted to `NSNumber *` - - `NSRange` is converted to `NSValue *` - - `char *` is converted to `NSString *` - -For the following matchers: - -- `equal` -- `beGreaterThan` -- `beGreaterThanOrEqual` -- `beLessThan` -- `beLessThanOrEqual` -- `beCloseTo` -- `beTrue` -- `beFalse` -- `beTruthy` -- `beFalsy` -- `haveCount` - -If you would like to see more, [file an issue](https://github.com/Quick/Nimble/issues). - -## Disabling Objective-C Shorthand - -Nimble provides a shorthand for expressing expectations using the -`expect` function. To disable this shorthand in Objective-C, define the -`NIMBLE_DISABLE_SHORT_SYNTAX` macro somewhere in your code before -importing Nimble: - -```objc -#define NIMBLE_DISABLE_SHORT_SYNTAX 1 - -@import Nimble; - -NMB_expect(^{ return seagull.squawk; }, __FILE__, __LINE__).to(NMB_equal(@"Squee!")); -``` - -> Disabling the shorthand is useful if you're testing functions with - names that conflict with Nimble functions, such as `expect` or - `equal`. If that's not the case, there's no point in disabling the - shorthand. - -# Built-in Matcher Functions - -Nimble includes a wide variety of matcher functions. - -## Type Checking - -Nimble supports checking the type membership of any kind of object, whether -Objective-C conformant or not: - -```swift -// Swift - -protocol SomeProtocol{} -class SomeClassConformingToProtocol: SomeProtocol{} -struct SomeStructConformingToProtocol: SomeProtocol{} - -// The following tests pass -expect(1).to(beAKindOf(Int.self)) -expect("turtle").to(beAKindOf(String.self)) - -let classObject = SomeClassConformingToProtocol() -expect(classObject).to(beAKindOf(SomeProtocol.self)) -expect(classObject).to(beAKindOf(SomeClassConformingToProtocol.self)) -expect(classObject).toNot(beAKindOf(SomeStructConformingToProtocol.self)) - -let structObject = SomeStructConformingToProtocol() -expect(structObject).to(beAKindOf(SomeProtocol.self)) -expect(structObject).to(beAKindOf(SomeStructConformingToProtocol.self)) -expect(structObject).toNot(beAKindOf(SomeClassConformingToProtocol.self)) -``` - -```objc -// Objective-C - -// The following tests pass -NSMutableArray *array = [NSMutableArray array]; -expect(array).to(beAKindOf([NSArray class])); -expect(@1).toNot(beAKindOf([NSNull class])); -``` - -Objects can be tested for their exact types using the `beAnInstanceOf` matcher: - -```swift -// Swift - -protocol SomeProtocol{} -class SomeClassConformingToProtocol: SomeProtocol{} -struct SomeStructConformingToProtocol: SomeProtocol{} - -// Unlike the 'beKindOf' matcher, the 'beAnInstanceOf' matcher only -// passes if the object is the EXACT type requested. The following -// tests pass -- note its behavior when working in an inheritance hierarchy. -expect(1).to(beAnInstanceOf(Int.self)) -expect("turtle").to(beAnInstanceOf(String.self)) - -let classObject = SomeClassConformingToProtocol() -expect(classObject).toNot(beAnInstanceOf(SomeProtocol.self)) -expect(classObject).to(beAnInstanceOf(SomeClassConformingToProtocol.self)) -expect(classObject).toNot(beAnInstanceOf(SomeStructConformingToProtocol.self)) - -let structObject = SomeStructConformingToProtocol() -expect(structObject).toNot(beAnInstanceOf(SomeProtocol.self)) -expect(structObject).to(beAnInstanceOf(SomeStructConformingToProtocol.self)) -expect(structObject).toNot(beAnInstanceOf(SomeClassConformingToProtocol.self)) -``` - -## Equivalence - -```swift -// Swift - -// Passes if 'actual' is equivalent to 'expected': -expect(actual).to(equal(expected)) -expect(actual) == expected - -// Passes if 'actual' is not equivalent to 'expected': -expect(actual).toNot(equal(expected)) -expect(actual) != expected -``` - -```objc -// Objective-C - -// Passes if 'actual' is equivalent to 'expected': -expect(actual).to(equal(expected)) - -// Passes if 'actual' is not equivalent to 'expected': -expect(actual).toNot(equal(expected)) -``` - -Values must be `Equatable`, `Comparable`, or subclasses of `NSObject`. -`equal` will always fail when used to compare one or more `nil` values. - -## Identity - -```swift -// Swift - -// Passes if 'actual' has the same pointer address as 'expected': -expect(actual).to(beIdenticalTo(expected)) -expect(actual) === expected - -// Passes if 'actual' does not have the same pointer address as 'expected': -expect(actual).toNot(beIdenticalTo(expected)) -expect(actual) !== expected -``` - -It is important to remember that `beIdenticalTo` only makes sense when comparing -types with reference semantics, which have a notion of identity. In Swift, -that means types that are defined as a `class`. - -This matcher will not work when comparing types with value semantics such as -those defined as a `struct` or `enum`. If you need to compare two value types, -consider what it means for instances of your type to be identical. This may mean -comparing individual properties or, if it makes sense to do so, conforming your type -to `Equatable` and using Nimble's equivalence matchers instead. - - -```objc -// Objective-C - -// Passes if 'actual' has the same pointer address as 'expected': -expect(actual).to(beIdenticalTo(expected)); - -// Passes if 'actual' does not have the same pointer address as 'expected': -expect(actual).toNot(beIdenticalTo(expected)); -``` - -## Comparisons - -```swift -// Swift - -expect(actual).to(beLessThan(expected)) -expect(actual) < expected - -expect(actual).to(beLessThanOrEqualTo(expected)) -expect(actual) <= expected - -expect(actual).to(beGreaterThan(expected)) -expect(actual) > expected - -expect(actual).to(beGreaterThanOrEqualTo(expected)) -expect(actual) >= expected -``` - -```objc -// Objective-C - -expect(actual).to(beLessThan(expected)); -expect(actual).to(beLessThanOrEqualTo(expected)); -expect(actual).to(beGreaterThan(expected)); -expect(actual).to(beGreaterThanOrEqualTo(expected)); -``` - -> Values given to the comparison matchers above must implement - `Comparable`. - -Because of how computers represent floating point numbers, assertions -that two floating point numbers be equal will sometimes fail. To express -that two numbers should be close to one another within a certain margin -of error, use `beCloseTo`: - -```swift -// Swift - -expect(actual).to(beCloseTo(expected, within: delta)) -``` - -```objc -// Objective-C - -expect(actual).to(beCloseTo(expected).within(delta)); -``` - -For example, to assert that `10.01` is close to `10`, you can write: - -```swift -// Swift - -expect(10.01).to(beCloseTo(10, within: 0.1)) -``` - -```objc -// Objective-C - -expect(@(10.01)).to(beCloseTo(@10).within(0.1)); -``` - -There is also an operator shortcut available in Swift: - -```swift -// Swift - -expect(actual) ≈ expected -expect(actual) ≈ (expected, delta) - -``` -(Type option+x to get `≈` on a U.S. keyboard) - -The former version uses the default delta of 0.0001. Here is yet another way to do this: - -```swift -// Swift - -expect(actual) ≈ expected ± delta -expect(actual) == expected ± delta - -``` -(Type option+shift+= to get `±` on a U.S. keyboard) - -If you are comparing arrays of floating point numbers, you'll find the following useful: - -```swift -// Swift - -expect([0.0, 2.0]) ≈ [0.0001, 2.0001] -expect([0.0, 2.0]).to(beCloseTo([0.1, 2.1], within: 0.1)) - -``` - -> Values given to the `beCloseTo` matcher must be coercable into a - `Double`. - -## Types/Classes - -```swift -// Swift - -// Passes if 'instance' is an instance of 'aClass': -expect(instance).to(beAnInstanceOf(aClass)) - -// Passes if 'instance' is an instance of 'aClass' or any of its subclasses: -expect(instance).to(beAKindOf(aClass)) -``` - -```objc -// Objective-C - -// Passes if 'instance' is an instance of 'aClass': -expect(instance).to(beAnInstanceOf(aClass)); - -// Passes if 'instance' is an instance of 'aClass' or any of its subclasses: -expect(instance).to(beAKindOf(aClass)); -``` - -> Instances must be Objective-C objects: subclasses of `NSObject`, - or Swift objects bridged to Objective-C with the `@objc` prefix. - -For example, to assert that `dolphin` is a kind of `Mammal`: - -```swift -// Swift - -expect(dolphin).to(beAKindOf(Mammal)) -``` - -```objc -// Objective-C - -expect(dolphin).to(beAKindOf([Mammal class])); -``` - -> `beAnInstanceOf` uses the `-[NSObject isMemberOfClass:]` method to - test membership. `beAKindOf` uses `-[NSObject isKindOfClass:]`. - -## Truthiness - -```swift -// Passes if 'actual' is not nil, true, or an object with a boolean value of true: -expect(actual).to(beTruthy()) - -// Passes if 'actual' is only true (not nil or an object conforming to Boolean true): -expect(actual).to(beTrue()) - -// Passes if 'actual' is nil, false, or an object with a boolean value of false: -expect(actual).to(beFalsy()) - -// Passes if 'actual' is only false (not nil or an object conforming to Boolean false): -expect(actual).to(beFalse()) - -// Passes if 'actual' is nil: -expect(actual).to(beNil()) -``` - -```objc -// Objective-C - -// Passes if 'actual' is not nil, true, or an object with a boolean value of true: -expect(actual).to(beTruthy()); - -// Passes if 'actual' is only true (not nil or an object conforming to Boolean true): -expect(actual).to(beTrue()); - -// Passes if 'actual' is nil, false, or an object with a boolean value of false: -expect(actual).to(beFalsy()); - -// Passes if 'actual' is only false (not nil or an object conforming to Boolean false): -expect(actual).to(beFalse()); - -// Passes if 'actual' is nil: -expect(actual).to(beNil()); -``` - -## Swift Assertions - -If you're using Swift, you can use the `throwAssertion` matcher to check if an assertion is thrown (e.g. `fatalError()`). This is made possible by [@mattgallagher](https://github.com/mattgallagher)'s [CwlPreconditionTesting](https://github.com/mattgallagher/CwlPreconditionTesting) library. - -```swift -// Swift - -// Passes if 'somethingThatThrows()' throws an assertion, -// such as by calling 'fatalError()' or if a precondition fails: -expect { try somethingThatThrows() }.to(throwAssertion()) -expect { () -> Void in fatalError() }.to(throwAssertion()) -expect { precondition(false) }.to(throwAssertion()) - -// Passes if throwing an NSError is not equal to throwing an assertion: -expect { throw NSError(domain: "test", code: 0, userInfo: nil) }.toNot(throwAssertion()) - -// Passes if the code after the precondition check is not run: -var reachedPoint1 = false -var reachedPoint2 = false -expect { - reachedPoint1 = true - precondition(false, "condition message") - reachedPoint2 = true -}.to(throwAssertion()) - -expect(reachedPoint1) == true -expect(reachedPoint2) == false -``` - -Notes: - -* This feature is only available in Swift. -* It is only supported for `x86_64` binaries, meaning _you cannot run this matcher on iOS devices, only simulators_. -* The tvOS simulator is supported, but using a different mechanism, requiring you to turn off the `Debug executable` scheme setting for your tvOS scheme's Test configuration. - -## Swift Error Handling - -You can use the `throwError` matcher to check if an error is thrown. - -```swift -// Swift - -// Passes if 'somethingThatThrows()' throws an 'Error': -expect { try somethingThatThrows() }.to(throwError()) - -// Passes if 'somethingThatThrows()' throws an error within a particular domain: -expect { try somethingThatThrows() }.to(throwError { (error: Error) in - expect(error._domain).to(equal(NSCocoaErrorDomain)) -}) - -// Passes if 'somethingThatThrows()' throws a particular error enum case: -expect { try somethingThatThrows() }.to(throwError(NSCocoaError.PropertyListReadCorruptError)) - -// Passes if 'somethingThatThrows()' throws an error of a particular type: -expect { try somethingThatThrows() }.to(throwError(errorType: NimbleError.self)) -``` - -When working directly with `Error` values, using the `matchError` matcher -allows you to perform certain checks on the error itself without having to -explicitly cast the error. - -The `matchError` matcher allows you to check whether or not the error: - -- is the same _type_ of error you are expecting. -- represents a particular error value that you are expecting. - -This can be useful when using `Result` or `Promise` types, for example. - -```swift -// Swift - -let actual: Error = ... - -// Passes if 'actual' represents any error value from the NimbleErrorEnum type: -expect(actual).to(matchError(NimbleErrorEnum.self)) - -// Passes if 'actual' represents the case 'timeout' from the NimbleErrorEnum type: -expect(actual).to(matchError(NimbleErrorEnum.timeout)) - -// Passes if 'actual' contains an NSError equal to the one provided: -expect(actual).to(matchError(NSError(domain: "err", code: 123, userInfo: nil))) -``` - -Note: This feature is only available in Swift. - -## Exceptions - -```swift -// Swift - -// Passes if 'actual', when evaluated, raises an exception: -expect(actual).to(raiseException()) - -// Passes if 'actual' raises an exception with the given name: -expect(actual).to(raiseException(named: name)) - -// Passes if 'actual' raises an exception with the given name and reason: -expect(actual).to(raiseException(named: name, reason: reason)) - -// Passes if 'actual' raises an exception which passes expectations defined in the given closure: -// (in this case, if the exception's name begins with "a r") -expect { exception.raise() }.to(raiseException { (exception: NSException) in - expect(exception.name).to(beginWith("a r")) -}) -``` - -```objc -// Objective-C - -// Passes if 'actual', when evaluated, raises an exception: -expect(actual).to(raiseException()) - -// Passes if 'actual' raises an exception with the given name -expect(actual).to(raiseException().named(name)) - -// Passes if 'actual' raises an exception with the given name and reason: -expect(actual).to(raiseException().named(name).reason(reason)) - -// Passes if 'actual' raises an exception and it passes expectations defined in the given block: -// (in this case, if name begins with "a r") -expect(actual).to(raiseException().satisfyingBlock(^(NSException *exception) { - expect(exception.name).to(beginWith(@"a r")); -})); -``` - -Note: Swift currently doesn't have exceptions (see [#220](https://github.com/Quick/Nimble/issues/220#issuecomment-172667064)). -Only Objective-C code can raise exceptions that Nimble will catch. - -## Collection Membership - -```swift -// Swift - -// Passes if all of the expected values are members of 'actual': -expect(actual).to(contain(expected...)) - -// Passes if 'actual' is empty (i.e. it contains no elements): -expect(actual).to(beEmpty()) -``` - -```objc -// Objective-C - -// Passes if expected is a member of 'actual': -expect(actual).to(contain(expected)); - -// Passes if 'actual' is empty (i.e. it contains no elements): -expect(actual).to(beEmpty()); -``` - -> In Swift `contain` takes any number of arguments. The expectation - passes if all of them are members of the collection. In Objective-C, - `contain` only takes one argument [for now](https://github.com/Quick/Nimble/issues/27). - -For example, to assert that a list of sea creature names contains -"dolphin" and "starfish": - -```swift -// Swift - -expect(["whale", "dolphin", "starfish"]).to(contain("dolphin", "starfish")) -``` - -```objc -// Objective-C - -expect(@[@"whale", @"dolphin", @"starfish"]).to(contain(@"dolphin")); -expect(@[@"whale", @"dolphin", @"starfish"]).to(contain(@"starfish")); -``` - -> `contain` and `beEmpty` expect collections to be instances of - `NSArray`, `NSSet`, or a Swift collection composed of `Equatable` elements. - -To test whether a set of elements is present at the beginning or end of -an ordered collection, use `beginWith` and `endWith`: - -```swift -// Swift - -// Passes if the elements in expected appear at the beginning of 'actual': -expect(actual).to(beginWith(expected...)) - -// Passes if the the elements in expected come at the end of 'actual': -expect(actual).to(endWith(expected...)) -``` - -```objc -// Objective-C - -// Passes if the elements in expected appear at the beginning of 'actual': -expect(actual).to(beginWith(expected)); - -// Passes if the the elements in expected come at the end of 'actual': -expect(actual).to(endWith(expected)); -``` - -> `beginWith` and `endWith` expect collections to be instances of - `NSArray`, or ordered Swift collections composed of `Equatable` - elements. - - Like `contain`, in Objective-C `beginWith` and `endWith` only support - a single argument [for now](https://github.com/Quick/Nimble/issues/27). - -For code that returns collections of complex objects without a strict -ordering, there is the `containElementSatisfying` matcher: - -```swift -// Swift - -struct Turtle { - let color: String -} - -let turtles: [Turtle] = functionThatReturnsSomeTurtlesInAnyOrder() - -// This set of matchers passes regardless of whether the array is -// [{color: "blue"}, {color: "green"}] or [{color: "green"}, {color: "blue"}]: - -expect(turtles).to(containElementSatisfying({ turtle in - return turtle.color == "green" -})) -expect(turtles).to(containElementSatisfying({ turtle in - return turtle.color == "blue" -}, "that is a turtle with color 'blue'")) - -// The second matcher will incorporate the provided string in the error message -// should it fail -``` - -```objc -// Objective-C - -@interface Turtle : NSObject -@property (nonatomic, readonly, nonnull) NSString *color; -@end - -@implementation Turtle -@end - -NSArray * __nonnull turtles = functionThatReturnsSomeTurtlesInAnyOrder(); - -// This set of matchers passes regardless of whether the array is -// [{color: "blue"}, {color: "green"}] or [{color: "green"}, {color: "blue"}]: - -expect(turtles).to(containElementSatisfying(^BOOL(id __nonnull object) { - return [[turtle color] isEqualToString:@"green"]; -})); -expect(turtles).to(containElementSatisfying(^BOOL(id __nonnull object) { - return [[turtle color] isEqualToString:@"blue"]; -})); -``` - -## Strings - -```swift -// Swift - -// Passes if 'actual' contains 'substring': -expect(actual).to(contain(substring)) - -// Passes if 'actual' begins with 'prefix': -expect(actual).to(beginWith(prefix)) - -// Passes if 'actual' ends with 'suffix': -expect(actual).to(endWith(suffix)) - -// Passes if 'actual' represents the empty string, "": -expect(actual).to(beEmpty()) - -// Passes if 'actual' matches the regular expression defined in 'expected': -expect(actual).to(match(expected)) -``` - -```objc -// Objective-C - -// Passes if 'actual' contains 'substring': -expect(actual).to(contain(expected)); - -// Passes if 'actual' begins with 'prefix': -expect(actual).to(beginWith(prefix)); - -// Passes if 'actual' ends with 'suffix': -expect(actual).to(endWith(suffix)); - -// Passes if 'actual' represents the empty string, "": -expect(actual).to(beEmpty()); - -// Passes if 'actual' matches the regular expression defined in 'expected': -expect(actual).to(match(expected)) -``` - -## Collection Elements - -Nimble provides a means to check that all elements of a collection pass a given expectation. - -### Swift - -In Swift, the collection must be an instance of a type conforming to -`Sequence`. - -```swift -// Swift - -// Providing a custom function: -expect([1, 2, 3, 4]).to(allPass { $0! < 5 }) - -// Composing the expectation with another matcher: -expect([1, 2, 3, 4]).to(allPass(beLessThan(5))) -``` - -### Objective-C - -In Objective-C, the collection must be an instance of a type which implements -the `NSFastEnumeration` protocol, and whose elements are instances of a type -which subclasses `NSObject`. - -Additionally, unlike in Swift, there is no override to specify a custom -matcher function. - -```objc -// Objective-C - -expect(@[@1, @2, @3, @4]).to(allPass(beLessThan(@5))); -``` - -## Collection Count - -```swift -// Swift - -// Passes if 'actual' contains the 'expected' number of elements: -expect(actual).to(haveCount(expected)) - -// Passes if 'actual' does _not_ contain the 'expected' number of elements: -expect(actual).notTo(haveCount(expected)) -``` - -```objc -// Objective-C - -// Passes if 'actual' contains the 'expected' number of elements: -expect(actual).to(haveCount(expected)) - -// Passes if 'actual' does _not_ contain the 'expected' number of elements: -expect(actual).notTo(haveCount(expected)) -``` - -For Swift, the actual value must be an instance of a type conforming to `Collection`. -For example, instances of `Array`, `Dictionary`, or `Set`. - -For Objective-C, the actual value must be one of the following classes, or their subclasses: - - - `NSArray`, - - `NSDictionary`, - - `NSSet`, or - - `NSHashTable`. - -## Notifications - -```swift -// Swift -let testNotification = Notification(name: "Foo", object: nil) - -// passes if the closure in expect { ... } posts a notification to the default -// notification center. -expect { - NotificationCenter.default.postNotification(testNotification) -}.to(postNotifications(equal([testNotification])) - -// passes if the closure in expect { ... } posts a notification to a given -// notification center -let notificationCenter = NotificationCenter() -expect { - notificationCenter.postNotification(testNotification) -}.to(postNotifications(equal([testNotification]), fromNotificationCenter: notificationCenter)) -``` - -> This matcher is only available in Swift. - -## Matching a value to any of a group of matchers - -```swift -// Swift - -// passes if actual is either less than 10 or greater than 20 -expect(actual).to(satisfyAnyOf(beLessThan(10), beGreaterThan(20))) - -// can include any number of matchers -- the following will pass -// **be careful** -- too many matchers can be the sign of an unfocused test -expect(6).to(satisfyAnyOf(equal(2), equal(3), equal(4), equal(5), equal(6), equal(7))) - -// in Swift you also have the option to use the || operator to achieve a similar function -expect(82).to(beLessThan(50) || beGreaterThan(80)) -``` - -```objc -// Objective-C - -// passes if actual is either less than 10 or greater than 20 -expect(actual).to(satisfyAnyOf(beLessThan(@10), beGreaterThan(@20))) - -// can include any number of matchers -- the following will pass -// **be careful** -- too many matchers can be the sign of an unfocused test -expect(@6).to(satisfyAnyOf(equal(@2), equal(@3), equal(@4), equal(@5), equal(@6), equal(@7))) -``` - -Note: This matcher allows you to chain any number of matchers together. This provides flexibility, - but if you find yourself chaining many matchers together in one test, consider whether you - could instead refactor that single test into multiple, more precisely focused tests for - better coverage. - -## Custom Validation - -```swift -// Swift - -// passes if .succeeded is returned from the closure -expect({ - guard case .enumCaseWithAssociatedValueThatIDontCareAbout = actual else { - return .failed(reason: "wrong enum case") - } - - return .succeeded -}).to(succeed()) - -// passes if .failed is returned from the closure -expect({ - guard case .enumCaseWithAssociatedValueThatIDontCareAbout = actual else { - return .failed(reason: "wrong enum case") - } - - return .succeeded -}).notTo(succeed()) -``` - -The `String` provided with `.failed()` is shown when the test fails. - -When using `toEventually()` be careful not to make state changes or run process intensive code since this closure will be ran many times. - -# Writing Your Own Matchers - -In Nimble, matchers are Swift functions that take an expected -value and return a `Predicate` closure. Take `equal`, for example: - -```swift -// Swift - -public func equal(expectedValue: T?) -> Predicate { - // Can be shortened to: - // Predicate { actual in ... } - // - // But shown with types here for clarity. - return Predicate { (actualExpression: Expression) throws -> PredicateResult in - let msg = ExpectationMessage.expectedActualValueTo("equal <\(expectedValue)>") - if let actualValue = try actualExpression.evaluate() { - return PredicateResult( - bool: actualValue == expectedValue!, - message: msg - ) - } else { - return PredicateResult( - status: .fail, - message: msg.appendedBeNilHint() - ) - } - } -} -``` - -The return value of a `Predicate` closure is a `PredicateResult` that indicates -whether the actual value matches the expectation and what error message to -display on failure. - -> The actual `equal` matcher function does not match when - `expected` are nil; the example above has been edited for brevity. - -Since matchers are just Swift functions, you can define them anywhere: -at the top of your test file, in a file shared by all of your tests, or -in an Xcode project you distribute to others. - -> If you write a matcher you think everyone can use, consider adding it - to Nimble's built-in set of matchers by sending a pull request! Or - distribute it yourself via GitHub. - -For examples of how to write your own matchers, just check out the -[`Matchers` directory](https://github.com/Quick/Nimble/tree/master/Sources/Nimble/Matchers) -to see how Nimble's built-in set of matchers are implemented. You can -also check out the tips below. - -## PredicateResult - -`PredicateResult` is the return struct that `Predicate` return to indicate -success and failure. A `PredicateResult` is made up of two values: -`PredicateStatus` and `ExpectationMessage`. - -Instead of a boolean, `PredicateStatus` captures a trinary set of values: - -```swift -// Swift - -public enum PredicateStatus { -// The predicate "passes" with the given expression -// eg - expect(1).to(equal(1)) -case matches - -// The predicate "fails" with the given expression -// eg - expect(1).toNot(equal(1)) -case doesNotMatch - -// The predicate never "passes" with the given expression, even if negated -// eg - expect(nil as Int?).toNot(equal(1)) -case fail - -// ... -} -``` - -Meanwhile, `ExpectationMessage` provides messaging semantics for error reporting. - -```swift -// Swift - -public indirect enum ExpectationMessage { -// Emits standard error message: -// eg - "expected to , got " -case expectedActualValueTo(/* message: */ String) - -// Allows any free-form message -// eg - "" -case fail(/* message: */ String) - -// ... -} -``` - -Predicates should usually depend on either `.expectedActualValueTo(..)` or -`.fail(..)` when reporting errors. Special cases can be used for the other enum -cases. - -Finally, if your Predicate utilizes other Predicates, you can utilize -`.appended(details:)` and `.appended(message:)` methods to annotate an existing -error with more details. - -A common message to append is failing on nils. For that, `.appendedBeNilHint()` -can be used. - -## Lazy Evaluation - -`actualExpression` is a lazy, memoized closure around the value provided to the -`expect` function. The expression can either be a closure or a value directly -passed to `expect(...)`. In order to determine whether that value matches, -custom matchers should call `actualExpression.evaluate()`: - -```swift -// Swift - -public func beNil() -> Predicate { - // Predicate.simpleNilable(..) automatically generates ExpectationMessage for - // us based on the string we provide to it. Also, the 'Nilable' postfix indicates - // that this Predicate supports matching against nil actualExpressions, instead of - // always resulting in a PredicateStatus.fail result -- which is true for - // Predicate.simple(..) - return Predicate.simpleNilable("be nil") { actualExpression in - let actualValue = try actualExpression.evaluate() - return PredicateStatus(bool: actualValue == nil) - } -} -``` - -In the above example, `actualExpression` is not `nil` -- it is a closure -that returns a value. The value it returns, which is accessed via the -`evaluate()` method, may be `nil`. If that value is `nil`, the `beNil` -matcher function returns `true`, indicating that the expectation passed. - -## Type Checking via Swift Generics - -Using Swift's generics, matchers can constrain the type of the actual value -passed to the `expect` function by modifying the return type. - -For example, the following matcher, `haveDescription`, only accepts actual -values that implement the `Printable` protocol. It checks their `description` -against the one provided to the matcher function, and passes if they are the same: - -```swift -// Swift - -public func haveDescription(description: String) -> Predicate { - return Predicate.simple("have description") { actual in - return PredicateStatus(bool: actual.evaluate().description == description) - } -} -``` - -## Customizing Failure Messages - -When using `Predicate.simple(..)` or `Predicate.simpleNilable(..)`, Nimble -outputs the following failure message when an expectation fails: - -```swift -// where `message` is the first string argument and -// `actual` is the actual value received in `expect(..)` -"expected to \(message), got <\(actual)>" -``` - -You can customize this message by modifying the way you create a `Predicate`. - -### Basic Customization - -For slightly more complex error messaging, receive the created failure message -with `Predicate.define(..)`: - -```swift -// Swift - -public func equal(_ expectedValue: T?) -> Predicate { - return Predicate.define("equal <\(stringify(expectedValue))>") { actualExpression, msg in - let actualValue = try actualExpression.evaluate() - let matches = actualValue == expectedValue && expectedValue != nil - if expectedValue == nil || actualValue == nil { - if expectedValue == nil && actualValue != nil { - return PredicateResult( - status: .fail, - message: msg.appendedBeNilHint() - ) - } - return PredicateResult(status: .fail, message: msg) - } - return PredicateResult(bool: matches, message: msg) - } -} -``` - -In the example above, `msg` is defined based on the string given to -`Predicate.define`. The code looks akin to: - -```swift -// Swift - -let msg = ExpectationMessage.expectedActualValueTo("equal <\(stringify(expectedValue))>") -``` - -### Full Customization - -To fully customize the behavior of the Predicate, use the overload that expects -a `PredicateResult` to be returned. - -Along with `PredicateResult`, there are other `ExpectationMessage` enum values you can use: - -```swift -public indirect enum ExpectationMessage { -// Emits standard error message: -// eg - "expected to , got " -case expectedActualValueTo(/* message: */ String) - -// Allows any free-form message -// eg - "" -case fail(/* message: */ String) - -// Emits standard error message with a custom actual value instead of the default. -// eg - "expected to , got " -case expectedCustomValueTo(/* message: */ String, /* actual: */ String) - -// Emits standard error message without mentioning the actual value -// eg - "expected to " -case expectedTo(/* message: */ String) - -// ... -} -``` - -For matchers that compose other matchers, there are a handful of helper -functions to annotate messages. - -`appended(message: String)` is used to append to the original failure message: - -```swift -// produces "expected to be true, got (use beFalse() for inverse)" -// appended message do show up inline in Xcode. -.expectedActualValueTo("be true").appended(message: " (use beFalse() for inverse)") -``` - -For a more comprehensive message that spans multiple lines, use -`appended(details: String)` instead: - -```swift -// produces "expected to be true, got \n\nuse beFalse() for inverse\nor use beNil()" -// details do not show inline in Xcode, but do show up in test logs. -.expectedActualValueTo("be true").appended(details: "use beFalse() for inverse\nor use beNil()") -``` - -## Supporting Objective-C - -To use a custom matcher written in Swift from Objective-C, you'll have -to extend the `NMBObjCMatcher` class, adding a new class method for your -custom matcher. The example below defines the class method -`+[NMBObjCMatcher beNilMatcher]`: - -```swift -// Swift - -extension NMBObjCMatcher { - public class func beNilMatcher() -> NMBObjCMatcher { - return NMBObjCMatcher { actualBlock, failureMessage, location in - let block = ({ actualBlock() as NSObject? }) - let expr = Expression(expression: block, location: location) - return beNil().matches(expr, failureMessage: failureMessage) - } - } -} -``` - -The above allows you to use the matcher from Objective-C: - -```objc -// Objective-C - -expect(actual).to([NMBObjCMatcher beNilMatcher]()); -``` - -To make the syntax easier to use, define a C function that calls the -class method: - -```objc -// Objective-C - -FOUNDATION_EXPORT id beNil() { - return [NMBObjCMatcher beNilMatcher]; -} -``` - -### Properly Handling `nil` in Objective-C Matchers - -When supporting Objective-C, make sure you handle `nil` appropriately. -Like [Cedar](https://github.com/pivotal/cedar/issues/100), -**most matchers do not match with nil**. This is to bring prevent test -writers from being surprised by `nil` values where they did not expect -them. - -Nimble provides the `beNil` matcher function for test writer that want -to make expectations on `nil` objects: - -```objc -// Objective-C - -expect(nil).to(equal(nil)); // fails -expect(nil).to(beNil()); // passes -``` - -If your matcher does not want to match with nil, you use `NonNilMatcherFunc` -and the `canMatchNil` constructor on `NMBObjCMatcher`. Using both types will -automatically generate expected value failure messages when they're nil. - -```swift - -public func beginWith(startingElement: T) -> NonNilMatcherFunc { - return NonNilMatcherFunc { actualExpression, failureMessage in - failureMessage.postfixMessage = "begin with <\(startingElement)>" - if let actualValue = actualExpression.evaluate() { - var actualGenerator = actualValue.makeIterator() - return actualGenerator.next() == startingElement - } - return false - } -} - -extension NMBObjCMatcher { - public class func beginWithMatcher(expected: AnyObject) -> NMBObjCMatcher { - return NMBObjCMatcher(canMatchNil: false) { actualExpression, failureMessage in - let actual = actualExpression.evaluate() - let expr = actualExpression.cast { $0 as? NMBOrderedCollection } - return beginWith(expected).matches(expr, failureMessage: failureMessage) - } - } -} -``` - -## Migrating from the Old Matcher API - -Previously (`<7.0.0`), Nimble supported matchers via the following types: - -- `Matcher` -- `NonNilMatcherFunc` -- `MatcherFunc` - -All of those types have been replaced by `Predicate`. While migrating can be a -lot of work, Nimble currently provides several steps to aid migration of your -custom matchers: - -### Minimal Step - Use `.predicate` - -Nimble provides an extension to the old types that automatically naively -converts those types to the newer `Predicate`. - -```swift -// Swift -public func beginWith(startingElement: T) -> Predicate { - return NonNilMatcherFunc { actualExpression, failureMessage in - failureMessage.postfixMessage = "begin with <\(startingElement)>" - if let actualValue = actualExpression.evaluate() { - var actualGenerator = actualValue.makeIterator() - return actualGenerator.next() == startingElement - } - return false - }.predicate -} -``` - -This is the simpliest way to externally support `Predicate` which allows easier -composition than the old Nimble matcher interface, with minimal effort to change. - -### Convert to use `Predicate` Type with Old Matcher Constructor - -The second most convenient step is to utilize special constructors that -`Predicate` supports that closely align to the constructors of the old Nimble -matcher types. - -```swift -// Swift -public func beginWith(startingElement: T) -> Predicate { - return Predicate.fromDeprecatedClosure { actualExpression, failureMessage in - failureMessage.postfixMessage = "begin with <\(startingElement)>" - if let actualValue = actualExpression.evaluate() { - var actualGenerator = actualValue.makeIterator() - return actualGenerator.next() == startingElement - } - return false - } -} -``` - -This allows you to completely drop the old types from your code, although the -intended behavior may alter slightly to what is desired. - -### Convert to `Predicate` Type with Preferred Constructor - -Finally, you can convert to the native `Predicate` format using one of the -constructors not used to assist in the migration. - -### Deprecation Roadmap - -Nimble 7 introduces `Predicate` but will support the old types with warning -deprecations. A couple major releases of Nimble will remain backwards -compatible with the old matcher api, although new features may not be -backported. - -The deprecating plan is a 3 major versions removal. Which is as follows: - - 1. Introduce new `Predicate` API, deprecation warning for old matcher APIs. - (Nimble `v7.x.x` and `v8.x.x`) - 2. Introduce warnings on migration-path features (`.predicate`, - `Predicate`-constructors with similar arguments to old API). (Nimble - `v9.x.x`) - 3. Remove old API. (Nimble `v10.x.x`) - - -# Installing Nimble - -> Nimble can be used on its own, or in conjunction with its sister - project, [Quick](https://github.com/Quick/Quick). To install both - Quick and Nimble, follow [the installation instructions in the Quick - Documentation](https://github.com/Quick/Quick/blob/master/Documentation/en-us/InstallingQuick.md). - -Nimble can currently be installed in one of two ways: using CocoaPods, or with -git submodules. - -## Installing Nimble as a Submodule - -To use Nimble as a submodule to test your macOS, iOS or tvOS applications, follow -these 4 easy steps: - -1. Clone the Nimble repository -2. Add Nimble.xcodeproj to the Xcode workspace for your project -3. Link Nimble.framework to your test target -4. Start writing expectations! - -For more detailed instructions on each of these steps, -read [How to Install Quick](https://github.com/Quick/Quick#how-to-install-quick). -Ignore the steps involving adding Quick to your project in order to -install just Nimble. - -## Installing Nimble via CocoaPods - -To use Nimble in CocoaPods to test your macOS, iOS or tvOS applications, add -Nimble to your podfile and add the ```use_frameworks!``` line to enable Swift -support for CocoaPods. - -```ruby -platform :ios, '8.0' - -source 'https://github.com/CocoaPods/Specs.git' - -# Whatever pods you need for your app go here - -target 'YOUR_APP_NAME_HERE_Tests', :exclusive => true do - use_frameworks! - pod 'Nimble', '~> 6.0.0' -end -``` - -Finally run `pod install`. - -## Installing Nimble via Accio - -Add the following to your Package.swift: - -```swift -.package(url: "https://github.com/Quick/Nimble.git", .upToNextMajor(from: "8.0.1")), -``` - -Next, add `Nimble` to your App targets dependencies like so: - -```swift -.testTarget( - name: "AppTests", - dependencies: [ - "Nimble", - ] -), -``` - -Then run `accio update`. - -## Using Nimble without XCTest - -Nimble is integrated with XCTest to allow it work well when used in Xcode test -bundles, however it can also be used in a standalone app. After installing -Nimble using one of the above methods, there are two additional steps required -to make this work. - -1. Create a custom assertion handler and assign an instance of it to the - global `NimbleAssertionHandler` variable. For example: - -```swift -class MyAssertionHandler : AssertionHandler { - func assert(assertion: Bool, message: FailureMessage, location: SourceLocation) { - if (!assertion) { - print("Expectation failed: \(message.stringValue)") - } - } -} -``` -```swift -// Somewhere before you use any assertions -NimbleAssertionHandler = MyAssertionHandler() -``` - -2. Add a post-build action to fix an issue with the Swift XCTest support - library being unnecessarily copied into your app - * Edit your scheme in Xcode, and navigate to Build -> Post-actions - * Click the "+" icon and select "New Run Script Action" - * Open the "Provide build settings from" dropdown and select your target - * Enter the following script contents: -``` -rm "${SWIFT_STDLIB_TOOL_DESTINATION_DIR}/libswiftXCTest.dylib" -``` - -You can now use Nimble assertions in your code and handle failures as you see -fit. diff --git a/Pods/Nimble/Sources/Nimble/Adapters/AdapterProtocols.swift b/Pods/Nimble/Sources/Nimble/Adapters/AdapterProtocols.swift deleted file mode 100644 index abaf532..0000000 --- a/Pods/Nimble/Sources/Nimble/Adapters/AdapterProtocols.swift +++ /dev/null @@ -1,18 +0,0 @@ -import Foundation - -/// Protocol for the assertion handler that Nimble uses for all expectations. -public protocol AssertionHandler { - func assert(_ assertion: Bool, message: FailureMessage, location: SourceLocation) -} - -/// Global backing interface for assertions that Nimble creates. -/// Defaults to a private test handler that passes through to XCTest. -/// -/// If XCTest is not available, you must assign your own assertion handler -/// before using any matchers, otherwise Nimble will abort the program. -/// -/// @see AssertionHandler -public var NimbleAssertionHandler: AssertionHandler = { () -> AssertionHandler in - // swiftlint:disable:previous identifier_name - return isXCTestAvailable() ? NimbleXCTestHandler() : NimbleXCTestUnavailableHandler() -}() diff --git a/Pods/Nimble/Sources/Nimble/Adapters/AssertionDispatcher.swift b/Pods/Nimble/Sources/Nimble/Adapters/AssertionDispatcher.swift deleted file mode 100644 index 94a9030..0000000 --- a/Pods/Nimble/Sources/Nimble/Adapters/AssertionDispatcher.swift +++ /dev/null @@ -1,19 +0,0 @@ -/// AssertionDispatcher allows multiple AssertionHandlers to receive -/// assertion messages. -/// -/// @warning Does not fully dispatch if one of the handlers raises an exception. -/// This is possible with XCTest-based assertion handlers. -/// -public class AssertionDispatcher: AssertionHandler { - let handlers: [AssertionHandler] - - public init(handlers: [AssertionHandler]) { - self.handlers = handlers - } - - public func assert(_ assertion: Bool, message: FailureMessage, location: SourceLocation) { - for handler in handlers { - handler.assert(assertion, message: message, location: location) - } - } -} diff --git a/Pods/Nimble/Sources/Nimble/Adapters/AssertionRecorder.swift b/Pods/Nimble/Sources/Nimble/Adapters/AssertionRecorder.swift deleted file mode 100644 index 0f5df59..0000000 --- a/Pods/Nimble/Sources/Nimble/Adapters/AssertionRecorder.swift +++ /dev/null @@ -1,127 +0,0 @@ -import Foundation - -/// A data structure that stores information about an assertion when -/// AssertionRecorder is set as the Nimble assertion handler. -/// -/// @see AssertionRecorder -/// @see AssertionHandler -public struct AssertionRecord: CustomStringConvertible { - /// Whether the assertion succeeded or failed - public let success: Bool - /// The failure message the assertion would display on failure. - public let message: FailureMessage - /// The source location the expectation occurred on. - public let location: SourceLocation - - public var description: String { - return "AssertionRecord { success=\(success), message='\(message.stringValue)', location=\(location) }" - } -} - -/// An AssertionHandler that silently records assertions that Nimble makes. -/// This is useful for testing failure messages for matchers. -/// -/// @see AssertionHandler -public class AssertionRecorder: AssertionHandler { - /// All the assertions that were captured by this recorder - public var assertions = [AssertionRecord]() - - public init() {} - - public func assert(_ assertion: Bool, message: FailureMessage, location: SourceLocation) { - assertions.append( - AssertionRecord( - success: assertion, - message: message, - location: location)) - } -} - -extension NMBExceptionCapture { - internal func tryBlockThrows(_ unsafeBlock: () throws -> Void) throws { - var catchedError: Error? - tryBlock { - do { - try unsafeBlock() - } catch { - catchedError = error - } - } - if let error = catchedError { - throw error - } - } -} - -/// Allows you to temporarily replace the current Nimble assertion handler with -/// the one provided for the scope of the closure. -/// -/// Once the closure finishes, then the original Nimble assertion handler is restored. -/// -/// @see AssertionHandler -public func withAssertionHandler(_ tempAssertionHandler: AssertionHandler, - file: FileString = #file, - line: UInt = #line, - closure: () throws -> Void) { - let environment = NimbleEnvironment.activeInstance - let oldRecorder = environment.assertionHandler - let capturer = NMBExceptionCapture(handler: nil, finally: ({ - environment.assertionHandler = oldRecorder - })) - environment.assertionHandler = tempAssertionHandler - - do { - try capturer.tryBlockThrows { - try closure() - } - } catch { - let failureMessage = FailureMessage() - failureMessage.stringValue = "unexpected error thrown: <\(error)>" - let location = SourceLocation(file: file, line: line) - tempAssertionHandler.assert(false, message: failureMessage, location: location) - } -} - -/// Captures expectations that occur in the given closure. Note that all -/// expectations will still go through to the default Nimble handler. -/// -/// This can be useful if you want to gather information about expectations -/// that occur within a closure. -/// -/// @param silently expectations are no longer send to the default Nimble -/// assertion handler when this is true. Defaults to false. -/// -/// @see gatherFailingExpectations -public func gatherExpectations(silently: Bool = false, closure: () -> Void) -> [AssertionRecord] { - let previousRecorder = NimbleEnvironment.activeInstance.assertionHandler - let recorder = AssertionRecorder() - let handlers: [AssertionHandler] - - if silently { - handlers = [recorder] - } else { - handlers = [recorder, previousRecorder] - } - - let dispatcher = AssertionDispatcher(handlers: handlers) - withAssertionHandler(dispatcher, closure: closure) - return recorder.assertions -} - -/// Captures failed expectations that occur in the given closure. Note that all -/// expectations will still go through to the default Nimble handler. -/// -/// This can be useful if you want to gather information about failed -/// expectations that occur within a closure. -/// -/// @param silently expectations are no longer send to the default Nimble -/// assertion handler when this is true. Defaults to false. -/// -/// @see gatherExpectations -/// @see raiseException source for an example use case. -public func gatherFailingExpectations(silently: Bool = false, closure: () -> Void) -> [AssertionRecord] { - let assertions = gatherExpectations(silently: silently, closure: closure) - return assertions.filter { assertion in - !assertion.success - } -} diff --git a/Pods/Nimble/Sources/Nimble/Adapters/NMBExpectation.swift b/Pods/Nimble/Sources/Nimble/Adapters/NMBExpectation.swift deleted file mode 100644 index 5338a46..0000000 --- a/Pods/Nimble/Sources/Nimble/Adapters/NMBExpectation.swift +++ /dev/null @@ -1,191 +0,0 @@ -import Foundation - -#if canImport(Darwin) && !SWIFT_PACKAGE - -private func from(objcPredicate: NMBPredicate) -> Predicate { - return Predicate { actualExpression in - let result = objcPredicate.satisfies(({ try actualExpression.evaluate() }), - location: actualExpression.location) - return result.toSwift() - } -} - -internal struct ObjCMatcherWrapper: Matcher { - let matcher: NMBMatcher - - func matches(_ actualExpression: Expression, failureMessage: FailureMessage) -> Bool { - return matcher.matches( - // swiftlint:disable:next force_try - ({ try! actualExpression.evaluate() }), - failureMessage: failureMessage, - location: actualExpression.location) - } - - func doesNotMatch(_ actualExpression: Expression, failureMessage: FailureMessage) -> Bool { - return matcher.doesNotMatch( - // swiftlint:disable:next force_try - ({ try! actualExpression.evaluate() }), - failureMessage: failureMessage, - location: actualExpression.location) - } -} - -// Equivalent to Expectation, but for Nimble's Objective-C interface -public class NMBExpectation: NSObject { - // swiftlint:disable identifier_name - internal let _actualBlock: () -> NSObject? - internal var _negative: Bool - internal let _file: FileString - internal let _line: UInt - internal var _timeout: TimeInterval = 1.0 - // swiftlint:enable identifier_name - - @objc public init(actualBlock: @escaping () -> NSObject?, negative: Bool, file: FileString, line: UInt) { - self._actualBlock = actualBlock - self._negative = negative - self._file = file - self._line = line - } - - private var expectValue: Expectation { - return expect(_file, line: _line) { - self._actualBlock() as NSObject? - } - } - - @objc public var withTimeout: (TimeInterval) -> NMBExpectation { - return { timeout in self._timeout = timeout - return self - } - } - - @objc public var to: (NMBMatcher) -> Void { - return { matcher in - if let pred = matcher as? NMBPredicate { - self.expectValue.to(from(objcPredicate: pred)) - } else { - self.expectValue.to(ObjCMatcherWrapper(matcher: matcher)) - } - } - } - - @objc public var toWithDescription: (NMBMatcher, String) -> Void { - return { matcher, description in - if let pred = matcher as? NMBPredicate { - self.expectValue.to(from(objcPredicate: pred), description: description) - } else { - self.expectValue.to(ObjCMatcherWrapper(matcher: matcher), description: description) - } - } - } - - @objc public var toNot: (NMBMatcher) -> Void { - return { matcher in - if let pred = matcher as? NMBPredicate { - self.expectValue.toNot(from(objcPredicate: pred)) - } else { - self.expectValue.toNot(ObjCMatcherWrapper(matcher: matcher)) - } - } - } - - @objc public var toNotWithDescription: (NMBMatcher, String) -> Void { - return { matcher, description in - if let pred = matcher as? NMBPredicate { - self.expectValue.toNot(from(objcPredicate: pred), description: description) - } else { - self.expectValue.toNot(ObjCMatcherWrapper(matcher: matcher), description: description) - } - } - } - - @objc public var notTo: (NMBMatcher) -> Void { return toNot } - - @objc public var notToWithDescription: (NMBMatcher, String) -> Void { return toNotWithDescription } - - @objc public var toEventually: (NMBMatcher) -> Void { - return { matcher in - if let pred = matcher as? NMBPredicate { - self.expectValue.toEventually( - from(objcPredicate: pred), - timeout: self._timeout, - description: nil - ) - } else { - self.expectValue.toEventually( - ObjCMatcherWrapper(matcher: matcher), - timeout: self._timeout, - description: nil - ) - } - } - } - - @objc public var toEventuallyWithDescription: (NMBMatcher, String) -> Void { - return { matcher, description in - if let pred = matcher as? NMBPredicate { - self.expectValue.toEventually( - from(objcPredicate: pred), - timeout: self._timeout, - description: description - ) - } else { - self.expectValue.toEventually( - ObjCMatcherWrapper(matcher: matcher), - timeout: self._timeout, - description: description - ) - } - } - } - - @objc public var toEventuallyNot: (NMBMatcher) -> Void { - return { matcher in - if let pred = matcher as? NMBPredicate { - self.expectValue.toEventuallyNot( - from(objcPredicate: pred), - timeout: self._timeout, - description: nil - ) - } else { - self.expectValue.toEventuallyNot( - ObjCMatcherWrapper(matcher: matcher), - timeout: self._timeout, - description: nil - ) - } - } - } - - @objc public var toEventuallyNotWithDescription: (NMBMatcher, String) -> Void { - return { matcher, description in - if let pred = matcher as? NMBPredicate { - self.expectValue.toEventuallyNot( - from(objcPredicate: pred), - timeout: self._timeout, - description: description - ) - } else { - self.expectValue.toEventuallyNot( - ObjCMatcherWrapper(matcher: matcher), - timeout: self._timeout, - description: description - ) - } - } - } - - @objc public var toNotEventually: (NMBMatcher) -> Void { - return toEventuallyNot - } - - @objc public var toNotEventuallyWithDescription: (NMBMatcher, String) -> Void { - return toEventuallyNotWithDescription - } - - @objc public class func failWithMessage(_ message: String, file: FileString, line: UInt) { - fail(message, location: SourceLocation(file: file, line: line)) - } -} - -#endif diff --git a/Pods/Nimble/Sources/Nimble/Adapters/NMBObjCMatcher.swift b/Pods/Nimble/Sources/Nimble/Adapters/NMBObjCMatcher.swift deleted file mode 100644 index a91efe3..0000000 --- a/Pods/Nimble/Sources/Nimble/Adapters/NMBObjCMatcher.swift +++ /dev/null @@ -1,95 +0,0 @@ -import Foundation - -#if canImport(Darwin) - -// swiftlint:disable line_length -public typealias MatcherBlock = (_ actualExpression: Expression, _ failureMessage: FailureMessage) throws -> Bool -public typealias FullMatcherBlock = (_ actualExpression: Expression, _ failureMessage: FailureMessage, _ shouldNotMatch: Bool) throws -> Bool -// swiftlint:enable line_length - -public class NMBObjCMatcher: NSObject, NMBMatcher { - // swiftlint:disable identifier_name - let _match: MatcherBlock - let _doesNotMatch: MatcherBlock - // swiftlint:enable identifier_name - let canMatchNil: Bool - - public init(canMatchNil: Bool, matcher: @escaping MatcherBlock, notMatcher: @escaping MatcherBlock) { - self.canMatchNil = canMatchNil - self._match = matcher - self._doesNotMatch = notMatcher - } - - public convenience init(matcher: @escaping MatcherBlock) { - self.init(canMatchNil: true, matcher: matcher) - } - - public convenience init(canMatchNil: Bool, matcher: @escaping MatcherBlock) { - self.init(canMatchNil: canMatchNil, matcher: matcher, notMatcher: ({ actualExpression, failureMessage in - return try !matcher(actualExpression, failureMessage) - })) - } - - public convenience init(matcher: @escaping FullMatcherBlock) { - self.init(canMatchNil: true, matcher: matcher) - } - - public convenience init(canMatchNil: Bool, matcher: @escaping FullMatcherBlock) { - self.init(canMatchNil: canMatchNil, matcher: ({ actualExpression, failureMessage in - return try matcher(actualExpression, failureMessage, false) - }), notMatcher: ({ actualExpression, failureMessage in - return try matcher(actualExpression, failureMessage, true) - })) - } - - private func canMatch(_ actualExpression: Expression, failureMessage: FailureMessage) -> Bool { - do { - if !canMatchNil { - if try actualExpression.evaluate() == nil { - failureMessage.postfixActual = " (use beNil() to match nils)" - return false - } - } - } catch let error { - failureMessage.actualValue = "an unexpected error thrown: \(error)" - return false - } - return true - } - - public func matches(_ actualBlock: @escaping () -> NSObject?, failureMessage: FailureMessage, location: SourceLocation) -> Bool { - let expr = Expression(expression: actualBlock, location: location) - let result: Bool - do { - result = try _match(expr, failureMessage) - } catch let error { - failureMessage.stringValue = "unexpected error thrown: <\(error)>" - return false - } - - if self.canMatch(Expression(expression: actualBlock, location: location), failureMessage: failureMessage) { - return result - } else { - return false - } - } - - public func doesNotMatch(_ actualBlock: @escaping () -> NSObject?, failureMessage: FailureMessage, location: SourceLocation) -> Bool { - let expr = Expression(expression: actualBlock, location: location) - let result: Bool - do { - result = try _doesNotMatch(expr, failureMessage) - } catch let error { - failureMessage.stringValue = "unexpected error thrown: <\(error)>" - return false - } - - if self.canMatch(Expression(expression: actualBlock, location: location), failureMessage: failureMessage) { - return result - } else { - return false - } - } -} - -#endif diff --git a/Pods/Nimble/Sources/Nimble/Adapters/NimbleEnvironment.swift b/Pods/Nimble/Sources/Nimble/Adapters/NimbleEnvironment.swift deleted file mode 100644 index 1b2e8c0..0000000 --- a/Pods/Nimble/Sources/Nimble/Adapters/NimbleEnvironment.swift +++ /dev/null @@ -1,43 +0,0 @@ -import Dispatch -import Foundation - -/// "Global" state of Nimble is stored here. Only DSL functions should access / be aware of this -/// class' existence -internal class NimbleEnvironment: NSObject { - static var activeInstance: NimbleEnvironment { - get { - let env = Thread.current.threadDictionary["NimbleEnvironment"] - if let env = env as? NimbleEnvironment { - return env - } else { - let newEnv = NimbleEnvironment() - self.activeInstance = newEnv - return newEnv - } - } - set { - Thread.current.threadDictionary["NimbleEnvironment"] = newValue - } - } - - // swiftlint:disable:next todo - // TODO: eventually migrate the global to this environment value - var assertionHandler: AssertionHandler { - get { return NimbleAssertionHandler } - set { NimbleAssertionHandler = newValue } - } - - var suppressTVOSAssertionWarning: Bool = false - var awaiter: Awaiter - - override init() { - let timeoutQueue = DispatchQueue.global(qos: .userInitiated) - awaiter = Awaiter( - waitLock: AssertionWaitLock(), - asyncQueue: .main, - timeoutQueue: timeoutQueue - ) - - super.init() - } -} diff --git a/Pods/Nimble/Sources/Nimble/Adapters/NimbleXCTestHandler.swift b/Pods/Nimble/Sources/Nimble/Adapters/NimbleXCTestHandler.swift deleted file mode 100644 index 719bf44..0000000 --- a/Pods/Nimble/Sources/Nimble/Adapters/NimbleXCTestHandler.swift +++ /dev/null @@ -1,91 +0,0 @@ -import Foundation -import XCTest - -/// Default handler for Nimble. This assertion handler passes failures along to -/// XCTest. -public class NimbleXCTestHandler: AssertionHandler { - public func assert(_ assertion: Bool, message: FailureMessage, location: SourceLocation) { - if !assertion { - recordFailure("\(message.stringValue)\n", location: location) - } - } -} - -/// Alternative handler for Nimble. This assertion handler passes failures along -/// to XCTest by attempting to reduce the failure message size. -public class NimbleShortXCTestHandler: AssertionHandler { - public func assert(_ assertion: Bool, message: FailureMessage, location: SourceLocation) { - if !assertion { - let msg: String - if let actual = message.actualValue { - msg = "got: \(actual) \(message.postfixActual)" - } else { - msg = "expected \(message.to) \(message.postfixMessage)" - } - recordFailure("\(msg)\n", location: location) - } - } -} - -/// Fallback handler in case XCTest is unavailable. This assertion handler will abort -/// the program if it is invoked. -class NimbleXCTestUnavailableHandler: AssertionHandler { - func assert(_ assertion: Bool, message: FailureMessage, location: SourceLocation) { - fatalError("XCTest is not available and no custom assertion handler was configured. Aborting.") - } -} - -#if !SWIFT_PACKAGE -/// Helper class providing access to the currently executing XCTestCase instance, if any -@objc final internal class CurrentTestCaseTracker: NSObject, XCTestObservation { - @objc static let sharedInstance = CurrentTestCaseTracker() - - private(set) var currentTestCase: XCTestCase? - - private var stashed_swift_reportFatalErrorsToDebugger: Bool = false - - @objc func testCaseWillStart(_ testCase: XCTestCase) { - #if swift(>=3.2) - stashed_swift_reportFatalErrorsToDebugger = _swift_reportFatalErrorsToDebugger - _swift_reportFatalErrorsToDebugger = false - #endif - - currentTestCase = testCase - } - - @objc func testCaseDidFinish(_ testCase: XCTestCase) { - currentTestCase = nil - - #if swift(>=3.2) - _swift_reportFatalErrorsToDebugger = stashed_swift_reportFatalErrorsToDebugger - #endif - } -} -#endif - -func isXCTestAvailable() -> Bool { -#if canImport(Darwin) - // XCTest is weakly linked and so may not be present - return NSClassFromString("XCTestCase") != nil -#else - return true -#endif -} - -public func recordFailure(_ message: String, location: SourceLocation) { -#if SWIFT_PACKAGE - XCTFail("\(message)", file: location.file, line: location.line) -#else - if let testCase = CurrentTestCaseTracker.sharedInstance.currentTestCase { - let line = Int(location.line) - testCase.recordFailure(withDescription: message, inFile: location.file, atLine: line, expected: true) - } else { - let msg = """ - Attempted to report a test failure to XCTest while no test case was running. The failure was: - \"\(message)\" - It occurred at: \(location.file):\(location.line) - """ - NSException(name: .internalInconsistencyException, reason: msg, userInfo: nil).raise() - } -#endif -} diff --git a/Pods/Nimble/Sources/Nimble/DSL+Wait.swift b/Pods/Nimble/Sources/Nimble/DSL+Wait.swift deleted file mode 100644 index c049417..0000000 --- a/Pods/Nimble/Sources/Nimble/DSL+Wait.swift +++ /dev/null @@ -1,122 +0,0 @@ -import Dispatch -import Foundation - -private enum ErrorResult { - case exception(NSException) - case error(Error) - case none -} - -/// Only classes, protocols, methods, properties, and subscript declarations can be -/// bridges to Objective-C via the @objc keyword. This class encapsulates callback-style -/// asynchronous waiting logic so that it may be called from Objective-C and Swift. -internal class NMBWait: NSObject { -// About these kind of lines, `@objc` attributes are only required for Objective-C -// support, so that should be conditional on Darwin platforms and normal Xcode builds -// (non-SwiftPM builds). -#if canImport(Darwin) && !SWIFT_PACKAGE - @objc - internal class func until( - timeout: TimeInterval, - file: FileString = #file, - line: UInt = #line, - action: @escaping (@escaping () -> Void) -> Void) { - return throwableUntil(timeout: timeout, file: file, line: line) { done in - action(done) - } - } -#else - internal class func until( - timeout: TimeInterval, - file: FileString = #file, - line: UInt = #line, - action: @escaping (@escaping () -> Void) -> Void) { - return throwableUntil(timeout: timeout, file: file, line: line) { done in - action(done) - } - } -#endif - - // Using a throwable closure makes this method not objc compatible. - internal class func throwableUntil( - timeout: TimeInterval, - file: FileString = #file, - line: UInt = #line, - action: @escaping (@escaping () -> Void) throws -> Void) { - let awaiter = NimbleEnvironment.activeInstance.awaiter - let leeway = timeout / 2.0 - // swiftlint:disable:next line_length - let result = awaiter.performBlock(file: file, line: line) { (done: @escaping (ErrorResult) -> Void) throws -> Void in - DispatchQueue.main.async { - let capture = NMBExceptionCapture( - handler: ({ exception in - done(.exception(exception)) - }), - finally: ({ }) - ) - capture.tryBlock { - do { - try action { - done(.none) - } - } catch let e { - done(.error(e)) - } - } - } - }.timeout(timeout, forcefullyAbortTimeout: leeway).wait("waitUntil(...)", file: file, line: line) - - switch result { - case .incomplete: internalError("Reached .incomplete state for waitUntil(...).") - case .blockedRunLoop: - fail(blockedRunLoopErrorMessageFor("-waitUntil()", leeway: leeway), - file: file, line: line) - case .timedOut: - let pluralize = (timeout == 1 ? "" : "s") - fail("Waited more than \(timeout) second\(pluralize)", file: file, line: line) - case let .raisedException(exception): - fail("Unexpected exception raised: \(exception)") - case let .errorThrown(error): - fail("Unexpected error thrown: \(error)") - case .completed(.exception(let exception)): - fail("Unexpected exception raised: \(exception)") - case .completed(.error(let error)): - fail("Unexpected error thrown: \(error)") - case .completed(.none): // success - break - } - } - -#if canImport(Darwin) && !SWIFT_PACKAGE - @objc(untilFile:line:action:) - internal class func until( - _ file: FileString = #file, - line: UInt = #line, - action: @escaping (@escaping () -> Void) -> Void) { - until(timeout: 1, file: file, line: line, action: action) - } -#else - internal class func until( - _ file: FileString = #file, - line: UInt = #line, - action: @escaping (@escaping () -> Void) -> Void) { - until(timeout: 1, file: file, line: line, action: action) - } -#endif -} - -internal func blockedRunLoopErrorMessageFor(_ fnName: String, leeway: TimeInterval) -> String { - // swiftlint:disable:next line_length - return "\(fnName) timed out but was unable to run the timeout handler because the main thread is unresponsive (\(leeway) seconds is allow after the wait times out). Conditions that may cause this include processing blocking IO on the main thread, calls to sleep(), deadlocks, and synchronous IPC. Nimble forcefully stopped run loop which may cause future failures in test run." -} - -/// Wait asynchronously until the done closure is called or the timeout has been reached. -/// -/// @discussion -/// Call the done() closure to indicate the waiting has completed. -/// -/// This function manages the main run loop (`NSRunLoop.mainRunLoop()`) while this function -/// is executing. Any attempts to touch the run loop may cause non-deterministic behavior. -public func waitUntil(timeout: TimeInterval = AsyncDefaults.Timeout, file: FileString = #file, line: UInt = #line, action: @escaping (@escaping () -> Void) -> Void) { - NMBWait.until(timeout: timeout, file: file, line: line, action: action) -} diff --git a/Pods/Nimble/Sources/Nimble/DSL.swift b/Pods/Nimble/Sources/Nimble/DSL.swift deleted file mode 100644 index d6dc9cc..0000000 --- a/Pods/Nimble/Sources/Nimble/DSL.swift +++ /dev/null @@ -1,68 +0,0 @@ -import Foundation - -/// Make an expectation on a given actual value. The value given is lazily evaluated. -public func expect(_ expression: @autoclosure @escaping () throws -> T?, file: FileString = #file, line: UInt = #line) -> Expectation { - return Expectation( - expression: Expression( - expression: expression, - location: SourceLocation(file: file, line: line), - isClosure: true)) -} - -/// Make an expectation on a given actual value. The closure is lazily invoked. -public func expect(_ file: FileString = #file, line: UInt = #line, expression: @escaping () throws -> T?) -> Expectation { - return Expectation( - expression: Expression( - expression: expression, - location: SourceLocation(file: file, line: line), - isClosure: true)) -} - -/// Always fails the test with a message and a specified location. -public func fail(_ message: String, location: SourceLocation) { - let handler = NimbleEnvironment.activeInstance.assertionHandler - handler.assert(false, message: FailureMessage(stringValue: message), location: location) -} - -/// Always fails the test with a message. -public func fail(_ message: String, file: FileString = #file, line: UInt = #line) { - fail(message, location: SourceLocation(file: file, line: line)) -} - -/// Always fails the test. -public func fail(_ file: FileString = #file, line: UInt = #line) { - fail("fail() always fails", file: file, line: line) -} - -/// Like Swift's precondition(), but raises NSExceptions instead of sigaborts -internal func nimblePrecondition( - _ expr: @autoclosure() -> Bool, - _ name: @autoclosure() -> String, - _ message: @autoclosure() -> String, - file: StaticString = #file, - line: UInt = #line) { - let result = expr() - if !result { -#if canImport(Darwin) - let exception = NSException( - name: NSExceptionName(name()), - reason: message(), - userInfo: nil - ) - exception.raise() -#else - preconditionFailure("\(name()) - \(message())", file: file, line: line) -#endif - } -} - -internal func internalError(_ msg: String, file: FileString = #file, line: UInt = #line) -> Never { - // swiftlint:disable line_length - fatalError( - """ - Nimble Bug Found: \(msg) at \(file):\(line). - Please file a bug to Nimble: https://github.com/Quick/Nimble/issues with the code snippet that caused this error. - """ - ) - // swiftlint:enable line_length -} diff --git a/Pods/Nimble/Sources/Nimble/Expectation.swift b/Pods/Nimble/Sources/Nimble/Expectation.swift deleted file mode 100644 index 41625a1..0000000 --- a/Pods/Nimble/Sources/Nimble/Expectation.swift +++ /dev/null @@ -1,125 +0,0 @@ -import Foundation - -// Deprecated -internal func expressionDoesNotMatch(_ expression: Expression, matcher: U, toNot: String, description: String?) -> (Bool, FailureMessage) - where U: Matcher, U.ValueType == T { - let msg = FailureMessage() - msg.userDescription = description - msg.to = toNot - do { - let pass = try matcher.doesNotMatch(expression, failureMessage: msg) - if msg.actualValue == "" { - msg.actualValue = "<\(stringify(try expression.evaluate()))>" - } - return (pass, msg) - } catch let error { - msg.stringValue = "unexpected error thrown: <\(error)>" - return (false, msg) - } -} - -internal func execute(_ expression: Expression, _ style: ExpectationStyle, _ predicate: Predicate, to: String, description: String?, captureExceptions: Bool = true) -> (Bool, FailureMessage) { - func run() -> (Bool, FailureMessage) { - let msg = FailureMessage() - msg.userDescription = description - msg.to = to - do { - let result = try predicate.satisfies(expression) - result.message.update(failureMessage: msg) - if msg.actualValue == "" { - msg.actualValue = "<\(stringify(try expression.evaluate()))>" - } - return (result.toBoolean(expectation: style), msg) - } catch let error { - msg.stringValue = "unexpected error thrown: <\(error)>" - return (false, msg) - } - } - - var result: (Bool, FailureMessage) = (false, FailureMessage()) - if captureExceptions { - let capture = NMBExceptionCapture(handler: ({ exception -> Void in - let msg = FailureMessage() - msg.stringValue = "unexpected exception raised: \(exception)" - result = (false, msg) - }), finally: nil) - capture.tryBlock { - result = run() - } - } else { - result = run() - } - - return result -} - -public struct Expectation { - - public let expression: Expression - - public init(expression: Expression) { - self.expression = expression - } - - public func verify(_ pass: Bool, _ message: FailureMessage) { - let handler = NimbleEnvironment.activeInstance.assertionHandler - handler.assert(pass, message: message, location: expression.location) - } - - ////////////////// OLD API ///////////////////// - - /// DEPRECATED: Tests the actual value using a matcher to match. - public func to(_ matcher: U, description: String? = nil) - where U: Matcher, U.ValueType == T { - let (pass, msg) = execute( - expression, - .toMatch, - matcher.predicate, - to: "to", - description: description, - captureExceptions: false - ) - verify(pass, msg) - } - - /// DEPRECATED: Tests the actual value using a matcher to not match. - public func toNot(_ matcher: U, description: String? = nil) - where U: Matcher, U.ValueType == T { - // swiftlint:disable:next line_length - let (pass, msg) = expressionDoesNotMatch(expression, matcher: matcher, toNot: "to not", description: description) - verify(pass, msg) - } - - /// DEPRECATED: Tests the actual value using a matcher to not match. - /// - /// Alias to toNot(). - public func notTo(_ matcher: U, description: String? = nil) - where U: Matcher, U.ValueType == T { - toNot(matcher, description: description) - } - - ////////////////// NEW API ///////////////////// - - /// Tests the actual value using a matcher to match. - public func to(_ predicate: Predicate, description: String? = nil) { - let (pass, msg) = execute(expression, .toMatch, predicate, to: "to", description: description) - verify(pass, msg) - } - - /// Tests the actual value using a matcher to not match. - public func toNot(_ predicate: Predicate, description: String? = nil) { - let (pass, msg) = execute(expression, .toNotMatch, predicate, to: "to not", description: description) - verify(pass, msg) - } - - /// Tests the actual value using a matcher to not match. - /// - /// Alias to toNot(). - public func notTo(_ predicate: Predicate, description: String? = nil) { - toNot(predicate, description: description) - } - - // see: - // - `async` for extension - // - NMBExpectation for Objective-C interface -} diff --git a/Pods/Nimble/Sources/Nimble/ExpectationMessage.swift b/Pods/Nimble/Sources/Nimble/ExpectationMessage.swift deleted file mode 100644 index b0cbcc3..0000000 --- a/Pods/Nimble/Sources/Nimble/ExpectationMessage.swift +++ /dev/null @@ -1,267 +0,0 @@ -import Foundation - -public indirect enum ExpectationMessage { - // --- Primary Expectations --- - /// includes actual value in output ("expected to , got ") - case expectedActualValueTo(/* message: */ String) - /// uses a custom actual value string in output ("expected to , got ") - case expectedCustomValueTo(/* message: */ String, /* actual: */ String) - /// excludes actual value in output ("expected to ") - case expectedTo(/* message: */ String) - /// allows any free-form message ("") - case fail(/* message: */ String) - - // --- Composite Expectations --- - // Generally, you'll want the methods, appended(message:) and appended(details:) instead. - - /// Not Fully Implemented Yet. - case prepends(/* Prepended Message */ String, ExpectationMessage) - - /// appends after an existing message (" (use beNil() to match nils)") - case appends(ExpectationMessage, /* Appended Message */ String) - - /// provides long-form multi-line explainations ("\n\n") - case details(ExpectationMessage, String) - - internal var sampleMessage: String { - let asStr = toString(actual: "", expected: "expected", to: "to") - let asFailureMessage = FailureMessage() - update(failureMessage: asFailureMessage) - // swiftlint:disable:next line_length - return "(toString(actual:expected:to:) -> \(asStr) || update(failureMessage:) -> \(asFailureMessage.stringValue))" - } - - /// Returns the smallest message after the "expected to" string that summarizes the error. - /// - /// Returns the message part from ExpectationMessage, ignoring all .appends and .details. - public var expectedMessage: String { - switch self { - case let .fail(msg): - return msg - case let .expectedTo(msg): - return msg - case let .expectedActualValueTo(msg): - return msg - case let .expectedCustomValueTo(msg, _): - return msg - case let .prepends(_, expectation): - return expectation.expectedMessage - case let .appends(expectation, msg): - return "\(expectation.expectedMessage)\(msg)" - case let .details(expectation, _): - return expectation.expectedMessage - } - } - - /// Appends a message after the primary expectation message - public func appended(message: String) -> ExpectationMessage { - switch self { - case .fail, .expectedTo, .expectedActualValueTo, .expectedCustomValueTo, .appends, .prepends: - return .appends(self, message) - case let .details(expectation, msg): - return .details(expectation.appended(message: message), msg) - } - } - - /// Appends a message hinting to use beNil() for when the actual value given was nil. - public func appendedBeNilHint() -> ExpectationMessage { - return appended(message: " (use beNil() to match nils)") - } - - /// Appends a detailed (aka - multiline) message after the primary expectation message - /// Detailed messages will be placed after .appended(message:) calls. - public func appended(details: String) -> ExpectationMessage { - return .details(self, details) - } - - internal func visitLeafs(_ f: (ExpectationMessage) -> ExpectationMessage) -> ExpectationMessage { - // swiftlint:disable:previous identifier_name - switch self { - case .fail, .expectedTo, .expectedActualValueTo, .expectedCustomValueTo: - return f(self) - case let .prepends(msg, expectation): - return .prepends(msg, expectation.visitLeafs(f)) - case let .appends(expectation, msg): - return .appends(expectation.visitLeafs(f), msg) - case let .details(expectation, msg): - return .details(expectation.visitLeafs(f), msg) - } - } - - /// Replaces a primary expectation with one returned by f. Preserves all composite expectations - /// that were built upon it (aka - all appended(message:) and appended(details:). - public func replacedExpectation(_ f: @escaping (ExpectationMessage) -> ExpectationMessage) -> ExpectationMessage { - // swiftlint:disable:previous identifier_name - func walk(_ msg: ExpectationMessage) -> ExpectationMessage { - switch msg { - case .fail, .expectedTo, .expectedActualValueTo, .expectedCustomValueTo: - return f(msg) - default: - return msg - } - } - return visitLeafs(walk) - } - - /// Wraps a primary expectation with text before and after it. - /// Alias to prepended(message: before).appended(message: after) - public func wrappedExpectation(before: String, after: String) -> ExpectationMessage { - return prepended(expectation: before).appended(message: after) - } - - /// Prepends a message by modifying the primary expectation - public func prepended(expectation message: String) -> ExpectationMessage { - func walk(_ msg: ExpectationMessage) -> ExpectationMessage { - switch msg { - case let .expectedTo(msg): - return .expectedTo(message + msg) - case let .expectedActualValueTo(msg): - return .expectedActualValueTo(message + msg) - case let .expectedCustomValueTo(msg, actual): - return .expectedCustomValueTo(message + msg, actual) - default: - return msg.visitLeafs(walk) - } - } - return visitLeafs(walk) - } - - // swiftlint:disable:next todo - // TODO: test & verify correct behavior - internal func prepended(message: String) -> ExpectationMessage { - return .prepends(message, self) - } - - /// Converts the tree of ExpectationMessages into a final built string. - public func toString(actual: String, expected: String = "expected", to: String = "to") -> String { - switch self { - case let .fail(msg): - return msg - case let .expectedTo(msg): - return "\(expected) \(to) \(msg)" - case let .expectedActualValueTo(msg): - return "\(expected) \(to) \(msg), got \(actual)" - case let .expectedCustomValueTo(msg, actual): - return "\(expected) \(to) \(msg), got \(actual)" - case let .prepends(msg, expectation): - return "\(msg)\(expectation.toString(actual: actual, expected: expected, to: to))" - case let .appends(expectation, msg): - return "\(expectation.toString(actual: actual, expected: expected, to: to))\(msg)" - case let .details(expectation, msg): - return "\(expectation.toString(actual: actual, expected: expected, to: to))\n\n\(msg)" - } - } - - // Backwards compatibility: converts ExpectationMessage tree to FailureMessage - internal func update(failureMessage: FailureMessage) { - switch self { - case let .fail(msg) where !msg.isEmpty: - failureMessage.stringValue = msg - case .fail: - break - case let .expectedTo(msg): - failureMessage.actualValue = nil - failureMessage.postfixMessage = msg - case let .expectedActualValueTo(msg): - failureMessage.postfixMessage = msg - case let .expectedCustomValueTo(msg, actual): - failureMessage.postfixMessage = msg - failureMessage.actualValue = actual - case let .prepends(msg, expectation): - expectation.update(failureMessage: failureMessage) - if let desc = failureMessage.userDescription { - failureMessage.userDescription = "\(msg)\(desc)" - } else { - failureMessage.userDescription = msg - } - case let .appends(expectation, msg): - expectation.update(failureMessage: failureMessage) - failureMessage.appendMessage(msg) - case let .details(expectation, msg): - expectation.update(failureMessage: failureMessage) - failureMessage.appendDetails(msg) - } - } -} - -extension FailureMessage { - internal func toExpectationMessage() -> ExpectationMessage { - let defaultMessage = FailureMessage() - if expected != defaultMessage.expected || _stringValueOverride != nil { - return .fail(stringValue) - } - - var message: ExpectationMessage = .fail(userDescription ?? "") - if actualValue != "" && actualValue != nil { - message = .expectedCustomValueTo(postfixMessage, actualValue ?? "") - } else if postfixMessage != defaultMessage.postfixMessage { - if actualValue == nil { - message = .expectedTo(postfixMessage) - } else { - message = .expectedActualValueTo(postfixMessage) - } - } - if postfixActual != defaultMessage.postfixActual { - message = .appends(message, postfixActual) - } - if let extended = extendedMessage { - message = .details(message, extended) - } - return message - } -} - -#if canImport(Darwin) - -public class NMBExpectationMessage: NSObject { - private let msg: ExpectationMessage - - internal init(swift msg: ExpectationMessage) { - self.msg = msg - } - - public init(expectedTo message: String) { - self.msg = .expectedTo(message) - } - public init(expectedActualValueTo message: String) { - self.msg = .expectedActualValueTo(message) - } - - public init(expectedActualValueTo message: String, customActualValue actual: String) { - self.msg = .expectedCustomValueTo(message, actual) - } - - public init(fail message: String) { - self.msg = .fail(message) - } - - public init(prepend message: String, child: NMBExpectationMessage) { - self.msg = .prepends(message, child.msg) - } - - public init(appendedMessage message: String, child: NMBExpectationMessage) { - self.msg = .appends(child.msg, message) - } - - public init(prependedMessage message: String, child: NMBExpectationMessage) { - self.msg = .prepends(message, child.msg) - } - - public init(details message: String, child: NMBExpectationMessage) { - self.msg = .details(child.msg, message) - } - - public func appendedBeNilHint() -> NMBExpectationMessage { - return NMBExpectationMessage(swift: msg.appendedBeNilHint()) - } - - public func toSwift() -> ExpectationMessage { return self.msg } -} - -extension ExpectationMessage { - func toObjectiveC() -> NMBExpectationMessage { - return NMBExpectationMessage(swift: self) - } -} - -#endif diff --git a/Pods/Nimble/Sources/Nimble/Expression.swift b/Pods/Nimble/Sources/Nimble/Expression.swift deleted file mode 100644 index dcc42e4..0000000 --- a/Pods/Nimble/Sources/Nimble/Expression.swift +++ /dev/null @@ -1,101 +0,0 @@ -import Foundation - -// Memoizes the given closure, only calling the passed -// closure once; even if repeat calls to the returned closure -internal func memoizedClosure(_ closure: @escaping () throws -> T) -> (Bool) throws -> T { - var cache: T? - return { withoutCaching in - if withoutCaching || cache == nil { - cache = try closure() - } - return cache! - } -} - -/// Expression represents the closure of the value inside expect(...). -/// Expressions are memoized by default. This makes them safe to call -/// evaluate() multiple times without causing a re-evaluation of the underlying -/// closure. -/// -/// @warning Since the closure can be any code, Objective-C code may choose -/// to raise an exception. Currently, Expression does not memoize -/// exception raising. -/// -/// This provides a common consumable API for matchers to utilize to allow -/// Nimble to change internals to how the captured closure is managed. -public struct Expression { - // swiftlint:disable identifier_name - internal let _expression: (Bool) throws -> T? - internal let _withoutCaching: Bool - // swiftlint:enable identifier_name - public let location: SourceLocation - public let isClosure: Bool - - /// Creates a new expression struct. Normally, expect(...) will manage this - /// creation process. The expression is memoized. - /// - /// @param expression The closure that produces a given value. - /// @param location The source location that this closure originates from. - /// @param isClosure A bool indicating if the captured expression is a - /// closure or internally produced closure. Some matchers - /// may require closures. For example, toEventually() - /// requires an explicit closure. This gives Nimble - /// flexibility if @autoclosure behavior changes between - /// Swift versions. Nimble internals always sets this true. - public init(expression: @escaping () throws -> T?, location: SourceLocation, isClosure: Bool = true) { - self._expression = memoizedClosure(expression) - self.location = location - self._withoutCaching = false - self.isClosure = isClosure - } - - /// Creates a new expression struct. Normally, expect(...) will manage this - /// creation process. - /// - /// @param expression The closure that produces a given value. - /// @param location The source location that this closure originates from. - /// @param withoutCaching Indicates if the struct should memoize the given - /// closure's result. Subsequent evaluate() calls will - /// not call the given closure if this is true. - /// @param isClosure A bool indicating if the captured expression is a - /// closure or internally produced closure. Some matchers - /// may require closures. For example, toEventually() - /// requires an explicit closure. This gives Nimble - /// flexibility if @autoclosure behavior changes between - /// Swift versions. Nimble internals always sets this true. - public init(memoizedExpression: @escaping (Bool) throws -> T?, location: SourceLocation, withoutCaching: Bool, isClosure: Bool = true) { - self._expression = memoizedExpression - self.location = location - self._withoutCaching = withoutCaching - self.isClosure = isClosure - } - - /// Returns a new Expression from the given expression. Identical to a map() - /// on this type. This should be used only to typecast the Expression's - /// closure value. - /// - /// The returned expression will preserve location and isClosure. - /// - /// @param block The block that can cast the current Expression value to a - /// new type. - public func cast(_ block: @escaping (T?) throws -> U?) -> Expression { - return Expression( - expression: ({ try block(self.evaluate()) }), - location: self.location, - isClosure: self.isClosure - ) - } - - public func evaluate() throws -> T? { - return try self._expression(_withoutCaching) - } - - public func withoutCaching() -> Expression { - return Expression( - memoizedExpression: self._expression, - location: location, - withoutCaching: true, - isClosure: isClosure - ) - } -} diff --git a/Pods/Nimble/Sources/Nimble/FailureMessage.swift b/Pods/Nimble/Sources/Nimble/FailureMessage.swift deleted file mode 100644 index 503b540..0000000 --- a/Pods/Nimble/Sources/Nimble/FailureMessage.swift +++ /dev/null @@ -1,93 +0,0 @@ -import Foundation - -/// Encapsulates the failure message that matchers can report to the end user. -/// -/// This is shared state between Nimble and matchers that mutate this value. -public class FailureMessage: NSObject { - public var expected: String = "expected" - public var actualValue: String? = "" // empty string -> use default; nil -> exclude - public var to: String = "to" - public var postfixMessage: String = "match" - public var postfixActual: String = "" - /// An optional message that will be appended as a new line and provides additional details - /// about the failure. This message will only be visible in the issue navigator / in logs but - /// not directly in the source editor since only a single line is presented there. - public var extendedMessage: String? - public var userDescription: String? - - public var stringValue: String { - get { - if let value = _stringValueOverride { - return value - } else { - return computeStringValue() - } - } - set { - _stringValueOverride = newValue - } - } - - // swiftlint:disable:next identifier_name - internal var _stringValueOverride: String? - internal var hasOverriddenStringValue: Bool { - return _stringValueOverride != nil - } - - public override init() { - } - - public init(stringValue: String) { - _stringValueOverride = stringValue - } - - internal func stripNewlines(_ str: String) -> String { - let whitespaces = CharacterSet.whitespacesAndNewlines - return str - .components(separatedBy: "\n") - .map { line in line.trimmingCharacters(in: whitespaces) } - .joined(separator: "") - } - - internal func computeStringValue() -> String { - var value = "\(expected) \(to) \(postfixMessage)" - if let actualValue = actualValue { - value = "\(expected) \(to) \(postfixMessage), got \(actualValue)\(postfixActual)" - } - value = stripNewlines(value) - - if let extendedMessage = extendedMessage { - value += "\n\(stripNewlines(extendedMessage))" - } - - if let userDescription = userDescription { - return "\(userDescription)\n\(value)" - } - - return value - } - - internal func appendMessage(_ msg: String) { - if hasOverriddenStringValue { - stringValue += "\(msg)" - } else if actualValue != nil { - postfixActual += msg - } else { - postfixMessage += msg - } - } - - internal func appendDetails(_ msg: String) { - if hasOverriddenStringValue { - if let desc = userDescription { - stringValue = "\(desc)\n\(stringValue)" - } - stringValue += "\n\(msg)" - } else { - if let desc = userDescription { - userDescription = desc - } - extendedMessage = msg - } - } -} diff --git a/Pods/Nimble/Sources/Nimble/Matchers/AllPass.swift b/Pods/Nimble/Sources/Nimble/Matchers/AllPass.swift deleted file mode 100644 index dbbccb9..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/AllPass.swift +++ /dev/null @@ -1,122 +0,0 @@ -import Foundation - -public func allPass - (_ passFunc: @escaping (T?) throws -> Bool) -> Predicate - where U: Sequence, T == U.Iterator.Element { - let matcher = Predicate.simpleNilable("pass a condition") { actualExpression in - return PredicateStatus(bool: try passFunc(try actualExpression.evaluate())) - } - return createPredicate(matcher) -} - -public func allPass - (_ passName: String, _ passFunc: @escaping (T?) throws -> Bool) -> Predicate - where U: Sequence, T == U.Iterator.Element { - let matcher = Predicate.simpleNilable(passName) { actualExpression in - return PredicateStatus(bool: try passFunc(try actualExpression.evaluate())) - } - return createPredicate(matcher) -} - -public func allPass(_ elementMatcher: M) -> Predicate - where S: Sequence, M: Matcher, S.Iterator.Element == M.ValueType { - return createPredicate(elementMatcher.predicate) -} - -public func allPass(_ elementPredicate: Predicate) -> Predicate - where S: Sequence { - return createPredicate(elementPredicate) -} - -private func createPredicate(_ elementMatcher: Predicate) -> Predicate - where S: Sequence { - return Predicate { actualExpression in - guard let actualValue = try actualExpression.evaluate() else { - return PredicateResult( - status: .fail, - message: .appends(.expectedTo("all pass"), " (use beNil() to match nils)") - ) - } - - var failure: ExpectationMessage = .expectedTo("all pass") - for currentElement in actualValue { - let exp = Expression( - expression: {currentElement}, location: actualExpression.location) - let predicateResult = try elementMatcher.satisfies(exp) - if predicateResult.status == .matches { - failure = predicateResult.message.prepended(expectation: "all ") - } else { - failure = predicateResult.message - .replacedExpectation({ .expectedTo($0.expectedMessage) }) - .wrappedExpectation( - before: "all ", - after: ", but failed first at element <\(stringify(currentElement))>" - + " in <\(stringify(actualValue))>" - ) - return PredicateResult(status: .doesNotMatch, message: failure) - } - } - failure = failure.replacedExpectation({ expectation in - return .expectedTo(expectation.expectedMessage) - }) - return PredicateResult(status: .matches, message: failure) - } -} - -#if canImport(Darwin) -extension NMBObjCMatcher { - @objc public class func allPassMatcher(_ matcher: NMBMatcher) -> NMBPredicate { - return NMBPredicate { actualExpression in - let location = actualExpression.location - let actualValue = try actualExpression.evaluate() - var nsObjects = [NSObject]() - - var collectionIsUsable = true - if let value = actualValue as? NSFastEnumeration { - var generator = NSFastEnumerationIterator(value) - while let obj = generator.next() { - if let nsObject = obj as? NSObject { - nsObjects.append(nsObject) - } else { - collectionIsUsable = false - break - } - } - } else { - collectionIsUsable = false - } - - if !collectionIsUsable { - return NMBPredicateResult( - status: NMBPredicateStatus.fail, - message: NMBExpectationMessage( - // swiftlint:disable:next line_length - fail: "allPass can only be used with types which implement NSFastEnumeration (NSArray, NSSet, ...), and whose elements subclass NSObject, got <\(actualValue?.description ?? "nil")>" - ) - ) - } - - let expr = Expression(expression: ({ nsObjects }), location: location) - let pred: Predicate<[NSObject]> = createPredicate(Predicate { expr in - if let predicate = matcher as? NMBPredicate { - return predicate.satisfies(({ try expr.evaluate() }), location: expr.location).toSwift() - } else { - let failureMessage = FailureMessage() - let result = matcher.matches( - // swiftlint:disable:next force_try - ({ try! expr.evaluate() }), - failureMessage: failureMessage, - location: expr.location - ) - let expectationMsg = failureMessage.toExpectationMessage() - return PredicateResult( - bool: result, - message: expectationMsg - ) - } - }) - return try pred.satisfies(expr).toObjectiveC() - } - } -} -#endif diff --git a/Pods/Nimble/Sources/Nimble/Matchers/Async.swift b/Pods/Nimble/Sources/Nimble/Matchers/Async.swift deleted file mode 100644 index 5022fe2..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/Async.swift +++ /dev/null @@ -1,181 +0,0 @@ -import Foundation - -/// If you are running on a slower machine, it could be useful to increase the default timeout value -/// or slow down poll interval. Default timeout interval is 1, and poll interval is 0.01. -public struct AsyncDefaults { - public static var Timeout: TimeInterval = 1 - public static var PollInterval: TimeInterval = 0.01 -} - -private func async(style: ExpectationStyle, predicate: Predicate, timeout: TimeInterval, poll: TimeInterval, fnName: String) -> Predicate { - return Predicate { actualExpression in - let uncachedExpression = actualExpression.withoutCaching() - let fnName = "expect(...).\(fnName)(...)" - var lastPredicateResult: PredicateResult? - let result = pollBlock( - pollInterval: poll, - timeoutInterval: timeout, - file: actualExpression.location.file, - line: actualExpression.location.line, - fnName: fnName) { - lastPredicateResult = try predicate.satisfies(uncachedExpression) - return lastPredicateResult!.toBoolean(expectation: style) - } - switch result { - case .completed: return lastPredicateResult! - case .timedOut: - let message = lastPredicateResult?.message ?? .fail("timed out before returning a value") - return PredicateResult(status: .fail, message: message) - case let .errorThrown(error): - return PredicateResult(status: .fail, message: .fail("unexpected error thrown: <\(error)>")) - case let .raisedException(exception): - return PredicateResult(status: .fail, message: .fail("unexpected exception raised: \(exception)")) - case .blockedRunLoop: - // swiftlint:disable:next line_length - let message = lastPredicateResult?.message.appended(message: " (timed out, but main run loop was unresponsive).") ?? - .fail("main run loop was unresponsive") - return PredicateResult(status: .fail, message: message) - case .incomplete: - internalError("Reached .incomplete state for \(fnName)(...).") - } - } -} - -private let toEventuallyRequiresClosureError = FailureMessage( - stringValue: """ - expect(...).toEventually(...) requires an explicit closure (eg - expect { ... }.toEventually(...) ) - Swift 1.2 @autoclosure behavior has changed in an incompatible way for Nimble to function - """ -) - -extension Expectation { - /// Tests the actual value using a matcher to match by checking continuously - /// at each pollInterval until the timeout is reached. - /// - /// @discussion - /// This function manages the main run loop (`NSRunLoop.mainRunLoop()`) while this function - /// is executing. Any attempts to touch the run loop may cause non-deterministic behavior. - public func toEventually(_ predicate: Predicate, timeout: TimeInterval = AsyncDefaults.Timeout, pollInterval: TimeInterval = AsyncDefaults.PollInterval, description: String? = nil) { - nimblePrecondition(expression.isClosure, "NimbleInternalError", toEventuallyRequiresClosureError.stringValue) - - let (pass, msg) = execute( - expression, - .toMatch, - async(style: .toMatch, predicate: predicate, timeout: timeout, poll: pollInterval, fnName: "toEventually"), - to: "to eventually", - description: description, - captureExceptions: false - ) - verify(pass, msg) - } - - /// Tests the actual value using a matcher to not match by checking - /// continuously at each pollInterval until the timeout is reached. - /// - /// @discussion - /// This function manages the main run loop (`NSRunLoop.mainRunLoop()`) while this function - /// is executing. Any attempts to touch the run loop may cause non-deterministic behavior. - public func toEventuallyNot(_ predicate: Predicate, timeout: TimeInterval = AsyncDefaults.Timeout, pollInterval: TimeInterval = AsyncDefaults.PollInterval, description: String? = nil) { - nimblePrecondition(expression.isClosure, "NimbleInternalError", toEventuallyRequiresClosureError.stringValue) - - let (pass, msg) = execute( - expression, - .toNotMatch, - async( - style: .toNotMatch, - predicate: predicate, - timeout: timeout, - poll: pollInterval, - fnName: "toEventuallyNot" - ), - to: "to eventually not", - description: description, - captureExceptions: false - ) - verify(pass, msg) - } - - /// Tests the actual value using a matcher to not match by checking - /// continuously at each pollInterval until the timeout is reached. - /// - /// Alias of toEventuallyNot() - /// - /// @discussion - /// This function manages the main run loop (`NSRunLoop.mainRunLoop()`) while this function - /// is executing. Any attempts to touch the run loop may cause non-deterministic behavior. - public func toNotEventually(_ predicate: Predicate, timeout: TimeInterval = AsyncDefaults.Timeout, pollInterval: TimeInterval = AsyncDefaults.PollInterval, description: String? = nil) { - return toEventuallyNot(predicate, timeout: timeout, pollInterval: pollInterval, description: description) - } -} - -// Deprecated -extension Expectation { - /// Tests the actual value using a matcher to match by checking continuously - /// at each pollInterval until the timeout is reached. - /// - /// @discussion - /// This function manages the main run loop (`NSRunLoop.mainRunLoop()`) while this function - /// is executing. Any attempts to touch the run loop may cause non-deterministic behavior. - public func toEventually(_ matcher: U, timeout: TimeInterval = AsyncDefaults.Timeout, pollInterval: TimeInterval = AsyncDefaults.PollInterval, description: String? = nil) - where U: Matcher, U.ValueType == T { - if expression.isClosure { - let (pass, msg) = execute( - expression, - .toMatch, - async( - style: .toMatch, - predicate: matcher.predicate, - timeout: timeout, - poll: pollInterval, - fnName: "toEventually" - ), - to: "to eventually", - description: description, - captureExceptions: false - ) - verify(pass, msg) - } else { - verify(false, toEventuallyRequiresClosureError) - } - } - - /// Tests the actual value using a matcher to not match by checking - /// continuously at each pollInterval until the timeout is reached. - /// - /// @discussion - /// This function manages the main run loop (`NSRunLoop.mainRunLoop()`) while this function - /// is executing. Any attempts to touch the run loop may cause non-deterministic behavior. - public func toEventuallyNot(_ matcher: U, timeout: TimeInterval = AsyncDefaults.Timeout, pollInterval: TimeInterval = AsyncDefaults.PollInterval, description: String? = nil) - where U: Matcher, U.ValueType == T { - if expression.isClosure { - let (pass, msg) = expressionDoesNotMatch( - expression, - matcher: async( - style: .toNotMatch, - predicate: matcher.predicate, - timeout: timeout, - poll: pollInterval, - fnName: "toEventuallyNot" - ), - toNot: "to eventually not", - description: description - ) - verify(pass, msg) - } else { - verify(false, toEventuallyRequiresClosureError) - } - } - - /// Tests the actual value using a matcher to not match by checking - /// continuously at each pollInterval until the timeout is reached. - /// - /// Alias of toEventuallyNot() - /// - /// @discussion - /// This function manages the main run loop (`NSRunLoop.mainRunLoop()`) while this function - /// is executing. Any attempts to touch the run loop may cause non-deterministic behavior. - public func toNotEventually(_ matcher: U, timeout: TimeInterval = AsyncDefaults.Timeout, pollInterval: TimeInterval = AsyncDefaults.PollInterval, description: String? = nil) - where U: Matcher, U.ValueType == T { - return toEventuallyNot(matcher, timeout: timeout, pollInterval: pollInterval, description: description) - } -} diff --git a/Pods/Nimble/Sources/Nimble/Matchers/BeAKindOf.swift b/Pods/Nimble/Sources/Nimble/Matchers/BeAKindOf.swift deleted file mode 100644 index 3a68b09..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/BeAKindOf.swift +++ /dev/null @@ -1,68 +0,0 @@ -import Foundation - -private func matcherMessage(forType expectedType: T.Type) -> String { - return "be a kind of \(String(describing: expectedType))" -} -private func matcherMessage(forClass expectedClass: AnyClass) -> String { - return "be a kind of \(String(describing: expectedClass))" -} - -/// A Nimble matcher that succeeds when the actual value is an instance of the given class. -public func beAKindOf(_ expectedType: T.Type) -> Predicate { - return Predicate.define { actualExpression in - let message: ExpectationMessage - - let instance = try actualExpression.evaluate() - guard let validInstance = instance else { - message = .expectedCustomValueTo(matcherMessage(forType: expectedType), "") - return PredicateResult(status: .fail, message: message) - } - message = .expectedCustomValueTo( - "be a kind of \(String(describing: expectedType))", - "<\(String(describing: type(of: validInstance))) instance>" - ) - - return PredicateResult( - bool: validInstance is T, - message: message - ) - } -} - -#if canImport(Darwin) - -/// A Nimble matcher that succeeds when the actual value is an instance of the given class. -/// @see beAnInstanceOf if you want to match against the exact class -public func beAKindOf(_ expectedClass: AnyClass) -> Predicate { - return Predicate.define { actualExpression in - let message: ExpectationMessage - let status: PredicateStatus - - let instance = try actualExpression.evaluate() - if let validInstance = instance { - status = PredicateStatus(bool: instance != nil && instance!.isKind(of: expectedClass)) - message = .expectedCustomValueTo( - matcherMessage(forClass: expectedClass), - "<\(String(describing: type(of: validInstance))) instance>" - ) - } else { - status = .fail - message = .expectedCustomValueTo( - matcherMessage(forClass: expectedClass), - "" - ) - } - - return PredicateResult(status: status, message: message) - } -} - -extension NMBObjCMatcher { - @objc public class func beAKindOfMatcher(_ expected: AnyClass) -> NMBMatcher { - return NMBPredicate { actualExpression in - return try beAKindOf(expected).satisfies(actualExpression).toObjectiveC() - } - } -} - -#endif diff --git a/Pods/Nimble/Sources/Nimble/Matchers/BeAnInstanceOf.swift b/Pods/Nimble/Sources/Nimble/Matchers/BeAnInstanceOf.swift deleted file mode 100644 index 3cef3a7..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/BeAnInstanceOf.swift +++ /dev/null @@ -1,56 +0,0 @@ -import Foundation - -/// A Nimble matcher that succeeds when the actual value is an _exact_ instance of the given class. -public func beAnInstanceOf(_ expectedType: T.Type) -> Predicate { - let errorMessage = "be an instance of \(String(describing: expectedType))" - return Predicate.define { actualExpression in - let instance = try actualExpression.evaluate() - guard let validInstance = instance else { - return PredicateResult( - status: .doesNotMatch, - message: .expectedActualValueTo(errorMessage) - ) - } - - let actualString = "<\(String(describing: type(of: validInstance))) instance>" - - return PredicateResult( - status: PredicateStatus(bool: type(of: validInstance) == expectedType), - message: .expectedCustomValueTo(errorMessage, actualString) - ) - } -} - -/// A Nimble matcher that succeeds when the actual value is an instance of the given class. -/// @see beAKindOf if you want to match against subclasses -public func beAnInstanceOf(_ expectedClass: AnyClass) -> Predicate { - let errorMessage = "be an instance of \(String(describing: expectedClass))" - return Predicate.define { actualExpression in - let instance = try actualExpression.evaluate() - let actualString: String - if let validInstance = instance { - actualString = "<\(String(describing: type(of: validInstance))) instance>" - } else { - actualString = "" - } - #if canImport(Darwin) - let matches = instance != nil && instance!.isMember(of: expectedClass) - #else - let matches = instance != nil && type(of: instance!) == expectedClass - #endif - return PredicateResult( - status: PredicateStatus(bool: matches), - message: .expectedCustomValueTo(errorMessage, actualString) - ) - } -} - -#if canImport(Darwin) -extension NMBObjCMatcher { - @objc public class func beAnInstanceOfMatcher(_ expected: AnyClass) -> NMBMatcher { - return NMBPredicate { actualExpression in - return try beAnInstanceOf(expected).satisfies(actualExpression).toObjectiveC() - } - } -} -#endif diff --git a/Pods/Nimble/Sources/Nimble/Matchers/BeCloseTo.swift b/Pods/Nimble/Sources/Nimble/Matchers/BeCloseTo.swift deleted file mode 100644 index 4396180..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/BeCloseTo.swift +++ /dev/null @@ -1,149 +0,0 @@ -import Foundation - -// swiftlint:disable:next identifier_name -public let DefaultDelta = 0.0001 - -internal func isCloseTo(_ actualValue: NMBDoubleConvertible?, - expectedValue: NMBDoubleConvertible, - delta: Double) - -> PredicateResult { - let errorMessage = "be close to <\(stringify(expectedValue))> (within \(stringify(delta)))" - return PredicateResult( - bool: actualValue != nil && - abs(actualValue!.doubleValue - expectedValue.doubleValue) < delta, - message: .expectedCustomValueTo(errorMessage, "<\(stringify(actualValue))>") - ) -} - -/// A Nimble matcher that succeeds when a value is close to another. This is used for floating -/// point values which can have imprecise results when doing arithmetic on them. -/// -/// @see equal -public func beCloseTo(_ expectedValue: Double, within delta: Double = DefaultDelta) -> Predicate { - return Predicate.define { actualExpression in - return isCloseTo(try actualExpression.evaluate(), expectedValue: expectedValue, delta: delta) - } -} - -/// A Nimble matcher that succeeds when a value is close to another. This is used for floating -/// point values which can have imprecise results when doing arithmetic on them. -/// -/// @see equal -public func beCloseTo(_ expectedValue: NMBDoubleConvertible, within delta: Double = DefaultDelta) -> Predicate { - return Predicate.define { actualExpression in - return isCloseTo(try actualExpression.evaluate(), expectedValue: expectedValue, delta: delta) - } -} - -#if canImport(Darwin) -public class NMBObjCBeCloseToMatcher: NSObject, NMBMatcher { - // swiftlint:disable identifier_name - var _expected: NSNumber - var _delta: CDouble - // swiftlint:enable identifier_name - init(expected: NSNumber, within: CDouble) { - _expected = expected - _delta = within - } - - @objc public func matches(_ actualExpression: @escaping () -> NSObject?, failureMessage: FailureMessage, location: SourceLocation) -> Bool { - let actualBlock: () -> NMBDoubleConvertible? = ({ - return actualExpression() as? NMBDoubleConvertible - }) - let expr = Expression(expression: actualBlock, location: location) - let predicate = beCloseTo(self._expected, within: self._delta) - - do { - let result = try predicate.satisfies(expr) - result.message.update(failureMessage: failureMessage) - return result.toBoolean(expectation: .toMatch) - } catch let error { - failureMessage.stringValue = "unexpected error thrown: <\(error)>" - return false - } - } - - @objc public func doesNotMatch(_ actualExpression: @escaping () -> NSObject?, failureMessage: FailureMessage, location: SourceLocation) -> Bool { - let actualBlock: () -> NMBDoubleConvertible? = ({ - return actualExpression() as? NMBDoubleConvertible - }) - let expr = Expression(expression: actualBlock, location: location) - let predicate = beCloseTo(self._expected, within: self._delta) - - do { - let result = try predicate.satisfies(expr) - result.message.update(failureMessage: failureMessage) - return result.toBoolean(expectation: .toNotMatch) - } catch let error { - failureMessage.stringValue = "unexpected error thrown: <\(error)>" - return false - } - } - - @objc public var within: (CDouble) -> NMBObjCBeCloseToMatcher { - return { delta in - return NMBObjCBeCloseToMatcher(expected: self._expected, within: delta) - } - } -} - -extension NMBObjCMatcher { - @objc public class func beCloseToMatcher(_ expected: NSNumber, within: CDouble) -> NMBObjCBeCloseToMatcher { - return NMBObjCBeCloseToMatcher(expected: expected, within: within) - } -} -#endif - -public func beCloseTo(_ expectedValues: [Double], within delta: Double = DefaultDelta) -> Predicate<[Double]> { - let errorMessage = "be close to <\(stringify(expectedValues))> (each within \(stringify(delta)))" - return Predicate.simple(errorMessage) { actualExpression in - if let actual = try actualExpression.evaluate() { - if actual.count != expectedValues.count { - return .doesNotMatch - } else { - for (index, actualItem) in actual.enumerated() { - if fabs(actualItem - expectedValues[index]) > delta { - return .doesNotMatch - } - } - return .matches - } - } - return .doesNotMatch - } -} - -// MARK: - Operators - -infix operator ≈ : ComparisonPrecedence - -// swiftlint:disable:next identifier_name -public func ≈(lhs: Expectation<[Double]>, rhs: [Double]) { - lhs.to(beCloseTo(rhs)) -} - -// swiftlint:disable:next identifier_name -public func ≈(lhs: Expectation, rhs: NMBDoubleConvertible) { - lhs.to(beCloseTo(rhs)) -} - -// swiftlint:disable:next identifier_name -public func ≈(lhs: Expectation, rhs: (expected: NMBDoubleConvertible, delta: Double)) { - lhs.to(beCloseTo(rhs.expected, within: rhs.delta)) -} - -public func == (lhs: Expectation, rhs: (expected: NMBDoubleConvertible, delta: Double)) { - lhs.to(beCloseTo(rhs.expected, within: rhs.delta)) -} - -// make this higher precedence than exponents so the Doubles either end aren't pulled in -// unexpectantly -precedencegroup PlusMinusOperatorPrecedence { - higherThan: BitwiseShiftPrecedence -} - -infix operator ± : PlusMinusOperatorPrecedence -// swiftlint:disable:next identifier_name -public func ±(lhs: NMBDoubleConvertible, rhs: Double) -> (expected: NMBDoubleConvertible, delta: Double) { - return (expected: lhs, delta: rhs) -} diff --git a/Pods/Nimble/Sources/Nimble/Matchers/BeEmpty.swift b/Pods/Nimble/Sources/Nimble/Matchers/BeEmpty.swift deleted file mode 100644 index 860287f..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/BeEmpty.swift +++ /dev/null @@ -1,116 +0,0 @@ -import Foundation - -/// A Nimble matcher that succeeds when a value is "empty". For collections, this -/// means the are no items in that collection. For strings, it is an empty string. -public func beEmpty() -> Predicate { - return Predicate.simple("be empty") { actualExpression in - guard let actual = try actualExpression.evaluate() else { - return .fail - } - var generator = actual.makeIterator() - return PredicateStatus(bool: generator.next() == nil) - } -} - -/// A Nimble matcher that succeeds when a value is "empty". For collections, this -/// means the are no items in that collection. For strings, it is an empty string. -public func beEmpty() -> Predicate { - return Predicate.simple("be empty") { actualExpression in - guard let actual = try actualExpression.evaluate() else { - return .fail - } - return PredicateStatus(bool: actual.isEmpty) - } -} - -/// A Nimble matcher that succeeds when a value is "empty". For collections, this -/// means the are no items in that collection. For strings, it is an empty string. -public func beEmpty() -> Predicate { - return Predicate.simple("be empty") { actualExpression in - guard let actual = try actualExpression.evaluate() else { - return .fail - } - return PredicateStatus(bool: actual.isEmpty) - } -} - -/// A Nimble matcher that succeeds when a value is "empty". For collections, this -/// means the are no items in that collection. For strings, it is an empty string. -public func beEmpty() -> Predicate { - return Predicate.simple("be empty") { actualExpression in - let actualString = try actualExpression.evaluate() - return PredicateStatus(bool: actualString == nil || NSString(string: actualString!).length == 0) - } -} - -/// A Nimble matcher that succeeds when a value is "empty". For collections, this -/// means the are no items in that collection. For NSString instances, it is an empty string. -public func beEmpty() -> Predicate { - return Predicate.simple("be empty") { actualExpression in - let actualString = try actualExpression.evaluate() - return PredicateStatus(bool: actualString == nil || actualString!.length == 0) - } -} - -// Without specific overrides, beEmpty() is ambiguous for NSDictionary, NSArray, -// etc, since they conform to Sequence as well as NMBCollection. - -/// A Nimble matcher that succeeds when a value is "empty". For collections, this -/// means the are no items in that collection. For strings, it is an empty string. -public func beEmpty() -> Predicate { - return Predicate.simple("be empty") { actualExpression in - let actualDictionary = try actualExpression.evaluate() - return PredicateStatus(bool: actualDictionary == nil || actualDictionary!.count == 0) - } -} - -/// A Nimble matcher that succeeds when a value is "empty". For collections, this -/// means the are no items in that collection. For strings, it is an empty string. -public func beEmpty() -> Predicate { - return Predicate.simple("be empty") { actualExpression in - let actualArray = try actualExpression.evaluate() - return PredicateStatus(bool: actualArray == nil || actualArray!.count == 0) - } -} - -/// A Nimble matcher that succeeds when a value is "empty". For collections, this -/// means the are no items in that collection. For strings, it is an empty string. -public func beEmpty() -> Predicate { - return Predicate.simple("be empty") { actualExpression in - let actual = try actualExpression.evaluate() - return PredicateStatus(bool: actual == nil || actual!.count == 0) - } -} - -#if canImport(Darwin) -extension NMBObjCMatcher { - @objc public class func beEmptyMatcher() -> NMBPredicate { - return NMBPredicate { actualExpression in - let location = actualExpression.location - let actualValue = try actualExpression.evaluate() - - if let value = actualValue as? NMBCollection { - let expr = Expression(expression: ({ value as NMBCollection }), location: location) - return try beEmpty().satisfies(expr).toObjectiveC() - } else if let value = actualValue as? NSString { - let expr = Expression(expression: ({ value as String }), location: location) - return try beEmpty().satisfies(expr).toObjectiveC() - } else if let actualValue = actualValue { - // swiftlint:disable:next line_length - let badTypeErrorMsg = "be empty (only works for NSArrays, NSSets, NSIndexSets, NSDictionaries, NSHashTables, and NSStrings)" - return NMBPredicateResult( - status: NMBPredicateStatus.fail, - message: NMBExpectationMessage( - expectedActualValueTo: badTypeErrorMsg, - customActualValue: "\(String(describing: type(of: actualValue))) type" - ) - ) - } - return NMBPredicateResult( - status: NMBPredicateStatus.fail, - message: NMBExpectationMessage(expectedActualValueTo: "be empty").appendedBeNilHint() - ) - } - } -} -#endif diff --git a/Pods/Nimble/Sources/Nimble/Matchers/BeGreaterThan.swift b/Pods/Nimble/Sources/Nimble/Matchers/BeGreaterThan.swift deleted file mode 100644 index 782c771..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/BeGreaterThan.swift +++ /dev/null @@ -1,44 +0,0 @@ -import Foundation - -/// A Nimble matcher that succeeds when the actual value is greater than the expected value. -public func beGreaterThan(_ expectedValue: T?) -> Predicate { - let errorMessage = "be greater than <\(stringify(expectedValue))>" - return Predicate.simple(errorMessage) { actualExpression in - if let actual = try actualExpression.evaluate(), let expected = expectedValue { - return PredicateStatus(bool: actual > expected) - } - return .fail - } -} - -public func >(lhs: Expectation, rhs: T) { - lhs.to(beGreaterThan(rhs)) -} - -#if canImport(Darwin) || !compiler(>=5.1) -/// A Nimble matcher that succeeds when the actual value is greater than the expected value. -public func beGreaterThan(_ expectedValue: NMBComparable?) -> Predicate { - let errorMessage = "be greater than <\(stringify(expectedValue))>" - return Predicate.simple(errorMessage) { actualExpression in - let actualValue = try actualExpression.evaluate() - let matches = actualValue != nil - && actualValue!.NMB_compare(expectedValue) == ComparisonResult.orderedDescending - return PredicateStatus(bool: matches) - } -} - -public func > (lhs: Expectation, rhs: NMBComparable?) { - lhs.to(beGreaterThan(rhs)) -} -#endif - -#if canImport(Darwin) -extension NMBObjCMatcher { - @objc public class func beGreaterThanMatcher(_ expected: NMBComparable?) -> NMBMatcher { - return NMBPredicate { actualExpression in - let expr = actualExpression.cast { $0 as? NMBComparable } - return try beGreaterThan(expected).satisfies(expr).toObjectiveC() - } - } -} -#endif diff --git a/Pods/Nimble/Sources/Nimble/Matchers/BeGreaterThanOrEqualTo.swift b/Pods/Nimble/Sources/Nimble/Matchers/BeGreaterThanOrEqualTo.swift deleted file mode 100644 index c3fc523..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/BeGreaterThanOrEqualTo.swift +++ /dev/null @@ -1,46 +0,0 @@ -import Foundation - -/// A Nimble matcher that succeeds when the actual value is greater than -/// or equal to the expected value. -public func beGreaterThanOrEqualTo(_ expectedValue: T?) -> Predicate { - let message = "be greater than or equal to <\(stringify(expectedValue))>" - return Predicate.simple(message) { actualExpression in - let actualValue = try actualExpression.evaluate() - if let actual = actualValue, let expected = expectedValue { - return PredicateStatus(bool: actual >= expected) - } - return .fail - } -} - -public func >=(lhs: Expectation, rhs: T) { - lhs.to(beGreaterThanOrEqualTo(rhs)) -} - -#if canImport(Darwin) || !compiler(>=5.1) -/// A Nimble matcher that succeeds when the actual value is greater than -/// or equal to the expected value. -public func beGreaterThanOrEqualTo(_ expectedValue: T?) -> Predicate { - let message = "be greater than or equal to <\(stringify(expectedValue))>" - return Predicate.simple(message) { actualExpression in - let actualValue = try actualExpression.evaluate() - let matches = actualValue != nil && actualValue!.NMB_compare(expectedValue) != ComparisonResult.orderedAscending - return PredicateStatus(bool: matches) - } -} - -public func >=(lhs: Expectation, rhs: T) { - lhs.to(beGreaterThanOrEqualTo(rhs)) -} -#endif - -#if canImport(Darwin) -extension NMBObjCMatcher { - @objc public class func beGreaterThanOrEqualToMatcher(_ expected: NMBComparable?) -> NMBMatcher { - return NMBPredicate { actualExpression in - let expr = actualExpression.cast { $0 as? NMBComparable } - return try beGreaterThanOrEqualTo(expected).satisfies(expr).toObjectiveC() - } - } -} -#endif diff --git a/Pods/Nimble/Sources/Nimble/Matchers/BeIdenticalTo.swift b/Pods/Nimble/Sources/Nimble/Matchers/BeIdenticalTo.swift deleted file mode 100644 index 7644b4c..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/BeIdenticalTo.swift +++ /dev/null @@ -1,44 +0,0 @@ -import Foundation - -/// A Nimble matcher that succeeds when the actual value is the same instance -/// as the expected instance. -public func beIdenticalTo(_ expected: Any?) -> Predicate { - return Predicate.define { actualExpression in - let actual = try actualExpression.evaluate() as AnyObject? - - let bool = actual === (expected as AnyObject?) && actual !== nil - return PredicateResult( - bool: bool, - message: .expectedCustomValueTo( - "be identical to \(identityAsString(expected))", - "\(identityAsString(actual))" - ) - ) - } -} - -public func === (lhs: Expectation, rhs: Any?) { - lhs.to(beIdenticalTo(rhs)) -} -public func !== (lhs: Expectation, rhs: Any?) { - lhs.toNot(beIdenticalTo(rhs)) -} - -/// A Nimble matcher that succeeds when the actual value is the same instance -/// as the expected instance. -/// -/// Alias for "beIdenticalTo". -public func be(_ expected: Any?) -> Predicate { - return beIdenticalTo(expected) -} - -#if canImport(Darwin) -extension NMBObjCMatcher { - @objc public class func beIdenticalToMatcher(_ expected: NSObject?) -> NMBMatcher { - return NMBPredicate { actualExpression in - let aExpr = actualExpression.cast { $0 as Any? } - return try beIdenticalTo(expected).satisfies(aExpr).toObjectiveC() - } - } -} -#endif diff --git a/Pods/Nimble/Sources/Nimble/Matchers/BeLessThan.swift b/Pods/Nimble/Sources/Nimble/Matchers/BeLessThan.swift deleted file mode 100644 index 12fc9c2..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/BeLessThan.swift +++ /dev/null @@ -1,43 +0,0 @@ -import Foundation - -/// A Nimble matcher that succeeds when the actual value is less than the expected value. -public func beLessThan(_ expectedValue: T?) -> Predicate { - let message = "be less than <\(stringify(expectedValue))>" - return Predicate.simple(message) { actualExpression in - if let actual = try actualExpression.evaluate(), let expected = expectedValue { - return PredicateStatus(bool: actual < expected) - } - return .fail - } -} - -public func <(lhs: Expectation, rhs: T) { - lhs.to(beLessThan(rhs)) -} - -#if canImport(Darwin) || !compiler(>=5.1) -/// A Nimble matcher that succeeds when the actual value is less than the expected value. -public func beLessThan(_ expectedValue: NMBComparable?) -> Predicate { - let message = "be less than <\(stringify(expectedValue))>" - return Predicate.simple(message) { actualExpression in - let actualValue = try actualExpression.evaluate() - let matches = actualValue != nil && actualValue!.NMB_compare(expectedValue) == ComparisonResult.orderedAscending - return PredicateStatus(bool: matches) - } -} - -public func < (lhs: Expectation, rhs: NMBComparable?) { - lhs.to(beLessThan(rhs)) -} -#endif - -#if canImport(Darwin) -extension NMBObjCMatcher { - @objc public class func beLessThanMatcher(_ expected: NMBComparable?) -> NMBMatcher { - return NMBPredicate { actualExpression in - let expr = actualExpression.cast { $0 as? NMBComparable } - return try beLessThan(expected).satisfies(expr).toObjectiveC() - } - } -} -#endif diff --git a/Pods/Nimble/Sources/Nimble/Matchers/BeLessThanOrEqual.swift b/Pods/Nimble/Sources/Nimble/Matchers/BeLessThanOrEqual.swift deleted file mode 100644 index bf6ba16..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/BeLessThanOrEqual.swift +++ /dev/null @@ -1,43 +0,0 @@ -import Foundation - -/// A Nimble matcher that succeeds when the actual value is less than -/// or equal to the expected value. -public func beLessThanOrEqualTo(_ expectedValue: T?) -> Predicate { - return Predicate.simple("be less than or equal to <\(stringify(expectedValue))>") { actualExpression in - if let actual = try actualExpression.evaluate(), let expected = expectedValue { - return PredicateStatus(bool: actual <= expected) - } - return .fail - } -} - -public func <=(lhs: Expectation, rhs: T) { - lhs.to(beLessThanOrEqualTo(rhs)) -} - -#if canImport(Darwin) || !compiler(>=5.1) -/// A Nimble matcher that succeeds when the actual value is less than -/// or equal to the expected value. -public func beLessThanOrEqualTo(_ expectedValue: T?) -> Predicate { - return Predicate.simple("be less than or equal to <\(stringify(expectedValue))>") { actualExpression in - let actualValue = try actualExpression.evaluate() - let matches = actualValue.map { $0.NMB_compare(expectedValue) != .orderedDescending } ?? false - return PredicateStatus(bool: matches) - } -} - -public func <=(lhs: Expectation, rhs: T) { - lhs.to(beLessThanOrEqualTo(rhs)) -} -#endif - -#if canImport(Darwin) -extension NMBObjCMatcher { - @objc public class func beLessThanOrEqualToMatcher(_ expected: NMBComparable?) -> NMBMatcher { - return NMBPredicate { actualExpression in - let expr = actualExpression.cast { $0 as? NMBComparable } - return try beLessThanOrEqualTo(expected).satisfies(expr).toObjectiveC() - } - } -} -#endif diff --git a/Pods/Nimble/Sources/Nimble/Matchers/BeLogical.swift b/Pods/Nimble/Sources/Nimble/Matchers/BeLogical.swift deleted file mode 100644 index 788234b..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/BeLogical.swift +++ /dev/null @@ -1,154 +0,0 @@ -import Foundation - -extension Int8: ExpressibleByBooleanLiteral { - public init(booleanLiteral value: Bool) { - self = NSNumber(value: value).int8Value - } -} - -extension UInt8: ExpressibleByBooleanLiteral { - public init(booleanLiteral value: Bool) { - self = NSNumber(value: value).uint8Value - } -} - -extension Int16: ExpressibleByBooleanLiteral { - public init(booleanLiteral value: Bool) { - self = NSNumber(value: value).int16Value - } -} - -extension UInt16: ExpressibleByBooleanLiteral { - public init(booleanLiteral value: Bool) { - self = NSNumber(value: value).uint16Value - } -} - -extension Int32: ExpressibleByBooleanLiteral { - public init(booleanLiteral value: Bool) { - self = NSNumber(value: value).int32Value - } -} - -extension UInt32: ExpressibleByBooleanLiteral { - public init(booleanLiteral value: Bool) { - self = NSNumber(value: value).uint32Value - } -} - -extension Int64: ExpressibleByBooleanLiteral { - public init(booleanLiteral value: Bool) { - self = NSNumber(value: value).int64Value - } -} - -extension UInt64: ExpressibleByBooleanLiteral { - public init(booleanLiteral value: Bool) { - self = NSNumber(value: value).uint64Value - } -} - -extension Float: ExpressibleByBooleanLiteral { - public init(booleanLiteral value: Bool) { - self = NSNumber(value: value).floatValue - } -} - -extension Double: ExpressibleByBooleanLiteral { - public init(booleanLiteral value: Bool) { - self = NSNumber(value: value).doubleValue - } -} - -extension Int: ExpressibleByBooleanLiteral { - public init(booleanLiteral value: Bool) { - self = NSNumber(value: value).intValue - } -} - -extension UInt: ExpressibleByBooleanLiteral { - public init(booleanLiteral value: Bool) { - self = NSNumber(value: value).uintValue - } -} - -internal func rename(_ matcher: Predicate, failureMessage message: ExpectationMessage) -> Predicate { - return Predicate { actualExpression in - let result = try matcher.satisfies(actualExpression) - return PredicateResult(status: result.status, message: message) - }.requireNonNil -} - -// MARK: beTrue() / beFalse() - -/// A Nimble matcher that succeeds when the actual value is exactly true. -/// This matcher will not match against nils. -public func beTrue() -> Predicate { - return rename(equal(true), failureMessage: .expectedActualValueTo("be true")) -} - -/// A Nimble matcher that succeeds when the actual value is exactly false. -/// This matcher will not match against nils. -public func beFalse() -> Predicate { - return rename(equal(false), failureMessage: .expectedActualValueTo("be false")) -} - -// MARK: beTruthy() / beFalsy() - -/// A Nimble matcher that succeeds when the actual value is not logically false. -public func beTruthy() -> Predicate { - return Predicate.simpleNilable("be truthy") { actualExpression in - let actualValue = try actualExpression.evaluate() - if let actualValue = actualValue { - return PredicateStatus(bool: actualValue == (true as T)) - } - return PredicateStatus(bool: actualValue != nil) - } -} - -/// A Nimble matcher that succeeds when the actual value is logically false. -/// This matcher will match against nils. -public func beFalsy() -> Predicate { - return Predicate.simpleNilable("be falsy") { actualExpression in - let actualValue = try actualExpression.evaluate() - if let actualValue = actualValue { - return PredicateStatus(bool: actualValue == (false as T)) - } - return PredicateStatus(bool: actualValue == nil) - } -} - -#if canImport(Darwin) -extension NMBObjCMatcher { - @objc public class func beTruthyMatcher() -> NMBMatcher { - return NMBPredicate { actualExpression in - let expr = actualExpression.cast { ($0 as? NSNumber)?.boolValue ?? false } - return try beTruthy().satisfies(expr).toObjectiveC() - } - } - - @objc public class func beFalsyMatcher() -> NMBMatcher { - return NMBPredicate { actualExpression in - let expr = actualExpression.cast { ($0 as? NSNumber)?.boolValue ?? false } - return try beFalsy().satisfies(expr).toObjectiveC() - } - } - - @objc public class func beTrueMatcher() -> NMBMatcher { - return NMBPredicate { actualExpression in - let expr = actualExpression.cast { ($0 as? NSNumber)?.boolValue ?? false } - return try beTrue().satisfies(expr).toObjectiveC() - } - } - - @objc public class func beFalseMatcher() -> NMBMatcher { - return NMBPredicate { actualExpression in - let expr = actualExpression.cast { value -> Bool? in - guard let value = value else { return nil } - return (value as? NSNumber)?.boolValue ?? false - } - return try beFalse().satisfies(expr).toObjectiveC() - } - } -} -#endif diff --git a/Pods/Nimble/Sources/Nimble/Matchers/BeNil.swift b/Pods/Nimble/Sources/Nimble/Matchers/BeNil.swift deleted file mode 100644 index 0f21d41..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/BeNil.swift +++ /dev/null @@ -1,19 +0,0 @@ -import Foundation - -/// A Nimble matcher that succeeds when the actual value is nil. -public func beNil() -> Predicate { - return Predicate.simpleNilable("be nil") { actualExpression in - let actualValue = try actualExpression.evaluate() - return PredicateStatus(bool: actualValue == nil) - } -} - -#if canImport(Darwin) -extension NMBObjCMatcher { - @objc public class func beNilMatcher() -> NMBMatcher { - return NMBPredicate { actualExpression in - return try beNil().satisfies(actualExpression).toObjectiveC() - } - } -} -#endif diff --git a/Pods/Nimble/Sources/Nimble/Matchers/BeVoid.swift b/Pods/Nimble/Sources/Nimble/Matchers/BeVoid.swift deleted file mode 100644 index 9a7eafd..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/BeVoid.swift +++ /dev/null @@ -1,19 +0,0 @@ -import Foundation - -/// A Nimble matcher that succeeds when the actual value is Void. -public func beVoid() -> Predicate<()> { - return Predicate.simpleNilable("be void") { actualExpression in - let actualValue: ()? = try actualExpression.evaluate() - return PredicateStatus(bool: actualValue != nil) - } -} - -extension Expectation where T == () { - public static func == (lhs: Expectation<()>, rhs: ()) { - lhs.to(beVoid()) - } - - public static func != (lhs: Expectation<()>, rhs: ()) { - lhs.toNot(beVoid()) - } -} diff --git a/Pods/Nimble/Sources/Nimble/Matchers/BeginWith.swift b/Pods/Nimble/Sources/Nimble/Matchers/BeginWith.swift deleted file mode 100644 index 3183eb9..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/BeginWith.swift +++ /dev/null @@ -1,60 +0,0 @@ -import Foundation - -/// A Nimble matcher that succeeds when the actual sequence's first element -/// is equal to the expected value. -public func beginWith(_ startingElement: T) -> Predicate - where S.Iterator.Element == T { - return Predicate.simple("begin with <\(startingElement)>") { actualExpression in - if let actualValue = try actualExpression.evaluate() { - var actualGenerator = actualValue.makeIterator() - return PredicateStatus(bool: actualGenerator.next() == startingElement) - } - return .fail - } -} - -/// A Nimble matcher that succeeds when the actual collection's first element -/// is equal to the expected object. -public func beginWith(_ startingElement: Any) -> Predicate { - return Predicate.simple("begin with <\(startingElement)>") { actualExpression in - guard let collection = try actualExpression.evaluate() else { return .fail } - guard collection.count > 0 else { return .doesNotMatch } - #if os(Linux) - guard let collectionValue = collection.object(at: 0) as? NSObject else { - return .fail - } - #else - let collectionValue = collection.object(at: 0) as AnyObject - #endif - return PredicateStatus(bool: collectionValue.isEqual(startingElement)) - } -} - -/// A Nimble matcher that succeeds when the actual string contains expected substring -/// where the expected substring's location is zero. -public func beginWith(_ startingSubstring: String) -> Predicate { - return Predicate.simple("begin with <\(startingSubstring)>") { actualExpression in - if let actual = try actualExpression.evaluate() { - return PredicateStatus(bool: actual.hasPrefix(startingSubstring)) - } - return .fail - } -} - -#if canImport(Darwin) -extension NMBObjCMatcher { - @objc public class func beginWithMatcher(_ expected: Any) -> NMBMatcher { - return NMBPredicate { actualExpression in - let actual = try actualExpression.evaluate() - if actual is String { - let expr = actualExpression.cast { $0 as? String } - // swiftlint:disable:next force_cast - return try beginWith(expected as! String).satisfies(expr).toObjectiveC() - } else { - let expr = actualExpression.cast { $0 as? NMBOrderedCollection } - return try beginWith(expected).satisfies(expr).toObjectiveC() - } - } - } -} -#endif diff --git a/Pods/Nimble/Sources/Nimble/Matchers/Contain.swift b/Pods/Nimble/Sources/Nimble/Matchers/Contain.swift deleted file mode 100644 index 6974a4d..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/Contain.swift +++ /dev/null @@ -1,144 +0,0 @@ -import Foundation - -/// A Nimble matcher that succeeds when the actual sequence contains the expected values. -public func contain(_ items: T...) -> Predicate - where S.Element == T { - return contain(items) -} - -/// A Nimble matcher that succeeds when the actual sequence contains the expected values. -public func contain(_ items: [T]) -> Predicate - where S.Element == T { - return Predicate.simple("contain <\(arrayAsString(items))>") { actualExpression in - if let actual = try actualExpression.evaluate() { - let matches = items.allSatisfy { - return actual.contains($0) - } - return PredicateStatus(bool: matches) - } - return .fail - } -} - -/// A Nimble matcher that succeeds when the actual set contains the expected values. -public func contain(_ items: T...) -> Predicate - where S.Element == T { - return contain(items) -} - -/// A Nimble matcher that succeeds when the actual set contains the expected values. -public func contain(_ items: [T]) -> Predicate - where S.Element == T { - return Predicate.simple("contain <\(arrayAsString(items))>") { actualExpression in - if let actual = try actualExpression.evaluate() { - let matches = items.allSatisfy { - return actual.contains($0) - } - return PredicateStatus(bool: matches) - } - return .fail - } -} - -/// A Nimble matcher that succeeds when the actual set contains the expected values. -public func contain(_ items: T...) -> Predicate - where S.Element == T { - return contain(items) -} - -/// A Nimble matcher that succeeds when the actual set contains the expected values. -public func contain(_ items: [T]) -> Predicate - where S.Element == T { - return Predicate.simple("contain <\(arrayAsString(items))>") { actualExpression in - if let actual = try actualExpression.evaluate() { - let matches = items.allSatisfy { - return actual.contains($0) - } - return PredicateStatus(bool: matches) - } - return .fail - } -} - -/// A Nimble matcher that succeeds when the actual string contains the expected substring. -public func contain(_ substrings: String...) -> Predicate { - return contain(substrings) -} - -public func contain(_ substrings: [String]) -> Predicate { - return Predicate.simple("contain <\(arrayAsString(substrings))>") { actualExpression in - if let actual = try actualExpression.evaluate() { - let matches = substrings.allSatisfy { - let range = actual.range(of: $0) - return range != nil && !range!.isEmpty - } - return PredicateStatus(bool: matches) - } - return .fail - } -} - -/// A Nimble matcher that succeeds when the actual string contains the expected substring. -public func contain(_ substrings: NSString...) -> Predicate { - return contain(substrings) -} - -public func contain(_ substrings: [NSString]) -> Predicate { - return Predicate.simple("contain <\(arrayAsString(substrings))>") { actualExpression in - if let actual = try actualExpression.evaluate() { - let matches = substrings.allSatisfy { actual.range(of: $0.description).length != 0 } - return PredicateStatus(bool: matches) - } - return .fail - } -} - -/// A Nimble matcher that succeeds when the actual collection contains the expected object. -public func contain(_ items: Any?...) -> Predicate { - return contain(items) -} - -public func contain(_ items: [Any?]) -> Predicate { - return Predicate.simple("contain <\(arrayAsString(items))>") { actualExpression in - guard let actual = try actualExpression.evaluate() else { return .fail } - let matches = items.allSatisfy { item in - return item.map { actual.contains($0) } ?? false - } - return PredicateStatus(bool: matches) - } -} - -#if canImport(Darwin) -extension NMBObjCMatcher { - @objc public class func containMatcher(_ expected: [NSObject]) -> NMBMatcher { - return NMBPredicate { actualExpression in - let location = actualExpression.location - let actualValue = try actualExpression.evaluate() - if let value = actualValue as? NMBContainer { - let expr = Expression(expression: ({ value as NMBContainer }), location: location) - - // A straightforward cast on the array causes this to crash, so we have to cast the individual items - let expectedOptionals: [Any?] = expected.map({ $0 as Any? }) - return try contain(expectedOptionals).satisfies(expr).toObjectiveC() - } else if let value = actualValue as? NSString { - let expr = Expression(expression: ({ value as String }), location: location) - // swiftlint:disable:next force_cast - return try contain(expected as! [String]).satisfies(expr).toObjectiveC() - } - - let message: ExpectationMessage - if actualValue != nil { - message = ExpectationMessage.expectedActualValueTo( - // swiftlint:disable:next line_length - "contain <\(arrayAsString(expected))> (only works for NSArrays, NSSets, NSHashTables, and NSStrings)" - ) - } else { - message = ExpectationMessage - .expectedActualValueTo("contain <\(arrayAsString(expected))>") - .appendedBeNilHint() - } - return NMBPredicateResult(status: .fail, message: message.toObjectiveC()) - } - } -} -#endif diff --git a/Pods/Nimble/Sources/Nimble/Matchers/ContainElementSatisfying.swift b/Pods/Nimble/Sources/Nimble/Matchers/ContainElementSatisfying.swift deleted file mode 100644 index 331f3bc..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/ContainElementSatisfying.swift +++ /dev/null @@ -1,58 +0,0 @@ -import Foundation - -public func containElementSatisfying(_ predicate: @escaping ((T) -> Bool), _ predicateDescription: String = "") -> Predicate where S.Iterator.Element == T { - - return Predicate.define { actualExpression in - let message: ExpectationMessage - if predicateDescription == "" { - message = .expectedTo("find object in collection that satisfies predicate") - } else { - message = .expectedTo("find object in collection \(predicateDescription)") - } - - if let sequence = try actualExpression.evaluate() { - for object in sequence { - if predicate(object) { - return PredicateResult(bool: true, message: message) - } - } - - return PredicateResult(bool: false, message: message) - } - - return PredicateResult(status: .fail, message: message) - } -} - -#if canImport(Darwin) - extension NMBObjCMatcher { - @objc public class func containElementSatisfyingMatcher(_ predicate: @escaping ((NSObject) -> Bool)) -> NMBMatcher { - return NMBPredicate { actualExpression in - let value = try actualExpression.evaluate() - guard let enumeration = value as? NSFastEnumeration else { - let message = ExpectationMessage.fail( - "containElementSatisfying must be provided an NSFastEnumeration object" - ) - return NMBPredicateResult(status: .fail, message: message.toObjectiveC()) - } - - let message = ExpectationMessage - .expectedTo("find object in collection that satisfies predicate") - .toObjectiveC() - - var iterator = NSFastEnumerationIterator(enumeration) - while let item = iterator.next() { - guard let object = item as? NSObject else { - continue - } - - if predicate(object) { - return NMBPredicateResult(status: .matches, message: message) - } - } - - return NMBPredicateResult(status: .doesNotMatch, message: message) - } - } - } -#endif diff --git a/Pods/Nimble/Sources/Nimble/Matchers/ElementsEqual.swift b/Pods/Nimble/Sources/Nimble/Matchers/ElementsEqual.swift deleted file mode 100644 index 1704e94..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/ElementsEqual.swift +++ /dev/null @@ -1,16 +0,0 @@ -/// A Nimble matcher that succeeds when the actual sequence contain the same elements in the same order to the exepected sequence. -public func elementsEqual(_ expectedValue: S?) -> Predicate where S.Element: Equatable { - // A matcher abstraction for https://developer.apple.com/documentation/swift/sequence/2949668-elementsequal - return Predicate.define("elementsEqual <\(stringify(expectedValue))>") { (actualExpression, msg) in - let actualValue = try actualExpression.evaluate() - switch (expectedValue, actualValue) { - case (nil, _?): - return PredicateResult(status: .fail, message: msg.appendedBeNilHint()) - case (nil, nil), (_, nil): - return PredicateResult(status: .fail, message: msg) - case (let expected?, let actual?): - let matches = expected.elementsEqual(actual) - return PredicateResult(bool: matches, message: msg) - } - } -} diff --git a/Pods/Nimble/Sources/Nimble/Matchers/EndWith.swift b/Pods/Nimble/Sources/Nimble/Matchers/EndWith.swift deleted file mode 100644 index 13bdb31..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/EndWith.swift +++ /dev/null @@ -1,69 +0,0 @@ -import Foundation - -/// A Nimble matcher that succeeds when the actual sequence's last element -/// is equal to the expected value. -public func endWith(_ endingElement: T) -> Predicate - where S.Iterator.Element == T { - return Predicate.simple("end with <\(endingElement)>") { actualExpression in - if let actualValue = try actualExpression.evaluate() { - var actualGenerator = actualValue.makeIterator() - var lastItem: T? - var item: T? - repeat { - lastItem = item - item = actualGenerator.next() - } while(item != nil) - - return PredicateStatus(bool: lastItem == endingElement) - } - return .fail - } -} - -/// A Nimble matcher that succeeds when the actual collection's last element -/// is equal to the expected object. -public func endWith(_ endingElement: Any) -> Predicate { - return Predicate.simple("end with <\(endingElement)>") { actualExpression in - guard let collection = try actualExpression.evaluate() else { return .fail } - guard collection.count > 0 else { return PredicateStatus(bool: false) } - #if os(Linux) - guard let collectionValue = collection.object(at: collection.count - 1) as? NSObject else { - return .fail - } - #else - let collectionValue = collection.object(at: collection.count - 1) as AnyObject - #endif - - return PredicateStatus(bool: collectionValue.isEqual(endingElement)) - } -} - -/// A Nimble matcher that succeeds when the actual string contains the expected substring -/// where the expected substring's location is the actual string's length minus the -/// expected substring's length. -public func endWith(_ endingSubstring: String) -> Predicate { - return Predicate.simple("end with <\(endingSubstring)>") { actualExpression in - if let collection = try actualExpression.evaluate() { - return PredicateStatus(bool: collection.hasSuffix(endingSubstring)) - } - return .fail - } -} - -#if canImport(Darwin) -extension NMBObjCMatcher { - @objc public class func endWithMatcher(_ expected: Any) -> NMBMatcher { - return NMBPredicate { actualExpression in - let actual = try actualExpression.evaluate() - if actual is String { - let expr = actualExpression.cast { $0 as? String } - // swiftlint:disable:next force_cast - return try endWith(expected as! String).satisfies(expr).toObjectiveC() - } else { - let expr = actualExpression.cast { $0 as? NMBOrderedCollection } - return try endWith(expected).satisfies(expr).toObjectiveC() - } - } - } -} -#endif diff --git a/Pods/Nimble/Sources/Nimble/Matchers/Equal.swift b/Pods/Nimble/Sources/Nimble/Matchers/Equal.swift deleted file mode 100644 index b08d5f6..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/Equal.swift +++ /dev/null @@ -1,148 +0,0 @@ -import Foundation - -/// A Nimble matcher that succeeds when the actual value is equal to the expected value. -/// Values can support equal by supporting the Equatable protocol. -/// -/// @see beCloseTo if you want to match imprecise types (eg - floats, doubles). -public func equal(_ expectedValue: T?) -> Predicate { - return Predicate.define("equal <\(stringify(expectedValue))>") { actualExpression, msg in - let actualValue = try actualExpression.evaluate() - switch (expectedValue, actualValue) { - case (nil, _?): - return PredicateResult(status: .fail, message: msg.appendedBeNilHint()) - case (nil, nil), (_, nil): - return PredicateResult(status: .fail, message: msg) - case (let expected?, let actual?): - let matches = expected == actual - return PredicateResult(bool: matches, message: msg) - } - } -} - -/// A Nimble matcher allowing comparison of collection with optional type -public func equal(_ expectedValue: [T?]) -> Predicate<[T?]> { - return Predicate.define("equal <\(stringify(expectedValue))>") { actualExpression, msg in - guard let actualValue = try actualExpression.evaluate() else { - return PredicateResult( - status: .fail, - message: msg.appendedBeNilHint() - ) - } - - let matches = expectedValue == actualValue - return PredicateResult(bool: matches, message: msg) - } -} - -/// A Nimble matcher that succeeds when the actual set is equal to the expected set. -public func equal(_ expectedValue: Set?) -> Predicate> { - return equal(expectedValue, stringify: { stringify($0) }) -} - -/// A Nimble matcher that succeeds when the actual set is equal to the expected set. -public func equal(_ expectedValue: Set?) -> Predicate> { - return equal(expectedValue, stringify: { - if let set = $0 { - return stringify(Array(set).sorted { $0 < $1 }) - } else { - return "nil" - } - }) -} - -private func equal(_ expectedValue: Set?, stringify: @escaping (Set?) -> String) -> Predicate> { - return Predicate { actualExpression in - var errorMessage: ExpectationMessage = - .expectedActualValueTo("equal <\(stringify(expectedValue))>") - - guard let expectedValue = expectedValue else { - return PredicateResult( - status: .fail, - message: errorMessage.appendedBeNilHint() - ) - } - - guard let actualValue = try actualExpression.evaluate() else { - return PredicateResult( - status: .fail, - message: errorMessage.appendedBeNilHint() - ) - } - - errorMessage = .expectedCustomValueTo( - "equal <\(stringify(expectedValue))>", - "<\(stringify(actualValue))>" - ) - - if expectedValue == actualValue { - return PredicateResult( - status: .matches, - message: errorMessage - ) - } - - let missing = expectedValue.subtracting(actualValue) - if missing.count > 0 { - errorMessage = errorMessage.appended(message: ", missing <\(stringify(missing))>") - } - - let extra = actualValue.subtracting(expectedValue) - if extra.count > 0 { - errorMessage = errorMessage.appended(message: ", extra <\(stringify(extra))>") - } - return PredicateResult( - status: .doesNotMatch, - message: errorMessage - ) - } -} - -public func ==(lhs: Expectation, rhs: T?) { - lhs.to(equal(rhs)) -} - -public func !=(lhs: Expectation, rhs: T?) { - lhs.toNot(equal(rhs)) -} - -public func ==(lhs: Expectation<[T]>, rhs: [T]?) { - lhs.to(equal(rhs)) -} - -public func !=(lhs: Expectation<[T]>, rhs: [T]?) { - lhs.toNot(equal(rhs)) -} - -public func == (lhs: Expectation>, rhs: Set?) { - lhs.to(equal(rhs)) -} - -public func != (lhs: Expectation>, rhs: Set?) { - lhs.toNot(equal(rhs)) -} - -public func ==(lhs: Expectation>, rhs: Set?) { - lhs.to(equal(rhs)) -} - -public func !=(lhs: Expectation>, rhs: Set?) { - lhs.toNot(equal(rhs)) -} - -public func ==(lhs: Expectation<[T: C]>, rhs: [T: C]?) { - lhs.to(equal(rhs)) -} - -public func !=(lhs: Expectation<[T: C]>, rhs: [T: C]?) { - lhs.toNot(equal(rhs)) -} - -#if canImport(Darwin) -extension NMBObjCMatcher { - @objc public class func equalMatcher(_ expected: NSObject) -> NMBMatcher { - return NMBPredicate { actualExpression in - return try equal(expected).satisfies(actualExpression).toObjectiveC() - } - } -} -#endif diff --git a/Pods/Nimble/Sources/Nimble/Matchers/HaveCount.swift b/Pods/Nimble/Sources/Nimble/Matchers/HaveCount.swift deleted file mode 100644 index 984e2d4..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/HaveCount.swift +++ /dev/null @@ -1,74 +0,0 @@ -import Foundation - -// The `haveCount` matchers do not print the full string representation of the collection value, -// instead they only print the type name and the expected count. This makes it easier to understand -// the reason for failed expectations. See: https://github.com/Quick/Nimble/issues/308. -// The representation of the collection content is provided in a new line as an `extendedMessage`. - -/// A Nimble matcher that succeeds when the actual Collection's count equals -/// the expected value -public func haveCount(_ expectedValue: Int) -> Predicate { - return Predicate.define { actualExpression in - if let actualValue = try actualExpression.evaluate() { - let message = ExpectationMessage - .expectedCustomValueTo( - "have \(prettyCollectionType(actualValue)) with count \(stringify(expectedValue))", - "\(actualValue.count)" - ) - .appended(details: "Actual Value: \(stringify(actualValue))") - - let result = expectedValue == actualValue.count - return PredicateResult(bool: result, message: message) - } else { - return PredicateResult(status: .fail, message: .fail("")) - } - } -} - -/// A Nimble matcher that succeeds when the actual collection's count equals -/// the expected value -public func haveCount(_ expectedValue: Int) -> Predicate { - return Predicate { actualExpression in - if let actualValue = try actualExpression.evaluate() { - let message = ExpectationMessage - .expectedCustomValueTo( - "have \(prettyCollectionType(actualValue)) with count \(stringify(expectedValue))", - "\(actualValue.count)" - ) - .appended(details: "Actual Value: \(stringify(actualValue))") - - let result = expectedValue == actualValue.count - return PredicateResult(bool: result, message: message) - } else { - return PredicateResult(status: .fail, message: .fail("")) - } - } -} - -#if canImport(Darwin) -extension NMBObjCMatcher { - @objc public class func haveCountMatcher(_ expected: NSNumber) -> NMBMatcher { - return NMBPredicate { actualExpression in - let location = actualExpression.location - let actualValue = try actualExpression.evaluate() - if let value = actualValue as? NMBCollection { - let expr = Expression(expression: ({ value as NMBCollection}), location: location) - return try haveCount(expected.intValue).satisfies(expr).toObjectiveC() - } - - let message: ExpectationMessage - if let actualValue = actualValue { - message = ExpectationMessage.expectedCustomValueTo( - "get type of NSArray, NSSet, NSDictionary, or NSHashTable", - "\(String(describing: type(of: actualValue)))" - ) - } else { - message = ExpectationMessage - .expectedActualValueTo("have a collection with count \(stringify(expected.intValue))") - .appendedBeNilHint() - } - return NMBPredicateResult(status: .fail, message: message.toObjectiveC()) - } - } -} -#endif diff --git a/Pods/Nimble/Sources/Nimble/Matchers/Match.swift b/Pods/Nimble/Sources/Nimble/Matchers/Match.swift deleted file mode 100644 index dbcff09..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/Match.swift +++ /dev/null @@ -1,29 +0,0 @@ -import Foundation - -/// A Nimble matcher that succeeds when the actual string satisfies the regular expression -/// described by the expected string. -public func match(_ expectedValue: String?) -> Predicate { - return Predicate.simple("match <\(stringify(expectedValue))>") { actualExpression in - if let actual = try actualExpression.evaluate() { - if let regexp = expectedValue { - let bool = actual.range(of: regexp, options: .regularExpression) != nil - return PredicateStatus(bool: bool) - } - } - - return .fail - } -} - -#if canImport(Darwin) - -extension NMBObjCMatcher { - @objc public class func matchMatcher(_ expected: NSString) -> NMBMatcher { - return NMBPredicate { actualExpression in - let actual = actualExpression.cast { $0 as? String } - return try match(expected.description).satisfies(actual).toObjectiveC() - } - } -} - -#endif diff --git a/Pods/Nimble/Sources/Nimble/Matchers/MatchError.swift b/Pods/Nimble/Sources/Nimble/Matchers/MatchError.swift deleted file mode 100644 index 4ad71d4..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/MatchError.swift +++ /dev/null @@ -1,76 +0,0 @@ -import Foundation - -/// A Nimble matcher that succeeds when the actual expression evaluates to an -/// error from the specified case. -/// -/// Errors are tried to be compared by their implementation of Equatable, -/// otherwise they fallback to comparison by _domain and _code. -public func matchError(_ error: T) -> Predicate { - return Predicate.define { actualExpression in - let actualError = try actualExpression.evaluate() - - let failureMessage = FailureMessage() - setFailureMessageForError( - failureMessage, - postfixMessageVerb: "match", - actualError: actualError, - error: error - ) - - var matches = false - if let actualError = actualError, errorMatchesExpectedError(actualError, expectedError: error) { - matches = true - } - - return PredicateResult(bool: matches, message: failureMessage.toExpectationMessage()) - } -} - -/// A Nimble matcher that succeeds when the actual expression evaluates to an -/// error from the specified case. -/// -/// Errors are tried to be compared by their implementation of Equatable, -/// otherwise they fallback to comparision by _domain and _code. -public func matchError(_ error: T) -> Predicate { - return Predicate.define { actualExpression in - let actualError = try actualExpression.evaluate() - - let failureMessage = FailureMessage() - setFailureMessageForError( - failureMessage, - postfixMessageVerb: "match", - actualError: actualError, - error: error - ) - - var matches = false - if let actualError = actualError as? T, error == actualError { - matches = true - } - - return PredicateResult(bool: matches, message: failureMessage.toExpectationMessage()) - } -} - -/// A Nimble matcher that succeeds when the actual expression evaluates to an -/// error of the specified type -public func matchError(_ errorType: T.Type) -> Predicate { - return Predicate.define { actualExpression in - let actualError = try actualExpression.evaluate() - - let failureMessage = FailureMessage() - setFailureMessageForError( - failureMessage, - postfixMessageVerb: "match", - actualError: actualError, - errorType: errorType - ) - - var matches = false - if actualError as? T != nil { - matches = true - } - - return PredicateResult(bool: matches, message: failureMessage.toExpectationMessage()) - } -} diff --git a/Pods/Nimble/Sources/Nimble/Matchers/MatcherFunc.swift b/Pods/Nimble/Sources/Nimble/Matchers/MatcherFunc.swift deleted file mode 100644 index abcafa9..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/MatcherFunc.swift +++ /dev/null @@ -1,85 +0,0 @@ -/// DEPRECATED: A convenience API to build matchers that don't need special negation -/// behavior. The toNot() behavior is the negation of to(). -/// -/// @see NonNilMatcherFunc if you prefer to have this matcher fail when nil -/// values are received in an expectation. -/// -/// You may use this when implementing your own custom matchers. -/// -/// Use the Matcher protocol instead of this type to accept custom matchers as -/// input parameters. -/// @see allPass for an example that uses accepts other matchers as input. -@available(*, deprecated, message: "Use to Predicate instead") -public struct MatcherFunc: Matcher { - public let matcher: (Expression, FailureMessage) throws -> Bool - - public init(_ matcher: @escaping (Expression, FailureMessage) throws -> Bool) { - self.matcher = matcher - } - - public func matches(_ actualExpression: Expression, failureMessage: FailureMessage) throws -> Bool { - return try matcher(actualExpression, failureMessage) - } - - public func doesNotMatch(_ actualExpression: Expression, failureMessage: FailureMessage) throws -> Bool { - return try !matcher(actualExpression, failureMessage) - } - - /// Compatibility layer to new Matcher API. Converts an old-style matcher to a new one. - /// Note: You should definitely spend the time to convert to the new api as soon as possible - /// since this struct type is deprecated. - public var predicate: Predicate { - return Predicate.fromDeprecatedMatcher(self) - } -} - -/// DEPRECATED: A convenience API to build matchers that don't need special negation -/// behavior. The toNot() behavior is the negation of to(). -/// -/// Unlike MatcherFunc, this will always fail if an expectation contains nil. -/// This applies regardless of using to() or toNot(). -/// -/// You may use this when implementing your own custom matchers. -/// -/// Use the Matcher protocol instead of this type to accept custom matchers as -/// input parameters. -/// @see allPass for an example that uses accepts other matchers as input. -@available(*, deprecated, message: "Use to Predicate instead") -public struct NonNilMatcherFunc: Matcher { - public let matcher: (Expression, FailureMessage) throws -> Bool - - public init(_ matcher: @escaping (Expression, FailureMessage) throws -> Bool) { - self.matcher = matcher - } - - public func matches(_ actualExpression: Expression, failureMessage: FailureMessage) throws -> Bool { - let pass = try matcher(actualExpression, failureMessage) - if try attachNilErrorIfNeeded(actualExpression, failureMessage: failureMessage) { - return false - } - return pass - } - - public func doesNotMatch(_ actualExpression: Expression, failureMessage: FailureMessage) throws -> Bool { - let pass = try !matcher(actualExpression, failureMessage) - if try attachNilErrorIfNeeded(actualExpression, failureMessage: failureMessage) { - return false - } - return pass - } - - internal func attachNilErrorIfNeeded(_ actualExpression: Expression, failureMessage: FailureMessage) throws -> Bool { - if try actualExpression.evaluate() == nil { - failureMessage.postfixActual = " (use beNil() to match nils)" - return true - } - return false - } - - /// Compatibility layer to new Matcher API. Converts an old-style matcher to a new one. - /// Note: You should definitely spend the time to convert to the new api as soon as possible - /// since this struct type is deprecated. - public var predicate: Predicate { - return Predicate.fromDeprecatedMatcher(self) - } -} diff --git a/Pods/Nimble/Sources/Nimble/Matchers/MatcherProtocols.swift b/Pods/Nimble/Sources/Nimble/Matchers/MatcherProtocols.swift deleted file mode 100644 index 21ffd77..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/MatcherProtocols.swift +++ /dev/null @@ -1,159 +0,0 @@ -import Foundation -// `CGFloat` is in Foundation (swift-corelibs-foundation) on Linux. -#if canImport(Darwin) - import CoreGraphics -#endif - -/// Implement this protocol to implement a custom matcher for Swift -@available(*, deprecated, message: "Use Predicate instead") -public protocol Matcher { - associatedtype ValueType - func matches(_ actualExpression: Expression, failureMessage: FailureMessage) throws -> Bool - func doesNotMatch(_ actualExpression: Expression, failureMessage: FailureMessage) throws -> Bool -} - -extension Matcher { - var predicate: Predicate { - return Predicate.fromDeprecatedMatcher(self) - } - - var toClosure: (Expression, FailureMessage, Bool) throws -> Bool { - return { expr, msg, expectedResult in - if expectedResult { - return try self.matches(expr, failureMessage: msg) - } else { - return try self.doesNotMatch(expr, failureMessage: msg) - } - } - } -} - -#if canImport(Darwin) -/// Objective-C interface to the Swift variant of Matcher. -@objc public protocol NMBMatcher { - func matches(_ actualBlock: @escaping () -> NSObject?, failureMessage: FailureMessage, location: SourceLocation) -> Bool - func doesNotMatch(_ actualBlock: @escaping () -> NSObject?, failureMessage: FailureMessage, location: SourceLocation) -> Bool -} -#endif - -/// Protocol for types that support contain() matcher. -public protocol NMBContainer { - func contains(_ anObject: Any) -> Bool -} - -#if canImport(Darwin) -// swiftlint:disable:next todo -// FIXME: NSHashTable can not conform to NMBContainer since swift-DEVELOPMENT-SNAPSHOT-2016-04-25-a -//extension NSHashTable : NMBContainer {} // Corelibs Foundation does not include this class yet -#endif - -extension NSArray: NMBContainer {} -extension NSSet: NMBContainer {} - -/// Protocol for types that support only beEmpty(), haveCount() matchers -public protocol NMBCollection { - var count: Int { get } -} - -#if canImport(Darwin) -extension NSHashTable: NMBCollection {} // Corelibs Foundation does not include these classes yet -extension NSMapTable: NMBCollection {} -#endif - -extension NSSet: NMBCollection {} -extension NSIndexSet: NMBCollection {} -extension NSDictionary: NMBCollection {} - -/// Protocol for types that support beginWith(), endWith(), beEmpty() matchers -public protocol NMBOrderedCollection: NMBCollection { - func object(at index: Int) -> Any -} - -extension NSArray: NMBOrderedCollection {} - -public protocol NMBDoubleConvertible { - var doubleValue: CDouble { get } -} - -extension Double: NMBDoubleConvertible { - public var doubleValue: CDouble { - return self - } -} - -extension Float: NMBDoubleConvertible { - public var doubleValue: CDouble { - return CDouble(self) - } -} - -extension CGFloat: NMBDoubleConvertible { - public var doubleValue: CDouble { - return CDouble(self) - } -} - -extension NSNumber: NMBDoubleConvertible { -} - -private let dateFormatter: DateFormatter = { - let formatter = DateFormatter() - formatter.dateFormat = "yyyy-MM-dd HH:mm:ss.SSSS" - formatter.locale = Locale(identifier: "en_US_POSIX") - - return formatter -}() - -extension Date: NMBDoubleConvertible { - public var doubleValue: CDouble { - return self.timeIntervalSinceReferenceDate - } -} - -extension NSDate: NMBDoubleConvertible { - public var doubleValue: CDouble { - return self.timeIntervalSinceReferenceDate - } -} - -extension Date: TestOutputStringConvertible { - public var testDescription: String { - return dateFormatter.string(from: self) - } -} - -extension NSDate: TestOutputStringConvertible { - public var testDescription: String { - return dateFormatter.string(from: Date(timeIntervalSinceReferenceDate: self.timeIntervalSinceReferenceDate)) - } -} - -/// Protocol for types to support beLessThan(), beLessThanOrEqualTo(), -/// beGreaterThan(), beGreaterThanOrEqualTo(), and equal() matchers. -/// -/// Types that conform to Swift's Comparable protocol will work implicitly too -#if canImport(Darwin) -@objc public protocol NMBComparable { - func NMB_compare(_ otherObject: NMBComparable!) -> ComparisonResult -} -#elseif !compiler(>=5.1) -// This should become obsolete once Corelibs Foundation adds Comparable conformance to NSNumber -public protocol NMBComparable { - func NMB_compare(_ otherObject: NMBComparable!) -> ComparisonResult -} -#endif - -#if canImport(Darwin) || !compiler(>=5.1) -extension NSNumber: NMBComparable { - public func NMB_compare(_ otherObject: NMBComparable!) -> ComparisonResult { - // swiftlint:disable:next force_cast - return compare(otherObject as! NSNumber) - } -} -extension NSString: NMBComparable { - public func NMB_compare(_ otherObject: NMBComparable!) -> ComparisonResult { - // swiftlint:disable:next force_cast - return compare(otherObject as! String) - } -} -#endif diff --git a/Pods/Nimble/Sources/Nimble/Matchers/PostNotification.swift b/Pods/Nimble/Sources/Nimble/Matchers/PostNotification.swift deleted file mode 100644 index 5e8bee3..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/PostNotification.swift +++ /dev/null @@ -1,100 +0,0 @@ -import Foundation - -internal class NotificationCollector { - private(set) var observedNotifications: [Notification] - private let notificationCenter: NotificationCenter - private var token: NSObjectProtocol? - - required init(notificationCenter: NotificationCenter) { - self.notificationCenter = notificationCenter - self.observedNotifications = [] - } - - func startObserving() { - // swiftlint:disable:next line_length - self.token = self.notificationCenter.addObserver(forName: nil, object: nil, queue: nil) { [weak self] notification in - // linux-swift gets confused by .append(n) - self?.observedNotifications.append(notification) - } - } - - deinit { - if let token = self.token { - self.notificationCenter.removeObserver(token) - } - } -} - -private let mainThread = pthread_self() - -public func postNotifications( - _ predicate: Predicate<[Notification]>, - fromNotificationCenter center: NotificationCenter = .default -) -> Predicate { - _ = mainThread // Force lazy-loading of this value - let collector = NotificationCollector(notificationCenter: center) - collector.startObserving() - var once: Bool = false - - return Predicate { actualExpression in - let collectorNotificationsExpression = Expression( - memoizedExpression: { _ in - return collector.observedNotifications - }, - location: actualExpression.location, - withoutCaching: true - ) - - assert(pthread_equal(mainThread, pthread_self()) != 0, "Only expecting closure to be evaluated on main thread.") - if !once { - once = true - _ = try actualExpression.evaluate() - } - - let actualValue: String - if collector.observedNotifications.isEmpty { - actualValue = "no notifications" - } else { - actualValue = "<\(stringify(collector.observedNotifications))>" - } - - var result = try predicate.satisfies(collectorNotificationsExpression) - result.message = result.message.replacedExpectation { message in - return .expectedCustomValueTo(message.expectedMessage, actualValue) - } - return result - } -} - -public func postNotifications( - _ notificationsMatcher: T, - fromNotificationCenter center: NotificationCenter = .default) - -> Predicate - where T: Matcher, T.ValueType == [Notification] -{ - _ = mainThread // Force lazy-loading of this value - let collector = NotificationCollector(notificationCenter: center) - collector.startObserving() - var once: Bool = false - - return Predicate { actualExpression in - let collectorNotificationsExpression = Expression(memoizedExpression: { _ in - return collector.observedNotifications - }, location: actualExpression.location, withoutCaching: true) - - assert(pthread_equal(mainThread, pthread_self()) != 0, "Only expecting closure to be evaluated on main thread.") - if !once { - once = true - _ = try actualExpression.evaluate() - } - - let failureMessage = FailureMessage() - let match = try notificationsMatcher.matches(collectorNotificationsExpression, failureMessage: failureMessage) - if collector.observedNotifications.isEmpty { - failureMessage.actualValue = "no notifications" - } else { - failureMessage.actualValue = "<\(stringify(collector.observedNotifications))>" - } - return PredicateResult(bool: match, message: failureMessage.toExpectationMessage()) - } -} diff --git a/Pods/Nimble/Sources/Nimble/Matchers/Predicate.swift b/Pods/Nimble/Sources/Nimble/Matchers/Predicate.swift deleted file mode 100644 index 2604411..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/Predicate.swift +++ /dev/null @@ -1,353 +0,0 @@ -// New Matcher API -// -import Foundation - -/// A Predicate is part of the new matcher API that provides assertions to expectations. -/// -/// Given a code snippet: -/// -/// expect(1).to(equal(2)) -/// ^^^^^^^^ -/// Called a "matcher" -/// -/// A matcher consists of two parts a constructor function and the Predicate. The term Predicate -/// is used as a separate name from Matcher to help transition custom matchers to the new Nimble -/// matcher API. -/// -/// The Predicate provide the heavy lifting on how to assert against a given value. Internally, -/// predicates are simple wrappers around closures to provide static type information and -/// allow composition and wrapping of existing behaviors. -public struct Predicate { - fileprivate var matcher: (Expression) throws -> PredicateResult - - /// Constructs a predicate that knows how take a given value - public init(_ matcher: @escaping (Expression) throws -> PredicateResult) { - self.matcher = matcher - } - - /// Uses a predicate on a given value to see if it passes the predicate. - /// - /// @param expression The value to run the predicate's logic against - /// @returns A predicate result indicate passing or failing and an associated error message. - public func satisfies(_ expression: Expression) throws -> PredicateResult { - return try matcher(expression) - } -} - -/// Provides convenience helpers to defining predicates -extension Predicate { - /// Like Predicate() constructor, but automatically guard against nil (actual) values - public static func define(matcher: @escaping (Expression) throws -> PredicateResult) -> Predicate { - return Predicate { actual in - return try matcher(actual) - }.requireNonNil - } - - /// Defines a predicate with a default message that can be returned in the closure - /// Also ensures the predicate's actual value cannot pass with `nil` given. - public static func define(_ msg: String, matcher: @escaping (Expression, ExpectationMessage) throws -> PredicateResult) -> Predicate { - return Predicate { actual in - return try matcher(actual, .expectedActualValueTo(msg)) - }.requireNonNil - } - - /// Defines a predicate with a default message that can be returned in the closure - /// Unlike `define`, this allows nil values to succeed if the given closure chooses to. - public static func defineNilable(_ msg: String, matcher: @escaping (Expression, ExpectationMessage) throws -> PredicateResult) -> Predicate { - return Predicate { actual in - return try matcher(actual, .expectedActualValueTo(msg)) - } - } -} - -extension Predicate { - /// Provides a simple predicate definition that provides no control over the predefined - /// error message. - /// - /// Also ensures the predicate's actual value cannot pass with `nil` given. - public static func simple(_ msg: String, matcher: @escaping (Expression) throws -> PredicateStatus) -> Predicate { - return Predicate { actual in - return PredicateResult(status: try matcher(actual), message: .expectedActualValueTo(msg)) - }.requireNonNil - } - - /// Provides a simple predicate definition that provides no control over the predefined - /// error message. - /// - /// Unlike `simple`, this allows nil values to succeed if the given closure chooses to. - public static func simpleNilable(_ msg: String, matcher: @escaping (Expression) throws -> PredicateStatus) -> Predicate { - return Predicate { actual in - return PredicateResult(status: try matcher(actual), message: .expectedActualValueTo(msg)) - } - } -} - -// The Expectation style intended for comparison to a PredicateStatus. -public enum ExpectationStyle { - case toMatch, toNotMatch -} - -/// The value that a Predicates return to describe if the given (actual) value matches the -/// predicate. -public struct PredicateResult { - /// Status indicates if the predicate matches, does not match, or fails. - public var status: PredicateStatus - /// The error message that can be displayed if it does not match - public var message: ExpectationMessage - - /// Constructs a new PredicateResult with a given status and error message - public init(status: PredicateStatus, message: ExpectationMessage) { - self.status = status - self.message = message - } - - /// Shorthand to PredicateResult(status: PredicateStatus(bool: bool), message: message) - public init(bool: Bool, message: ExpectationMessage) { - self.status = PredicateStatus(bool: bool) - self.message = message - } - - /// Converts the result to a boolean based on what the expectation intended - public func toBoolean(expectation style: ExpectationStyle) -> Bool { - return status.toBoolean(expectation: style) - } -} - -/// PredicateStatus is a trinary that indicates if a Predicate matches a given value or not -public enum PredicateStatus { - /// Matches indicates if the predicate / matcher passes with the given value - /// - /// For example, `equals(1)` returns `.matches` for `expect(1).to(equal(1))`. - case matches - /// DoesNotMatch indicates if the predicate / matcher fails with the given value, but *would* - /// succeed if the expectation was inverted. - /// - /// For example, `equals(2)` returns `.doesNotMatch` for `expect(1).toNot(equal(2))`. - case doesNotMatch - /// Fail indicates the predicate will never satisfy with the given value in any case. - /// A perfect example is that most matchers fail whenever given `nil`. - /// - /// Using `equal(1)` fails both `expect(nil).to(equal(1))` and `expect(nil).toNot(equal(1))`. - /// Note: Predicate's `requireNonNil` property will also provide this feature mostly for free. - /// Your predicate will still need to guard against nils, but error messaging will be - /// handled for you. - case fail - - /// Converts a boolean to either .matches (if true) or .doesNotMatch (if false). - public init(bool matches: Bool) { - if matches { - self = .matches - } else { - self = .doesNotMatch - } - } - - private func shouldMatch() -> Bool { - switch self { - case .matches: return true - case .doesNotMatch, .fail: return false - } - } - - private func shouldNotMatch() -> Bool { - switch self { - case .doesNotMatch: return true - case .matches, .fail: return false - } - } - - /// Converts the PredicateStatus result to a boolean based on what the expectation intended - internal func toBoolean(expectation style: ExpectationStyle) -> Bool { - if style == .toMatch { - return shouldMatch() - } else { - return shouldNotMatch() - } - } -} - -// Backwards compatibility until Old Matcher API removal -extension Predicate: Matcher { - /// Compatibility layer for old Matcher API, deprecated - public static func fromDeprecatedFullClosure(_ matcher: @escaping (Expression, FailureMessage, Bool) throws -> Bool) -> Predicate { - return Predicate { actual in - let failureMessage = FailureMessage() - let result = try matcher(actual, failureMessage, true) - return PredicateResult( - status: PredicateStatus(bool: result), - message: failureMessage.toExpectationMessage() - ) - } - } - - /// Compatibility layer for old Matcher API, deprecated. - /// Emulates the MatcherFunc API - public static func fromDeprecatedClosure(_ matcher: @escaping (Expression, FailureMessage) throws -> Bool) -> Predicate { - return Predicate { actual in - let failureMessage = FailureMessage() - let result = try matcher(actual, failureMessage) - return PredicateResult( - status: PredicateStatus(bool: result), - message: failureMessage.toExpectationMessage() - ) - } - - } - - /// Compatibility layer for old Matcher API, deprecated. - /// Same as calling .predicate on a MatcherFunc or NonNilMatcherFunc type. - public static func fromDeprecatedMatcher(_ matcher: M) -> Predicate where M: Matcher, M.ValueType == T { - return self.fromDeprecatedFullClosure(matcher.toClosure) - } - - /// Deprecated Matcher API, use satisfies(_:_) instead - public func matches(_ actualExpression: Expression, failureMessage: FailureMessage) throws -> Bool { - let result = try satisfies(actualExpression) - result.message.update(failureMessage: failureMessage) - return result.toBoolean(expectation: .toMatch) - } - - /// Deprecated Matcher API, use satisfies(_:_) instead - public func doesNotMatch(_ actualExpression: Expression, failureMessage: FailureMessage) throws -> Bool { - let result = try satisfies(actualExpression) - result.message.update(failureMessage: failureMessage) - return result.toBoolean(expectation: .toNotMatch) - } -} - -extension Predicate { - // Someday, make this public? Needs documentation - internal func after(f: @escaping (Expression, PredicateResult) throws -> PredicateResult) -> Predicate { - // swiftlint:disable:previous identifier_name - return Predicate { actual -> PredicateResult in - let result = try self.satisfies(actual) - return try f(actual, result) - } - } - - /// Returns a new Predicate based on the current one that always fails if nil is given as - /// the actual value. - /// - /// This replaces `NonNilMatcherFunc`. - public var requireNonNil: Predicate { - return after { actual, result in - if try actual.evaluate() == nil { - return PredicateResult( - status: .fail, - message: result.message.appendedBeNilHint() - ) - } - return result - } - } -} - -#if canImport(Darwin) -public typealias PredicateBlock = (_ actualExpression: Expression) throws -> NMBPredicateResult - -public class NMBPredicate: NSObject { - private let predicate: PredicateBlock - - public init(predicate: @escaping PredicateBlock) { - self.predicate = predicate - } - - func satisfies(_ expression: @escaping () throws -> NSObject?, location: SourceLocation) -> NMBPredicateResult { - let expr = Expression(expression: expression, location: location) - do { - return try self.predicate(expr) - } catch let error { - return PredicateResult(status: .fail, message: .fail("unexpected error thrown: <\(error)>")).toObjectiveC() - } - } -} - -extension NMBPredicate: NMBMatcher { - public func matches(_ actualBlock: @escaping () -> NSObject?, failureMessage: FailureMessage, location: SourceLocation) -> Bool { - let result = satisfies(actualBlock, location: location).toSwift() - result.message.update(failureMessage: failureMessage) - return result.status.toBoolean(expectation: .toMatch) - } - - public func doesNotMatch(_ actualBlock: @escaping () -> NSObject?, failureMessage: FailureMessage, location: SourceLocation) -> Bool { - let result = satisfies(actualBlock, location: location).toSwift() - result.message.update(failureMessage: failureMessage) - return result.status.toBoolean(expectation: .toNotMatch) - } -} - -final public class NMBPredicateResult: NSObject { - public var status: NMBPredicateStatus - public var message: NMBExpectationMessage - - public init(status: NMBPredicateStatus, message: NMBExpectationMessage) { - self.status = status - self.message = message - } - - public init(bool success: Bool, message: NMBExpectationMessage) { - self.status = NMBPredicateStatus.from(bool: success) - self.message = message - } - - public func toSwift() -> PredicateResult { - return PredicateResult(status: status.toSwift(), - message: message.toSwift()) - } -} - -extension PredicateResult { - public func toObjectiveC() -> NMBPredicateResult { - return NMBPredicateResult(status: status.toObjectiveC(), message: message.toObjectiveC()) - } -} - -final public class NMBPredicateStatus: NSObject { - private let status: Int - private init(status: Int) { - self.status = status - } - - public static let matches: NMBPredicateStatus = NMBPredicateStatus(status: 0) - public static let doesNotMatch: NMBPredicateStatus = NMBPredicateStatus(status: 1) - public static let fail: NMBPredicateStatus = NMBPredicateStatus(status: 2) - - public override var hash: Int { return self.status.hashValue } - - public override func isEqual(_ object: Any?) -> Bool { - guard let otherPredicate = object as? NMBPredicateStatus else { - return false - } - return self.status == otherPredicate.status - } - - public static func from(status: PredicateStatus) -> NMBPredicateStatus { - switch status { - case .matches: return self.matches - case .doesNotMatch: return self.doesNotMatch - case .fail: return self.fail - } - } - - public static func from(bool success: Bool) -> NMBPredicateStatus { - return self.from(status: PredicateStatus(bool: success)) - } - - public func toSwift() -> PredicateStatus { - switch status { - case NMBPredicateStatus.matches.status: return .matches - case NMBPredicateStatus.doesNotMatch.status: return .doesNotMatch - case NMBPredicateStatus.fail.status: return .fail - default: - internalError("Unhandle status for NMBPredicateStatus") - } - } -} - -extension PredicateStatus { - public func toObjectiveC() -> NMBPredicateStatus { - return NMBPredicateStatus.from(status: self) - } -} - -#endif diff --git a/Pods/Nimble/Sources/Nimble/Matchers/RaisesException.swift b/Pods/Nimble/Sources/Nimble/Matchers/RaisesException.swift deleted file mode 100644 index 4dd9304..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/RaisesException.swift +++ /dev/null @@ -1,213 +0,0 @@ -import Foundation - -// This matcher requires the Objective-C, and being built by Xcode rather than the Swift Package Manager -#if canImport(Darwin) && !SWIFT_PACKAGE - -/// A Nimble matcher that succeeds when the actual expression raises an -/// exception with the specified name, reason, and/or userInfo. -/// -/// Alternatively, you can pass a closure to do any arbitrary custom matching -/// to the raised exception. The closure only gets called when an exception -/// is raised. -/// -/// nil arguments indicates that the matcher should not attempt to match against -/// that parameter. -public func raiseException( - named: String? = nil, - reason: String? = nil, - userInfo: NSDictionary? = nil, - closure: ((NSException) -> Void)? = nil) -> Predicate { - return Predicate { actualExpression in - var exception: NSException? - let capture = NMBExceptionCapture(handler: ({ e in - exception = e - }), finally: nil) - - do { - try capture.tryBlockThrows { - _ = try actualExpression.evaluate() - } - } catch { - return PredicateResult(status: .fail, message: .fail("unexpected error thrown: <\(error)>")) - } - - let failureMessage = FailureMessage() - setFailureMessageForException( - failureMessage, - exception: exception, - named: named, - reason: reason, - userInfo: userInfo, - closure: closure - ) - - let matches = exceptionMatchesNonNilFieldsOrClosure( - exception, - named: named, - reason: reason, - userInfo: userInfo, - closure: closure - ) - return PredicateResult(bool: matches, message: failureMessage.toExpectationMessage()) - } -} - -// swiftlint:disable:next function_parameter_count -internal func setFailureMessageForException( - _ failureMessage: FailureMessage, - exception: NSException?, - named: String?, - reason: String?, - userInfo: NSDictionary?, - closure: ((NSException) -> Void)?) { - failureMessage.postfixMessage = "raise exception" - - if let named = named { - failureMessage.postfixMessage += " with name <\(named)>" - } - if let reason = reason { - failureMessage.postfixMessage += " with reason <\(reason)>" - } - if let userInfo = userInfo { - failureMessage.postfixMessage += " with userInfo <\(userInfo)>" - } - if closure != nil { - failureMessage.postfixMessage += " that satisfies block" - } - if named == nil && reason == nil && userInfo == nil && closure == nil { - failureMessage.postfixMessage = "raise any exception" - } - - if let exception = exception { - // swiftlint:disable:next line_length - failureMessage.actualValue = "\(String(describing: type(of: exception))) { name=\(exception.name), reason='\(stringify(exception.reason))', userInfo=\(stringify(exception.userInfo)) }" - } else { - failureMessage.actualValue = "no exception" - } -} - -internal func exceptionMatchesNonNilFieldsOrClosure( - _ exception: NSException?, - named: String?, - reason: String?, - userInfo: NSDictionary?, - closure: ((NSException) -> Void)?) -> Bool { - var matches = false - - if let exception = exception { - matches = true - - if let named = named, exception.name.rawValue != named { - matches = false - } - if reason != nil && exception.reason != reason { - matches = false - } - if let userInfo = userInfo, let exceptionUserInfo = exception.userInfo, - (exceptionUserInfo as NSDictionary) != userInfo { - matches = false - } - if let closure = closure { - let assertions = gatherFailingExpectations { - closure(exception) - } - let messages = assertions.map { $0.message } - if messages.count > 0 { - matches = false - } - } - } - - return matches -} - -public class NMBObjCRaiseExceptionMatcher: NSObject, NMBMatcher { - // swiftlint:disable identifier_name - internal var _name: String? - internal var _reason: String? - internal var _userInfo: NSDictionary? - internal var _block: ((NSException) -> Void)? - // swiftlint:enable identifier_name - - internal init(name: String?, reason: String?, userInfo: NSDictionary?, block: ((NSException) -> Void)?) { - _name = name - _reason = reason - _userInfo = userInfo - _block = block - } - - @objc public func matches(_ actualBlock: @escaping () -> NSObject?, failureMessage: FailureMessage, location: SourceLocation) -> Bool { - let block: () -> Any? = ({ _ = actualBlock(); return nil }) - let expr = Expression(expression: block, location: location) - - do { - let predicate = raiseException( - named: _name, - reason: _reason, - userInfo: _userInfo, - closure: _block - ) - let result = try predicate.satisfies(expr) - result.message.update(failureMessage: failureMessage) - return result.toBoolean(expectation: .toMatch) - } catch let error { - failureMessage.stringValue = "unexpected error thrown: <\(error)>" - return false - } - } - - @objc public func doesNotMatch(_ actualBlock: @escaping () -> NSObject?, failureMessage: FailureMessage, location: SourceLocation) -> Bool { - return !matches(actualBlock, failureMessage: failureMessage, location: location) - } - - @objc public var named: (_ name: String) -> NMBObjCRaiseExceptionMatcher { - return { name in - return NMBObjCRaiseExceptionMatcher( - name: name, - reason: self._reason, - userInfo: self._userInfo, - block: self._block - ) - } - } - - @objc public var reason: (_ reason: String?) -> NMBObjCRaiseExceptionMatcher { - return { reason in - return NMBObjCRaiseExceptionMatcher( - name: self._name, - reason: reason, - userInfo: self._userInfo, - block: self._block - ) - } - } - - @objc public var userInfo: (_ userInfo: NSDictionary?) -> NMBObjCRaiseExceptionMatcher { - return { userInfo in - return NMBObjCRaiseExceptionMatcher( - name: self._name, - reason: self._reason, - userInfo: userInfo, - block: self._block - ) - } - } - - @objc public var satisfyingBlock: (_ block: ((NSException) -> Void)?) -> NMBObjCRaiseExceptionMatcher { - return { block in - return NMBObjCRaiseExceptionMatcher( - name: self._name, - reason: self._reason, - userInfo: self._userInfo, - block: block - ) - } - } -} - -extension NMBObjCMatcher { - @objc public class func raiseExceptionMatcher() -> NMBObjCRaiseExceptionMatcher { - return NMBObjCRaiseExceptionMatcher(name: nil, reason: nil, userInfo: nil, block: nil) - } -} -#endif diff --git a/Pods/Nimble/Sources/Nimble/Matchers/SatisfyAllOf.swift b/Pods/Nimble/Sources/Nimble/Matchers/SatisfyAllOf.swift deleted file mode 100644 index 15de060..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/SatisfyAllOf.swift +++ /dev/null @@ -1,86 +0,0 @@ -import Foundation - -/// A Nimble matcher that succeeds when the actual value matches with all of the matchers -/// provided in the variable list of matchers. -public func satisfyAllOf(_ predicates: Predicate...) -> Predicate { - return satisfyAllOf(predicates) -} - -/// A Nimble matcher that succeeds when the actual value matches with all of the matchers -/// provided in the variable list of matchers. -public func satisfyAllOf(_ matchers: U...) -> Predicate - where U: Matcher, U.ValueType == T { - return satisfyAllOf(matchers.map { $0.predicate }) -} - -internal func satisfyAllOf(_ predicates: [Predicate]) -> Predicate { - return Predicate.define { actualExpression in - var postfixMessages = [String]() - var matches = true - for predicate in predicates { - let result = try predicate.satisfies(actualExpression) - if result.toBoolean(expectation: .toNotMatch) { - matches = false - } - postfixMessages.append("{\(result.message.expectedMessage)}") - } - - var msg: ExpectationMessage - if let actualValue = try actualExpression.evaluate() { - msg = .expectedCustomValueTo( - "match all of: " + postfixMessages.joined(separator: ", and "), - "\(actualValue)" - ) - } else { - msg = .expectedActualValueTo( - "match all of: " + postfixMessages.joined(separator: ", and ") - ) - } - - return PredicateResult(bool: matches, message: msg) - } -} - -public func && (left: Predicate, right: Predicate) -> Predicate { - return satisfyAllOf(left, right) -} - -#if canImport(Darwin) -extension NMBObjCMatcher { - @objc public class func satisfyAllOfMatcher(_ matchers: [NMBMatcher]) -> NMBPredicate { - return NMBPredicate { actualExpression in - if matchers.isEmpty { - return NMBPredicateResult( - status: NMBPredicateStatus.fail, - message: NMBExpectationMessage( - fail: "satisfyAllOf must be called with at least one matcher" - ) - ) - } - - var elementEvaluators = [Predicate]() - for matcher in matchers { - let elementEvaluator = Predicate { expression in - if let predicate = matcher as? NMBPredicate { - // swiftlint:disable:next line_length - return predicate.satisfies({ try expression.evaluate() }, location: actualExpression.location).toSwift() - } else { - let failureMessage = FailureMessage() - let success = matcher.matches( - // swiftlint:disable:next force_try - { try! expression.evaluate() }, - failureMessage: failureMessage, - location: actualExpression.location - ) - return PredicateResult(bool: success, message: failureMessage.toExpectationMessage()) - } - } - - elementEvaluators.append(elementEvaluator) - } - - return try satisfyAllOf(elementEvaluators).satisfies(actualExpression).toObjectiveC() - } - } -} -#endif diff --git a/Pods/Nimble/Sources/Nimble/Matchers/SatisfyAnyOf.swift b/Pods/Nimble/Sources/Nimble/Matchers/SatisfyAnyOf.swift deleted file mode 100644 index e8b379f..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/SatisfyAnyOf.swift +++ /dev/null @@ -1,94 +0,0 @@ -import Foundation - -/// A Nimble matcher that succeeds when the actual value matches with any of the matchers -/// provided in the variable list of matchers. -public func satisfyAnyOf(_ predicates: Predicate...) -> Predicate { - return satisfyAnyOf(predicates) -} - -/// A Nimble matcher that succeeds when the actual value matches with any of the matchers -/// provided in the variable list of matchers. -public func satisfyAnyOf(_ matchers: U...) -> Predicate - where U: Matcher, U.ValueType == T { - return satisfyAnyOf(matchers.map { $0.predicate }) -} - -internal func satisfyAnyOf(_ predicates: [Predicate]) -> Predicate { - return Predicate.define { actualExpression in - var postfixMessages = [String]() - var matches = false - for predicate in predicates { - let result = try predicate.satisfies(actualExpression) - if result.toBoolean(expectation: .toMatch) { - matches = true - } - postfixMessages.append("{\(result.message.expectedMessage)}") - } - - var msg: ExpectationMessage - if let actualValue = try actualExpression.evaluate() { - msg = .expectedCustomValueTo( - "match one of: " + postfixMessages.joined(separator: ", or "), - "\(actualValue)" - ) - } else { - msg = .expectedActualValueTo( - "match one of: " + postfixMessages.joined(separator: ", or ") - ) - } - - return PredicateResult(bool: matches, message: msg) - } -} - -public func || (left: Predicate, right: Predicate) -> Predicate { - return satisfyAnyOf(left, right) -} - -public func || (left: NonNilMatcherFunc, right: NonNilMatcherFunc) -> Predicate { - return satisfyAnyOf(left, right) -} - -public func || (left: MatcherFunc, right: MatcherFunc) -> Predicate { - return satisfyAnyOf(left, right) -} - -#if canImport(Darwin) -extension NMBObjCMatcher { - @objc public class func satisfyAnyOfMatcher(_ matchers: [NMBMatcher]) -> NMBPredicate { - return NMBPredicate { actualExpression in - if matchers.isEmpty { - return NMBPredicateResult( - status: NMBPredicateStatus.fail, - message: NMBExpectationMessage( - fail: "satisfyAnyOf must be called with at least one matcher" - ) - ) - } - - var elementEvaluators = [Predicate]() - for matcher in matchers { - let elementEvaluator = Predicate { expression in - if let predicate = matcher as? NMBPredicate { - // swiftlint:disable:next line_length - return predicate.satisfies({ try expression.evaluate() }, location: actualExpression.location).toSwift() - } else { - let failureMessage = FailureMessage() - let success = matcher.matches( - // swiftlint:disable:next force_try - { try! expression.evaluate() }, - failureMessage: failureMessage, - location: actualExpression.location - ) - return PredicateResult(bool: success, message: failureMessage.toExpectationMessage()) - } - } - - elementEvaluators.append(elementEvaluator) - } - - return try satisfyAnyOf(elementEvaluators).satisfies(actualExpression).toObjectiveC() - } - } -} -#endif diff --git a/Pods/Nimble/Sources/Nimble/Matchers/ThrowAssertion.swift b/Pods/Nimble/Sources/Nimble/Matchers/ThrowAssertion.swift deleted file mode 100644 index 53d9191..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/ThrowAssertion.swift +++ /dev/null @@ -1,51 +0,0 @@ -import Foundation - -public func throwAssertion() -> Predicate { - return Predicate { actualExpression in - #if arch(x86_64) && canImport(Darwin) && !SWIFT_PACKAGE - let message = ExpectationMessage.expectedTo("throw an assertion") - - var actualError: Error? - let caughtException: BadInstructionException? = catchBadInstruction { - #if os(tvOS) - if !NimbleEnvironment.activeInstance.suppressTVOSAssertionWarning { - print() - print("[Nimble Warning]: If you're getting stuck on a debugger breakpoint for a " + - "fatal error while using throwAssertion(), please disable 'Debug Executable' " + - "in your scheme. Go to 'Edit Scheme > Test > Info' and uncheck " + - "'Debug Executable'. If you've already done that, suppress this warning " + - "by setting `NimbleEnvironment.activeInstance.suppressTVOSAssertionWarning = true`. " + - "This is required because the standard methods of catching assertions " + - "(mach APIs) are unavailable for tvOS. Instead, the same mechanism the " + - "debugger uses is the fallback method for tvOS." - ) - print() - NimbleEnvironment.activeInstance.suppressTVOSAssertionWarning = true - } - #endif - do { - try actualExpression.evaluate() - } catch { - actualError = error - } - } - - if let actualError = actualError { - return PredicateResult( - bool: false, - message: message.appended(message: "; threw error instead <\(actualError)>") - ) - } else { - return PredicateResult(bool: caughtException != nil, message: message) - } - #elseif SWIFT_PACKAGE - fatalError("The throwAssertion Nimble matcher does not currently support Swift CLI." + - " You can silence this error by placing the test case inside an #if !SWIFT_PACKAGE" + - " conditional statement") - #else - fatalError("The throwAssertion Nimble matcher can only run on x86_64 platforms with " + - "Objective-C (e.g. macOS, iPhone 5s or later simulators). You can silence this error " + - "by placing the test case inside an #if arch(x86_64) or canImport(Darwin) conditional statement") - #endif - } -} diff --git a/Pods/Nimble/Sources/Nimble/Matchers/ThrowError.swift b/Pods/Nimble/Sources/Nimble/Matchers/ThrowError.swift deleted file mode 100644 index d294ba3..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/ThrowError.swift +++ /dev/null @@ -1,264 +0,0 @@ -import Foundation - -/// A Nimble matcher that succeeds when the actual expression throws an -/// error of the specified type or from the specified case. -/// -/// Errors are tried to be compared by their implementation of Equatable, -/// otherwise they fallback to comparison by _domain and _code. -/// -/// Alternatively, you can pass a closure to do any arbitrary custom matching -/// to the thrown error. The closure only gets called when an error was thrown. -/// -/// nil arguments indicates that the matcher should not attempt to match against -/// that parameter. -public func throwError() -> Predicate { - return Predicate { actualExpression in - var actualError: Error? - do { - _ = try actualExpression.evaluate() - } catch { - actualError = error - } - - if let actualError = actualError { - return PredicateResult(bool: true, message: .expectedCustomValueTo("throw any error", "<\(actualError)>")) - } else { - return PredicateResult(bool: false, message: .expectedCustomValueTo("throw any error", "no error")) - } - } -} - -/// A Nimble matcher that succeeds when the actual expression throws an -/// error of the specified type or from the specified case. -/// -/// Errors are tried to be compared by their implementation of Equatable, -/// otherwise they fallback to comparision by _domain and _code. -/// -/// Alternatively, you can pass a closure to do any arbitrary custom matching -/// to the thrown error. The closure only gets called when an error was thrown. -/// -/// nil arguments indicates that the matcher should not attempt to match against -/// that parameter. -public func throwError(_ error: T, closure: ((Error) -> Void)? = nil) -> Predicate { - return Predicate { actualExpression in - var actualError: Error? - do { - _ = try actualExpression.evaluate() - } catch { - actualError = error - } - - let failureMessage = FailureMessage() - setFailureMessageForError( - failureMessage, - actualError: actualError, - error: error, - errorType: nil, - closure: closure - ) - - var matches = false - if let actualError = actualError, errorMatchesExpectedError(actualError, expectedError: error) { - matches = true - - if let closure = closure { - let assertions = gatherFailingExpectations { - closure(actualError) - } - let messages = assertions.map { $0.message } - if !messages.isEmpty { - matches = false - } - } - } - - return PredicateResult(bool: matches, message: failureMessage.toExpectationMessage()) - } -} - -/// A Nimble matcher that succeeds when the actual expression throws an -/// error of the specified type or from the specified case. -/// -/// Errors are tried to be compared by their implementation of Equatable, -/// otherwise they fallback to comparision by _domain and _code. -/// -/// Alternatively, you can pass a closure to do any arbitrary custom matching -/// to the thrown error. The closure only gets called when an error was thrown. -/// -/// nil arguments indicates that the matcher should not attempt to match against -/// that parameter. -public func throwError(_ error: T, closure: ((T) -> Void)? = nil) -> Predicate { - return Predicate { actualExpression in - var actualError: Error? - do { - _ = try actualExpression.evaluate() - } catch { - actualError = error - } - - let failureMessage = FailureMessage() - setFailureMessageForError( - failureMessage, - actualError: actualError, - error: error, - errorType: nil, - closure: closure - ) - - var matches = false - if let actualError = actualError as? T, error == actualError { - matches = true - - if let closure = closure { - let assertions = gatherFailingExpectations { - closure(actualError) - } - let messages = assertions.map { $0.message } - if !messages.isEmpty { - matches = false - } - } - } - - return PredicateResult(bool: matches, message: failureMessage.toExpectationMessage()) - } -} - -/// A Nimble matcher that succeeds when the actual expression throws an -/// error of the specified type or from the specified case. -/// -/// Errors are tried to be compared by their implementation of Equatable, -/// otherwise they fallback to comparision by _domain and _code. -/// -/// Alternatively, you can pass a closure to do any arbitrary custom matching -/// to the thrown error. The closure only gets called when an error was thrown. -/// -/// nil arguments indicates that the matcher should not attempt to match against -/// that parameter. -public func throwError( - errorType: T.Type, - closure: ((T) -> Void)? = nil) -> Predicate { - return Predicate { actualExpression in - var actualError: Error? - do { - _ = try actualExpression.evaluate() - } catch { - actualError = error - } - - let failureMessage = FailureMessage() - setFailureMessageForError( - failureMessage, - actualError: actualError, - error: nil, - errorType: errorType, - closure: closure - ) - - var matches = false - if let actualError = actualError { - matches = true - - if let actualError = actualError as? T { - if let closure = closure { - let assertions = gatherFailingExpectations { - closure(actualError) - } - let messages = assertions.map { $0.message } - if !messages.isEmpty { - matches = false - } - } - } else { - matches = (actualError is T) - // The closure expects another ErrorProtocol as argument, so this - // is _supposed_ to fail, so that it becomes more obvious. - if let closure = closure { - let assertions = gatherExpectations { - if let actual = actualError as? T { - closure(actual) - } - } - let messages = assertions.map { $0.message } - if !messages.isEmpty { - matches = false - } - } - } - } - - return PredicateResult(bool: matches, message: failureMessage.toExpectationMessage()) - } -} - -/// A Nimble matcher that succeeds when the actual expression throws any -/// error or when the passed closures' arbitrary custom matching succeeds. -/// -/// This duplication to it's generic adequate is required to allow to receive -/// values of the existential type `Error` in the closure. -/// -/// The closure only gets called when an error was thrown. -public func throwError(closure: @escaping ((Error) -> Void)) -> Predicate { - return Predicate { actualExpression in - var actualError: Error? - do { - _ = try actualExpression.evaluate() - } catch { - actualError = error - } - - let failureMessage = FailureMessage() - setFailureMessageForError(failureMessage, actualError: actualError, closure: closure) - - var matches = false - if let actualError = actualError { - matches = true - - let assertions = gatherFailingExpectations { - closure(actualError) - } - let messages = assertions.map { $0.message } - if !messages.isEmpty { - matches = false - } - } - - return PredicateResult(bool: matches, message: failureMessage.toExpectationMessage()) - } -} - -/// A Nimble matcher that succeeds when the actual expression throws any -/// error or when the passed closures' arbitrary custom matching succeeds. -/// -/// This duplication to it's generic adequate is required to allow to receive -/// values of the existential type `Error` in the closure. -/// -/// The closure only gets called when an error was thrown. -public func throwError(closure: @escaping ((T) -> Void)) -> Predicate { - return Predicate { actualExpression in - var actualError: Error? - do { - _ = try actualExpression.evaluate() - } catch { - actualError = error - } - - let failureMessage = FailureMessage() - setFailureMessageForError(failureMessage, actualError: actualError, closure: closure) - - var matches = false - if let actualError = actualError as? T { - matches = true - - let assertions = gatherFailingExpectations { - closure(actualError) - } - let messages = assertions.map { $0.message } - if !messages.isEmpty { - matches = false - } - } - - return PredicateResult(bool: matches, message: failureMessage.toExpectationMessage()) - } -} diff --git a/Pods/Nimble/Sources/Nimble/Matchers/ToSucceed.swift b/Pods/Nimble/Sources/Nimble/Matchers/ToSucceed.swift deleted file mode 100644 index 01369bb..0000000 --- a/Pods/Nimble/Sources/Nimble/Matchers/ToSucceed.swift +++ /dev/null @@ -1,37 +0,0 @@ -/** - Used by the `toSucceed` matcher. - - This is the return type for the closure. - */ -public enum ToSucceedResult { - case succeeded - case failed(reason: String) -} - -/** - A Nimble matcher that takes in a closure for validation. - - Return `.succeeded` when the validation succeeds. - Return `.failed` with a failure reason when the validation fails. - */ -public func succeed() -> Predicate<() -> ToSucceedResult> { - return Predicate.define { actualExpression in - let optActual = try actualExpression.evaluate() - guard let actual = optActual else { - return PredicateResult(status: .fail, message: .fail("expected a closure, got ")) - } - - switch actual() { - case .succeeded: - return PredicateResult( - bool: true, - message: .expectedCustomValueTo("succeed", "") - ) - case .failed(let reason): - return PredicateResult( - bool: false, - message: .expectedCustomValueTo("succeed", " because <\(reason)>") - ) - } - } -} diff --git a/Pods/Nimble/Sources/Nimble/Nimble.h b/Pods/Nimble/Sources/Nimble/Nimble.h deleted file mode 100644 index 2bbc693..0000000 --- a/Pods/Nimble/Sources/Nimble/Nimble.h +++ /dev/null @@ -1,13 +0,0 @@ -#import -#import "NMBExceptionCapture.h" -#import "NMBStringify.h" -#import "DSL.h" - -#if TARGET_OS_TV - #import "CwlPreconditionTesting_POSIX.h" -#else - #import "CwlPreconditionTesting.h" -#endif - -FOUNDATION_EXPORT double NimbleVersionNumber; -FOUNDATION_EXPORT const unsigned char NimbleVersionString[]; diff --git a/Pods/Nimble/Sources/Nimble/Utils/Await.swift b/Pods/Nimble/Sources/Nimble/Utils/Await.swift deleted file mode 100644 index abe1237..0000000 --- a/Pods/Nimble/Sources/Nimble/Utils/Await.swift +++ /dev/null @@ -1,371 +0,0 @@ -import CoreFoundation -import Dispatch -import Foundation - -#if canImport(CDispatch) - import CDispatch -#endif - -private let timeoutLeeway = DispatchTimeInterval.milliseconds(1) -private let pollLeeway = DispatchTimeInterval.milliseconds(1) - -/// Stores debugging information about callers -internal struct WaitingInfo: CustomStringConvertible { - let name: String - let file: FileString - let lineNumber: UInt - - var description: String { - return "\(name) at \(file):\(lineNumber)" - } -} - -internal protocol WaitLock { - func acquireWaitingLock(_ fnName: String, file: FileString, line: UInt) - func releaseWaitingLock() - func isWaitingLocked() -> Bool -} - -internal class AssertionWaitLock: WaitLock { - private var currentWaiter: WaitingInfo? - init() { } - - func acquireWaitingLock(_ fnName: String, file: FileString, line: UInt) { - let info = WaitingInfo(name: fnName, file: file, lineNumber: line) - let isMainThread = Thread.isMainThread - nimblePrecondition( - isMainThread, - "InvalidNimbleAPIUsage", - "\(fnName) can only run on the main thread." - ) - nimblePrecondition( - currentWaiter == nil, - "InvalidNimbleAPIUsage", - """ - Nested async expectations are not allowed to avoid creating flaky tests. - - The call to - \t\(info) - triggered this exception because - \t\(currentWaiter!) - is currently managing the main run loop. - """ - ) - currentWaiter = info - } - - func isWaitingLocked() -> Bool { - return currentWaiter != nil - } - - func releaseWaitingLock() { - currentWaiter = nil - } -} - -internal enum AwaitResult { - /// Incomplete indicates None (aka - this value hasn't been fulfilled yet) - case incomplete - /// TimedOut indicates the result reached its defined timeout limit before returning - case timedOut - /// BlockedRunLoop indicates the main runloop is too busy processing other blocks to trigger - /// the timeout code. - /// - /// This may also mean the async code waiting upon may have never actually ran within the - /// required time because other timers & sources are running on the main run loop. - case blockedRunLoop - /// The async block successfully executed and returned a given result - case completed(T) - /// When a Swift Error is thrown - case errorThrown(Error) - /// When an Objective-C Exception is raised - case raisedException(NSException) - - func isIncomplete() -> Bool { - switch self { - case .incomplete: return true - default: return false - } - } - - func isCompleted() -> Bool { - switch self { - case .completed: return true - default: return false - } - } -} - -/// Holds the resulting value from an asynchronous expectation. -/// This class is thread-safe at receiving an "response" to this promise. -internal class AwaitPromise { - private(set) internal var asyncResult: AwaitResult = .incomplete - private var signal: DispatchSemaphore - - init() { - signal = DispatchSemaphore(value: 1) - } - - deinit { - signal.signal() - } - - /// Resolves the promise with the given result if it has not been resolved. Repeated calls to - /// this method will resolve in a no-op. - /// - /// @returns a Bool that indicates if the async result was accepted or rejected because another - /// value was received first. - func resolveResult(_ result: AwaitResult) -> Bool { - if signal.wait(timeout: .now()) == .success { - self.asyncResult = result - return true - } else { - return false - } - } -} - -internal struct AwaitTrigger { - let timeoutSource: DispatchSourceTimer - let actionSource: DispatchSourceTimer? - let start: () throws -> Void -} - -/// Factory for building fully configured AwaitPromises and waiting for their results. -/// -/// This factory stores all the state for an async expectation so that Await doesn't -/// doesn't have to manage it. -internal class AwaitPromiseBuilder { - let awaiter: Awaiter - let waitLock: WaitLock - let trigger: AwaitTrigger - let promise: AwaitPromise - - internal init( - awaiter: Awaiter, - waitLock: WaitLock, - promise: AwaitPromise, - trigger: AwaitTrigger) { - self.awaiter = awaiter - self.waitLock = waitLock - self.promise = promise - self.trigger = trigger - } - - func timeout(_ timeoutInterval: TimeInterval, forcefullyAbortTimeout: TimeInterval) -> Self { - // = Discussion = - // - // There's a lot of technical decisions here that is useful to elaborate on. This is - // definitely more lower-level than the previous NSRunLoop based implementation. - // - // - // Why Dispatch Source? - // - // - // We're using a dispatch source to have better control of the run loop behavior. - // A timer source gives us deferred-timing control without having to rely as much on - // a run loop's traditional dispatching machinery (eg - NSTimers, DefaultRunLoopMode, etc.) - // which is ripe for getting corrupted by application code. - // - // And unlike dispatch_async(), we can control how likely our code gets prioritized to - // executed (see leeway parameter) + DISPATCH_TIMER_STRICT. - // - // This timer is assumed to run on the HIGH priority queue to ensure it maintains the - // highest priority over normal application / test code when possible. - // - // - // Run Loop Management - // - // In order to properly interrupt the waiting behavior performed by this factory class, - // this timer stops the main run loop to tell the waiter code that the result should be - // checked. - // - // In addition, stopping the run loop is used to halt code executed on the main run loop. - trigger.timeoutSource.schedule( - deadline: DispatchTime.now() + timeoutInterval, - repeating: .never, - leeway: timeoutLeeway - ) - trigger.timeoutSource.setEventHandler { - guard self.promise.asyncResult.isIncomplete() else { return } - let timedOutSem = DispatchSemaphore(value: 0) - let semTimedOutOrBlocked = DispatchSemaphore(value: 0) - semTimedOutOrBlocked.signal() - let runLoop = CFRunLoopGetMain() - #if canImport(Darwin) - let runLoopMode = CFRunLoopMode.defaultMode.rawValue - #else - let runLoopMode = kCFRunLoopDefaultMode - #endif - CFRunLoopPerformBlock(runLoop, runLoopMode) { - if semTimedOutOrBlocked.wait(timeout: .now()) == .success { - timedOutSem.signal() - semTimedOutOrBlocked.signal() - if self.promise.resolveResult(.timedOut) { - CFRunLoopStop(CFRunLoopGetMain()) - } - } - } - // potentially interrupt blocking code on run loop to let timeout code run - CFRunLoopStop(runLoop) - let now = DispatchTime.now() + forcefullyAbortTimeout - let didNotTimeOut = timedOutSem.wait(timeout: now) != .success - let timeoutWasNotTriggered = semTimedOutOrBlocked.wait(timeout: .now()) == .success - if didNotTimeOut && timeoutWasNotTriggered { - if self.promise.resolveResult(.blockedRunLoop) { - CFRunLoopStop(CFRunLoopGetMain()) - } - } - } - return self - } - - /// Blocks for an asynchronous result. - /// - /// @discussion - /// This function must be executed on the main thread and cannot be nested. This is because - /// this function (and it's related methods) coordinate through the main run loop. Tampering - /// with the run loop can cause undesirable behavior. - /// - /// This method will return an AwaitResult in the following cases: - /// - /// - The main run loop is blocked by other operations and the async expectation cannot be - /// be stopped. - /// - The async expectation timed out - /// - The async expectation succeeded - /// - The async expectation raised an unexpected exception (objc) - /// - The async expectation raised an unexpected error (swift) - /// - /// The returned AwaitResult will NEVER be .incomplete. - func wait(_ fnName: String = #function, file: FileString = #file, line: UInt = #line) -> AwaitResult { - waitLock.acquireWaitingLock( - fnName, - file: file, - line: line) - - let capture = NMBExceptionCapture(handler: ({ exception in - _ = self.promise.resolveResult(.raisedException(exception)) - }), finally: ({ - self.waitLock.releaseWaitingLock() - })) - capture.tryBlock { - do { - try self.trigger.start() - } catch let error { - _ = self.promise.resolveResult(.errorThrown(error)) - } - self.trigger.timeoutSource.resume() - while self.promise.asyncResult.isIncomplete() { - // Stopping the run loop does not work unless we run only 1 mode - #if (swift(>=4.2) && canImport(Darwin)) || compiler(>=5.0) - _ = RunLoop.current.run(mode: .default, before: .distantFuture) - #else - _ = RunLoop.current.run(mode: .defaultRunLoopMode, before: .distantFuture) - #endif - } - - self.trigger.timeoutSource.cancel() - if let asyncSource = self.trigger.actionSource { - asyncSource.cancel() - } - } - - return promise.asyncResult - } -} - -internal class Awaiter { - let waitLock: WaitLock - let timeoutQueue: DispatchQueue - let asyncQueue: DispatchQueue - - internal init( - waitLock: WaitLock, - asyncQueue: DispatchQueue, - timeoutQueue: DispatchQueue) { - self.waitLock = waitLock - self.asyncQueue = asyncQueue - self.timeoutQueue = timeoutQueue - } - - private func createTimerSource(_ queue: DispatchQueue) -> DispatchSourceTimer { - return DispatchSource.makeTimerSource(flags: .strict, queue: queue) - } - - func performBlock( - file: FileString, - line: UInt, - _ closure: @escaping (@escaping (T) -> Void) throws -> Void - ) -> AwaitPromiseBuilder { - let promise = AwaitPromise() - let timeoutSource = createTimerSource(timeoutQueue) - var completionCount = 0 - let trigger = AwaitTrigger(timeoutSource: timeoutSource, actionSource: nil) { - try closure { - completionCount += 1 - if completionCount < 2 { - if promise.resolveResult(.completed($0)) { - CFRunLoopStop(CFRunLoopGetMain()) - } - } else { - fail("waitUntil(..) expects its completion closure to be only called once", - file: file, line: line) - } - } - } - - return AwaitPromiseBuilder( - awaiter: self, - waitLock: waitLock, - promise: promise, - trigger: trigger) - } - - func poll(_ pollInterval: TimeInterval, closure: @escaping () throws -> T?) -> AwaitPromiseBuilder { - let promise = AwaitPromise() - let timeoutSource = createTimerSource(timeoutQueue) - let asyncSource = createTimerSource(asyncQueue) - let trigger = AwaitTrigger(timeoutSource: timeoutSource, actionSource: asyncSource) { - let interval = DispatchTimeInterval.nanoseconds(Int(pollInterval * TimeInterval(NSEC_PER_SEC))) - asyncSource.schedule(deadline: .now(), repeating: interval, leeway: pollLeeway) - asyncSource.setEventHandler { - do { - if let result = try closure() { - if promise.resolveResult(.completed(result)) { - CFRunLoopStop(CFRunLoopGetCurrent()) - } - } - } catch let error { - if promise.resolveResult(.errorThrown(error)) { - CFRunLoopStop(CFRunLoopGetCurrent()) - } - } - } - asyncSource.resume() - } - - return AwaitPromiseBuilder( - awaiter: self, - waitLock: waitLock, - promise: promise, - trigger: trigger) - } -} - -internal func pollBlock( - pollInterval: TimeInterval, - timeoutInterval: TimeInterval, - file: FileString, - line: UInt, - fnName: String = #function, - expression: @escaping () throws -> Bool) -> AwaitResult { - let awaiter = NimbleEnvironment.activeInstance.awaiter - let result = awaiter.poll(pollInterval) { () throws -> Bool? in - if try expression() { - return true - } - return nil - }.timeout(timeoutInterval, forcefullyAbortTimeout: timeoutInterval / 2.0).wait(fnName, file: file, line: line) - - return result -} diff --git a/Pods/Nimble/Sources/Nimble/Utils/Errors.swift b/Pods/Nimble/Sources/Nimble/Utils/Errors.swift deleted file mode 100644 index 074cb20..0000000 --- a/Pods/Nimble/Sources/Nimble/Utils/Errors.swift +++ /dev/null @@ -1,59 +0,0 @@ -import Foundation - -// Generic - -internal func setFailureMessageForError( - _ failureMessage: FailureMessage, - postfixMessageVerb: String = "throw", - actualError: Error?, - error: T? = nil, - errorType: T.Type? = nil, - closure: ((T) -> Void)? = nil) { - failureMessage.postfixMessage = "\(postfixMessageVerb) error" - - if let error = error { - failureMessage.postfixMessage += " <\(error)>" - } else if errorType != nil || closure != nil { - failureMessage.postfixMessage += " from type <\(T.self)>" - } - if closure != nil { - failureMessage.postfixMessage += " that satisfies block" - } - if error == nil && errorType == nil && closure == nil { - failureMessage.postfixMessage = "\(postfixMessageVerb) any error" - } - - if let actualError = actualError { - failureMessage.actualValue = "<\(actualError)>" - } else { - failureMessage.actualValue = "no error" - } -} - -internal func errorMatchesExpectedError( - _ actualError: Error, - expectedError: T) -> Bool { - return actualError._domain == expectedError._domain - && actualError._code == expectedError._code -} - -// Non-generic - -internal func setFailureMessageForError( - _ failureMessage: FailureMessage, - actualError: Error?, - closure: ((Error) -> Void)?) { - failureMessage.postfixMessage = "throw error" - - if closure != nil { - failureMessage.postfixMessage += " that satisfies block" - } else { - failureMessage.postfixMessage = "throw any error" - } - - if let actualError = actualError { - failureMessage.actualValue = "<\(actualError)>" - } else { - failureMessage.actualValue = "no error" - } -} diff --git a/Pods/Nimble/Sources/Nimble/Utils/Functional.swift b/Pods/Nimble/Sources/Nimble/Utils/Functional.swift deleted file mode 100644 index c87af76..0000000 --- a/Pods/Nimble/Sources/Nimble/Utils/Functional.swift +++ /dev/null @@ -1,14 +0,0 @@ -import Foundation - -#if !swift(>=4.2) -extension Sequence { - internal func allSatisfy(_ predicate: (Element) throws -> Bool) rethrows -> Bool { - for item in self { - if try !predicate(item) { - return false - } - } - return true - } -} -#endif diff --git a/Pods/Nimble/Sources/Nimble/Utils/SourceLocation.swift b/Pods/Nimble/Sources/Nimble/Utils/SourceLocation.swift deleted file mode 100644 index 4e37aef..0000000 --- a/Pods/Nimble/Sources/Nimble/Utils/SourceLocation.swift +++ /dev/null @@ -1,31 +0,0 @@ -import Foundation - -// Ideally we would always use `StaticString` as the type for tracking the file name -// that expectations originate from, for consistency with `assert` etc. from the -// stdlib, and because recent versions of the XCTest overlay require `StaticString` -// when calling `XCTFail`. Under the Objective-C runtime (i.e. building on Mac), we -// have to use `String` instead because StaticString can't be generated from Objective-C -#if SWIFT_PACKAGE -public typealias FileString = StaticString -#else -public typealias FileString = String -#endif - -public final class SourceLocation: NSObject { - public let file: FileString - public let line: UInt - - override init() { - file = "Unknown File" - line = 0 - } - - init(file: FileString, line: UInt) { - self.file = file - self.line = line - } - - override public var description: String { - return "\(file):\(line)" - } -} diff --git a/Pods/Nimble/Sources/Nimble/Utils/Stringers.swift b/Pods/Nimble/Sources/Nimble/Utils/Stringers.swift deleted file mode 100644 index 7caea26..0000000 --- a/Pods/Nimble/Sources/Nimble/Utils/Stringers.swift +++ /dev/null @@ -1,196 +0,0 @@ -import Foundation - -internal func identityAsString(_ value: Any?) -> String { - let anyObject = value as AnyObject? - if let value = anyObject { - return NSString(format: "<%p>", unsafeBitCast(value, to: Int.self)).description - } else { - return "nil" - } -} - -internal func arrayAsString(_ items: [T], joiner: String = ", ") -> String { - return items.reduce("") { accum, item in - let prefix = (accum.isEmpty ? "" : joiner) - return accum + prefix + "\(stringify(item))" - } -} - -/// A type with a customized test output text representation. -/// -/// This textual representation is produced when values will be -/// printed in test runs, and may be useful when producing -/// error messages in custom matchers. -/// -/// - SeeAlso: `CustomDebugStringConvertible` -public protocol TestOutputStringConvertible { - var testDescription: String { get } -} - -extension Double: TestOutputStringConvertible { - public var testDescription: String { - return NSNumber(value: self).testDescription - } -} - -extension Float: TestOutputStringConvertible { - public var testDescription: String { - return NSNumber(value: self).testDescription - } -} - -extension NSNumber: TestOutputStringConvertible { - // This is using `NSString(format:)` instead of - // `String(format:)` because the latter somehow breaks - // the travis CI build on linux. - public var testDescription: String { - let description = self.description - - if description.contains(".") { - // Travis linux swiftpm build doesn't like casting String to NSString, - // which is why this annoying nested initializer thing is here. - // Maybe this will change in a future snapshot. - let decimalPlaces = NSString(string: NSString(string: description) - .components(separatedBy: ".")[1]) - - // SeeAlso: https://bugs.swift.org/browse/SR-1464 - switch decimalPlaces.length { - case 1: - return NSString(format: "%0.1f", self.doubleValue).description - case 2: - return NSString(format: "%0.2f", self.doubleValue).description - case 3: - return NSString(format: "%0.3f", self.doubleValue).description - default: - return NSString(format: "%0.4f", self.doubleValue).description - } - } - return self.description - } -} - -extension Array: TestOutputStringConvertible { - public var testDescription: String { - let list = self.map(Nimble.stringify).joined(separator: ", ") - return "[\(list)]" - } -} - -extension AnySequence: TestOutputStringConvertible { - public var testDescription: String { - let generator = self.makeIterator() - var strings = [String]() - var value: AnySequence.Iterator.Element? - - repeat { - value = generator.next() - if let value = value { - strings.append(stringify(value)) - } - } while value != nil - - let list = strings.joined(separator: ", ") - return "[\(list)]" - } -} - -extension NSArray: TestOutputStringConvertible { - public var testDescription: String { - let list = Array(self).map(Nimble.stringify).joined(separator: ", ") - return "(\(list))" - } -} - -extension NSIndexSet: TestOutputStringConvertible { - public var testDescription: String { - let list = Array(self).map(Nimble.stringify).joined(separator: ", ") - return "(\(list))" - } -} - -extension String: TestOutputStringConvertible { - public var testDescription: String { - return self - } -} - -extension Data: TestOutputStringConvertible { - public var testDescription: String { - return "Data" - } -} - -/// -/// Returns a string appropriate for displaying in test output -/// from the provided value. -/// -/// - parameter value: A value that will show up in a test's output. -/// -/// - returns: The string that is returned can be -/// customized per type by conforming a type to the `TestOutputStringConvertible` -/// protocol. When stringifying a non-`TestOutputStringConvertible` type, this -/// function will return the value's debug description and then its -/// normal description if available and in that order. Otherwise it -/// will return the result of constructing a string from the value. -/// -/// - SeeAlso: `TestOutputStringConvertible` -public func stringify(_ value: T?) -> String { - guard let value = value else { return "nil" } - - if let value = value as? TestOutputStringConvertible { - return value.testDescription - } - - if let value = value as? CustomDebugStringConvertible { - return value.debugDescription - } - - return String(describing: value) -} - -#if canImport(Darwin) -@objc public class NMBStringer: NSObject { - @objc public class func stringify(_ obj: Any?) -> String { - return Nimble.stringify(obj) - } -} -#endif - -// MARK: Collection Type Stringers - -/// Attempts to generate a pretty type string for a given value. If the value is of a Objective-C -/// collection type, or a subclass thereof, (e.g. `NSArray`, `NSDictionary`, etc.). -/// This function will return the type name of the root class of the class cluster for better -/// readability (e.g. `NSArray` instead of `__NSArrayI`). -/// -/// For values that don't have a type of an Objective-C collection, this function returns the -/// default type description. -/// -/// - parameter value: A value that will be used to determine a type name. -/// -/// - returns: The name of the class cluster root class for Objective-C collection types, or the -/// the `dynamicType` of the value for values of any other type. -public func prettyCollectionType(_ value: T) -> String { - switch value { - case is NSArray: - return String(describing: NSArray.self) - case is NSDictionary: - return String(describing: NSDictionary.self) - case is NSSet: - return String(describing: NSSet.self) - case is NSIndexSet: - return String(describing: NSIndexSet.self) - default: - return String(describing: value) - } -} - -/// Returns the type name for a given collection type. This overload is used by Swift -/// collection types. -/// -/// - parameter collection: A Swift `CollectionType` value. -/// -/// - returns: A string representing the `dynamicType` of the value. -public func prettyCollectionType(_ collection: T) -> String { - return String(describing: type(of: collection)) -} diff --git a/Pods/Nimble/Sources/NimbleObjectiveC/DSL.h b/Pods/Nimble/Sources/NimbleObjectiveC/DSL.h deleted file mode 100644 index 9170541..0000000 --- a/Pods/Nimble/Sources/NimbleObjectiveC/DSL.h +++ /dev/null @@ -1,389 +0,0 @@ -#import - -@class NMBExpectation; -@class NMBObjCBeCloseToMatcher; -@class NMBObjCRaiseExceptionMatcher; -@protocol NMBMatcher; - - -NS_ASSUME_NONNULL_BEGIN - - -#define NIMBLE_OVERLOADABLE __attribute__((overloadable)) -#define NIMBLE_EXPORT FOUNDATION_EXPORT -#define NIMBLE_EXPORT_INLINE FOUNDATION_STATIC_INLINE - -#define NIMBLE_VALUE_OF(VAL) ({ \ - __typeof__((VAL)) val = (VAL); \ - [NSValue valueWithBytes:&val objCType:@encode(__typeof__((VAL)))]; \ -}) - -#ifdef NIMBLE_DISABLE_SHORT_SYNTAX -#define NIMBLE_SHORT(PROTO, ORIGINAL) -#define NIMBLE_SHORT_OVERLOADED(PROTO, ORIGINAL) -#else -#define NIMBLE_SHORT(PROTO, ORIGINAL) FOUNDATION_STATIC_INLINE PROTO { return (ORIGINAL); } -#define NIMBLE_SHORT_OVERLOADED(PROTO, ORIGINAL) FOUNDATION_STATIC_INLINE NIMBLE_OVERLOADABLE PROTO { return (ORIGINAL); } -#endif - - - -#define DEFINE_NMB_EXPECT_OVERLOAD(TYPE, EXPR) \ - NIMBLE_EXPORT_INLINE NIMBLE_OVERLOADABLE \ - NMBExpectation *NMB_expect(TYPE(^actualBlock)(void), NSString *file, NSUInteger line) { \ - return NMB_expect(^id { return EXPR; }, file, line); \ - } - - NIMBLE_EXPORT NIMBLE_OVERLOADABLE - NMBExpectation *NMB_expect(id(^actualBlock)(void), NSString *file, NSUInteger line); - - // overloaded dispatch for nils - expect(nil) - DEFINE_NMB_EXPECT_OVERLOAD(void*, nil) - DEFINE_NMB_EXPECT_OVERLOAD(NSRange, NIMBLE_VALUE_OF(actualBlock())) - DEFINE_NMB_EXPECT_OVERLOAD(long, @(actualBlock())) - DEFINE_NMB_EXPECT_OVERLOAD(unsigned long, @(actualBlock())) - DEFINE_NMB_EXPECT_OVERLOAD(int, @(actualBlock())) - DEFINE_NMB_EXPECT_OVERLOAD(unsigned int, @(actualBlock())) - DEFINE_NMB_EXPECT_OVERLOAD(float, @(actualBlock())) - DEFINE_NMB_EXPECT_OVERLOAD(double, @(actualBlock())) - DEFINE_NMB_EXPECT_OVERLOAD(long long, @(actualBlock())) - DEFINE_NMB_EXPECT_OVERLOAD(unsigned long long, @(actualBlock())) - DEFINE_NMB_EXPECT_OVERLOAD(char, @(actualBlock())) - DEFINE_NMB_EXPECT_OVERLOAD(unsigned char, @(actualBlock())) - // bool doesn't get the compiler to dispatch to BOOL types, but using BOOL here seems to allow - // the compiler to dispatch to bool. - DEFINE_NMB_EXPECT_OVERLOAD(BOOL, @(actualBlock())) - DEFINE_NMB_EXPECT_OVERLOAD(char *, @(actualBlock())) - - -#undef DEFINE_NMB_EXPECT_OVERLOAD - - - -NIMBLE_EXPORT NMBExpectation *NMB_expectAction(void(^actualBlock)(void), NSString *file, NSUInteger line); - - - -#define DEFINE_OVERLOAD(TYPE, EXPR) \ - NIMBLE_EXPORT_INLINE NIMBLE_OVERLOADABLE \ - id NMB_equal(TYPE expectedValue) { \ - return NMB_equal((EXPR)); \ - } \ - NIMBLE_SHORT_OVERLOADED(id equal(TYPE expectedValue), NMB_equal(expectedValue)); - - - NIMBLE_EXPORT NIMBLE_OVERLOADABLE - id NMB_equal(__nullable id expectedValue); - - NIMBLE_SHORT_OVERLOADED(id equal(__nullable id expectedValue), - NMB_equal(expectedValue)); - - // overloaded dispatch for nils - expect(nil) - DEFINE_OVERLOAD(void*__nullable, (id)nil) - DEFINE_OVERLOAD(NSRange, NIMBLE_VALUE_OF(expectedValue)) - DEFINE_OVERLOAD(long, @(expectedValue)) - DEFINE_OVERLOAD(unsigned long, @(expectedValue)) - DEFINE_OVERLOAD(int, @(expectedValue)) - DEFINE_OVERLOAD(unsigned int, @(expectedValue)) - DEFINE_OVERLOAD(float, @(expectedValue)) - DEFINE_OVERLOAD(double, @(expectedValue)) - DEFINE_OVERLOAD(long long, @(expectedValue)) - DEFINE_OVERLOAD(unsigned long long, @(expectedValue)) - DEFINE_OVERLOAD(char, @(expectedValue)) - DEFINE_OVERLOAD(unsigned char, @(expectedValue)) - // bool doesn't get the compiler to dispatch to BOOL types, but using BOOL here seems to allow - // the compiler to dispatch to bool. - DEFINE_OVERLOAD(BOOL, @(expectedValue)) - DEFINE_OVERLOAD(char *, @(expectedValue)) - -#undef DEFINE_OVERLOAD - - -#define DEFINE_OVERLOAD(TYPE, EXPR) \ - NIMBLE_EXPORT_INLINE NIMBLE_OVERLOADABLE \ - id NMB_haveCount(TYPE expectedValue) { \ - return NMB_haveCount((EXPR)); \ - } \ - NIMBLE_SHORT_OVERLOADED(id haveCount(TYPE expectedValue), \ - NMB_haveCount(expectedValue)); - - - NIMBLE_EXPORT NIMBLE_OVERLOADABLE - id NMB_haveCount(id expectedValue); - - NIMBLE_SHORT_OVERLOADED(id haveCount(id expectedValue), - NMB_haveCount(expectedValue)); - - DEFINE_OVERLOAD(long, @(expectedValue)) - DEFINE_OVERLOAD(unsigned long, @(expectedValue)) - DEFINE_OVERLOAD(int, @(expectedValue)) - DEFINE_OVERLOAD(unsigned int, @(expectedValue)) - DEFINE_OVERLOAD(long long, @(expectedValue)) - DEFINE_OVERLOAD(unsigned long long, @(expectedValue)) - DEFINE_OVERLOAD(char, @(expectedValue)) - DEFINE_OVERLOAD(unsigned char, @(expectedValue)) - -#undef DEFINE_OVERLOAD - -#define DEFINE_OVERLOAD(TYPE, EXPR) \ - NIMBLE_EXPORT_INLINE NIMBLE_OVERLOADABLE \ - NMBObjCBeCloseToMatcher *NMB_beCloseTo(TYPE expectedValue) { \ - return NMB_beCloseTo((NSNumber *)(EXPR)); \ - } \ - NIMBLE_SHORT_OVERLOADED(NMBObjCBeCloseToMatcher *beCloseTo(TYPE expectedValue), \ - NMB_beCloseTo(expectedValue)); - - NIMBLE_EXPORT NIMBLE_OVERLOADABLE NMBObjCBeCloseToMatcher *NMB_beCloseTo(NSNumber *expectedValue); - NIMBLE_SHORT_OVERLOADED(NMBObjCBeCloseToMatcher *beCloseTo(NSNumber *expectedValue), - NMB_beCloseTo(expectedValue)); - - // it would be better to only overload float & double, but zero becomes ambigious - - DEFINE_OVERLOAD(long, @(expectedValue)) - DEFINE_OVERLOAD(unsigned long, @(expectedValue)) - DEFINE_OVERLOAD(int, @(expectedValue)) - DEFINE_OVERLOAD(unsigned int, @(expectedValue)) - DEFINE_OVERLOAD(float, @(expectedValue)) - DEFINE_OVERLOAD(double, @(expectedValue)) - DEFINE_OVERLOAD(long long, @(expectedValue)) - DEFINE_OVERLOAD(unsigned long long, @(expectedValue)) - DEFINE_OVERLOAD(char, @(expectedValue)) - DEFINE_OVERLOAD(unsigned char, @(expectedValue)) - -#undef DEFINE_OVERLOAD - -NIMBLE_EXPORT id NMB_beAnInstanceOf(Class expectedClass); -NIMBLE_EXPORT_INLINE id beAnInstanceOf(Class expectedClass) { - return NMB_beAnInstanceOf(expectedClass); -} - -NIMBLE_EXPORT id NMB_beAKindOf(Class expectedClass); -NIMBLE_EXPORT_INLINE id beAKindOf(Class expectedClass) { - return NMB_beAKindOf(expectedClass); -} - -NIMBLE_EXPORT id NMB_beginWith(id itemElementOrSubstring); -NIMBLE_EXPORT_INLINE id beginWith(id itemElementOrSubstring) { - return NMB_beginWith(itemElementOrSubstring); -} - -#define DEFINE_OVERLOAD(TYPE, EXPR) \ - NIMBLE_EXPORT_INLINE NIMBLE_OVERLOADABLE \ - id NMB_beGreaterThan(TYPE expectedValue) { \ - return NMB_beGreaterThan((EXPR)); \ - } \ - NIMBLE_SHORT_OVERLOADED(id beGreaterThan(TYPE expectedValue), NMB_beGreaterThan(expectedValue)); - - NIMBLE_EXPORT NIMBLE_OVERLOADABLE - id NMB_beGreaterThan(NSNumber *expectedValue); - - NIMBLE_EXPORT_INLINE NIMBLE_OVERLOADABLE - id beGreaterThan(NSNumber *expectedValue) { - return NMB_beGreaterThan(expectedValue); - } - - DEFINE_OVERLOAD(long, @(expectedValue)) - DEFINE_OVERLOAD(unsigned long, @(expectedValue)) - DEFINE_OVERLOAD(int, @(expectedValue)) - DEFINE_OVERLOAD(unsigned int, @(expectedValue)) - DEFINE_OVERLOAD(float, @(expectedValue)) - DEFINE_OVERLOAD(double, @(expectedValue)) - DEFINE_OVERLOAD(long long, @(expectedValue)) - DEFINE_OVERLOAD(unsigned long long, @(expectedValue)) - DEFINE_OVERLOAD(char, @(expectedValue)) - DEFINE_OVERLOAD(unsigned char, @(expectedValue)) - -#undef DEFINE_OVERLOAD - -#define DEFINE_OVERLOAD(TYPE, EXPR) \ - NIMBLE_EXPORT_INLINE NIMBLE_OVERLOADABLE \ - id NMB_beGreaterThanOrEqualTo(TYPE expectedValue) { \ - return NMB_beGreaterThanOrEqualTo((EXPR)); \ - } \ - NIMBLE_SHORT_OVERLOADED(id beGreaterThanOrEqualTo(TYPE expectedValue), \ - NMB_beGreaterThanOrEqualTo(expectedValue)); - - NIMBLE_EXPORT NIMBLE_OVERLOADABLE - id NMB_beGreaterThanOrEqualTo(NSNumber *expectedValue); - - NIMBLE_EXPORT_INLINE NIMBLE_OVERLOADABLE - id beGreaterThanOrEqualTo(NSNumber *expectedValue) { - return NMB_beGreaterThanOrEqualTo(expectedValue); - } - - DEFINE_OVERLOAD(long, @(expectedValue)) - DEFINE_OVERLOAD(unsigned long, @(expectedValue)) - DEFINE_OVERLOAD(int, @(expectedValue)) - DEFINE_OVERLOAD(unsigned int, @(expectedValue)) - DEFINE_OVERLOAD(float, @(expectedValue)) - DEFINE_OVERLOAD(double, @(expectedValue)) - DEFINE_OVERLOAD(long long, @(expectedValue)) - DEFINE_OVERLOAD(unsigned long long, @(expectedValue)) - DEFINE_OVERLOAD(char, @(expectedValue)) - DEFINE_OVERLOAD(unsigned char, @(expectedValue)) - - -#undef DEFINE_OVERLOAD - -NIMBLE_EXPORT id NMB_beIdenticalTo(id expectedInstance); -NIMBLE_SHORT(id beIdenticalTo(id expectedInstance), - NMB_beIdenticalTo(expectedInstance)); - -NIMBLE_EXPORT id NMB_be(id expectedInstance); -NIMBLE_SHORT(id be(id expectedInstance), - NMB_be(expectedInstance)); - - -#define DEFINE_OVERLOAD(TYPE, EXPR) \ - NIMBLE_EXPORT_INLINE NIMBLE_OVERLOADABLE \ - id NMB_beLessThan(TYPE expectedValue) { \ - return NMB_beLessThan((EXPR)); \ - } \ - NIMBLE_SHORT_OVERLOADED(id beLessThan(TYPE expectedValue), \ - NMB_beLessThan(expectedValue)); - - NIMBLE_EXPORT NIMBLE_OVERLOADABLE - id NMB_beLessThan(NSNumber *expectedValue); - - NIMBLE_EXPORT_INLINE NIMBLE_OVERLOADABLE - id beLessThan(NSNumber *expectedValue) { - return NMB_beLessThan(expectedValue); - } - - DEFINE_OVERLOAD(long, @(expectedValue)) - DEFINE_OVERLOAD(unsigned long, @(expectedValue)) - DEFINE_OVERLOAD(int, @(expectedValue)) - DEFINE_OVERLOAD(unsigned int, @(expectedValue)) - DEFINE_OVERLOAD(float, @(expectedValue)) - DEFINE_OVERLOAD(double, @(expectedValue)) - DEFINE_OVERLOAD(long long, @(expectedValue)) - DEFINE_OVERLOAD(unsigned long long, @(expectedValue)) - DEFINE_OVERLOAD(char, @(expectedValue)) - DEFINE_OVERLOAD(unsigned char, @(expectedValue)) - -#undef DEFINE_OVERLOAD - - -#define DEFINE_OVERLOAD(TYPE, EXPR) \ - NIMBLE_EXPORT_INLINE NIMBLE_OVERLOADABLE \ - id NMB_beLessThanOrEqualTo(TYPE expectedValue) { \ - return NMB_beLessThanOrEqualTo((EXPR)); \ - } \ - NIMBLE_SHORT_OVERLOADED(id beLessThanOrEqualTo(TYPE expectedValue), \ - NMB_beLessThanOrEqualTo(expectedValue)); - - - NIMBLE_EXPORT NIMBLE_OVERLOADABLE - id NMB_beLessThanOrEqualTo(NSNumber *expectedValue); - - NIMBLE_EXPORT_INLINE NIMBLE_OVERLOADABLE - id beLessThanOrEqualTo(NSNumber *expectedValue) { - return NMB_beLessThanOrEqualTo(expectedValue); - } - - DEFINE_OVERLOAD(long, @(expectedValue)) - DEFINE_OVERLOAD(unsigned long, @(expectedValue)) - DEFINE_OVERLOAD(int, @(expectedValue)) - DEFINE_OVERLOAD(unsigned int, @(expectedValue)) - DEFINE_OVERLOAD(float, @(expectedValue)) - DEFINE_OVERLOAD(double, @(expectedValue)) - DEFINE_OVERLOAD(long long, @(expectedValue)) - DEFINE_OVERLOAD(unsigned long long, @(expectedValue)) - DEFINE_OVERLOAD(char, @(expectedValue)) - DEFINE_OVERLOAD(unsigned char, @(expectedValue)) - -#undef DEFINE_OVERLOAD - -NIMBLE_EXPORT id NMB_beTruthy(void); -NIMBLE_SHORT(id beTruthy(void), - NMB_beTruthy()); - -NIMBLE_EXPORT id NMB_beFalsy(void); -NIMBLE_SHORT(id beFalsy(void), - NMB_beFalsy()); - -NIMBLE_EXPORT id NMB_beTrue(void); -NIMBLE_SHORT(id beTrue(void), - NMB_beTrue()); - -NIMBLE_EXPORT id NMB_beFalse(void); -NIMBLE_SHORT(id beFalse(void), - NMB_beFalse()); - -NIMBLE_EXPORT id NMB_beNil(void); -NIMBLE_SHORT(id beNil(void), - NMB_beNil()); - -NIMBLE_EXPORT id NMB_beEmpty(void); -NIMBLE_SHORT(id beEmpty(void), - NMB_beEmpty()); - -NIMBLE_EXPORT id NMB_containWithNilTermination(id itemOrSubstring, ...) NS_REQUIRES_NIL_TERMINATION; -#define NMB_contain(...) NMB_containWithNilTermination(__VA_ARGS__, nil) -#ifndef NIMBLE_DISABLE_SHORT_SYNTAX -#define contain(...) NMB_contain(__VA_ARGS__) -#endif - -NIMBLE_EXPORT id NMB_containElementSatisfying(BOOL(^predicate)(id)); -NIMBLE_SHORT(id containElementSatisfying(BOOL(^predicate)(id)), - NMB_containElementSatisfying(predicate)); - -NIMBLE_EXPORT id NMB_endWith(id itemElementOrSubstring); -NIMBLE_SHORT(id endWith(id itemElementOrSubstring), - NMB_endWith(itemElementOrSubstring)); - -NIMBLE_EXPORT NMBObjCRaiseExceptionMatcher *NMB_raiseException(void); -NIMBLE_SHORT(NMBObjCRaiseExceptionMatcher *raiseException(void), - NMB_raiseException()); - -NIMBLE_EXPORT id NMB_match(id expectedValue); -NIMBLE_SHORT(id match(id expectedValue), - NMB_match(expectedValue)); - -NIMBLE_EXPORT id NMB_allPass(id matcher); -NIMBLE_SHORT(id allPass(id matcher), - NMB_allPass(matcher)); - -NIMBLE_EXPORT id NMB_satisfyAnyOfWithMatchers(id matchers); -#define NMB_satisfyAnyOf(...) NMB_satisfyAnyOfWithMatchers(@[__VA_ARGS__]) -#ifndef NIMBLE_DISABLE_SHORT_SYNTAX -#define satisfyAnyOf(...) NMB_satisfyAnyOf(__VA_ARGS__) -#endif - -NIMBLE_EXPORT id NMB_satisfyAllOfWithMatchers(id matchers); -#define NMB_satisfyAllOf(...) NMB_satisfyAllOfWithMatchers(@[__VA_ARGS__]) -#ifndef NIMBLE_DISABLE_SHORT_SYNTAX -#define satisfyAllOf(...) NMB_satisfyAllOf(__VA_ARGS__) -#endif - -// In order to preserve breakpoint behavior despite using macros to fill in __FILE__ and __LINE__, -// define a builder that populates __FILE__ and __LINE__, and returns a block that takes timeout -// and action arguments. See https://github.com/Quick/Quick/pull/185 for details. -typedef void (^NMBWaitUntilTimeoutBlock)(NSTimeInterval timeout, void (^action)(void (^)(void))); -typedef void (^NMBWaitUntilBlock)(void (^action)(void (^)(void))); - -NIMBLE_EXPORT void NMB_failWithMessage(NSString *msg, NSString *file, NSUInteger line); - -NIMBLE_EXPORT NMBWaitUntilTimeoutBlock NMB_waitUntilTimeoutBuilder(NSString *file, NSUInteger line); -NIMBLE_EXPORT NMBWaitUntilBlock NMB_waitUntilBuilder(NSString *file, NSUInteger line); - -NIMBLE_EXPORT void NMB_failWithMessage(NSString *msg, NSString *file, NSUInteger line); - -#define NMB_waitUntilTimeout NMB_waitUntilTimeoutBuilder(@(__FILE__), __LINE__) -#define NMB_waitUntil NMB_waitUntilBuilder(@(__FILE__), __LINE__) - -#ifndef NIMBLE_DISABLE_SHORT_SYNTAX -#define expect(...) NMB_expect(^{ return (__VA_ARGS__); }, @(__FILE__), __LINE__) -#define expectAction(BLOCK) NMB_expectAction((BLOCK), @(__FILE__), __LINE__) -#define failWithMessage(msg) NMB_failWithMessage(msg, @(__FILE__), __LINE__) -#define fail() failWithMessage(@"fail() always fails") - - -#define waitUntilTimeout NMB_waitUntilTimeout -#define waitUntil NMB_waitUntil - -#undef NIMBLE_VALUE_OF - -#endif - -NS_ASSUME_NONNULL_END diff --git a/Pods/Nimble/Sources/NimbleObjectiveC/DSL.m b/Pods/Nimble/Sources/NimbleObjectiveC/DSL.m deleted file mode 100644 index 670415b..0000000 --- a/Pods/Nimble/Sources/NimbleObjectiveC/DSL.m +++ /dev/null @@ -1,161 +0,0 @@ -#import - -#if __has_include("Nimble-Swift.h") -#import "Nimble-Swift.h" -#else -#import -#endif - - -NS_ASSUME_NONNULL_BEGIN - - -NIMBLE_EXPORT NIMBLE_OVERLOADABLE NMBExpectation *__nonnull NMB_expect(id __nullable(^actualBlock)(void), NSString *__nonnull file, NSUInteger line) { - return [[NMBExpectation alloc] initWithActualBlock:actualBlock - negative:NO - file:file - line:line]; -} - -NIMBLE_EXPORT NMBExpectation *NMB_expectAction(void(^actualBlock)(void), NSString *file, NSUInteger line) { - return NMB_expect(^id{ - actualBlock(); - return nil; - }, file, line); -} - -NIMBLE_EXPORT void NMB_failWithMessage(NSString *msg, NSString *file, NSUInteger line) { - return [NMBExpectation failWithMessage:msg file:file line:line]; -} - -NIMBLE_EXPORT id NMB_beAnInstanceOf(Class expectedClass) { - return [NMBObjCMatcher beAnInstanceOfMatcher:expectedClass]; -} - -NIMBLE_EXPORT id NMB_beAKindOf(Class expectedClass) { - return [NMBObjCMatcher beAKindOfMatcher:expectedClass]; -} - -NIMBLE_EXPORT NIMBLE_OVERLOADABLE NMBObjCBeCloseToMatcher *NMB_beCloseTo(NSNumber *expectedValue) { - return [NMBObjCMatcher beCloseToMatcher:expectedValue within:0.001]; -} - -NIMBLE_EXPORT id NMB_beginWith(id itemElementOrSubstring) { - return [NMBObjCMatcher beginWithMatcher:itemElementOrSubstring]; -} - -NIMBLE_EXPORT NIMBLE_OVERLOADABLE id NMB_beGreaterThan(NSNumber *expectedValue) { - return [NMBObjCMatcher beGreaterThanMatcher:expectedValue]; -} - -NIMBLE_EXPORT NIMBLE_OVERLOADABLE id NMB_beGreaterThanOrEqualTo(NSNumber *expectedValue) { - return [NMBObjCMatcher beGreaterThanOrEqualToMatcher:expectedValue]; -} - -NIMBLE_EXPORT id NMB_beIdenticalTo(id expectedInstance) { - return [NMBObjCMatcher beIdenticalToMatcher:expectedInstance]; -} - -NIMBLE_EXPORT id NMB_be(id expectedInstance) { - return [NMBObjCMatcher beIdenticalToMatcher:expectedInstance]; -} - -NIMBLE_EXPORT NIMBLE_OVERLOADABLE id NMB_beLessThan(NSNumber *expectedValue) { - return [NMBObjCMatcher beLessThanMatcher:expectedValue]; -} - -NIMBLE_EXPORT NIMBLE_OVERLOADABLE id NMB_beLessThanOrEqualTo(NSNumber *expectedValue) { - return [NMBObjCMatcher beLessThanOrEqualToMatcher:expectedValue]; -} - -NIMBLE_EXPORT id NMB_beTruthy() { - return [NMBObjCMatcher beTruthyMatcher]; -} - -NIMBLE_EXPORT id NMB_beFalsy() { - return [NMBObjCMatcher beFalsyMatcher]; -} - -NIMBLE_EXPORT id NMB_beTrue() { - return [NMBObjCMatcher beTrueMatcher]; -} - -NIMBLE_EXPORT id NMB_beFalse() { - return [NMBObjCMatcher beFalseMatcher]; -} - -NIMBLE_EXPORT id NMB_beNil() { - return [NMBObjCMatcher beNilMatcher]; -} - -NIMBLE_EXPORT id NMB_beEmpty() { - return [NMBObjCMatcher beEmptyMatcher]; -} - -NIMBLE_EXPORT id NMB_containWithNilTermination(id itemOrSubstring, ...) { - NSMutableArray *itemOrSubstringArray = [NSMutableArray array]; - - if (itemOrSubstring) { - [itemOrSubstringArray addObject:itemOrSubstring]; - - va_list args; - va_start(args, itemOrSubstring); - id next; - while ((next = va_arg(args, id))) { - [itemOrSubstringArray addObject:next]; - } - va_end(args); - } - - return [NMBObjCMatcher containMatcher:itemOrSubstringArray]; -} - -NIMBLE_EXPORT id NMB_containElementSatisfying(BOOL(^predicate)(id)) { - return [NMBObjCMatcher containElementSatisfyingMatcher:predicate]; -} - -NIMBLE_EXPORT id NMB_endWith(id itemElementOrSubstring) { - return [NMBObjCMatcher endWithMatcher:itemElementOrSubstring]; -} - -NIMBLE_EXPORT NIMBLE_OVERLOADABLE id NMB_equal(__nullable id expectedValue) { - return [NMBObjCMatcher equalMatcher:expectedValue]; -} - -NIMBLE_EXPORT NIMBLE_OVERLOADABLE id NMB_haveCount(id expectedValue) { - return [NMBObjCMatcher haveCountMatcher:expectedValue]; -} - -NIMBLE_EXPORT id NMB_match(id expectedValue) { - return [NMBObjCMatcher matchMatcher:expectedValue]; -} - -NIMBLE_EXPORT id NMB_allPass(id expectedValue) { - return [NMBObjCMatcher allPassMatcher:expectedValue]; -} - -NIMBLE_EXPORT id NMB_satisfyAnyOfWithMatchers(id matchers) { - return [NMBObjCMatcher satisfyAnyOfMatcher:matchers]; -} - -NIMBLE_EXPORT id NMB_satisfyAllOfWithMatchers(id matchers) { - return [NMBObjCMatcher satisfyAllOfMatcher:matchers]; -} - -NIMBLE_EXPORT NMBObjCRaiseExceptionMatcher *NMB_raiseException() { - return [NMBObjCMatcher raiseExceptionMatcher]; -} - -NIMBLE_EXPORT NMBWaitUntilTimeoutBlock NMB_waitUntilTimeoutBuilder(NSString *file, NSUInteger line) { - return ^(NSTimeInterval timeout, void (^ _Nonnull action)(void (^ _Nonnull)(void))) { - [NMBWait untilTimeout:timeout file:file line:line action:action]; - }; -} - -NIMBLE_EXPORT NMBWaitUntilBlock NMB_waitUntilBuilder(NSString *file, NSUInteger line) { - return ^(void (^ _Nonnull action)(void (^ _Nonnull)(void))) { - [NMBWait untilFile:file line:line action:action]; - }; -} - -NS_ASSUME_NONNULL_END diff --git a/Pods/Nimble/Sources/NimbleObjectiveC/NMBExceptionCapture.h b/Pods/Nimble/Sources/NimbleObjectiveC/NMBExceptionCapture.h deleted file mode 100644 index e6e0272..0000000 --- a/Pods/Nimble/Sources/NimbleObjectiveC/NMBExceptionCapture.h +++ /dev/null @@ -1,11 +0,0 @@ -#import -#import - -@interface NMBExceptionCapture : NSObject - -- (nonnull instancetype)initWithHandler:(void(^ _Nullable)(NSException * _Nonnull))handler finally:(void(^ _Nullable)(void))finally; -- (void)tryBlock:(__attribute__((noescape)) void(^ _Nonnull)(void))unsafeBlock NS_SWIFT_NAME(tryBlock(_:)); - -@end - -typedef void(^NMBSourceCallbackBlock)(BOOL successful); diff --git a/Pods/Nimble/Sources/NimbleObjectiveC/NMBExceptionCapture.m b/Pods/Nimble/Sources/NimbleObjectiveC/NMBExceptionCapture.m deleted file mode 100644 index 52684b7..0000000 --- a/Pods/Nimble/Sources/NimbleObjectiveC/NMBExceptionCapture.m +++ /dev/null @@ -1,35 +0,0 @@ -#import "NMBExceptionCapture.h" - -@interface NMBExceptionCapture () -@property (nonatomic, copy) void(^ _Nullable handler)(NSException * _Nullable); -@property (nonatomic, copy) void(^ _Nullable finally)(void); -@end - -@implementation NMBExceptionCapture - -- (nonnull instancetype)initWithHandler:(void(^ _Nullable)(NSException * _Nonnull))handler finally:(void(^ _Nullable)(void))finally { - self = [super init]; - if (self) { - self.handler = handler; - self.finally = finally; - } - return self; -} - -- (void)tryBlock:(__attribute__((noescape)) void(^ _Nonnull)(void))unsafeBlock { - @try { - unsafeBlock(); - } - @catch (NSException *exception) { - if (self.handler) { - self.handler(exception); - } - } - @finally { - if (self.finally) { - self.finally(); - } - } -} - -@end diff --git a/Pods/Nimble/Sources/NimbleObjectiveC/NMBStringify.h b/Pods/Nimble/Sources/NimbleObjectiveC/NMBStringify.h deleted file mode 100644 index 7938bca..0000000 --- a/Pods/Nimble/Sources/NimbleObjectiveC/NMBStringify.h +++ /dev/null @@ -1,18 +0,0 @@ -@class NSString; - -/** - * Returns a string appropriate for displaying in test output - * from the provided value. - * - * @param anyObject A value that will show up in a test's output. - * - * @return The string that is returned can be - * customized per type by conforming a type to the `TestOutputStringConvertible` - * protocol. When stringifying a non-`TestOutputStringConvertible` type, this - * function will return the value's debug description and then its - * normal description if available and in that order. Otherwise it - * will return the result of constructing a string from the value. - * - * @see `TestOutputStringConvertible` - */ -extern NSString *_Nonnull NMBStringify(id _Nullable anyObject) __attribute__((warn_unused_result)); diff --git a/Pods/Nimble/Sources/NimbleObjectiveC/NMBStringify.m b/Pods/Nimble/Sources/NimbleObjectiveC/NMBStringify.m deleted file mode 100644 index 31a80d6..0000000 --- a/Pods/Nimble/Sources/NimbleObjectiveC/NMBStringify.m +++ /dev/null @@ -1,11 +0,0 @@ -#import "NMBStringify.h" - -#if __has_include("Nimble-Swift.h") -#import "Nimble-Swift.h" -#else -#import -#endif - -NSString *_Nonnull NMBStringify(id _Nullable anyObject) { - return [NMBStringer stringify:anyObject]; -} diff --git a/Pods/Nimble/Sources/NimbleObjectiveC/XCTestObservationCenter+Register.m b/Pods/Nimble/Sources/NimbleObjectiveC/XCTestObservationCenter+Register.m deleted file mode 100644 index fa5030a..0000000 --- a/Pods/Nimble/Sources/NimbleObjectiveC/XCTestObservationCenter+Register.m +++ /dev/null @@ -1,83 +0,0 @@ -#import -#import - -#if __has_include("Nimble-Swift.h") -#import "Nimble-Swift.h" -#else -#import -#endif - -#pragma mark - Method Swizzling - -/// Swaps the implementations between two instance methods. -/// -/// @param class The class containing `originalSelector`. -/// @param originalSelector Original method to replace. -/// @param replacementSelector Replacement method. -void swizzleSelectors(Class class, SEL originalSelector, SEL replacementSelector) { - Method originalMethod = class_getInstanceMethod(class, originalSelector); - Method replacementMethod = class_getInstanceMethod(class, replacementSelector); - - BOOL didAddMethod = - class_addMethod(class, - originalSelector, - method_getImplementation(replacementMethod), - method_getTypeEncoding(replacementMethod)); - - if (didAddMethod) { - class_replaceMethod(class, - replacementSelector, - method_getImplementation(originalMethod), - method_getTypeEncoding(originalMethod)); - } else { - method_exchangeImplementations(originalMethod, replacementMethod); - } -} - -#pragma mark - Private - -@interface XCTestObservationCenter (Private) -- (void)_addLegacyTestObserver:(id)observer; -@end - -@implementation XCTestObservationCenter (Register) - -/// Uses objc method swizzling to register `CurrentTestCaseTracker` as a test observer. This is necessary -/// because Xcode 7.3 introduced timing issues where if a custom `XCTestObservation` is registered too early -/// it suppresses all console output (generated by `XCTestLog`), breaking any tools that depend on this output. -/// This approach waits to register our custom test observer until XCTest adds its first "legacy" observer, -/// falling back to registering after the first normal observer if this private method ever changes. -+ (void)load { - if (class_getInstanceMethod([self class], @selector(_addLegacyTestObserver:))) { - // Swizzle -_addLegacyTestObserver: - swizzleSelectors([self class], @selector(_addLegacyTestObserver:), @selector(NMB_original__addLegacyTestObserver:)); - } else { - // Swizzle -addTestObserver:, only if -_addLegacyTestObserver: is not implemented - swizzleSelectors([self class], @selector(addTestObserver:), @selector(NMB_original_addTestObserver:)); - } -} - -#pragma mark - Replacement Methods - -/// Registers `CurrentTestCaseTracker` as a test observer after `XCTestLog` has been added. -- (void)NMB_original__addLegacyTestObserver:(id)observer { - [self NMB_original__addLegacyTestObserver:observer]; - - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - [self addTestObserver:[CurrentTestCaseTracker sharedInstance]]; - }); -} - -/// Registers `CurrentTestCaseTracker` as a test observer after `XCTestLog` has been added. -/// This method is only used if `-_addLegacyTestObserver:` is not impelemented. (added in Xcode 7.3) -- (void)NMB_original_addTestObserver:(id)observer { - [self NMB_original_addTestObserver:observer]; - - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - [self NMB_original_addTestObserver:[CurrentTestCaseTracker sharedInstance]]; - }); -} - -@end diff --git a/Pods/Pods.xcodeproj/project.pbxproj b/Pods/Pods.xcodeproj/project.pbxproj deleted file mode 100644 index 71921f4..0000000 --- a/Pods/Pods.xcodeproj/project.pbxproj +++ /dev/null @@ -1,6074 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 51; - objects = { - -/* Begin PBXBuildFile section */ - 0046C3CADE432D05E88D78C0FC8BFB66 /* Create.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADF5E74964F3280F5A79AB2A28646903 /* Create.swift */; }; - 00A0476D2D1EC77DFA828AA31A035B4C /* DispatchQueue+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = D74115839EBD9D0C09B4AC35C130C21A /* DispatchQueue+Extensions.swift */; }; - 00B940FB5C345F32307CB7E478A05B6C /* Deprecated.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2520AB0F8FA27B50D5645091F1B9ADBD /* Deprecated.swift */; }; - 01B965D80F8E189E9313593F90050231 /* SuiteHooks.swift in Sources */ = {isa = PBXBuildFile; fileRef = E69D213FDAECAAA7CB8BC4D8C0B83D92 /* SuiteHooks.swift */; }; - 02359740E995F252296E59BCF2B677AB /* AtomicInt.swift in Sources */ = {isa = PBXBuildFile; fileRef = 91DA584A59EF219263A431DDDD7EAFDB /* AtomicInt.swift */; }; - 02611C626FE6D0EEE8A64F2818349509 /* UIPageControl+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0638D2BA7601954EDA8F6D1492C73F02 /* UIPageControl+Rx.swift */; }; - 02A1AAA49758A955770775CD409D8635 /* CwlCatchException.m in Sources */ = {isa = PBXBuildFile; fileRef = 9DE1680089BE4380DE48CC061927A133 /* CwlCatchException.m */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 02EDC570F59336BD644B97B85940871D /* UISwitch+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = C21F85E2E2C88C7D6BA1BE17E1BDE9A7 /* UISwitch+Rx.swift */; }; - 03D468CB8E07B62184A953BF4B83E510 /* UICollectionView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = BAF46A24D9818B501304D6C39BCBE65A /* UICollectionView+Rx.swift */; }; - 03E76AED6A125A086785C83BADE5C422 /* TakeLast.swift in Sources */ = {isa = PBXBuildFile; fileRef = 05C3F2A8A64E81EFA22EF98FB83BC303 /* TakeLast.swift */; }; - 04C4654F9EAD6D8507B88B4EC21B1E72 /* Bag.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8402073A9F0290EE6C7F9E1CAF082024 /* Bag.swift */; }; - 058D7B1E859DC499D7592594DE5A6BB5 /* TestableObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6158A50D092EEC5DB92D42D5053F31E /* TestableObserver.swift */; }; - 05CF3D9319981D79529BA20D981F39AC /* RxPickerViewDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = B05489914FE1D4F568D5166E2058BF81 /* RxPickerViewDelegateProxy.swift */; }; - 063EBB18035C049112C1D0B9073A3137 /* UILabel+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 171F33894F843A1BEE2A0618E62E8B22 /* UILabel+Rx.swift */; }; - 069D005D0A606D8019DA78587B570F99 /* RxCollectionViewDataSourceProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC15EF0DB3555779DFE642D8A2A08F24 /* RxCollectionViewDataSourceProxy.swift */; }; - 071B0A10E6A477D9AAD8BB76EC5C4414 /* ScheduledDisposable.swift in Sources */ = {isa = PBXBuildFile; fileRef = B199793F738E2DF3CA85E56FE790D5A1 /* ScheduledDisposable.swift */; }; - 07FDA7305EB852C19991BDEF16547BAD /* Materialize.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8F46DF883BD49B22D2BFD801D3EF288F /* Materialize.swift */; }; - 0859E355B7FCFEAD391E64603537E9BF /* RxOptionalError.swift in Sources */ = {isa = PBXBuildFile; fileRef = 54D5EE715D52C6E381D9F1F0F2D43128 /* RxOptionalError.swift */; }; - 089162A09B0781AF494A021A592E2045 /* Dematerialize.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC6F8F8A9C4F7D29695F239EF58F1172 /* Dematerialize.swift */; }; - 0892D14FE7A3452423E9129D7917664B /* MatchError.swift in Sources */ = {isa = PBXBuildFile; fileRef = A1FBB76503D1FCC3369E38DAA13BEC83 /* MatchError.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 095547A88EE037F12395713A469C9B60 /* ConstraintLayoutSupport.swift in Sources */ = {isa = PBXBuildFile; fileRef = D14C21DCF63C6CD7D617D6906C78530D /* ConstraintLayoutSupport.swift */; }; - 09CDF5DF956C5690B4C706D5B878D293 /* UIView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 95C308790CCB233A2F28C8F8CCFB10CF /* UIView+Rx.swift */; }; - 09FE161DE9B67F021D7CCCE083EA3B1C /* Diff.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9957CF88B0FD31C811E9BB2849BF3C4C /* Diff.swift */; }; - 0A16626F1A6D33191F4F339FF68C23C4 /* Bag.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE0D7391A9C15D94A47F58F94423F6D7 /* Bag.swift */; }; - 0A9CE6104BA1EBE7DC0F8029E13A4251 /* RxSwift-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 5AFBEA93E6056A346EFE0C3E8AC90EC2 /* RxSwift-dummy.m */; }; - 0AAB2044F439148FF4E8789404BA3EC0 /* NSString+C99ExtendedIdentifier.swift in Sources */ = {isa = PBXBuildFile; fileRef = DECA58DEA686C6E10721034C1A68B142 /* NSString+C99ExtendedIdentifier.swift */; }; - 0C91FAC1F7D07891DFBBF00AEC70B48B /* NopDisposable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C5E54D629602933704CE09CAA943FD7 /* NopDisposable.swift */; }; - 0D7A7F3919AE48736753181756DE8AE8 /* Typealiases.swift in Sources */ = {isa = PBXBuildFile; fileRef = C82650CF93CF83FDD54ECB4DE08E8D4E /* Typealiases.swift */; }; - 0D7C537BDA932B4BD36BC8B9A2F16323 /* Errors.swift in Sources */ = {isa = PBXBuildFile; fileRef = 603613513381DBFF5B3BB7C2BA0F3B9F /* Errors.swift */; }; - 0DC716D6A630FAC820D9EA7E6F36EDF4 /* Placeholder.swift in Sources */ = {isa = PBXBuildFile; fileRef = ABB499E698904C33D6D7836C59FFAB2A /* Placeholder.swift */; }; - 0FA8E62C7A4A6DA9BB841007B5E16CD4 /* ConstraintMakerFinalizable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 86F858571FEEB03BDDB0135D38DD09ED /* ConstraintMakerFinalizable.swift */; }; - 0FCA371907A3EAC6951F6FCC0ADCBDBF /* VirtualTimeConverterType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8C2B56373A4972470F1AEC8055DDC8DB /* VirtualTimeConverterType.swift */; }; - 0FF745E43D121CE607D9FB7FCE16179B /* Sequence.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9839FEF1A3552B2928E57C1E26984461 /* Sequence.swift */; }; - 109ECDC25D576EB2CB1DE389AB6D9CE3 /* FloatingPointType+IdentifiableType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7723090601538C76D76AFE241C837F7D /* FloatingPointType+IdentifiableType.swift */; }; - 10ED1FE01702D78FD2BE4908B32A04D3 /* Using.swift in Sources */ = {isa = PBXBuildFile; fileRef = 294AAB061743552EFA25B9307587B968 /* Using.swift */; }; - 11596F8E5C9D389CF010F62464D1CB0F /* RxSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EACFC6C42F7516E2D1D06CEBC7CDCB9A /* RxSwift.framework */; }; - 119D4813B1C6DC83146D8330AB2F8B51 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E3A5A06D55ACE09DF1941935D042D8AF /* XCTest.framework */; }; - 129001AA602C62DB94571189DD2EB406 /* SharedSequence+Optional.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1D00BDF2190153639CC42AD3148C2178 /* SharedSequence+Optional.swift */; }; - 12C32E6D33D13958867D67651FDECF70 /* Observable.swift in Sources */ = {isa = PBXBuildFile; fileRef = BAC3CD33EF71BB5DDA2BD44E6DE0F6BF /* Observable.swift */; }; - 12E91AF2E7472DAE4CD7E6E17FD7017C /* Buffer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9EE65D1E24EB35EC069D7CBD433E0E68 /* Buffer.swift */; }; - 13CB8324B35B7C4F82B6791E77BC553B /* Window.swift in Sources */ = {isa = PBXBuildFile; fileRef = 30B63BA877D78A118CCD9C348CE41C80 /* Window.swift */; }; - 13D2A4D59DD9612E1AA7F3182A342162 /* mach_excServer.c in Sources */ = {isa = PBXBuildFile; fileRef = A1F450EF438BBB261901FE00C2B82D78 /* mach_excServer.c */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 141227EA8FE5E8CF222DC9AC4BBA123A /* RxAppState-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 70577D53A5C40E75560F1501EA339979 /* RxAppState-dummy.m */; }; - 14E9ACC5796C5E35C84DD6659BEB788F /* ConstraintPriorityTarget.swift in Sources */ = {isa = PBXBuildFile; fileRef = 253B52C8E2925282DE9567BDE9A97B25 /* ConstraintPriorityTarget.swift */; }; - 161709678DAF62C74B65B71053C4188B /* SharedSequence+Occupiable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9B23282386CFD6138C3BB2EA8086E14C /* SharedSequence+Occupiable.swift */; }; - 164ADE068F3D6EE3B15A216D04443B9B /* Optional+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 001F793ECDA8F6E2E1A378D298210D96 /* Optional+Extensions.swift */; }; - 1741E595C15A98662DD82F91AF32CDBC /* Pods-BringMyOwnBeer🍺-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 1A6D9B7E4CAAF3F91A39139F68FB5421 /* Pods-BringMyOwnBeer🍺-dummy.m */; }; - 17949EA5A648628698D3045C32125D9A /* FormatIndicatedCacheSerializer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3FB566D9B02EAFAAAF4E9C7AD4887179 /* FormatIndicatedCacheSerializer.swift */; }; - 17E3960687AB7F704486663C80A761D0 /* InfiniteSequence.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AFFC130AE708495613014ADACA2F482 /* InfiniteSequence.swift */; }; - 1846DAB532925B9BAB2D4925202006ED /* NSImageView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 23CDFB4DED74AF64108CE39090A0C24A /* NSImageView+Rx.swift */; }; - 186EEB657E514138B2B8D4482233AD40 /* SchedulerServices+Emulation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 907D625DA722BEAC1D5CC7F8A7854779 /* SchedulerServices+Emulation.swift */; }; - 192A3F8BEC1A99FD8712D3E09724D72C /* FailureMessage.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8B17FEB47374D05E25924B826B6CCF9 /* FailureMessage.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 1984174EF8DA6CA119D86485E3AC6C5A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21B0D6E69CB0A35093C7E92812854A0A /* Foundation.framework */; }; - 19BA8AF46D9CC49E3E2CEDCAF6354442 /* CwlPreconditionTesting.h in Headers */ = {isa = PBXBuildFile; fileRef = 2AABC12F44AD12B6C726421FD5C480FC /* CwlPreconditionTesting.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 1A0162B978313B287CDCD30754CA349C /* Catch.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD388D185C9CE70BFC0DC4F7EF32712D /* Catch.swift */; }; - 1A85FBE0F49D1865B17994399A6A78CE /* ColdObservable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 469DA7F9A5249C54FBE98201B9A960AB /* ColdObservable.swift */; }; - 1BA5B76D9B52DFEF03076685684E0FAC /* SharedSequence+Operators.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9AFE3D684F537DA2C1EEFBC61F31315 /* SharedSequence+Operators.swift */; }; - 1CDDFA8E0ABDEC634F2BF59488F8B751 /* AddRef.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE3636481D357F18F9764FC8A36405C5 /* AddRef.swift */; }; - 1D182C2DB0E3A2FC683C635DA33254CD /* UIButton+Kingfisher.swift in Sources */ = {isa = PBXBuildFile; fileRef = DFE505F98766BF3CB5F401F569BFAE96 /* UIButton+Kingfisher.swift */; }; - 1EE03D748B31F87D5ED7AD6793B6DAE9 /* Throttle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2DE701152346EB65E8EB0A4708D8A32F /* Throttle.swift */; }; - 1F09C335B08AD3375652BEBF3111BC52 /* ObserveOn.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8235EE7A19290DB05F8D1BC22C19C148 /* ObserveOn.swift */; }; - 212F75C30EDE3E428E35191575953AB0 /* ControlEvent+Signal.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E3D986DF536046EF3348C64F33BD015 /* ControlEvent+Signal.swift */; }; - 218FC76735C2CD3E84F920CE33EDD6FE /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21B0D6E69CB0A35093C7E92812854A0A /* Foundation.framework */; }; - 220E2E583AD49B4A6AB06FF437133A8E /* TestableObservable.swift in Sources */ = {isa = PBXBuildFile; fileRef = B03A0BA955D937E9B0451A2B171CEBD3 /* TestableObservable.swift */; }; - 221ED892E5138A00F3CDF540E914519D /* CwlCatchException.h in Headers */ = {isa = PBXBuildFile; fileRef = 8258B7A389451038C404FFDC1E7BCCDF /* CwlCatchException.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 2244ACCC96F3892EF908E9D69FA1958B /* SwiftSupport.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4668B009D39689EEB1847C72B0C63F1D /* SwiftSupport.swift */; }; - 22EB30B03009A3865E26584AE62AD09E /* NSObject+Rx+RawRepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 12E1FC38BBF9DE850C77F8FC20453D1F /* NSObject+Rx+RawRepresentable.swift */; }; - 234849AD309265FD107C74357FC8C0CF /* DSL+Wait.swift in Sources */ = {isa = PBXBuildFile; fileRef = DCD2029025EB30D5FC6B30FAE33011B5 /* DSL+Wait.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 2391FFD3230B40E2348B5257D6296BBB /* BeGreaterThanOrEqualTo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3979F0D3B741CD16AB2D22F9C2F0CAE1 /* BeGreaterThanOrEqualTo.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 23AD9C846E8E67C7603CC09EC24A98F8 /* Toaster-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = B10F65BF4E9CA15E484C246F0957A3E0 /* Toaster-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 26066531E6852B9DD56E2D69CE61D426 /* UIViewController+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4BE91791249B13D821A8B5169B2E340B /* UIViewController+Rx.swift */; }; - 2657D69A6485EF1B4476CD7C45323F69 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21B0D6E69CB0A35093C7E92812854A0A /* Foundation.framework */; }; - 26B9FEAB3DE0C8B91709D53571752A3B /* MatcherFunc.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39CB84CE75228FF39CB01CCF7BF0CAC0 /* MatcherFunc.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 26E38B70B08ED9090573544EB70D177A /* Sample.swift in Sources */ = {isa = PBXBuildFile; fileRef = 418173B6DFE6539A0A1A2566B5901822 /* Sample.swift */; }; - 2749964BCB1B0748DED381498B167DDE /* RxPickerViewAdapter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E6AAD57EEBA396168FF3AA364EC9455 /* RxPickerViewAdapter.swift */; }; - 276EE563D9B688173DBBF47DB80D72D8 /* ConstraintLayoutGuideDSL.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4D988352889B8B012BBA5FC9D1669537 /* ConstraintLayoutGuideDSL.swift */; }; - 277FC6132B5E5C5453DECC07A5BBAE3F /* RxTableViewReactiveArrayDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = 06BB4EEA40FEA2F1B4FDCB79B4D3A50A /* RxTableViewReactiveArrayDataSource.swift */; }; - 27B427F4F2C7B3472B55F06404188D82 /* ImagePrefetcher.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1804BECB7EE10AF45AB6B14793D7488 /* ImagePrefetcher.swift */; }; - 28400157B63F40AA135BF16780AB4B96 /* SnapKit-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 1295DBA2BFCB554368C35A67BE3BA308 /* SnapKit-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 287011C11A6C9400FD5C4A6BF52673E7 /* CurrentThreadScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB61B09337E5A339C5E8792C71FEB253 /* CurrentThreadScheduler.swift */; }; - 287BDE62D3BD4F78835EA72C880A2886 /* ScheduledItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 728F0C67B50D748AE638133A05316137 /* ScheduledItem.swift */; }; - 28FDC9276EEB4D7EF81271D302CD1D60 /* Box.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83B906694CCF60DB41F9104169CDDD05 /* Box.swift */; }; - 29A07B12BE7E2D9991323B2C9CA4D9CF /* IntegerType+IdentifiableType.swift in Sources */ = {isa = PBXBuildFile; fileRef = E3D41EB241A2D4C195FF14BC9656D5B8 /* IntegerType+IdentifiableType.swift */; }; - 2A4F77B3F533477E7823C40CC796588F /* Timeout.swift in Sources */ = {isa = PBXBuildFile; fileRef = 552F9D32B23F883C86F8FD4B4FF95710 /* Timeout.swift */; }; - 2A77E7D98909032ECEC1FB11814AABF8 /* RxCollectionViewSectionedReloadDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = 527B333EF233231FFAD19B3B47BFA4EA /* RxCollectionViewSectionedReloadDataSource.swift */; }; - 2A984C86BF3722CEBBF6B682DBB34358 /* UITextView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = F1D0DEF8AE378771212A801A07C53B18 /* UITextView+Rx.swift */; }; - 2AB6139B43F30B53376983DF607B7E70 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21B0D6E69CB0A35093C7E92812854A0A /* Foundation.framework */; }; - 2B2DCBFEA6A2D9450C925BBD6118C11F /* Disposable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2D61B6C9462B284D26232BEB6715EDE9 /* Disposable.swift */; }; - 2B350015B9F7546D0769649EE12D7D1A /* NimbleXCTestHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 276B2552A1C04AAB78BEA46675E70B98 /* NimbleXCTestHandler.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 2B9FEB5422298C8FB88F79FC00FE2303 /* Platform.Darwin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 946C3DBF12A228D8194F07CBC046912C /* Platform.Darwin.swift */; }; - 2BB9E6982D25D3B4EE0DE0D96F066AF9 /* Zip+Collection.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA730DDABDF37C1BC46DD8B006687378 /* Zip+Collection.swift */; }; - 2C7C765B5DA41374090D41813576FA69 /* Observable+Optional.swift in Sources */ = {isa = PBXBuildFile; fileRef = 67EA302965EB9B7064571AF0E9105B87 /* Observable+Optional.swift */; }; - 2DD548FFFDDB50228D40AE978CADC3B6 /* Bag+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F80B25A4AE1DB8D3308972771A97400 /* Bag+Rx.swift */; }; - 2EF43729DDC024EEE77A64F9A9CE1E36 /* Driver.swift in Sources */ = {isa = PBXBuildFile; fileRef = E70790E195C3B9A966D85214E24A3B36 /* Driver.swift */; }; - 2F5047C2152ADF0EF5C1CEBF700B38F0 /* NSTextField+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 307039565B0BE1495D89B2D17067B816 /* NSTextField+Rx.swift */; }; - 30378F98B0635B822144CC49C2151246 /* OptionalType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 364FADE043BB5379CFE8F43A575F271D /* OptionalType.swift */; }; - 30DAE88555734D8C6EA55F5D2132E458 /* AnimatableSectionModelType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 065980E342A2FA9EE1D248FEE72293C0 /* AnimatableSectionModelType.swift */; }; - 30F3FC3AD2B5C93759E4F3977D4788F6 /* AnyObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = 874F0F55B33C35BD121A322BC07CC73C /* AnyObserver.swift */; }; - 3187008D4318D90E0918B8C960A9B8FE /* URLSession+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC70AD93CC3A2E4A4F05C4B205B3C568 /* URLSession+Rx.swift */; }; - 31D518AD76A707DEC0B1A6BF6DE72ED0 /* RxTextStorageDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = B7BFAA13458CE79CD2F40CAB4708B979 /* RxTextStorageDelegateProxy.swift */; }; - 320B514DD620E49C4A0C4E40FBAEF3A6 /* Take.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0A23DDE05343F9CE11EABF28DD9D2C8 /* Take.swift */; }; - 323F42DBAF44F4DB1969EAF3015B0468 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21B0D6E69CB0A35093C7E92812854A0A /* Foundation.framework */; }; - 3262B230B938C8D6522790093FEAF69D /* EndWith.swift in Sources */ = {isa = PBXBuildFile; fileRef = 10BA37FB1082EF5BB93D2F0AAC48AF70 /* EndWith.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 3305236E79EEC7A37B0D989CC7CB0ECE /* HooksPhase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4426174B5E8BDA0281FB54FE1AF7D182 /* HooksPhase.swift */; }; - 330E8E4A6596ED625E9B34C94CC4136E /* Await.swift in Sources */ = {isa = PBXBuildFile; fileRef = 98089F23E2A81AC1D0DF61E972A14F75 /* Await.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 33E4D49372B55E745B36382B64130122 /* AnimatedImageView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2939E7D1A5119D2C1CF3BD2DDC3B9EE1 /* AnimatedImageView.swift */; }; - 342A82732EB42E300EF63417F55E3C48 /* ToastView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D217F26147ADA21A7A6DC0A9C214F3CD /* ToastView.swift */; }; - 342D16AFAF3100B4D41109C96020E84E /* SharedSequence+Operators+arity.swift in Sources */ = {isa = PBXBuildFile; fileRef = 41BED0A6E0D812AB7C0A569A47DA8E4D /* SharedSequence+Operators+arity.swift */; }; - 345175B39BC3C7FAFB414EA3CD46E347 /* First.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4650546AE291C7F910906D53810F40F /* First.swift */; }; - 3460FEA0CEADB05D3B56C2E1CAF9590C /* ElementsEqual.swift in Sources */ = {isa = PBXBuildFile; fileRef = 339C4776A985F8B7A718ADA89384951B /* ElementsEqual.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 348099BE2181AAA847E793AD67ABE03B /* _RXDelegateProxy.h in Headers */ = {isa = PBXBuildFile; fileRef = 4B8348F37E91925D3E74545FD1B35A18 /* _RXDelegateProxy.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 34820B22597B0F1BC215337118FCC31B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21B0D6E69CB0A35093C7E92812854A0A /* Foundation.framework */; }; - 34EA8D74C57BC1A6AC8C0A5B5267E56C /* QuickConfiguration.h in Headers */ = {isa = PBXBuildFile; fileRef = D4C328D9AC05AE9266533579A1DC6D02 /* QuickConfiguration.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 352FF41AC98A3C01CF8A695C446D18A0 /* RxBlocking-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 8CCBCE4191135355455CF273E90D0869 /* RxBlocking-dummy.m */; }; - 3559461757415578536055495F739B70 /* SectionedViewDataSourceType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 555B07110806FF30C9B762E666E3998F /* SectionedViewDataSourceType.swift */; }; - 35CDFA197D8219EB8DEFC227259A5C03 /* ConstraintMakerRelatable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 05E538AF8505070EEF607A5E0B108D6E /* ConstraintMakerRelatable.swift */; }; - 36AAA65075BDB5F83209083E274C5EA5 /* AnimatableSectionModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96C6C5464A09909339189BDFE5F665DE /* AnimatableSectionModel.swift */; }; - 387DED02D0C6537877DEFB476341CCC4 /* UITabBar+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8F1B925861B83157A6F4D8108CB5E8DB /* UITabBar+Rx.swift */; }; - 38D9A76A5E6D88432B5751F10734358B /* ObserverBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 064D890DDB50ADF15C3B3B04DB3753AB /* ObserverBase.swift */; }; - 39133A7716CEDEB690A7DA9D12C45C4D /* CwlDarwinDefinitions.swift in Sources */ = {isa = PBXBuildFile; fileRef = CEF44521341EC56AB7AB450446D9C753 /* CwlDarwinDefinitions.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 39FC1A51FF31905080FDA44316A2E3FA /* Kingfisher.h in Headers */ = {isa = PBXBuildFile; fileRef = B9514B5453E134CFADAADAB0B6EE02BF /* Kingfisher.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 3B84EABD8AC2564ADF22FDA4CB644679 /* BehaviorRelay.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69A1B8A3E88C9BE1E3A80F48F7E5B544 /* BehaviorRelay.swift */; }; - 3BBF3CA901DA74E1A2B0C292037C8FAE /* UIApplication+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 34F5CB17929B81FA31781316DFEE8472 /* UIApplication+Rx.swift */; }; - 3BD0C370BBCEBDEA68B8EDBD969370EB /* mach_excServer.h in Headers */ = {isa = PBXBuildFile; fileRef = 4B0F49BE5D0E202BA20F6B8E5F2716C0 /* mach_excServer.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 3C1BF06072A89A0C35FD53CB1C72E843 /* InfiniteSequence.swift in Sources */ = {isa = PBXBuildFile; fileRef = 59D20D34037E166F4AB90C364C3DC017 /* InfiniteSequence.swift */; }; - 3C53B3971713D7F9396CB063B9E96F78 /* RxTableViewDataSourceProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = C264DB6B1BAB4FAB81EEB73D77DEF316 /* RxTableViewDataSourceProxy.swift */; }; - 3C5ECA6EE1C2E540C10DA7657D75BBAE /* NotificationCenter+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E0CBC6DA7E43AA095C471D7BC0C442A /* NotificationCenter+Rx.swift */; }; - 3CA05DEF4638685663C50AC84F2A05B0 /* UISearchController+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 076348A52773E49DF901F4E76346D9AC /* UISearchController+Rx.swift */; }; - 3ED329B3F94A13664FA37F525DB29A79 /* NSSlider+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4DE96D35D16C3DA7EE4C9C726C9B8C2A /* NSSlider+Rx.swift */; }; - 3F32C0232F67768F13AC42DF8119F31F /* NSLayoutConstraint+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = FB444E97F71B08ED58193EF65765488A /* NSLayoutConstraint+Rx.swift */; }; - 3F3529562A7D464269B42923A84FD4E6 /* UIRefreshControl+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C023D7AF28B1ED3ADA11B00D49D49DD /* UIRefreshControl+Rx.swift */; }; - 4015497700167E2F7A78FB0FA8728D83 /* ImageView+Kingfisher.swift in Sources */ = {isa = PBXBuildFile; fileRef = A1FFDDC693EFEB1E7B9C1AD3906E58BB /* ImageView+Kingfisher.swift */; }; - 403F837F9B4AC86C901D238D847A767A /* QuickSpecBase.h in Headers */ = {isa = PBXBuildFile; fileRef = FE6A2C83CD148835CCBE1B45A04BDDCE /* QuickSpecBase.h */; settings = {ATTRIBUTES = (Project, ); }; }; - 404466C107479C890E3E4C7246A00E9E /* RxTableViewDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 77BD33A1035F0D03D0D4A44DC0320D19 /* RxTableViewDelegateProxy.swift */; }; - 40B92FDF71624FC72B5AAF014FF827C5 /* String+MD5.swift in Sources */ = {isa = PBXBuildFile; fileRef = E21DBE3739ABAD4DDB5892C0D87205C1 /* String+MD5.swift */; }; - 42014E58135F62BA99D2E9A0A57477EC /* ConnectableObservableType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 319D849354E982581577B5023EABFD5A /* ConnectableObservableType.swift */; }; - 4203EF96811AE514D64AE069311B1575 /* AllPass.swift in Sources */ = {isa = PBXBuildFile; fileRef = A857F6D47CA6534AE5910316BBEC6015 /* AllPass.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 4220DDE2F61F712AAE02766AA3C146D3 /* RxPickerViewDataSourceType.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC0E6607C630FA21DA4FB13065B2675B /* RxPickerViewDataSourceType.swift */; }; - 4268E348E6D5E9037A640ADC8E065009 /* ConstraintMakerEditable.swift in Sources */ = {isa = PBXBuildFile; fileRef = C4CE80D93DC20876283A4EF1ADAB98EE /* ConstraintMakerEditable.swift */; }; - 42C07AC55CCE047F098F80012394B1C9 /* NSControl+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E993802C8FC55992E621E235C247377 /* NSControl+Rx.swift */; }; - 42D362FCA75176E38D365200CB588880 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 53E038523BDEFCFCF48679062CC54605 /* UIKit.framework */; }; - 42F76698690916E0407F51610D829412 /* BeGreaterThan.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8FACFABD8E5577C2B9AA509E6DDA3F7 /* BeGreaterThan.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 442B5958255AE527E5B7C970BAEDE8EF /* RxCocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 795B4BD213193AD2888241C918DE7FC9 /* RxCocoa.framework */; }; - 443C09C19397A4B5599EA6AFC359678D /* ImageModifier.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1DCEED5C8D0F2D5290EA1D21C78DE8EA /* ImageModifier.swift */; }; - 448D617A7123D1CA117C93A64677A7DD /* UIApplication+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00C87E9D800CAEDB9209FD1BCFECDD1B /* UIApplication+Rx.swift */; }; - 44C9470137EF941955A1FDCE71D68C26 /* MatcherProtocols.swift in Sources */ = {isa = PBXBuildFile; fileRef = F49EA8ADE7250D90C0EA46C02C8ABE15 /* MatcherProtocols.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 45A1BD3C489E6CB9A9C927E3E53446F9 /* DeprecationWarner.swift in Sources */ = {isa = PBXBuildFile; fileRef = BAAD1EBE4FB420C3C29451C72DA06A35 /* DeprecationWarner.swift */; }; - 4601C9F27C522E3387248D9213286311 /* RecursiveLock.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6BAF6D9F1D286D9E1E634557142D74B2 /* RecursiveLock.swift */; }; - 46322FC973E0D214B38B3DAAB9218204 /* UIButton+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = AFCBC0C4AB28DB15675BD27F4A3863B4 /* UIButton+Rx.swift */; }; - 46B90B2CF2EB97B38C43A31E9A5478C2 /* PostNotification.swift in Sources */ = {isa = PBXBuildFile; fileRef = E4CC0DC5A95E56E05F88FBABF027E855 /* PostNotification.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 46BDEBF35D99D2CC53EF72DFC5BDCDCC /* BeLessThanOrEqual.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7453FE9780EF9D30228CE5F744F52792 /* BeLessThanOrEqual.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 471163764CADB858AD67FA4113989EA9 /* RxSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EACFC6C42F7516E2D1D06CEBC7CDCB9A /* RxSwift.framework */; }; - 475E7D0F39F53AC3A74878763E645D56 /* Any+Equatable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4189997D8434955D12F8A9F1C0A2472C /* Any+Equatable.swift */; }; - 48E6952FE279919A0F5716B9443DE3D2 /* UITextField+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2267184171A040097204A9731CED518A /* UITextField+Rx.swift */; }; - 49692AE4E69E658CE1425B680E005018 /* XCTest+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = F16D6D532CAC7BEC2FE8BA28EF94CEDA /* XCTest+Rx.swift */; }; - 49A3B489E9BFC01CCC3AC48C887206CF /* ControlProperty+Driver.swift in Sources */ = {isa = PBXBuildFile; fileRef = 429DBB7AB9A5E6E1AF75231016A4058F /* ControlProperty+Driver.swift */; }; - 4A144D4773B496E2DAC4423888FB33CD /* ExampleGroup.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA11C9F1DFCF955B55B5D5C28363B93C /* ExampleGroup.swift */; }; - 4AC0854DAD1D36FB51150478A6ACA9A2 /* RxAtomic-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 740AA8E00DBE56339456AB8D47B83B9C /* RxAtomic-dummy.m */; }; - 4ADD9779C99C30B2EE80A1A2DD573D49 /* RxSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EACFC6C42F7516E2D1D06CEBC7CDCB9A /* RxSwift.framework */; }; - 4AF58DFFEAC7EF9C34A839262C485575 /* Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7078B45FE9DF3AE28A138F2BB6F703E5 /* Rx.swift */; }; - 4B7F700B09DCE8D870AFF66D8A7BE562 /* Enumerated.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E8E632A97D3D5863E982C1CA008907B /* Enumerated.swift */; }; - 4D1669819280A028BA069B66276E036B /* Switch.swift in Sources */ = {isa = PBXBuildFile; fileRef = F84D5C35FB1B34FA42AC59A22164F522 /* Switch.swift */; }; - 4D4B092C7EEF51AA99E3488106B83A42 /* PriorityQueue.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8E147378E4CA6AF44CBDFE7E993FD8D6 /* PriorityQueue.swift */; }; - 4E0BACE42675CF80D94A76ED86558CD8 /* SkipWhile.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5A4EBC2ACF584B6EFE1FCAD11F266127 /* SkipWhile.swift */; }; - 4E1337FB5DB54353B1603BA9F5E5A0FD /* UIAlertAction+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C8145937F520C2398247877A2413DF8 /* UIAlertAction+Rx.swift */; }; - 4EDF9949DDB303E039B6EED3ACDDE120 /* RxCocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 795B4BD213193AD2888241C918DE7FC9 /* RxCocoa.framework */; }; - 4FA9A8A4894FB48FC69C9F726FE05120 /* RecursiveLock.swift in Sources */ = {isa = PBXBuildFile; fileRef = 520D3D1FFD5A41E3A65B09AABD967D13 /* RecursiveLock.swift */; }; - 503599F3ED26D35735DA0D92E652A63F /* Observable+Bind.swift in Sources */ = {isa = PBXBuildFile; fileRef = F15A0AB4B7EE699935882A8D1158C089 /* Observable+Bind.swift */; }; - 5036106F270141DC99CB75AD70F48AC0 /* Pods-BringMyOwnBeer🍺UITests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = B04A1101EC211BC5879ADA5D2464487E /* Pods-BringMyOwnBeer🍺UITests-dummy.m */; }; - 5055320943E6AF46813F8C940637AAB8 /* PriorityQueue.swift in Sources */ = {isa = PBXBuildFile; fileRef = 867428098B419D7BEE6FE6DDE3E07314 /* PriorityQueue.swift */; }; - 50C39A87393642F881B13F7CA9DCEC05 /* UIStepper+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA28E480EFDACD67656A5751D809A084 /* UIStepper+Rx.swift */; }; - 5179592AD007CA10DDAA70D02242313B /* InfiniteSequence.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E27C0BF8F637E57CB0EB2A52C98760E /* InfiniteSequence.swift */; }; - 518D454E6180F58B7428FF754B856E7F /* SkipUntil.swift in Sources */ = {isa = PBXBuildFile; fileRef = 784A704DCDEC8E63EB6149C9FB9CBF1E /* SkipUntil.swift */; }; - 52AB6461CAA9481D24835F3E48301FC6 /* BeIdenticalTo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7348969365C0E4E4D1798CDE8AFB80C0 /* BeIdenticalTo.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 52E16BE7DCB8875F1ABACD59D1CF9522 /* BehaviorRelay+Driver.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3FB4EA7679C957AA2FF56D302AF2826D /* BehaviorRelay+Driver.swift */; }; - 53164A2DDB944329FD8720F2F0D45228 /* Kingfisher-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 43F36EDF9958FD4EB4CF11BB9B21AF1F /* Kingfisher-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5368D33C0F6EC08EACCEF3706B1733CD /* RxTableViewDataSourceType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 121D17DF8C732B29E7BE3212922F9C1F /* RxTableViewDataSourceType.swift */; }; - 536E9DDCD23E21639145FF4039B50358 /* Timer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 67A09DBB4CCF5BE7702CE0CF9F1AAF7E /* Timer.swift */; }; - 54D1686EFA926E23C4BED5EEE7A19C08 /* ConstraintInsets.swift in Sources */ = {isa = PBXBuildFile; fileRef = A46931BCC38782E15BF302DD97EE66D6 /* ConstraintInsets.swift */; }; - 5544BDD6A14E06C7FB3A878BC3E96299 /* ConstraintView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 73BBB9929E9BE5A566FAD9F1AEC10F4D /* ConstraintView.swift */; }; - 5548C91B7B13B05D91EE5DAFFB3E8B14 /* ImageTransition.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF756F7EF7A86EE2201A044D3180C479 /* ImageTransition.swift */; }; - 5578F928AEFA8B2B7CC542033590DFD6 /* Match.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C9AEA4B5727BABD04A99023584D2E32 /* Match.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 55A8211149AA07D001160470FD97C31C /* SubscribeOn.swift in Sources */ = {isa = PBXBuildFile; fileRef = E3DE3EEC80DFAC45841317932C26A0FC /* SubscribeOn.swift */; }; - 55B73B58EE9E36E4C860A2135A9796A9 /* Kingfisher-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 0E0A6039ACA5062D91D39B9F4FE0854D /* Kingfisher-dummy.m */; }; - 55F5BAE076A19DF358CE3B23E6384296 /* RxKeyboard-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A229BBB04F25906012093091E26ECB1 /* RxKeyboard-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 55FA7E2A72A431C10CF0D262FA3D15DD /* WithLatestFrom.swift in Sources */ = {isa = PBXBuildFile; fileRef = D7AB0615E4C7255AA8CB8329A70E6F91 /* WithLatestFrom.swift */; }; - 56AB501237E6788C34FA1E9CBA404285 /* Error.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B3DCD023DD9CA108616085245FC0A97 /* Error.swift */; }; - 56AC0543D27EA5B08D6C02A5360329B3 /* RxSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EACFC6C42F7516E2D1D06CEBC7CDCB9A /* RxSwift.framework */; }; - 56B08AD13560AB8F1A758C9233B05835 /* SchedulerType+SharedSequence.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07D2AEDDF5E6256B8E9884DF2B5B1785 /* SchedulerType+SharedSequence.swift */; }; - 5790A854151F04B8FDD2BDD4C2139E4F /* Occupiable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57C3104865D236DE468AEB961DFE3E66 /* Occupiable.swift */; }; - 5798C2121676047DD7FE4CAB1BFC1415 /* RxTest-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = A7E0F3479D76DC6F75B0FD2ED8696FB2 /* RxTest-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 584C6462913947314DA24AE2C93CE879 /* RxCollectionViewReactiveArrayDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2AF982951E0526CD7846B86CBE6B0FB1 /* RxCollectionViewReactiveArrayDataSource.swift */; }; - 586F64F0B6788CE096D70984BF369062 /* Concat.swift in Sources */ = {isa = PBXBuildFile; fileRef = 85062DB1C32EAE983C6D4E3806EEB23E /* Concat.swift */; }; - 58DFA666FF2F8EF67310B2CC54C494FC /* ItemPath.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3D0411045C48436737FA23F548AC23F1 /* ItemPath.swift */; }; - 594056F7F08476D746E79D4484C12918 /* AsyncSubject.swift in Sources */ = {isa = PBXBuildFile; fileRef = 513595B4001C9D47BAA1727CDB9623B6 /* AsyncSubject.swift */; }; - 59A62BE2B9F4EE2DB82C1A5705403F51 /* ImageProcessor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6CEA158BB2D6D4CBDBDB229B6D54F467 /* ImageProcessor.swift */; }; - 59C8A859BF0D96DD377BF07F47E69641 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21B0D6E69CB0A35093C7E92812854A0A /* Foundation.framework */; }; - 59CA3C3E5B78474F96109D7979F66C0D /* Scan.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4DDDE9294EB5F25449B5A3257F49B17B /* Scan.swift */; }; - 59E2B3FE2DBF8022E4917C6E289EE7D6 /* RxCollectionViewSectionedAnimatedDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = 23FADAFCB5103D42AC7D58C7559172E7 /* RxCollectionViewSectionedAnimatedDataSource.swift */; }; - 59F70F0388A8A07E3AA743134FA40B05 /* RxCocoa.swift in Sources */ = {isa = PBXBuildFile; fileRef = 24099C51A5180FE42CF848AE2E9AE013 /* RxCocoa.swift */; }; - 5A3F9AE47B62B80177F7D8C62B0DF041 /* RxOptional-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 91D62C2FC502349328D1C479FE666ACB /* RxOptional-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5A4C3A45BD3D238566D5FC85480C8CAD /* DispatchQueue+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = CC6B22E5024246A7CACDF74C73DB4F9C /* DispatchQueue+Extensions.swift */; }; - 5B6F70DDD4C63CF6ED95291BCB633494 /* ContainElementSatisfying.swift in Sources */ = {isa = PBXBuildFile; fileRef = 489C32A42C39C8EE740332B6E98B99EA /* ContainElementSatisfying.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 5BF844F6EFDADC9DD318C6642CFF6FFD /* Array+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = A093D7986E72C29769A9993CA711BD8A /* Array+Extensions.swift */; }; - 5C376607904258A10F4DDD6D42EFC491 /* ConstraintMaker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 104FC62B3760A833E5FE0E08622BA0FD /* ConstraintMaker.swift */; }; - 5CAC7546BBA04A948EA2E29C8BBC3EB5 /* CombineLatest+Collection.swift in Sources */ = {isa = PBXBuildFile; fileRef = 962625A20C74540FEB292C589AF0A354 /* CombineLatest+Collection.swift */; }; - 5D1113442F1DE9836F1520875B987620 /* AnonymousDisposable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1FFD756874D15203AD21F1D10E000A81 /* AnonymousDisposable.swift */; }; - 5D7D08630E94C999C4784F81773C09B0 /* AsSingle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0428B98FB37E90FE79DC0913EE4A2D4E /* AsSingle.swift */; }; - 5D831C3698766418FE9FD0DB38B9DB6C /* KVORepresentable+CoreGraphics.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8E0A3139BC3054B22E51E2CA1E3F1424 /* KVORepresentable+CoreGraphics.swift */; }; - 5DB019FAF1646C63AC18321CE4209DBA /* DelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1331F02B467B705569FB3DCE4C350C8E /* DelegateProxy.swift */; }; - 5DBFB9A0499F04CBE806486211A4ABD0 /* SnapKit-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 46FD3C6FAC5804936932501C05ED93C0 /* SnapKit-dummy.m */; }; - 5E0CFB2FE7DB285F876036E39C49E6F6 /* RxSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EACFC6C42F7516E2D1D06CEBC7CDCB9A /* RxSwift.framework */; }; - 5E59914AFEEE23E635C195F01E82D692 /* SectionModelType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39E14B1202BD0219F43A424AB4B37A01 /* SectionModelType.swift */; }; - 5E7B0C3409CE04B12B4277FD06C80FED /* AnonymousObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = 89F3027B2B89CCA834DD3D5C0674CE1A /* AnonymousObserver.swift */; }; - 5EABE357108BB0AC56B6C7D0AFCC4532 /* Indicator.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3FB146050C58C1275CCA61DE6FC9458 /* Indicator.swift */; }; - 5EBBE8912F5071F7425BBF2682DACE4A /* RxCollectionViewDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D5F607FAED355979CE7D07E8E1EB2E6 /* RxCollectionViewDelegateProxy.swift */; }; - 5F060C24D0662ED66806FBD2F1F3E7AC /* KeyPathBinder.swift in Sources */ = {isa = PBXBuildFile; fileRef = E6F44C4EE2AC6B02234AF82EE27EB3CB /* KeyPathBinder.swift */; }; - 602E3758C0EF64AF6B7FCEA05BF5B9B9 /* Expectation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 439E34BF6F3982618B22886070F943E3 /* Expectation.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 60EE5F86C1B4BA04DF07580F7E1FAE8B /* String+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EAA22B7CD86143383B514ED9AE4CF44 /* String+Rx.swift */; }; - 618362BB4C31FC0AF3DDFEB0A8ADD899 /* RxOptional-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = A4DBF0A193432F3EC410F473F03EBB58 /* RxOptional-dummy.m */; }; - 61B4AE73C5FAF428361128CFAD6EDAF0 /* RxTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8F92930B84672B8E2085D79AC48ECF1C /* RxTest.swift */; }; - 626CCD3B19CAB7090293FF68A57E610A /* KingfisherOptionsInfo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 500CB50E8FAA87BD36398690AD3E81B9 /* KingfisherOptionsInfo.swift */; }; - 626E8E23B47BB7357E68AE637FCFFF5E /* _RXObjCRuntime.m in Sources */ = {isa = PBXBuildFile; fileRef = FD9698310CE9B1B85EFE803FC1BF589B /* _RXObjCRuntime.m */; }; - 62A3005DE18CC4899D9DC46637FBF959 /* Callsite.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9AF2C7FCAAB8BDABD32720FDCDF49C98 /* Callsite.swift */; }; - 63439C15FD137A4DD7D81FDB783ACAAD /* CombineLatest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 702F11DBB597626C4B3E00E99C1C799B /* CombineLatest.swift */; }; - 636AC989CFCAC5F50A3812A66A985F65 /* PublishRelay+Signal.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9BBBCC36592DBD676D9787E7E8EE684E /* PublishRelay+Signal.swift */; }; - 638F6CD0C1DDEE1066648EB4B083BFF6 /* ReplaySubject.swift in Sources */ = {isa = PBXBuildFile; fileRef = 996BD7F99AA951023E78D4F2E90DE49F /* ReplaySubject.swift */; }; - 63DEDC3089958CA3AF8C429C5658E38E /* SingleAssignmentDisposable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33FE5FA8209CCF1425BF8B0406E3EF80 /* SingleAssignmentDisposable.swift */; }; - 6442ADD12D94CE3B82CF40A3CB4C7378 /* Example.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8BC7E22568E216851A7207725923370 /* Example.swift */; }; - 6466D196B9F551735D7B25C5AE712439 /* LockOwnerType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 963857563CCB4B0471DF67AB55412199 /* LockOwnerType.swift */; }; - 64769A1D19EBD3AE97A702E5D82A88B2 /* InfiniteSequence.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0AF8D1F1A5CF8898986CCE5891A2D27F /* InfiniteSequence.swift */; }; - 64DA9C5A060FA00A8349B68BF29EBD35 /* UITabBarItem+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = D3EF98614BC6347F6A2D5ABE9136BBD6 /* UITabBarItem+Rx.swift */; }; - 64E26D7D025AC4462DFA8BA66B38C9D8 /* HaveCount.swift in Sources */ = {isa = PBXBuildFile; fileRef = AEDD297395EBD1D4A6BDBF612A124E69 /* HaveCount.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 64F9B4184B9D62B17BF359A1CD89E9DE /* Configuration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 665B8321E25873AF6AC5A912897D1EFF /* Configuration.swift */; }; - 6605D9C86E8B487130465E42400E2CA3 /* ScheduledItemType.swift in Sources */ = {isa = PBXBuildFile; fileRef = C8F6B99DABB1B061B27137AAD8C3A903 /* ScheduledItemType.swift */; }; - 668A8B9486FF4491065CF3EA6E95E5B7 /* Queue.swift in Sources */ = {isa = PBXBuildFile; fileRef = F902E57A10449260F7CC83389B9CD920 /* Queue.swift */; }; - 67776864843D84DC929C1B66FF8C94F6 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21B0D6E69CB0A35093C7E92812854A0A /* Foundation.framework */; }; - 67D19B54D2AAB11A414A1B25FF50750A /* SwitchIfEmpty.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C360012F00E3453F917C117606AE2C8 /* SwitchIfEmpty.swift */; }; - 67DAEF48922126FE186770FFB54C848E /* KVORepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 802F750EB3282909A8F309AE62D1A806 /* KVORepresentable.swift */; }; - 6803744F51E7C681E920AA15948C0F10 /* AtomicInt.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F7FFFEE37286E4BF302829E71D77AC3 /* AtomicInt.swift */; }; - 68091F5A3E186EE658D61245F7F0913D /* ObservableConvertibleType+Signal.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26251C408EED8A6B05C90027F0B72BDC /* ObservableConvertibleType+Signal.swift */; }; - 682EBB0B058F21493202ED3F0F6840FF /* RunLoopLock.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5492F9330776E1274F6A66C071721942 /* RunLoopLock.swift */; }; - 69D61A61A38B90B4B778BF84FA63EB83 /* Pods-BringMyOwnBeer🍺UITests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 8165996F17123F16B09C79298012B9B0 /* Pods-BringMyOwnBeer🍺UITests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 6A976A2B7F75BDAF4C015780D265CC91 /* CollectionViewSectionedDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1CE5AC0D801D3277464D566D92686EB9 /* CollectionViewSectionedDataSource.swift */; }; - 6AED4F0EFE23EE027E9498E3542BFEAA /* Empty.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A85124D91BC86C0211D340EA71B5672 /* Empty.swift */; }; - 6B173451852AAD7A9287C73109FE931F /* DisposeBag.swift in Sources */ = {isa = PBXBuildFile; fileRef = B4FE0C2A019AB122AC48DF62C7BBADD4 /* DisposeBag.swift */; }; - 6B43F2F53DD6C161CF414A9BF67550C5 /* ConstraintDSL.swift in Sources */ = {isa = PBXBuildFile; fileRef = A76AB36848BA0D18C94961327E913BAB /* ConstraintDSL.swift */; }; - 6BAA02730481089F302CF910486D527A /* RxSearchControllerDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07EB2F05796CC03CBE836CB0692D9711 /* RxSearchControllerDelegateProxy.swift */; }; - 6BAD4225BE2464ED914BD49582CF97A9 /* ControlEvent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 38DB6E104F77BC1187DE872C4399DEAB /* ControlEvent.swift */; }; - 6DB8A2452B36719972DEAB37D4E28904 /* ObservableConvertibleType+SharedSequence.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB1B5C8EF94FDBEA3E6ABFD238972F1C /* ObservableConvertibleType+SharedSequence.swift */; }; - 6EC0E748AF29FA3988826F498DB567B0 /* Queue.swift in Sources */ = {isa = PBXBuildFile; fileRef = A772E7411A073C39FF417101BC6D1442 /* Queue.swift */; }; - 70ECB3E5FED2F2D4F6DEFE366519C8AE /* Resource.swift in Sources */ = {isa = PBXBuildFile; fileRef = FC259ADB5EB290F8819D4C3DAA5A8ED9 /* Resource.swift */; }; - 7165DC229ED671FD4E6511113740B292 /* QuickConfiguration.m in Sources */ = {isa = PBXBuildFile; fileRef = 46E8FA32B698CCF40DF95B60C4FF554F /* QuickConfiguration.m */; }; - 71B7EEF53F276D4730D8E183B08E33E6 /* HistoricalSchedulerTimeConverter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 272D7E08C80909A11772F993C32A55DD /* HistoricalSchedulerTimeConverter.swift */; }; - 71C3D7F40F97EB276CE9149179562850 /* Platform.Darwin.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9DAAA62D61DC783BB6B2E6BEF5CDA98 /* Platform.Darwin.swift */; }; - 7233AA3306ABCB0ACE1D5EADFE2B974E /* SynchronizedOnType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 31EA9C125BB634DC09985F1CCF9818A5 /* SynchronizedOnType.swift */; }; - 723DFD02E1BD3446CB4B192B72B054BE /* SharedSequence.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7395E33A8646C45E9A447A6EBB90DB06 /* SharedSequence.swift */; }; - 72C2B5D60A24B4B663C8994276A962B6 /* ConstraintOffsetTarget.swift in Sources */ = {isa = PBXBuildFile; fileRef = 589E3937132F02B4FA6044B35ECA8382 /* ConstraintOffsetTarget.swift */; }; - 72D1D8DD58DA90C3215B6B3BCBE62FE6 /* Filter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 106A8B9AD19CE8E755BC8AE305560F4B /* Filter.swift */; }; - 72FB8CEABF346A37D54CC08647489A98 /* ThrowAssertion.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71780E3BD527569FCE1624B53F1406C4 /* ThrowAssertion.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 735E6A1594ECE57B7DE6CED48BA0B9C0 /* BooleanDisposable.swift in Sources */ = {isa = PBXBuildFile; fileRef = C305CBB6745EF242D3900C964169BDA4 /* BooleanDisposable.swift */; }; - 73A1284EB4ACA41061161C1D3559C1C2 /* Pods-BringMyOwnBeer🍺Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 012098211E5B49211F0B867AC8842AA6 /* Pods-BringMyOwnBeer🍺Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 73E1F1F44D3C399FAF2EC743DF64175F /* RxPickerViewAdapter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1212937543EACB74713B464E86E0DBBF /* RxPickerViewAdapter.swift */; }; - 75B329D48C0A3C90078D54E12F3545D1 /* Toast.swift in Sources */ = {isa = PBXBuildFile; fileRef = 70972418B4A2E6860EC7FA32B3151DDB /* Toast.swift */; }; - 762C7CECFAF5042FAD2CDF885F9C9622 /* DistinctUntilChanged.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3C4F6478576D6E71FF3B0937B21AD999 /* DistinctUntilChanged.swift */; }; - 7669AE2E4BCC1BE93E2AB4F0FD9D3674 /* Reduce.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2274093D1E1C66395EF449961B81E0ED /* Reduce.swift */; }; - 76AAEDBCAE496BF0BF2B4B1B7E8C4D5E /* BlockingObservable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0BC9E61C21762BA0040E538EEF0EEE0E /* BlockingObservable.swift */; }; - 76EAD93344C2B682BFB854BB3DBB945F /* RxAtomic-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = A0ED18E436CC116345C735513C1C9AA9 /* RxAtomic-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 778DD0AF4228E5B92F8C3E788E5C5A9A /* AsMaybe.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13172CD85F7B68A0E9CCA872C50B6E90 /* AsMaybe.swift */; }; - 77A618FE4FF299682F776C974300EBA1 /* ConstraintView+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2959ED5B51EC3AE70C34E1831CAE5BDB /* ConstraintView+Extensions.swift */; }; - 78A51B7FCC1DFB888AAA254529013C12 /* BeginWith.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5582AC76559B86E5217B4452DABA39AC /* BeginWith.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 78C200DCFECCE99B57C44F53285A1A8A /* ObservableConvertibleType+Driver.swift in Sources */ = {isa = PBXBuildFile; fileRef = 25E1450047A529253FEBD67512B53C36 /* ObservableConvertibleType+Driver.swift */; }; - 7900C9262B767711A6B109EAED52EF8A /* UI+SectionedViewType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6D7045124907F71937E332737198D438 /* UI+SectionedViewType.swift */; }; - 7A57D6584CCC9D0C3EF34EDA96807D34 /* ConcurrentMainScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96D6DDECE248BD37B9DE936699F26E61 /* ConcurrentMainScheduler.swift */; }; - 7AC93EB6DCDA9226165D5BC354FE7BC6 /* DSL.m in Sources */ = {isa = PBXBuildFile; fileRef = C9D28A30EA59A1FBCF68FDC2A3B6A0CD /* DSL.m */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 7ACC083094568725B42F9649457CC5BB /* RxTest-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = C9CDE4FF66E10FE46CDC88D53B25F173 /* RxTest-dummy.m */; }; - 7B8CB0AADCCB1240E901D58B0D607A08 /* ConcurrentDispatchQueueScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = D9604B5F77D77F47FFEB7901A1C4EDC7 /* ConcurrentDispatchQueueScheduler.swift */; }; - 7BAAD6C852ABA952EF51282994E8DD84 /* SectionModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 465CA5EE6DADA1C411BBED8FA0D86E1A /* SectionModel.swift */; }; - 7BCC1E21AD0581F508C189CA6CDBF923 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21B0D6E69CB0A35093C7E92812854A0A /* Foundation.framework */; }; - 7BF0AEB05C28930F46861968BD104625 /* RxSearchBarDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 761B94845B9AFBF32654F44E8F60486E /* RxSearchBarDelegateProxy.swift */; }; - 7C1D0EB5CE027B524CB3A0417D99410B /* GroupedObservable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9C3BE02057B015A2049ADF83908E4A20 /* GroupedObservable.swift */; }; - 7C461D7884FB010D291971C99F843375 /* UITabBarController+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0F632B42FEE52492C14DBB402D39067F /* UITabBarController+Rx.swift */; }; - 7CAC1CBAE40B672FA65394776F1C0A22 /* TakeWhile.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1AB37380A4F805849D80DF17FE08439E /* TakeWhile.swift */; }; - 7CCA796D494B11EEE665A6D2C7A2717E /* ExampleHooks.swift in Sources */ = {isa = PBXBuildFile; fileRef = 70A3CF9AB195D28F298012620C8424B8 /* ExampleHooks.swift */; }; - 7DAC86DCBC36C10F43FA5FEB819B7BF1 /* Functional.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA9BB684D654B28507A1CC2A05067A84 /* Functional.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 7DCBE471F5E0555D78E6D04552385C1C /* Deprecated.swift in Sources */ = {isa = PBXBuildFile; fileRef = D722CEB12A4CFD1AE54FC9D0A47FA809 /* Deprecated.swift */; }; - 7ED12926E82C9D1DE457504DA75B80A9 /* LayoutConstraintItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEC61093453386F2EF9B3140666E49C0 /* LayoutConstraintItem.swift */; }; - 7F026DB6133771076B8A470C41D515A8 /* TailRecursiveSink.swift in Sources */ = {isa = PBXBuildFile; fileRef = 66286B3127232102D0C5EC09AAAA898C /* TailRecursiveSink.swift */; }; - 806B9040D79A3DC58FB56EAC16FE19BF /* Stringers.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0F4D4EE0E77834786A386C7BEADDFC74 /* Stringers.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 8245E8482AD4719392EE1007F7E7977C /* Multicast.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92507A2EC9122D2B5CA3A7E3AE9FFD84 /* Multicast.swift */; }; - 82F517AC7EF6C16FF136391F86779ADD /* ShareReplayScope.swift in Sources */ = {isa = PBXBuildFile; fileRef = FC43180A7E0C8CF52F4894762021319C /* ShareReplayScope.swift */; }; - 82FBBBAE96A781D680BB4DBD8E647076 /* UIBarButtonItem+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8628255D355256DBE1E4610A6F066D17 /* UIBarButtonItem+Rx.swift */; }; - 831EFEAF216F7107FD4781029CF334A1 /* DefaultIfEmpty.swift in Sources */ = {isa = PBXBuildFile; fileRef = D987E6C82FDCDE43EEC0871DD1C3DA33 /* DefaultIfEmpty.swift */; }; - 847A01384D6182A5C65156B0A4F2B80D /* World.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8036A6B262D510BFF665CB070C058821 /* World.swift */; }; - 847F1C59266DFA11D3E0A82A3F7656C6 /* Cancelable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3200C300588B081EFF47300B89E37860 /* Cancelable.swift */; }; - 8519F8DDE89478A1FBD72D6EE46478AC /* MainScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8BBB17EA2766A4A3A7FB2984BF211F7B /* MainScheduler.swift */; }; - 864575E922861D727A7E41F89C607B31 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21B0D6E69CB0A35093C7E92812854A0A /* Foundation.framework */; }; - 865BC337667FAE14056A47557F5F739B /* ImmediateSchedulerType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1120DDA5E2663592AC3C3808F212C6C3 /* ImmediateSchedulerType.swift */; }; - 872F790C8F98B40CE30A67C5C5191F56 /* ElementAt.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13432447F7471F17BDA2BAAAE87B1865 /* ElementAt.swift */; }; - 874D32EF7DE8109583AF4CD0580059A2 /* RxTextViewDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75DB0EAF48663886CC1D533DD6D4E63E /* RxTextViewDelegateProxy.swift */; }; - 87FAC061758B6FFC2137CE05AFBEFA0E /* _RXKVOObserver.m in Sources */ = {isa = PBXBuildFile; fileRef = 4926634F66A8CA968FAC1A3997349482 /* _RXKVOObserver.m */; }; - 899233A4622C606D2537B847B595CE8C /* SchedulerType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19A0321C2FBCFED68871AA61B04B8C79 /* SchedulerType.swift */; }; - 89E9A16115FE45020BEA669837F93830 /* Filter.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7207EB3CF4E65EC3493425DD86B79CD /* Filter.swift */; }; - 89EE4D6DBDB79963D65AA1E67B543B6D /* CwlCatchBadInstruction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 29726DB7A25E2F2AE26B13FA7B4E1F84 /* CwlCatchBadInstruction.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 8A0A653CD9FAA128B349CF83F4B09345 /* ToastWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 064BB2988CFB114E003F3CA400BD1178 /* ToastWindow.swift */; }; - 8A0EF19254BAC5DF0885D1FBA345E016 /* CwlMachBadInstructionHandler.m in Sources */ = {isa = PBXBuildFile; fileRef = C40DCC5C784ED6928B83AEC7B0529738 /* CwlMachBadInstructionHandler.m */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 8B11401BA0A626786E205B28A8CFA4AF /* UIWebView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = E20DFBA5552664D4C50470EF927A3C88 /* UIWebView+Rx.swift */; }; - 8B789024E04F0FC9E28A759AD9D4B8D4 /* TestSchedulerVirtualTimeConverter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04B50948547DF86E3A5FFE5FF48FDF54 /* TestSchedulerVirtualTimeConverter.swift */; }; - 8B805B6F815D2CADC0E4FC819AFD01AA /* Range.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE8F424CC6B95A6079D6EDCF7B5167CC /* Range.swift */; }; - 8B8BE709B46663F60DB6A661A3B2A28A /* ConstraintMakerPriortizable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E2EC37387773524D153E11E7F9EBBE7 /* ConstraintMakerPriortizable.swift */; }; - 8BD9774E42F94FE85DE488C7F3AB9B68 /* _RXKVOObserver.h in Headers */ = {isa = PBXBuildFile; fileRef = 9847EF6A5B763A53D81D6ED17ED0A5A3 /* _RXKVOObserver.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 8CA19B3C581B7BB9A242E9572EF5CDB8 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21B0D6E69CB0A35093C7E92812854A0A /* Foundation.framework */; }; - 8D03B5706C51EFAB22148F8ABDAB7303 /* Toaster-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = C129D17C579514BFE254A6ADF572E71B /* Toaster-dummy.m */; }; - 8D17749611AB0C8BD51C068749D8DF68 /* NMBExceptionCapture.h in Headers */ = {isa = PBXBuildFile; fileRef = 67BCA6C3981D6E2547AC7E4EB59774F1 /* NMBExceptionCapture.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 8D543DAD9A6C0B8BF8A5DB38AD876677 /* SatisfyAnyOf.swift in Sources */ = {isa = PBXBuildFile; fileRef = B090F8C3F4553906893190B2C2FFA917 /* SatisfyAnyOf.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 8D75EC8969EA46FBD6E1BED7791A3C37 /* BeLogical.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1062435FA42E6945ADEE04BD71492F91 /* BeLogical.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 8DE9692605844F53C0C9618B99F5E1D1 /* Optional.swift in Sources */ = {isa = PBXBuildFile; fileRef = 229F185658716FE21650ADC75842F6CA /* Optional.swift */; }; - 906B7E4F57A8AB4209CE4869BCE5108F /* RxCocoa-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = ED044DFC06F9EBF89FE41F2C435C0D51 /* RxCocoa-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 90A5D40B5A45BB67F1DAB3D668E791A3 /* RxAppState-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 1721DAF6D797105F413647453E6F0347 /* RxAppState-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 912380CDDEA58133826206852DD6FC6C /* Subscription.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5E1451DDAB42CBA9B7AE273812CB5EE5 /* Subscription.swift */; }; - 914B779B3F9F799D3A6FD8E1706516F1 /* UIPickerView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1841F89ECE40449753B75CF046CE8A9A /* UIPickerView+Rx.swift */; }; - 921EF6FD4006A6269C79EB2E1AD38DCE /* RxNavigationControllerDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0842E624530FCE792ED785919B960653 /* RxNavigationControllerDelegateProxy.swift */; }; - 9281AFE693DFA91FBCC9FEB195653923 /* RxSwift-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 876731F548A1B23762AA683382658F8C /* RxSwift-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 92BA6B8AB0CBD0830305B0E42A7B274A /* _RX.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A1F52905F34295B6D0E08B19E8EBDE5 /* _RX.m */; }; - 93C048C1326E74F2B03255349E82F3E5 /* ItemEvents.swift in Sources */ = {isa = PBXBuildFile; fileRef = F2B5C4A60BF99D0CF680AD8A1A4BCB6E /* ItemEvents.swift */; }; - 9432185152350A4A90F6DD19C33AC057 /* Debugging.swift in Sources */ = {isa = PBXBuildFile; fileRef = ED901076DF109B55A5971DFADC8BEDED /* Debugging.swift */; }; - 946E3F2046BAF4F5AEB41BCED9E47EAE /* InvocableType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B1E05E5A4F0CE4B4B3AD9EC22E653AC /* InvocableType.swift */; }; - 9474906335CF252B428C6C395087530A /* ObserverType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 192BCC0B455A9ED7D2FD7D487AA25835 /* ObserverType.swift */; }; - 94DA3131D64B3D904BE28E72F1871065 /* BeAKindOf.swift in Sources */ = {isa = PBXBuildFile; fileRef = 87C1D360AB5AE6A86D35FA51A4AB4C90 /* BeAKindOf.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 950E758E7CA6565936FB196D5776B229 /* QuickSpecBase.m in Sources */ = {isa = PBXBuildFile; fileRef = 51B8B5BAD717EC58D68C8AAA7A3BFFBA /* QuickSpecBase.m */; }; - 958039818C987A7DD0A0A43F9BF9D59F /* UIActivityIndicatorView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B21F3EC6D01F92B8A92C39FBD407E90 /* UIActivityIndicatorView+Rx.swift */; }; - 9615C9B67E1418E40776DBA9C59224B8 /* RxCocoaObjCRuntimeError+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC385F5350D86A3BEB981FDAEE532B0F /* RxCocoaObjCRuntimeError+Extensions.swift */; }; - 9679B957DC14883719F58BB0583C50C0 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21B0D6E69CB0A35093C7E92812854A0A /* Foundation.framework */; }; - 96B9D1ED70A47FF4F6558739D5B9AFC6 /* SubjectType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5BEE89A857C73C0A286514892D76CB2F /* SubjectType.swift */; }; - 97709AA01FBE6F1CAEB77813A97011C5 /* ObservableConvertibleType+Blocking.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9A91E810A15CA5CDC0D08519CCC4085D /* ObservableConvertibleType+Blocking.swift */; }; - 97F6C830F981C6F1FA5C7410E9FFB4F5 /* Zip.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5920B320FEC631060AA90F43381D9229 /* Zip.swift */; }; - 9843AB41B26B3A2054B387EC3627C9D1 /* RxTarget.swift in Sources */ = {isa = PBXBuildFile; fileRef = C2A5DCA55C4A830160767E1B1CF4A2C7 /* RxTarget.swift */; }; - 98AE4E2F24A858A47B5A1B405CEAD8FD /* UILayoutSupport+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = B14ABFFD0DC30674A74DB1C5D3431CC5 /* UILayoutSupport+Extensions.swift */; }; - 9940BFEA69C28260552F12E52B82CA82 /* RxCocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 795B4BD213193AD2888241C918DE7FC9 /* RxCocoa.framework */; }; - 9974F61BB73989EDE98FE73F8F68C562 /* DeprecationWarner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69CDEE82C8878DBCAE2F09BB2A9ADEE9 /* DeprecationWarner.swift */; }; - 99AB7250DD0A2CC63BA117A88F63DDCD /* UINavigationItem+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3E5B18BD615072FF1415B163E4B512A7 /* UINavigationItem+Rx.swift */; }; - 99E8019F4689A514DAC6AA40AFF7352E /* NMBObjCMatcher.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8EA000A9C3130A4AF1DCD2F4EF27FE49 /* NMBObjCMatcher.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 99E845F0835B32015AA999D4F5E6B525 /* _RX.h in Headers */ = {isa = PBXBuildFile; fileRef = 122767D73009A7CA36CD1AF206D28B8E /* _RX.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 9A565B29FBB89A8837EE8AEA964BCC11 /* DisposeBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4D44EFB3386242263F8A8A5CA84DA368 /* DisposeBase.swift */; }; - 9A6C841421C146E504D4F0C10738AAD2 /* RxScrollViewDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0BDF5071FA032D9950142958CDCCAFBD /* RxScrollViewDelegateProxy.swift */; }; - 9B9714C476F416AD7FD803EA1184D113 /* BeLessThan.swift in Sources */ = {isa = PBXBuildFile; fileRef = 89BEBAF86B83D48D188643026562F006 /* BeLessThan.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 9BB5E9B6487FE95C710687B484C17161 /* Nimble.h in Headers */ = {isa = PBXBuildFile; fileRef = 97C94A14220DDB8B6A410BB3671A7280 /* Nimble.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 9C137E897718A17EBB2EB0161ADF74EF /* Single.swift in Sources */ = {isa = PBXBuildFile; fileRef = F2E64708972CA52974AF1C9D94624AA6 /* Single.swift */; }; - 9C18135A6C2EB820FF644CE7144A153F /* BehaviorSubject.swift in Sources */ = {isa = PBXBuildFile; fileRef = F5579079D126306F39F5A46CB4D53B1C /* BehaviorSubject.swift */; }; - 9C1A85F61D98938A88D1711CCED1AC3B /* RxKeyboard.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F3D11170C9CEC45F542BFE83450E59A /* RxKeyboard.swift */; }; - 9C460BA614D4B1D314A252C4C5CE1D87 /* BeAnInstanceOf.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDDB597A5CEDDC592D8C87B81173B33F /* BeAnInstanceOf.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - 9CFE992FB6AFD371E0904B76452DF8F9 /* ObservableConvertibleType.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC11D2ABD9BC5397C31F87A45AA9DC8E /* ObservableConvertibleType.swift */; }; - 9D1D3EFF7C2ABAEE3F8CB0089E01870F /* NSObject+Rx+KVORepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = C80DAFBDEAB71F368125D242644F1DD1 /* NSObject+Rx+KVORepresentable.swift */; }; - 9D6E06BF5107889B77D804590C50CC3B /* Debounce.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7D37B7BC1E305C349D338A6997674DD /* Debounce.swift */; }; - 9DB4DB5DBCA5D8C466ACE6FEBBE17018 /* KVORepresentable+Swift.swift in Sources */ = {isa = PBXBuildFile; fileRef = CACBE8183572FC9F790907D1C884C37B /* KVORepresentable+Swift.swift */; }; - 9E10AF83A0164D52B347AA423C8D33DE /* Quick-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 4AC2C02DDA14A2127BC4AE6A0B56E36D /* Quick-dummy.m */; }; - 9E44367037D1FC88C8C75922E5FFE1C6 /* RxPickerViewDataSourceProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4667198B3EEE0BED4B7E3A7936F0FEB /* RxPickerViewDataSourceProxy.swift */; }; - 9E6184458532BFF2E3E3F804C54BD0E7 /* ConstraintDescription.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D59ABFBEF4F943792C2F44E655EB05C /* ConstraintDescription.swift */; }; - 9EE2D363A721ACFA89B5B899E1987633 /* ConstraintConstantTarget.swift in Sources */ = {isa = PBXBuildFile; fileRef = A48B926B4C347D6EF507351149B3C4D1 /* ConstraintConstantTarget.swift */; }; - 9F70369EF71BD9ABAFF687AF532CC20D /* CwlMachBadInstructionHandler.h in Headers */ = {isa = PBXBuildFile; fileRef = 4B2DB2ED0440FF5F5D4318C72256C5CF /* CwlMachBadInstructionHandler.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 9FA521925CEC7B6FCEE3FD761675017D /* XCTestSuite+QuickTestSuiteBuilder.m in Sources */ = {isa = PBXBuildFile; fileRef = F45CEA643612453E8A5F6822ABEA5B73 /* XCTestSuite+QuickTestSuiteBuilder.m */; }; - 9FC2ED14647026BF3E38D01C8B398623 /* Deprecated.swift in Sources */ = {isa = PBXBuildFile; fileRef = 901564D60CA96827EF3B33586E14F4AB /* Deprecated.swift */; }; - A04D46C4C48247D004BAE5C7AD6E05A3 /* ConstraintConfig.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C983CE27D555CF9A6935B25ED202B31 /* ConstraintConfig.swift */; }; - A06D9D3700F9F6B62251338B18FC0D69 /* RxTableViewSectionedAnimatedDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82B87AE6583FE56FD8D9A9B0EEDAE938 /* RxTableViewSectionedAnimatedDataSource.swift */; }; - A0AF55E03B79C7331FDB9CFD1666DAB8 /* Signal.swift in Sources */ = {isa = PBXBuildFile; fileRef = 757605E8D621DF448AC15EE7D71D0B71 /* Signal.swift */; }; - A0FDA1ADFF69F7CF8ABFBB8E4587C37B /* SynchronizedDisposeType.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0720B59BEE223968A6DE6A54A2CC1E5 /* SynchronizedDisposeType.swift */; }; - A109B0247F5D04C633F4E2E73753068B /* Differentiator-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 498153CFA2BB4C0F6AED039F5C551D9E /* Differentiator-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - A1187619214B841C299A6BE1340125C8 /* AsyncLock.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8DFC577652F399B4E90100F78EC738A4 /* AsyncLock.swift */; }; - A1C8F6F51CFF9B932FE8E31ECED1546B /* PriorityQueue.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7376601BDF7F04AD21EE15F792E11511 /* PriorityQueue.swift */; }; - A23FB20C4F8F661979A6B139FAF76389 /* Observable+Occupiable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EFEC43A5F9215302AF01F47DC6991DCE /* Observable+Occupiable.swift */; }; - A2A335CD8BF39519BAFE04CFD0B8D210 /* NSTextView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A451828C3D6777C14E0F94CD915BF0D /* NSTextView+Rx.swift */; }; - A317E632C48B5D4A15D0CBD1E5499430 /* ImageCache.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0CB5EF8CBAE752E2EED61DDB98A7EDA3 /* ImageCache.swift */; }; - A3210EFFB5DB0AA436E4A5A63659D3D6 /* RxMutableBox.swift in Sources */ = {isa = PBXBuildFile; fileRef = C88342B297615EEB35E6A756A5D85836 /* RxMutableBox.swift */; }; - A358639EDDFCF112F9590F4C4A0ECC3C /* UIProgressView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3BE04F0C0CF8B84105E0847FCCF16C92 /* UIProgressView+Rx.swift */; }; - A3DEA82F229FDF7C9444CEFEE3D9AB84 /* ConstraintMultiplierTarget.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33D7756907CB63759438D1A15DF0633C /* ConstraintMultiplierTarget.swift */; }; - A4070B8C9BD30965648B2876CD3C1C43 /* ConstraintAttributes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 30878B867ED48B6EE34D657B4B6B8575 /* ConstraintAttributes.swift */; }; - A4420637EE415057C5BA22ABE5A984F9 /* Image.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09DCB634B295F04288F86B6982FB2161 /* Image.swift */; }; - A482F623A133B7E947C01456C779622A /* ConstraintPriority.swift in Sources */ = {isa = PBXBuildFile; fileRef = 95AAE6260BDDB10C0CAC414B3C65EAEE /* ConstraintPriority.swift */; }; - A4A7C3609AE1DD6F34D0DA63E9058370 /* UISearchBar+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 657C0FF35E8D2798A68F88233113A229 /* UISearchBar+Rx.swift */; }; - A5A19E19E4367938911D2737703C0D6C /* ObservableType+PrimitiveSequence.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6860A0C856F0DF9B899BCF4F153C7A15 /* ObservableType+PrimitiveSequence.swift */; }; - A5B04E7ADCD612C596D167362FE27B9E /* RefCountDisposable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1DCC5ED8F88C635BB4F80D233845334A /* RefCountDisposable.swift */; }; - A5C6C6AF307753F62CB842B879E50CB2 /* Kingfisher.swift in Sources */ = {isa = PBXBuildFile; fileRef = E1A1C69F248896615A152739EBE43A31 /* Kingfisher.swift */; }; - A6BD934FE7C9BE1F774E2919DF4E6529 /* UISlider+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 31CD8A524033BCEAC3FAB5ACBF0B2100 /* UISlider+Rx.swift */; }; - A6DB9B92686EF749373DE8D76E5A6375 /* Then.swift in Sources */ = {isa = PBXBuildFile; fileRef = C5941066B3431F2BF193515189D03CFF /* Then.swift */; }; - A772704FAE173075C69F08B17C026E7B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21B0D6E69CB0A35093C7E92812854A0A /* Foundation.framework */; }; - A7917156C113ECE91B645832CD0C3F6D /* NSBundle+CurrentTestBundle.swift in Sources */ = {isa = PBXBuildFile; fileRef = D7BEBDA8BD03F189A04BC6B829EE8C49 /* NSBundle+CurrentTestBundle.swift */; }; - A7A95AF362A186A9B4AB0AE4FEFC02D6 /* RxTableViewDataSourcePrefetchingProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 90D73CF6FF38541E29583272CFA7CFDA /* RxTableViewDataSourcePrefetchingProxy.swift */; }; - A812756FEF227336442A3B7F1AAD0ACE /* Map.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0216AFDBCD1642D1004F90BF05C567DB /* Map.swift */; }; - A86C20C4E9577A009C3E8743EBE5F225 /* RxCocoa.h in Headers */ = {isa = PBXBuildFile; fileRef = 64E71347EC5DBA86D182FF656FF68111 /* RxCocoa.h */; settings = {ATTRIBUTES = (Public, ); }; }; - A9407B9F7108C3058E772BEA2A8574DF /* Platform.Linux.swift in Sources */ = {isa = PBXBuildFile; fileRef = D84380B7B1724493A99F2568898EB6F5 /* Platform.Linux.swift */; }; - A9996A6303084D17B9C439CB132A1F69 /* DSL.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82E376909E881A51FF4F043EA195A094 /* DSL.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - A9A2B7241CF629A4600A520CD9E1F5E7 /* RxSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EACFC6C42F7516E2D1D06CEBC7CDCB9A /* RxSwift.framework */; }; - A9BF211D24462D531E278F2AE317AEA4 /* Quick.h in Headers */ = {isa = PBXBuildFile; fileRef = 4996CF4BCF8425E2EF209C0070FBB241 /* Quick.h */; settings = {ATTRIBUTES = (Public, ); }; }; - AA2A3AFE20102E2D00F933E38E01F65A /* Differentiator.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8E277FE06D4C97240FFE7069214F07A5 /* Differentiator.framework */; }; - AADC9B3ED733339CD08CBA9EE510FAC1 /* URL+FileName.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8B6B1C128325D9437E96EDE2DAF03D66 /* URL+FileName.swift */; }; - AB5972F47C721E66DDB356727D7D8EB8 /* RxAtomic.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0308C40A3C61760276AF40DEE6C2DD52 /* RxAtomic.framework */; }; - AB896E86184C7E4C1B132A6FD48C945F /* ThreadHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7A34FFEF9014E5D7BAD0492F0E1E279 /* ThreadHelper.swift */; }; - ABD0719C83EB34C533393B6826E69BC9 /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5174026C60B7F0099D7C269C789D216B /* CFNetwork.framework */; }; - AD69407E2FA1D39A9E09248052F2D81B /* ExpectationMessage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 23DBE98B380204708571AA195DDBB59D /* ExpectationMessage.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - AD6A5A8EB175FCD3F2B3180697F8F241 /* Deferred.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8206ECCAF64E4FEBEC74C3B20F0AB7CF /* Deferred.swift */; }; - AD7E233F5D3FE672AA02134FB4812404 /* Behavior.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94A7F33BE88391E89D1502DB61913B32 /* Behavior.swift */; }; - AE2E7422196F2750B8F78274710CE3DA /* DeprecationWarner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 459CFD09639D614F3ADE8F532C498775 /* DeprecationWarner.swift */; }; - AE402FE124346EB50B1EE28AFD0624E0 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21B0D6E69CB0A35093C7E92812854A0A /* Foundation.framework */; }; - AE931569839D57DF5B5EA8F08E896FC3 /* Delay.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D6E8DE419E2ECA8AAD7DABF34513187 /* Delay.swift */; }; - AF1FEB855F57D2378FE9BFBF0A3FC1F9 /* Platform.Darwin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 772215DDE79D94D74A1F632CD7598DAB /* Platform.Darwin.swift */; }; - B0C3A4F5A688B4058EDEF85F5C880A8C /* RxAtomic.h in Headers */ = {isa = PBXBuildFile; fileRef = CEBB241F1D69C0D88576C94BEFB1E306 /* RxAtomic.h */; settings = {ATTRIBUTES = (Public, ); }; }; - B0CB5B33D884649F5F92BDF4B8E4F4D8 /* ObservableType+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0DD41DF0E1341FA9B1FA89B785B7A698 /* ObservableType+Extensions.swift */; }; - B102F4265331A96D414CC624F1775294 /* StartWith.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40BF6A98F1E1D89122398AD2673548A2 /* StartWith.swift */; }; - B1148C38770889219C958D426EA1A53D /* UIImageView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = B838033F310DCE72B002165620143D40 /* UIImageView+Rx.swift */; }; - B15095C300DB89D5B085632BC978757A /* DelaySubscription.swift in Sources */ = {isa = PBXBuildFile; fileRef = 268D0CC79DCCF9AB9F0DFE45FAED2532 /* DelaySubscription.swift */; }; - B1794D618972A94DF738F4903056B34B /* Changeset.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE1FCED81173361F437E806123E5AF12 /* Changeset.swift */; }; - B1C330B5A9AEC53A389EFE691D2837A7 /* Bag.swift in Sources */ = {isa = PBXBuildFile; fileRef = 017484E363F4120536CD0F4EDADC4BD6 /* Bag.swift */; }; - B1E52E2401FA6A059C493D775FD36EF7 /* DataSources.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8C33099447C4CB0242D4D8ADBB13A766 /* DataSources.swift */; }; - B252CEF19F0D79B21188124EC9139225 /* ExampleMetadata.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4FD335DD68D661E0FA76F5DCEAF878E9 /* ExampleMetadata.swift */; }; - B2A65EEDB5D5EC246EA68E10964FF7B3 /* ThrowError.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2B7702E3BCA01A6023F8DDF5C45EEA01 /* ThrowError.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - B4058A2AA8486E9879F113E6F67B9679 /* AdapterProtocols.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E2E1EDA2C0264572FB6A585BE51E95A /* AdapterProtocols.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - B43443C28F4F69B95AFCE01498F9E479 /* Disposables.swift in Sources */ = {isa = PBXBuildFile; fileRef = C679A6EC715B8C4740CF0D0A1872EBAA /* Disposables.swift */; }; - B447ABCF0B22EEC866BC02A92315005A /* TableViewSectionedDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4089B46645E8114718C5A2D4E9B9E7EC /* TableViewSectionedDataSource.swift */; }; - B4590B0D9DDEDF0A32C971121A70FAE9 /* Do.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD292B656B5F10BF8CBF128EF405A068 /* Do.swift */; }; - B5E778322C07FF0402F0ECEDC1518025 /* TakeUntil.swift in Sources */ = {isa = PBXBuildFile; fileRef = 740196738107B92013B8313B37AAC5CF /* TakeUntil.swift */; }; - B6CC23C6C288F4EB9EDD3A06F1F5F094 /* Predicate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51E92D6FB4E3DD8C58969F7E9035C3BC /* Predicate.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - B71070160CF07EFA99ED0445B0D191E7 /* Nimble-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = FB3BDCA5CE78B8F654FF762B647E0DC4 /* Nimble-dummy.m */; }; - B7662703AF8D3FFFCB0070C50FEDCC58 /* Errors.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA38E2E5E2EF4C2174642C0C3E51EFFF /* Errors.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - B79FC6E46F642C3FC74B3E6D9175B1AB /* SatisfyAllOf.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7590C7F791088DCB9BAD46D95886DCDD /* SatisfyAllOf.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - B7F559ABF7622040866557F0C6F422C3 /* RequestModifier.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F8641CA08559BFBE426F370AA2EDD91 /* RequestModifier.swift */; }; - B88615482E938D7DE8D3F303F8D2E651 /* InvocableScheduledItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7A1DB3C9C81D94DAF575649EA4C7EAD /* InvocableScheduledItem.swift */; }; - B9888300B93B7CB71038CB1155A51F50 /* ControlProperty.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4D2274482FA45ABDF3A22F4236C4AC1C /* ControlProperty.swift */; }; - BB0E8F1CB241D68A4A7EC3AD202B2990 /* Deprecated.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6343EDB4C36D752D27C630752AFF9859 /* Deprecated.swift */; }; - BCE31790753424FEBD3B175ED2548A63 /* UISegmentedControl+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = B10D502207DF00D90AE7ECEB67C5BB99 /* UISegmentedControl+Rx.swift */; }; - BD379F95293A811D8E591CAC8E9FF410 /* Quick-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = DB0D20E4D6A07F231254073FA17FBC61 /* Quick-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - BF5220D6C099C14E9AAC98730C398A26 /* Merge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7989D3797AD06D99E46ABEBAD0FF86EA /* Merge.swift */; }; - BF7843175A0FB0180B6F4C0249B8874A /* LayoutConstraint.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3135ED76FB8D4E46B1376D236BA80FCD /* LayoutConstraint.swift */; }; - BF8A74F92C87D1C833A5FC7942746691 /* RxKeyboard-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 26ED9DAE5DDEECE82FFA5B9AB9AB83E1 /* RxKeyboard-dummy.m */; }; - BFA9AFACE094FAFDFF9B7E3A9DAA9B7E /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BB53B29451254E974A92F78871FC485D /* QuartzCore.framework */; }; - BFAD10BBE1DF8DBD6621B44510DC76CD /* Maybe.swift in Sources */ = {isa = PBXBuildFile; fileRef = F88BDB0B0308D87503F06ABB626F3AD6 /* Maybe.swift */; }; - BFDA001D5DD4900BDD21F27B8AC5AD20 /* DelegateProxyType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65814D4597C3B32EE00704496F729778 /* DelegateProxyType.swift */; }; - BFE50A3219739125B7E67B95A4F09EEE /* Driver+Subscription.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00FF7F2C5190B0AD0C9F920C988921F8 /* Driver+Subscription.swift */; }; - C027783A9B891851727DBC72594FDC45 /* ToArray.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7E4EF9911995A7E83C701426342F3AAD /* ToArray.swift */; }; - C051C0411627BD5FCDA031782EB1F716 /* DSL.h in Headers */ = {isa = PBXBuildFile; fileRef = 8458BFC6FCF71C404A80199A679C611A /* DSL.h */; settings = {ATTRIBUTES = (Public, ); }; }; - C08A09B0CEBC18AD963AAFB1778A9848 /* KingfisherManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4FDA4B5961C86B680CD902B7105E8418 /* KingfisherManager.swift */; }; - C0C98C8C7D07E1598F20EE2F0539197D /* NMBExpectation.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC297C329F63D0472A4F7E54A3529DCF /* NMBExpectation.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - C1079F4FF84A3ECE50D69B4BF3C37BE1 /* NSView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = DB34A770DB0E376C0AA15CB15582CAB9 /* NSView+Rx.swift */; }; - C159F1F86859874980C33870C6092C5C /* BlockingObservable+Operators.swift in Sources */ = {isa = PBXBuildFile; fileRef = 068FF503C0A1204CBE4C8190D8C32A17 /* BlockingObservable+Operators.swift */; }; - C1C2B61E08DAD3B59BA5D82964D39C3C /* ConstraintRelation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 534C283D45A9F844D7BADC3D8D846362 /* ConstraintRelation.swift */; }; - C26345BF7506D17AC1E098787D6FCAAD /* RxDataSources-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 38D7CC81FB22FA3EF364800C964A01C6 /* RxDataSources-dummy.m */; }; - C278931D70A95E1B62CF33DE431436DE /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 53E038523BDEFCFCF48679062CC54605 /* UIKit.framework */; }; - C2CFCAB2846833DB810F14FB7771013F /* Debug.swift in Sources */ = {isa = PBXBuildFile; fileRef = 22C6A70865C14EF0BA1C3666E261788B /* Debug.swift */; }; - C2EF954DA15BD76EADE08D95870A589B /* AtomicInt.swift in Sources */ = {isa = PBXBuildFile; fileRef = A068FC9092E21222557B7336EA6DD172 /* AtomicInt.swift */; }; - C3BD57BA2250405549D35E1191123A73 /* Signal+Subscription.swift in Sources */ = {isa = PBXBuildFile; fileRef = 97789ACD81FA5EB72A69B121536BF14D /* Signal+Subscription.swift */; }; - C3BF0E253BA9EEA483E52A9F8D9AF230 /* QuickSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = A7124CFFFC78B42466A75D0E30C30D50 /* QuickSpec.m */; }; - C43F8CC91B02FBA4ADD624C620D77048 /* UIDatePicker+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 01D85A9A0121303C4781CF7E22F03995 /* UIDatePicker+Rx.swift */; }; - C494E070C6B415BA9480FF2CEBC3F20D /* SingleAsync.swift in Sources */ = {isa = PBXBuildFile; fileRef = 908BAC52D7FB59370C6770B6105302A3 /* SingleAsync.swift */; }; - C537C998BE3FE2BB2492016CCD6B975C /* RxCocoaRuntime.h in Headers */ = {isa = PBXBuildFile; fileRef = CDF9F880A6F482554045B190B8F8C826 /* RxCocoaRuntime.h */; settings = {ATTRIBUTES = (Public, ); }; }; - C56FFF449C82E10AB0EBDA3249DA25F1 /* PrimitiveSequence.swift in Sources */ = {isa = PBXBuildFile; fileRef = 074A0D6460BFBB3D683A927B0F350B86 /* PrimitiveSequence.swift */; }; - C5D08AD707EEA2A637673B0E04030EE0 /* RxDataSources-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 45D1AA2F971B3AE90902E343430D64BB /* RxDataSources-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - C63E2476FBDF6E973985A8AC0ABB8957 /* Event.swift in Sources */ = {isa = PBXBuildFile; fileRef = E302C99DDB310C695B63D0F6E1D51761 /* Event.swift */; }; - C6869939F1A68984EDD66E2161EA2A29 /* Repeat.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57483B0E911FA2468867DCB5C3DE13AB /* Repeat.swift */; }; - C68FE56DC7082A00316E7BB96063F8EB /* HistoricalScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = B210383040F0DC399000455893DD4329 /* HistoricalScheduler.swift */; }; - C794A9A4C8FF7E995C7CC4511B10D731 /* RecursiveLock.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1440BBCB400B618AE4A67CFE7BA8BD38 /* RecursiveLock.swift */; }; - C79D4F0D0C79942AAD2B4F16D0766095 /* CacheSerializer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C317CEAE3D7D2C867B0202521A7ADAF /* CacheSerializer.swift */; }; - C7BF8715090631FE9A75C1E2602106D7 /* Completable+AndThen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 895F9708278B24EC3CBDC9EF6925C6C2 /* Completable+AndThen.swift */; }; - C8C7D623B29B95DE20D8B9821CFF5294 /* Platform.Linux.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEC56FDFA000E5AB57DEEB007DCBAA6B /* Platform.Linux.swift */; }; - C8E64DB8DF3D16FD3F2ABFC8854DF38C /* DispatchQueue+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = B2951A45CD7D0110ECDE7028E7EBE5D8 /* DispatchQueue+Extensions.swift */; }; - C903AEFEEB4E73644A03FB8285543107 /* BeEmpty.swift in Sources */ = {isa = PBXBuildFile; fileRef = F5CE241225829D985044C131C3B3C07A /* BeEmpty.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - C912897D77798A90873A3DAD8A4BDC50 /* QCKDSL.h in Headers */ = {isa = PBXBuildFile; fileRef = 742EF47B540A808FA9AE990780E74864 /* QCKDSL.h */; settings = {ATTRIBUTES = (Public, ); }; }; - C979EEB0159A65246F6BD2C906A8ADB7 /* BeVoid.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82222085E662463B481C30C02314F41F /* BeVoid.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - C99BBC3F70E056CB6A3CC0516318939D /* AssertionDispatcher.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F92E98FA0AE738EBED8CE0A5D5924B7 /* AssertionDispatcher.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - C9C30192C2D4C63F9B20AD30E5FE781F /* Utilities.swift in Sources */ = {isa = PBXBuildFile; fileRef = 465E813069145C6947D74622FDA24F80 /* Utilities.swift */; }; - CA0FAE669FAB7067D09F7007AD838E19 /* ConstraintItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = C61C82AE37734D193C774C9DDBB214C3 /* ConstraintItem.swift */; }; - CA8F208BD087D77B2B20739C7C2ADACB /* UIScrollView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 21CD4834437EABAD899F1D7D2D912C96 /* UIScrollView+Rx.swift */; }; - CAACEBB97A7D23E6782B47A805DFED81 /* CwlCatchException.swift in Sources */ = {isa = PBXBuildFile; fileRef = 87CD9A3AC6B217A719928CCFA8969B88 /* CwlCatchException.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - CAC0199D91E1052A656307502C744087 /* _RXObjCRuntime.h in Headers */ = {isa = PBXBuildFile; fileRef = 046366E26B086E0C7AC338A4DF19EE83 /* _RXObjCRuntime.h */; settings = {ATTRIBUTES = (Public, ); }; }; - CB280F675A5A00EBD559800853DD3F80 /* Differentiator-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = A9E10CE315C3D4694A7E5CFCB34029FE /* Differentiator-dummy.m */; }; - CBC27F3832D11E3144CE31A52AEED38C /* Toaster.h in Headers */ = {isa = PBXBuildFile; fileRef = F8187A30D2C9071CB104E26B43198938 /* Toaster.h */; settings = {ATTRIBUTES = (Public, ); }; }; - CBCA75971E4ADB53F4F0C613B9473B45 /* UIViewController+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = B370F526977D17974EE5D87048FF55D4 /* UIViewController+Rx.swift */; }; - CC2ECD6C2864E48AFCCF6492C8466C35 /* Lock.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B0BB5B7DD009B4F438B894E7F93482F /* Lock.swift */; }; - CC6AE8BFDB688A0D399EC6D311F92AD3 /* ObservableType.swift in Sources */ = {isa = PBXBuildFile; fileRef = C117A91D8640F1BD988BFC6D0DC05DAC /* ObservableType.swift */; }; - CCFC0D43E2745F63C802811D5355688F /* CompositeDisposable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8F77207C86CB072DAFF44221EE3740FE /* CompositeDisposable.swift */; }; - CD688FDDE582422F4D907E069AF0B5D0 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21B0D6E69CB0A35093C7E92812854A0A /* Foundation.framework */; }; - CD68EBF2FF65D76EAE853D0413704127 /* Producer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 200C40469489C62638C1961E03423EE4 /* Producer.swift */; }; - CD6B1F146B0E157FE5B9CAFFAE77A5B5 /* Nimble-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 925EAC9DBD428B7755D5D91DC61A5493 /* Nimble-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - CD7987DCA17F80F06E48D0A0285ADE30 /* Recorded+Event.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF6C9E383DB5A67D533E0310E87487FA /* Recorded+Event.swift */; }; - CD92E3C8B2B53B5545D1B0394881A1EB /* ImageDownloader.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADBE6740CAC8AEF23D88EEE7B633E8CA /* ImageDownloader.swift */; }; - CEE8D31A4E76BB7B350BF2A7175D4BC2 /* NMBExceptionCapture.m in Sources */ = {isa = PBXBuildFile; fileRef = 10DF0A9F7333C626351E7E228C63D417 /* NMBExceptionCapture.m */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - CF9218FF56D8EE43681150A3E1635C9A /* ToSucceed.swift in Sources */ = {isa = PBXBuildFile; fileRef = 301EFA0A06246E3648521955A51EA883 /* ToSucceed.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - CFADF946388BBC7FCBD9431FBADA091A /* Zip+arity.swift in Sources */ = {isa = PBXBuildFile; fileRef = 290DAC6B604A682F0114A036C68ACAB5 /* Zip+arity.swift */; }; - D036E69D3D24F818EDD23D198D707245 /* RxCocoa-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = C2B2BCA73B107B7EB50BFC76A5AA357B /* RxCocoa-dummy.m */; }; - D080CE2D53E78493CC40A0AE30C50B6D /* ControlEvent+Driver.swift in Sources */ = {isa = PBXBuildFile; fileRef = EF134C3127F4CF10BDE2BAF3F1EF7D91 /* ControlEvent+Driver.swift */; }; - D0BCA3BCAFD3D3E805E061FDE9BE2FB4 /* RxTabBarDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = A115FA300E4E0DFCEDE623EB59B72427 /* RxTabBarDelegateProxy.swift */; }; - D1108348CD96A925C8201F055F212045 /* SubscriptionDisposable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19D2924C7F6CB06C84170A6A68A44626 /* SubscriptionDisposable.swift */; }; - D1CD3F0684EC754511B9A9ABB82D99EA /* UIGestureRecognizer+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = D28A070ACD08345B0A1453FB5FAC5DEF /* UIGestureRecognizer+Rx.swift */; }; - D1F5C3B6F3DB95E031EF87EF3BAA219E /* RxTableViewSectionedReloadDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = FDBC6A25C54162ED88D91E890B53FD2D /* RxTableViewSectionedReloadDataSource.swift */; }; - D2C5713DE15F353409F88DF09A5DD2D5 /* QuickTestSuite.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C03CF49BCF8FD269336B8C90A3A878F /* QuickTestSuite.swift */; }; - D2E3FD3ACB707CAB83461FBCFC47FA16 /* Resources.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD231060F9267F138A9D6833F1FA9289 /* Resources.swift */; }; - D34D0540ADCBF163575B6B5444B1AAF6 /* Contain.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5A5338032B8E3043020D3C22E636A264 /* Contain.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - D36250609F8C393C82216733EAE20C2D /* String+IdentifiableType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 493CD4CD61B17D9D27F62CE54695504C /* String+IdentifiableType.swift */; }; - D4371D38A4A9EB63BC466E1FF214F2AC /* UIControl+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = CF3B1C1F0AB5064B6849514AEBB6F234 /* UIControl+Rx.swift */; }; - D4441D05A06362B95A4BE32B4908A361 /* Event+Equatable.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9D765BE9C6BD3A760BF6040AE2F8C39 /* Event+Equatable.swift */; }; - D5233EE525CA015250991CF3A64A1D4E /* Then-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 0813EF033187C82CC5490108AE49D327 /* Then-dummy.m */; }; - D6722D812A80170AF5F25C937EBA5C8A /* DispatchQueueConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A27D419E3952478DD17BB33A79BCFE7 /* DispatchQueueConfiguration.swift */; }; - D69057D48682BBBB7929B8325A33D5A2 /* RxAtomic.c in Sources */ = {isa = PBXBuildFile; fileRef = 41647DB27B730C471058E932A7D16F69 /* RxAtomic.c */; }; - D6ED54EE374DA5BCBB5EF0DE634FB946 /* ControlTarget.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9DD1E5D10E9246236EA34289B745BE2B /* ControlTarget.swift */; }; - D755642ECA73CFE2E4C31CDD0DFBA42E /* QuickSpec.h in Headers */ = {isa = PBXBuildFile; fileRef = D9A0133E62A442E90CA105D36C5632EC /* QuickSpec.h */; settings = {ATTRIBUTES = (Public, ); }; }; - D78AAA8D3BE8D344B91400EEF33A07DD /* GroupBy.swift in Sources */ = {isa = PBXBuildFile; fileRef = D673BE3F39CDED753308F6C332364FCE /* GroupBy.swift */; }; - D804127CAD63987B0E39EF93DE372339 /* RecursiveScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4BAD98417AA56563739FA7DAE7502E51 /* RecursiveScheduler.swift */; }; - D83FF1C610A256CA6DC2CD15B799A859 /* Pods-BringMyOwnBeer🍺-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 36BAAF6EE332009B8B07F42AAC220EF0 /* Pods-BringMyOwnBeer🍺-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - D9CFB8E5E354D7BE61D092259779F437 /* Equal.swift in Sources */ = {isa = PBXBuildFile; fileRef = E908021EB8ED9DB683D0522B2A5B23CE /* Equal.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - D9D6150D329A87CBB415FD349F0C50FD /* SourceLocation.swift in Sources */ = {isa = PBXBuildFile; fileRef = B89D28D7924C5A47F2003B3EF77EA4DB /* SourceLocation.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - D9FA347F52DCCB87CE1A212914A3CA4A /* DSL.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0F4D42387393ECC9403C842C0151D6D /* DSL.swift */; }; - DAA7B1837772E9FF67AD333DAC117004 /* RetryWhen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 929BAB594A511C4FD0CE36638062D47B /* RetryWhen.swift */; }; - DAB39BE57F162FCB396D168419104025 /* IdentifiableValue.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0B264F4F74BC800DF88ABDCDF2F56D5 /* IdentifiableValue.swift */; }; - DB78E37361B8DF23F3D7BE246CA9149D /* DispatchQueue+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = F95567ADA1D252506E802AE852BCC1CE /* DispatchQueue+Extensions.swift */; }; - DB84342A0C0DEABBF7F729DE55225D82 /* XCTestObservationCenter+Register.m in Sources */ = {isa = PBXBuildFile; fileRef = EF8B076947FF9357A64A0AD72B2E9099 /* XCTestObservationCenter+Register.m */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - DBB93D3827327B8FB4CFA164C03357E5 /* ConstraintLayoutGuide+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 14BBBCEAC9314B657B6CF3B796F92ABB /* ConstraintLayoutGuide+Extensions.swift */; }; - DCCEFF1B52226DE5ABB2D0043442FE61 /* Constraint.swift in Sources */ = {isa = PBXBuildFile; fileRef = 17E1F5675B0779BD63F7357AEC5B2A44 /* Constraint.swift */; }; - DCD198D49C0A198A09525B7688EE3BC9 /* Async.swift in Sources */ = {isa = PBXBuildFile; fileRef = D6ECEB6CB57031A3FB93BF5AA4525618 /* Async.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - DD9A2F307B89CB270D81BCDEF13F084C /* NSObject+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 183E2FA636D48924DA710FBD7B7DCF7F /* NSObject+Rx.swift */; }; - DE3C67FDE4B38FB1AD6E4CFB9100F87F /* CombineLatest+arity.swift in Sources */ = {isa = PBXBuildFile; fileRef = 330CDFA85788470DFC71A849FDF684A6 /* CombineLatest+arity.swift */; }; - DE66FE0BE69417CCBFCB24902682D441 /* ErrorUtility.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE868A6F2FE1C1E51B2D9BFA4D289C3B /* ErrorUtility.swift */; }; - DEC3E541DB551729EC407FA6566CEE54 /* ConstraintViewDSL.swift in Sources */ = {isa = PBXBuildFile; fileRef = E5E25E066D03BC3710E98027865783C1 /* ConstraintViewDSL.swift */; }; - DF8C66C8806995B88C2CE928312A8A88 /* _RXDelegateProxy.m in Sources */ = {isa = PBXBuildFile; fileRef = 88960002BC6773658CDC8A3D575AFBA3 /* _RXDelegateProxy.m */; }; - DF9055F470FCFA346BCB4875FAC111DA /* AnimationConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6BEE0B5D358C1198C83D094E716B3058 /* AnimationConfiguration.swift */; }; - DFE75009E16A558181D5D8847428D8CD /* Amb.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF54CC6145AF8FEB5AD11177936A2264 /* Amb.swift */; }; - E0D795AFD05DD9ACEB11DF11FA8F6EC1 /* SerialDispatchQueueScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 87999CE957B415DB96C773D01CE90D56 /* SerialDispatchQueueScheduler.swift */; }; - E0EAC85F7ACFAD998B14FCE66144000E /* NMBStringify.h in Headers */ = {isa = PBXBuildFile; fileRef = E54F2391E382C7960427A3C135E55DB0 /* NMBStringify.h */; settings = {ATTRIBUTES = (Public, ); }; }; - E14FFF738797C4BF04DABB46D631116C /* Sink.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B71511FF9E00DE74E26405952C1005A /* Sink.swift */; }; - E1E38D86311435C3AFD2BE26F592C852 /* QuickSelectedTestSuiteBuilder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9741ECC5A71EE898FB7893E01CBC2662 /* QuickSelectedTestSuiteBuilder.swift */; }; - E2C07DE7605EC97E8EF351C2B3AA5230 /* Recorded.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E656EE4912733CBA46792E22C1FD5E6 /* Recorded.swift */; }; - E2C74D9E3AF2B2A96795CC77F7A47280 /* RxCollectionViewDataSourcePrefetchingProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9F1ABE51481B69FE29A34C4E6F25F62A /* RxCollectionViewDataSourcePrefetchingProxy.swift */; }; - E405BEE5687735D0ECCD36B5686F3911 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21B0D6E69CB0A35093C7E92812854A0A /* Foundation.framework */; }; - E43323B5AF303B2C30E7B87CA25F920B /* RxApplicationDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 717AF6116671788D383F3A7A897D2630 /* RxApplicationDelegateProxy.swift */; }; - E45893A55D57C31561716E41DB266024 /* Platform.Linux.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3E0AE2B56127C3EBEDD041C58555C1F5 /* Platform.Linux.swift */; }; - E458AAE1AE9E2250F29806E5633B1860 /* Expression.swift in Sources */ = {isa = PBXBuildFile; fileRef = 32FD105C77178E28945C3B1496EE48FC /* Expression.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - E45F7D5A7B4F909476051A453D74958A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21B0D6E69CB0A35093C7E92812854A0A /* Foundation.framework */; }; - E5DC07A9910DDBDCDDA9CA014CD73049 /* OperationQueueScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD98126F9FCA4FB59CD96E737940CA74 /* OperationQueueScheduler.swift */; }; - E60DB7F034F7B5936671E55A83F32AFB /* Platform.Darwin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2DCEAAE532CCABCD76C33A256E72F1AF /* Platform.Darwin.swift */; }; - E6C8AB5E7E3EAE1882141DF91322A1C7 /* RxCollectionViewDataSourceType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 150FC4692F25A8DA743413203D0F1E1E /* RxCollectionViewDataSourceType.swift */; }; - E6D321D3F511F14447776B3E03F1865E /* VirtualTimeScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40945AEE1BF11436B994FA2428622748 /* VirtualTimeScheduler.swift */; }; - E6DB5342448A58D11EC51A32FC4186BD /* PrimitiveSequence+Zip+arity.swift in Sources */ = {isa = PBXBuildFile; fileRef = F8206FC322C13CDE968391554791269E /* PrimitiveSequence+Zip+arity.swift */; }; - E7814B88CCF58E85FA993E61F8B0C6C6 /* NSTextStorage+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2EA60E047AAEB9ECD1F7008615276760 /* NSTextStorage+Rx.swift */; }; - E7CD948F522D04BDA00D7C87DB55A5AA /* RxCocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 795B4BD213193AD2888241C918DE7FC9 /* RxCocoa.framework */; }; - E85BBB972867783044ADCD772438150F /* ConstraintRelatableTarget.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88ADEB1DB978B5544C7CA2BD04FF5071 /* ConstraintRelatableTarget.swift */; }; - E88BD03CE8F4E720D65EFD79C0FF4A35 /* Queue.swift in Sources */ = {isa = PBXBuildFile; fileRef = 54FF3F16C23175BEC589230E76E047CD /* Queue.swift */; }; - E8A073967B8C3D26F81547944D63D3C8 /* Just.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5A8801376BEA34F5B7713AE7EBDAFD03 /* Just.swift */; }; - E8A8ADCF633CA59E4663D8BF948859FD /* Logging.swift in Sources */ = {isa = PBXBuildFile; fileRef = E04DDB4F9BFBAD98DF13AEEB7470BD76 /* Logging.swift */; }; - E8AAF59142ACBFE22BA1C9A042F2DACC /* IdentifiableType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9ECF7E350B563752D62A16903482E9F8 /* IdentifiableType.swift */; }; - EB0C7F8BD231F0AD120F9DF4E3586F50 /* HotObservable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 719C318CA577E3BB79CCF7EEB11DA4BF /* HotObservable.swift */; }; - EBB042B0DF672488440139CC265B9390 /* SerialDisposable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 10495D11E8A809B4D707BA689BD3C713 /* SerialDisposable.swift */; }; - EBCB8D2376CA0A2CD4093A87D0205715 /* UITableView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = D26FE55FE37901C37603C6DE71C34E50 /* UITableView+Rx.swift */; }; - EBDEC6CA7D2D8AA7D1549A1955B7BBCA /* World+DSL.swift in Sources */ = {isa = PBXBuildFile; fileRef = C64A48BA7652F9C34943471ED5015AF9 /* World+DSL.swift */; }; - EC7EF3D5778783BD93EBC6F82016ADA9 /* BeNil.swift in Sources */ = {isa = PBXBuildFile; fileRef = D39B012DB0BAA5F6F6C5AF4C5F4C477E /* BeNil.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - ECAE211210EA927906E1E36267E7B32D /* TestScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD6374913D4B0A17216007C943A016BE /* TestScheduler.swift */; }; - ECCA1FA570A912E8CDB54EB843F1D030 /* NimbleEnvironment.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5E205B3EBB20919EFA43927C822600A2 /* NimbleEnvironment.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - ECE6E89C4FC5A457C19392FFC17A17BD /* AnimatableSectionModelType+ItemPath.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0F6A3E2740D3F4D568A94DC58D86A844 /* AnimatableSectionModelType+ItemPath.swift */; }; - ED3B15CF02C5D477EC21C466C49E114F /* RxWebViewDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2159511C1D2281E7C825CCA172910808 /* RxWebViewDelegateProxy.swift */; }; - EDB560A510AACB4BBC8060B704275D77 /* Generate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46FDF39C6B8398B0676965FFA67BA6C1 /* Generate.swift */; }; - EE2B76A1015936D3B867283CD72FB55E /* ToastCenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 32A1B81F9D55EB48F95D77EA5E33734E /* ToastCenter.swift */; }; - EE85C486A0DB45BD2B6B1A9080AD94C8 /* PublishSubject.swift in Sources */ = {isa = PBXBuildFile; fileRef = 91260163FCC7B248806C09339D2B2018 /* PublishSubject.swift */; }; - EF6299ADE36BFF34A15402F16258B34F /* RxBlocking-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 2FC3E13874104CFC8BF1D264A1F02074 /* RxBlocking-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - EFB9CC9267297D8104141A4046AAD14E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21B0D6E69CB0A35093C7E92812854A0A /* Foundation.framework */; }; - EFC84C58C4D386D7FE9B4127659913C4 /* RecursiveLock.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79A2F4E0BB5348855DD38263C7D811D5 /* RecursiveLock.swift */; }; - F004C49FFE75A540A8BA7239FCC0FB8A /* SynchronizedUnsubscribeType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8ABDA40BCC9A32B30BD5046A9824694E /* SynchronizedUnsubscribeType.swift */; }; - F0562AD660DBEBD3A0B689932D6C999D /* DeprecationWarner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E88ABA1AB8CABD15092ADABFDC04D1C /* DeprecationWarner.swift */; }; - F17EE6104C588E80F5B2CC83FF7A8045 /* Queue.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDE2B0EDC73B85AC384DD2B6DE3487E4 /* Queue.swift */; }; - F310B21703A7BC438A09DDB96670583F /* AssertionRecorder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 91DD1C1AC02C8FC30EBC316026D93D86 /* AssertionRecorder.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - F41CA723E31884664B9C032D90EAEF1A /* ConstraintInsetTarget.swift in Sources */ = {isa = PBXBuildFile; fileRef = 707EA9A5CEBF90839C46A3BA32506F1B /* ConstraintInsetTarget.swift */; }; - F43793390955DC14E48DFEDB68FE64EE /* Pods-BringMyOwnBeer🍺Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 067E05326DCC450CFEF9C59B51F190E7 /* Pods-BringMyOwnBeer🍺Tests-dummy.m */; }; - F4877B3857C780DCDB7F413A03F95600 /* BeCloseTo.swift in Sources */ = {isa = PBXBuildFile; fileRef = F679311338662CF686458210A6AD83F0 /* BeCloseTo.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - F558A8DA654CC4593F734EDF7C2DF366 /* Platform.Linux.swift in Sources */ = {isa = PBXBuildFile; fileRef = FE5071CC00703FE0B1B6897805A55D5E /* Platform.Linux.swift */; }; - F62A14B41B447EB036F3B0E54801C4A3 /* Completable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7CB0634025B5024A235C72746E34C790 /* Completable.swift */; }; - F62DB3CB5CD01003323FBB8B6104FA0B /* UINavigationController+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = A79734FC816D0CA3A97117ABD611A64B /* UINavigationController+Rx.swift */; }; - F67DAB8DF9F93328DD60850D26669A32 /* PublishRelay.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2466DC5BDE13F92D905FD131B462D7A /* PublishRelay.swift */; }; - F6C7F81AA5BBC4042A3A78D5EA8E62A4 /* ConstraintLayoutSupportDSL.swift in Sources */ = {isa = PBXBuildFile; fileRef = B11A3337C903BA712F1A2C431901A310 /* ConstraintLayoutSupportDSL.swift */; }; - F6E0848D44FE0078B8735E03DDFE44A0 /* Binder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 678A9B780A7EBAEFDD202BA57F83350C /* Binder.swift */; }; - F6F59BE23739FE251A338B577FC43150 /* Skip.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6FDE07F97CC225DC206BFDCF1341C98 /* Skip.swift */; }; - F71B67106C939917A35E27FE22983A46 /* Never.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6124D5B49A40371B719AAF596D24D65E /* Never.swift */; }; - F78E35D04F09485FA5DFA72FE1AD5AB2 /* NMBStringify.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D65432717C107937A619B6C55339EE5 /* NMBStringify.m */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - F7E805BBA95B4696E9F5D2E66F86C110 /* Bag.swift in Sources */ = {isa = PBXBuildFile; fileRef = EF63A633E9D929E38F030D3A3568A6DA /* Bag.swift */; }; - F7F3FD457D634C70AF7E5ADC758A7B0B /* RxSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EACFC6C42F7516E2D1D06CEBC7CDCB9A /* RxSwift.framework */; }; - F80D9DE6C306B5125AD6A15ECCE04451 /* Then-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 42672C0E98347BD1D3FA7CDCE777736E /* Then-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - F915163D06E3B4292970D1E64AFD2BD8 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21B0D6E69CB0A35093C7E92812854A0A /* Foundation.framework */; }; - F983A1FFF609D277B4426EFBE239B265 /* BinaryDisposable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8EE6FFB478B90CC12E1E4F2F7DF92F48 /* BinaryDisposable.swift */; }; - F9A19EB812EE6E996C94374D8E6E697C /* QCKDSL.m in Sources */ = {isa = PBXBuildFile; fileRef = A0DD298D5AEED8CBEADB672E71F886A0 /* QCKDSL.m */; }; - F9BC0BCD165A3FCA8636CE51007A28A2 /* Filter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6DFBA8AC501C7CA242AF691CFEC75BD3 /* Filter.swift */; }; - F9BC73B3051603ABAA7617C56391CF7F /* ViewTransition.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51D11BC83E1ACF754CFC35393BF505DA /* ViewTransition.swift */; }; - F9E85548BF1EF8C5035BAF92233C34B6 /* RaisesException.swift in Sources */ = {isa = PBXBuildFile; fileRef = 457E34E5144A73C160B17545A9D7ABD6 /* RaisesException.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - FB5512276670F74B36572E3DEA0827F2 /* Closures.swift in Sources */ = {isa = PBXBuildFile; fileRef = 66D12F2ECCCF11F23ED2BD876A0ECF3A /* Closures.swift */; }; - FB8621FA9D79A23C6D8BDDCE724078C9 /* RxTabBarControllerDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A15F960F34E00AB47206EC5814201A1 /* RxTabBarControllerDelegateProxy.swift */; }; - FBBE9D9A2D1C31E86BEABF94B224C4EE /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E3A5A06D55ACE09DF1941935D042D8AF /* XCTest.framework */; }; - FE473CEE8A4027910D1D9ED3B74DBEDB /* PriorityQueue.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7CE79889430E817A637252F86A2CE217 /* PriorityQueue.swift */; }; - FF0E3F8B3FB568ACBB1BC433D67ED093 /* ConstraintMakerExtendable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9BE6EAEFDF58B358BE70074E15701F3E /* ConstraintMakerExtendable.swift */; }; - FF2BC2B85F63247A9B0987167467D05B /* NSButton+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 01AE586FC2B7064FB791FC5ECDE32945 /* NSButton+Rx.swift */; }; - FF4FBF4135279ED5A19E394533D9A350 /* TextInput.swift in Sources */ = {isa = PBXBuildFile; fileRef = C444BD2A402080C463CF4AE7A4CDF63C /* TextInput.swift */; }; - FF920E965F1CA016FF302DE8C92C5122 /* CwlBadInstructionException.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8E7B7F4BFBD1598C8169CDFD44D39DFC /* CwlBadInstructionException.swift */; settings = {COMPILER_FLAGS = "-DPRODUCT_NAME=Nimble/Nimble"; }; }; - FFD51653EB35D5CEFE302E846CE04642 /* Reactive.swift in Sources */ = {isa = PBXBuildFile; fileRef = 741D4C5652FF476A48549A2277EC4354 /* Reactive.swift */; }; - FFE7A02118B5288BC94F7422D6CFEB3F /* ConstraintLayoutGuide.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8DE8A420689DF4101EA7FD990A11516B /* ConstraintLayoutGuide.swift */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 1553B76F87650E3186621C0B2E8355DC /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = EA9EA43B3B503823EE36C60D9C8A865F; - remoteInfo = RxSwift; - }; - 23247FE3E3664B68A9FF70049956BE38 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 401909D4FB2014BF539896BF0CCA48C2; - remoteInfo = RxDataSources; - }; - 24911E3F25144E1E8614FC8445831816 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 6F13695E06195A78EA8A95F8C7ED0D2F; - remoteInfo = Nimble; - }; - 2F0C0B49F5EA7144FDC23AA52291CAA5 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = C8D93C508E21FFD4EE60D335DD6C22E3; - remoteInfo = RxTest; - }; - 36A501537D21298600480D33A9DA3D0F /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 3B2E405FB76A0E213CE57985A423DED6; - remoteInfo = RxAtomic; - }; - 390B9D6200A5F921ECC03060913A12A1 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = EA9EA43B3B503823EE36C60D9C8A865F; - remoteInfo = RxSwift; - }; - 3A94F9F07AA3811B5DDADDF6A33B04B8 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = EA9EA43B3B503823EE36C60D9C8A865F; - remoteInfo = RxSwift; - }; - 3AFA6CBA16FF7BFD3769447DFF18771A /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = F243B36381C0CE83CCFF789AC38F0D36; - remoteInfo = RxBlocking; - }; - 3C5451F48C34802A075369BDF4365FE7 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 7AD0C6DCDC9CEC8A3C7C10C7FEE07BE6; - remoteInfo = RxCocoa; - }; - 3F026DE7AC5EC55D04D6DD065C0F3EAE /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = EA9EA43B3B503823EE36C60D9C8A865F; - remoteInfo = RxSwift; - }; - 42D59F6D4DC4D36088E7A36CEA103CD8 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = EA9EA43B3B503823EE36C60D9C8A865F; - remoteInfo = RxSwift; - }; - 43EA40881DEB09B031E054ED72EE1749 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = EA9EA43B3B503823EE36C60D9C8A865F; - remoteInfo = RxSwift; - }; - 44D91DD00B30CE2E6F047BA5CDADDD91 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = C82891EAB7293DBEE916B21F57E8474D; - remoteInfo = Quick; - }; - 4519FB762D2FEDEB195DDD265F8C6574 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 3B2E405FB76A0E213CE57985A423DED6; - remoteInfo = RxAtomic; - }; - 48B436E526AA37C8A14C70AEDEB80CB4 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 7AD0C6DCDC9CEC8A3C7C10C7FEE07BE6; - remoteInfo = RxCocoa; - }; - 5023C809D4CE1DD4E118F9694F5941A1 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 7AD0C6DCDC9CEC8A3C7C10C7FEE07BE6; - remoteInfo = RxCocoa; - }; - 50A3BB36E06092025ACB82B3D1C1587E /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 46E48C41E3556F8E41D231C8FD9B7471; - remoteInfo = RxKeyboard; - }; - 5330BEA972F1A0945CBD604AEE93B43A /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = B1CBF9D69A9EB43C8FB167DFF56AF739; - remoteInfo = "Pods-BringMyOwnBeer🍺"; - }; - 59118DA0CD20403B95965F803F14F0CD /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 212F79CE462FC723AF42979B57FBB8A6; - remoteInfo = Differentiator; - }; - 59689F4C19355FB7F1AA4180DFB8FF9B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = EA9EA43B3B503823EE36C60D9C8A865F; - remoteInfo = RxSwift; - }; - 5C600E3885D1E74CA474CAF3EC2CAD93 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 7AD0C6DCDC9CEC8A3C7C10C7FEE07BE6; - remoteInfo = RxCocoa; - }; - 5EAC5535A75D2A71EB847F9F2E9C6CAB /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = C17AEFC79E770A2906EFAAB1A3757406; - remoteInfo = Then; - }; - 601EB4510DDE56949786A1F050836FE8 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 7AD0C6DCDC9CEC8A3C7C10C7FEE07BE6; - remoteInfo = RxCocoa; - }; - 60C6B32C5C30A7AF1502E99F7CABE99C /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = EA9EA43B3B503823EE36C60D9C8A865F; - remoteInfo = RxSwift; - }; - 6581A0EB69025CA162DD32C912366526 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = B1CBF9D69A9EB43C8FB167DFF56AF739; - remoteInfo = "Pods-BringMyOwnBeer🍺"; - }; - 706886EE1AFC0268940220702FC60C8D /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = F243B36381C0CE83CCFF789AC38F0D36; - remoteInfo = RxBlocking; - }; - 7246648510C0AE95E6783B847DB671C0 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = EA9EA43B3B503823EE36C60D9C8A865F; - remoteInfo = RxSwift; - }; - 987C10EDFF8F9F8678EB5F3480C3EC13 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = EA9EA43B3B503823EE36C60D9C8A865F; - remoteInfo = RxSwift; - }; - A82DE90F851E243D4FE12C11ABA462F7 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = E8022D22FAA6690B5E1C379C1BCE1491; - remoteInfo = Kingfisher; - }; - AF2E22985D6CF3CF1E19EE593ABE2C8A /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 19622742EBA51E823D6DAE3F8CDBFAD4; - remoteInfo = SnapKit; - }; - B3F27AB8643D58EF37DA7E38F62A7D67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = C82891EAB7293DBEE916B21F57E8474D; - remoteInfo = Quick; - }; - B5C1BBACA8662D668198AC77BAFD4E69 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 3D8B1104C8B4F5AD74F600289D7A12AD; - remoteInfo = RxOptional; - }; - B92F91E527B289E8670DBBFF8E2FA2AF /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = B90AB98A7BC6A346D671B36DB990DAC2; - remoteInfo = Toaster; - }; - BAA2DD4D108B0372D12BCF4ACB500A86 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 3B2E405FB76A0E213CE57985A423DED6; - remoteInfo = RxAtomic; - }; - E237E6E7997F0C5BC5ACDB01BE6E1BA0 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 212F79CE462FC723AF42979B57FBB8A6; - remoteInfo = Differentiator; - }; - E5B91882ECB541383C191A825B747091 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 6F13695E06195A78EA8A95F8C7ED0D2F; - remoteInfo = Nimble; - }; - F2CB8D7AEE7CEBB3787ED7A617459330 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 3B2E405FB76A0E213CE57985A423DED6; - remoteInfo = RxAtomic; - }; - FADF993BD5758B6C8B21363FFE7132D6 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = C8D93C508E21FFD4EE60D335DD6C22E3; - remoteInfo = RxTest; - }; - FE5055DF0DC44A2B378A528FF6AAC1E4 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 2CEE308D2C2024ABC968E3474B843F0E; - remoteInfo = RxAppState; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 001F793ECDA8F6E2E1A378D298210D96 /* Optional+Extensions.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Optional+Extensions.swift"; path = "Sources/Differentiator/Optional+Extensions.swift"; sourceTree = ""; }; - 00C87E9D800CAEDB9209FD1BCFECDD1B /* UIApplication+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIApplication+Rx.swift"; path = "RxCocoa/iOS/UIApplication+Rx.swift"; sourceTree = ""; }; - 00FF7F2C5190B0AD0C9F920C988921F8 /* Driver+Subscription.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Driver+Subscription.swift"; path = "RxCocoa/Traits/Driver/Driver+Subscription.swift"; sourceTree = ""; }; - 012098211E5B49211F0B867AC8842AA6 /* Pods-BringMyOwnBeer🍺Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-BringMyOwnBeer🍺Tests-umbrella.h"; sourceTree = ""; }; - 017484E363F4120536CD0F4EDADC4BD6 /* Bag.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Bag.swift; path = Platform/DataStructures/Bag.swift; sourceTree = ""; }; - 01AE586FC2B7064FB791FC5ECDE32945 /* NSButton+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSButton+Rx.swift"; path = "RxCocoa/macOS/NSButton+Rx.swift"; sourceTree = ""; }; - 01D85A9A0121303C4781CF7E22F03995 /* UIDatePicker+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIDatePicker+Rx.swift"; path = "RxCocoa/iOS/UIDatePicker+Rx.swift"; sourceTree = ""; }; - 0216AFDBCD1642D1004F90BF05C567DB /* Map.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Map.swift; path = RxSwift/Observables/Map.swift; sourceTree = ""; }; - 0308C40A3C61760276AF40DEE6C2DD52 /* RxAtomic.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RxAtomic.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 031893FD3D882E436EC541DF783B1276 /* RxTest.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = RxTest.framework; path = RxTest.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 0428B98FB37E90FE79DC0913EE4A2D4E /* AsSingle.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AsSingle.swift; path = RxSwift/Observables/AsSingle.swift; sourceTree = ""; }; - 046366E26B086E0C7AC338A4DF19EE83 /* _RXObjCRuntime.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = _RXObjCRuntime.h; path = RxCocoa/Runtime/include/_RXObjCRuntime.h; sourceTree = ""; }; - 048ECDDF0CDFE8406F1FB2A4CD73CB16 /* RxAppState-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxAppState-prefix.pch"; sourceTree = ""; }; - 04B50948547DF86E3A5FFE5FF48FDF54 /* TestSchedulerVirtualTimeConverter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = TestSchedulerVirtualTimeConverter.swift; path = RxTest/Schedulers/TestSchedulerVirtualTimeConverter.swift; sourceTree = ""; }; - 055B4D6BEEA04E5C126F9768A8764265 /* RxOptional-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "RxOptional-Info.plist"; sourceTree = ""; }; - 05C3F2A8A64E81EFA22EF98FB83BC303 /* TakeLast.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = TakeLast.swift; path = RxSwift/Observables/TakeLast.swift; sourceTree = ""; }; - 05E538AF8505070EEF607A5E0B108D6E /* ConstraintMakerRelatable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintMakerRelatable.swift; path = Source/ConstraintMakerRelatable.swift; sourceTree = ""; }; - 0638D2BA7601954EDA8F6D1492C73F02 /* UIPageControl+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIPageControl+Rx.swift"; path = "RxCocoa/iOS/UIPageControl+Rx.swift"; sourceTree = ""; }; - 064BB2988CFB114E003F3CA400BD1178 /* ToastWindow.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ToastWindow.swift; path = Sources/ToastWindow.swift; sourceTree = ""; }; - 064D890DDB50ADF15C3B3B04DB3753AB /* ObserverBase.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ObserverBase.swift; path = RxSwift/Observers/ObserverBase.swift; sourceTree = ""; }; - 065980E342A2FA9EE1D248FEE72293C0 /* AnimatableSectionModelType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AnimatableSectionModelType.swift; path = Sources/Differentiator/AnimatableSectionModelType.swift; sourceTree = ""; }; - 067E05326DCC450CFEF9C59B51F190E7 /* Pods-BringMyOwnBeer🍺Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-BringMyOwnBeer🍺Tests-dummy.m"; sourceTree = ""; }; - 068FF503C0A1204CBE4C8190D8C32A17 /* BlockingObservable+Operators.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "BlockingObservable+Operators.swift"; path = "RxBlocking/BlockingObservable+Operators.swift"; sourceTree = ""; }; - 06BB4EEA40FEA2F1B4FDCB79B4D3A50A /* RxTableViewReactiveArrayDataSource.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxTableViewReactiveArrayDataSource.swift; path = RxCocoa/iOS/DataSources/RxTableViewReactiveArrayDataSource.swift; sourceTree = ""; }; - 074A0D6460BFBB3D683A927B0F350B86 /* PrimitiveSequence.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PrimitiveSequence.swift; path = RxSwift/Traits/PrimitiveSequence.swift; sourceTree = ""; }; - 076348A52773E49DF901F4E76346D9AC /* UISearchController+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UISearchController+Rx.swift"; path = "RxCocoa/iOS/UISearchController+Rx.swift"; sourceTree = ""; }; - 07D2AEDDF5E6256B8E9884DF2B5B1785 /* SchedulerType+SharedSequence.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "SchedulerType+SharedSequence.swift"; path = "RxCocoa/Traits/SharedSequence/SchedulerType+SharedSequence.swift"; sourceTree = ""; }; - 07EB2F05796CC03CBE836CB0692D9711 /* RxSearchControllerDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxSearchControllerDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxSearchControllerDelegateProxy.swift; sourceTree = ""; }; - 0813EF033187C82CC5490108AE49D327 /* Then-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Then-dummy.m"; sourceTree = ""; }; - 0842E624530FCE792ED785919B960653 /* RxNavigationControllerDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxNavigationControllerDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxNavigationControllerDelegateProxy.swift; sourceTree = ""; }; - 09001B441CC67A808A4D1E99054D15EF /* RxAppState.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = RxAppState.modulemap; sourceTree = ""; }; - 09DCB634B295F04288F86B6982FB2161 /* Image.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Image.swift; path = Sources/Image.swift; sourceTree = ""; }; - 0A15F960F34E00AB47206EC5814201A1 /* RxTabBarControllerDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxTabBarControllerDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxTabBarControllerDelegateProxy.swift; sourceTree = ""; }; - 0A1F52905F34295B6D0E08B19E8EBDE5 /* _RX.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = _RX.m; path = RxCocoa/Runtime/_RX.m; sourceTree = ""; }; - 0AF8D1F1A5CF8898986CCE5891A2D27F /* InfiniteSequence.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = InfiniteSequence.swift; path = Platform/DataStructures/InfiniteSequence.swift; sourceTree = ""; }; - 0B1E05E5A4F0CE4B4B3AD9EC22E653AC /* InvocableType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = InvocableType.swift; path = RxSwift/Schedulers/Internal/InvocableType.swift; sourceTree = ""; }; - 0B55E8D4041C5E15820B9582E2EEF211 /* Pods-BringMyOwnBeer🍺UITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-BringMyOwnBeer🍺UITests.debug.xcconfig"; sourceTree = ""; }; - 0B71511FF9E00DE74E26405952C1005A /* Sink.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Sink.swift; path = RxSwift/Observables/Sink.swift; sourceTree = ""; }; - 0B9C577045E010F487E572FBEE9E11DD /* Then-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Then-prefix.pch"; sourceTree = ""; }; - 0BC9E61C21762BA0040E538EEF0EEE0E /* BlockingObservable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BlockingObservable.swift; path = RxBlocking/BlockingObservable.swift; sourceTree = ""; }; - 0BDF5071FA032D9950142958CDCCAFBD /* RxScrollViewDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxScrollViewDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxScrollViewDelegateProxy.swift; sourceTree = ""; }; - 0BF160C01FA27445198F1D1FD61180E2 /* RxSwift-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "RxSwift-Info.plist"; sourceTree = ""; }; - 0C8145937F520C2398247877A2413DF8 /* UIAlertAction+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIAlertAction+Rx.swift"; path = "RxCocoa/iOS/UIAlertAction+Rx.swift"; sourceTree = ""; }; - 0CB5EF8CBAE752E2EED61DDB98A7EDA3 /* ImageCache.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ImageCache.swift; path = Sources/ImageCache.swift; sourceTree = ""; }; - 0D631E9908483F9525A6B3F36F16CC61 /* Quick.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Quick.framework; path = Quick.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 0D6E8DE419E2ECA8AAD7DABF34513187 /* Delay.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Delay.swift; path = RxSwift/Observables/Delay.swift; sourceTree = ""; }; - 0DD41DF0E1341FA9B1FA89B785B7A698 /* ObservableType+Extensions.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ObservableType+Extensions.swift"; path = "RxSwift/ObservableType+Extensions.swift"; sourceTree = ""; }; - 0E0A6039ACA5062D91D39B9F4FE0854D /* Kingfisher-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Kingfisher-dummy.m"; sourceTree = ""; }; - 0E0CBC6DA7E43AA095C471D7BC0C442A /* NotificationCenter+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NotificationCenter+Rx.swift"; path = "RxCocoa/Foundation/NotificationCenter+Rx.swift"; sourceTree = ""; }; - 0E27C0BF8F637E57CB0EB2A52C98760E /* InfiniteSequence.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = InfiniteSequence.swift; path = Platform/DataStructures/InfiniteSequence.swift; sourceTree = ""; }; - 0E2EC37387773524D153E11E7F9EBBE7 /* ConstraintMakerPriortizable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintMakerPriortizable.swift; path = Source/ConstraintMakerPriortizable.swift; sourceTree = ""; }; - 0F2559B623EE0CA209155804CB8EB071 /* Kingfisher-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Kingfisher-Info.plist"; sourceTree = ""; }; - 0F4D4EE0E77834786A386C7BEADDFC74 /* Stringers.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Stringers.swift; path = Sources/Nimble/Utils/Stringers.swift; sourceTree = ""; }; - 0F632B42FEE52492C14DBB402D39067F /* UITabBarController+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UITabBarController+Rx.swift"; path = "RxCocoa/iOS/UITabBarController+Rx.swift"; sourceTree = ""; }; - 0F6A3E2740D3F4D568A94DC58D86A844 /* AnimatableSectionModelType+ItemPath.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "AnimatableSectionModelType+ItemPath.swift"; path = "Sources/Differentiator/AnimatableSectionModelType+ItemPath.swift"; sourceTree = ""; }; - 10495D11E8A809B4D707BA689BD3C713 /* SerialDisposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SerialDisposable.swift; path = RxSwift/Disposables/SerialDisposable.swift; sourceTree = ""; }; - 104FC62B3760A833E5FE0E08622BA0FD /* ConstraintMaker.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintMaker.swift; path = Source/ConstraintMaker.swift; sourceTree = ""; }; - 1062435FA42E6945ADEE04BD71492F91 /* BeLogical.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BeLogical.swift; path = Sources/Nimble/Matchers/BeLogical.swift; sourceTree = ""; }; - 106A8B9AD19CE8E755BC8AE305560F4B /* Filter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Filter.swift; path = Sources/Quick/Filter.swift; sourceTree = ""; }; - 10BA37FB1082EF5BB93D2F0AAC48AF70 /* EndWith.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = EndWith.swift; path = Sources/Nimble/Matchers/EndWith.swift; sourceTree = ""; }; - 10DF0A9F7333C626351E7E228C63D417 /* NMBExceptionCapture.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = NMBExceptionCapture.m; path = Sources/NimbleObjectiveC/NMBExceptionCapture.m; sourceTree = ""; }; - 1120DDA5E2663592AC3C3808F212C6C3 /* ImmediateSchedulerType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ImmediateSchedulerType.swift; path = RxSwift/ImmediateSchedulerType.swift; sourceTree = ""; }; - 11AEA80566EEBAD66A90897784D64A33 /* Toaster-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Toaster-prefix.pch"; sourceTree = ""; }; - 1212937543EACB74713B464E86E0DBBF /* RxPickerViewAdapter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxPickerViewAdapter.swift; path = RxCocoa/iOS/DataSources/RxPickerViewAdapter.swift; sourceTree = ""; }; - 121D17DF8C732B29E7BE3212922F9C1F /* RxTableViewDataSourceType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxTableViewDataSourceType.swift; path = RxCocoa/iOS/Protocols/RxTableViewDataSourceType.swift; sourceTree = ""; }; - 122767D73009A7CA36CD1AF206D28B8E /* _RX.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = _RX.h; path = RxCocoa/Runtime/include/_RX.h; sourceTree = ""; }; - 12848100A80F6DCDF05E32490784A0BD /* RxOptional.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = RxOptional.modulemap; sourceTree = ""; }; - 1295DBA2BFCB554368C35A67BE3BA308 /* SnapKit-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SnapKit-umbrella.h"; sourceTree = ""; }; - 12E1FC38BBF9DE850C77F8FC20453D1F /* NSObject+Rx+RawRepresentable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSObject+Rx+RawRepresentable.swift"; path = "RxCocoa/Foundation/NSObject+Rx+RawRepresentable.swift"; sourceTree = ""; }; - 13172CD85F7B68A0E9CCA872C50B6E90 /* AsMaybe.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AsMaybe.swift; path = RxSwift/Observables/AsMaybe.swift; sourceTree = ""; }; - 1331F02B467B705569FB3DCE4C350C8E /* DelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DelegateProxy.swift; path = RxCocoa/Common/DelegateProxy.swift; sourceTree = ""; }; - 13432447F7471F17BDA2BAAAE87B1865 /* ElementAt.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ElementAt.swift; path = RxSwift/Observables/ElementAt.swift; sourceTree = ""; }; - 1440BBCB400B618AE4A67CFE7BA8BD38 /* RecursiveLock.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RecursiveLock.swift; path = Platform/RecursiveLock.swift; sourceTree = ""; }; - 14BBBCEAC9314B657B6CF3B796F92ABB /* ConstraintLayoutGuide+Extensions.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ConstraintLayoutGuide+Extensions.swift"; path = "Source/ConstraintLayoutGuide+Extensions.swift"; sourceTree = ""; }; - 150FC4692F25A8DA743413203D0F1E1E /* RxCollectionViewDataSourceType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxCollectionViewDataSourceType.swift; path = RxCocoa/iOS/Protocols/RxCollectionViewDataSourceType.swift; sourceTree = ""; }; - 171F33894F843A1BEE2A0618E62E8B22 /* UILabel+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UILabel+Rx.swift"; path = "RxCocoa/iOS/UILabel+Rx.swift"; sourceTree = ""; }; - 1721DAF6D797105F413647453E6F0347 /* RxAppState-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxAppState-umbrella.h"; sourceTree = ""; }; - 17E1F5675B0779BD63F7357AEC5B2A44 /* Constraint.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Constraint.swift; path = Source/Constraint.swift; sourceTree = ""; }; - 183E2FA636D48924DA710FBD7B7DCF7F /* NSObject+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSObject+Rx.swift"; path = "RxCocoa/Foundation/NSObject+Rx.swift"; sourceTree = ""; }; - 1841F89ECE40449753B75CF046CE8A9A /* UIPickerView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIPickerView+Rx.swift"; path = "RxCocoa/iOS/UIPickerView+Rx.swift"; sourceTree = ""; }; - 192BCC0B455A9ED7D2FD7D487AA25835 /* ObserverType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ObserverType.swift; path = RxSwift/ObserverType.swift; sourceTree = ""; }; - 19A0321C2FBCFED68871AA61B04B8C79 /* SchedulerType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SchedulerType.swift; path = RxSwift/SchedulerType.swift; sourceTree = ""; }; - 19D2924C7F6CB06C84170A6A68A44626 /* SubscriptionDisposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SubscriptionDisposable.swift; path = RxSwift/Disposables/SubscriptionDisposable.swift; sourceTree = ""; }; - 19DFD51A051DDCD14BE4D2E34B80F778 /* Pods-BringMyOwnBeer🍺-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-BringMyOwnBeer🍺-acknowledgements.plist"; sourceTree = ""; }; - 1A6D9B7E4CAAF3F91A39139F68FB5421 /* Pods-BringMyOwnBeer🍺-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-BringMyOwnBeer🍺-dummy.m"; sourceTree = ""; }; - 1AB37380A4F805849D80DF17FE08439E /* TakeWhile.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = TakeWhile.swift; path = RxSwift/Observables/TakeWhile.swift; sourceTree = ""; }; - 1B9D91E7E7489D7746911B814FEA1098 /* RxAtomic-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "RxAtomic-Info.plist"; sourceTree = ""; }; - 1CE5AC0D801D3277464D566D92686EB9 /* CollectionViewSectionedDataSource.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CollectionViewSectionedDataSource.swift; path = Sources/RxDataSources/CollectionViewSectionedDataSource.swift; sourceTree = ""; }; - 1D00BDF2190153639CC42AD3148C2178 /* SharedSequence+Optional.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "SharedSequence+Optional.swift"; path = "Source/SharedSequence+Optional.swift"; sourceTree = ""; }; - 1DCC5ED8F88C635BB4F80D233845334A /* RefCountDisposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RefCountDisposable.swift; path = RxSwift/Disposables/RefCountDisposable.swift; sourceTree = ""; }; - 1DCEED5C8D0F2D5290EA1D21C78DE8EA /* ImageModifier.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ImageModifier.swift; path = Sources/ImageModifier.swift; sourceTree = ""; }; - 1E2E1EDA2C0264572FB6A585BE51E95A /* AdapterProtocols.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AdapterProtocols.swift; path = Sources/Nimble/Adapters/AdapterProtocols.swift; sourceTree = ""; }; - 1E88ABA1AB8CABD15092ADABFDC04D1C /* DeprecationWarner.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DeprecationWarner.swift; path = Platform/DeprecationWarner.swift; sourceTree = ""; }; - 1EAA22B7CD86143383B514ED9AE4CF44 /* String+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "String+Rx.swift"; path = "RxSwift/Extensions/String+Rx.swift"; sourceTree = ""; }; - 1FFD756874D15203AD21F1D10E000A81 /* AnonymousDisposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AnonymousDisposable.swift; path = RxSwift/Disposables/AnonymousDisposable.swift; sourceTree = ""; }; - 200C40469489C62638C1961E03423EE4 /* Producer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Producer.swift; path = RxSwift/Observables/Producer.swift; sourceTree = ""; }; - 2159511C1D2281E7C825CCA172910808 /* RxWebViewDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxWebViewDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxWebViewDelegateProxy.swift; sourceTree = ""; }; - 21B0D6E69CB0A35093C7E92812854A0A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; - 21CD4834437EABAD899F1D7D2D912C96 /* UIScrollView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIScrollView+Rx.swift"; path = "RxCocoa/iOS/UIScrollView+Rx.swift"; sourceTree = ""; }; - 2267184171A040097204A9731CED518A /* UITextField+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UITextField+Rx.swift"; path = "RxCocoa/iOS/UITextField+Rx.swift"; sourceTree = ""; }; - 2274093D1E1C66395EF449961B81E0ED /* Reduce.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Reduce.swift; path = RxSwift/Observables/Reduce.swift; sourceTree = ""; }; - 229F185658716FE21650ADC75842F6CA /* Optional.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Optional.swift; path = RxSwift/Observables/Optional.swift; sourceTree = ""; }; - 22C6A70865C14EF0BA1C3666E261788B /* Debug.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Debug.swift; path = RxSwift/Observables/Debug.swift; sourceTree = ""; }; - 23CDFB4DED74AF64108CE39090A0C24A /* NSImageView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSImageView+Rx.swift"; path = "RxCocoa/macOS/NSImageView+Rx.swift"; sourceTree = ""; }; - 23DBE98B380204708571AA195DDBB59D /* ExpectationMessage.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpectationMessage.swift; path = Sources/Nimble/ExpectationMessage.swift; sourceTree = ""; }; - 23FADAFCB5103D42AC7D58C7559172E7 /* RxCollectionViewSectionedAnimatedDataSource.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxCollectionViewSectionedAnimatedDataSource.swift; path = Sources/RxDataSources/RxCollectionViewSectionedAnimatedDataSource.swift; sourceTree = ""; }; - 24099C51A5180FE42CF848AE2E9AE013 /* RxCocoa.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxCocoa.swift; path = RxCocoa/RxCocoa.swift; sourceTree = ""; }; - 244CAA2B09F0727719BE386EBF2470B5 /* Pods-BringMyOwnBeer🍺UITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-BringMyOwnBeer🍺UITests.release.xcconfig"; sourceTree = ""; }; - 2520AB0F8FA27B50D5645091F1B9ADBD /* Deprecated.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Deprecated.swift; path = RxTest/Deprecated.swift; sourceTree = ""; }; - 253B52C8E2925282DE9567BDE9A97B25 /* ConstraintPriorityTarget.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintPriorityTarget.swift; path = Source/ConstraintPriorityTarget.swift; sourceTree = ""; }; - 25E1450047A529253FEBD67512B53C36 /* ObservableConvertibleType+Driver.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ObservableConvertibleType+Driver.swift"; path = "RxCocoa/Traits/Driver/ObservableConvertibleType+Driver.swift"; sourceTree = ""; }; - 25F63A531105CD4E1E4CCF5B918C5494 /* RxBlocking.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = RxBlocking.framework; path = RxBlocking.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 26251C408EED8A6B05C90027F0B72BDC /* ObservableConvertibleType+Signal.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ObservableConvertibleType+Signal.swift"; path = "RxCocoa/Traits/Signal/ObservableConvertibleType+Signal.swift"; sourceTree = ""; }; - 268D0CC79DCCF9AB9F0DFE45FAED2532 /* DelaySubscription.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DelaySubscription.swift; path = RxSwift/Observables/DelaySubscription.swift; sourceTree = ""; }; - 26ED9DAE5DDEECE82FFA5B9AB9AB83E1 /* RxKeyboard-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "RxKeyboard-dummy.m"; sourceTree = ""; }; - 26FFB097B4190151DCE33C82DE473D14 /* RxBlocking.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = RxBlocking.modulemap; sourceTree = ""; }; - 272D7E08C80909A11772F993C32A55DD /* HistoricalSchedulerTimeConverter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = HistoricalSchedulerTimeConverter.swift; path = RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift; sourceTree = ""; }; - 276B2552A1C04AAB78BEA46675E70B98 /* NimbleXCTestHandler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = NimbleXCTestHandler.swift; path = Sources/Nimble/Adapters/NimbleXCTestHandler.swift; sourceTree = ""; }; - 27A3A27A460912217B1D4F8E339865BA /* RxKeyboard-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxKeyboard-prefix.pch"; sourceTree = ""; }; - 290DAC6B604A682F0114A036C68ACAB5 /* Zip+arity.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Zip+arity.swift"; path = "RxSwift/Observables/Zip+arity.swift"; sourceTree = ""; }; - 2939E7D1A5119D2C1CF3BD2DDC3B9EE1 /* AnimatedImageView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AnimatedImageView.swift; path = Sources/AnimatedImageView.swift; sourceTree = ""; }; - 294AAB061743552EFA25B9307587B968 /* Using.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Using.swift; path = RxSwift/Observables/Using.swift; sourceTree = ""; }; - 2959ED5B51EC3AE70C34E1831CAE5BDB /* ConstraintView+Extensions.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ConstraintView+Extensions.swift"; path = "Source/ConstraintView+Extensions.swift"; sourceTree = ""; }; - 29726DB7A25E2F2AE26B13FA7B4E1F84 /* CwlCatchBadInstruction.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CwlCatchBadInstruction.swift; path = Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlCatchBadInstruction.swift; sourceTree = ""; }; - 2AABC12F44AD12B6C726421FD5C480FC /* CwlPreconditionTesting.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = CwlPreconditionTesting.h; path = Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/Mach/CwlPreconditionTesting.h; sourceTree = ""; }; - 2AF982951E0526CD7846B86CBE6B0FB1 /* RxCollectionViewReactiveArrayDataSource.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxCollectionViewReactiveArrayDataSource.swift; path = RxCocoa/iOS/DataSources/RxCollectionViewReactiveArrayDataSource.swift; sourceTree = ""; }; - 2B7702E3BCA01A6023F8DDF5C45EEA01 /* ThrowError.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ThrowError.swift; path = Sources/Nimble/Matchers/ThrowError.swift; sourceTree = ""; }; - 2C9AEA4B5727BABD04A99023584D2E32 /* Match.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Match.swift; path = Sources/Nimble/Matchers/Match.swift; sourceTree = ""; }; - 2D61B6C9462B284D26232BEB6715EDE9 /* Disposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Disposable.swift; path = RxSwift/Disposable.swift; sourceTree = ""; }; - 2DCEAAE532CCABCD76C33A256E72F1AF /* Platform.Darwin.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Platform.Darwin.swift; path = Platform/Platform.Darwin.swift; sourceTree = ""; }; - 2DE701152346EB65E8EB0A4708D8A32F /* Throttle.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Throttle.swift; path = RxSwift/Observables/Throttle.swift; sourceTree = ""; }; - 2EA60E047AAEB9ECD1F7008615276760 /* NSTextStorage+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSTextStorage+Rx.swift"; path = "RxCocoa/iOS/NSTextStorage+Rx.swift"; sourceTree = ""; }; - 2FC3E13874104CFC8BF1D264A1F02074 /* RxBlocking-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxBlocking-umbrella.h"; sourceTree = ""; }; - 301EFA0A06246E3648521955A51EA883 /* ToSucceed.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ToSucceed.swift; path = Sources/Nimble/Matchers/ToSucceed.swift; sourceTree = ""; }; - 307039565B0BE1495D89B2D17067B816 /* NSTextField+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSTextField+Rx.swift"; path = "RxCocoa/macOS/NSTextField+Rx.swift"; sourceTree = ""; }; - 30878B867ED48B6EE34D657B4B6B8575 /* ConstraintAttributes.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintAttributes.swift; path = Source/ConstraintAttributes.swift; sourceTree = ""; }; - 30B63BA877D78A118CCD9C348CE41C80 /* Window.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Window.swift; path = RxSwift/Observables/Window.swift; sourceTree = ""; }; - 3135ED76FB8D4E46B1376D236BA80FCD /* LayoutConstraint.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = LayoutConstraint.swift; path = Source/LayoutConstraint.swift; sourceTree = ""; }; - 319D849354E982581577B5023EABFD5A /* ConnectableObservableType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConnectableObservableType.swift; path = RxSwift/ConnectableObservableType.swift; sourceTree = ""; }; - 31CD8A524033BCEAC3FAB5ACBF0B2100 /* UISlider+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UISlider+Rx.swift"; path = "RxCocoa/iOS/UISlider+Rx.swift"; sourceTree = ""; }; - 31EA9C125BB634DC09985F1CCF9818A5 /* SynchronizedOnType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SynchronizedOnType.swift; path = RxSwift/Concurrency/SynchronizedOnType.swift; sourceTree = ""; }; - 3200C300588B081EFF47300B89E37860 /* Cancelable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Cancelable.swift; path = RxSwift/Cancelable.swift; sourceTree = ""; }; - 32A1B81F9D55EB48F95D77EA5E33734E /* ToastCenter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ToastCenter.swift; path = Sources/ToastCenter.swift; sourceTree = ""; }; - 32FD105C77178E28945C3B1496EE48FC /* Expression.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Expression.swift; path = Sources/Nimble/Expression.swift; sourceTree = ""; }; - 330CDFA85788470DFC71A849FDF684A6 /* CombineLatest+arity.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "CombineLatest+arity.swift"; path = "RxSwift/Observables/CombineLatest+arity.swift"; sourceTree = ""; }; - 339C4776A985F8B7A718ADA89384951B /* ElementsEqual.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ElementsEqual.swift; path = Sources/Nimble/Matchers/ElementsEqual.swift; sourceTree = ""; }; - 33D7756907CB63759438D1A15DF0633C /* ConstraintMultiplierTarget.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintMultiplierTarget.swift; path = Source/ConstraintMultiplierTarget.swift; sourceTree = ""; }; - 33FE5FA8209CCF1425BF8B0406E3EF80 /* SingleAssignmentDisposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SingleAssignmentDisposable.swift; path = RxSwift/Disposables/SingleAssignmentDisposable.swift; sourceTree = ""; }; - 343A75734A4B4826A0B6651E229704C2 /* Then.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = Then.modulemap; sourceTree = ""; }; - 34F5CB17929B81FA31781316DFEE8472 /* UIApplication+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIApplication+Rx.swift"; path = "Pod/Classes/UIApplication+Rx.swift"; sourceTree = ""; }; - 35A9F44AE6912C0C6846B174CFF3AABD /* RxOptional-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxOptional-prefix.pch"; sourceTree = ""; }; - 364FADE043BB5379CFE8F43A575F271D /* OptionalType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = OptionalType.swift; path = Source/OptionalType.swift; sourceTree = ""; }; - 36BAAF6EE332009B8B07F42AAC220EF0 /* Pods-BringMyOwnBeer🍺-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-BringMyOwnBeer🍺-umbrella.h"; sourceTree = ""; }; - 372270D1E307DA65812EB5924C43E334 /* RxTest.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = RxTest.modulemap; sourceTree = ""; }; - 38B05587552A2C1CC56A9560B7556ADD /* RxKeyboard.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = RxKeyboard.framework; path = RxKeyboard.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 38D7CC81FB22FA3EF364800C964A01C6 /* RxDataSources-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "RxDataSources-dummy.m"; sourceTree = ""; }; - 38DB6E104F77BC1187DE872C4399DEAB /* ControlEvent.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ControlEvent.swift; path = RxCocoa/Traits/ControlEvent.swift; sourceTree = ""; }; - 3979F0D3B741CD16AB2D22F9C2F0CAE1 /* BeGreaterThanOrEqualTo.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BeGreaterThanOrEqualTo.swift; path = Sources/Nimble/Matchers/BeGreaterThanOrEqualTo.swift; sourceTree = ""; }; - 39CB84CE75228FF39CB01CCF7BF0CAC0 /* MatcherFunc.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = MatcherFunc.swift; path = Sources/Nimble/Matchers/MatcherFunc.swift; sourceTree = ""; }; - 39E14B1202BD0219F43A424AB4B37A01 /* SectionModelType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SectionModelType.swift; path = Sources/Differentiator/SectionModelType.swift; sourceTree = ""; }; - 3A451828C3D6777C14E0F94CD915BF0D /* NSTextView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSTextView+Rx.swift"; path = "RxCocoa/macOS/NSTextView+Rx.swift"; sourceTree = ""; }; - 3B8FA09116468234C56B8A441C961486 /* RxKeyboard-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "RxKeyboard-Info.plist"; sourceTree = ""; }; - 3BE04F0C0CF8B84105E0847FCCF16C92 /* UIProgressView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIProgressView+Rx.swift"; path = "RxCocoa/iOS/UIProgressView+Rx.swift"; sourceTree = ""; }; - 3C4F6478576D6E71FF3B0937B21AD999 /* DistinctUntilChanged.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DistinctUntilChanged.swift; path = RxSwift/Observables/DistinctUntilChanged.swift; sourceTree = ""; }; - 3D0411045C48436737FA23F548AC23F1 /* ItemPath.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ItemPath.swift; path = Sources/Differentiator/ItemPath.swift; sourceTree = ""; }; - 3E0AE2B56127C3EBEDD041C58555C1F5 /* Platform.Linux.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Platform.Linux.swift; path = Platform/Platform.Linux.swift; sourceTree = ""; }; - 3E5B18BD615072FF1415B163E4B512A7 /* UINavigationItem+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UINavigationItem+Rx.swift"; path = "RxCocoa/iOS/UINavigationItem+Rx.swift"; sourceTree = ""; }; - 3FB4EA7679C957AA2FF56D302AF2826D /* BehaviorRelay+Driver.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "BehaviorRelay+Driver.swift"; path = "RxCocoa/Traits/Driver/BehaviorRelay+Driver.swift"; sourceTree = ""; }; - 3FB566D9B02EAFAAAF4E9C7AD4887179 /* FormatIndicatedCacheSerializer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = FormatIndicatedCacheSerializer.swift; path = Sources/FormatIndicatedCacheSerializer.swift; sourceTree = ""; }; - 3FE4815A7E918843EE95DC0D2123EE7F /* Pods_BringMyOwnBeer_UITests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_BringMyOwnBeer_UITests.framework; path = "Pods-BringMyOwnBeer🍺UITests.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; - 4089B46645E8114718C5A2D4E9B9E7EC /* TableViewSectionedDataSource.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = TableViewSectionedDataSource.swift; path = Sources/RxDataSources/TableViewSectionedDataSource.swift; sourceTree = ""; }; - 40945AEE1BF11436B994FA2428622748 /* VirtualTimeScheduler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = VirtualTimeScheduler.swift; path = RxSwift/Schedulers/VirtualTimeScheduler.swift; sourceTree = ""; }; - 40BF6A98F1E1D89122398AD2673548A2 /* StartWith.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = StartWith.swift; path = RxSwift/Observables/StartWith.swift; sourceTree = ""; }; - 41647DB27B730C471058E932A7D16F69 /* RxAtomic.c */ = {isa = PBXFileReference; includeInIndex = 1; name = RxAtomic.c; path = RxAtomic/RxAtomic.c; sourceTree = ""; }; - 418173B6DFE6539A0A1A2566B5901822 /* Sample.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Sample.swift; path = RxSwift/Observables/Sample.swift; sourceTree = ""; }; - 4189997D8434955D12F8A9F1C0A2472C /* Any+Equatable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Any+Equatable.swift"; path = "RxTest/Any+Equatable.swift"; sourceTree = ""; }; - 41BED0A6E0D812AB7C0A569A47DA8E4D /* SharedSequence+Operators+arity.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "SharedSequence+Operators+arity.swift"; path = "RxCocoa/Traits/SharedSequence/SharedSequence+Operators+arity.swift"; sourceTree = ""; }; - 42672C0E98347BD1D3FA7CDCE777736E /* Then-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Then-umbrella.h"; sourceTree = ""; }; - 429DBB7AB9A5E6E1AF75231016A4058F /* ControlProperty+Driver.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ControlProperty+Driver.swift"; path = "RxCocoa/Traits/Driver/ControlProperty+Driver.swift"; sourceTree = ""; }; - 439E34BF6F3982618B22886070F943E3 /* Expectation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Expectation.swift; path = Sources/Nimble/Expectation.swift; sourceTree = ""; }; - 43F36EDF9958FD4EB4CF11BB9B21AF1F /* Kingfisher-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Kingfisher-umbrella.h"; sourceTree = ""; }; - 4426174B5E8BDA0281FB54FE1AF7D182 /* HooksPhase.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = HooksPhase.swift; path = Sources/Quick/Hooks/HooksPhase.swift; sourceTree = ""; }; - 448B85A144AB99471DCEFC89E19E53A9 /* Kingfisher.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Kingfisher.xcconfig; sourceTree = ""; }; - 457E34E5144A73C160B17545A9D7ABD6 /* RaisesException.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RaisesException.swift; path = Sources/Nimble/Matchers/RaisesException.swift; sourceTree = ""; }; - 459CFD09639D614F3ADE8F532C498775 /* DeprecationWarner.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DeprecationWarner.swift; path = Platform/DeprecationWarner.swift; sourceTree = ""; }; - 45D1AA2F971B3AE90902E343430D64BB /* RxDataSources-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxDataSources-umbrella.h"; sourceTree = ""; }; - 465CA5EE6DADA1C411BBED8FA0D86E1A /* SectionModel.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SectionModel.swift; path = Sources/Differentiator/SectionModel.swift; sourceTree = ""; }; - 465E813069145C6947D74622FDA24F80 /* Utilities.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Utilities.swift; path = Sources/Differentiator/Utilities.swift; sourceTree = ""; }; - 4668B009D39689EEB1847C72B0C63F1D /* SwiftSupport.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SwiftSupport.swift; path = RxSwift/SwiftSupport/SwiftSupport.swift; sourceTree = ""; }; - 469DA7F9A5249C54FBE98201B9A960AB /* ColdObservable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ColdObservable.swift; path = RxTest/ColdObservable.swift; sourceTree = ""; }; - 46E8FA32B698CCF40DF95B60C4FF554F /* QuickConfiguration.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = QuickConfiguration.m; path = Sources/QuickObjectiveC/Configuration/QuickConfiguration.m; sourceTree = ""; }; - 46FD3C6FAC5804936932501C05ED93C0 /* SnapKit-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "SnapKit-dummy.m"; sourceTree = ""; }; - 46FDF39C6B8398B0676965FFA67BA6C1 /* Generate.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Generate.swift; path = RxSwift/Observables/Generate.swift; sourceTree = ""; }; - 489C32A42C39C8EE740332B6E98B99EA /* ContainElementSatisfying.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ContainElementSatisfying.swift; path = Sources/Nimble/Matchers/ContainElementSatisfying.swift; sourceTree = ""; }; - 490F1FED015A657E2225514F05A52E96 /* RxAtomic-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxAtomic-prefix.pch"; sourceTree = ""; }; - 4926634F66A8CA968FAC1A3997349482 /* _RXKVOObserver.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = _RXKVOObserver.m; path = RxCocoa/Runtime/_RXKVOObserver.m; sourceTree = ""; }; - 493CD4CD61B17D9D27F62CE54695504C /* String+IdentifiableType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "String+IdentifiableType.swift"; path = "Sources/RxDataSources/String+IdentifiableType.swift"; sourceTree = ""; }; - 498153CFA2BB4C0F6AED039F5C551D9E /* Differentiator-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Differentiator-umbrella.h"; sourceTree = ""; }; - 4996CF4BCF8425E2EF209C0070FBB241 /* Quick.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = Quick.h; path = Sources/QuickObjectiveC/Quick.h; sourceTree = ""; }; - 4A229BBB04F25906012093091E26ECB1 /* RxKeyboard-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxKeyboard-umbrella.h"; sourceTree = ""; }; - 4AC2C02DDA14A2127BC4AE6A0B56E36D /* Quick-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Quick-dummy.m"; sourceTree = ""; }; - 4AFFC130AE708495613014ADACA2F482 /* InfiniteSequence.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = InfiniteSequence.swift; path = Platform/DataStructures/InfiniteSequence.swift; sourceTree = ""; }; - 4B0F49BE5D0E202BA20F6B8E5F2716C0 /* mach_excServer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = mach_excServer.h; path = Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlMachBadInstructionHandler/mach_excServer.h; sourceTree = ""; }; - 4B2DB2ED0440FF5F5D4318C72256C5CF /* CwlMachBadInstructionHandler.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = CwlMachBadInstructionHandler.h; path = Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlMachBadInstructionHandler/include/CwlMachBadInstructionHandler.h; sourceTree = ""; }; - 4B8348F37E91925D3E74545FD1B35A18 /* _RXDelegateProxy.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = _RXDelegateProxy.h; path = RxCocoa/Runtime/include/_RXDelegateProxy.h; sourceTree = ""; }; - 4BAD98417AA56563739FA7DAE7502E51 /* RecursiveScheduler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RecursiveScheduler.swift; path = RxSwift/Schedulers/RecursiveScheduler.swift; sourceTree = ""; }; - 4BE91791249B13D821A8B5169B2E340B /* UIViewController+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIViewController+Rx.swift"; path = "Pod/Classes/UIViewController+Rx.swift"; sourceTree = ""; }; - 4BF3AE4A570FA9B1A8DA134E2BB8E675 /* Pods-BringMyOwnBeer🍺Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-BringMyOwnBeer🍺Tests-acknowledgements.markdown"; sourceTree = ""; }; - 4C023D7AF28B1ED3ADA11B00D49D49DD /* UIRefreshControl+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIRefreshControl+Rx.swift"; path = "RxCocoa/iOS/UIRefreshControl+Rx.swift"; sourceTree = ""; }; - 4C03CF49BCF8FD269336B8C90A3A878F /* QuickTestSuite.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = QuickTestSuite.swift; path = Sources/Quick/QuickTestSuite.swift; sourceTree = ""; }; - 4C35B14998E0AAEE2D66D54DD09C159B /* Pods_BringMyOwnBeer_.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_BringMyOwnBeer_.framework; path = "Pods-BringMyOwnBeer🍺.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; - 4C983CE27D555CF9A6935B25ED202B31 /* ConstraintConfig.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintConfig.swift; path = Source/ConstraintConfig.swift; sourceTree = ""; }; - 4D19EE451F9E54B4AFDCECF0FBD5ECF4 /* Nimble.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = Nimble.modulemap; sourceTree = ""; }; - 4D2274482FA45ABDF3A22F4236C4AC1C /* ControlProperty.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ControlProperty.swift; path = RxCocoa/Traits/ControlProperty.swift; sourceTree = ""; }; - 4D44EFB3386242263F8A8A5CA84DA368 /* DisposeBase.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DisposeBase.swift; path = RxSwift/Disposables/DisposeBase.swift; sourceTree = ""; }; - 4D988352889B8B012BBA5FC9D1669537 /* ConstraintLayoutGuideDSL.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintLayoutGuideDSL.swift; path = Source/ConstraintLayoutGuideDSL.swift; sourceTree = ""; }; - 4DC9006B903CCE0D9444778A451B30EA /* Pods-BringMyOwnBeer🍺.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-BringMyOwnBeer🍺.debug.xcconfig"; sourceTree = ""; }; - 4DDDE9294EB5F25449B5A3257F49B17B /* Scan.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Scan.swift; path = RxSwift/Observables/Scan.swift; sourceTree = ""; }; - 4DE96D35D16C3DA7EE4C9C726C9B8C2A /* NSSlider+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSSlider+Rx.swift"; path = "RxCocoa/macOS/NSSlider+Rx.swift"; sourceTree = ""; }; - 4E3D986DF536046EF3348C64F33BD015 /* ControlEvent+Signal.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ControlEvent+Signal.swift"; path = "RxCocoa/Traits/Signal/ControlEvent+Signal.swift"; sourceTree = ""; }; - 4E656EE4912733CBA46792E22C1FD5E6 /* Recorded.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Recorded.swift; path = RxTest/Recorded.swift; sourceTree = ""; }; - 4E6AAD57EEBA396168FF3AA364EC9455 /* RxPickerViewAdapter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxPickerViewAdapter.swift; path = Sources/RxDataSources/RxPickerViewAdapter.swift; sourceTree = ""; }; - 4E993802C8FC55992E621E235C247377 /* NSControl+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSControl+Rx.swift"; path = "RxCocoa/macOS/NSControl+Rx.swift"; sourceTree = ""; }; - 4F3D11170C9CEC45F542BFE83450E59A /* RxKeyboard.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxKeyboard.swift; path = Sources/RxKeyboard/RxKeyboard.swift; sourceTree = ""; }; - 4FD335DD68D661E0FA76F5DCEAF878E9 /* ExampleMetadata.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExampleMetadata.swift; path = Sources/Quick/ExampleMetadata.swift; sourceTree = ""; }; - 4FDA4B5961C86B680CD902B7105E8418 /* KingfisherManager.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = KingfisherManager.swift; path = Sources/KingfisherManager.swift; sourceTree = ""; }; - 500CB50E8FAA87BD36398690AD3E81B9 /* KingfisherOptionsInfo.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = KingfisherOptionsInfo.swift; path = Sources/KingfisherOptionsInfo.swift; sourceTree = ""; }; - 513595B4001C9D47BAA1727CDB9623B6 /* AsyncSubject.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AsyncSubject.swift; path = RxSwift/Subjects/AsyncSubject.swift; sourceTree = ""; }; - 5174026C60B7F0099D7C269C789D216B /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/CFNetwork.framework; sourceTree = DEVELOPER_DIR; }; - 51B8B5BAD717EC58D68C8AAA7A3BFFBA /* QuickSpecBase.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = QuickSpecBase.m; path = Sources/QuickSpecBase/QuickSpecBase.m; sourceTree = ""; }; - 51D11BC83E1ACF754CFC35393BF505DA /* ViewTransition.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ViewTransition.swift; path = Sources/RxDataSources/ViewTransition.swift; sourceTree = ""; }; - 51E92D6FB4E3DD8C58969F7E9035C3BC /* Predicate.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Predicate.swift; path = Sources/Nimble/Matchers/Predicate.swift; sourceTree = ""; }; - 520D3D1FFD5A41E3A65B09AABD967D13 /* RecursiveLock.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RecursiveLock.swift; path = Platform/RecursiveLock.swift; sourceTree = ""; }; - 527B333EF233231FFAD19B3B47BFA4EA /* RxCollectionViewSectionedReloadDataSource.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxCollectionViewSectionedReloadDataSource.swift; path = Sources/RxDataSources/RxCollectionViewSectionedReloadDataSource.swift; sourceTree = ""; }; - 534C283D45A9F844D7BADC3D8D846362 /* ConstraintRelation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintRelation.swift; path = Source/ConstraintRelation.swift; sourceTree = ""; }; - 53E038523BDEFCFCF48679062CC54605 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; - 5492F9330776E1274F6A66C071721942 /* RunLoopLock.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RunLoopLock.swift; path = RxBlocking/RunLoopLock.swift; sourceTree = ""; }; - 54D5EE715D52C6E381D9F1F0F2D43128 /* RxOptionalError.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxOptionalError.swift; path = Source/RxOptionalError.swift; sourceTree = ""; }; - 54FF3F16C23175BEC589230E76E047CD /* Queue.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Queue.swift; path = Platform/DataStructures/Queue.swift; sourceTree = ""; }; - 552F9D32B23F883C86F8FD4B4FF95710 /* Timeout.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Timeout.swift; path = RxSwift/Observables/Timeout.swift; sourceTree = ""; }; - 555B07110806FF30C9B762E666E3998F /* SectionedViewDataSourceType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SectionedViewDataSourceType.swift; path = RxCocoa/Common/SectionedViewDataSourceType.swift; sourceTree = ""; }; - 5582AC76559B86E5217B4452DABA39AC /* BeginWith.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BeginWith.swift; path = Sources/Nimble/Matchers/BeginWith.swift; sourceTree = ""; }; - 55BAA808C5C1DE059EC3C73396D912AB /* RxDataSources.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = RxDataSources.modulemap; sourceTree = ""; }; - 57483B0E911FA2468867DCB5C3DE13AB /* Repeat.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Repeat.swift; path = RxSwift/Observables/Repeat.swift; sourceTree = ""; }; - 57C3104865D236DE468AEB961DFE3E66 /* Occupiable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Occupiable.swift; path = Source/Occupiable.swift; sourceTree = ""; }; - 580B9221A64597D1889B7FB0140CC344 /* Pods-BringMyOwnBeer🍺Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-BringMyOwnBeer🍺Tests.debug.xcconfig"; sourceTree = ""; }; - 589E3937132F02B4FA6044B35ECA8382 /* ConstraintOffsetTarget.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintOffsetTarget.swift; path = Source/ConstraintOffsetTarget.swift; sourceTree = ""; }; - 5920B320FEC631060AA90F43381D9229 /* Zip.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Zip.swift; path = RxSwift/Observables/Zip.swift; sourceTree = ""; }; - 59D20D34037E166F4AB90C364C3DC017 /* InfiniteSequence.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = InfiniteSequence.swift; path = Platform/DataStructures/InfiniteSequence.swift; sourceTree = ""; }; - 5A4EBC2ACF584B6EFE1FCAD11F266127 /* SkipWhile.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SkipWhile.swift; path = RxSwift/Observables/SkipWhile.swift; sourceTree = ""; }; - 5A5338032B8E3043020D3C22E636A264 /* Contain.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Contain.swift; path = Sources/Nimble/Matchers/Contain.swift; sourceTree = ""; }; - 5A8801376BEA34F5B7713AE7EBDAFD03 /* Just.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Just.swift; path = RxSwift/Observables/Just.swift; sourceTree = ""; }; - 5AFBEA93E6056A346EFE0C3E8AC90EC2 /* RxSwift-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "RxSwift-dummy.m"; sourceTree = ""; }; - 5BEE89A857C73C0A286514892D76CB2F /* SubjectType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SubjectType.swift; path = RxSwift/Subjects/SubjectType.swift; sourceTree = ""; }; - 5C317CEAE3D7D2C867B0202521A7ADAF /* CacheSerializer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CacheSerializer.swift; path = Sources/CacheSerializer.swift; sourceTree = ""; }; - 5C360012F00E3453F917C117606AE2C8 /* SwitchIfEmpty.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SwitchIfEmpty.swift; path = RxSwift/Observables/SwitchIfEmpty.swift; sourceTree = ""; }; - 5D65432717C107937A619B6C55339EE5 /* NMBStringify.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = NMBStringify.m; path = Sources/NimbleObjectiveC/NMBStringify.m; sourceTree = ""; }; - 5D7050A620AEE80D4D361CBA885DEFE4 /* RxKeyboard.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = RxKeyboard.modulemap; sourceTree = ""; }; - 5E1451DDAB42CBA9B7AE273812CB5EE5 /* Subscription.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Subscription.swift; path = RxTest/Subscription.swift; sourceTree = ""; }; - 5E205B3EBB20919EFA43927C822600A2 /* NimbleEnvironment.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = NimbleEnvironment.swift; path = Sources/Nimble/Adapters/NimbleEnvironment.swift; sourceTree = ""; }; - 5E8A84302D4E2919841B2574DFF6AA34 /* Toaster-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Toaster-Info.plist"; sourceTree = ""; }; - 603613513381DBFF5B3BB7C2BA0F3B9F /* Errors.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Errors.swift; path = RxSwift/Errors.swift; sourceTree = ""; }; - 60BCB01A441FA09986EEAE1896450253 /* Pods-BringMyOwnBeer🍺Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-BringMyOwnBeer🍺Tests-frameworks.sh"; sourceTree = ""; }; - 6124D5B49A40371B719AAF596D24D65E /* Never.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Never.swift; path = RxSwift/Observables/Never.swift; sourceTree = ""; }; - 6131E5A9EE04BF28D85689DEC9CFA6B4 /* RxAtomic.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = RxAtomic.modulemap; sourceTree = ""; }; - 6343EDB4C36D752D27C630752AFF9859 /* Deprecated.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Deprecated.swift; path = Sources/RxDataSources/Deprecated.swift; sourceTree = ""; }; - 64E71347EC5DBA86D182FF656FF68111 /* RxCocoa.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = RxCocoa.h; path = RxCocoa/RxCocoa.h; sourceTree = ""; }; - 657C0FF35E8D2798A68F88233113A229 /* UISearchBar+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UISearchBar+Rx.swift"; path = "RxCocoa/iOS/UISearchBar+Rx.swift"; sourceTree = ""; }; - 65814D4597C3B32EE00704496F729778 /* DelegateProxyType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DelegateProxyType.swift; path = RxCocoa/Common/DelegateProxyType.swift; sourceTree = ""; }; - 65E9C6AAA6811AF674762F215FB0D4E0 /* Differentiator-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Differentiator-prefix.pch"; sourceTree = ""; }; - 66286B3127232102D0C5EC09AAAA898C /* TailRecursiveSink.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = TailRecursiveSink.swift; path = RxSwift/Observers/TailRecursiveSink.swift; sourceTree = ""; }; - 665B8321E25873AF6AC5A912897D1EFF /* Configuration.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Configuration.swift; path = Sources/Quick/Configuration/Configuration.swift; sourceTree = ""; }; - 66D12F2ECCCF11F23ED2BD876A0ECF3A /* Closures.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Closures.swift; path = Sources/Quick/Hooks/Closures.swift; sourceTree = ""; }; - 678A9B780A7EBAEFDD202BA57F83350C /* Binder.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Binder.swift; path = RxCocoa/Common/Binder.swift; sourceTree = ""; }; - 67A09DBB4CCF5BE7702CE0CF9F1AAF7E /* Timer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Timer.swift; path = RxSwift/Observables/Timer.swift; sourceTree = ""; }; - 67BCA6C3981D6E2547AC7E4EB59774F1 /* NMBExceptionCapture.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = NMBExceptionCapture.h; path = Sources/NimbleObjectiveC/NMBExceptionCapture.h; sourceTree = ""; }; - 67EA302965EB9B7064571AF0E9105B87 /* Observable+Optional.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Observable+Optional.swift"; path = "Source/Observable+Optional.swift"; sourceTree = ""; }; - 6860A0C856F0DF9B899BCF4F153C7A15 /* ObservableType+PrimitiveSequence.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ObservableType+PrimitiveSequence.swift"; path = "RxSwift/Traits/ObservableType+PrimitiveSequence.swift"; sourceTree = ""; }; - 692F92D73EC27270EA9CC9575C3E65B6 /* RxDataSources.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = RxDataSources.framework; path = RxDataSources.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 69A1B8A3E88C9BE1E3A80F48F7E5B544 /* BehaviorRelay.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BehaviorRelay.swift; path = RxCocoa/Traits/BehaviorRelay.swift; sourceTree = ""; }; - 69CDEE82C8878DBCAE2F09BB2A9ADEE9 /* DeprecationWarner.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DeprecationWarner.swift; path = Platform/DeprecationWarner.swift; sourceTree = ""; }; - 6A27D419E3952478DD17BB33A79BCFE7 /* DispatchQueueConfiguration.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DispatchQueueConfiguration.swift; path = RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift; sourceTree = ""; }; - 6A85124D91BC86C0211D340EA71B5672 /* Empty.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Empty.swift; path = RxSwift/Observables/Empty.swift; sourceTree = ""; }; - 6BAF6D9F1D286D9E1E634557142D74B2 /* RecursiveLock.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RecursiveLock.swift; path = Platform/RecursiveLock.swift; sourceTree = ""; }; - 6BEE0B5D358C1198C83D094E716B3058 /* AnimationConfiguration.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AnimationConfiguration.swift; path = Sources/RxDataSources/AnimationConfiguration.swift; sourceTree = ""; }; - 6C5E54D629602933704CE09CAA943FD7 /* NopDisposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = NopDisposable.swift; path = RxSwift/Disposables/NopDisposable.swift; sourceTree = ""; }; - 6CEA158BB2D6D4CBDBDB229B6D54F467 /* ImageProcessor.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ImageProcessor.swift; path = Sources/ImageProcessor.swift; sourceTree = ""; }; - 6D7045124907F71937E332737198D438 /* UI+SectionedViewType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UI+SectionedViewType.swift"; path = "Sources/RxDataSources/UI+SectionedViewType.swift"; sourceTree = ""; }; - 6DFBA8AC501C7CA242AF691CFEC75BD3 /* Filter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Filter.swift; path = Sources/Filter.swift; sourceTree = ""; }; - 6E8B117B96C740B8CA27A9A6D2B422AC /* Pods-BringMyOwnBeer🍺.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-BringMyOwnBeer🍺.modulemap"; sourceTree = ""; }; - 6F32A5F0F6D7A13DB47E8F994AB5E8EA /* RxTest.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = RxTest.xcconfig; sourceTree = ""; }; - 6F536219BE196C6FF684FEA5E96EF67B /* Pods-BringMyOwnBeer🍺UITests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-BringMyOwnBeer🍺UITests-Info.plist"; sourceTree = ""; }; - 6F653373143C397FBB99062C270851CF /* RxSwift.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = RxSwift.xcconfig; sourceTree = ""; }; - 6F80B25A4AE1DB8D3308972771A97400 /* Bag+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Bag+Rx.swift"; path = "RxSwift/Extensions/Bag+Rx.swift"; sourceTree = ""; }; - 6F8641CA08559BFBE426F370AA2EDD91 /* RequestModifier.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RequestModifier.swift; path = Sources/RequestModifier.swift; sourceTree = ""; }; - 702F11DBB597626C4B3E00E99C1C799B /* CombineLatest.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CombineLatest.swift; path = RxSwift/Observables/CombineLatest.swift; sourceTree = ""; }; - 70577D53A5C40E75560F1501EA339979 /* RxAppState-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "RxAppState-dummy.m"; sourceTree = ""; }; - 7078B45FE9DF3AE28A138F2BB6F703E5 /* Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Rx.swift; path = RxSwift/Rx.swift; sourceTree = ""; }; - 707EA9A5CEBF90839C46A3BA32506F1B /* ConstraintInsetTarget.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintInsetTarget.swift; path = Source/ConstraintInsetTarget.swift; sourceTree = ""; }; - 70972418B4A2E6860EC7FA32B3151DDB /* Toast.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Toast.swift; path = Sources/Toast.swift; sourceTree = ""; }; - 70A3CF9AB195D28F298012620C8424B8 /* ExampleHooks.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExampleHooks.swift; path = Sources/Quick/Hooks/ExampleHooks.swift; sourceTree = ""; }; - 71780E3BD527569FCE1624B53F1406C4 /* ThrowAssertion.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ThrowAssertion.swift; path = Sources/Nimble/Matchers/ThrowAssertion.swift; sourceTree = ""; }; - 717AF6116671788D383F3A7A897D2630 /* RxApplicationDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxApplicationDelegateProxy.swift; path = Pod/Classes/RxApplicationDelegateProxy.swift; sourceTree = ""; }; - 719C318CA577E3BB79CCF7EEB11DA4BF /* HotObservable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = HotObservable.swift; path = RxTest/HotObservable.swift; sourceTree = ""; }; - 728F0C67B50D748AE638133A05316137 /* ScheduledItem.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ScheduledItem.swift; path = RxSwift/Schedulers/Internal/ScheduledItem.swift; sourceTree = ""; }; - 7348969365C0E4E4D1798CDE8AFB80C0 /* BeIdenticalTo.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BeIdenticalTo.swift; path = Sources/Nimble/Matchers/BeIdenticalTo.swift; sourceTree = ""; }; - 7376601BDF7F04AD21EE15F792E11511 /* PriorityQueue.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PriorityQueue.swift; path = Platform/DataStructures/PriorityQueue.swift; sourceTree = ""; }; - 7395E33A8646C45E9A447A6EBB90DB06 /* SharedSequence.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SharedSequence.swift; path = RxCocoa/Traits/SharedSequence/SharedSequence.swift; sourceTree = ""; }; - 73BBB9929E9BE5A566FAD9F1AEC10F4D /* ConstraintView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintView.swift; path = Source/ConstraintView.swift; sourceTree = ""; }; - 740196738107B92013B8313B37AAC5CF /* TakeUntil.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = TakeUntil.swift; path = RxSwift/Observables/TakeUntil.swift; sourceTree = ""; }; - 740AA8E00DBE56339456AB8D47B83B9C /* RxAtomic-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "RxAtomic-dummy.m"; sourceTree = ""; }; - 741D4C5652FF476A48549A2277EC4354 /* Reactive.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Reactive.swift; path = RxSwift/Reactive.swift; sourceTree = ""; }; - 742EF47B540A808FA9AE990780E74864 /* QCKDSL.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = QCKDSL.h; path = Sources/QuickObjectiveC/DSL/QCKDSL.h; sourceTree = ""; }; - 7453FE9780EF9D30228CE5F744F52792 /* BeLessThanOrEqual.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BeLessThanOrEqual.swift; path = Sources/Nimble/Matchers/BeLessThanOrEqual.swift; sourceTree = ""; }; - 757605E8D621DF448AC15EE7D71D0B71 /* Signal.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Signal.swift; path = RxCocoa/Traits/Signal/Signal.swift; sourceTree = ""; }; - 7590C7F791088DCB9BAD46D95886DCDD /* SatisfyAllOf.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SatisfyAllOf.swift; path = Sources/Nimble/Matchers/SatisfyAllOf.swift; sourceTree = ""; }; - 75DB0EAF48663886CC1D533DD6D4E63E /* RxTextViewDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxTextViewDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxTextViewDelegateProxy.swift; sourceTree = ""; }; - 761B94845B9AFBF32654F44E8F60486E /* RxSearchBarDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxSearchBarDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxSearchBarDelegateProxy.swift; sourceTree = ""; }; - 772215DDE79D94D74A1F632CD7598DAB /* Platform.Darwin.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Platform.Darwin.swift; path = Platform/Platform.Darwin.swift; sourceTree = ""; }; - 7723090601538C76D76AFE241C837F7D /* FloatingPointType+IdentifiableType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "FloatingPointType+IdentifiableType.swift"; path = "Sources/RxDataSources/FloatingPointType+IdentifiableType.swift"; sourceTree = ""; }; - 77BD33A1035F0D03D0D4A44DC0320D19 /* RxTableViewDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxTableViewDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxTableViewDelegateProxy.swift; sourceTree = ""; }; - 784A704DCDEC8E63EB6149C9FB9CBF1E /* SkipUntil.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SkipUntil.swift; path = RxSwift/Observables/SkipUntil.swift; sourceTree = ""; }; - 795B4BD213193AD2888241C918DE7FC9 /* RxCocoa.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RxCocoa.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 7989D3797AD06D99E46ABEBAD0FF86EA /* Merge.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Merge.swift; path = RxSwift/Observables/Merge.swift; sourceTree = ""; }; - 79A2F4E0BB5348855DD38263C7D811D5 /* RecursiveLock.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RecursiveLock.swift; path = Platform/RecursiveLock.swift; sourceTree = ""; }; - 7B0BB5B7DD009B4F438B894E7F93482F /* Lock.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Lock.swift; path = RxSwift/Concurrency/Lock.swift; sourceTree = ""; }; - 7B21F3EC6D01F92B8A92C39FBD407E90 /* UIActivityIndicatorView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIActivityIndicatorView+Rx.swift"; path = "RxCocoa/iOS/UIActivityIndicatorView+Rx.swift"; sourceTree = ""; }; - 7B3DCD023DD9CA108616085245FC0A97 /* Error.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Error.swift; path = RxSwift/Observables/Error.swift; sourceTree = ""; }; - 7B979D11211B0509541E1430B386DE26 /* Pods-BringMyOwnBeer🍺.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-BringMyOwnBeer🍺.release.xcconfig"; sourceTree = ""; }; - 7BB39A40F41F47F5EECFC70B8D528FD8 /* Pods-BringMyOwnBeer🍺-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-BringMyOwnBeer🍺-frameworks.sh"; sourceTree = ""; }; - 7CB0634025B5024A235C72746E34C790 /* Completable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Completable.swift; path = RxSwift/Traits/Completable.swift; sourceTree = ""; }; - 7CE79889430E817A637252F86A2CE217 /* PriorityQueue.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PriorityQueue.swift; path = Platform/DataStructures/PriorityQueue.swift; sourceTree = ""; }; - 7DF26B918459AB8ACAF4C3380C17535E /* Pods-BringMyOwnBeer🍺-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-BringMyOwnBeer🍺-Info.plist"; sourceTree = ""; }; - 7E4EF9911995A7E83C701426342F3AAD /* ToArray.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ToArray.swift; path = RxSwift/Observables/ToArray.swift; sourceTree = ""; }; - 7E82B375F620E71EA112AB528E5EDA8D /* RxOptional.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = RxOptional.framework; path = RxOptional.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 7F7FFFEE37286E4BF302829E71D77AC3 /* AtomicInt.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AtomicInt.swift; path = Platform/AtomicInt.swift; sourceTree = ""; }; - 7F92E98FA0AE738EBED8CE0A5D5924B7 /* AssertionDispatcher.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AssertionDispatcher.swift; path = Sources/Nimble/Adapters/AssertionDispatcher.swift; sourceTree = ""; }; - 801E311C268ADAEB7C77464EB842BF9F /* Pods-BringMyOwnBeer🍺Tests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-BringMyOwnBeer🍺Tests-Info.plist"; sourceTree = ""; }; - 802F750EB3282909A8F309AE62D1A806 /* KVORepresentable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = KVORepresentable.swift; path = RxCocoa/Foundation/KVORepresentable.swift; sourceTree = ""; }; - 8036A6B262D510BFF665CB070C058821 /* World.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = World.swift; path = Sources/Quick/World.swift; sourceTree = ""; }; - 809C5FAB588354C9BA37DC3EAB8CB45C /* RxSwift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = RxSwift.framework; path = RxSwift.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 8165996F17123F16B09C79298012B9B0 /* Pods-BringMyOwnBeer🍺UITests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-BringMyOwnBeer🍺UITests-umbrella.h"; sourceTree = ""; }; - 8206ECCAF64E4FEBEC74C3B20F0AB7CF /* Deferred.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Deferred.swift; path = RxSwift/Observables/Deferred.swift; sourceTree = ""; }; - 82222085E662463B481C30C02314F41F /* BeVoid.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BeVoid.swift; path = Sources/Nimble/Matchers/BeVoid.swift; sourceTree = ""; }; - 8235EE7A19290DB05F8D1BC22C19C148 /* ObserveOn.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ObserveOn.swift; path = RxSwift/Observables/ObserveOn.swift; sourceTree = ""; }; - 8258B7A389451038C404FFDC1E7BCCDF /* CwlCatchException.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = CwlCatchException.h; path = Carthage/Checkouts/CwlCatchException/Sources/CwlCatchExceptionSupport/include/CwlCatchException.h; sourceTree = ""; }; - 82B87AE6583FE56FD8D9A9B0EEDAE938 /* RxTableViewSectionedAnimatedDataSource.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxTableViewSectionedAnimatedDataSource.swift; path = Sources/RxDataSources/RxTableViewSectionedAnimatedDataSource.swift; sourceTree = ""; }; - 82E376909E881A51FF4F043EA195A094 /* DSL.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DSL.swift; path = Sources/Nimble/DSL.swift; sourceTree = ""; }; - 83AEF07B162EE6EFB05700B2C096A287 /* Pods-BringMyOwnBeer🍺UITests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-BringMyOwnBeer🍺UITests-acknowledgements.markdown"; sourceTree = ""; }; - 83B906694CCF60DB41F9104169CDDD05 /* Box.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Box.swift; path = Sources/Box.swift; sourceTree = ""; }; - 8402073A9F0290EE6C7F9E1CAF082024 /* Bag.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Bag.swift; path = Platform/DataStructures/Bag.swift; sourceTree = ""; }; - 844176B2B776BC84232DDBCD58F92172 /* RxAtomic.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = RxAtomic.xcconfig; sourceTree = ""; }; - 8458BFC6FCF71C404A80199A679C611A /* DSL.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DSL.h; path = Sources/NimbleObjectiveC/DSL.h; sourceTree = ""; }; - 85062DB1C32EAE983C6D4E3806EEB23E /* Concat.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Concat.swift; path = RxSwift/Observables/Concat.swift; sourceTree = ""; }; - 8628255D355256DBE1E4610A6F066D17 /* UIBarButtonItem+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIBarButtonItem+Rx.swift"; path = "RxCocoa/iOS/UIBarButtonItem+Rx.swift"; sourceTree = ""; }; - 867428098B419D7BEE6FE6DDE3E07314 /* PriorityQueue.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PriorityQueue.swift; path = Platform/DataStructures/PriorityQueue.swift; sourceTree = ""; }; - 86F858571FEEB03BDDB0135D38DD09ED /* ConstraintMakerFinalizable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintMakerFinalizable.swift; path = Source/ConstraintMakerFinalizable.swift; sourceTree = ""; }; - 874F0F55B33C35BD121A322BC07CC73C /* AnyObserver.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AnyObserver.swift; path = RxSwift/AnyObserver.swift; sourceTree = ""; }; - 87543889FEDC12B6F6F8F2BCE8AD549C /* RxDataSources-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "RxDataSources-Info.plist"; sourceTree = ""; }; - 876731F548A1B23762AA683382658F8C /* RxSwift-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxSwift-umbrella.h"; sourceTree = ""; }; - 87999CE957B415DB96C773D01CE90D56 /* SerialDispatchQueueScheduler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SerialDispatchQueueScheduler.swift; path = RxSwift/Schedulers/SerialDispatchQueueScheduler.swift; sourceTree = ""; }; - 87C1D360AB5AE6A86D35FA51A4AB4C90 /* BeAKindOf.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BeAKindOf.swift; path = Sources/Nimble/Matchers/BeAKindOf.swift; sourceTree = ""; }; - 87CD9A3AC6B217A719928CCFA8969B88 /* CwlCatchException.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CwlCatchException.swift; path = Carthage/Checkouts/CwlCatchException/Sources/CwlCatchException/CwlCatchException.swift; sourceTree = ""; }; - 88960002BC6773658CDC8A3D575AFBA3 /* _RXDelegateProxy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = _RXDelegateProxy.m; path = RxCocoa/Runtime/_RXDelegateProxy.m; sourceTree = ""; }; - 88ADEB1DB978B5544C7CA2BD04FF5071 /* ConstraintRelatableTarget.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintRelatableTarget.swift; path = Source/ConstraintRelatableTarget.swift; sourceTree = ""; }; - 88B335491CC8837A790AA3FB6A78FDBA /* Pods-BringMyOwnBeer🍺Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-BringMyOwnBeer🍺Tests-acknowledgements.plist"; sourceTree = ""; }; - 89290702FC1FD04F7D485152D2AC9239 /* Nimble.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Nimble.xcconfig; sourceTree = ""; }; - 895F9708278B24EC3CBDC9EF6925C6C2 /* Completable+AndThen.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Completable+AndThen.swift"; path = "RxSwift/Traits/Completable+AndThen.swift"; sourceTree = ""; }; - 89BEBAF86B83D48D188643026562F006 /* BeLessThan.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BeLessThan.swift; path = Sources/Nimble/Matchers/BeLessThan.swift; sourceTree = ""; }; - 89F3027B2B89CCA834DD3D5C0674CE1A /* AnonymousObserver.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AnonymousObserver.swift; path = RxSwift/Observers/AnonymousObserver.swift; sourceTree = ""; }; - 8ABDA40BCC9A32B30BD5046A9824694E /* SynchronizedUnsubscribeType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SynchronizedUnsubscribeType.swift; path = RxSwift/Concurrency/SynchronizedUnsubscribeType.swift; sourceTree = ""; }; - 8B6B1C128325D9437E96EDE2DAF03D66 /* URL+FileName.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "URL+FileName.swift"; path = "Sources/Quick/URL+FileName.swift"; sourceTree = ""; }; - 8B6BD841EFEE4E2CFAC4ECBD46F0CF73 /* RxAtomic.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = RxAtomic.framework; path = RxAtomic.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 8BBB17EA2766A4A3A7FB2984BF211F7B /* MainScheduler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = MainScheduler.swift; path = RxSwift/Schedulers/MainScheduler.swift; sourceTree = ""; }; - 8C2B56373A4972470F1AEC8055DDC8DB /* VirtualTimeConverterType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = VirtualTimeConverterType.swift; path = RxSwift/Schedulers/VirtualTimeConverterType.swift; sourceTree = ""; }; - 8C33099447C4CB0242D4D8ADBB13A766 /* DataSources.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DataSources.swift; path = Sources/RxDataSources/DataSources.swift; sourceTree = ""; }; - 8CCBCE4191135355455CF273E90D0869 /* RxBlocking-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "RxBlocking-dummy.m"; sourceTree = ""; }; - 8CF1517333927ECC658F7BFB19AF163F /* Pods-BringMyOwnBeer🍺UITests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-BringMyOwnBeer🍺UITests-acknowledgements.plist"; sourceTree = ""; }; - 8D59ABFBEF4F943792C2F44E655EB05C /* ConstraintDescription.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintDescription.swift; path = Source/ConstraintDescription.swift; sourceTree = ""; }; - 8DE8A420689DF4101EA7FD990A11516B /* ConstraintLayoutGuide.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintLayoutGuide.swift; path = Source/ConstraintLayoutGuide.swift; sourceTree = ""; }; - 8DFC577652F399B4E90100F78EC738A4 /* AsyncLock.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AsyncLock.swift; path = RxSwift/Concurrency/AsyncLock.swift; sourceTree = ""; }; - 8E0A3139BC3054B22E51E2CA1E3F1424 /* KVORepresentable+CoreGraphics.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "KVORepresentable+CoreGraphics.swift"; path = "RxCocoa/Foundation/KVORepresentable+CoreGraphics.swift"; sourceTree = ""; }; - 8E147378E4CA6AF44CBDFE7E993FD8D6 /* PriorityQueue.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PriorityQueue.swift; path = Platform/DataStructures/PriorityQueue.swift; sourceTree = ""; }; - 8E277FE06D4C97240FFE7069214F07A5 /* Differentiator.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Differentiator.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 8E7B7F4BFBD1598C8169CDFD44D39DFC /* CwlBadInstructionException.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CwlBadInstructionException.swift; path = Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlBadInstructionException.swift; sourceTree = ""; }; - 8EA000A9C3130A4AF1DCD2F4EF27FE49 /* NMBObjCMatcher.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = NMBObjCMatcher.swift; path = Sources/Nimble/Adapters/NMBObjCMatcher.swift; sourceTree = ""; }; - 8EE6FFB478B90CC12E1E4F2F7DF92F48 /* BinaryDisposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BinaryDisposable.swift; path = RxSwift/Disposables/BinaryDisposable.swift; sourceTree = ""; }; - 8F1B925861B83157A6F4D8108CB5E8DB /* UITabBar+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UITabBar+Rx.swift"; path = "RxCocoa/iOS/UITabBar+Rx.swift"; sourceTree = ""; }; - 8F46DF883BD49B22D2BFD801D3EF288F /* Materialize.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Materialize.swift; path = RxSwift/Observables/Materialize.swift; sourceTree = ""; }; - 8F77207C86CB072DAFF44221EE3740FE /* CompositeDisposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CompositeDisposable.swift; path = RxSwift/Disposables/CompositeDisposable.swift; sourceTree = ""; }; - 8F92930B84672B8E2085D79AC48ECF1C /* RxTest.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxTest.swift; path = RxTest/RxTest.swift; sourceTree = ""; }; - 901564D60CA96827EF3B33586E14F4AB /* Deprecated.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Deprecated.swift; path = RxSwift/Deprecated.swift; sourceTree = ""; }; - 907D625DA722BEAC1D5CC7F8A7854779 /* SchedulerServices+Emulation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "SchedulerServices+Emulation.swift"; path = "RxSwift/Schedulers/SchedulerServices+Emulation.swift"; sourceTree = ""; }; - 908BAC52D7FB59370C6770B6105302A3 /* SingleAsync.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SingleAsync.swift; path = RxSwift/Observables/SingleAsync.swift; sourceTree = ""; }; - 90D73CF6FF38541E29583272CFA7CFDA /* RxTableViewDataSourcePrefetchingProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxTableViewDataSourcePrefetchingProxy.swift; path = RxCocoa/iOS/Proxies/RxTableViewDataSourcePrefetchingProxy.swift; sourceTree = ""; }; - 91260163FCC7B248806C09339D2B2018 /* PublishSubject.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PublishSubject.swift; path = RxSwift/Subjects/PublishSubject.swift; sourceTree = ""; }; - 9196D5BF42801F8377BDBFB2E5346B66 /* RxSwift.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = RxSwift.modulemap; sourceTree = ""; }; - 91D62C2FC502349328D1C479FE666ACB /* RxOptional-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxOptional-umbrella.h"; sourceTree = ""; }; - 91DA584A59EF219263A431DDDD7EAFDB /* AtomicInt.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AtomicInt.swift; path = Platform/AtomicInt.swift; sourceTree = ""; }; - 91DD1C1AC02C8FC30EBC316026D93D86 /* AssertionRecorder.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AssertionRecorder.swift; path = Sources/Nimble/Adapters/AssertionRecorder.swift; sourceTree = ""; }; - 92507A2EC9122D2B5CA3A7E3AE9FFD84 /* Multicast.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Multicast.swift; path = RxSwift/Observables/Multicast.swift; sourceTree = ""; }; - 925EAC9DBD428B7755D5D91DC61A5493 /* Nimble-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Nimble-umbrella.h"; sourceTree = ""; }; - 929BAB594A511C4FD0CE36638062D47B /* RetryWhen.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RetryWhen.swift; path = RxSwift/Observables/RetryWhen.swift; sourceTree = ""; }; - 9317E4947CA2FE1B5D5999034C09CCA7 /* Then.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Then.framework; path = Then.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 946C3DBF12A228D8194F07CBC046912C /* Platform.Darwin.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Platform.Darwin.swift; path = Platform/Platform.Darwin.swift; sourceTree = ""; }; - 94A7F33BE88391E89D1502DB61913B32 /* Behavior.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Behavior.swift; path = Sources/Quick/Behavior.swift; sourceTree = ""; }; - 95AAE6260BDDB10C0CAC414B3C65EAEE /* ConstraintPriority.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintPriority.swift; path = Source/ConstraintPriority.swift; sourceTree = ""; }; - 95C308790CCB233A2F28C8F8CCFB10CF /* UIView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+Rx.swift"; path = "RxCocoa/iOS/UIView+Rx.swift"; sourceTree = ""; }; - 960D2B3BA507B2FA97E27DEAEAF39C49 /* Toaster.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = Toaster.modulemap; sourceTree = ""; }; - 962625A20C74540FEB292C589AF0A354 /* CombineLatest+Collection.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "CombineLatest+Collection.swift"; path = "RxSwift/Observables/CombineLatest+Collection.swift"; sourceTree = ""; }; - 963857563CCB4B0471DF67AB55412199 /* LockOwnerType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = LockOwnerType.swift; path = RxSwift/Concurrency/LockOwnerType.swift; sourceTree = ""; }; - 96C6C5464A09909339189BDFE5F665DE /* AnimatableSectionModel.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AnimatableSectionModel.swift; path = Sources/Differentiator/AnimatableSectionModel.swift; sourceTree = ""; }; - 96C7A0661D667B3675AE3786F4FBF0BD /* SnapKit.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = SnapKit.xcconfig; sourceTree = ""; }; - 96D6DDECE248BD37B9DE936699F26E61 /* ConcurrentMainScheduler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConcurrentMainScheduler.swift; path = RxSwift/Schedulers/ConcurrentMainScheduler.swift; sourceTree = ""; }; - 97043489EA942C40994B58DBC48ACD48 /* RxSwift-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxSwift-prefix.pch"; sourceTree = ""; }; - 9741ECC5A71EE898FB7893E01CBC2662 /* QuickSelectedTestSuiteBuilder.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = QuickSelectedTestSuiteBuilder.swift; path = Sources/Quick/QuickSelectedTestSuiteBuilder.swift; sourceTree = ""; }; - 97789ACD81FA5EB72A69B121536BF14D /* Signal+Subscription.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Signal+Subscription.swift"; path = "RxCocoa/Traits/Signal/Signal+Subscription.swift"; sourceTree = ""; }; - 979486118B3E90C08386079D57962701 /* SnapKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = SnapKit.framework; path = SnapKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 97C94A14220DDB8B6A410BB3671A7280 /* Nimble.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = Nimble.h; path = Sources/Nimble/Nimble.h; sourceTree = ""; }; - 98089F23E2A81AC1D0DF61E972A14F75 /* Await.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Await.swift; path = Sources/Nimble/Utils/Await.swift; sourceTree = ""; }; - 982072C382FDE7350BCDE47F973A0431 /* SnapKit.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = SnapKit.modulemap; sourceTree = ""; }; - 98240EEC51C403351D20051EB27F2771 /* Differentiator.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Differentiator.xcconfig; sourceTree = ""; }; - 9839FEF1A3552B2928E57C1E26984461 /* Sequence.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Sequence.swift; path = RxSwift/Observables/Sequence.swift; sourceTree = ""; }; - 9847EF6A5B763A53D81D6ED17ED0A5A3 /* _RXKVOObserver.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = _RXKVOObserver.h; path = RxCocoa/Runtime/include/_RXKVOObserver.h; sourceTree = ""; }; - 9957CF88B0FD31C811E9BB2849BF3C4C /* Diff.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Diff.swift; path = Sources/Differentiator/Diff.swift; sourceTree = ""; }; - 996BD7F99AA951023E78D4F2E90DE49F /* ReplaySubject.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ReplaySubject.swift; path = RxSwift/Subjects/ReplaySubject.swift; sourceTree = ""; }; - 9A91E810A15CA5CDC0D08519CCC4085D /* ObservableConvertibleType+Blocking.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ObservableConvertibleType+Blocking.swift"; path = "RxBlocking/ObservableConvertibleType+Blocking.swift"; sourceTree = ""; }; - 9AF2C7FCAAB8BDABD32720FDCDF49C98 /* Callsite.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Callsite.swift; path = Sources/Quick/Callsite.swift; sourceTree = ""; }; - 9B23282386CFD6138C3BB2EA8086E14C /* SharedSequence+Occupiable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "SharedSequence+Occupiable.swift"; path = "Source/SharedSequence+Occupiable.swift"; sourceTree = ""; }; - 9BBBCC36592DBD676D9787E7E8EE684E /* PublishRelay+Signal.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "PublishRelay+Signal.swift"; path = "RxCocoa/Traits/Signal/PublishRelay+Signal.swift"; sourceTree = ""; }; - 9BE6EAEFDF58B358BE70074E15701F3E /* ConstraintMakerExtendable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintMakerExtendable.swift; path = Source/ConstraintMakerExtendable.swift; sourceTree = ""; }; - 9C29F88B6B8D0F9C07CF5BAEC5F5BE33 /* Then-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Then-Info.plist"; sourceTree = ""; }; - 9C3BE02057B015A2049ADF83908E4A20 /* GroupedObservable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = GroupedObservable.swift; path = RxSwift/GroupedObservable.swift; sourceTree = ""; }; - 9D5F607FAED355979CE7D07E8E1EB2E6 /* RxCollectionViewDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxCollectionViewDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxCollectionViewDelegateProxy.swift; sourceTree = ""; }; - 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; - 9DD1E5D10E9246236EA34289B745BE2B /* ControlTarget.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ControlTarget.swift; path = RxCocoa/Common/ControlTarget.swift; sourceTree = ""; }; - 9DE1680089BE4380DE48CC061927A133 /* CwlCatchException.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = CwlCatchException.m; path = Carthage/Checkouts/CwlCatchException/Sources/CwlCatchExceptionSupport/CwlCatchException.m; sourceTree = ""; }; - 9E8E632A97D3D5863E982C1CA008907B /* Enumerated.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Enumerated.swift; path = RxSwift/Observables/Enumerated.swift; sourceTree = ""; }; - 9ECF7E350B563752D62A16903482E9F8 /* IdentifiableType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IdentifiableType.swift; path = Sources/Differentiator/IdentifiableType.swift; sourceTree = ""; }; - 9EE65D1E24EB35EC069D7CBD433E0E68 /* Buffer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Buffer.swift; path = RxSwift/Observables/Buffer.swift; sourceTree = ""; }; - 9F0B63574CBC385CFB19052659476162 /* SnapKit-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "SnapKit-Info.plist"; sourceTree = ""; }; - 9F1ABE51481B69FE29A34C4E6F25F62A /* RxCollectionViewDataSourcePrefetchingProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxCollectionViewDataSourcePrefetchingProxy.swift; path = RxCocoa/iOS/Proxies/RxCollectionViewDataSourcePrefetchingProxy.swift; sourceTree = ""; }; - A068FC9092E21222557B7336EA6DD172 /* AtomicInt.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AtomicInt.swift; path = Platform/AtomicInt.swift; sourceTree = ""; }; - A093D7986E72C29769A9993CA711BD8A /* Array+Extensions.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Array+Extensions.swift"; path = "Sources/RxDataSources/Array+Extensions.swift"; sourceTree = ""; }; - A0DD298D5AEED8CBEADB672E71F886A0 /* QCKDSL.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = QCKDSL.m; path = Sources/QuickObjectiveC/DSL/QCKDSL.m; sourceTree = ""; }; - A0ED18E436CC116345C735513C1C9AA9 /* RxAtomic-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxAtomic-umbrella.h"; sourceTree = ""; }; - A115FA300E4E0DFCEDE623EB59B72427 /* RxTabBarDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxTabBarDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxTabBarDelegateProxy.swift; sourceTree = ""; }; - A1B336A70E52A887F1E3C8E061D34C86 /* Nimble-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Nimble-Info.plist"; sourceTree = ""; }; - A1E2837B86A984006B5573D37519CDAB /* Pods-BringMyOwnBeer🍺Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-BringMyOwnBeer🍺Tests.release.xcconfig"; sourceTree = ""; }; - A1F450EF438BBB261901FE00C2B82D78 /* mach_excServer.c */ = {isa = PBXFileReference; includeInIndex = 1; name = mach_excServer.c; path = Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlMachBadInstructionHandler/mach_excServer.c; sourceTree = ""; }; - A1FBB76503D1FCC3369E38DAA13BEC83 /* MatchError.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = MatchError.swift; path = Sources/Nimble/Matchers/MatchError.swift; sourceTree = ""; }; - A1FFDDC693EFEB1E7B9C1AD3906E58BB /* ImageView+Kingfisher.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ImageView+Kingfisher.swift"; path = "Sources/ImageView+Kingfisher.swift"; sourceTree = ""; }; - A2B55A5FFE8F4A3385800C338D827DCF /* Kingfisher-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Kingfisher-prefix.pch"; sourceTree = ""; }; - A3CAD401ED2C16DA886FC7D574EA8BD2 /* RxAppState-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "RxAppState-Info.plist"; sourceTree = ""; }; - A46931BCC38782E15BF302DD97EE66D6 /* ConstraintInsets.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintInsets.swift; path = Source/ConstraintInsets.swift; sourceTree = ""; }; - A48B926B4C347D6EF507351149B3C4D1 /* ConstraintConstantTarget.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintConstantTarget.swift; path = Source/ConstraintConstantTarget.swift; sourceTree = ""; }; - A4DBF0A193432F3EC410F473F03EBB58 /* RxOptional-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "RxOptional-dummy.m"; sourceTree = ""; }; - A7124CFFFC78B42466A75D0E30C30D50 /* QuickSpec.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = QuickSpec.m; path = Sources/QuickObjectiveC/QuickSpec.m; sourceTree = ""; }; - A76AB36848BA0D18C94961327E913BAB /* ConstraintDSL.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintDSL.swift; path = Source/ConstraintDSL.swift; sourceTree = ""; }; - A772E7411A073C39FF417101BC6D1442 /* Queue.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Queue.swift; path = Platform/DataStructures/Queue.swift; sourceTree = ""; }; - A79734FC816D0CA3A97117ABD611A64B /* UINavigationController+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UINavigationController+Rx.swift"; path = "RxCocoa/iOS/UINavigationController+Rx.swift"; sourceTree = ""; }; - A7A34FFEF9014E5D7BAD0492F0E1E279 /* ThreadHelper.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ThreadHelper.swift; path = Sources/ThreadHelper.swift; sourceTree = ""; }; - A7E0F3479D76DC6F75B0FD2ED8696FB2 /* RxTest-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxTest-umbrella.h"; sourceTree = ""; }; - A857F6D47CA6534AE5910316BBEC6015 /* AllPass.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AllPass.swift; path = Sources/Nimble/Matchers/AllPass.swift; sourceTree = ""; }; - A9AFE3D684F537DA2C1EEFBC61F31315 /* SharedSequence+Operators.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "SharedSequence+Operators.swift"; path = "RxCocoa/Traits/SharedSequence/SharedSequence+Operators.swift"; sourceTree = ""; }; - A9E10CE315C3D4694A7E5CFCB34029FE /* Differentiator-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Differentiator-dummy.m"; sourceTree = ""; }; - AA11C9F1DFCF955B55B5D5C28363B93C /* ExampleGroup.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExampleGroup.swift; path = Sources/Quick/ExampleGroup.swift; sourceTree = ""; }; - AA38E2E5E2EF4C2174642C0C3E51EFFF /* Errors.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Errors.swift; path = Sources/Nimble/Utils/Errors.swift; sourceTree = ""; }; - AA9BB684D654B28507A1CC2A05067A84 /* Functional.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Functional.swift; path = Sources/Nimble/Utils/Functional.swift; sourceTree = ""; }; - ABB499E698904C33D6D7836C59FFAB2A /* Placeholder.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Placeholder.swift; path = Sources/Placeholder.swift; sourceTree = ""; }; - AC0E6607C630FA21DA4FB13065B2675B /* RxPickerViewDataSourceType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxPickerViewDataSourceType.swift; path = RxCocoa/iOS/Protocols/RxPickerViewDataSourceType.swift; sourceTree = ""; }; - AC15EF0DB3555779DFE642D8A2A08F24 /* RxCollectionViewDataSourceProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxCollectionViewDataSourceProxy.swift; path = RxCocoa/iOS/Proxies/RxCollectionViewDataSourceProxy.swift; sourceTree = ""; }; - AC297C329F63D0472A4F7E54A3529DCF /* NMBExpectation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = NMBExpectation.swift; path = Sources/Nimble/Adapters/NMBExpectation.swift; sourceTree = ""; }; - AC385F5350D86A3BEB981FDAEE532B0F /* RxCocoaObjCRuntimeError+Extensions.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "RxCocoaObjCRuntimeError+Extensions.swift"; path = "RxCocoa/Common/RxCocoaObjCRuntimeError+Extensions.swift"; sourceTree = ""; }; - ACD74694506F8EA57C5073E731B42012 /* Differentiator.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = Differentiator.modulemap; sourceTree = ""; }; - AD231060F9267F138A9D6833F1FA9289 /* Resources.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Resources.swift; path = RxBlocking/Resources.swift; sourceTree = ""; }; - ADBE6740CAC8AEF23D88EEE7B633E8CA /* ImageDownloader.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ImageDownloader.swift; path = Sources/ImageDownloader.swift; sourceTree = ""; }; - ADF5E74964F3280F5A79AB2A28646903 /* Create.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Create.swift; path = RxSwift/Observables/Create.swift; sourceTree = ""; }; - AED938E558478EAE506C20E9A5C2E87F /* RxBlocking-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxBlocking-prefix.pch"; sourceTree = ""; }; - AEDD297395EBD1D4A6BDBF612A124E69 /* HaveCount.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = HaveCount.swift; path = Sources/Nimble/Matchers/HaveCount.swift; sourceTree = ""; }; - AFCBC0C4AB28DB15675BD27F4A3863B4 /* UIButton+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIButton+Rx.swift"; path = "RxCocoa/iOS/UIButton+Rx.swift"; sourceTree = ""; }; - B03A0BA955D937E9B0451A2B171CEBD3 /* TestableObservable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = TestableObservable.swift; path = RxTest/TestableObservable.swift; sourceTree = ""; }; - B04A1101EC211BC5879ADA5D2464487E /* Pods-BringMyOwnBeer🍺UITests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-BringMyOwnBeer🍺UITests-dummy.m"; sourceTree = ""; }; - B05489914FE1D4F568D5166E2058BF81 /* RxPickerViewDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxPickerViewDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxPickerViewDelegateProxy.swift; sourceTree = ""; }; - B090F8C3F4553906893190B2C2FFA917 /* SatisfyAnyOf.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SatisfyAnyOf.swift; path = Sources/Nimble/Matchers/SatisfyAnyOf.swift; sourceTree = ""; }; - B0A23DDE05343F9CE11EABF28DD9D2C8 /* Take.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Take.swift; path = RxSwift/Observables/Take.swift; sourceTree = ""; }; - B0B264F4F74BC800DF88ABDCDF2F56D5 /* IdentifiableValue.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IdentifiableValue.swift; path = Sources/Differentiator/IdentifiableValue.swift; sourceTree = ""; }; - B10D502207DF00D90AE7ECEB67C5BB99 /* UISegmentedControl+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UISegmentedControl+Rx.swift"; path = "RxCocoa/iOS/UISegmentedControl+Rx.swift"; sourceTree = ""; }; - B10F65BF4E9CA15E484C246F0957A3E0 /* Toaster-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Toaster-umbrella.h"; sourceTree = ""; }; - B11A3337C903BA712F1A2C431901A310 /* ConstraintLayoutSupportDSL.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintLayoutSupportDSL.swift; path = Source/ConstraintLayoutSupportDSL.swift; sourceTree = ""; }; - B14ABFFD0DC30674A74DB1C5D3431CC5 /* UILayoutSupport+Extensions.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UILayoutSupport+Extensions.swift"; path = "Source/UILayoutSupport+Extensions.swift"; sourceTree = ""; }; - B199793F738E2DF3CA85E56FE790D5A1 /* ScheduledDisposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ScheduledDisposable.swift; path = RxSwift/Disposables/ScheduledDisposable.swift; sourceTree = ""; }; - B210383040F0DC399000455893DD4329 /* HistoricalScheduler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = HistoricalScheduler.swift; path = RxSwift/Schedulers/HistoricalScheduler.swift; sourceTree = ""; }; - B2951A45CD7D0110ECDE7028E7EBE5D8 /* DispatchQueue+Extensions.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "DispatchQueue+Extensions.swift"; path = "Platform/DispatchQueue+Extensions.swift"; sourceTree = ""; }; - B370F526977D17974EE5D87048FF55D4 /* UIViewController+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIViewController+Rx.swift"; path = "RxCocoa/iOS/UIViewController+Rx.swift"; sourceTree = ""; }; - B4FE0C2A019AB122AC48DF62C7BBADD4 /* DisposeBag.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DisposeBag.swift; path = RxSwift/Disposables/DisposeBag.swift; sourceTree = ""; }; - B6158A50D092EEC5DB92D42D5053F31E /* TestableObserver.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = TestableObserver.swift; path = RxTest/TestableObserver.swift; sourceTree = ""; }; - B7455D69DD418FEA2E81E6476BDE2B56 /* Then.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Then.xcconfig; sourceTree = ""; }; - B762349450971970AEC8D2ACE47E2F50 /* RxBlocking.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = RxBlocking.xcconfig; sourceTree = ""; }; - B7BFAA13458CE79CD2F40CAB4708B979 /* RxTextStorageDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxTextStorageDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxTextStorageDelegateProxy.swift; sourceTree = ""; }; - B838033F310DCE72B002165620143D40 /* UIImageView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIImageView+Rx.swift"; path = "RxCocoa/iOS/UIImageView+Rx.swift"; sourceTree = ""; }; - B89D28D7924C5A47F2003B3EF77EA4DB /* SourceLocation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SourceLocation.swift; path = Sources/Nimble/Utils/SourceLocation.swift; sourceTree = ""; }; - B8B452C4CE3D3B768FD2D9E9FEC756C6 /* RxTest-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxTest-prefix.pch"; sourceTree = ""; }; - B9514B5453E134CFADAADAB0B6EE02BF /* Kingfisher.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = Kingfisher.h; path = Sources/Kingfisher.h; sourceTree = ""; }; - B9D765BE9C6BD3A760BF6040AE2F8C39 /* Event+Equatable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Event+Equatable.swift"; path = "RxTest/Event+Equatable.swift"; sourceTree = ""; }; - BAAD1EBE4FB420C3C29451C72DA06A35 /* DeprecationWarner.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DeprecationWarner.swift; path = Platform/DeprecationWarner.swift; sourceTree = ""; }; - BAC3CD33EF71BB5DDA2BD44E6DE0F6BF /* Observable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Observable.swift; path = RxSwift/Observable.swift; sourceTree = ""; }; - BAE263041362D074978BB3B577DF0A05 /* Nimble.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Nimble.framework; path = Nimble.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - BAF46A24D9818B501304D6C39BCBE65A /* UICollectionView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UICollectionView+Rx.swift"; path = "RxCocoa/iOS/UICollectionView+Rx.swift"; sourceTree = ""; }; - BB53B29451254E974A92F78871FC485D /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/QuartzCore.framework; sourceTree = DEVELOPER_DIR; }; - BB61B09337E5A339C5E8792C71FEB253 /* CurrentThreadScheduler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CurrentThreadScheduler.swift; path = RxSwift/Schedulers/CurrentThreadScheduler.swift; sourceTree = ""; }; - BB8AE9930BD8F57445922CE736A0DA2E /* Quick.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = Quick.modulemap; sourceTree = ""; }; - BC432FD48A5932251F1CAFBC4BF74894 /* RxCocoa.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = RxCocoa.framework; path = RxCocoa.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - BC6F8F8A9C4F7D29695F239EF58F1172 /* Dematerialize.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Dematerialize.swift; path = RxSwift/Observables/Dematerialize.swift; sourceTree = ""; }; - BC70AD93CC3A2E4A4F05C4B205B3C568 /* URLSession+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "URLSession+Rx.swift"; path = "RxCocoa/Foundation/URLSession+Rx.swift"; sourceTree = ""; }; - BD388D185C9CE70BFC0DC4F7EF32712D /* Catch.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Catch.swift; path = RxSwift/Observables/Catch.swift; sourceTree = ""; }; - BD6374913D4B0A17216007C943A016BE /* TestScheduler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = TestScheduler.swift; path = RxTest/Schedulers/TestScheduler.swift; sourceTree = ""; }; - BD810337F4A305D60D9250A197AA1EF1 /* Toaster.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Toaster.framework; path = Toaster.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - BD962A075D7943414C760AA40FA04A2D /* RxBlocking-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "RxBlocking-Info.plist"; sourceTree = ""; }; - BDDB597A5CEDDC592D8C87B81173B33F /* BeAnInstanceOf.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BeAnInstanceOf.swift; path = Sources/Nimble/Matchers/BeAnInstanceOf.swift; sourceTree = ""; }; - BE868A6F2FE1C1E51B2D9BFA4D289C3B /* ErrorUtility.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ErrorUtility.swift; path = Sources/Quick/ErrorUtility.swift; sourceTree = ""; }; - BF54CC6145AF8FEB5AD11177936A2264 /* Amb.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Amb.swift; path = RxSwift/Observables/Amb.swift; sourceTree = ""; }; - BF6C9E383DB5A67D533E0310E87487FA /* Recorded+Event.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Recorded+Event.swift"; path = "RxTest/Recorded+Event.swift"; sourceTree = ""; }; - BF756F7EF7A86EE2201A044D3180C479 /* ImageTransition.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ImageTransition.swift; path = Sources/ImageTransition.swift; sourceTree = ""; }; - C117A91D8640F1BD988BFC6D0DC05DAC /* ObservableType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ObservableType.swift; path = RxSwift/ObservableType.swift; sourceTree = ""; }; - C129D17C579514BFE254A6ADF572E71B /* Toaster-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Toaster-dummy.m"; sourceTree = ""; }; - C164FE05947DA77562CBC11703885791 /* Differentiator-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Differentiator-Info.plist"; sourceTree = ""; }; - C1804BECB7EE10AF45AB6B14793D7488 /* ImagePrefetcher.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ImagePrefetcher.swift; path = Sources/ImagePrefetcher.swift; sourceTree = ""; }; - C21F85E2E2C88C7D6BA1BE17E1BDE9A7 /* UISwitch+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UISwitch+Rx.swift"; path = "RxCocoa/iOS/UISwitch+Rx.swift"; sourceTree = ""; }; - C264DB6B1BAB4FAB81EEB73D77DEF316 /* RxTableViewDataSourceProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxTableViewDataSourceProxy.swift; path = RxCocoa/iOS/Proxies/RxTableViewDataSourceProxy.swift; sourceTree = ""; }; - C2A5DCA55C4A830160767E1B1CF4A2C7 /* RxTarget.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxTarget.swift; path = RxCocoa/Common/RxTarget.swift; sourceTree = ""; }; - C2B2BCA73B107B7EB50BFC76A5AA357B /* RxCocoa-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "RxCocoa-dummy.m"; sourceTree = ""; }; - C305CBB6745EF242D3900C964169BDA4 /* BooleanDisposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BooleanDisposable.swift; path = RxSwift/Disposables/BooleanDisposable.swift; sourceTree = ""; }; - C3F44C782D64D7EB20B61CE3844EBFAD /* Kingfisher.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Kingfisher.framework; path = Kingfisher.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - C40DCC5C784ED6928B83AEC7B0529738 /* CwlMachBadInstructionHandler.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = CwlMachBadInstructionHandler.m; path = Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlMachBadInstructionHandler/CwlMachBadInstructionHandler.m; sourceTree = ""; }; - C444BD2A402080C463CF4AE7A4CDF63C /* TextInput.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = TextInput.swift; path = RxCocoa/Common/TextInput.swift; sourceTree = ""; }; - C4CE80D93DC20876283A4EF1ADAB98EE /* ConstraintMakerEditable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintMakerEditable.swift; path = Source/ConstraintMakerEditable.swift; sourceTree = ""; }; - C5941066B3431F2BF193515189D03CFF /* Then.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Then.swift; path = Sources/Then/Then.swift; sourceTree = ""; }; - C61C82AE37734D193C774C9DDBB214C3 /* ConstraintItem.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintItem.swift; path = Source/ConstraintItem.swift; sourceTree = ""; }; - C64A48BA7652F9C34943471ED5015AF9 /* World+DSL.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "World+DSL.swift"; path = "Sources/Quick/DSL/World+DSL.swift"; sourceTree = ""; }; - C679A6EC715B8C4740CF0D0A1872EBAA /* Disposables.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Disposables.swift; path = RxSwift/Disposables/Disposables.swift; sourceTree = ""; }; - C6FDE07F97CC225DC206BFDCF1341C98 /* Skip.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Skip.swift; path = RxSwift/Observables/Skip.swift; sourceTree = ""; }; - C7CAC5CD7E3F0AE161D4E799C5EF0911 /* RxAppState.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = RxAppState.xcconfig; sourceTree = ""; }; - C80DAFBDEAB71F368125D242644F1DD1 /* NSObject+Rx+KVORepresentable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSObject+Rx+KVORepresentable.swift"; path = "RxCocoa/Foundation/NSObject+Rx+KVORepresentable.swift"; sourceTree = ""; }; - C81D036F4AA54B64B44E6A8341973BD5 /* Pods_BringMyOwnBeer_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_BringMyOwnBeer_Tests.framework; path = "Pods-BringMyOwnBeer🍺Tests.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; - C82650CF93CF83FDD54ECB4DE08E8D4E /* Typealiases.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Typealiases.swift; path = Source/Typealiases.swift; sourceTree = ""; }; - C88342B297615EEB35E6A756A5D85836 /* RxMutableBox.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxMutableBox.swift; path = RxSwift/RxMutableBox.swift; sourceTree = ""; }; - C88A9D0635F895FCEB47731ED5E882D1 /* RxKeyboard.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = RxKeyboard.xcconfig; sourceTree = ""; }; - C8F6B99DABB1B061B27137AAD8C3A903 /* ScheduledItemType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ScheduledItemType.swift; path = RxSwift/Schedulers/Internal/ScheduledItemType.swift; sourceTree = ""; }; - C94644F13D00E7442FD902537AF93AC5 /* Pods-BringMyOwnBeer🍺UITests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-BringMyOwnBeer🍺UITests-frameworks.sh"; sourceTree = ""; }; - C96612757F1E67E42AB1B5A5CD5D7795 /* Kingfisher.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = Kingfisher.modulemap; sourceTree = ""; }; - C9CDE4FF66E10FE46CDC88D53B25F173 /* RxTest-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "RxTest-dummy.m"; sourceTree = ""; }; - C9D28A30EA59A1FBCF68FDC2A3B6A0CD /* DSL.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = DSL.m; path = Sources/NimbleObjectiveC/DSL.m; sourceTree = ""; }; - CA730DDABDF37C1BC46DD8B006687378 /* Zip+Collection.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Zip+Collection.swift"; path = "RxSwift/Observables/Zip+Collection.swift"; sourceTree = ""; }; - CACBE8183572FC9F790907D1C884C37B /* KVORepresentable+Swift.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "KVORepresentable+Swift.swift"; path = "RxCocoa/Foundation/KVORepresentable+Swift.swift"; sourceTree = ""; }; - CB1B5C8EF94FDBEA3E6ABFD238972F1C /* ObservableConvertibleType+SharedSequence.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ObservableConvertibleType+SharedSequence.swift"; path = "RxCocoa/Traits/SharedSequence/ObservableConvertibleType+SharedSequence.swift"; sourceTree = ""; }; - CC6B22E5024246A7CACDF74C73DB4F9C /* DispatchQueue+Extensions.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "DispatchQueue+Extensions.swift"; path = "Platform/DispatchQueue+Extensions.swift"; sourceTree = ""; }; - CDE20025AF5A5BBB3C9D417E5A255D91 /* Toaster.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Toaster.xcconfig; sourceTree = ""; }; - CDE2B0EDC73B85AC384DD2B6DE3487E4 /* Queue.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Queue.swift; path = Platform/DataStructures/Queue.swift; sourceTree = ""; }; - CDF9F880A6F482554045B190B8F8C826 /* RxCocoaRuntime.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = RxCocoaRuntime.h; path = RxCocoa/Runtime/include/RxCocoaRuntime.h; sourceTree = ""; }; - CE4A69C45BF57631F81E88C7AB2A3604 /* Pods-BringMyOwnBeer🍺-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-BringMyOwnBeer🍺-acknowledgements.markdown"; sourceTree = ""; }; - CEBB241F1D69C0D88576C94BEFB1E306 /* RxAtomic.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = RxAtomic.h; path = RxAtomic/include/RxAtomic.h; sourceTree = ""; }; - CEF44521341EC56AB7AB450446D9C753 /* CwlDarwinDefinitions.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CwlDarwinDefinitions.swift; path = Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlDarwinDefinitions.swift; sourceTree = ""; }; - CF3B1C1F0AB5064B6849514AEBB6F234 /* UIControl+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIControl+Rx.swift"; path = "RxCocoa/iOS/UIControl+Rx.swift"; sourceTree = ""; }; - CF602282BD77E4207F3CF8B8BDCE2105 /* Quick.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Quick.xcconfig; sourceTree = ""; }; - D14C21DCF63C6CD7D617D6906C78530D /* ConstraintLayoutSupport.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintLayoutSupport.swift; path = Source/ConstraintLayoutSupport.swift; sourceTree = ""; }; - D217F26147ADA21A7A6DC0A9C214F3CD /* ToastView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ToastView.swift; path = Sources/ToastView.swift; sourceTree = ""; }; - D26FE55FE37901C37603C6DE71C34E50 /* UITableView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UITableView+Rx.swift"; path = "RxCocoa/iOS/UITableView+Rx.swift"; sourceTree = ""; }; - D28A070ACD08345B0A1453FB5FAC5DEF /* UIGestureRecognizer+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIGestureRecognizer+Rx.swift"; path = "RxCocoa/iOS/UIGestureRecognizer+Rx.swift"; sourceTree = ""; }; - D39B012DB0BAA5F6F6C5AF4C5F4C477E /* BeNil.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BeNil.swift; path = Sources/Nimble/Matchers/BeNil.swift; sourceTree = ""; }; - D3EF98614BC6347F6A2D5ABE9136BBD6 /* UITabBarItem+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UITabBarItem+Rx.swift"; path = "RxCocoa/iOS/UITabBarItem+Rx.swift"; sourceTree = ""; }; - D43A3CAEBDA569D9828A179942139F6F /* Pods-BringMyOwnBeer🍺UITests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-BringMyOwnBeer🍺UITests.modulemap"; sourceTree = ""; }; - D4667198B3EEE0BED4B7E3A7936F0FEB /* RxPickerViewDataSourceProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxPickerViewDataSourceProxy.swift; path = RxCocoa/iOS/Proxies/RxPickerViewDataSourceProxy.swift; sourceTree = ""; }; - D4C328D9AC05AE9266533579A1DC6D02 /* QuickConfiguration.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = QuickConfiguration.h; path = Sources/QuickObjectiveC/Configuration/QuickConfiguration.h; sourceTree = ""; }; - D51C3D0C53D23B97B032E3BDD4F82C82 /* Differentiator.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Differentiator.framework; path = Differentiator.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - D673BE3F39CDED753308F6C332364FCE /* GroupBy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = GroupBy.swift; path = RxSwift/Observables/GroupBy.swift; sourceTree = ""; }; - D6ECEB6CB57031A3FB93BF5AA4525618 /* Async.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Async.swift; path = Sources/Nimble/Matchers/Async.swift; sourceTree = ""; }; - D722CEB12A4CFD1AE54FC9D0A47FA809 /* Deprecated.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Deprecated.swift; path = RxCocoa/Deprecated.swift; sourceTree = ""; }; - D74115839EBD9D0C09B4AC35C130C21A /* DispatchQueue+Extensions.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "DispatchQueue+Extensions.swift"; path = "Platform/DispatchQueue+Extensions.swift"; sourceTree = ""; }; - D7AB0615E4C7255AA8CB8329A70E6F91 /* WithLatestFrom.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = WithLatestFrom.swift; path = RxSwift/Observables/WithLatestFrom.swift; sourceTree = ""; }; - D7BEBDA8BD03F189A04BC6B829EE8C49 /* NSBundle+CurrentTestBundle.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSBundle+CurrentTestBundle.swift"; path = "Sources/Quick/NSBundle+CurrentTestBundle.swift"; sourceTree = ""; }; - D84380B7B1724493A99F2568898EB6F5 /* Platform.Linux.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Platform.Linux.swift; path = Platform/Platform.Linux.swift; sourceTree = ""; }; - D8FACFABD8E5577C2B9AA509E6DDA3F7 /* BeGreaterThan.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BeGreaterThan.swift; path = Sources/Nimble/Matchers/BeGreaterThan.swift; sourceTree = ""; }; - D9604B5F77D77F47FFEB7901A1C4EDC7 /* ConcurrentDispatchQueueScheduler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConcurrentDispatchQueueScheduler.swift; path = RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift; sourceTree = ""; }; - D987E6C82FDCDE43EEC0871DD1C3DA33 /* DefaultIfEmpty.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DefaultIfEmpty.swift; path = RxSwift/Observables/DefaultIfEmpty.swift; sourceTree = ""; }; - D9A0133E62A442E90CA105D36C5632EC /* QuickSpec.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = QuickSpec.h; path = Sources/QuickObjectiveC/QuickSpec.h; sourceTree = ""; }; - DA28E480EFDACD67656A5751D809A084 /* UIStepper+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIStepper+Rx.swift"; path = "RxCocoa/iOS/UIStepper+Rx.swift"; sourceTree = ""; }; - DB0D20E4D6A07F231254073FA17FBC61 /* Quick-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Quick-umbrella.h"; sourceTree = ""; }; - DB34A770DB0E376C0AA15CB15582CAB9 /* NSView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSView+Rx.swift"; path = "RxCocoa/macOS/NSView+Rx.swift"; sourceTree = ""; }; - DBF4208C7BC58F657CA22E13C1F91B5C /* Quick-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Quick-Info.plist"; sourceTree = ""; }; - DC11D2ABD9BC5397C31F87A45AA9DC8E /* ObservableConvertibleType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ObservableConvertibleType.swift; path = RxSwift/ObservableConvertibleType.swift; sourceTree = ""; }; - DCD2029025EB30D5FC6B30FAE33011B5 /* DSL+Wait.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "DSL+Wait.swift"; path = "Sources/Nimble/DSL+Wait.swift"; sourceTree = ""; }; - DD292B656B5F10BF8CBF128EF405A068 /* Do.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Do.swift; path = RxSwift/Observables/Do.swift; sourceTree = ""; }; - DE0D7391A9C15D94A47F58F94423F6D7 /* Bag.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Bag.swift; path = Platform/DataStructures/Bag.swift; sourceTree = ""; }; - DE1FCED81173361F437E806123E5AF12 /* Changeset.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Changeset.swift; path = Sources/Differentiator/Changeset.swift; sourceTree = ""; }; - DEC56FDFA000E5AB57DEEB007DCBAA6B /* Platform.Linux.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Platform.Linux.swift; path = Platform/Platform.Linux.swift; sourceTree = ""; }; - DECA58DEA686C6E10721034C1A68B142 /* NSString+C99ExtendedIdentifier.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSString+C99ExtendedIdentifier.swift"; path = "Sources/Quick/NSString+C99ExtendedIdentifier.swift"; sourceTree = ""; }; - DF57C5B925ABC320BB0FC9C5E3BB36BD /* Pods-BringMyOwnBeer🍺Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-BringMyOwnBeer🍺Tests.modulemap"; sourceTree = ""; }; - DFE505F98766BF3CB5F401F569BFAE96 /* UIButton+Kingfisher.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIButton+Kingfisher.swift"; path = "Sources/UIButton+Kingfisher.swift"; sourceTree = ""; }; - E015B7FB4563CA849D041C437DEC10E3 /* RxCocoa.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = RxCocoa.xcconfig; sourceTree = ""; }; - E04DDB4F9BFBAD98DF13AEEB7470BD76 /* Logging.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Logging.swift; path = RxCocoa/Foundation/Logging.swift; sourceTree = ""; }; - E1A1C69F248896615A152739EBE43A31 /* Kingfisher.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Kingfisher.swift; path = Sources/Kingfisher.swift; sourceTree = ""; }; - E20DFBA5552664D4C50470EF927A3C88 /* UIWebView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIWebView+Rx.swift"; path = "RxCocoa/iOS/UIWebView+Rx.swift"; sourceTree = ""; }; - E21DBE3739ABAD4DDB5892C0D87205C1 /* String+MD5.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "String+MD5.swift"; path = "Sources/String+MD5.swift"; sourceTree = ""; }; - E2466DC5BDE13F92D905FD131B462D7A /* PublishRelay.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PublishRelay.swift; path = RxCocoa/Traits/PublishRelay.swift; sourceTree = ""; }; - E302C99DDB310C695B63D0F6E1D51761 /* Event.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Event.swift; path = RxSwift/Event.swift; sourceTree = ""; }; - E3A5A06D55ACE09DF1941935D042D8AF /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; - E3D41EB241A2D4C195FF14BC9656D5B8 /* IntegerType+IdentifiableType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IntegerType+IdentifiableType.swift"; path = "Sources/RxDataSources/IntegerType+IdentifiableType.swift"; sourceTree = ""; }; - E3DE3EEC80DFAC45841317932C26A0FC /* SubscribeOn.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SubscribeOn.swift; path = RxSwift/Observables/SubscribeOn.swift; sourceTree = ""; }; - E4CC0DC5A95E56E05F88FBABF027E855 /* PostNotification.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PostNotification.swift; path = Sources/Nimble/Matchers/PostNotification.swift; sourceTree = ""; }; - E506A67BF39C3302910B5F993DB1F8DA /* RxCocoa.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = RxCocoa.modulemap; sourceTree = ""; }; - E54F2391E382C7960427A3C135E55DB0 /* NMBStringify.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = NMBStringify.h; path = Sources/NimbleObjectiveC/NMBStringify.h; sourceTree = ""; }; - E5E25E066D03BC3710E98027865783C1 /* ConstraintViewDSL.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintViewDSL.swift; path = Source/ConstraintViewDSL.swift; sourceTree = ""; }; - E69D213FDAECAAA7CB8BC4D8C0B83D92 /* SuiteHooks.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SuiteHooks.swift; path = Sources/Quick/Hooks/SuiteHooks.swift; sourceTree = ""; }; - E6DC8DB424A4131E40ADB31EF467C5DD /* RxCocoa-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "RxCocoa-Info.plist"; sourceTree = ""; }; - E6F44C4EE2AC6B02234AF82EE27EB3CB /* KeyPathBinder.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = KeyPathBinder.swift; path = RxCocoa/Common/KeyPathBinder.swift; sourceTree = ""; }; - E70790E195C3B9A966D85214E24A3B36 /* Driver.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Driver.swift; path = RxCocoa/Traits/Driver/Driver.swift; sourceTree = ""; }; - E7207EB3CF4E65EC3493425DD86B79CD /* Filter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Filter.swift; path = RxSwift/Observables/Filter.swift; sourceTree = ""; }; - E7A1DB3C9C81D94DAF575649EA4C7EAD /* InvocableScheduledItem.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = InvocableScheduledItem.swift; path = RxSwift/Schedulers/Internal/InvocableScheduledItem.swift; sourceTree = ""; }; - E8B17FEB47374D05E25924B826B6CCF9 /* FailureMessage.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = FailureMessage.swift; path = Sources/Nimble/FailureMessage.swift; sourceTree = ""; }; - E8BC7E22568E216851A7207725923370 /* Example.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Example.swift; path = Sources/Quick/Example.swift; sourceTree = ""; }; - E908021EB8ED9DB683D0522B2A5B23CE /* Equal.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Equal.swift; path = Sources/Nimble/Matchers/Equal.swift; sourceTree = ""; }; - E95AA211C8355CC0E1AF076C736EC685 /* RxDataSources.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = RxDataSources.xcconfig; sourceTree = ""; }; - EAA8EBF57031914B7AE5684E8B94AB8D /* Nimble-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Nimble-prefix.pch"; sourceTree = ""; }; - EACFC6C42F7516E2D1D06CEBC7CDCB9A /* RxSwift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RxSwift.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - ED044DFC06F9EBF89FE41F2C435C0D51 /* RxCocoa-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxCocoa-umbrella.h"; sourceTree = ""; }; - ED208E682DFD1434E270075258C18E51 /* RxAppState.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = RxAppState.framework; path = RxAppState.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - ED901076DF109B55A5971DFADC8BEDED /* Debugging.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Debugging.swift; path = Source/Debugging.swift; sourceTree = ""; }; - EE16D4631EEF6D753E6DC3C67AC58141 /* RxOptional.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = RxOptional.xcconfig; sourceTree = ""; }; - EE3636481D357F18F9764FC8A36405C5 /* AddRef.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AddRef.swift; path = RxSwift/Observables/AddRef.swift; sourceTree = ""; }; - EE8F424CC6B95A6079D6EDCF7B5167CC /* Range.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Range.swift; path = RxSwift/Observables/Range.swift; sourceTree = ""; }; - EEC61093453386F2EF9B3140666E49C0 /* LayoutConstraintItem.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = LayoutConstraintItem.swift; path = Source/LayoutConstraintItem.swift; sourceTree = ""; }; - EF134C3127F4CF10BDE2BAF3F1EF7D91 /* ControlEvent+Driver.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ControlEvent+Driver.swift"; path = "RxCocoa/Traits/Driver/ControlEvent+Driver.swift"; sourceTree = ""; }; - EF63A633E9D929E38F030D3A3568A6DA /* Bag.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Bag.swift; path = Platform/DataStructures/Bag.swift; sourceTree = ""; }; - EF8B076947FF9357A64A0AD72B2E9099 /* XCTestObservationCenter+Register.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "XCTestObservationCenter+Register.m"; path = "Sources/NimbleObjectiveC/XCTestObservationCenter+Register.m"; sourceTree = ""; }; - EFEC43A5F9215302AF01F47DC6991DCE /* Observable+Occupiable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Observable+Occupiable.swift"; path = "Source/Observable+Occupiable.swift"; sourceTree = ""; }; - F0098A3B6A398B25A1A994DAD480C4C7 /* Quick-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Quick-prefix.pch"; sourceTree = ""; }; - F0720B59BEE223968A6DE6A54A2CC1E5 /* SynchronizedDisposeType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SynchronizedDisposeType.swift; path = RxSwift/Concurrency/SynchronizedDisposeType.swift; sourceTree = ""; }; - F0D98198675715187D9E2E4279FE44EA /* RxTest-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "RxTest-Info.plist"; sourceTree = ""; }; - F0F4D42387393ECC9403C842C0151D6D /* DSL.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DSL.swift; path = Sources/Quick/DSL/DSL.swift; sourceTree = ""; }; - F15A0AB4B7EE699935882A8D1158C089 /* Observable+Bind.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Observable+Bind.swift"; path = "RxCocoa/Common/Observable+Bind.swift"; sourceTree = ""; }; - F16D6D532CAC7BEC2FE8BA28EF94CEDA /* XCTest+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "XCTest+Rx.swift"; path = "RxTest/XCTest+Rx.swift"; sourceTree = ""; }; - F1D0DEF8AE378771212A801A07C53B18 /* UITextView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UITextView+Rx.swift"; path = "RxCocoa/iOS/UITextView+Rx.swift"; sourceTree = ""; }; - F247A41545FE3F52D812D9840570D897 /* RxDataSources-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxDataSources-prefix.pch"; sourceTree = ""; }; - F2B5C4A60BF99D0CF680AD8A1A4BCB6E /* ItemEvents.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ItemEvents.swift; path = RxCocoa/iOS/Events/ItemEvents.swift; sourceTree = ""; }; - F2E64708972CA52974AF1C9D94624AA6 /* Single.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Single.swift; path = RxSwift/Traits/Single.swift; sourceTree = ""; }; - F3FB146050C58C1275CCA61DE6FC9458 /* Indicator.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Indicator.swift; path = Sources/Indicator.swift; sourceTree = ""; }; - F45CEA643612453E8A5F6822ABEA5B73 /* XCTestSuite+QuickTestSuiteBuilder.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "XCTestSuite+QuickTestSuiteBuilder.m"; path = "Sources/QuickObjectiveC/XCTestSuite+QuickTestSuiteBuilder.m"; sourceTree = ""; }; - F4650546AE291C7F910906D53810F40F /* First.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = First.swift; path = RxSwift/Observables/First.swift; sourceTree = ""; }; - F49EA8ADE7250D90C0EA46C02C8ABE15 /* MatcherProtocols.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = MatcherProtocols.swift; path = Sources/Nimble/Matchers/MatcherProtocols.swift; sourceTree = ""; }; - F5579079D126306F39F5A46CB4D53B1C /* BehaviorSubject.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BehaviorSubject.swift; path = RxSwift/Subjects/BehaviorSubject.swift; sourceTree = ""; }; - F5CE241225829D985044C131C3B3C07A /* BeEmpty.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BeEmpty.swift; path = Sources/Nimble/Matchers/BeEmpty.swift; sourceTree = ""; }; - F679311338662CF686458210A6AD83F0 /* BeCloseTo.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BeCloseTo.swift; path = Sources/Nimble/Matchers/BeCloseTo.swift; sourceTree = ""; }; - F6CE7C587CA091249D37AB47C6E3BFB2 /* SnapKit-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SnapKit-prefix.pch"; sourceTree = ""; }; - F7D37B7BC1E305C349D338A6997674DD /* Debounce.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Debounce.swift; path = RxSwift/Observables/Debounce.swift; sourceTree = ""; }; - F8187A30D2C9071CB104E26B43198938 /* Toaster.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = Toaster.h; path = Sources/Toaster.h; sourceTree = ""; }; - F8206FC322C13CDE968391554791269E /* PrimitiveSequence+Zip+arity.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "PrimitiveSequence+Zip+arity.swift"; path = "RxSwift/Traits/PrimitiveSequence+Zip+arity.swift"; sourceTree = ""; }; - F84D5C35FB1B34FA42AC59A22164F522 /* Switch.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Switch.swift; path = RxSwift/Observables/Switch.swift; sourceTree = ""; }; - F88BDB0B0308D87503F06ABB626F3AD6 /* Maybe.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Maybe.swift; path = RxSwift/Traits/Maybe.swift; sourceTree = ""; }; - F902E57A10449260F7CC83389B9CD920 /* Queue.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Queue.swift; path = Platform/DataStructures/Queue.swift; sourceTree = ""; }; - F95567ADA1D252506E802AE852BCC1CE /* DispatchQueue+Extensions.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "DispatchQueue+Extensions.swift"; path = "Platform/DispatchQueue+Extensions.swift"; sourceTree = ""; }; - F9DAAA62D61DC783BB6B2E6BEF5CDA98 /* Platform.Darwin.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Platform.Darwin.swift; path = Platform/Platform.Darwin.swift; sourceTree = ""; }; - FB3BDCA5CE78B8F654FF762B647E0DC4 /* Nimble-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Nimble-dummy.m"; sourceTree = ""; }; - FB444E97F71B08ED58193EF65765488A /* NSLayoutConstraint+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSLayoutConstraint+Rx.swift"; path = "RxCocoa/Common/NSLayoutConstraint+Rx.swift"; sourceTree = ""; }; - FB7E9425CC298059C4D306F33947E0E6 /* RxCocoa-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxCocoa-prefix.pch"; sourceTree = ""; }; - FC259ADB5EB290F8819D4C3DAA5A8ED9 /* Resource.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Resource.swift; path = Sources/Resource.swift; sourceTree = ""; }; - FC43180A7E0C8CF52F4894762021319C /* ShareReplayScope.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ShareReplayScope.swift; path = RxSwift/Observables/ShareReplayScope.swift; sourceTree = ""; }; - FD9698310CE9B1B85EFE803FC1BF589B /* _RXObjCRuntime.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = _RXObjCRuntime.m; path = RxCocoa/Runtime/_RXObjCRuntime.m; sourceTree = ""; }; - FD98126F9FCA4FB59CD96E737940CA74 /* OperationQueueScheduler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = OperationQueueScheduler.swift; path = RxSwift/Schedulers/OperationQueueScheduler.swift; sourceTree = ""; }; - FDBC6A25C54162ED88D91E890B53FD2D /* RxTableViewSectionedReloadDataSource.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxTableViewSectionedReloadDataSource.swift; path = Sources/RxDataSources/RxTableViewSectionedReloadDataSource.swift; sourceTree = ""; }; - FE5071CC00703FE0B1B6897805A55D5E /* Platform.Linux.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Platform.Linux.swift; path = Platform/Platform.Linux.swift; sourceTree = ""; }; - FE6A2C83CD148835CCBE1B45A04BDDCE /* QuickSpecBase.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = QuickSpecBase.h; path = Sources/QuickSpecBase/include/QuickSpecBase.h; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 10C5D1DF0B0903E84F8E9B2CDB05A61D /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 8CA19B3C581B7BB9A242E9572EF5CDB8 /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 21DC744E373681886C3CFF20C4DFE3D2 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - CD688FDDE582422F4D907E069AF0B5D0 /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4A739B5F278AA9A0B73043B9D13D6487 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - F915163D06E3B4292970D1E64AFD2BD8 /* Foundation.framework in Frameworks */, - E7CD948F522D04BDA00D7C87DB55A5AA /* RxCocoa.framework in Frameworks */, - A9A2B7241CF629A4600A520CD9E1F5E7 /* RxSwift.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4CC78C17DB0844462AF29633070CC0A7 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - AE402FE124346EB50B1EE28AFD0624E0 /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 50FD16F16EB23E46D75420C913A92C6E /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 323F42DBAF44F4DB1969EAF3015B0468 /* Foundation.framework in Frameworks */, - AB5972F47C721E66DDB356727D7D8EB8 /* RxAtomic.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 55C81EE76C6A69F1F69792A679310C68 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - EFB9CC9267297D8104141A4046AAD14E /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 621B9A25FCED6DC948600A208410DEDB /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - E45F7D5A7B4F909476051A453D74958A /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 67B63C021A0FA31B9F0F42FCF656BBDB /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ABD0719C83EB34C533393B6826E69BC9 /* CFNetwork.framework in Frameworks */, - 218FC76735C2CD3E84F920CE33EDD6FE /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 68227E4FE9C0764AB6E0673A1EC75C47 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - AA2A3AFE20102E2D00F933E38E01F65A /* Differentiator.framework in Frameworks */, - 34820B22597B0F1BC215337118FCC31B /* Foundation.framework in Frameworks */, - 442B5958255AE527E5B7C970BAEDE8EF /* RxCocoa.framework in Frameworks */, - 4ADD9779C99C30B2EE80A1A2DD573D49 /* RxSwift.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 73449195C0E726D5607E11309762A43E /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 1984174EF8DA6CA119D86485E3AC6C5A /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 73A173863657894A01CB54BA862DDBBA /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 67776864843D84DC929C1B66FF8C94F6 /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E6038795C21DE8E937C131A272900FA /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 59C8A859BF0D96DD377BF07F47E69641 /* Foundation.framework in Frameworks */, - BFA9AFACE094FAFDFF9B7E3A9DAA9B7E /* QuartzCore.framework in Frameworks */, - C278931D70A95E1B62CF33DE431436DE /* UIKit.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 97018CEFC3FCA3C472DB5A34E3CE44CF /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 2AB6139B43F30B53376983DF607B7E70 /* Foundation.framework in Frameworks */, - 4EDF9949DDB303E039B6EED3ACDDE120 /* RxCocoa.framework in Frameworks */, - F7F3FD457D634C70AF7E5ADC758A7B0B /* RxSwift.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - AE5E7D2110E851B0A484DE9A36F465D1 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 9679B957DC14883719F58BB0583C50C0 /* Foundation.framework in Frameworks */, - 56AC0543D27EA5B08D6C02A5360329B3 /* RxSwift.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - AE82AF71D7D5B9B267E7213F7ABAE387 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - E405BEE5687735D0ECCD36B5686F3911 /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - D9523B817C92EFD8BCE3CDE77F54908E /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 7BCC1E21AD0581F508C189CA6CDBF923 /* Foundation.framework in Frameworks */, - FBBE9D9A2D1C31E86BEABF94B224C4EE /* XCTest.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - DC89973FF125EA031715F625937D559A /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 2657D69A6485EF1B4476CD7C45323F69 /* Foundation.framework in Frameworks */, - 471163764CADB858AD67FA4113989EA9 /* RxSwift.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - E568644763D4EB5DE3A77FB88D3AAE40 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - A772704FAE173075C69F08B17C026E7B /* Foundation.framework in Frameworks */, - 9940BFEA69C28260552F12E52B82CA82 /* RxCocoa.framework in Frameworks */, - 5E0CFB2FE7DB285F876036E39C49E6F6 /* RxSwift.framework in Frameworks */, - 42D362FCA75176E38D365200CB588880 /* UIKit.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - F515E7B4DDCF3DE382549FE0FCCE519D /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 864575E922861D727A7E41F89C607B31 /* Foundation.framework in Frameworks */, - 11596F8E5C9D389CF010F62464D1CB0F /* RxSwift.framework in Frameworks */, - 119D4813B1C6DC83146D8330AB2F8B51 /* XCTest.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 05E3784DB139C81A58F9143473D22838 /* RxAtomic */ = { - isa = PBXGroup; - children = ( - 41647DB27B730C471058E932A7D16F69 /* RxAtomic.c */, - CEBB241F1D69C0D88576C94BEFB1E306 /* RxAtomic.h */, - F6989CF55E50308D21C61E4E9CA8851E /* Support Files */, - ); - name = RxAtomic; - path = RxAtomic; - sourceTree = ""; - }; - 063322D5D7DB1DD6045FEB36BB261C61 /* Support Files */ = { - isa = PBXGroup; - children = ( - E506A67BF39C3302910B5F993DB1F8DA /* RxCocoa.modulemap */, - E015B7FB4563CA849D041C437DEC10E3 /* RxCocoa.xcconfig */, - C2B2BCA73B107B7EB50BFC76A5AA357B /* RxCocoa-dummy.m */, - E6DC8DB424A4131E40ADB31EF467C5DD /* RxCocoa-Info.plist */, - FB7E9425CC298059C4D306F33947E0E6 /* RxCocoa-prefix.pch */, - ED044DFC06F9EBF89FE41F2C435C0D51 /* RxCocoa-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/RxCocoa"; - sourceTree = ""; - }; - 17FDB69B721715FE8A5B195CA90070E8 /* Support Files */ = { - isa = PBXGroup; - children = ( - 26FFB097B4190151DCE33C82DE473D14 /* RxBlocking.modulemap */, - B762349450971970AEC8D2ACE47E2F50 /* RxBlocking.xcconfig */, - 8CCBCE4191135355455CF273E90D0869 /* RxBlocking-dummy.m */, - BD962A075D7943414C760AA40FA04A2D /* RxBlocking-Info.plist */, - AED938E558478EAE506C20E9A5C2E87F /* RxBlocking-prefix.pch */, - 2FC3E13874104CFC8BF1D264A1F02074 /* RxBlocking-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/RxBlocking"; - sourceTree = ""; - }; - 1E43BFA6885D7390DE93657993EE77B3 /* SnapKit */ = { - isa = PBXGroup; - children = ( - 17E1F5675B0779BD63F7357AEC5B2A44 /* Constraint.swift */, - 30878B867ED48B6EE34D657B4B6B8575 /* ConstraintAttributes.swift */, - 4C983CE27D555CF9A6935B25ED202B31 /* ConstraintConfig.swift */, - A48B926B4C347D6EF507351149B3C4D1 /* ConstraintConstantTarget.swift */, - 8D59ABFBEF4F943792C2F44E655EB05C /* ConstraintDescription.swift */, - A76AB36848BA0D18C94961327E913BAB /* ConstraintDSL.swift */, - A46931BCC38782E15BF302DD97EE66D6 /* ConstraintInsets.swift */, - 707EA9A5CEBF90839C46A3BA32506F1B /* ConstraintInsetTarget.swift */, - C61C82AE37734D193C774C9DDBB214C3 /* ConstraintItem.swift */, - 8DE8A420689DF4101EA7FD990A11516B /* ConstraintLayoutGuide.swift */, - 14BBBCEAC9314B657B6CF3B796F92ABB /* ConstraintLayoutGuide+Extensions.swift */, - 4D988352889B8B012BBA5FC9D1669537 /* ConstraintLayoutGuideDSL.swift */, - D14C21DCF63C6CD7D617D6906C78530D /* ConstraintLayoutSupport.swift */, - B11A3337C903BA712F1A2C431901A310 /* ConstraintLayoutSupportDSL.swift */, - 104FC62B3760A833E5FE0E08622BA0FD /* ConstraintMaker.swift */, - C4CE80D93DC20876283A4EF1ADAB98EE /* ConstraintMakerEditable.swift */, - 9BE6EAEFDF58B358BE70074E15701F3E /* ConstraintMakerExtendable.swift */, - 86F858571FEEB03BDDB0135D38DD09ED /* ConstraintMakerFinalizable.swift */, - 0E2EC37387773524D153E11E7F9EBBE7 /* ConstraintMakerPriortizable.swift */, - 05E538AF8505070EEF607A5E0B108D6E /* ConstraintMakerRelatable.swift */, - 33D7756907CB63759438D1A15DF0633C /* ConstraintMultiplierTarget.swift */, - 589E3937132F02B4FA6044B35ECA8382 /* ConstraintOffsetTarget.swift */, - 95AAE6260BDDB10C0CAC414B3C65EAEE /* ConstraintPriority.swift */, - 253B52C8E2925282DE9567BDE9A97B25 /* ConstraintPriorityTarget.swift */, - 88ADEB1DB978B5544C7CA2BD04FF5071 /* ConstraintRelatableTarget.swift */, - 534C283D45A9F844D7BADC3D8D846362 /* ConstraintRelation.swift */, - 73BBB9929E9BE5A566FAD9F1AEC10F4D /* ConstraintView.swift */, - 2959ED5B51EC3AE70C34E1831CAE5BDB /* ConstraintView+Extensions.swift */, - E5E25E066D03BC3710E98027865783C1 /* ConstraintViewDSL.swift */, - ED901076DF109B55A5971DFADC8BEDED /* Debugging.swift */, - 3135ED76FB8D4E46B1376D236BA80FCD /* LayoutConstraint.swift */, - EEC61093453386F2EF9B3140666E49C0 /* LayoutConstraintItem.swift */, - C82650CF93CF83FDD54ECB4DE08E8D4E /* Typealiases.swift */, - B14ABFFD0DC30674A74DB1C5D3431CC5 /* UILayoutSupport+Extensions.swift */, - 3CA805B0B985532F615C1193F3C65138 /* Support Files */, - ); - name = SnapKit; - path = SnapKit; - sourceTree = ""; - }; - 1EF883C5169946D3E9215E16850AEAE2 /* Then */ = { - isa = PBXGroup; - children = ( - C5941066B3431F2BF193515189D03CFF /* Then.swift */, - 6B575F7E8DD973AF66CF551F57986C4C /* Support Files */, - ); - name = Then; - path = Then; - sourceTree = ""; - }; - 27B8F65ADF87532A41C08DB96B396EB0 /* Support Files */ = { - isa = PBXGroup; - children = ( - 5D7050A620AEE80D4D361CBA885DEFE4 /* RxKeyboard.modulemap */, - C88A9D0635F895FCEB47731ED5E882D1 /* RxKeyboard.xcconfig */, - 26ED9DAE5DDEECE82FFA5B9AB9AB83E1 /* RxKeyboard-dummy.m */, - 3B8FA09116468234C56B8A441C961486 /* RxKeyboard-Info.plist */, - 27A3A27A460912217B1D4F8E339865BA /* RxKeyboard-prefix.pch */, - 4A229BBB04F25906012093091E26ECB1 /* RxKeyboard-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/RxKeyboard"; - sourceTree = ""; - }; - 28430F83CA2AC0C74018A35DBE5A4315 /* Support Files */ = { - isa = PBXGroup; - children = ( - BB8AE9930BD8F57445922CE736A0DA2E /* Quick.modulemap */, - CF602282BD77E4207F3CF8B8BDCE2105 /* Quick.xcconfig */, - 4AC2C02DDA14A2127BC4AE6A0B56E36D /* Quick-dummy.m */, - DBF4208C7BC58F657CA22E13C1F91B5C /* Quick-Info.plist */, - F0098A3B6A398B25A1A994DAD480C4C7 /* Quick-prefix.pch */, - DB0D20E4D6A07F231254073FA17FBC61 /* Quick-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/Quick"; - sourceTree = ""; - }; - 2DADD0C88E8511F21A6BAB4EDD9D6C56 /* Pods-BringMyOwnBeer🍺 */ = { - isa = PBXGroup; - children = ( - 6E8B117B96C740B8CA27A9A6D2B422AC /* Pods-BringMyOwnBeer🍺.modulemap */, - CE4A69C45BF57631F81E88C7AB2A3604 /* Pods-BringMyOwnBeer🍺-acknowledgements.markdown */, - 19DFD51A051DDCD14BE4D2E34B80F778 /* Pods-BringMyOwnBeer🍺-acknowledgements.plist */, - 1A6D9B7E4CAAF3F91A39139F68FB5421 /* Pods-BringMyOwnBeer🍺-dummy.m */, - 7BB39A40F41F47F5EECFC70B8D528FD8 /* Pods-BringMyOwnBeer🍺-frameworks.sh */, - 7DF26B918459AB8ACAF4C3380C17535E /* Pods-BringMyOwnBeer🍺-Info.plist */, - 36BAAF6EE332009B8B07F42AAC220EF0 /* Pods-BringMyOwnBeer🍺-umbrella.h */, - 4DC9006B903CCE0D9444778A451B30EA /* Pods-BringMyOwnBeer🍺.debug.xcconfig */, - 7B979D11211B0509541E1430B386DE26 /* Pods-BringMyOwnBeer🍺.release.xcconfig */, - ); - name = "Pods-BringMyOwnBeer🍺"; - path = "Target Support Files/Pods-BringMyOwnBeer🍺"; - sourceTree = ""; - }; - 3BC01AA18ED627F557C3A709AA9FEBE2 /* Pods */ = { - isa = PBXGroup; - children = ( - F4FB2E62C7E81E760CE8574548DA7994 /* Differentiator */, - DB94B4A67D773EB0EA032B662E85AC13 /* Kingfisher */, - E4A5766EF28BDB8988EEFA702236E593 /* Nimble */, - 4B0C71A2EDD742AF5B646E175400EF45 /* Quick */, - 58F2212C2815326F378A9CD8499CC8F9 /* RxAppState */, - 05E3784DB139C81A58F9143473D22838 /* RxAtomic */, - D40B6707133B105ED55F0CCC69BD341C /* RxBlocking */, - 85EA8A3062B6AA9AB2B9C520835BF369 /* RxCocoa */, - F450CF8FE2FD6537A95E9381957B8220 /* RxDataSources */, - 722C84D31A98D39A0D1EED6FA82D6E1A /* RxKeyboard */, - 6C885A1A10A8CFA79AC1C8897D02E3CA /* RxOptional */, - D835271B45537E3E3593C3EA192733AD /* RxSwift */, - C7A90D554E8BF992E0F1CC4858FFC06B /* RxTest */, - 1E43BFA6885D7390DE93657993EE77B3 /* SnapKit */, - 1EF883C5169946D3E9215E16850AEAE2 /* Then */, - C866406BFCE3173F065CB82E5ACFEB7E /* Toaster */, - ); - name = Pods; - sourceTree = ""; - }; - 3CA805B0B985532F615C1193F3C65138 /* Support Files */ = { - isa = PBXGroup; - children = ( - 982072C382FDE7350BCDE47F973A0431 /* SnapKit.modulemap */, - 96C7A0661D667B3675AE3786F4FBF0BD /* SnapKit.xcconfig */, - 46FD3C6FAC5804936932501C05ED93C0 /* SnapKit-dummy.m */, - 9F0B63574CBC385CFB19052659476162 /* SnapKit-Info.plist */, - F6CE7C587CA091249D37AB47C6E3BFB2 /* SnapKit-prefix.pch */, - 1295DBA2BFCB554368C35A67BE3BA308 /* SnapKit-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/SnapKit"; - sourceTree = ""; - }; - 448AF2561F9F48D9C0C25603966EE1A3 /* Support Files */ = { - isa = PBXGroup; - children = ( - C96612757F1E67E42AB1B5A5CD5D7795 /* Kingfisher.modulemap */, - 448B85A144AB99471DCEFC89E19E53A9 /* Kingfisher.xcconfig */, - 0E0A6039ACA5062D91D39B9F4FE0854D /* Kingfisher-dummy.m */, - 0F2559B623EE0CA209155804CB8EB071 /* Kingfisher-Info.plist */, - A2B55A5FFE8F4A3385800C338D827DCF /* Kingfisher-prefix.pch */, - 43F36EDF9958FD4EB4CF11BB9B21AF1F /* Kingfisher-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/Kingfisher"; - sourceTree = ""; - }; - 4658464F7106E22CF32CE224DF88F5B0 /* Support Files */ = { - isa = PBXGroup; - children = ( - 9196D5BF42801F8377BDBFB2E5346B66 /* RxSwift.modulemap */, - 6F653373143C397FBB99062C270851CF /* RxSwift.xcconfig */, - 5AFBEA93E6056A346EFE0C3E8AC90EC2 /* RxSwift-dummy.m */, - 0BF160C01FA27445198F1D1FD61180E2 /* RxSwift-Info.plist */, - 97043489EA942C40994B58DBC48ACD48 /* RxSwift-prefix.pch */, - 876731F548A1B23762AA683382658F8C /* RxSwift-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/RxSwift"; - sourceTree = ""; - }; - 477C0BF671C27F8D3551F489653ACF60 /* Products */ = { - isa = PBXGroup; - children = ( - D51C3D0C53D23B97B032E3BDD4F82C82 /* Differentiator.framework */, - C3F44C782D64D7EB20B61CE3844EBFAD /* Kingfisher.framework */, - BAE263041362D074978BB3B577DF0A05 /* Nimble.framework */, - 4C35B14998E0AAEE2D66D54DD09C159B /* Pods_BringMyOwnBeer_.framework */, - C81D036F4AA54B64B44E6A8341973BD5 /* Pods_BringMyOwnBeer_Tests.framework */, - 3FE4815A7E918843EE95DC0D2123EE7F /* Pods_BringMyOwnBeer_UITests.framework */, - 0D631E9908483F9525A6B3F36F16CC61 /* Quick.framework */, - ED208E682DFD1434E270075258C18E51 /* RxAppState.framework */, - 8B6BD841EFEE4E2CFAC4ECBD46F0CF73 /* RxAtomic.framework */, - 25F63A531105CD4E1E4CCF5B918C5494 /* RxBlocking.framework */, - BC432FD48A5932251F1CAFBC4BF74894 /* RxCocoa.framework */, - 692F92D73EC27270EA9CC9575C3E65B6 /* RxDataSources.framework */, - 38B05587552A2C1CC56A9560B7556ADD /* RxKeyboard.framework */, - 7E82B375F620E71EA112AB528E5EDA8D /* RxOptional.framework */, - 809C5FAB588354C9BA37DC3EAB8CB45C /* RxSwift.framework */, - 031893FD3D882E436EC541DF783B1276 /* RxTest.framework */, - 979486118B3E90C08386079D57962701 /* SnapKit.framework */, - 9317E4947CA2FE1B5D5999034C09CCA7 /* Then.framework */, - BD810337F4A305D60D9250A197AA1EF1 /* Toaster.framework */, - ); - name = Products; - sourceTree = ""; - }; - 4B0C71A2EDD742AF5B646E175400EF45 /* Quick */ = { - isa = PBXGroup; - children = ( - 94A7F33BE88391E89D1502DB61913B32 /* Behavior.swift */, - 9AF2C7FCAAB8BDABD32720FDCDF49C98 /* Callsite.swift */, - 66D12F2ECCCF11F23ED2BD876A0ECF3A /* Closures.swift */, - 665B8321E25873AF6AC5A912897D1EFF /* Configuration.swift */, - F0F4D42387393ECC9403C842C0151D6D /* DSL.swift */, - BE868A6F2FE1C1E51B2D9BFA4D289C3B /* ErrorUtility.swift */, - E8BC7E22568E216851A7207725923370 /* Example.swift */, - AA11C9F1DFCF955B55B5D5C28363B93C /* ExampleGroup.swift */, - 70A3CF9AB195D28F298012620C8424B8 /* ExampleHooks.swift */, - 4FD335DD68D661E0FA76F5DCEAF878E9 /* ExampleMetadata.swift */, - 106A8B9AD19CE8E755BC8AE305560F4B /* Filter.swift */, - 4426174B5E8BDA0281FB54FE1AF7D182 /* HooksPhase.swift */, - D7BEBDA8BD03F189A04BC6B829EE8C49 /* NSBundle+CurrentTestBundle.swift */, - DECA58DEA686C6E10721034C1A68B142 /* NSString+C99ExtendedIdentifier.swift */, - 742EF47B540A808FA9AE990780E74864 /* QCKDSL.h */, - A0DD298D5AEED8CBEADB672E71F886A0 /* QCKDSL.m */, - 4996CF4BCF8425E2EF209C0070FBB241 /* Quick.h */, - D4C328D9AC05AE9266533579A1DC6D02 /* QuickConfiguration.h */, - 46E8FA32B698CCF40DF95B60C4FF554F /* QuickConfiguration.m */, - 9741ECC5A71EE898FB7893E01CBC2662 /* QuickSelectedTestSuiteBuilder.swift */, - D9A0133E62A442E90CA105D36C5632EC /* QuickSpec.h */, - A7124CFFFC78B42466A75D0E30C30D50 /* QuickSpec.m */, - FE6A2C83CD148835CCBE1B45A04BDDCE /* QuickSpecBase.h */, - 51B8B5BAD717EC58D68C8AAA7A3BFFBA /* QuickSpecBase.m */, - 4C03CF49BCF8FD269336B8C90A3A878F /* QuickTestSuite.swift */, - E69D213FDAECAAA7CB8BC4D8C0B83D92 /* SuiteHooks.swift */, - 8B6B1C128325D9437E96EDE2DAF03D66 /* URL+FileName.swift */, - 8036A6B262D510BFF665CB070C058821 /* World.swift */, - C64A48BA7652F9C34943471ED5015AF9 /* World+DSL.swift */, - F45CEA643612453E8A5F6822ABEA5B73 /* XCTestSuite+QuickTestSuiteBuilder.m */, - 28430F83CA2AC0C74018A35DBE5A4315 /* Support Files */, - ); - name = Quick; - path = Quick; - sourceTree = ""; - }; - 4C55D8F659795B12C552A6E6187C6B90 /* Support Files */ = { - isa = PBXGroup; - children = ( - 372270D1E307DA65812EB5924C43E334 /* RxTest.modulemap */, - 6F32A5F0F6D7A13DB47E8F994AB5E8EA /* RxTest.xcconfig */, - C9CDE4FF66E10FE46CDC88D53B25F173 /* RxTest-dummy.m */, - F0D98198675715187D9E2E4279FE44EA /* RxTest-Info.plist */, - B8B452C4CE3D3B768FD2D9E9FEC756C6 /* RxTest-prefix.pch */, - A7E0F3479D76DC6F75B0FD2ED8696FB2 /* RxTest-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/RxTest"; - sourceTree = ""; - }; - 58F2212C2815326F378A9CD8499CC8F9 /* RxAppState */ = { - isa = PBXGroup; - children = ( - 717AF6116671788D383F3A7A897D2630 /* RxApplicationDelegateProxy.swift */, - 34F5CB17929B81FA31781316DFEE8472 /* UIApplication+Rx.swift */, - 4BE91791249B13D821A8B5169B2E340B /* UIViewController+Rx.swift */, - F9E4F5F0463AF2E6B8525695EE5090BE /* Support Files */, - ); - name = RxAppState; - path = RxAppState; - sourceTree = ""; - }; - 5F0C4259EB20E2AF4787FCEFFF4F4794 /* Pods-BringMyOwnBeer🍺Tests */ = { - isa = PBXGroup; - children = ( - DF57C5B925ABC320BB0FC9C5E3BB36BD /* Pods-BringMyOwnBeer🍺Tests.modulemap */, - 4BF3AE4A570FA9B1A8DA134E2BB8E675 /* Pods-BringMyOwnBeer🍺Tests-acknowledgements.markdown */, - 88B335491CC8837A790AA3FB6A78FDBA /* Pods-BringMyOwnBeer🍺Tests-acknowledgements.plist */, - 067E05326DCC450CFEF9C59B51F190E7 /* Pods-BringMyOwnBeer🍺Tests-dummy.m */, - 60BCB01A441FA09986EEAE1896450253 /* Pods-BringMyOwnBeer🍺Tests-frameworks.sh */, - 801E311C268ADAEB7C77464EB842BF9F /* Pods-BringMyOwnBeer🍺Tests-Info.plist */, - 012098211E5B49211F0B867AC8842AA6 /* Pods-BringMyOwnBeer🍺Tests-umbrella.h */, - 580B9221A64597D1889B7FB0140CC344 /* Pods-BringMyOwnBeer🍺Tests.debug.xcconfig */, - A1E2837B86A984006B5573D37519CDAB /* Pods-BringMyOwnBeer🍺Tests.release.xcconfig */, - ); - name = "Pods-BringMyOwnBeer🍺Tests"; - path = "Target Support Files/Pods-BringMyOwnBeer🍺Tests"; - sourceTree = ""; - }; - 66248BF208FFC673D08FC8AB22ACBCF3 /* Support Files */ = { - isa = PBXGroup; - children = ( - 960D2B3BA507B2FA97E27DEAEAF39C49 /* Toaster.modulemap */, - CDE20025AF5A5BBB3C9D417E5A255D91 /* Toaster.xcconfig */, - C129D17C579514BFE254A6ADF572E71B /* Toaster-dummy.m */, - 5E8A84302D4E2919841B2574DFF6AA34 /* Toaster-Info.plist */, - 11AEA80566EEBAD66A90897784D64A33 /* Toaster-prefix.pch */, - B10F65BF4E9CA15E484C246F0957A3E0 /* Toaster-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/Toaster"; - sourceTree = ""; - }; - 6B575F7E8DD973AF66CF551F57986C4C /* Support Files */ = { - isa = PBXGroup; - children = ( - 343A75734A4B4826A0B6651E229704C2 /* Then.modulemap */, - B7455D69DD418FEA2E81E6476BDE2B56 /* Then.xcconfig */, - 0813EF033187C82CC5490108AE49D327 /* Then-dummy.m */, - 9C29F88B6B8D0F9C07CF5BAEC5F5BE33 /* Then-Info.plist */, - 0B9C577045E010F487E572FBEE9E11DD /* Then-prefix.pch */, - 42672C0E98347BD1D3FA7CDCE777736E /* Then-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/Then"; - sourceTree = ""; - }; - 6C885A1A10A8CFA79AC1C8897D02E3CA /* RxOptional */ = { - isa = PBXGroup; - children = ( - EFEC43A5F9215302AF01F47DC6991DCE /* Observable+Occupiable.swift */, - 67EA302965EB9B7064571AF0E9105B87 /* Observable+Optional.swift */, - 57C3104865D236DE468AEB961DFE3E66 /* Occupiable.swift */, - 364FADE043BB5379CFE8F43A575F271D /* OptionalType.swift */, - 54D5EE715D52C6E381D9F1F0F2D43128 /* RxOptionalError.swift */, - 9B23282386CFD6138C3BB2EA8086E14C /* SharedSequence+Occupiable.swift */, - 1D00BDF2190153639CC42AD3148C2178 /* SharedSequence+Optional.swift */, - DFCDC56E88DE606DF848B97742DC4085 /* Support Files */, - ); - name = RxOptional; - path = RxOptional; - sourceTree = ""; - }; - 722C84D31A98D39A0D1EED6FA82D6E1A /* RxKeyboard */ = { - isa = PBXGroup; - children = ( - 4F3D11170C9CEC45F542BFE83450E59A /* RxKeyboard.swift */, - 27B8F65ADF87532A41C08DB96B396EB0 /* Support Files */, - ); - name = RxKeyboard; - path = RxKeyboard; - sourceTree = ""; - }; - 8243C57D4B507F73A3BFF0690576FB08 /* Pods-BringMyOwnBeer🍺UITests */ = { - isa = PBXGroup; - children = ( - D43A3CAEBDA569D9828A179942139F6F /* Pods-BringMyOwnBeer🍺UITests.modulemap */, - 83AEF07B162EE6EFB05700B2C096A287 /* Pods-BringMyOwnBeer🍺UITests-acknowledgements.markdown */, - 8CF1517333927ECC658F7BFB19AF163F /* Pods-BringMyOwnBeer🍺UITests-acknowledgements.plist */, - B04A1101EC211BC5879ADA5D2464487E /* Pods-BringMyOwnBeer🍺UITests-dummy.m */, - C94644F13D00E7442FD902537AF93AC5 /* Pods-BringMyOwnBeer🍺UITests-frameworks.sh */, - 6F536219BE196C6FF684FEA5E96EF67B /* Pods-BringMyOwnBeer🍺UITests-Info.plist */, - 8165996F17123F16B09C79298012B9B0 /* Pods-BringMyOwnBeer🍺UITests-umbrella.h */, - 0B55E8D4041C5E15820B9582E2EEF211 /* Pods-BringMyOwnBeer🍺UITests.debug.xcconfig */, - 244CAA2B09F0727719BE386EBF2470B5 /* Pods-BringMyOwnBeer🍺UITests.release.xcconfig */, - ); - name = "Pods-BringMyOwnBeer🍺UITests"; - path = "Target Support Files/Pods-BringMyOwnBeer🍺UITests"; - sourceTree = ""; - }; - 85EA8A3062B6AA9AB2B9C520835BF369 /* RxCocoa */ = { - isa = PBXGroup; - children = ( - 122767D73009A7CA36CD1AF206D28B8E /* _RX.h */, - 0A1F52905F34295B6D0E08B19E8EBDE5 /* _RX.m */, - 4B8348F37E91925D3E74545FD1B35A18 /* _RXDelegateProxy.h */, - 88960002BC6773658CDC8A3D575AFBA3 /* _RXDelegateProxy.m */, - 9847EF6A5B763A53D81D6ED17ED0A5A3 /* _RXKVOObserver.h */, - 4926634F66A8CA968FAC1A3997349482 /* _RXKVOObserver.m */, - 046366E26B086E0C7AC338A4DF19EE83 /* _RXObjCRuntime.h */, - FD9698310CE9B1B85EFE803FC1BF589B /* _RXObjCRuntime.m */, - DE0D7391A9C15D94A47F58F94423F6D7 /* Bag.swift */, - 69A1B8A3E88C9BE1E3A80F48F7E5B544 /* BehaviorRelay.swift */, - 3FB4EA7679C957AA2FF56D302AF2826D /* BehaviorRelay+Driver.swift */, - 678A9B780A7EBAEFDD202BA57F83350C /* Binder.swift */, - 38DB6E104F77BC1187DE872C4399DEAB /* ControlEvent.swift */, - EF134C3127F4CF10BDE2BAF3F1EF7D91 /* ControlEvent+Driver.swift */, - 4E3D986DF536046EF3348C64F33BD015 /* ControlEvent+Signal.swift */, - 4D2274482FA45ABDF3A22F4236C4AC1C /* ControlProperty.swift */, - 429DBB7AB9A5E6E1AF75231016A4058F /* ControlProperty+Driver.swift */, - 9DD1E5D10E9246236EA34289B745BE2B /* ControlTarget.swift */, - 1331F02B467B705569FB3DCE4C350C8E /* DelegateProxy.swift */, - 65814D4597C3B32EE00704496F729778 /* DelegateProxyType.swift */, - D722CEB12A4CFD1AE54FC9D0A47FA809 /* Deprecated.swift */, - BAAD1EBE4FB420C3C29451C72DA06A35 /* DeprecationWarner.swift */, - B2951A45CD7D0110ECDE7028E7EBE5D8 /* DispatchQueue+Extensions.swift */, - E70790E195C3B9A966D85214E24A3B36 /* Driver.swift */, - 00FF7F2C5190B0AD0C9F920C988921F8 /* Driver+Subscription.swift */, - 59D20D34037E166F4AB90C364C3DC017 /* InfiniteSequence.swift */, - F2B5C4A60BF99D0CF680AD8A1A4BCB6E /* ItemEvents.swift */, - E6F44C4EE2AC6B02234AF82EE27EB3CB /* KeyPathBinder.swift */, - 802F750EB3282909A8F309AE62D1A806 /* KVORepresentable.swift */, - 8E0A3139BC3054B22E51E2CA1E3F1424 /* KVORepresentable+CoreGraphics.swift */, - CACBE8183572FC9F790907D1C884C37B /* KVORepresentable+Swift.swift */, - E04DDB4F9BFBAD98DF13AEEB7470BD76 /* Logging.swift */, - 0E0CBC6DA7E43AA095C471D7BC0C442A /* NotificationCenter+Rx.swift */, - 01AE586FC2B7064FB791FC5ECDE32945 /* NSButton+Rx.swift */, - 4E993802C8FC55992E621E235C247377 /* NSControl+Rx.swift */, - 23CDFB4DED74AF64108CE39090A0C24A /* NSImageView+Rx.swift */, - FB444E97F71B08ED58193EF65765488A /* NSLayoutConstraint+Rx.swift */, - 183E2FA636D48924DA710FBD7B7DCF7F /* NSObject+Rx.swift */, - C80DAFBDEAB71F368125D242644F1DD1 /* NSObject+Rx+KVORepresentable.swift */, - 12E1FC38BBF9DE850C77F8FC20453D1F /* NSObject+Rx+RawRepresentable.swift */, - 4DE96D35D16C3DA7EE4C9C726C9B8C2A /* NSSlider+Rx.swift */, - 307039565B0BE1495D89B2D17067B816 /* NSTextField+Rx.swift */, - 2EA60E047AAEB9ECD1F7008615276760 /* NSTextStorage+Rx.swift */, - 3A451828C3D6777C14E0F94CD915BF0D /* NSTextView+Rx.swift */, - DB34A770DB0E376C0AA15CB15582CAB9 /* NSView+Rx.swift */, - F15A0AB4B7EE699935882A8D1158C089 /* Observable+Bind.swift */, - 25E1450047A529253FEBD67512B53C36 /* ObservableConvertibleType+Driver.swift */, - CB1B5C8EF94FDBEA3E6ABFD238972F1C /* ObservableConvertibleType+SharedSequence.swift */, - 26251C408EED8A6B05C90027F0B72BDC /* ObservableConvertibleType+Signal.swift */, - 772215DDE79D94D74A1F632CD7598DAB /* Platform.Darwin.swift */, - FE5071CC00703FE0B1B6897805A55D5E /* Platform.Linux.swift */, - 7CE79889430E817A637252F86A2CE217 /* PriorityQueue.swift */, - E2466DC5BDE13F92D905FD131B462D7A /* PublishRelay.swift */, - 9BBBCC36592DBD676D9787E7E8EE684E /* PublishRelay+Signal.swift */, - CDE2B0EDC73B85AC384DD2B6DE3487E4 /* Queue.swift */, - 6BAF6D9F1D286D9E1E634557142D74B2 /* RecursiveLock.swift */, - 64E71347EC5DBA86D182FF656FF68111 /* RxCocoa.h */, - 24099C51A5180FE42CF848AE2E9AE013 /* RxCocoa.swift */, - AC385F5350D86A3BEB981FDAEE532B0F /* RxCocoaObjCRuntimeError+Extensions.swift */, - CDF9F880A6F482554045B190B8F8C826 /* RxCocoaRuntime.h */, - 9F1ABE51481B69FE29A34C4E6F25F62A /* RxCollectionViewDataSourcePrefetchingProxy.swift */, - AC15EF0DB3555779DFE642D8A2A08F24 /* RxCollectionViewDataSourceProxy.swift */, - 150FC4692F25A8DA743413203D0F1E1E /* RxCollectionViewDataSourceType.swift */, - 9D5F607FAED355979CE7D07E8E1EB2E6 /* RxCollectionViewDelegateProxy.swift */, - 2AF982951E0526CD7846B86CBE6B0FB1 /* RxCollectionViewReactiveArrayDataSource.swift */, - 0842E624530FCE792ED785919B960653 /* RxNavigationControllerDelegateProxy.swift */, - 1212937543EACB74713B464E86E0DBBF /* RxPickerViewAdapter.swift */, - D4667198B3EEE0BED4B7E3A7936F0FEB /* RxPickerViewDataSourceProxy.swift */, - AC0E6607C630FA21DA4FB13065B2675B /* RxPickerViewDataSourceType.swift */, - B05489914FE1D4F568D5166E2058BF81 /* RxPickerViewDelegateProxy.swift */, - 0BDF5071FA032D9950142958CDCCAFBD /* RxScrollViewDelegateProxy.swift */, - 761B94845B9AFBF32654F44E8F60486E /* RxSearchBarDelegateProxy.swift */, - 07EB2F05796CC03CBE836CB0692D9711 /* RxSearchControllerDelegateProxy.swift */, - 0A15F960F34E00AB47206EC5814201A1 /* RxTabBarControllerDelegateProxy.swift */, - A115FA300E4E0DFCEDE623EB59B72427 /* RxTabBarDelegateProxy.swift */, - 90D73CF6FF38541E29583272CFA7CFDA /* RxTableViewDataSourcePrefetchingProxy.swift */, - C264DB6B1BAB4FAB81EEB73D77DEF316 /* RxTableViewDataSourceProxy.swift */, - 121D17DF8C732B29E7BE3212922F9C1F /* RxTableViewDataSourceType.swift */, - 77BD33A1035F0D03D0D4A44DC0320D19 /* RxTableViewDelegateProxy.swift */, - 06BB4EEA40FEA2F1B4FDCB79B4D3A50A /* RxTableViewReactiveArrayDataSource.swift */, - C2A5DCA55C4A830160767E1B1CF4A2C7 /* RxTarget.swift */, - B7BFAA13458CE79CD2F40CAB4708B979 /* RxTextStorageDelegateProxy.swift */, - 75DB0EAF48663886CC1D533DD6D4E63E /* RxTextViewDelegateProxy.swift */, - 2159511C1D2281E7C825CCA172910808 /* RxWebViewDelegateProxy.swift */, - 07D2AEDDF5E6256B8E9884DF2B5B1785 /* SchedulerType+SharedSequence.swift */, - 555B07110806FF30C9B762E666E3998F /* SectionedViewDataSourceType.swift */, - 7395E33A8646C45E9A447A6EBB90DB06 /* SharedSequence.swift */, - A9AFE3D684F537DA2C1EEFBC61F31315 /* SharedSequence+Operators.swift */, - 41BED0A6E0D812AB7C0A569A47DA8E4D /* SharedSequence+Operators+arity.swift */, - 757605E8D621DF448AC15EE7D71D0B71 /* Signal.swift */, - 97789ACD81FA5EB72A69B121536BF14D /* Signal+Subscription.swift */, - C444BD2A402080C463CF4AE7A4CDF63C /* TextInput.swift */, - 7B21F3EC6D01F92B8A92C39FBD407E90 /* UIActivityIndicatorView+Rx.swift */, - 0C8145937F520C2398247877A2413DF8 /* UIAlertAction+Rx.swift */, - 00C87E9D800CAEDB9209FD1BCFECDD1B /* UIApplication+Rx.swift */, - 8628255D355256DBE1E4610A6F066D17 /* UIBarButtonItem+Rx.swift */, - AFCBC0C4AB28DB15675BD27F4A3863B4 /* UIButton+Rx.swift */, - BAF46A24D9818B501304D6C39BCBE65A /* UICollectionView+Rx.swift */, - CF3B1C1F0AB5064B6849514AEBB6F234 /* UIControl+Rx.swift */, - 01D85A9A0121303C4781CF7E22F03995 /* UIDatePicker+Rx.swift */, - D28A070ACD08345B0A1453FB5FAC5DEF /* UIGestureRecognizer+Rx.swift */, - B838033F310DCE72B002165620143D40 /* UIImageView+Rx.swift */, - 171F33894F843A1BEE2A0618E62E8B22 /* UILabel+Rx.swift */, - A79734FC816D0CA3A97117ABD611A64B /* UINavigationController+Rx.swift */, - 3E5B18BD615072FF1415B163E4B512A7 /* UINavigationItem+Rx.swift */, - 0638D2BA7601954EDA8F6D1492C73F02 /* UIPageControl+Rx.swift */, - 1841F89ECE40449753B75CF046CE8A9A /* UIPickerView+Rx.swift */, - 3BE04F0C0CF8B84105E0847FCCF16C92 /* UIProgressView+Rx.swift */, - 4C023D7AF28B1ED3ADA11B00D49D49DD /* UIRefreshControl+Rx.swift */, - 21CD4834437EABAD899F1D7D2D912C96 /* UIScrollView+Rx.swift */, - 657C0FF35E8D2798A68F88233113A229 /* UISearchBar+Rx.swift */, - 076348A52773E49DF901F4E76346D9AC /* UISearchController+Rx.swift */, - B10D502207DF00D90AE7ECEB67C5BB99 /* UISegmentedControl+Rx.swift */, - 31CD8A524033BCEAC3FAB5ACBF0B2100 /* UISlider+Rx.swift */, - DA28E480EFDACD67656A5751D809A084 /* UIStepper+Rx.swift */, - C21F85E2E2C88C7D6BA1BE17E1BDE9A7 /* UISwitch+Rx.swift */, - 8F1B925861B83157A6F4D8108CB5E8DB /* UITabBar+Rx.swift */, - 0F632B42FEE52492C14DBB402D39067F /* UITabBarController+Rx.swift */, - D3EF98614BC6347F6A2D5ABE9136BBD6 /* UITabBarItem+Rx.swift */, - D26FE55FE37901C37603C6DE71C34E50 /* UITableView+Rx.swift */, - 2267184171A040097204A9731CED518A /* UITextField+Rx.swift */, - F1D0DEF8AE378771212A801A07C53B18 /* UITextView+Rx.swift */, - 95C308790CCB233A2F28C8F8CCFB10CF /* UIView+Rx.swift */, - B370F526977D17974EE5D87048FF55D4 /* UIViewController+Rx.swift */, - E20DFBA5552664D4C50470EF927A3C88 /* UIWebView+Rx.swift */, - BC70AD93CC3A2E4A4F05C4B205B3C568 /* URLSession+Rx.swift */, - 063322D5D7DB1DD6045FEB36BB261C61 /* Support Files */, - ); - name = RxCocoa; - path = RxCocoa; - sourceTree = ""; - }; - 8AC81961DD79045B1446A22D0C97870B /* Targets Support Files */ = { - isa = PBXGroup; - children = ( - 2DADD0C88E8511F21A6BAB4EDD9D6C56 /* Pods-BringMyOwnBeer🍺 */, - 5F0C4259EB20E2AF4787FCEFFF4F4794 /* Pods-BringMyOwnBeer🍺Tests */, - 8243C57D4B507F73A3BFF0690576FB08 /* Pods-BringMyOwnBeer🍺UITests */, - ); - name = "Targets Support Files"; - sourceTree = ""; - }; - 9DD4CD671E446CBD40BB446E6E15F01D /* Support Files */ = { - isa = PBXGroup; - children = ( - 55BAA808C5C1DE059EC3C73396D912AB /* RxDataSources.modulemap */, - E95AA211C8355CC0E1AF076C736EC685 /* RxDataSources.xcconfig */, - 38D7CC81FB22FA3EF364800C964A01C6 /* RxDataSources-dummy.m */, - 87543889FEDC12B6F6F8F2BCE8AD549C /* RxDataSources-Info.plist */, - F247A41545FE3F52D812D9840570D897 /* RxDataSources-prefix.pch */, - 45D1AA2F971B3AE90902E343430D64BB /* RxDataSources-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/RxDataSources"; - sourceTree = ""; - }; - A0BD9410E4FC1C7AD42BBF0A3D6D138F /* Support Files */ = { - isa = PBXGroup; - children = ( - 4D19EE451F9E54B4AFDCECF0FBD5ECF4 /* Nimble.modulemap */, - 89290702FC1FD04F7D485152D2AC9239 /* Nimble.xcconfig */, - FB3BDCA5CE78B8F654FF762B647E0DC4 /* Nimble-dummy.m */, - A1B336A70E52A887F1E3C8E061D34C86 /* Nimble-Info.plist */, - EAA8EBF57031914B7AE5684E8B94AB8D /* Nimble-prefix.pch */, - 925EAC9DBD428B7755D5D91DC61A5493 /* Nimble-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/Nimble"; - sourceTree = ""; - }; - BA5ED732FFABFFD01B4ED16ECC08AD60 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 8E277FE06D4C97240FFE7069214F07A5 /* Differentiator.framework */, - 0308C40A3C61760276AF40DEE6C2DD52 /* RxAtomic.framework */, - 795B4BD213193AD2888241C918DE7FC9 /* RxCocoa.framework */, - EACFC6C42F7516E2D1D06CEBC7CDCB9A /* RxSwift.framework */, - E52D6DDAFBBB3B549ABA13E066D8716C /* iOS */, - ); - name = Frameworks; - sourceTree = ""; - }; - C7A90D554E8BF992E0F1CC4858FFC06B /* RxTest */ = { - isa = PBXGroup; - children = ( - 4189997D8434955D12F8A9F1C0A2472C /* Any+Equatable.swift */, - 91DA584A59EF219263A431DDDD7EAFDB /* AtomicInt.swift */, - 017484E363F4120536CD0F4EDADC4BD6 /* Bag.swift */, - 469DA7F9A5249C54FBE98201B9A960AB /* ColdObservable.swift */, - 2520AB0F8FA27B50D5645091F1B9ADBD /* Deprecated.swift */, - 459CFD09639D614F3ADE8F532C498775 /* DeprecationWarner.swift */, - F95567ADA1D252506E802AE852BCC1CE /* DispatchQueue+Extensions.swift */, - B9D765BE9C6BD3A760BF6040AE2F8C39 /* Event+Equatable.swift */, - 719C318CA577E3BB79CCF7EEB11DA4BF /* HotObservable.swift */, - 4AFFC130AE708495613014ADACA2F482 /* InfiniteSequence.swift */, - 2DCEAAE532CCABCD76C33A256E72F1AF /* Platform.Darwin.swift */, - 3E0AE2B56127C3EBEDD041C58555C1F5 /* Platform.Linux.swift */, - 8E147378E4CA6AF44CBDFE7E993FD8D6 /* PriorityQueue.swift */, - F902E57A10449260F7CC83389B9CD920 /* Queue.swift */, - 4E656EE4912733CBA46792E22C1FD5E6 /* Recorded.swift */, - BF6C9E383DB5A67D533E0310E87487FA /* Recorded+Event.swift */, - 520D3D1FFD5A41E3A65B09AABD967D13 /* RecursiveLock.swift */, - 8F92930B84672B8E2085D79AC48ECF1C /* RxTest.swift */, - 5E1451DDAB42CBA9B7AE273812CB5EE5 /* Subscription.swift */, - B03A0BA955D937E9B0451A2B171CEBD3 /* TestableObservable.swift */, - B6158A50D092EEC5DB92D42D5053F31E /* TestableObserver.swift */, - BD6374913D4B0A17216007C943A016BE /* TestScheduler.swift */, - 04B50948547DF86E3A5FFE5FF48FDF54 /* TestSchedulerVirtualTimeConverter.swift */, - F16D6D532CAC7BEC2FE8BA28EF94CEDA /* XCTest+Rx.swift */, - 4C55D8F659795B12C552A6E6187C6B90 /* Support Files */, - ); - name = RxTest; - path = RxTest; - sourceTree = ""; - }; - C866406BFCE3173F065CB82E5ACFEB7E /* Toaster */ = { - isa = PBXGroup; - children = ( - 70972418B4A2E6860EC7FA32B3151DDB /* Toast.swift */, - 32A1B81F9D55EB48F95D77EA5E33734E /* ToastCenter.swift */, - F8187A30D2C9071CB104E26B43198938 /* Toaster.h */, - D217F26147ADA21A7A6DC0A9C214F3CD /* ToastView.swift */, - 064BB2988CFB114E003F3CA400BD1178 /* ToastWindow.swift */, - 66248BF208FFC673D08FC8AB22ACBCF3 /* Support Files */, - ); - name = Toaster; - path = Toaster; - sourceTree = ""; - }; - CF1408CF629C7361332E53B88F7BD30C = { - isa = PBXGroup; - children = ( - 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, - BA5ED732FFABFFD01B4ED16ECC08AD60 /* Frameworks */, - 3BC01AA18ED627F557C3A709AA9FEBE2 /* Pods */, - 477C0BF671C27F8D3551F489653ACF60 /* Products */, - 8AC81961DD79045B1446A22D0C97870B /* Targets Support Files */, - ); - sourceTree = ""; - }; - D40B6707133B105ED55F0CCC69BD341C /* RxBlocking */ = { - isa = PBXGroup; - children = ( - 7F7FFFEE37286E4BF302829E71D77AC3 /* AtomicInt.swift */, - EF63A633E9D929E38F030D3A3568A6DA /* Bag.swift */, - 0BC9E61C21762BA0040E538EEF0EEE0E /* BlockingObservable.swift */, - 068FF503C0A1204CBE4C8190D8C32A17 /* BlockingObservable+Operators.swift */, - 1E88ABA1AB8CABD15092ADABFDC04D1C /* DeprecationWarner.swift */, - D74115839EBD9D0C09B4AC35C130C21A /* DispatchQueue+Extensions.swift */, - 0E27C0BF8F637E57CB0EB2A52C98760E /* InfiniteSequence.swift */, - 9A91E810A15CA5CDC0D08519CCC4085D /* ObservableConvertibleType+Blocking.swift */, - 946C3DBF12A228D8194F07CBC046912C /* Platform.Darwin.swift */, - DEC56FDFA000E5AB57DEEB007DCBAA6B /* Platform.Linux.swift */, - 867428098B419D7BEE6FE6DDE3E07314 /* PriorityQueue.swift */, - A772E7411A073C39FF417101BC6D1442 /* Queue.swift */, - 1440BBCB400B618AE4A67CFE7BA8BD38 /* RecursiveLock.swift */, - AD231060F9267F138A9D6833F1FA9289 /* Resources.swift */, - 5492F9330776E1274F6A66C071721942 /* RunLoopLock.swift */, - 17FDB69B721715FE8A5B195CA90070E8 /* Support Files */, - ); - name = RxBlocking; - path = RxBlocking; - sourceTree = ""; - }; - D835271B45537E3E3593C3EA192733AD /* RxSwift */ = { - isa = PBXGroup; - children = ( - EE3636481D357F18F9764FC8A36405C5 /* AddRef.swift */, - BF54CC6145AF8FEB5AD11177936A2264 /* Amb.swift */, - 1FFD756874D15203AD21F1D10E000A81 /* AnonymousDisposable.swift */, - 89F3027B2B89CCA834DD3D5C0674CE1A /* AnonymousObserver.swift */, - 874F0F55B33C35BD121A322BC07CC73C /* AnyObserver.swift */, - 13172CD85F7B68A0E9CCA872C50B6E90 /* AsMaybe.swift */, - 0428B98FB37E90FE79DC0913EE4A2D4E /* AsSingle.swift */, - 8DFC577652F399B4E90100F78EC738A4 /* AsyncLock.swift */, - 513595B4001C9D47BAA1727CDB9623B6 /* AsyncSubject.swift */, - A068FC9092E21222557B7336EA6DD172 /* AtomicInt.swift */, - 8402073A9F0290EE6C7F9E1CAF082024 /* Bag.swift */, - 6F80B25A4AE1DB8D3308972771A97400 /* Bag+Rx.swift */, - F5579079D126306F39F5A46CB4D53B1C /* BehaviorSubject.swift */, - 8EE6FFB478B90CC12E1E4F2F7DF92F48 /* BinaryDisposable.swift */, - C305CBB6745EF242D3900C964169BDA4 /* BooleanDisposable.swift */, - 9EE65D1E24EB35EC069D7CBD433E0E68 /* Buffer.swift */, - 3200C300588B081EFF47300B89E37860 /* Cancelable.swift */, - BD388D185C9CE70BFC0DC4F7EF32712D /* Catch.swift */, - 702F11DBB597626C4B3E00E99C1C799B /* CombineLatest.swift */, - 330CDFA85788470DFC71A849FDF684A6 /* CombineLatest+arity.swift */, - 962625A20C74540FEB292C589AF0A354 /* CombineLatest+Collection.swift */, - 7CB0634025B5024A235C72746E34C790 /* Completable.swift */, - 895F9708278B24EC3CBDC9EF6925C6C2 /* Completable+AndThen.swift */, - 8F77207C86CB072DAFF44221EE3740FE /* CompositeDisposable.swift */, - 85062DB1C32EAE983C6D4E3806EEB23E /* Concat.swift */, - D9604B5F77D77F47FFEB7901A1C4EDC7 /* ConcurrentDispatchQueueScheduler.swift */, - 96D6DDECE248BD37B9DE936699F26E61 /* ConcurrentMainScheduler.swift */, - 319D849354E982581577B5023EABFD5A /* ConnectableObservableType.swift */, - ADF5E74964F3280F5A79AB2A28646903 /* Create.swift */, - BB61B09337E5A339C5E8792C71FEB253 /* CurrentThreadScheduler.swift */, - F7D37B7BC1E305C349D338A6997674DD /* Debounce.swift */, - 22C6A70865C14EF0BA1C3666E261788B /* Debug.swift */, - D987E6C82FDCDE43EEC0871DD1C3DA33 /* DefaultIfEmpty.swift */, - 8206ECCAF64E4FEBEC74C3B20F0AB7CF /* Deferred.swift */, - 0D6E8DE419E2ECA8AAD7DABF34513187 /* Delay.swift */, - 268D0CC79DCCF9AB9F0DFE45FAED2532 /* DelaySubscription.swift */, - BC6F8F8A9C4F7D29695F239EF58F1172 /* Dematerialize.swift */, - 901564D60CA96827EF3B33586E14F4AB /* Deprecated.swift */, - 69CDEE82C8878DBCAE2F09BB2A9ADEE9 /* DeprecationWarner.swift */, - CC6B22E5024246A7CACDF74C73DB4F9C /* DispatchQueue+Extensions.swift */, - 6A27D419E3952478DD17BB33A79BCFE7 /* DispatchQueueConfiguration.swift */, - 2D61B6C9462B284D26232BEB6715EDE9 /* Disposable.swift */, - C679A6EC715B8C4740CF0D0A1872EBAA /* Disposables.swift */, - B4FE0C2A019AB122AC48DF62C7BBADD4 /* DisposeBag.swift */, - 4D44EFB3386242263F8A8A5CA84DA368 /* DisposeBase.swift */, - 3C4F6478576D6E71FF3B0937B21AD999 /* DistinctUntilChanged.swift */, - DD292B656B5F10BF8CBF128EF405A068 /* Do.swift */, - 13432447F7471F17BDA2BAAAE87B1865 /* ElementAt.swift */, - 6A85124D91BC86C0211D340EA71B5672 /* Empty.swift */, - 9E8E632A97D3D5863E982C1CA008907B /* Enumerated.swift */, - 7B3DCD023DD9CA108616085245FC0A97 /* Error.swift */, - 603613513381DBFF5B3BB7C2BA0F3B9F /* Errors.swift */, - E302C99DDB310C695B63D0F6E1D51761 /* Event.swift */, - E7207EB3CF4E65EC3493425DD86B79CD /* Filter.swift */, - F4650546AE291C7F910906D53810F40F /* First.swift */, - 46FDF39C6B8398B0676965FFA67BA6C1 /* Generate.swift */, - D673BE3F39CDED753308F6C332364FCE /* GroupBy.swift */, - 9C3BE02057B015A2049ADF83908E4A20 /* GroupedObservable.swift */, - B210383040F0DC399000455893DD4329 /* HistoricalScheduler.swift */, - 272D7E08C80909A11772F993C32A55DD /* HistoricalSchedulerTimeConverter.swift */, - 1120DDA5E2663592AC3C3808F212C6C3 /* ImmediateSchedulerType.swift */, - 0AF8D1F1A5CF8898986CCE5891A2D27F /* InfiniteSequence.swift */, - E7A1DB3C9C81D94DAF575649EA4C7EAD /* InvocableScheduledItem.swift */, - 0B1E05E5A4F0CE4B4B3AD9EC22E653AC /* InvocableType.swift */, - 5A8801376BEA34F5B7713AE7EBDAFD03 /* Just.swift */, - 7B0BB5B7DD009B4F438B894E7F93482F /* Lock.swift */, - 963857563CCB4B0471DF67AB55412199 /* LockOwnerType.swift */, - 8BBB17EA2766A4A3A7FB2984BF211F7B /* MainScheduler.swift */, - 0216AFDBCD1642D1004F90BF05C567DB /* Map.swift */, - 8F46DF883BD49B22D2BFD801D3EF288F /* Materialize.swift */, - F88BDB0B0308D87503F06ABB626F3AD6 /* Maybe.swift */, - 7989D3797AD06D99E46ABEBAD0FF86EA /* Merge.swift */, - 92507A2EC9122D2B5CA3A7E3AE9FFD84 /* Multicast.swift */, - 6124D5B49A40371B719AAF596D24D65E /* Never.swift */, - 6C5E54D629602933704CE09CAA943FD7 /* NopDisposable.swift */, - BAC3CD33EF71BB5DDA2BD44E6DE0F6BF /* Observable.swift */, - DC11D2ABD9BC5397C31F87A45AA9DC8E /* ObservableConvertibleType.swift */, - C117A91D8640F1BD988BFC6D0DC05DAC /* ObservableType.swift */, - 0DD41DF0E1341FA9B1FA89B785B7A698 /* ObservableType+Extensions.swift */, - 6860A0C856F0DF9B899BCF4F153C7A15 /* ObservableType+PrimitiveSequence.swift */, - 8235EE7A19290DB05F8D1BC22C19C148 /* ObserveOn.swift */, - 064D890DDB50ADF15C3B3B04DB3753AB /* ObserverBase.swift */, - 192BCC0B455A9ED7D2FD7D487AA25835 /* ObserverType.swift */, - FD98126F9FCA4FB59CD96E737940CA74 /* OperationQueueScheduler.swift */, - 229F185658716FE21650ADC75842F6CA /* Optional.swift */, - F9DAAA62D61DC783BB6B2E6BEF5CDA98 /* Platform.Darwin.swift */, - D84380B7B1724493A99F2568898EB6F5 /* Platform.Linux.swift */, - 074A0D6460BFBB3D683A927B0F350B86 /* PrimitiveSequence.swift */, - F8206FC322C13CDE968391554791269E /* PrimitiveSequence+Zip+arity.swift */, - 7376601BDF7F04AD21EE15F792E11511 /* PriorityQueue.swift */, - 200C40469489C62638C1961E03423EE4 /* Producer.swift */, - 91260163FCC7B248806C09339D2B2018 /* PublishSubject.swift */, - 54FF3F16C23175BEC589230E76E047CD /* Queue.swift */, - EE8F424CC6B95A6079D6EDCF7B5167CC /* Range.swift */, - 741D4C5652FF476A48549A2277EC4354 /* Reactive.swift */, - 79A2F4E0BB5348855DD38263C7D811D5 /* RecursiveLock.swift */, - 4BAD98417AA56563739FA7DAE7502E51 /* RecursiveScheduler.swift */, - 2274093D1E1C66395EF449961B81E0ED /* Reduce.swift */, - 1DCC5ED8F88C635BB4F80D233845334A /* RefCountDisposable.swift */, - 57483B0E911FA2468867DCB5C3DE13AB /* Repeat.swift */, - 996BD7F99AA951023E78D4F2E90DE49F /* ReplaySubject.swift */, - 929BAB594A511C4FD0CE36638062D47B /* RetryWhen.swift */, - 7078B45FE9DF3AE28A138F2BB6F703E5 /* Rx.swift */, - C88342B297615EEB35E6A756A5D85836 /* RxMutableBox.swift */, - 418173B6DFE6539A0A1A2566B5901822 /* Sample.swift */, - 4DDDE9294EB5F25449B5A3257F49B17B /* Scan.swift */, - B199793F738E2DF3CA85E56FE790D5A1 /* ScheduledDisposable.swift */, - 728F0C67B50D748AE638133A05316137 /* ScheduledItem.swift */, - C8F6B99DABB1B061B27137AAD8C3A903 /* ScheduledItemType.swift */, - 907D625DA722BEAC1D5CC7F8A7854779 /* SchedulerServices+Emulation.swift */, - 19A0321C2FBCFED68871AA61B04B8C79 /* SchedulerType.swift */, - 9839FEF1A3552B2928E57C1E26984461 /* Sequence.swift */, - 87999CE957B415DB96C773D01CE90D56 /* SerialDispatchQueueScheduler.swift */, - 10495D11E8A809B4D707BA689BD3C713 /* SerialDisposable.swift */, - FC43180A7E0C8CF52F4894762021319C /* ShareReplayScope.swift */, - F2E64708972CA52974AF1C9D94624AA6 /* Single.swift */, - 33FE5FA8209CCF1425BF8B0406E3EF80 /* SingleAssignmentDisposable.swift */, - 908BAC52D7FB59370C6770B6105302A3 /* SingleAsync.swift */, - 0B71511FF9E00DE74E26405952C1005A /* Sink.swift */, - C6FDE07F97CC225DC206BFDCF1341C98 /* Skip.swift */, - 784A704DCDEC8E63EB6149C9FB9CBF1E /* SkipUntil.swift */, - 5A4EBC2ACF584B6EFE1FCAD11F266127 /* SkipWhile.swift */, - 40BF6A98F1E1D89122398AD2673548A2 /* StartWith.swift */, - 1EAA22B7CD86143383B514ED9AE4CF44 /* String+Rx.swift */, - 5BEE89A857C73C0A286514892D76CB2F /* SubjectType.swift */, - E3DE3EEC80DFAC45841317932C26A0FC /* SubscribeOn.swift */, - 19D2924C7F6CB06C84170A6A68A44626 /* SubscriptionDisposable.swift */, - 4668B009D39689EEB1847C72B0C63F1D /* SwiftSupport.swift */, - F84D5C35FB1B34FA42AC59A22164F522 /* Switch.swift */, - 5C360012F00E3453F917C117606AE2C8 /* SwitchIfEmpty.swift */, - F0720B59BEE223968A6DE6A54A2CC1E5 /* SynchronizedDisposeType.swift */, - 31EA9C125BB634DC09985F1CCF9818A5 /* SynchronizedOnType.swift */, - 8ABDA40BCC9A32B30BD5046A9824694E /* SynchronizedUnsubscribeType.swift */, - 66286B3127232102D0C5EC09AAAA898C /* TailRecursiveSink.swift */, - B0A23DDE05343F9CE11EABF28DD9D2C8 /* Take.swift */, - 05C3F2A8A64E81EFA22EF98FB83BC303 /* TakeLast.swift */, - 740196738107B92013B8313B37AAC5CF /* TakeUntil.swift */, - 1AB37380A4F805849D80DF17FE08439E /* TakeWhile.swift */, - 2DE701152346EB65E8EB0A4708D8A32F /* Throttle.swift */, - 552F9D32B23F883C86F8FD4B4FF95710 /* Timeout.swift */, - 67A09DBB4CCF5BE7702CE0CF9F1AAF7E /* Timer.swift */, - 7E4EF9911995A7E83C701426342F3AAD /* ToArray.swift */, - 294AAB061743552EFA25B9307587B968 /* Using.swift */, - 8C2B56373A4972470F1AEC8055DDC8DB /* VirtualTimeConverterType.swift */, - 40945AEE1BF11436B994FA2428622748 /* VirtualTimeScheduler.swift */, - 30B63BA877D78A118CCD9C348CE41C80 /* Window.swift */, - D7AB0615E4C7255AA8CB8329A70E6F91 /* WithLatestFrom.swift */, - 5920B320FEC631060AA90F43381D9229 /* Zip.swift */, - 290DAC6B604A682F0114A036C68ACAB5 /* Zip+arity.swift */, - CA730DDABDF37C1BC46DD8B006687378 /* Zip+Collection.swift */, - 4658464F7106E22CF32CE224DF88F5B0 /* Support Files */, - ); - name = RxSwift; - path = RxSwift; - sourceTree = ""; - }; - DB94B4A67D773EB0EA032B662E85AC13 /* Kingfisher */ = { - isa = PBXGroup; - children = ( - 2939E7D1A5119D2C1CF3BD2DDC3B9EE1 /* AnimatedImageView.swift */, - 83B906694CCF60DB41F9104169CDDD05 /* Box.swift */, - 5C317CEAE3D7D2C867B0202521A7ADAF /* CacheSerializer.swift */, - 6DFBA8AC501C7CA242AF691CFEC75BD3 /* Filter.swift */, - 3FB566D9B02EAFAAAF4E9C7AD4887179 /* FormatIndicatedCacheSerializer.swift */, - 09DCB634B295F04288F86B6982FB2161 /* Image.swift */, - 0CB5EF8CBAE752E2EED61DDB98A7EDA3 /* ImageCache.swift */, - ADBE6740CAC8AEF23D88EEE7B633E8CA /* ImageDownloader.swift */, - 1DCEED5C8D0F2D5290EA1D21C78DE8EA /* ImageModifier.swift */, - C1804BECB7EE10AF45AB6B14793D7488 /* ImagePrefetcher.swift */, - 6CEA158BB2D6D4CBDBDB229B6D54F467 /* ImageProcessor.swift */, - BF756F7EF7A86EE2201A044D3180C479 /* ImageTransition.swift */, - A1FFDDC693EFEB1E7B9C1AD3906E58BB /* ImageView+Kingfisher.swift */, - F3FB146050C58C1275CCA61DE6FC9458 /* Indicator.swift */, - B9514B5453E134CFADAADAB0B6EE02BF /* Kingfisher.h */, - E1A1C69F248896615A152739EBE43A31 /* Kingfisher.swift */, - 4FDA4B5961C86B680CD902B7105E8418 /* KingfisherManager.swift */, - 500CB50E8FAA87BD36398690AD3E81B9 /* KingfisherOptionsInfo.swift */, - ABB499E698904C33D6D7836C59FFAB2A /* Placeholder.swift */, - 6F8641CA08559BFBE426F370AA2EDD91 /* RequestModifier.swift */, - FC259ADB5EB290F8819D4C3DAA5A8ED9 /* Resource.swift */, - E21DBE3739ABAD4DDB5892C0D87205C1 /* String+MD5.swift */, - A7A34FFEF9014E5D7BAD0492F0E1E279 /* ThreadHelper.swift */, - DFE505F98766BF3CB5F401F569BFAE96 /* UIButton+Kingfisher.swift */, - 448AF2561F9F48D9C0C25603966EE1A3 /* Support Files */, - ); - name = Kingfisher; - path = Kingfisher; - sourceTree = ""; - }; - DFCDC56E88DE606DF848B97742DC4085 /* Support Files */ = { - isa = PBXGroup; - children = ( - 12848100A80F6DCDF05E32490784A0BD /* RxOptional.modulemap */, - EE16D4631EEF6D753E6DC3C67AC58141 /* RxOptional.xcconfig */, - A4DBF0A193432F3EC410F473F03EBB58 /* RxOptional-dummy.m */, - 055B4D6BEEA04E5C126F9768A8764265 /* RxOptional-Info.plist */, - 35A9F44AE6912C0C6846B174CFF3AABD /* RxOptional-prefix.pch */, - 91D62C2FC502349328D1C479FE666ACB /* RxOptional-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/RxOptional"; - sourceTree = ""; - }; - E4A5766EF28BDB8988EEFA702236E593 /* Nimble */ = { - isa = PBXGroup; - children = ( - 1E2E1EDA2C0264572FB6A585BE51E95A /* AdapterProtocols.swift */, - A857F6D47CA6534AE5910316BBEC6015 /* AllPass.swift */, - 7F92E98FA0AE738EBED8CE0A5D5924B7 /* AssertionDispatcher.swift */, - 91DD1C1AC02C8FC30EBC316026D93D86 /* AssertionRecorder.swift */, - D6ECEB6CB57031A3FB93BF5AA4525618 /* Async.swift */, - 98089F23E2A81AC1D0DF61E972A14F75 /* Await.swift */, - 87C1D360AB5AE6A86D35FA51A4AB4C90 /* BeAKindOf.swift */, - BDDB597A5CEDDC592D8C87B81173B33F /* BeAnInstanceOf.swift */, - F679311338662CF686458210A6AD83F0 /* BeCloseTo.swift */, - F5CE241225829D985044C131C3B3C07A /* BeEmpty.swift */, - 5582AC76559B86E5217B4452DABA39AC /* BeginWith.swift */, - D8FACFABD8E5577C2B9AA509E6DDA3F7 /* BeGreaterThan.swift */, - 3979F0D3B741CD16AB2D22F9C2F0CAE1 /* BeGreaterThanOrEqualTo.swift */, - 7348969365C0E4E4D1798CDE8AFB80C0 /* BeIdenticalTo.swift */, - 89BEBAF86B83D48D188643026562F006 /* BeLessThan.swift */, - 7453FE9780EF9D30228CE5F744F52792 /* BeLessThanOrEqual.swift */, - 1062435FA42E6945ADEE04BD71492F91 /* BeLogical.swift */, - D39B012DB0BAA5F6F6C5AF4C5F4C477E /* BeNil.swift */, - 82222085E662463B481C30C02314F41F /* BeVoid.swift */, - 5A5338032B8E3043020D3C22E636A264 /* Contain.swift */, - 489C32A42C39C8EE740332B6E98B99EA /* ContainElementSatisfying.swift */, - 8E7B7F4BFBD1598C8169CDFD44D39DFC /* CwlBadInstructionException.swift */, - 29726DB7A25E2F2AE26B13FA7B4E1F84 /* CwlCatchBadInstruction.swift */, - 8258B7A389451038C404FFDC1E7BCCDF /* CwlCatchException.h */, - 9DE1680089BE4380DE48CC061927A133 /* CwlCatchException.m */, - 87CD9A3AC6B217A719928CCFA8969B88 /* CwlCatchException.swift */, - CEF44521341EC56AB7AB450446D9C753 /* CwlDarwinDefinitions.swift */, - 4B2DB2ED0440FF5F5D4318C72256C5CF /* CwlMachBadInstructionHandler.h */, - C40DCC5C784ED6928B83AEC7B0529738 /* CwlMachBadInstructionHandler.m */, - 2AABC12F44AD12B6C726421FD5C480FC /* CwlPreconditionTesting.h */, - 8458BFC6FCF71C404A80199A679C611A /* DSL.h */, - C9D28A30EA59A1FBCF68FDC2A3B6A0CD /* DSL.m */, - 82E376909E881A51FF4F043EA195A094 /* DSL.swift */, - DCD2029025EB30D5FC6B30FAE33011B5 /* DSL+Wait.swift */, - 339C4776A985F8B7A718ADA89384951B /* ElementsEqual.swift */, - 10BA37FB1082EF5BB93D2F0AAC48AF70 /* EndWith.swift */, - E908021EB8ED9DB683D0522B2A5B23CE /* Equal.swift */, - AA38E2E5E2EF4C2174642C0C3E51EFFF /* Errors.swift */, - 439E34BF6F3982618B22886070F943E3 /* Expectation.swift */, - 23DBE98B380204708571AA195DDBB59D /* ExpectationMessage.swift */, - 32FD105C77178E28945C3B1496EE48FC /* Expression.swift */, - E8B17FEB47374D05E25924B826B6CCF9 /* FailureMessage.swift */, - AA9BB684D654B28507A1CC2A05067A84 /* Functional.swift */, - AEDD297395EBD1D4A6BDBF612A124E69 /* HaveCount.swift */, - A1F450EF438BBB261901FE00C2B82D78 /* mach_excServer.c */, - 4B0F49BE5D0E202BA20F6B8E5F2716C0 /* mach_excServer.h */, - 2C9AEA4B5727BABD04A99023584D2E32 /* Match.swift */, - 39CB84CE75228FF39CB01CCF7BF0CAC0 /* MatcherFunc.swift */, - F49EA8ADE7250D90C0EA46C02C8ABE15 /* MatcherProtocols.swift */, - A1FBB76503D1FCC3369E38DAA13BEC83 /* MatchError.swift */, - 97C94A14220DDB8B6A410BB3671A7280 /* Nimble.h */, - 5E205B3EBB20919EFA43927C822600A2 /* NimbleEnvironment.swift */, - 276B2552A1C04AAB78BEA46675E70B98 /* NimbleXCTestHandler.swift */, - 67BCA6C3981D6E2547AC7E4EB59774F1 /* NMBExceptionCapture.h */, - 10DF0A9F7333C626351E7E228C63D417 /* NMBExceptionCapture.m */, - AC297C329F63D0472A4F7E54A3529DCF /* NMBExpectation.swift */, - 8EA000A9C3130A4AF1DCD2F4EF27FE49 /* NMBObjCMatcher.swift */, - E54F2391E382C7960427A3C135E55DB0 /* NMBStringify.h */, - 5D65432717C107937A619B6C55339EE5 /* NMBStringify.m */, - E4CC0DC5A95E56E05F88FBABF027E855 /* PostNotification.swift */, - 51E92D6FB4E3DD8C58969F7E9035C3BC /* Predicate.swift */, - 457E34E5144A73C160B17545A9D7ABD6 /* RaisesException.swift */, - 7590C7F791088DCB9BAD46D95886DCDD /* SatisfyAllOf.swift */, - B090F8C3F4553906893190B2C2FFA917 /* SatisfyAnyOf.swift */, - B89D28D7924C5A47F2003B3EF77EA4DB /* SourceLocation.swift */, - 0F4D4EE0E77834786A386C7BEADDFC74 /* Stringers.swift */, - 71780E3BD527569FCE1624B53F1406C4 /* ThrowAssertion.swift */, - 2B7702E3BCA01A6023F8DDF5C45EEA01 /* ThrowError.swift */, - 301EFA0A06246E3648521955A51EA883 /* ToSucceed.swift */, - EF8B076947FF9357A64A0AD72B2E9099 /* XCTestObservationCenter+Register.m */, - A0BD9410E4FC1C7AD42BBF0A3D6D138F /* Support Files */, - ); - name = Nimble; - path = Nimble; - sourceTree = ""; - }; - E52D6DDAFBBB3B549ABA13E066D8716C /* iOS */ = { - isa = PBXGroup; - children = ( - 5174026C60B7F0099D7C269C789D216B /* CFNetwork.framework */, - 21B0D6E69CB0A35093C7E92812854A0A /* Foundation.framework */, - BB53B29451254E974A92F78871FC485D /* QuartzCore.framework */, - 53E038523BDEFCFCF48679062CC54605 /* UIKit.framework */, - E3A5A06D55ACE09DF1941935D042D8AF /* XCTest.framework */, - ); - name = iOS; - sourceTree = ""; - }; - EF400AAC906C256C51DE9BD036056E58 /* Support Files */ = { - isa = PBXGroup; - children = ( - ACD74694506F8EA57C5073E731B42012 /* Differentiator.modulemap */, - 98240EEC51C403351D20051EB27F2771 /* Differentiator.xcconfig */, - A9E10CE315C3D4694A7E5CFCB34029FE /* Differentiator-dummy.m */, - C164FE05947DA77562CBC11703885791 /* Differentiator-Info.plist */, - 65E9C6AAA6811AF674762F215FB0D4E0 /* Differentiator-prefix.pch */, - 498153CFA2BB4C0F6AED039F5C551D9E /* Differentiator-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/Differentiator"; - sourceTree = ""; - }; - F450CF8FE2FD6537A95E9381957B8220 /* RxDataSources */ = { - isa = PBXGroup; - children = ( - 6BEE0B5D358C1198C83D094E716B3058 /* AnimationConfiguration.swift */, - A093D7986E72C29769A9993CA711BD8A /* Array+Extensions.swift */, - 1CE5AC0D801D3277464D566D92686EB9 /* CollectionViewSectionedDataSource.swift */, - 8C33099447C4CB0242D4D8ADBB13A766 /* DataSources.swift */, - 6343EDB4C36D752D27C630752AFF9859 /* Deprecated.swift */, - 7723090601538C76D76AFE241C837F7D /* FloatingPointType+IdentifiableType.swift */, - E3D41EB241A2D4C195FF14BC9656D5B8 /* IntegerType+IdentifiableType.swift */, - 23FADAFCB5103D42AC7D58C7559172E7 /* RxCollectionViewSectionedAnimatedDataSource.swift */, - 527B333EF233231FFAD19B3B47BFA4EA /* RxCollectionViewSectionedReloadDataSource.swift */, - 4E6AAD57EEBA396168FF3AA364EC9455 /* RxPickerViewAdapter.swift */, - 82B87AE6583FE56FD8D9A9B0EEDAE938 /* RxTableViewSectionedAnimatedDataSource.swift */, - FDBC6A25C54162ED88D91E890B53FD2D /* RxTableViewSectionedReloadDataSource.swift */, - 493CD4CD61B17D9D27F62CE54695504C /* String+IdentifiableType.swift */, - 4089B46645E8114718C5A2D4E9B9E7EC /* TableViewSectionedDataSource.swift */, - 6D7045124907F71937E332737198D438 /* UI+SectionedViewType.swift */, - 51D11BC83E1ACF754CFC35393BF505DA /* ViewTransition.swift */, - 9DD4CD671E446CBD40BB446E6E15F01D /* Support Files */, - ); - name = RxDataSources; - path = RxDataSources; - sourceTree = ""; - }; - F4FB2E62C7E81E760CE8574548DA7994 /* Differentiator */ = { - isa = PBXGroup; - children = ( - 96C6C5464A09909339189BDFE5F665DE /* AnimatableSectionModel.swift */, - 065980E342A2FA9EE1D248FEE72293C0 /* AnimatableSectionModelType.swift */, - 0F6A3E2740D3F4D568A94DC58D86A844 /* AnimatableSectionModelType+ItemPath.swift */, - DE1FCED81173361F437E806123E5AF12 /* Changeset.swift */, - 9957CF88B0FD31C811E9BB2849BF3C4C /* Diff.swift */, - 9ECF7E350B563752D62A16903482E9F8 /* IdentifiableType.swift */, - B0B264F4F74BC800DF88ABDCDF2F56D5 /* IdentifiableValue.swift */, - 3D0411045C48436737FA23F548AC23F1 /* ItemPath.swift */, - 001F793ECDA8F6E2E1A378D298210D96 /* Optional+Extensions.swift */, - 465CA5EE6DADA1C411BBED8FA0D86E1A /* SectionModel.swift */, - 39E14B1202BD0219F43A424AB4B37A01 /* SectionModelType.swift */, - 465E813069145C6947D74622FDA24F80 /* Utilities.swift */, - EF400AAC906C256C51DE9BD036056E58 /* Support Files */, - ); - name = Differentiator; - path = Differentiator; - sourceTree = ""; - }; - F6989CF55E50308D21C61E4E9CA8851E /* Support Files */ = { - isa = PBXGroup; - children = ( - 6131E5A9EE04BF28D85689DEC9CFA6B4 /* RxAtomic.modulemap */, - 844176B2B776BC84232DDBCD58F92172 /* RxAtomic.xcconfig */, - 740AA8E00DBE56339456AB8D47B83B9C /* RxAtomic-dummy.m */, - 1B9D91E7E7489D7746911B814FEA1098 /* RxAtomic-Info.plist */, - 490F1FED015A657E2225514F05A52E96 /* RxAtomic-prefix.pch */, - A0ED18E436CC116345C735513C1C9AA9 /* RxAtomic-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/RxAtomic"; - sourceTree = ""; - }; - F9E4F5F0463AF2E6B8525695EE5090BE /* Support Files */ = { - isa = PBXGroup; - children = ( - 09001B441CC67A808A4D1E99054D15EF /* RxAppState.modulemap */, - C7CAC5CD7E3F0AE161D4E799C5EF0911 /* RxAppState.xcconfig */, - 70577D53A5C40E75560F1501EA339979 /* RxAppState-dummy.m */, - A3CAD401ED2C16DA886FC7D574EA8BD2 /* RxAppState-Info.plist */, - 048ECDDF0CDFE8406F1FB2A4CD73CB16 /* RxAppState-prefix.pch */, - 1721DAF6D797105F413647453E6F0347 /* RxAppState-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/RxAppState"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - 025A00547E28FE1928528961E11A2113 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - F80D9DE6C306B5125AD6A15ECCE04451 /* Then-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 078A4AC76F1913890334014A03527324 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 76EAD93344C2B682BFB854BB3DBB945F /* RxAtomic-umbrella.h in Headers */, - B0C3A4F5A688B4058EDEF85F5C880A8C /* RxAtomic.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 19A7157A2F3CC83B89E64FCD731C21E9 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 23AD9C846E8E67C7603CC09EC24A98F8 /* Toaster-umbrella.h in Headers */, - CBC27F3832D11E3144CE31A52AEED38C /* Toaster.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 36DDD3F658A2B775F8B39BBFA6561635 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 28400157B63F40AA135BF16780AB4B96 /* SnapKit-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 37F9DA5192FCF0629CEB26768C7F0253 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 9281AFE693DFA91FBCC9FEB195653923 /* RxSwift-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 51A00ABBA2BEF3913A4628399CEBD45B /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 221ED892E5138A00F3CDF540E914519D /* CwlCatchException.h in Headers */, - 9F70369EF71BD9ABAFF687AF532CC20D /* CwlMachBadInstructionHandler.h in Headers */, - 19BA8AF46D9CC49E3E2CEDCAF6354442 /* CwlPreconditionTesting.h in Headers */, - C051C0411627BD5FCDA031782EB1F716 /* DSL.h in Headers */, - 3BD0C370BBCEBDEA68B8EDBD969370EB /* mach_excServer.h in Headers */, - CD6B1F146B0E157FE5B9CAFFAE77A5B5 /* Nimble-umbrella.h in Headers */, - 9BB5E9B6487FE95C710687B484C17161 /* Nimble.h in Headers */, - 8D17749611AB0C8BD51C068749D8DF68 /* NMBExceptionCapture.h in Headers */, - E0EAC85F7ACFAD998B14FCE66144000E /* NMBStringify.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5366BB99D5AE4EACABACB5933834A40D /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 55F5BAE076A19DF358CE3B23E6384296 /* RxKeyboard-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 557D5EF4FE244E2BB921026CCA55E64F /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 5A3F9AE47B62B80177F7D8C62B0DF041 /* RxOptional-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 61A6AD5B4CD2AC4DCBE60441B8D734AE /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 90A5D40B5A45BB67F1DAB3D668E791A3 /* RxAppState-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 702B1E0A1C49092E234A44000BE296F5 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 5798C2121676047DD7FE4CAB1BFC1415 /* RxTest-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7083F59AAEA52AB2D815B9449E44BF4B /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 69D61A61A38B90B4B778BF84FA63EB83 /* Pods-BringMyOwnBeer🍺UITests-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7F792AE300C57B1BCF7E0FADA445A4C0 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - D83FF1C610A256CA6DC2CD15B799A859 /* Pods-BringMyOwnBeer🍺-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 84F13460B5CDE0C925175550974F7E1E /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - C5D08AD707EEA2A637673B0E04030EE0 /* RxDataSources-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 90B338B354C92DC1414EA46072EDE417 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 53164A2DDB944329FD8720F2F0D45228 /* Kingfisher-umbrella.h in Headers */, - 39FC1A51FF31905080FDA44316A2E3FA /* Kingfisher.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - A78C77706D3FF86A9464FCFE6BDC2E03 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 99E845F0835B32015AA999D4F5E6B525 /* _RX.h in Headers */, - 348099BE2181AAA847E793AD67ABE03B /* _RXDelegateProxy.h in Headers */, - 8BD9774E42F94FE85DE488C7F3AB9B68 /* _RXKVOObserver.h in Headers */, - CAC0199D91E1052A656307502C744087 /* _RXObjCRuntime.h in Headers */, - 906B7E4F57A8AB4209CE4869BCE5108F /* RxCocoa-umbrella.h in Headers */, - A86C20C4E9577A009C3E8743EBE5F225 /* RxCocoa.h in Headers */, - C537C998BE3FE2BB2492016CCD6B975C /* RxCocoaRuntime.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - B5AA5A069CD07471EA97CC5F6778DB29 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 73A1284EB4ACA41061161C1D3559C1C2 /* Pods-BringMyOwnBeer🍺Tests-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - B8EBB2B56D9D6806DA9B82A3038ECD05 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - A109B0247F5D04C633F4E2E73753068B /* Differentiator-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - C8AEA1C5A23E0EF1DE461C65934ACC61 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - EF6299ADE36BFF34A15402F16258B34F /* RxBlocking-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - EC3EC9092F61BD757267FD6009C275C5 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - C912897D77798A90873A3DAD8A4BDC50 /* QCKDSL.h in Headers */, - BD379F95293A811D8E591CAC8E9FF410 /* Quick-umbrella.h in Headers */, - A9BF211D24462D531E278F2AE317AEA4 /* Quick.h in Headers */, - 34EA8D74C57BC1A6AC8C0A5B5267E56C /* QuickConfiguration.h in Headers */, - D755642ECA73CFE2E4C31CDD0DFBA42E /* QuickSpec.h in Headers */, - 403F837F9B4AC86C901D238D847A767A /* QuickSpecBase.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - 19622742EBA51E823D6DAE3F8CDBFAD4 /* SnapKit */ = { - isa = PBXNativeTarget; - buildConfigurationList = 31C2F67A24EFF2D5F6410E6A9D00BB2A /* Build configuration list for PBXNativeTarget "SnapKit" */; - buildPhases = ( - 36DDD3F658A2B775F8B39BBFA6561635 /* Headers */, - 948D48E19F2A3CAC37461E0DA4FF9A87 /* Sources */, - 73A173863657894A01CB54BA862DDBBA /* Frameworks */, - 1FA6EE6BB1452EE8D40646CF50CA9922 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = SnapKit; - productName = SnapKit; - productReference = 979486118B3E90C08386079D57962701 /* SnapKit.framework */; - productType = "com.apple.product-type.framework"; - }; - 212F79CE462FC723AF42979B57FBB8A6 /* Differentiator */ = { - isa = PBXNativeTarget; - buildConfigurationList = 03A244BE9DA27F0E875F6F1CF16FBDBC /* Build configuration list for PBXNativeTarget "Differentiator" */; - buildPhases = ( - B8EBB2B56D9D6806DA9B82A3038ECD05 /* Headers */, - 2AC16422D60DFE44F290E0930FFF2164 /* Sources */, - AE82AF71D7D5B9B267E7213F7ABAE387 /* Frameworks */, - F2DD0E55DC0BA7CCCC0D27DB295CDBD4 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = Differentiator; - productName = Differentiator; - productReference = D51C3D0C53D23B97B032E3BDD4F82C82 /* Differentiator.framework */; - productType = "com.apple.product-type.framework"; - }; - 2CEE308D2C2024ABC968E3474B843F0E /* RxAppState */ = { - isa = PBXNativeTarget; - buildConfigurationList = 2F8ADFD7CBC21D23AE9204ED2714B8D2 /* Build configuration list for PBXNativeTarget "RxAppState" */; - buildPhases = ( - 61A6AD5B4CD2AC4DCBE60441B8D734AE /* Headers */, - 244126E7C8115461E07FC293975098DB /* Sources */, - 4A739B5F278AA9A0B73043B9D13D6487 /* Frameworks */, - 2A20C3DE49EE0FD6469A8C087CD7048D /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 531BBE685DB7E6C2DC8687096FECEC02 /* PBXTargetDependency */, - B34CA2BC55BC3C01B147BBBB8E6D4E92 /* PBXTargetDependency */, - ); - name = RxAppState; - productName = RxAppState; - productReference = ED208E682DFD1434E270075258C18E51 /* RxAppState.framework */; - productType = "com.apple.product-type.framework"; - }; - 3B2E405FB76A0E213CE57985A423DED6 /* RxAtomic */ = { - isa = PBXNativeTarget; - buildConfigurationList = E479750B29AEFA85D608C256D9CF262F /* Build configuration list for PBXNativeTarget "RxAtomic" */; - buildPhases = ( - 078A4AC76F1913890334014A03527324 /* Headers */, - 983474F105EFBBD2761C5A1B92158B4C /* Sources */, - 4CC78C17DB0844462AF29633070CC0A7 /* Frameworks */, - 9BB8D2FE7493EDD38AEDAF6F122831D3 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = RxAtomic; - productName = RxAtomic; - productReference = 8B6BD841EFEE4E2CFAC4ECBD46F0CF73 /* RxAtomic.framework */; - productType = "com.apple.product-type.framework"; - }; - 3D8B1104C8B4F5AD74F600289D7A12AD /* RxOptional */ = { - isa = PBXNativeTarget; - buildConfigurationList = 9B1FF1AC63E783EEE09FEBA08DA645C7 /* Build configuration list for PBXNativeTarget "RxOptional" */; - buildPhases = ( - 557D5EF4FE244E2BB921026CCA55E64F /* Headers */, - ACAC29FE7976A0743FDC606D7A1583C1 /* Sources */, - 97018CEFC3FCA3C472DB5A34E3CE44CF /* Frameworks */, - 8042D78C60EBDA416CBA41D26DE3FBCD /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 8868D41BD0C8C9F953B5EA8B3A5D2377 /* PBXTargetDependency */, - 118281A9DC60825BB07AE764412AE554 /* PBXTargetDependency */, - ); - name = RxOptional; - productName = RxOptional; - productReference = 7E82B375F620E71EA112AB528E5EDA8D /* RxOptional.framework */; - productType = "com.apple.product-type.framework"; - }; - 401909D4FB2014BF539896BF0CCA48C2 /* RxDataSources */ = { - isa = PBXNativeTarget; - buildConfigurationList = 9CD6D175E7F24C01C655061076EA67F7 /* Build configuration list for PBXNativeTarget "RxDataSources" */; - buildPhases = ( - 84F13460B5CDE0C925175550974F7E1E /* Headers */, - 10835BAE4C33F7D6D2EC9084DBECDFD2 /* Sources */, - 68227E4FE9C0764AB6E0673A1EC75C47 /* Frameworks */, - 3098A2D0FB48DB32D2D9B8F06C24BAAB /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - F87EF38C5F072440A3AD9AD3BBADB08A /* PBXTargetDependency */, - 98CE6B7D91AA2669817DD8FB535E81FB /* PBXTargetDependency */, - 02C64CF5CC1A9DCE776BB54B4EBAC803 /* PBXTargetDependency */, - ); - name = RxDataSources; - productName = RxDataSources; - productReference = 692F92D73EC27270EA9CC9575C3E65B6 /* RxDataSources.framework */; - productType = "com.apple.product-type.framework"; - }; - 46E48C41E3556F8E41D231C8FD9B7471 /* RxKeyboard */ = { - isa = PBXNativeTarget; - buildConfigurationList = A69D6A4264F225C6E6D85B7802DBA096 /* Build configuration list for PBXNativeTarget "RxKeyboard" */; - buildPhases = ( - 5366BB99D5AE4EACABACB5933834A40D /* Headers */, - 930018D81DD984C922D7E041795D7B7A /* Sources */, - E568644763D4EB5DE3A77FB88D3AAE40 /* Frameworks */, - 641C4CD09A3AB0F4952EB475A816BE19 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 28E06CABEEEBAB962F3A472D1A78CEB5 /* PBXTargetDependency */, - CE04A73168D6438E84C02C5946617E5B /* PBXTargetDependency */, - ); - name = RxKeyboard; - productName = RxKeyboard; - productReference = 38B05587552A2C1CC56A9560B7556ADD /* RxKeyboard.framework */; - productType = "com.apple.product-type.framework"; - }; - 6F13695E06195A78EA8A95F8C7ED0D2F /* Nimble */ = { - isa = PBXNativeTarget; - buildConfigurationList = 9AC65E53333ACA93EEB1D8EBAB58CBB6 /* Build configuration list for PBXNativeTarget "Nimble" */; - buildPhases = ( - 51A00ABBA2BEF3913A4628399CEBD45B /* Headers */, - D399136A0E6FE19CACE7F05143312FB1 /* Sources */, - 55C81EE76C6A69F1F69792A679310C68 /* Frameworks */, - D7EBE1F47ACC336A60ED6056AF3261E1 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = Nimble; - productName = Nimble; - productReference = BAE263041362D074978BB3B577DF0A05 /* Nimble.framework */; - productType = "com.apple.product-type.framework"; - }; - 7AD0C6DCDC9CEC8A3C7C10C7FEE07BE6 /* RxCocoa */ = { - isa = PBXNativeTarget; - buildConfigurationList = DE763D2CD62E45778BCDB89B90D2E290 /* Build configuration list for PBXNativeTarget "RxCocoa" */; - buildPhases = ( - A78C77706D3FF86A9464FCFE6BDC2E03 /* Headers */, - 3DAEDCBD38BD666D1938F2811846DCEA /* Sources */, - AE5E7D2110E851B0A484DE9A36F465D1 /* Frameworks */, - 94625865BDBE3FB7A6923F3CB7436364 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 7FADE31B96FE8C2AFDBE5A4C1E1494B0 /* PBXTargetDependency */, - ); - name = RxCocoa; - productName = RxCocoa; - productReference = BC432FD48A5932251F1CAFBC4BF74894 /* RxCocoa.framework */; - productType = "com.apple.product-type.framework"; - }; - 81F4F367AE14DB05B67351DFBED4E5F3 /* Pods-BringMyOwnBeer🍺UITests */ = { - isa = PBXNativeTarget; - buildConfigurationList = B159FAEE9310DB71391EC5834F8A6018 /* Build configuration list for PBXNativeTarget "Pods-BringMyOwnBeer🍺UITests" */; - buildPhases = ( - 7083F59AAEA52AB2D815B9449E44BF4B /* Headers */, - 0818FCE52CAECAD5582544FEA6726B98 /* Sources */, - 621B9A25FCED6DC948600A208410DEDB /* Frameworks */, - 0F1A5B6892C3C8BC2EFCFAB3509FA199 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 4DE75170BA804A9D5A657B972DF0D68A /* PBXTargetDependency */, - 95A4945688475E18948A214954ABBDB8 /* PBXTargetDependency */, - 2D1102F29412E0D985FDC040B9D575DF /* PBXTargetDependency */, - 94EA69A8391AAC7CE02806739DB30DBB /* PBXTargetDependency */, - E6DBF6CB0CFB0504F602DE856ACE7D16 /* PBXTargetDependency */, - 4D4295B9A5EA7E6FB50C32A029575941 /* PBXTargetDependency */, - 3F595CEEFEC09468C51F44AED8D1C9E9 /* PBXTargetDependency */, - ); - name = "Pods-BringMyOwnBeer🍺UITests"; - productName = "Pods-BringMyOwnBeer🍺UITests"; - productReference = 3FE4815A7E918843EE95DC0D2123EE7F /* Pods_BringMyOwnBeer_UITests.framework */; - productType = "com.apple.product-type.framework"; - }; - B1CBF9D69A9EB43C8FB167DFF56AF739 /* Pods-BringMyOwnBeer🍺 */ = { - isa = PBXNativeTarget; - buildConfigurationList = AA0C81850CC50D54468970BEDD4E848F /* Build configuration list for PBXNativeTarget "Pods-BringMyOwnBeer🍺" */; - buildPhases = ( - 7F792AE300C57B1BCF7E0FADA445A4C0 /* Headers */, - 94F9167060B640199F8C42888D576C28 /* Sources */, - 73449195C0E726D5607E11309762A43E /* Frameworks */, - E18C5C1A604AF35545CAA33FA35A8573 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - D7DC66A7C8E7E05A90918E5319FA31FA /* PBXTargetDependency */, - C1A49B16497C90160D55BBD09B3A15C4 /* PBXTargetDependency */, - 3C8731A42E9383E510547512F375DD67 /* PBXTargetDependency */, - 95D04A4322B9AA878C726A3FD303439C /* PBXTargetDependency */, - 9B904D9E8D9993A396969CCDC4C3BA37 /* PBXTargetDependency */, - 4F008F5E4C8BCD9B5E129BB9B4339BF9 /* PBXTargetDependency */, - F24349382563219AAE45B194A3EE4B4A /* PBXTargetDependency */, - BFD0D0D3C4E1E35BBD1DF030BB6412AE /* PBXTargetDependency */, - EE0D2A73DC23C599DCC5A7763281A333 /* PBXTargetDependency */, - 1AE07F938CC6642E8F901F3167636303 /* PBXTargetDependency */, - 8C24E8FE0BD38821EFC989DE9923AA68 /* PBXTargetDependency */, - 60DEDBF8B22C02835E2E3543C203D82C /* PBXTargetDependency */, - ); - name = "Pods-BringMyOwnBeer🍺"; - productName = "Pods-BringMyOwnBeer🍺"; - productReference = 4C35B14998E0AAEE2D66D54DD09C159B /* Pods_BringMyOwnBeer_.framework */; - productType = "com.apple.product-type.framework"; - }; - B90AB98A7BC6A346D671B36DB990DAC2 /* Toaster */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7F7D586D0C9967BE7BE79E98769B7FD9 /* Build configuration list for PBXNativeTarget "Toaster" */; - buildPhases = ( - 19A7157A2F3CC83B89E64FCD731C21E9 /* Headers */, - F9790E768E3E826C36ED0CC3086AD472 /* Sources */, - 7E6038795C21DE8E937C131A272900FA /* Frameworks */, - E07C304D71053DD6D19451E5160B0DD1 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = Toaster; - productName = Toaster; - productReference = BD810337F4A305D60D9250A197AA1EF1 /* Toaster.framework */; - productType = "com.apple.product-type.framework"; - }; - BAF4BA94EA3FFFAA886526DF6CF80CCB /* Pods-BringMyOwnBeer🍺Tests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 5E3DB09F3F274DD14217C14064B02C2B /* Build configuration list for PBXNativeTarget "Pods-BringMyOwnBeer🍺Tests" */; - buildPhases = ( - B5AA5A069CD07471EA97CC5F6778DB29 /* Headers */, - 4ADF01A837DEDE2C256764C27D960A74 /* Sources */, - 21DC744E373681886C3CFF20C4DFE3D2 /* Frameworks */, - 362C3365E8AA5B6DFC811E7EFE682C06 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 49AC86D83146BD0D18A97AA148AD9AE4 /* PBXTargetDependency */, - C481B236805064049CF7406A804ACFA2 /* PBXTargetDependency */, - 5AFDC0179231D17C95EDB82265F1F15F /* PBXTargetDependency */, - 4E947ABB25B2A0E2F16B4903C217CDD3 /* PBXTargetDependency */, - B58AA16D04AFBD709B92055C9EB6FB99 /* PBXTargetDependency */, - D58916867D66DBC352A6CE6219D68A04 /* PBXTargetDependency */, - 89A7C4B347206E3697CD32CBDDE6C5D9 /* PBXTargetDependency */, - ); - name = "Pods-BringMyOwnBeer🍺Tests"; - productName = "Pods-BringMyOwnBeer🍺Tests"; - productReference = C81D036F4AA54B64B44E6A8341973BD5 /* Pods_BringMyOwnBeer_Tests.framework */; - productType = "com.apple.product-type.framework"; - }; - C17AEFC79E770A2906EFAAB1A3757406 /* Then */ = { - isa = PBXNativeTarget; - buildConfigurationList = A248458BDE951C5A1AEEFD5865838099 /* Build configuration list for PBXNativeTarget "Then" */; - buildPhases = ( - 025A00547E28FE1928528961E11A2113 /* Headers */, - 0CDB9028959BA2593F7C5704933F1E4C /* Sources */, - 10C5D1DF0B0903E84F8E9B2CDB05A61D /* Frameworks */, - 4354D6180F3545AE004DD898DA319476 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = Then; - productName = Then; - productReference = 9317E4947CA2FE1B5D5999034C09CCA7 /* Then.framework */; - productType = "com.apple.product-type.framework"; - }; - C82891EAB7293DBEE916B21F57E8474D /* Quick */ = { - isa = PBXNativeTarget; - buildConfigurationList = A482E8F0F5BEDCE177543007D23A5736 /* Build configuration list for PBXNativeTarget "Quick" */; - buildPhases = ( - EC3EC9092F61BD757267FD6009C275C5 /* Headers */, - 02F9C398FFCA0D6004C23B7FEB59A347 /* Sources */, - D9523B817C92EFD8BCE3CDE77F54908E /* Frameworks */, - 42E082BE7328DA6969AECE264ACD14E0 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = Quick; - productName = Quick; - productReference = 0D631E9908483F9525A6B3F36F16CC61 /* Quick.framework */; - productType = "com.apple.product-type.framework"; - }; - C8D93C508E21FFD4EE60D335DD6C22E3 /* RxTest */ = { - isa = PBXNativeTarget; - buildConfigurationList = B067D99F24AB5BFA3DC447C8C11BEDFD /* Build configuration list for PBXNativeTarget "RxTest" */; - buildPhases = ( - 702B1E0A1C49092E234A44000BE296F5 /* Headers */, - 2F45D3FDEDE264686863AC01ECCE3AA6 /* Sources */, - F515E7B4DDCF3DE382549FE0FCCE519D /* Frameworks */, - 4440846AD87155FF5E6EE7EA246BA6C7 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - E5D25F5DADBDADD30547419D29D09C59 /* PBXTargetDependency */, - ); - name = RxTest; - productName = RxTest; - productReference = 031893FD3D882E436EC541DF783B1276 /* RxTest.framework */; - productType = "com.apple.product-type.framework"; - }; - E8022D22FAA6690B5E1C379C1BCE1491 /* Kingfisher */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7975DE731E61F915096C31E290E8AE5B /* Build configuration list for PBXNativeTarget "Kingfisher" */; - buildPhases = ( - 90B338B354C92DC1414EA46072EDE417 /* Headers */, - 434B6F9CACF190785FE64AD5921875A4 /* Sources */, - 67B63C021A0FA31B9F0F42FCF656BBDB /* Frameworks */, - 8E633C628D869E4E76B8631E685A5079 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = Kingfisher; - productName = Kingfisher; - productReference = C3F44C782D64D7EB20B61CE3844EBFAD /* Kingfisher.framework */; - productType = "com.apple.product-type.framework"; - }; - EA9EA43B3B503823EE36C60D9C8A865F /* RxSwift */ = { - isa = PBXNativeTarget; - buildConfigurationList = 30CE4E970304C6DBD489BB56A5F013C5 /* Build configuration list for PBXNativeTarget "RxSwift" */; - buildPhases = ( - 37F9DA5192FCF0629CEB26768C7F0253 /* Headers */, - D8DD770DFAEE019F382DF98196797A9B /* Sources */, - 50FD16F16EB23E46D75420C913A92C6E /* Frameworks */, - 4CDD4A192C63294FEC05C0F35E6B059D /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - BCDB4F7009B5FB8C47FB1889D28D8562 /* PBXTargetDependency */, - ); - name = RxSwift; - productName = RxSwift; - productReference = 809C5FAB588354C9BA37DC3EAB8CB45C /* RxSwift.framework */; - productType = "com.apple.product-type.framework"; - }; - F243B36381C0CE83CCFF789AC38F0D36 /* RxBlocking */ = { - isa = PBXNativeTarget; - buildConfigurationList = 5EF9A37AA0AD78076171F51A66D0BDDC /* Build configuration list for PBXNativeTarget "RxBlocking" */; - buildPhases = ( - C8AEA1C5A23E0EF1DE461C65934ACC61 /* Headers */, - 8D38A323E05FE13132C0F3A19927F024 /* Sources */, - DC89973FF125EA031715F625937D559A /* Frameworks */, - 0425F2FAE648590A798716B874A9623C /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - F449004CE3C4ED265A06A95032A879CF /* PBXTargetDependency */, - ); - name = RxBlocking; - productName = RxBlocking; - productReference = 25F63A531105CD4E1E4CCF5B918C5494 /* RxBlocking.framework */; - productType = "com.apple.product-type.framework"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - BFDFE7DC352907FC980B868725387E98 /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 1100; - LastUpgradeCheck = 1100; - }; - buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; - compatibilityVersion = "Xcode 10.0"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - ); - mainGroup = CF1408CF629C7361332E53B88F7BD30C; - productRefGroup = 477C0BF671C27F8D3551F489653ACF60 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 212F79CE462FC723AF42979B57FBB8A6 /* Differentiator */, - E8022D22FAA6690B5E1C379C1BCE1491 /* Kingfisher */, - 6F13695E06195A78EA8A95F8C7ED0D2F /* Nimble */, - B1CBF9D69A9EB43C8FB167DFF56AF739 /* Pods-BringMyOwnBeer🍺 */, - BAF4BA94EA3FFFAA886526DF6CF80CCB /* Pods-BringMyOwnBeer🍺Tests */, - 81F4F367AE14DB05B67351DFBED4E5F3 /* Pods-BringMyOwnBeer🍺UITests */, - C82891EAB7293DBEE916B21F57E8474D /* Quick */, - 2CEE308D2C2024ABC968E3474B843F0E /* RxAppState */, - 3B2E405FB76A0E213CE57985A423DED6 /* RxAtomic */, - F243B36381C0CE83CCFF789AC38F0D36 /* RxBlocking */, - 7AD0C6DCDC9CEC8A3C7C10C7FEE07BE6 /* RxCocoa */, - 401909D4FB2014BF539896BF0CCA48C2 /* RxDataSources */, - 46E48C41E3556F8E41D231C8FD9B7471 /* RxKeyboard */, - 3D8B1104C8B4F5AD74F600289D7A12AD /* RxOptional */, - EA9EA43B3B503823EE36C60D9C8A865F /* RxSwift */, - C8D93C508E21FFD4EE60D335DD6C22E3 /* RxTest */, - 19622742EBA51E823D6DAE3F8CDBFAD4 /* SnapKit */, - C17AEFC79E770A2906EFAAB1A3757406 /* Then */, - B90AB98A7BC6A346D671B36DB990DAC2 /* Toaster */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 0425F2FAE648590A798716B874A9623C /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0F1A5B6892C3C8BC2EFCFAB3509FA199 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 1FA6EE6BB1452EE8D40646CF50CA9922 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2A20C3DE49EE0FD6469A8C087CD7048D /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3098A2D0FB48DB32D2D9B8F06C24BAAB /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 362C3365E8AA5B6DFC811E7EFE682C06 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 42E082BE7328DA6969AECE264ACD14E0 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4354D6180F3545AE004DD898DA319476 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4440846AD87155FF5E6EE7EA246BA6C7 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4CDD4A192C63294FEC05C0F35E6B059D /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 641C4CD09A3AB0F4952EB475A816BE19 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 8042D78C60EBDA416CBA41D26DE3FBCD /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 8E633C628D869E4E76B8631E685A5079 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 94625865BDBE3FB7A6923F3CB7436364 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 9BB8D2FE7493EDD38AEDAF6F122831D3 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - D7EBE1F47ACC336A60ED6056AF3261E1 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - E07C304D71053DD6D19451E5160B0DD1 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - E18C5C1A604AF35545CAA33FA35A8573 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - F2DD0E55DC0BA7CCCC0D27DB295CDBD4 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 02F9C398FFCA0D6004C23B7FEB59A347 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - AD7E233F5D3FE672AA02134FB4812404 /* Behavior.swift in Sources */, - 62A3005DE18CC4899D9DC46637FBF959 /* Callsite.swift in Sources */, - FB5512276670F74B36572E3DEA0827F2 /* Closures.swift in Sources */, - 64F9B4184B9D62B17BF359A1CD89E9DE /* Configuration.swift in Sources */, - D9FA347F52DCCB87CE1A212914A3CA4A /* DSL.swift in Sources */, - DE66FE0BE69417CCBFCB24902682D441 /* ErrorUtility.swift in Sources */, - 6442ADD12D94CE3B82CF40A3CB4C7378 /* Example.swift in Sources */, - 4A144D4773B496E2DAC4423888FB33CD /* ExampleGroup.swift in Sources */, - 7CCA796D494B11EEE665A6D2C7A2717E /* ExampleHooks.swift in Sources */, - B252CEF19F0D79B21188124EC9139225 /* ExampleMetadata.swift in Sources */, - 72D1D8DD58DA90C3215B6B3BCBE62FE6 /* Filter.swift in Sources */, - 3305236E79EEC7A37B0D989CC7CB0ECE /* HooksPhase.swift in Sources */, - A7917156C113ECE91B645832CD0C3F6D /* NSBundle+CurrentTestBundle.swift in Sources */, - 0AAB2044F439148FF4E8789404BA3EC0 /* NSString+C99ExtendedIdentifier.swift in Sources */, - F9A19EB812EE6E996C94374D8E6E697C /* QCKDSL.m in Sources */, - 9E10AF83A0164D52B347AA423C8D33DE /* Quick-dummy.m in Sources */, - 7165DC229ED671FD4E6511113740B292 /* QuickConfiguration.m in Sources */, - E1E38D86311435C3AFD2BE26F592C852 /* QuickSelectedTestSuiteBuilder.swift in Sources */, - C3BF0E253BA9EEA483E52A9F8D9AF230 /* QuickSpec.m in Sources */, - 950E758E7CA6565936FB196D5776B229 /* QuickSpecBase.m in Sources */, - D2C5713DE15F353409F88DF09A5DD2D5 /* QuickTestSuite.swift in Sources */, - 01B965D80F8E189E9313593F90050231 /* SuiteHooks.swift in Sources */, - AADC9B3ED733339CD08CBA9EE510FAC1 /* URL+FileName.swift in Sources */, - EBDEC6CA7D2D8AA7D1549A1955B7BBCA /* World+DSL.swift in Sources */, - 847A01384D6182A5C65156B0A4F2B80D /* World.swift in Sources */, - 9FA521925CEC7B6FCEE3FD761675017D /* XCTestSuite+QuickTestSuiteBuilder.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0818FCE52CAECAD5582544FEA6726B98 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 5036106F270141DC99CB75AD70F48AC0 /* Pods-BringMyOwnBeer🍺UITests-dummy.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0CDB9028959BA2593F7C5704933F1E4C /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - D5233EE525CA015250991CF3A64A1D4E /* Then-dummy.m in Sources */, - A6DB9B92686EF749373DE8D76E5A6375 /* Then.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 10835BAE4C33F7D6D2EC9084DBECDFD2 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - DF9055F470FCFA346BCB4875FAC111DA /* AnimationConfiguration.swift in Sources */, - 5BF844F6EFDADC9DD318C6642CFF6FFD /* Array+Extensions.swift in Sources */, - 6A976A2B7F75BDAF4C015780D265CC91 /* CollectionViewSectionedDataSource.swift in Sources */, - B1E52E2401FA6A059C493D775FD36EF7 /* DataSources.swift in Sources */, - BB0E8F1CB241D68A4A7EC3AD202B2990 /* Deprecated.swift in Sources */, - 109ECDC25D576EB2CB1DE389AB6D9CE3 /* FloatingPointType+IdentifiableType.swift in Sources */, - 29A07B12BE7E2D9991323B2C9CA4D9CF /* IntegerType+IdentifiableType.swift in Sources */, - 59E2B3FE2DBF8022E4917C6E289EE7D6 /* RxCollectionViewSectionedAnimatedDataSource.swift in Sources */, - 2A77E7D98909032ECEC1FB11814AABF8 /* RxCollectionViewSectionedReloadDataSource.swift in Sources */, - C26345BF7506D17AC1E098787D6FCAAD /* RxDataSources-dummy.m in Sources */, - 2749964BCB1B0748DED381498B167DDE /* RxPickerViewAdapter.swift in Sources */, - A06D9D3700F9F6B62251338B18FC0D69 /* RxTableViewSectionedAnimatedDataSource.swift in Sources */, - D1F5C3B6F3DB95E031EF87EF3BAA219E /* RxTableViewSectionedReloadDataSource.swift in Sources */, - D36250609F8C393C82216733EAE20C2D /* String+IdentifiableType.swift in Sources */, - B447ABCF0B22EEC866BC02A92315005A /* TableViewSectionedDataSource.swift in Sources */, - 7900C9262B767711A6B109EAED52EF8A /* UI+SectionedViewType.swift in Sources */, - F9BC73B3051603ABAA7617C56391CF7F /* ViewTransition.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 244126E7C8115461E07FC293975098DB /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - E43323B5AF303B2C30E7B87CA25F920B /* RxApplicationDelegateProxy.swift in Sources */, - 141227EA8FE5E8CF222DC9AC4BBA123A /* RxAppState-dummy.m in Sources */, - 3BBF3CA901DA74E1A2B0C292037C8FAE /* UIApplication+Rx.swift in Sources */, - 26066531E6852B9DD56E2D69CE61D426 /* UIViewController+Rx.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2AC16422D60DFE44F290E0930FFF2164 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 36AAA65075BDB5F83209083E274C5EA5 /* AnimatableSectionModel.swift in Sources */, - ECE6E89C4FC5A457C19392FFC17A17BD /* AnimatableSectionModelType+ItemPath.swift in Sources */, - 30DAE88555734D8C6EA55F5D2132E458 /* AnimatableSectionModelType.swift in Sources */, - B1794D618972A94DF738F4903056B34B /* Changeset.swift in Sources */, - 09FE161DE9B67F021D7CCCE083EA3B1C /* Diff.swift in Sources */, - CB280F675A5A00EBD559800853DD3F80 /* Differentiator-dummy.m in Sources */, - E8AAF59142ACBFE22BA1C9A042F2DACC /* IdentifiableType.swift in Sources */, - DAB39BE57F162FCB396D168419104025 /* IdentifiableValue.swift in Sources */, - 58DFA666FF2F8EF67310B2CC54C494FC /* ItemPath.swift in Sources */, - 164ADE068F3D6EE3B15A216D04443B9B /* Optional+Extensions.swift in Sources */, - 7BAAD6C852ABA952EF51282994E8DD84 /* SectionModel.swift in Sources */, - 5E59914AFEEE23E635C195F01E82D692 /* SectionModelType.swift in Sources */, - C9C30192C2D4C63F9B20AD30E5FE781F /* Utilities.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2F45D3FDEDE264686863AC01ECCE3AA6 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 475E7D0F39F53AC3A74878763E645D56 /* Any+Equatable.swift in Sources */, - 02359740E995F252296E59BCF2B677AB /* AtomicInt.swift in Sources */, - B1C330B5A9AEC53A389EFE691D2837A7 /* Bag.swift in Sources */, - 1A85FBE0F49D1865B17994399A6A78CE /* ColdObservable.swift in Sources */, - 00B940FB5C345F32307CB7E478A05B6C /* Deprecated.swift in Sources */, - AE2E7422196F2750B8F78274710CE3DA /* DeprecationWarner.swift in Sources */, - DB78E37361B8DF23F3D7BE246CA9149D /* DispatchQueue+Extensions.swift in Sources */, - D4441D05A06362B95A4BE32B4908A361 /* Event+Equatable.swift in Sources */, - EB0C7F8BD231F0AD120F9DF4E3586F50 /* HotObservable.swift in Sources */, - 17E3960687AB7F704486663C80A761D0 /* InfiniteSequence.swift in Sources */, - E60DB7F034F7B5936671E55A83F32AFB /* Platform.Darwin.swift in Sources */, - E45893A55D57C31561716E41DB266024 /* Platform.Linux.swift in Sources */, - 4D4B092C7EEF51AA99E3488106B83A42 /* PriorityQueue.swift in Sources */, - 668A8B9486FF4491065CF3EA6E95E5B7 /* Queue.swift in Sources */, - CD7987DCA17F80F06E48D0A0285ADE30 /* Recorded+Event.swift in Sources */, - E2C07DE7605EC97E8EF351C2B3AA5230 /* Recorded.swift in Sources */, - 4FA9A8A4894FB48FC69C9F726FE05120 /* RecursiveLock.swift in Sources */, - 7ACC083094568725B42F9649457CC5BB /* RxTest-dummy.m in Sources */, - 61B4AE73C5FAF428361128CFAD6EDAF0 /* RxTest.swift in Sources */, - 912380CDDEA58133826206852DD6FC6C /* Subscription.swift in Sources */, - 220E2E583AD49B4A6AB06FF437133A8E /* TestableObservable.swift in Sources */, - 058D7B1E859DC499D7592594DE5A6BB5 /* TestableObserver.swift in Sources */, - ECAE211210EA927906E1E36267E7B32D /* TestScheduler.swift in Sources */, - 8B789024E04F0FC9E28A759AD9D4B8D4 /* TestSchedulerVirtualTimeConverter.swift in Sources */, - 49692AE4E69E658CE1425B680E005018 /* XCTest+Rx.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3DAEDCBD38BD666D1938F2811846DCEA /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 92BA6B8AB0CBD0830305B0E42A7B274A /* _RX.m in Sources */, - DF8C66C8806995B88C2CE928312A8A88 /* _RXDelegateProxy.m in Sources */, - 87FAC061758B6FFC2137CE05AFBEFA0E /* _RXKVOObserver.m in Sources */, - 626E8E23B47BB7357E68AE637FCFFF5E /* _RXObjCRuntime.m in Sources */, - 0A16626F1A6D33191F4F339FF68C23C4 /* Bag.swift in Sources */, - 52E16BE7DCB8875F1ABACD59D1CF9522 /* BehaviorRelay+Driver.swift in Sources */, - 3B84EABD8AC2564ADF22FDA4CB644679 /* BehaviorRelay.swift in Sources */, - F6E0848D44FE0078B8735E03DDFE44A0 /* Binder.swift in Sources */, - D080CE2D53E78493CC40A0AE30C50B6D /* ControlEvent+Driver.swift in Sources */, - 212F75C30EDE3E428E35191575953AB0 /* ControlEvent+Signal.swift in Sources */, - 6BAD4225BE2464ED914BD49582CF97A9 /* ControlEvent.swift in Sources */, - 49A3B489E9BFC01CCC3AC48C887206CF /* ControlProperty+Driver.swift in Sources */, - B9888300B93B7CB71038CB1155A51F50 /* ControlProperty.swift in Sources */, - D6ED54EE374DA5BCBB5EF0DE634FB946 /* ControlTarget.swift in Sources */, - 5DB019FAF1646C63AC18321CE4209DBA /* DelegateProxy.swift in Sources */, - BFDA001D5DD4900BDD21F27B8AC5AD20 /* DelegateProxyType.swift in Sources */, - 7DCBE471F5E0555D78E6D04552385C1C /* Deprecated.swift in Sources */, - 45A1BD3C489E6CB9A9C927E3E53446F9 /* DeprecationWarner.swift in Sources */, - C8E64DB8DF3D16FD3F2ABFC8854DF38C /* DispatchQueue+Extensions.swift in Sources */, - BFE50A3219739125B7E67B95A4F09EEE /* Driver+Subscription.swift in Sources */, - 2EF43729DDC024EEE77A64F9A9CE1E36 /* Driver.swift in Sources */, - 3C1BF06072A89A0C35FD53CB1C72E843 /* InfiniteSequence.swift in Sources */, - 93C048C1326E74F2B03255349E82F3E5 /* ItemEvents.swift in Sources */, - 5F060C24D0662ED66806FBD2F1F3E7AC /* KeyPathBinder.swift in Sources */, - 5D831C3698766418FE9FD0DB38B9DB6C /* KVORepresentable+CoreGraphics.swift in Sources */, - 9DB4DB5DBCA5D8C466ACE6FEBBE17018 /* KVORepresentable+Swift.swift in Sources */, - 67DAEF48922126FE186770FFB54C848E /* KVORepresentable.swift in Sources */, - E8A8ADCF633CA59E4663D8BF948859FD /* Logging.swift in Sources */, - 3C5ECA6EE1C2E540C10DA7657D75BBAE /* NotificationCenter+Rx.swift in Sources */, - FF2BC2B85F63247A9B0987167467D05B /* NSButton+Rx.swift in Sources */, - 42C07AC55CCE047F098F80012394B1C9 /* NSControl+Rx.swift in Sources */, - 1846DAB532925B9BAB2D4925202006ED /* NSImageView+Rx.swift in Sources */, - 3F32C0232F67768F13AC42DF8119F31F /* NSLayoutConstraint+Rx.swift in Sources */, - 9D1D3EFF7C2ABAEE3F8CB0089E01870F /* NSObject+Rx+KVORepresentable.swift in Sources */, - 22EB30B03009A3865E26584AE62AD09E /* NSObject+Rx+RawRepresentable.swift in Sources */, - DD9A2F307B89CB270D81BCDEF13F084C /* NSObject+Rx.swift in Sources */, - 3ED329B3F94A13664FA37F525DB29A79 /* NSSlider+Rx.swift in Sources */, - 2F5047C2152ADF0EF5C1CEBF700B38F0 /* NSTextField+Rx.swift in Sources */, - E7814B88CCF58E85FA993E61F8B0C6C6 /* NSTextStorage+Rx.swift in Sources */, - A2A335CD8BF39519BAFE04CFD0B8D210 /* NSTextView+Rx.swift in Sources */, - C1079F4FF84A3ECE50D69B4BF3C37BE1 /* NSView+Rx.swift in Sources */, - 503599F3ED26D35735DA0D92E652A63F /* Observable+Bind.swift in Sources */, - 78C200DCFECCE99B57C44F53285A1A8A /* ObservableConvertibleType+Driver.swift in Sources */, - 6DB8A2452B36719972DEAB37D4E28904 /* ObservableConvertibleType+SharedSequence.swift in Sources */, - 68091F5A3E186EE658D61245F7F0913D /* ObservableConvertibleType+Signal.swift in Sources */, - AF1FEB855F57D2378FE9BFBF0A3FC1F9 /* Platform.Darwin.swift in Sources */, - F558A8DA654CC4593F734EDF7C2DF366 /* Platform.Linux.swift in Sources */, - FE473CEE8A4027910D1D9ED3B74DBEDB /* PriorityQueue.swift in Sources */, - 636AC989CFCAC5F50A3812A66A985F65 /* PublishRelay+Signal.swift in Sources */, - F67DAB8DF9F93328DD60850D26669A32 /* PublishRelay.swift in Sources */, - F17EE6104C588E80F5B2CC83FF7A8045 /* Queue.swift in Sources */, - 4601C9F27C522E3387248D9213286311 /* RecursiveLock.swift in Sources */, - D036E69D3D24F818EDD23D198D707245 /* RxCocoa-dummy.m in Sources */, - 59F70F0388A8A07E3AA743134FA40B05 /* RxCocoa.swift in Sources */, - 9615C9B67E1418E40776DBA9C59224B8 /* RxCocoaObjCRuntimeError+Extensions.swift in Sources */, - E2C74D9E3AF2B2A96795CC77F7A47280 /* RxCollectionViewDataSourcePrefetchingProxy.swift in Sources */, - 069D005D0A606D8019DA78587B570F99 /* RxCollectionViewDataSourceProxy.swift in Sources */, - E6C8AB5E7E3EAE1882141DF91322A1C7 /* RxCollectionViewDataSourceType.swift in Sources */, - 5EBBE8912F5071F7425BBF2682DACE4A /* RxCollectionViewDelegateProxy.swift in Sources */, - 584C6462913947314DA24AE2C93CE879 /* RxCollectionViewReactiveArrayDataSource.swift in Sources */, - 921EF6FD4006A6269C79EB2E1AD38DCE /* RxNavigationControllerDelegateProxy.swift in Sources */, - 73E1F1F44D3C399FAF2EC743DF64175F /* RxPickerViewAdapter.swift in Sources */, - 9E44367037D1FC88C8C75922E5FFE1C6 /* RxPickerViewDataSourceProxy.swift in Sources */, - 4220DDE2F61F712AAE02766AA3C146D3 /* RxPickerViewDataSourceType.swift in Sources */, - 05CF3D9319981D79529BA20D981F39AC /* RxPickerViewDelegateProxy.swift in Sources */, - 9A6C841421C146E504D4F0C10738AAD2 /* RxScrollViewDelegateProxy.swift in Sources */, - 7BF0AEB05C28930F46861968BD104625 /* RxSearchBarDelegateProxy.swift in Sources */, - 6BAA02730481089F302CF910486D527A /* RxSearchControllerDelegateProxy.swift in Sources */, - FB8621FA9D79A23C6D8BDDCE724078C9 /* RxTabBarControllerDelegateProxy.swift in Sources */, - D0BCA3BCAFD3D3E805E061FDE9BE2FB4 /* RxTabBarDelegateProxy.swift in Sources */, - A7A95AF362A186A9B4AB0AE4FEFC02D6 /* RxTableViewDataSourcePrefetchingProxy.swift in Sources */, - 3C53B3971713D7F9396CB063B9E96F78 /* RxTableViewDataSourceProxy.swift in Sources */, - 5368D33C0F6EC08EACCEF3706B1733CD /* RxTableViewDataSourceType.swift in Sources */, - 404466C107479C890E3E4C7246A00E9E /* RxTableViewDelegateProxy.swift in Sources */, - 277FC6132B5E5C5453DECC07A5BBAE3F /* RxTableViewReactiveArrayDataSource.swift in Sources */, - 9843AB41B26B3A2054B387EC3627C9D1 /* RxTarget.swift in Sources */, - 31D518AD76A707DEC0B1A6BF6DE72ED0 /* RxTextStorageDelegateProxy.swift in Sources */, - 874D32EF7DE8109583AF4CD0580059A2 /* RxTextViewDelegateProxy.swift in Sources */, - ED3B15CF02C5D477EC21C466C49E114F /* RxWebViewDelegateProxy.swift in Sources */, - 56B08AD13560AB8F1A758C9233B05835 /* SchedulerType+SharedSequence.swift in Sources */, - 3559461757415578536055495F739B70 /* SectionedViewDataSourceType.swift in Sources */, - 342D16AFAF3100B4D41109C96020E84E /* SharedSequence+Operators+arity.swift in Sources */, - 1BA5B76D9B52DFEF03076685684E0FAC /* SharedSequence+Operators.swift in Sources */, - 723DFD02E1BD3446CB4B192B72B054BE /* SharedSequence.swift in Sources */, - C3BD57BA2250405549D35E1191123A73 /* Signal+Subscription.swift in Sources */, - A0AF55E03B79C7331FDB9CFD1666DAB8 /* Signal.swift in Sources */, - FF4FBF4135279ED5A19E394533D9A350 /* TextInput.swift in Sources */, - 958039818C987A7DD0A0A43F9BF9D59F /* UIActivityIndicatorView+Rx.swift in Sources */, - 4E1337FB5DB54353B1603BA9F5E5A0FD /* UIAlertAction+Rx.swift in Sources */, - 448D617A7123D1CA117C93A64677A7DD /* UIApplication+Rx.swift in Sources */, - 82FBBBAE96A781D680BB4DBD8E647076 /* UIBarButtonItem+Rx.swift in Sources */, - 46322FC973E0D214B38B3DAAB9218204 /* UIButton+Rx.swift in Sources */, - 03D468CB8E07B62184A953BF4B83E510 /* UICollectionView+Rx.swift in Sources */, - D4371D38A4A9EB63BC466E1FF214F2AC /* UIControl+Rx.swift in Sources */, - C43F8CC91B02FBA4ADD624C620D77048 /* UIDatePicker+Rx.swift in Sources */, - D1CD3F0684EC754511B9A9ABB82D99EA /* UIGestureRecognizer+Rx.swift in Sources */, - B1148C38770889219C958D426EA1A53D /* UIImageView+Rx.swift in Sources */, - 063EBB18035C049112C1D0B9073A3137 /* UILabel+Rx.swift in Sources */, - F62DB3CB5CD01003323FBB8B6104FA0B /* UINavigationController+Rx.swift in Sources */, - 99AB7250DD0A2CC63BA117A88F63DDCD /* UINavigationItem+Rx.swift in Sources */, - 02611C626FE6D0EEE8A64F2818349509 /* UIPageControl+Rx.swift in Sources */, - 914B779B3F9F799D3A6FD8E1706516F1 /* UIPickerView+Rx.swift in Sources */, - A358639EDDFCF112F9590F4C4A0ECC3C /* UIProgressView+Rx.swift in Sources */, - 3F3529562A7D464269B42923A84FD4E6 /* UIRefreshControl+Rx.swift in Sources */, - CA8F208BD087D77B2B20739C7C2ADACB /* UIScrollView+Rx.swift in Sources */, - A4A7C3609AE1DD6F34D0DA63E9058370 /* UISearchBar+Rx.swift in Sources */, - 3CA05DEF4638685663C50AC84F2A05B0 /* UISearchController+Rx.swift in Sources */, - BCE31790753424FEBD3B175ED2548A63 /* UISegmentedControl+Rx.swift in Sources */, - A6BD934FE7C9BE1F774E2919DF4E6529 /* UISlider+Rx.swift in Sources */, - 50C39A87393642F881B13F7CA9DCEC05 /* UIStepper+Rx.swift in Sources */, - 02EDC570F59336BD644B97B85940871D /* UISwitch+Rx.swift in Sources */, - 387DED02D0C6537877DEFB476341CCC4 /* UITabBar+Rx.swift in Sources */, - 7C461D7884FB010D291971C99F843375 /* UITabBarController+Rx.swift in Sources */, - 64DA9C5A060FA00A8349B68BF29EBD35 /* UITabBarItem+Rx.swift in Sources */, - EBCB8D2376CA0A2CD4093A87D0205715 /* UITableView+Rx.swift in Sources */, - 48E6952FE279919A0F5716B9443DE3D2 /* UITextField+Rx.swift in Sources */, - 2A984C86BF3722CEBBF6B682DBB34358 /* UITextView+Rx.swift in Sources */, - 09CDF5DF956C5690B4C706D5B878D293 /* UIView+Rx.swift in Sources */, - CBCA75971E4ADB53F4F0C613B9473B45 /* UIViewController+Rx.swift in Sources */, - 8B11401BA0A626786E205B28A8CFA4AF /* UIWebView+Rx.swift in Sources */, - 3187008D4318D90E0918B8C960A9B8FE /* URLSession+Rx.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 434B6F9CACF190785FE64AD5921875A4 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 33E4D49372B55E745B36382B64130122 /* AnimatedImageView.swift in Sources */, - 28FDC9276EEB4D7EF81271D302CD1D60 /* Box.swift in Sources */, - C79D4F0D0C79942AAD2B4F16D0766095 /* CacheSerializer.swift in Sources */, - F9BC0BCD165A3FCA8636CE51007A28A2 /* Filter.swift in Sources */, - 17949EA5A648628698D3045C32125D9A /* FormatIndicatedCacheSerializer.swift in Sources */, - A4420637EE415057C5BA22ABE5A984F9 /* Image.swift in Sources */, - A317E632C48B5D4A15D0CBD1E5499430 /* ImageCache.swift in Sources */, - CD92E3C8B2B53B5545D1B0394881A1EB /* ImageDownloader.swift in Sources */, - 443C09C19397A4B5599EA6AFC359678D /* ImageModifier.swift in Sources */, - 27B427F4F2C7B3472B55F06404188D82 /* ImagePrefetcher.swift in Sources */, - 59A62BE2B9F4EE2DB82C1A5705403F51 /* ImageProcessor.swift in Sources */, - 5548C91B7B13B05D91EE5DAFFB3E8B14 /* ImageTransition.swift in Sources */, - 4015497700167E2F7A78FB0FA8728D83 /* ImageView+Kingfisher.swift in Sources */, - 5EABE357108BB0AC56B6C7D0AFCC4532 /* Indicator.swift in Sources */, - 55B73B58EE9E36E4C860A2135A9796A9 /* Kingfisher-dummy.m in Sources */, - A5C6C6AF307753F62CB842B879E50CB2 /* Kingfisher.swift in Sources */, - C08A09B0CEBC18AD963AAFB1778A9848 /* KingfisherManager.swift in Sources */, - 626CCD3B19CAB7090293FF68A57E610A /* KingfisherOptionsInfo.swift in Sources */, - 0DC716D6A630FAC820D9EA7E6F36EDF4 /* Placeholder.swift in Sources */, - B7F559ABF7622040866557F0C6F422C3 /* RequestModifier.swift in Sources */, - 70ECB3E5FED2F2D4F6DEFE366519C8AE /* Resource.swift in Sources */, - 40B92FDF71624FC72B5AAF014FF827C5 /* String+MD5.swift in Sources */, - AB896E86184C7E4C1B132A6FD48C945F /* ThreadHelper.swift in Sources */, - 1D182C2DB0E3A2FC683C635DA33254CD /* UIButton+Kingfisher.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4ADF01A837DEDE2C256764C27D960A74 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - F43793390955DC14E48DFEDB68FE64EE /* Pods-BringMyOwnBeer🍺Tests-dummy.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 8D38A323E05FE13132C0F3A19927F024 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 6803744F51E7C681E920AA15948C0F10 /* AtomicInt.swift in Sources */, - F7E805BBA95B4696E9F5D2E66F86C110 /* Bag.swift in Sources */, - C159F1F86859874980C33870C6092C5C /* BlockingObservable+Operators.swift in Sources */, - 76AAEDBCAE496BF0BF2B4B1B7E8C4D5E /* BlockingObservable.swift in Sources */, - F0562AD660DBEBD3A0B689932D6C999D /* DeprecationWarner.swift in Sources */, - 00A0476D2D1EC77DFA828AA31A035B4C /* DispatchQueue+Extensions.swift in Sources */, - 5179592AD007CA10DDAA70D02242313B /* InfiniteSequence.swift in Sources */, - 97709AA01FBE6F1CAEB77813A97011C5 /* ObservableConvertibleType+Blocking.swift in Sources */, - 2B9FEB5422298C8FB88F79FC00FE2303 /* Platform.Darwin.swift in Sources */, - C8C7D623B29B95DE20D8B9821CFF5294 /* Platform.Linux.swift in Sources */, - 5055320943E6AF46813F8C940637AAB8 /* PriorityQueue.swift in Sources */, - 6EC0E748AF29FA3988826F498DB567B0 /* Queue.swift in Sources */, - C794A9A4C8FF7E995C7CC4511B10D731 /* RecursiveLock.swift in Sources */, - D2E3FD3ACB707CAB83461FBCFC47FA16 /* Resources.swift in Sources */, - 682EBB0B058F21493202ED3F0F6840FF /* RunLoopLock.swift in Sources */, - 352FF41AC98A3C01CF8A695C446D18A0 /* RxBlocking-dummy.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 930018D81DD984C922D7E041795D7B7A /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - BF8A74F92C87D1C833A5FC7942746691 /* RxKeyboard-dummy.m in Sources */, - 9C1A85F61D98938A88D1711CCED1AC3B /* RxKeyboard.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 948D48E19F2A3CAC37461E0DA4FF9A87 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - DCCEFF1B52226DE5ABB2D0043442FE61 /* Constraint.swift in Sources */, - A4070B8C9BD30965648B2876CD3C1C43 /* ConstraintAttributes.swift in Sources */, - A04D46C4C48247D004BAE5C7AD6E05A3 /* ConstraintConfig.swift in Sources */, - 9EE2D363A721ACFA89B5B899E1987633 /* ConstraintConstantTarget.swift in Sources */, - 9E6184458532BFF2E3E3F804C54BD0E7 /* ConstraintDescription.swift in Sources */, - 6B43F2F53DD6C161CF414A9BF67550C5 /* ConstraintDSL.swift in Sources */, - 54D1686EFA926E23C4BED5EEE7A19C08 /* ConstraintInsets.swift in Sources */, - F41CA723E31884664B9C032D90EAEF1A /* ConstraintInsetTarget.swift in Sources */, - CA0FAE669FAB7067D09F7007AD838E19 /* ConstraintItem.swift in Sources */, - DBB93D3827327B8FB4CFA164C03357E5 /* ConstraintLayoutGuide+Extensions.swift in Sources */, - FFE7A02118B5288BC94F7422D6CFEB3F /* ConstraintLayoutGuide.swift in Sources */, - 276EE563D9B688173DBBF47DB80D72D8 /* ConstraintLayoutGuideDSL.swift in Sources */, - 095547A88EE037F12395713A469C9B60 /* ConstraintLayoutSupport.swift in Sources */, - F6C7F81AA5BBC4042A3A78D5EA8E62A4 /* ConstraintLayoutSupportDSL.swift in Sources */, - 5C376607904258A10F4DDD6D42EFC491 /* ConstraintMaker.swift in Sources */, - 4268E348E6D5E9037A640ADC8E065009 /* ConstraintMakerEditable.swift in Sources */, - FF0E3F8B3FB568ACBB1BC433D67ED093 /* ConstraintMakerExtendable.swift in Sources */, - 0FA8E62C7A4A6DA9BB841007B5E16CD4 /* ConstraintMakerFinalizable.swift in Sources */, - 8B8BE709B46663F60DB6A661A3B2A28A /* ConstraintMakerPriortizable.swift in Sources */, - 35CDFA197D8219EB8DEFC227259A5C03 /* ConstraintMakerRelatable.swift in Sources */, - A3DEA82F229FDF7C9444CEFEE3D9AB84 /* ConstraintMultiplierTarget.swift in Sources */, - 72C2B5D60A24B4B663C8994276A962B6 /* ConstraintOffsetTarget.swift in Sources */, - A482F623A133B7E947C01456C779622A /* ConstraintPriority.swift in Sources */, - 14E9ACC5796C5E35C84DD6659BEB788F /* ConstraintPriorityTarget.swift in Sources */, - E85BBB972867783044ADCD772438150F /* ConstraintRelatableTarget.swift in Sources */, - C1C2B61E08DAD3B59BA5D82964D39C3C /* ConstraintRelation.swift in Sources */, - 77A618FE4FF299682F776C974300EBA1 /* ConstraintView+Extensions.swift in Sources */, - 5544BDD6A14E06C7FB3A878BC3E96299 /* ConstraintView.swift in Sources */, - DEC3E541DB551729EC407FA6566CEE54 /* ConstraintViewDSL.swift in Sources */, - 9432185152350A4A90F6DD19C33AC057 /* Debugging.swift in Sources */, - BF7843175A0FB0180B6F4C0249B8874A /* LayoutConstraint.swift in Sources */, - 7ED12926E82C9D1DE457504DA75B80A9 /* LayoutConstraintItem.swift in Sources */, - 5DBFB9A0499F04CBE806486211A4ABD0 /* SnapKit-dummy.m in Sources */, - 0D7A7F3919AE48736753181756DE8AE8 /* Typealiases.swift in Sources */, - 98AE4E2F24A858A47B5A1B405CEAD8FD /* UILayoutSupport+Extensions.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 94F9167060B640199F8C42888D576C28 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 1741E595C15A98662DD82F91AF32CDBC /* Pods-BringMyOwnBeer🍺-dummy.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 983474F105EFBBD2761C5A1B92158B4C /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 4AC0854DAD1D36FB51150478A6ACA9A2 /* RxAtomic-dummy.m in Sources */, - D69057D48682BBBB7929B8325A33D5A2 /* RxAtomic.c in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - ACAC29FE7976A0743FDC606D7A1583C1 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - A23FB20C4F8F661979A6B139FAF76389 /* Observable+Occupiable.swift in Sources */, - 2C7C765B5DA41374090D41813576FA69 /* Observable+Optional.swift in Sources */, - 5790A854151F04B8FDD2BDD4C2139E4F /* Occupiable.swift in Sources */, - 30378F98B0635B822144CC49C2151246 /* OptionalType.swift in Sources */, - 618362BB4C31FC0AF3DDFEB0A8ADD899 /* RxOptional-dummy.m in Sources */, - 0859E355B7FCFEAD391E64603537E9BF /* RxOptionalError.swift in Sources */, - 161709678DAF62C74B65B71053C4188B /* SharedSequence+Occupiable.swift in Sources */, - 129001AA602C62DB94571189DD2EB406 /* SharedSequence+Optional.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - D399136A0E6FE19CACE7F05143312FB1 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - B4058A2AA8486E9879F113E6F67B9679 /* AdapterProtocols.swift in Sources */, - 4203EF96811AE514D64AE069311B1575 /* AllPass.swift in Sources */, - C99BBC3F70E056CB6A3CC0516318939D /* AssertionDispatcher.swift in Sources */, - F310B21703A7BC438A09DDB96670583F /* AssertionRecorder.swift in Sources */, - DCD198D49C0A198A09525B7688EE3BC9 /* Async.swift in Sources */, - 330E8E4A6596ED625E9B34C94CC4136E /* Await.swift in Sources */, - 94DA3131D64B3D904BE28E72F1871065 /* BeAKindOf.swift in Sources */, - 9C460BA614D4B1D314A252C4C5CE1D87 /* BeAnInstanceOf.swift in Sources */, - F4877B3857C780DCDB7F413A03F95600 /* BeCloseTo.swift in Sources */, - C903AEFEEB4E73644A03FB8285543107 /* BeEmpty.swift in Sources */, - 78A51B7FCC1DFB888AAA254529013C12 /* BeginWith.swift in Sources */, - 42F76698690916E0407F51610D829412 /* BeGreaterThan.swift in Sources */, - 2391FFD3230B40E2348B5257D6296BBB /* BeGreaterThanOrEqualTo.swift in Sources */, - 52AB6461CAA9481D24835F3E48301FC6 /* BeIdenticalTo.swift in Sources */, - 9B9714C476F416AD7FD803EA1184D113 /* BeLessThan.swift in Sources */, - 46BDEBF35D99D2CC53EF72DFC5BDCDCC /* BeLessThanOrEqual.swift in Sources */, - 8D75EC8969EA46FBD6E1BED7791A3C37 /* BeLogical.swift in Sources */, - EC7EF3D5778783BD93EBC6F82016ADA9 /* BeNil.swift in Sources */, - C979EEB0159A65246F6BD2C906A8ADB7 /* BeVoid.swift in Sources */, - D34D0540ADCBF163575B6B5444B1AAF6 /* Contain.swift in Sources */, - 5B6F70DDD4C63CF6ED95291BCB633494 /* ContainElementSatisfying.swift in Sources */, - FF920E965F1CA016FF302DE8C92C5122 /* CwlBadInstructionException.swift in Sources */, - 89EE4D6DBDB79963D65AA1E67B543B6D /* CwlCatchBadInstruction.swift in Sources */, - 02A1AAA49758A955770775CD409D8635 /* CwlCatchException.m in Sources */, - CAACEBB97A7D23E6782B47A805DFED81 /* CwlCatchException.swift in Sources */, - 39133A7716CEDEB690A7DA9D12C45C4D /* CwlDarwinDefinitions.swift in Sources */, - 8A0EF19254BAC5DF0885D1FBA345E016 /* CwlMachBadInstructionHandler.m in Sources */, - 234849AD309265FD107C74357FC8C0CF /* DSL+Wait.swift in Sources */, - 7AC93EB6DCDA9226165D5BC354FE7BC6 /* DSL.m in Sources */, - A9996A6303084D17B9C439CB132A1F69 /* DSL.swift in Sources */, - 3460FEA0CEADB05D3B56C2E1CAF9590C /* ElementsEqual.swift in Sources */, - 3262B230B938C8D6522790093FEAF69D /* EndWith.swift in Sources */, - D9CFB8E5E354D7BE61D092259779F437 /* Equal.swift in Sources */, - B7662703AF8D3FFFCB0070C50FEDCC58 /* Errors.swift in Sources */, - 602E3758C0EF64AF6B7FCEA05BF5B9B9 /* Expectation.swift in Sources */, - AD69407E2FA1D39A9E09248052F2D81B /* ExpectationMessage.swift in Sources */, - E458AAE1AE9E2250F29806E5633B1860 /* Expression.swift in Sources */, - 192A3F8BEC1A99FD8712D3E09724D72C /* FailureMessage.swift in Sources */, - 7DAC86DCBC36C10F43FA5FEB819B7BF1 /* Functional.swift in Sources */, - 64E26D7D025AC4462DFA8BA66B38C9D8 /* HaveCount.swift in Sources */, - 13D2A4D59DD9612E1AA7F3182A342162 /* mach_excServer.c in Sources */, - 5578F928AEFA8B2B7CC542033590DFD6 /* Match.swift in Sources */, - 26B9FEAB3DE0C8B91709D53571752A3B /* MatcherFunc.swift in Sources */, - 44C9470137EF941955A1FDCE71D68C26 /* MatcherProtocols.swift in Sources */, - 0892D14FE7A3452423E9129D7917664B /* MatchError.swift in Sources */, - B71070160CF07EFA99ED0445B0D191E7 /* Nimble-dummy.m in Sources */, - ECCA1FA570A912E8CDB54EB843F1D030 /* NimbleEnvironment.swift in Sources */, - 2B350015B9F7546D0769649EE12D7D1A /* NimbleXCTestHandler.swift in Sources */, - CEE8D31A4E76BB7B350BF2A7175D4BC2 /* NMBExceptionCapture.m in Sources */, - C0C98C8C7D07E1598F20EE2F0539197D /* NMBExpectation.swift in Sources */, - 99E8019F4689A514DAC6AA40AFF7352E /* NMBObjCMatcher.swift in Sources */, - F78E35D04F09485FA5DFA72FE1AD5AB2 /* NMBStringify.m in Sources */, - 46B90B2CF2EB97B38C43A31E9A5478C2 /* PostNotification.swift in Sources */, - B6CC23C6C288F4EB9EDD3A06F1F5F094 /* Predicate.swift in Sources */, - F9E85548BF1EF8C5035BAF92233C34B6 /* RaisesException.swift in Sources */, - B79FC6E46F642C3FC74B3E6D9175B1AB /* SatisfyAllOf.swift in Sources */, - 8D543DAD9A6C0B8BF8A5DB38AD876677 /* SatisfyAnyOf.swift in Sources */, - D9D6150D329A87CBB415FD349F0C50FD /* SourceLocation.swift in Sources */, - 806B9040D79A3DC58FB56EAC16FE19BF /* Stringers.swift in Sources */, - 72FB8CEABF346A37D54CC08647489A98 /* ThrowAssertion.swift in Sources */, - B2A65EEDB5D5EC246EA68E10964FF7B3 /* ThrowError.swift in Sources */, - CF9218FF56D8EE43681150A3E1635C9A /* ToSucceed.swift in Sources */, - DB84342A0C0DEABBF7F729DE55225D82 /* XCTestObservationCenter+Register.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - D8DD770DFAEE019F382DF98196797A9B /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 1CDDFA8E0ABDEC634F2BF59488F8B751 /* AddRef.swift in Sources */, - DFE75009E16A558181D5D8847428D8CD /* Amb.swift in Sources */, - 5D1113442F1DE9836F1520875B987620 /* AnonymousDisposable.swift in Sources */, - 5E7B0C3409CE04B12B4277FD06C80FED /* AnonymousObserver.swift in Sources */, - 30F3FC3AD2B5C93759E4F3977D4788F6 /* AnyObserver.swift in Sources */, - 778DD0AF4228E5B92F8C3E788E5C5A9A /* AsMaybe.swift in Sources */, - 5D7D08630E94C999C4784F81773C09B0 /* AsSingle.swift in Sources */, - A1187619214B841C299A6BE1340125C8 /* AsyncLock.swift in Sources */, - 594056F7F08476D746E79D4484C12918 /* AsyncSubject.swift in Sources */, - C2EF954DA15BD76EADE08D95870A589B /* AtomicInt.swift in Sources */, - 2DD548FFFDDB50228D40AE978CADC3B6 /* Bag+Rx.swift in Sources */, - 04C4654F9EAD6D8507B88B4EC21B1E72 /* Bag.swift in Sources */, - 9C18135A6C2EB820FF644CE7144A153F /* BehaviorSubject.swift in Sources */, - F983A1FFF609D277B4426EFBE239B265 /* BinaryDisposable.swift in Sources */, - 735E6A1594ECE57B7DE6CED48BA0B9C0 /* BooleanDisposable.swift in Sources */, - 12E91AF2E7472DAE4CD7E6E17FD7017C /* Buffer.swift in Sources */, - 847F1C59266DFA11D3E0A82A3F7656C6 /* Cancelable.swift in Sources */, - 1A0162B978313B287CDCD30754CA349C /* Catch.swift in Sources */, - DE3C67FDE4B38FB1AD6E4CFB9100F87F /* CombineLatest+arity.swift in Sources */, - 5CAC7546BBA04A948EA2E29C8BBC3EB5 /* CombineLatest+Collection.swift in Sources */, - 63439C15FD137A4DD7D81FDB783ACAAD /* CombineLatest.swift in Sources */, - C7BF8715090631FE9A75C1E2602106D7 /* Completable+AndThen.swift in Sources */, - F62A14B41B447EB036F3B0E54801C4A3 /* Completable.swift in Sources */, - CCFC0D43E2745F63C802811D5355688F /* CompositeDisposable.swift in Sources */, - 586F64F0B6788CE096D70984BF369062 /* Concat.swift in Sources */, - 7B8CB0AADCCB1240E901D58B0D607A08 /* ConcurrentDispatchQueueScheduler.swift in Sources */, - 7A57D6584CCC9D0C3EF34EDA96807D34 /* ConcurrentMainScheduler.swift in Sources */, - 42014E58135F62BA99D2E9A0A57477EC /* ConnectableObservableType.swift in Sources */, - 0046C3CADE432D05E88D78C0FC8BFB66 /* Create.swift in Sources */, - 287011C11A6C9400FD5C4A6BF52673E7 /* CurrentThreadScheduler.swift in Sources */, - 9D6E06BF5107889B77D804590C50CC3B /* Debounce.swift in Sources */, - C2CFCAB2846833DB810F14FB7771013F /* Debug.swift in Sources */, - 831EFEAF216F7107FD4781029CF334A1 /* DefaultIfEmpty.swift in Sources */, - AD6A5A8EB175FCD3F2B3180697F8F241 /* Deferred.swift in Sources */, - AE931569839D57DF5B5EA8F08E896FC3 /* Delay.swift in Sources */, - B15095C300DB89D5B085632BC978757A /* DelaySubscription.swift in Sources */, - 089162A09B0781AF494A021A592E2045 /* Dematerialize.swift in Sources */, - 9FC2ED14647026BF3E38D01C8B398623 /* Deprecated.swift in Sources */, - 9974F61BB73989EDE98FE73F8F68C562 /* DeprecationWarner.swift in Sources */, - 5A4C3A45BD3D238566D5FC85480C8CAD /* DispatchQueue+Extensions.swift in Sources */, - D6722D812A80170AF5F25C937EBA5C8A /* DispatchQueueConfiguration.swift in Sources */, - 2B2DCBFEA6A2D9450C925BBD6118C11F /* Disposable.swift in Sources */, - B43443C28F4F69B95AFCE01498F9E479 /* Disposables.swift in Sources */, - 6B173451852AAD7A9287C73109FE931F /* DisposeBag.swift in Sources */, - 9A565B29FBB89A8837EE8AEA964BCC11 /* DisposeBase.swift in Sources */, - 762C7CECFAF5042FAD2CDF885F9C9622 /* DistinctUntilChanged.swift in Sources */, - B4590B0D9DDEDF0A32C971121A70FAE9 /* Do.swift in Sources */, - 872F790C8F98B40CE30A67C5C5191F56 /* ElementAt.swift in Sources */, - 6AED4F0EFE23EE027E9498E3542BFEAA /* Empty.swift in Sources */, - 4B7F700B09DCE8D870AFF66D8A7BE562 /* Enumerated.swift in Sources */, - 56AB501237E6788C34FA1E9CBA404285 /* Error.swift in Sources */, - 0D7C537BDA932B4BD36BC8B9A2F16323 /* Errors.swift in Sources */, - C63E2476FBDF6E973985A8AC0ABB8957 /* Event.swift in Sources */, - 89E9A16115FE45020BEA669837F93830 /* Filter.swift in Sources */, - 345175B39BC3C7FAFB414EA3CD46E347 /* First.swift in Sources */, - EDB560A510AACB4BBC8060B704275D77 /* Generate.swift in Sources */, - D78AAA8D3BE8D344B91400EEF33A07DD /* GroupBy.swift in Sources */, - 7C1D0EB5CE027B524CB3A0417D99410B /* GroupedObservable.swift in Sources */, - C68FE56DC7082A00316E7BB96063F8EB /* HistoricalScheduler.swift in Sources */, - 71B7EEF53F276D4730D8E183B08E33E6 /* HistoricalSchedulerTimeConverter.swift in Sources */, - 865BC337667FAE14056A47557F5F739B /* ImmediateSchedulerType.swift in Sources */, - 64769A1D19EBD3AE97A702E5D82A88B2 /* InfiniteSequence.swift in Sources */, - B88615482E938D7DE8D3F303F8D2E651 /* InvocableScheduledItem.swift in Sources */, - 946E3F2046BAF4F5AEB41BCED9E47EAE /* InvocableType.swift in Sources */, - E8A073967B8C3D26F81547944D63D3C8 /* Just.swift in Sources */, - CC2ECD6C2864E48AFCCF6492C8466C35 /* Lock.swift in Sources */, - 6466D196B9F551735D7B25C5AE712439 /* LockOwnerType.swift in Sources */, - 8519F8DDE89478A1FBD72D6EE46478AC /* MainScheduler.swift in Sources */, - A812756FEF227336442A3B7F1AAD0ACE /* Map.swift in Sources */, - 07FDA7305EB852C19991BDEF16547BAD /* Materialize.swift in Sources */, - BFAD10BBE1DF8DBD6621B44510DC76CD /* Maybe.swift in Sources */, - BF5220D6C099C14E9AAC98730C398A26 /* Merge.swift in Sources */, - 8245E8482AD4719392EE1007F7E7977C /* Multicast.swift in Sources */, - F71B67106C939917A35E27FE22983A46 /* Never.swift in Sources */, - 0C91FAC1F7D07891DFBBF00AEC70B48B /* NopDisposable.swift in Sources */, - 12C32E6D33D13958867D67651FDECF70 /* Observable.swift in Sources */, - 9CFE992FB6AFD371E0904B76452DF8F9 /* ObservableConvertibleType.swift in Sources */, - B0CB5B33D884649F5F92BDF4B8E4F4D8 /* ObservableType+Extensions.swift in Sources */, - A5A19E19E4367938911D2737703C0D6C /* ObservableType+PrimitiveSequence.swift in Sources */, - CC6AE8BFDB688A0D399EC6D311F92AD3 /* ObservableType.swift in Sources */, - 1F09C335B08AD3375652BEBF3111BC52 /* ObserveOn.swift in Sources */, - 38D9A76A5E6D88432B5751F10734358B /* ObserverBase.swift in Sources */, - 9474906335CF252B428C6C395087530A /* ObserverType.swift in Sources */, - E5DC07A9910DDBDCDDA9CA014CD73049 /* OperationQueueScheduler.swift in Sources */, - 8DE9692605844F53C0C9618B99F5E1D1 /* Optional.swift in Sources */, - 71C3D7F40F97EB276CE9149179562850 /* Platform.Darwin.swift in Sources */, - A9407B9F7108C3058E772BEA2A8574DF /* Platform.Linux.swift in Sources */, - E6DB5342448A58D11EC51A32FC4186BD /* PrimitiveSequence+Zip+arity.swift in Sources */, - C56FFF449C82E10AB0EBDA3249DA25F1 /* PrimitiveSequence.swift in Sources */, - A1C8F6F51CFF9B932FE8E31ECED1546B /* PriorityQueue.swift in Sources */, - CD68EBF2FF65D76EAE853D0413704127 /* Producer.swift in Sources */, - EE85C486A0DB45BD2B6B1A9080AD94C8 /* PublishSubject.swift in Sources */, - E88BD03CE8F4E720D65EFD79C0FF4A35 /* Queue.swift in Sources */, - 8B805B6F815D2CADC0E4FC819AFD01AA /* Range.swift in Sources */, - FFD51653EB35D5CEFE302E846CE04642 /* Reactive.swift in Sources */, - EFC84C58C4D386D7FE9B4127659913C4 /* RecursiveLock.swift in Sources */, - D804127CAD63987B0E39EF93DE372339 /* RecursiveScheduler.swift in Sources */, - 7669AE2E4BCC1BE93E2AB4F0FD9D3674 /* Reduce.swift in Sources */, - A5B04E7ADCD612C596D167362FE27B9E /* RefCountDisposable.swift in Sources */, - C6869939F1A68984EDD66E2161EA2A29 /* Repeat.swift in Sources */, - 638F6CD0C1DDEE1066648EB4B083BFF6 /* ReplaySubject.swift in Sources */, - DAA7B1837772E9FF67AD333DAC117004 /* RetryWhen.swift in Sources */, - 4AF58DFFEAC7EF9C34A839262C485575 /* Rx.swift in Sources */, - A3210EFFB5DB0AA436E4A5A63659D3D6 /* RxMutableBox.swift in Sources */, - 0A9CE6104BA1EBE7DC0F8029E13A4251 /* RxSwift-dummy.m in Sources */, - 26E38B70B08ED9090573544EB70D177A /* Sample.swift in Sources */, - 59CA3C3E5B78474F96109D7979F66C0D /* Scan.swift in Sources */, - 071B0A10E6A477D9AAD8BB76EC5C4414 /* ScheduledDisposable.swift in Sources */, - 287BDE62D3BD4F78835EA72C880A2886 /* ScheduledItem.swift in Sources */, - 6605D9C86E8B487130465E42400E2CA3 /* ScheduledItemType.swift in Sources */, - 186EEB657E514138B2B8D4482233AD40 /* SchedulerServices+Emulation.swift in Sources */, - 899233A4622C606D2537B847B595CE8C /* SchedulerType.swift in Sources */, - 0FF745E43D121CE607D9FB7FCE16179B /* Sequence.swift in Sources */, - E0D795AFD05DD9ACEB11DF11FA8F6EC1 /* SerialDispatchQueueScheduler.swift in Sources */, - EBB042B0DF672488440139CC265B9390 /* SerialDisposable.swift in Sources */, - 82F517AC7EF6C16FF136391F86779ADD /* ShareReplayScope.swift in Sources */, - 9C137E897718A17EBB2EB0161ADF74EF /* Single.swift in Sources */, - 63DEDC3089958CA3AF8C429C5658E38E /* SingleAssignmentDisposable.swift in Sources */, - C494E070C6B415BA9480FF2CEBC3F20D /* SingleAsync.swift in Sources */, - E14FFF738797C4BF04DABB46D631116C /* Sink.swift in Sources */, - F6F59BE23739FE251A338B577FC43150 /* Skip.swift in Sources */, - 518D454E6180F58B7428FF754B856E7F /* SkipUntil.swift in Sources */, - 4E0BACE42675CF80D94A76ED86558CD8 /* SkipWhile.swift in Sources */, - B102F4265331A96D414CC624F1775294 /* StartWith.swift in Sources */, - 60EE5F86C1B4BA04DF07580F7E1FAE8B /* String+Rx.swift in Sources */, - 96B9D1ED70A47FF4F6558739D5B9AFC6 /* SubjectType.swift in Sources */, - 55A8211149AA07D001160470FD97C31C /* SubscribeOn.swift in Sources */, - D1108348CD96A925C8201F055F212045 /* SubscriptionDisposable.swift in Sources */, - 2244ACCC96F3892EF908E9D69FA1958B /* SwiftSupport.swift in Sources */, - 4D1669819280A028BA069B66276E036B /* Switch.swift in Sources */, - 67D19B54D2AAB11A414A1B25FF50750A /* SwitchIfEmpty.swift in Sources */, - A0FDA1ADFF69F7CF8ABFBB8E4587C37B /* SynchronizedDisposeType.swift in Sources */, - 7233AA3306ABCB0ACE1D5EADFE2B974E /* SynchronizedOnType.swift in Sources */, - F004C49FFE75A540A8BA7239FCC0FB8A /* SynchronizedUnsubscribeType.swift in Sources */, - 7F026DB6133771076B8A470C41D515A8 /* TailRecursiveSink.swift in Sources */, - 320B514DD620E49C4A0C4E40FBAEF3A6 /* Take.swift in Sources */, - 03E76AED6A125A086785C83BADE5C422 /* TakeLast.swift in Sources */, - B5E778322C07FF0402F0ECEDC1518025 /* TakeUntil.swift in Sources */, - 7CAC1CBAE40B672FA65394776F1C0A22 /* TakeWhile.swift in Sources */, - 1EE03D748B31F87D5ED7AD6793B6DAE9 /* Throttle.swift in Sources */, - 2A4F77B3F533477E7823C40CC796588F /* Timeout.swift in Sources */, - 536E9DDCD23E21639145FF4039B50358 /* Timer.swift in Sources */, - C027783A9B891851727DBC72594FDC45 /* ToArray.swift in Sources */, - 10ED1FE01702D78FD2BE4908B32A04D3 /* Using.swift in Sources */, - 0FCA371907A3EAC6951F6FCC0ADCBDBF /* VirtualTimeConverterType.swift in Sources */, - E6D321D3F511F14447776B3E03F1865E /* VirtualTimeScheduler.swift in Sources */, - 13CB8324B35B7C4F82B6791E77BC553B /* Window.swift in Sources */, - 55FA7E2A72A431C10CF0D262FA3D15DD /* WithLatestFrom.swift in Sources */, - CFADF946388BBC7FCBD9431FBADA091A /* Zip+arity.swift in Sources */, - 2BB9E6982D25D3B4EE0DE0D96F066AF9 /* Zip+Collection.swift in Sources */, - 97F6C830F981C6F1FA5C7410E9FFB4F5 /* Zip.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - F9790E768E3E826C36ED0CC3086AD472 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 75B329D48C0A3C90078D54E12F3545D1 /* Toast.swift in Sources */, - EE2B76A1015936D3B867283CD72FB55E /* ToastCenter.swift in Sources */, - 8D03B5706C51EFAB22148F8ABDAB7303 /* Toaster-dummy.m in Sources */, - 342A82732EB42E300EF63417F55E3C48 /* ToastView.swift in Sources */, - 8A0A653CD9FAA128B349CF83F4B09345 /* ToastWindow.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 02C64CF5CC1A9DCE776BB54B4EBAC803 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxSwift; - target = EA9EA43B3B503823EE36C60D9C8A865F /* RxSwift */; - targetProxy = 1553B76F87650E3186621C0B2E8355DC /* PBXContainerItemProxy */; - }; - 118281A9DC60825BB07AE764412AE554 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxSwift; - target = EA9EA43B3B503823EE36C60D9C8A865F /* RxSwift */; - targetProxy = 60C6B32C5C30A7AF1502E99F7CABE99C /* PBXContainerItemProxy */; - }; - 1AE07F938CC6642E8F901F3167636303 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = SnapKit; - target = 19622742EBA51E823D6DAE3F8CDBFAD4 /* SnapKit */; - targetProxy = AF2E22985D6CF3CF1E19EE593ABE2C8A /* PBXContainerItemProxy */; - }; - 28E06CABEEEBAB962F3A472D1A78CEB5 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxCocoa; - target = 7AD0C6DCDC9CEC8A3C7C10C7FEE07BE6 /* RxCocoa */; - targetProxy = 601EB4510DDE56949786A1F050836FE8 /* PBXContainerItemProxy */; - }; - 2D1102F29412E0D985FDC040B9D575DF /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = Quick; - target = C82891EAB7293DBEE916B21F57E8474D /* Quick */; - targetProxy = 44D91DD00B30CE2E6F047BA5CDADDD91 /* PBXContainerItemProxy */; - }; - 3C8731A42E9383E510547512F375DD67 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxAppState; - target = 2CEE308D2C2024ABC968E3474B843F0E /* RxAppState */; - targetProxy = FE5055DF0DC44A2B378A528FF6AAC1E4 /* PBXContainerItemProxy */; - }; - 3F595CEEFEC09468C51F44AED8D1C9E9 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxTest; - target = C8D93C508E21FFD4EE60D335DD6C22E3 /* RxTest */; - targetProxy = FADF993BD5758B6C8B21363FFE7132D6 /* PBXContainerItemProxy */; - }; - 49AC86D83146BD0D18A97AA148AD9AE4 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = Nimble; - target = 6F13695E06195A78EA8A95F8C7ED0D2F /* Nimble */; - targetProxy = E5B91882ECB541383C191A825B747091 /* PBXContainerItemProxy */; - }; - 4D4295B9A5EA7E6FB50C32A029575941 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxSwift; - target = EA9EA43B3B503823EE36C60D9C8A865F /* RxSwift */; - targetProxy = 7246648510C0AE95E6783B847DB671C0 /* PBXContainerItemProxy */; - }; - 4DE75170BA804A9D5A657B972DF0D68A /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = Nimble; - target = 6F13695E06195A78EA8A95F8C7ED0D2F /* Nimble */; - targetProxy = 24911E3F25144E1E8614FC8445831816 /* PBXContainerItemProxy */; - }; - 4E947ABB25B2A0E2F16B4903C217CDD3 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxAtomic; - target = 3B2E405FB76A0E213CE57985A423DED6 /* RxAtomic */; - targetProxy = 4519FB762D2FEDEB195DDD265F8C6574 /* PBXContainerItemProxy */; - }; - 4F008F5E4C8BCD9B5E129BB9B4339BF9 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxDataSources; - target = 401909D4FB2014BF539896BF0CCA48C2 /* RxDataSources */; - targetProxy = 23247FE3E3664B68A9FF70049956BE38 /* PBXContainerItemProxy */; - }; - 531BBE685DB7E6C2DC8687096FECEC02 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxCocoa; - target = 7AD0C6DCDC9CEC8A3C7C10C7FEE07BE6 /* RxCocoa */; - targetProxy = 48B436E526AA37C8A14C70AEDEB80CB4 /* PBXContainerItemProxy */; - }; - 5AFDC0179231D17C95EDB82265F1F15F /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = Quick; - target = C82891EAB7293DBEE916B21F57E8474D /* Quick */; - targetProxy = B3F27AB8643D58EF37DA7E38F62A7D67 /* PBXContainerItemProxy */; - }; - 60DEDBF8B22C02835E2E3543C203D82C /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = Toaster; - target = B90AB98A7BC6A346D671B36DB990DAC2 /* Toaster */; - targetProxy = B92F91E527B289E8670DBBFF8E2FA2AF /* PBXContainerItemProxy */; - }; - 7FADE31B96FE8C2AFDBE5A4C1E1494B0 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxSwift; - target = EA9EA43B3B503823EE36C60D9C8A865F /* RxSwift */; - targetProxy = 3F026DE7AC5EC55D04D6DD065C0F3EAE /* PBXContainerItemProxy */; - }; - 8868D41BD0C8C9F953B5EA8B3A5D2377 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxCocoa; - target = 7AD0C6DCDC9CEC8A3C7C10C7FEE07BE6 /* RxCocoa */; - targetProxy = 5023C809D4CE1DD4E118F9694F5941A1 /* PBXContainerItemProxy */; - }; - 89A7C4B347206E3697CD32CBDDE6C5D9 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxTest; - target = C8D93C508E21FFD4EE60D335DD6C22E3 /* RxTest */; - targetProxy = 2F0C0B49F5EA7144FDC23AA52291CAA5 /* PBXContainerItemProxy */; - }; - 8C24E8FE0BD38821EFC989DE9923AA68 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = Then; - target = C17AEFC79E770A2906EFAAB1A3757406 /* Then */; - targetProxy = 5EAC5535A75D2A71EB847F9F2E9C6CAB /* PBXContainerItemProxy */; - }; - 94EA69A8391AAC7CE02806739DB30DBB /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxAtomic; - target = 3B2E405FB76A0E213CE57985A423DED6 /* RxAtomic */; - targetProxy = BAA2DD4D108B0372D12BCF4ACB500A86 /* PBXContainerItemProxy */; - }; - 95A4945688475E18948A214954ABBDB8 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Pods-BringMyOwnBeer🍺"; - target = B1CBF9D69A9EB43C8FB167DFF56AF739 /* Pods-BringMyOwnBeer🍺 */; - targetProxy = 5330BEA972F1A0945CBD604AEE93B43A /* PBXContainerItemProxy */; - }; - 95D04A4322B9AA878C726A3FD303439C /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxAtomic; - target = 3B2E405FB76A0E213CE57985A423DED6 /* RxAtomic */; - targetProxy = F2CB8D7AEE7CEBB3787ED7A617459330 /* PBXContainerItemProxy */; - }; - 98CE6B7D91AA2669817DD8FB535E81FB /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxCocoa; - target = 7AD0C6DCDC9CEC8A3C7C10C7FEE07BE6 /* RxCocoa */; - targetProxy = 5C600E3885D1E74CA474CAF3EC2CAD93 /* PBXContainerItemProxy */; - }; - 9B904D9E8D9993A396969CCDC4C3BA37 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxCocoa; - target = 7AD0C6DCDC9CEC8A3C7C10C7FEE07BE6 /* RxCocoa */; - targetProxy = 3C5451F48C34802A075369BDF4365FE7 /* PBXContainerItemProxy */; - }; - B34CA2BC55BC3C01B147BBBB8E6D4E92 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxSwift; - target = EA9EA43B3B503823EE36C60D9C8A865F /* RxSwift */; - targetProxy = 43EA40881DEB09B031E054ED72EE1749 /* PBXContainerItemProxy */; - }; - B58AA16D04AFBD709B92055C9EB6FB99 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxBlocking; - target = F243B36381C0CE83CCFF789AC38F0D36 /* RxBlocking */; - targetProxy = 3AFA6CBA16FF7BFD3769447DFF18771A /* PBXContainerItemProxy */; - }; - BCDB4F7009B5FB8C47FB1889D28D8562 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxAtomic; - target = 3B2E405FB76A0E213CE57985A423DED6 /* RxAtomic */; - targetProxy = 36A501537D21298600480D33A9DA3D0F /* PBXContainerItemProxy */; - }; - BFD0D0D3C4E1E35BBD1DF030BB6412AE /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxOptional; - target = 3D8B1104C8B4F5AD74F600289D7A12AD /* RxOptional */; - targetProxy = B5C1BBACA8662D668198AC77BAFD4E69 /* PBXContainerItemProxy */; - }; - C1A49B16497C90160D55BBD09B3A15C4 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = Kingfisher; - target = E8022D22FAA6690B5E1C379C1BCE1491 /* Kingfisher */; - targetProxy = A82DE90F851E243D4FE12C11ABA462F7 /* PBXContainerItemProxy */; - }; - C481B236805064049CF7406A804ACFA2 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Pods-BringMyOwnBeer🍺"; - target = B1CBF9D69A9EB43C8FB167DFF56AF739 /* Pods-BringMyOwnBeer🍺 */; - targetProxy = 6581A0EB69025CA162DD32C912366526 /* PBXContainerItemProxy */; - }; - CE04A73168D6438E84C02C5946617E5B /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxSwift; - target = EA9EA43B3B503823EE36C60D9C8A865F /* RxSwift */; - targetProxy = 987C10EDFF8F9F8678EB5F3480C3EC13 /* PBXContainerItemProxy */; - }; - D58916867D66DBC352A6CE6219D68A04 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxSwift; - target = EA9EA43B3B503823EE36C60D9C8A865F /* RxSwift */; - targetProxy = 3A94F9F07AA3811B5DDADDF6A33B04B8 /* PBXContainerItemProxy */; - }; - D7DC66A7C8E7E05A90918E5319FA31FA /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = Differentiator; - target = 212F79CE462FC723AF42979B57FBB8A6 /* Differentiator */; - targetProxy = 59118DA0CD20403B95965F803F14F0CD /* PBXContainerItemProxy */; - }; - E5D25F5DADBDADD30547419D29D09C59 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxSwift; - target = EA9EA43B3B503823EE36C60D9C8A865F /* RxSwift */; - targetProxy = 42D59F6D4DC4D36088E7A36CEA103CD8 /* PBXContainerItemProxy */; - }; - E6DBF6CB0CFB0504F602DE856ACE7D16 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxBlocking; - target = F243B36381C0CE83CCFF789AC38F0D36 /* RxBlocking */; - targetProxy = 706886EE1AFC0268940220702FC60C8D /* PBXContainerItemProxy */; - }; - EE0D2A73DC23C599DCC5A7763281A333 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxSwift; - target = EA9EA43B3B503823EE36C60D9C8A865F /* RxSwift */; - targetProxy = 390B9D6200A5F921ECC03060913A12A1 /* PBXContainerItemProxy */; - }; - F24349382563219AAE45B194A3EE4B4A /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxKeyboard; - target = 46E48C41E3556F8E41D231C8FD9B7471 /* RxKeyboard */; - targetProxy = 50A3BB36E06092025ACB82B3D1C1587E /* PBXContainerItemProxy */; - }; - F449004CE3C4ED265A06A95032A879CF /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxSwift; - target = EA9EA43B3B503823EE36C60D9C8A865F /* RxSwift */; - targetProxy = 59689F4C19355FB7F1AA4180DFB8FF9B /* PBXContainerItemProxy */; - }; - F87EF38C5F072440A3AD9AD3BBADB08A /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = Differentiator; - target = 212F79CE462FC723AF42979B57FBB8A6 /* Differentiator */; - targetProxy = E237E6E7997F0C5BC5ACDB01BE6E1BA0 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - 03CB415BD9F44C07677F930A78F6C25A /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = C88A9D0635F895FCEB47731ED5E882D1 /* RxKeyboard.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/RxKeyboard/RxKeyboard-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/RxKeyboard/RxKeyboard-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/RxKeyboard/RxKeyboard.modulemap"; - PRODUCT_MODULE_NAME = RxKeyboard; - PRODUCT_NAME = RxKeyboard; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 0783C5877DED25B5711EE324AA6A6903 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = CDE20025AF5A5BBB3C9D417E5A255D91 /* Toaster.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/Toaster/Toaster-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Toaster/Toaster-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/Toaster/Toaster.modulemap"; - PRODUCT_MODULE_NAME = Toaster; - PRODUCT_NAME = Toaster; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 097D07CDBA3D9117BDA5FE9BEF67F0AE /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = B762349450971970AEC8D2ACE47E2F50 /* RxBlocking.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/RxBlocking/RxBlocking-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/RxBlocking/RxBlocking-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/RxBlocking/RxBlocking.modulemap"; - PRODUCT_MODULE_NAME = RxBlocking; - PRODUCT_NAME = RxBlocking; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 0EEFB71F3C0D0BC75E62D1AF79C84C5C /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6F653373143C397FBB99062C270851CF /* RxSwift.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/RxSwift/RxSwift-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/RxSwift/RxSwift-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/RxSwift/RxSwift.modulemap"; - PRODUCT_MODULE_NAME = RxSwift; - PRODUCT_NAME = RxSwift; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 1422B121EAEAEA11307496903FA623C6 /* 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; - 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 = 13.0; - MTL_ENABLE_DEBUG_INFO = NO; - MTL_FAST_MATH = YES; - PRODUCT_NAME = "$(TARGET_NAME)"; - STRIP_INSTALLED_PRODUCT = NO; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - SWIFT_VERSION = 5.0; - SYMROOT = "${SRCROOT}/../build"; - }; - name = Release; - }; - 162C9D95BE60DFE5046151D5B9A3F433 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 96C7A0661D667B3675AE3786F4FBF0BD /* SnapKit.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/SnapKit/SnapKit-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/SnapKit/SnapKit-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/SnapKit/SnapKit.modulemap"; - PRODUCT_MODULE_NAME = SnapKit; - PRODUCT_NAME = SnapKit; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.2; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 1A084EC3BE418D27C914689CB41071FD /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 4DC9006B903CCE0D9444778A451B30EA /* Pods-BringMyOwnBeer🍺.debug.xcconfig */; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; - CLANG_ENABLE_OBJC_WEAK = 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-BringMyOwnBeer🍺/Pods-BringMyOwnBeer🍺-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MACH_O_TYPE = staticlib; - MODULEMAP_FILE = "Target Support Files/Pods-BringMyOwnBeer🍺/Pods-BringMyOwnBeer🍺.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; - }; - 271DD0BE6D4722512E19183835B23A45 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 844176B2B776BC84232DDBCD58F92172 /* RxAtomic.xcconfig */; - buildSettings = { - CODE_SIGN_IDENTITY = ""; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - GCC_PREFIX_HEADER = "Target Support Files/RxAtomic/RxAtomic-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/RxAtomic/RxAtomic-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/RxAtomic/RxAtomic.modulemap"; - PRODUCT_MODULE_NAME = RxAtomic; - PRODUCT_NAME = RxAtomic; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 35BD7170D76CF042114E28EAB08553CC /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = C7CAC5CD7E3F0AE161D4E799C5EF0911 /* RxAppState.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/RxAppState/RxAppState-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/RxAppState/RxAppState-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/RxAppState/RxAppState.modulemap"; - PRODUCT_MODULE_NAME = RxAppState; - PRODUCT_NAME = RxAppState; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 39C5A4E709A008FD902E9AF787FBE62A /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 580B9221A64597D1889B7FB0140CC344 /* Pods-BringMyOwnBeer🍺Tests.debug.xcconfig */; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; - CLANG_ENABLE_OBJC_WEAK = 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-BringMyOwnBeer🍺Tests/Pods-BringMyOwnBeer🍺Tests-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MACH_O_TYPE = staticlib; - MODULEMAP_FILE = "Target Support Files/Pods-BringMyOwnBeer🍺Tests/Pods-BringMyOwnBeer🍺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; - }; - 3DD9A1A7E5D80F4CA05BE29F67C6DBDD /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = E95AA211C8355CC0E1AF076C736EC685 /* RxDataSources.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/RxDataSources/RxDataSources-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/RxDataSources/RxDataSources-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/RxDataSources/RxDataSources.modulemap"; - PRODUCT_MODULE_NAME = RxDataSources; - PRODUCT_NAME = RxDataSources; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 4347B62B850367357781887237E794E6 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 96C7A0661D667B3675AE3786F4FBF0BD /* SnapKit.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/SnapKit/SnapKit-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/SnapKit/SnapKit-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/SnapKit/SnapKit.modulemap"; - PRODUCT_MODULE_NAME = SnapKit; - PRODUCT_NAME = SnapKit; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.2; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 435FEBAA4BD58A4EEF37A88786225C01 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 89290702FC1FD04F7D485152D2AC9239 /* Nimble.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/Nimble/Nimble-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Nimble/Nimble-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/Nimble/Nimble.modulemap"; - PRODUCT_MODULE_NAME = Nimble; - PRODUCT_NAME = Nimble; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 4D2E95085ED87633548280225F595B2F /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 98240EEC51C403351D20051EB27F2771 /* Differentiator.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/Differentiator/Differentiator-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Differentiator/Differentiator-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/Differentiator/Differentiator.modulemap"; - PRODUCT_MODULE_NAME = Differentiator; - PRODUCT_NAME = Differentiator; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 5364331C7EC7463676B48302F9B260B8 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = CF602282BD77E4207F3CF8B8BDCE2105 /* Quick.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/Quick/Quick-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Quick/Quick-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/Quick/Quick.modulemap"; - PRODUCT_MODULE_NAME = Quick; - PRODUCT_NAME = Quick; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 56DDE1E9E0828D411EC4D80358AA3367 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = B762349450971970AEC8D2ACE47E2F50 /* RxBlocking.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/RxBlocking/RxBlocking-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/RxBlocking/RxBlocking-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/RxBlocking/RxBlocking.modulemap"; - PRODUCT_MODULE_NAME = RxBlocking; - PRODUCT_NAME = RxBlocking; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 592F9B899060DCD12927FB89371BF78C /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = A1E2837B86A984006B5573D37519CDAB /* Pods-BringMyOwnBeer🍺Tests.release.xcconfig */; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; - CLANG_ENABLE_OBJC_WEAK = 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-BringMyOwnBeer🍺Tests/Pods-BringMyOwnBeer🍺Tests-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MACH_O_TYPE = staticlib; - MODULEMAP_FILE = "Target Support Files/Pods-BringMyOwnBeer🍺Tests/Pods-BringMyOwnBeer🍺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; - }; - 667076A6E710A78685153C924A966723 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6F32A5F0F6D7A13DB47E8F994AB5E8EA /* RxTest.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/RxTest/RxTest-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/RxTest/RxTest-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/RxTest/RxTest.modulemap"; - PRODUCT_MODULE_NAME = RxTest; - PRODUCT_NAME = RxTest; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 7E1177A0FE7A992E817B0973C50547EE /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = E95AA211C8355CC0E1AF076C736EC685 /* RxDataSources.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/RxDataSources/RxDataSources-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/RxDataSources/RxDataSources-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/RxDataSources/RxDataSources.modulemap"; - PRODUCT_MODULE_NAME = RxDataSources; - PRODUCT_NAME = RxDataSources; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 85A7A821CAC43361523130693A44AC04 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 244CAA2B09F0727719BE386EBF2470B5 /* Pods-BringMyOwnBeer🍺UITests.release.xcconfig */; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; - CLANG_ENABLE_OBJC_WEAK = 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-BringMyOwnBeer🍺UITests/Pods-BringMyOwnBeer🍺UITests-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MACH_O_TYPE = staticlib; - MODULEMAP_FILE = "Target Support Files/Pods-BringMyOwnBeer🍺UITests/Pods-BringMyOwnBeer🍺UITests.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; - }; - 85E222CA7E2EEACED15D01DE82AAEE97 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = E015B7FB4563CA849D041C437DEC10E3 /* RxCocoa.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/RxCocoa/RxCocoa-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/RxCocoa/RxCocoa-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/RxCocoa/RxCocoa.modulemap"; - PRODUCT_MODULE_NAME = RxCocoa; - PRODUCT_NAME = RxCocoa; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - A10E2385B99F35EACB6A4A8AEACCCFF2 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 0B55E8D4041C5E15820B9582E2EEF211 /* Pods-BringMyOwnBeer🍺UITests.debug.xcconfig */; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; - CLANG_ENABLE_OBJC_WEAK = 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-BringMyOwnBeer🍺UITests/Pods-BringMyOwnBeer🍺UITests-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MACH_O_TYPE = staticlib; - MODULEMAP_FILE = "Target Support Files/Pods-BringMyOwnBeer🍺UITests/Pods-BringMyOwnBeer🍺UITests.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; - }; - A42D926E1B0F1982D16C90B4CB7FCCAC /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7B979D11211B0509541E1430B386DE26 /* Pods-BringMyOwnBeer🍺.release.xcconfig */; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; - CLANG_ENABLE_OBJC_WEAK = 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-BringMyOwnBeer🍺/Pods-BringMyOwnBeer🍺-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MACH_O_TYPE = staticlib; - MODULEMAP_FILE = "Target Support Files/Pods-BringMyOwnBeer🍺/Pods-BringMyOwnBeer🍺.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; - }; - AB47C2AF5950D1E2F39CDBF789BD400B /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 89290702FC1FD04F7D485152D2AC9239 /* Nimble.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/Nimble/Nimble-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Nimble/Nimble-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/Nimble/Nimble.modulemap"; - PRODUCT_MODULE_NAME = Nimble; - PRODUCT_NAME = Nimble; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - AB68F51456260FC2F4C3638BF5CE3F13 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = E015B7FB4563CA849D041C437DEC10E3 /* RxCocoa.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/RxCocoa/RxCocoa-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/RxCocoa/RxCocoa-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/RxCocoa/RxCocoa.modulemap"; - PRODUCT_MODULE_NAME = RxCocoa; - PRODUCT_NAME = RxCocoa; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - B23B48E8687DBD10FBBFA091A684D5E8 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = EE16D4631EEF6D753E6DC3C67AC58141 /* RxOptional.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/RxOptional/RxOptional-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/RxOptional/RxOptional-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/RxOptional/RxOptional.modulemap"; - PRODUCT_MODULE_NAME = RxOptional; - PRODUCT_NAME = RxOptional; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - B5073F252890243DACABDACE0A64235F /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = CF602282BD77E4207F3CF8B8BDCE2105 /* Quick.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/Quick/Quick-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Quick/Quick-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/Quick/Quick.modulemap"; - PRODUCT_MODULE_NAME = Quick; - PRODUCT_NAME = Quick; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - B5DF75840C687FB6AB3709C3B3C8970D /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6F32A5F0F6D7A13DB47E8F994AB5E8EA /* RxTest.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/RxTest/RxTest-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/RxTest/RxTest-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/RxTest/RxTest.modulemap"; - PRODUCT_MODULE_NAME = RxTest; - PRODUCT_NAME = RxTest; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - BB757604A0F93EF3104B0089E4861F6F /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 98240EEC51C403351D20051EB27F2771 /* Differentiator.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/Differentiator/Differentiator-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Differentiator/Differentiator-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/Differentiator/Differentiator.modulemap"; - PRODUCT_MODULE_NAME = Differentiator; - PRODUCT_NAME = Differentiator; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - BD8DCAA3B446903540E548FC831B57A1 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 844176B2B776BC84232DDBCD58F92172 /* RxAtomic.xcconfig */; - buildSettings = { - CODE_SIGN_IDENTITY = ""; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - GCC_PREFIX_HEADER = "Target Support Files/RxAtomic/RxAtomic-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/RxAtomic/RxAtomic-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/RxAtomic/RxAtomic.modulemap"; - PRODUCT_MODULE_NAME = RxAtomic; - PRODUCT_NAME = RxAtomic; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - BE3E1F8E194107E30897FC00A2A970F3 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 448B85A144AB99471DCEFC89E19E53A9 /* Kingfisher.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/Kingfisher/Kingfisher-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Kingfisher/Kingfisher-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/Kingfisher/Kingfisher.modulemap"; - PRODUCT_MODULE_NAME = Kingfisher; - PRODUCT_NAME = Kingfisher; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.2; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - BFCB8E378A333A2F28E7F07BCAB093F5 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = C88A9D0635F895FCEB47731ED5E882D1 /* RxKeyboard.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/RxKeyboard/RxKeyboard-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/RxKeyboard/RxKeyboard-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/RxKeyboard/RxKeyboard.modulemap"; - PRODUCT_MODULE_NAME = RxKeyboard; - PRODUCT_NAME = RxKeyboard; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - C2CFC7748C23BB64CDFB0BF61326C0FF /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 448B85A144AB99471DCEFC89E19E53A9 /* Kingfisher.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/Kingfisher/Kingfisher-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Kingfisher/Kingfisher-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/Kingfisher/Kingfisher.modulemap"; - PRODUCT_MODULE_NAME = Kingfisher; - PRODUCT_NAME = Kingfisher; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.2; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - C829B538C83CD8FB7551A1DDF4A6F795 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = C7CAC5CD7E3F0AE161D4E799C5EF0911 /* RxAppState.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/RxAppState/RxAppState-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/RxAppState/RxAppState-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/RxAppState/RxAppState.modulemap"; - PRODUCT_MODULE_NAME = RxAppState; - PRODUCT_NAME = RxAppState; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - D520FBADF931418375C315BBB9D80C97 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = EE16D4631EEF6D753E6DC3C67AC58141 /* RxOptional.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/RxOptional/RxOptional-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/RxOptional/RxOptional-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/RxOptional/RxOptional.modulemap"; - PRODUCT_MODULE_NAME = RxOptional; - PRODUCT_NAME = RxOptional; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - D59DCCB0B3228CFE7455C640AEC2AEA6 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6F653373143C397FBB99062C270851CF /* RxSwift.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/RxSwift/RxSwift-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/RxSwift/RxSwift-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/RxSwift/RxSwift.modulemap"; - PRODUCT_MODULE_NAME = RxSwift; - PRODUCT_NAME = RxSwift; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - DA5C7D81F9158D3C0F223947D743019F /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = B7455D69DD418FEA2E81E6476BDE2B56 /* Then.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/Then/Then-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Then/Then-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/Then/Then.modulemap"; - PRODUCT_MODULE_NAME = Then; - PRODUCT_NAME = Then; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - E77FDF63F004F64DAE10028F3ACE6CAA /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = B7455D69DD418FEA2E81E6476BDE2B56 /* Then.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/Then/Then-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Then/Then-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/Then/Then.modulemap"; - PRODUCT_MODULE_NAME = Then; - PRODUCT_NAME = Then; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - ED7888FA6713EABBF66D26A8003AD1CA /* 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; - 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 = 13.0; - MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - PRODUCT_NAME = "$(TARGET_NAME)"; - STRIP_INSTALLED_PRODUCT = NO; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - SYMROOT = "${SRCROOT}/../build"; - }; - name = Debug; - }; - FAF65361CBB903E30D2C1863797253A9 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = CDE20025AF5A5BBB3C9D417E5A255D91 /* Toaster.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/Toaster/Toaster-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Toaster/Toaster-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/Toaster/Toaster.modulemap"; - PRODUCT_MODULE_NAME = Toaster; - PRODUCT_NAME = Toaster; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 03A244BE9DA27F0E875F6F1CF16FBDBC /* Build configuration list for PBXNativeTarget "Differentiator" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - BB757604A0F93EF3104B0089E4861F6F /* Debug */, - 4D2E95085ED87633548280225F595B2F /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 2F8ADFD7CBC21D23AE9204ED2714B8D2 /* Build configuration list for PBXNativeTarget "RxAppState" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - C829B538C83CD8FB7551A1DDF4A6F795 /* Debug */, - 35BD7170D76CF042114E28EAB08553CC /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 30CE4E970304C6DBD489BB56A5F013C5 /* Build configuration list for PBXNativeTarget "RxSwift" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - D59DCCB0B3228CFE7455C640AEC2AEA6 /* Debug */, - 0EEFB71F3C0D0BC75E62D1AF79C84C5C /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 31C2F67A24EFF2D5F6410E6A9D00BB2A /* Build configuration list for PBXNativeTarget "SnapKit" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 162C9D95BE60DFE5046151D5B9A3F433 /* Debug */, - 4347B62B850367357781887237E794E6 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - ED7888FA6713EABBF66D26A8003AD1CA /* Debug */, - 1422B121EAEAEA11307496903FA623C6 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 5E3DB09F3F274DD14217C14064B02C2B /* Build configuration list for PBXNativeTarget "Pods-BringMyOwnBeer🍺Tests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 39C5A4E709A008FD902E9AF787FBE62A /* Debug */, - 592F9B899060DCD12927FB89371BF78C /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 5EF9A37AA0AD78076171F51A66D0BDDC /* Build configuration list for PBXNativeTarget "RxBlocking" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 097D07CDBA3D9117BDA5FE9BEF67F0AE /* Debug */, - 56DDE1E9E0828D411EC4D80358AA3367 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 7975DE731E61F915096C31E290E8AE5B /* Build configuration list for PBXNativeTarget "Kingfisher" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - C2CFC7748C23BB64CDFB0BF61326C0FF /* Debug */, - BE3E1F8E194107E30897FC00A2A970F3 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 7F7D586D0C9967BE7BE79E98769B7FD9 /* Build configuration list for PBXNativeTarget "Toaster" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 0783C5877DED25B5711EE324AA6A6903 /* Debug */, - FAF65361CBB903E30D2C1863797253A9 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 9AC65E53333ACA93EEB1D8EBAB58CBB6 /* Build configuration list for PBXNativeTarget "Nimble" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - AB47C2AF5950D1E2F39CDBF789BD400B /* Debug */, - 435FEBAA4BD58A4EEF37A88786225C01 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 9B1FF1AC63E783EEE09FEBA08DA645C7 /* Build configuration list for PBXNativeTarget "RxOptional" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - B23B48E8687DBD10FBBFA091A684D5E8 /* Debug */, - D520FBADF931418375C315BBB9D80C97 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 9CD6D175E7F24C01C655061076EA67F7 /* Build configuration list for PBXNativeTarget "RxDataSources" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7E1177A0FE7A992E817B0973C50547EE /* Debug */, - 3DD9A1A7E5D80F4CA05BE29F67C6DBDD /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - A248458BDE951C5A1AEEFD5865838099 /* Build configuration list for PBXNativeTarget "Then" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - E77FDF63F004F64DAE10028F3ACE6CAA /* Debug */, - DA5C7D81F9158D3C0F223947D743019F /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - A482E8F0F5BEDCE177543007D23A5736 /* Build configuration list for PBXNativeTarget "Quick" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 5364331C7EC7463676B48302F9B260B8 /* Debug */, - B5073F252890243DACABDACE0A64235F /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - A69D6A4264F225C6E6D85B7802DBA096 /* Build configuration list for PBXNativeTarget "RxKeyboard" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 03CB415BD9F44C07677F930A78F6C25A /* Debug */, - BFCB8E378A333A2F28E7F07BCAB093F5 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - AA0C81850CC50D54468970BEDD4E848F /* Build configuration list for PBXNativeTarget "Pods-BringMyOwnBeer🍺" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 1A084EC3BE418D27C914689CB41071FD /* Debug */, - A42D926E1B0F1982D16C90B4CB7FCCAC /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - B067D99F24AB5BFA3DC447C8C11BEDFD /* Build configuration list for PBXNativeTarget "RxTest" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 667076A6E710A78685153C924A966723 /* Debug */, - B5DF75840C687FB6AB3709C3B3C8970D /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - B159FAEE9310DB71391EC5834F8A6018 /* Build configuration list for PBXNativeTarget "Pods-BringMyOwnBeer🍺UITests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - A10E2385B99F35EACB6A4A8AEACCCFF2 /* Debug */, - 85A7A821CAC43361523130693A44AC04 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - DE763D2CD62E45778BCDB89B90D2E290 /* Build configuration list for PBXNativeTarget "RxCocoa" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 85E222CA7E2EEACED15D01DE82AAEE97 /* Debug */, - AB68F51456260FC2F4C3638BF5CE3F13 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - E479750B29AEFA85D608C256D9CF262F /* Build configuration list for PBXNativeTarget "RxAtomic" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 271DD0BE6D4722512E19183835B23A45 /* Debug */, - BD8DCAA3B446903540E548FC831B57A1 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; -} diff --git a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/Differentiator.xcscheme b/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/Differentiator.xcscheme deleted file mode 100644 index c340c98..0000000 --- a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/Differentiator.xcscheme +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/Kingfisher.xcscheme b/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/Kingfisher.xcscheme deleted file mode 100644 index 32d098a..0000000 --- a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/Kingfisher.xcscheme +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/Pods-BringMyOwnBeer\360\237\215\272.xcscheme" "b/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/Pods-BringMyOwnBeer\360\237\215\272.xcscheme" deleted file mode 100644 index f30888e..0000000 --- "a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/Pods-BringMyOwnBeer\360\237\215\272.xcscheme" +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/Pods-BringMyOwnBeer\360\237\215\272Tests.xcscheme" "b/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/Pods-BringMyOwnBeer\360\237\215\272Tests.xcscheme" deleted file mode 100644 index c2bd288..0000000 --- "a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/Pods-BringMyOwnBeer\360\237\215\272Tests.xcscheme" +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/Pods-BringMyOwnBeer\360\237\215\272UITests.xcscheme" "b/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/Pods-BringMyOwnBeer\360\237\215\272UITests.xcscheme" deleted file mode 100644 index 5de67ad..0000000 --- "a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/Pods-BringMyOwnBeer\360\237\215\272UITests.xcscheme" +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/RxAppState.xcscheme b/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/RxAppState.xcscheme deleted file mode 100644 index 2518957..0000000 --- a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/RxAppState.xcscheme +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/RxAtomic.xcscheme b/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/RxAtomic.xcscheme deleted file mode 100644 index 2876cca..0000000 --- a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/RxAtomic.xcscheme +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/RxCocoa.xcscheme b/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/RxCocoa.xcscheme deleted file mode 100644 index 78c8608..0000000 --- a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/RxCocoa.xcscheme +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/RxDataSources.xcscheme b/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/RxDataSources.xcscheme deleted file mode 100644 index 0ca1bf3..0000000 --- a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/RxDataSources.xcscheme +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/RxKeyboard.xcscheme b/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/RxKeyboard.xcscheme deleted file mode 100644 index 33656d6..0000000 --- a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/RxKeyboard.xcscheme +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/RxOptional.xcscheme b/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/RxOptional.xcscheme deleted file mode 100644 index 8af5f98..0000000 --- a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/RxOptional.xcscheme +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/RxSwift.xcscheme b/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/RxSwift.xcscheme deleted file mode 100644 index 7b649f0..0000000 --- a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/RxSwift.xcscheme +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/SnapKit.xcscheme b/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/SnapKit.xcscheme deleted file mode 100644 index 54bc836..0000000 --- a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/SnapKit.xcscheme +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/Then.xcscheme b/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/Then.xcscheme deleted file mode 100644 index 4be5ebe..0000000 --- a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/Then.xcscheme +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/Toaster.xcscheme b/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/Toaster.xcscheme deleted file mode 100644 index 812ff6b..0000000 --- a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/Toaster.xcscheme +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/xcschememanagement.plist b/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/xcschememanagement.plist deleted file mode 100644 index 12aded5..0000000 --- a/Pods/Pods.xcodeproj/xcuserdata/boyoung.xcuserdatad/xcschemes/xcschememanagement.plist +++ /dev/null @@ -1,106 +0,0 @@ - - - - - SchemeUserState - - Differentiator.xcscheme - - isShown - - - Kingfisher.xcscheme - - isShown - - - Nimble.xcscheme - - isShown - - - Pods-BringMyOwnBeer🍺.xcscheme - - isShown - - - Pods-BringMyOwnBeer🍺Tests.xcscheme - - isShown - - - Pods-BringMyOwnBeer🍺UITests.xcscheme - - isShown - - - Quick.xcscheme - - isShown - - - RxAppState.xcscheme - - isShown - - - RxAtomic.xcscheme - - isShown - - - RxBlocking.xcscheme - - isShown - - - RxCocoa.xcscheme - - isShown - - - RxDataSources.xcscheme - - isShown - - - RxKeyboard.xcscheme - - isShown - - - RxOptional.xcscheme - - isShown - - - RxSwift.xcscheme - - isShown - - - RxTest.xcscheme - - isShown - - - SnapKit.xcscheme - - isShown - - - Then.xcscheme - - isShown - - - Toaster.xcscheme - - isShown - - - - SuppressBuildableAutocreation - - - diff --git a/Pods/Quick/LICENSE b/Pods/Quick/LICENSE deleted file mode 100644 index e900165..0000000 --- a/Pods/Quick/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2014, Quick Team - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/Pods/Quick/README.md b/Pods/Quick/README.md deleted file mode 100644 index e6dc0ad..0000000 --- a/Pods/Quick/README.md +++ /dev/null @@ -1,88 +0,0 @@ -![](http://f.cl.ly/items/0r1E192C1R0b2g2Q3h2w/QuickLogo_Color.png) - -[![Build Status](https://travis-ci.org/Quick/Quick.svg?branch=master)](https://travis-ci.org/Quick/Quick) -[![CocoaPods](https://img.shields.io/cocoapods/v/Quick.svg)](https://cocoapods.org/pods/Quick) -[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) -[![Platforms](https://img.shields.io/cocoapods/p/Quick.svg)](https://cocoapods.org/pods/Quick) - -Quick is a behavior-driven development framework for Swift and Objective-C. -Inspired by [RSpec](https://github.com/rspec/rspec), [Specta](https://github.com/specta/specta), and [Ginkgo](https://github.com/onsi/ginkgo). - -![](https://raw.githubusercontent.com/Quick/Assets/master/Screenshots/QuickSpec%20screenshot.png) - -```swift -// Swift - -import Quick -import Nimble - -class TableOfContentsSpec: QuickSpec { - override func spec() { - describe("the 'Documentation' directory") { - it("has everything you need to get started") { - let sections = Directory("Documentation").sections - expect(sections).to(contain("Organized Tests with Quick Examples and Example Groups")) - expect(sections).to(contain("Installing Quick")) - } - - context("if it doesn't have what you're looking for") { - it("needs to be updated") { - let you = You(awesome: true) - expect{you.submittedAnIssue}.toEventually(beTruthy()) - } - } - } - } -} -``` -#### Nimble -Quick comes together with [Nimble](https://github.com/Quick/Nimble) — a matcher framework for your tests. You can learn why `XCTAssert()` statements make your expectations unclear and how to fix that using Nimble assertions [here](./Documentation/en-us/NimbleAssertions.md). - -## Swift Version - -Certain versions of Quick and Nimble only support certain versions of Swift. Depending on which version of Swift your project uses, you should use specific versions of Quick and Nimble. Use the table below to determine which versions of Quick and Nimble are compatible with your project. - -|Swift version |Quick version |Nimble version | -|:--------------------|:---------------|:--------------| -|Swift 3 |v1.0.0 or later |v5.0.0 or later| -|Swift 2.2 / Swift 2.3|v0.9.3 |v4.1.0 | - -## Documentation - -All documentation can be found in the [Documentation folder](./Documentation), including [detailed installation instructions](./Documentation/en-us/InstallingQuick.md) for CocoaPods, Carthage, Git submodules, and more. For example, you can install Quick and [Nimble](https://github.com/Quick/Nimble) using CocoaPods by adding the following to your Podfile: - -```rb -# Podfile - -use_frameworks! - -target "MyApp" do - # Normal libraries - - abstract_target 'Tests' do - inherit! :search_paths - target "MyAppTests" - target "MyAppUITests" - - pod 'Quick' - pod 'Nimble' - end -end -``` - -## Projects using Quick - -Over ten-thousand apps use either Quick and Nimble however, as they are not included in the app binary, neither appear in “Top Used Libraries” blog posts. Therefore, it would be greatly appreciated to remind contributors that their efforts are valued by compiling a list of organizations and projects that use them. - -Does your organization or project use Quick and Nimble? If yes, [please add your project to the list](https://github.com/Quick/Quick/wiki/Projects-using-Quick). - -## Who uses Quick - -Similar to projects using Quick, it would be nice to hear why people use Quick and Nimble. Are there features you love? Are there features that are just okay? Are there some features we have that no one uses? - -Have something positive to say about Quick (or Nimble)? If yes, [provide a testimonial here](https://github.com/Quick/Quick/wiki/Who-uses-Quick). - - -## License - -Apache 2.0 license. See the [`LICENSE`](LICENSE) file for details. diff --git a/Pods/Quick/Sources/Quick/Behavior.swift b/Pods/Quick/Sources/Quick/Behavior.swift deleted file mode 100644 index 7dfefac..0000000 --- a/Pods/Quick/Sources/Quick/Behavior.swift +++ /dev/null @@ -1,17 +0,0 @@ -/** - A `Behavior` encapsulates a set of examples that can be re-used in several locations using the `itBehavesLike` function with a context instance of the generic type. - */ - -open class Behavior { - - public static var name: String { return String(describing: self) } - /** - override this method in your behavior to define a set of reusable examples. - - This behaves just like an example group defines using `describe` or `context`--it may contain any number of `beforeEach` - and `afterEach` closures, as well as any number of examples (defined using `it`). - - - parameter aContext: A closure that, when evaluated, returns a `Context` instance that provide the information on the subject. - */ - open class func spec(_ aContext: @escaping () -> Context) {} -} diff --git a/Pods/Quick/Sources/Quick/Callsite.swift b/Pods/Quick/Sources/Quick/Callsite.swift deleted file mode 100644 index f5e3711..0000000 --- a/Pods/Quick/Sources/Quick/Callsite.swift +++ /dev/null @@ -1,45 +0,0 @@ -import Foundation - -// `#if swift(>=3.2) && (os(macOS) || os(iOS) || os(tvOS) || os(watchOS)) && !SWIFT_PACKAGE` -// does not work as expected. -#if swift(>=3.2) - #if (os(macOS) || os(iOS) || os(tvOS) || os(watchOS)) && !SWIFT_PACKAGE - @objcMembers - public class _CallsiteBase: NSObject {} - #else - public class _CallsiteBase: NSObject {} - #endif -#else -public class _CallsiteBase: NSObject {} -#endif - -/** - An object encapsulating the file and line number at which - a particular example is defined. -*/ -final public class Callsite: _CallsiteBase { - /** - The absolute path of the file in which an example is defined. - */ - public let file: String - - /** - The line number on which an example is defined. - */ - public let line: UInt - - internal init(file: String, line: UInt) { - self.file = file - self.line = line - } -} - -extension Callsite { - /** - Returns a boolean indicating whether two Callsite objects are equal. - If two callsites are in the same file and on the same line, they must be equal. - */ - @nonobjc public static func == (lhs: Callsite, rhs: Callsite) -> Bool { - return lhs.file == rhs.file && lhs.line == rhs.line - } -} diff --git a/Pods/Quick/Sources/Quick/Configuration/Configuration.swift b/Pods/Quick/Sources/Quick/Configuration/Configuration.swift deleted file mode 100644 index dbb95f1..0000000 --- a/Pods/Quick/Sources/Quick/Configuration/Configuration.swift +++ /dev/null @@ -1,161 +0,0 @@ -import Foundation - -/** - A closure that temporarily exposes a Configuration object within - the scope of the closure. -*/ -public typealias QuickConfigurer = (_ configuration: Configuration) -> Void - -/** - A closure that, given metadata about an example, returns a boolean value - indicating whether that example should be run. -*/ -public typealias ExampleFilter = (_ example: Example) -> Bool - -/** - A configuration encapsulates various options you can use - to configure Quick's behavior. -*/ -final public class Configuration: NSObject { - internal let exampleHooks = ExampleHooks() - internal let suiteHooks = SuiteHooks() - internal var exclusionFilters: [ExampleFilter] = [ { example in - if let pending = example.filterFlags[Filter.pending] { - return pending - } else { - return false - } - }] - internal var inclusionFilters: [ExampleFilter] = [ { example in - if let focused = example.filterFlags[Filter.focused] { - return focused - } else { - return false - } - }] - - /** - Run all examples if none match the configured filters. True by default. - */ - public var runAllWhenEverythingFiltered = true - - /** - Registers an inclusion filter. - - All examples are filtered using all inclusion filters. - The remaining examples are run. If no examples remain, all examples are run. - - - parameter filter: A filter that, given an example, returns a value indicating - whether that example should be included in the examples - that are run. - */ - public func include(_ filter: @escaping ExampleFilter) { - inclusionFilters.append(filter) - } - - /** - Registers an exclusion filter. - - All examples that remain after being filtered by the inclusion filters are - then filtered via all exclusion filters. - - - parameter filter: A filter that, given an example, returns a value indicating - whether that example should be excluded from the examples - that are run. - */ - public func exclude(_ filter: @escaping ExampleFilter) { - exclusionFilters.append(filter) - } - - /** - Identical to Quick.Configuration.beforeEach, except the closure is - provided with metadata on the example that the closure is being run - prior to. - */ -#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) - @objc(beforeEachWithMetadata:) - public func beforeEach(_ closure: @escaping BeforeExampleWithMetadataClosure) { - exampleHooks.appendBefore(closure) - } -#else - public func beforeEach(_ closure: @escaping BeforeExampleWithMetadataClosure) { - exampleHooks.appendBefore(closure) - } -#endif - - /** - Like Quick.DSL.beforeEach, this configures Quick to execute the - given closure before each example that is run. The closure - passed to this method is executed before each example Quick runs, - globally across the test suite. You may call this method multiple - times across mulitple +[QuickConfigure configure:] methods in order - to define several closures to run before each example. - - Note that, since Quick makes no guarantee as to the order in which - +[QuickConfiguration configure:] methods are evaluated, there is no - guarantee as to the order in which beforeEach closures are evaluated - either. Mulitple beforeEach defined on a single configuration, however, - will be executed in the order they're defined. - - - parameter closure: The closure to be executed before each example - in the test suite. - */ - public func beforeEach(_ closure: @escaping BeforeExampleClosure) { - exampleHooks.appendBefore(closure) - } - - /** - Identical to Quick.Configuration.afterEach, except the closure - is provided with metadata on the example that the closure is being - run after. - */ -#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) - @objc(afterEachWithMetadata:) - public func afterEach(_ closure: @escaping AfterExampleWithMetadataClosure) { - exampleHooks.appendAfter(closure) - } -#else - public func afterEach(_ closure: @escaping AfterExampleWithMetadataClosure) { - exampleHooks.appendAfter(closure) - } -#endif - - /** - Like Quick.DSL.afterEach, this configures Quick to execute the - given closure after each example that is run. The closure - passed to this method is executed after each example Quick runs, - globally across the test suite. You may call this method multiple - times across mulitple +[QuickConfigure configure:] methods in order - to define several closures to run after each example. - - Note that, since Quick makes no guarantee as to the order in which - +[QuickConfiguration configure:] methods are evaluated, there is no - guarantee as to the order in which afterEach closures are evaluated - either. Mulitple afterEach defined on a single configuration, however, - will be executed in the order they're defined. - - - parameter closure: The closure to be executed before each example - in the test suite. - */ - public func afterEach(_ closure: @escaping AfterExampleClosure) { - exampleHooks.appendAfter(closure) - } - - /** - Like Quick.DSL.beforeSuite, this configures Quick to execute - the given closure prior to any and all examples that are run. - The two methods are functionally equivalent. - */ - public func beforeSuite(_ closure: @escaping BeforeSuiteClosure) { - suiteHooks.appendBefore(closure) - } - - /** - Like Quick.DSL.afterSuite, this configures Quick to execute - the given closure after all examples have been run. - The two methods are functionally equivalent. - */ - public func afterSuite(_ closure: @escaping AfterSuiteClosure) { - suiteHooks.appendAfter(closure) - } -} diff --git a/Pods/Quick/Sources/Quick/DSL/DSL.swift b/Pods/Quick/Sources/Quick/DSL/DSL.swift deleted file mode 100644 index 94f20c5..0000000 --- a/Pods/Quick/Sources/Quick/DSL/DSL.swift +++ /dev/null @@ -1,271 +0,0 @@ -/** - Defines a closure to be run prior to any examples in the test suite. - You may define an unlimited number of these closures, but there is no - guarantee as to the order in which they're run. - - If the test suite crashes before the first example is run, this closure - will not be executed. - - - parameter closure: The closure to be run prior to any examples in the test suite. -*/ -public func beforeSuite(_ closure: @escaping BeforeSuiteClosure) { - World.sharedWorld.beforeSuite(closure) -} - -/** - Defines a closure to be run after all of the examples in the test suite. - You may define an unlimited number of these closures, but there is no - guarantee as to the order in which they're run. - - If the test suite crashes before all examples are run, this closure - will not be executed. - - - parameter closure: The closure to be run after all of the examples in the test suite. -*/ -public func afterSuite(_ closure: @escaping AfterSuiteClosure) { - World.sharedWorld.afterSuite(closure) -} - -/** - Defines a group of shared examples. These examples can be re-used in several locations - by using the `itBehavesLike` function. - - - parameter name: The name of the shared example group. This must be unique across all shared example - groups defined in a test suite. - - parameter closure: A closure containing the examples. This behaves just like an example group defined - using `describe` or `context`--the closure may contain any number of `beforeEach` - and `afterEach` closures, as well as any number of examples (defined using `it`). -*/ -public func sharedExamples(_ name: String, closure: @escaping () -> Void) { - World.sharedWorld.sharedExamples(name) { _ in closure() } -} - -/** - Defines a group of shared examples. These examples can be re-used in several locations - by using the `itBehavesLike` function. - - - parameter name: The name of the shared example group. This must be unique across all shared example - groups defined in a test suite. - - parameter closure: A closure containing the examples. This behaves just like an example group defined - using `describe` or `context`--the closure may contain any number of `beforeEach` - and `afterEach` closures, as well as any number of examples (defined using `it`). - - The closure takes a SharedExampleContext as an argument. This context is a function - that can be executed to retrieve parameters passed in via an `itBehavesLike` function. -*/ -public func sharedExamples(_ name: String, closure: @escaping SharedExampleClosure) { - World.sharedWorld.sharedExamples(name, closure: closure) -} - -/** - Defines an example group. Example groups are logical groupings of examples. - Example groups can share setup and teardown code. - - - parameter description: An arbitrary string describing the example group. - - parameter closure: A closure that can contain other examples. - - parameter flags: A mapping of string keys to booleans that can be used to filter examples or example groups. -*/ -public func describe(_ description: String, flags: FilterFlags = [:], closure: () -> Void) { - World.sharedWorld.describe(description, flags: flags, closure: closure) -} - -/** - Defines an example group. Equivalent to `describe`. -*/ -public func context(_ description: String, flags: FilterFlags = [:], closure: () -> Void) { - World.sharedWorld.context(description, flags: flags, closure: closure) -} - -/** - Defines a closure to be run prior to each example in the current example - group. This closure is not run for pending or otherwise disabled examples. - An example group may contain an unlimited number of beforeEach. They'll be - run in the order they're defined, but you shouldn't rely on that behavior. - - - parameter closure: The closure to be run prior to each example. -*/ -public func beforeEach(_ closure: @escaping BeforeExampleClosure) { - World.sharedWorld.beforeEach(closure) -} - -/** - Identical to Quick.DSL.beforeEach, except the closure is provided with - metadata on the example that the closure is being run prior to. -*/ -public func beforeEach(_ closure: @escaping BeforeExampleWithMetadataClosure) { - World.sharedWorld.beforeEach(closure: closure) -} - -/** - Defines a closure to be run after each example in the current example - group. This closure is not run for pending or otherwise disabled examples. - An example group may contain an unlimited number of afterEach. They'll be - run in the order they're defined, but you shouldn't rely on that behavior. - - - parameter closure: The closure to be run after each example. -*/ -public func afterEach(_ closure: @escaping AfterExampleClosure) { - World.sharedWorld.afterEach(closure) -} - -/** - Identical to Quick.DSL.afterEach, except the closure is provided with - metadata on the example that the closure is being run after. -*/ -public func afterEach(_ closure: @escaping AfterExampleWithMetadataClosure) { - World.sharedWorld.afterEach(closure: closure) -} - -/** - Defines an example. Examples use assertions to demonstrate how code should - behave. These are like "tests" in XCTest. - - - parameter description: An arbitrary string describing what the example is meant to specify. - - parameter closure: A closure that can contain assertions. - - parameter flags: A mapping of string keys to booleans that can be used to filter examples or example groups. - Empty by default. - - parameter file: The absolute path to the file containing the example. A sensible default is provided. - - parameter line: The line containing the example. A sensible default is provided. -*/ -public func it(_ description: String, flags: FilterFlags = [:], file: String = #file, line: UInt = #line, closure: @escaping () -> Void) { - World.sharedWorld.it(description, flags: flags, file: file, line: line, closure: closure) -} - -/** - Inserts the examples defined using a `sharedExamples` function into the current example group. - The shared examples are executed at this location, as if they were written out manually. - - - parameter name: The name of the shared examples group to be executed. This must be identical to the - name of a shared examples group defined using `sharedExamples`. If there are no shared - examples that match the name given, an exception is thrown and the test suite will crash. - - parameter flags: A mapping of string keys to booleans that can be used to filter examples or example groups. - Empty by default. - - parameter file: The absolute path to the file containing the current example group. A sensible default is provided. - - parameter line: The line containing the current example group. A sensible default is provided. -*/ -public func itBehavesLike(_ name: String, flags: FilterFlags = [:], file: String = #file, line: UInt = #line) { - itBehavesLike(name, flags: flags, file: file, line: line, sharedExampleContext: { return [:] }) -} - -/** - Inserts the examples defined using a `sharedExamples` function into the current example group. - The shared examples are executed at this location, as if they were written out manually. - This function also passes those shared examples a context that can be evaluated to give the shared - examples extra information on the subject of the example. - - - parameter name: The name of the shared examples group to be executed. This must be identical to the - name of a shared examples group defined using `sharedExamples`. If there are no shared - examples that match the name given, an exception is thrown and the test suite will crash. - - parameter sharedExampleContext: A closure that, when evaluated, returns key-value pairs that provide the - shared examples with extra information on the subject of the example. - - parameter flags: A mapping of string keys to booleans that can be used to filter examples or example groups. - Empty by default. - - parameter file: The absolute path to the file containing the current example group. A sensible default is provided. - - parameter line: The line containing the current example group. A sensible default is provided. -*/ -public func itBehavesLike(_ name: String, flags: FilterFlags = [:], file: String = #file, line: UInt = #line, sharedExampleContext: @escaping SharedExampleContext) { - World.sharedWorld.itBehavesLike(name, sharedExampleContext: sharedExampleContext, flags: flags, file: file, line: line) -} - -/** - Inserts the examples defined using a `Behavior` into the current example group. - The shared examples are executed at this location, as if they were written out manually. - This function also passes a strongly-typed context that can be evaluated to give the shared examples extra information on the subject of the example. - - - parameter behavior: The type of `Behavior` class defining the example group to be executed. - - parameter context: A closure that, when evaluated, returns an instance of `Behavior`'s context type to provide its example group with extra information on the subject of the example. - - parameter flags: A mapping of string keys to booleans that can be used to filter examples or example groups. - Empty by default. - - parameter file: The absolute path to the file containing the current example group. A sensible default is provided. - - parameter line: The line containing the current example group. A sensible default is provided. - */ -public func itBehavesLike(_ behavior: Behavior.Type, flags: FilterFlags = [:], file: String = #file, line: UInt = #line, context: @escaping () -> C) { - World.sharedWorld.itBehavesLike(behavior, context: context, flags: flags, file: file, line: line) -} - -/** - Defines an example or example group that should not be executed. Use `pending` to temporarily disable - examples or groups that should not be run yet. - - - parameter description: An arbitrary string describing the example or example group. - - parameter closure: A closure that will not be evaluated. -*/ -public func pending(_ description: String, closure: () -> Void) { - World.sharedWorld.pending(description, closure: closure) -} - -/** - Use this to quickly mark a `describe` closure as pending. - This disables all examples within the closure. -*/ -public func xdescribe(_ description: String, flags: FilterFlags, closure: () -> Void) { - World.sharedWorld.xdescribe(description, flags: flags, closure: closure) -} - -/** - Use this to quickly mark a `context` closure as pending. - This disables all examples within the closure. -*/ -public func xcontext(_ description: String, flags: FilterFlags, closure: () -> Void) { - xdescribe(description, flags: flags, closure: closure) -} - -/** - Use this to quickly mark an `it` closure as pending. - This disables the example and ensures the code within the closure is never run. -*/ -public func xit(_ description: String, flags: FilterFlags = [:], file: String = #file, line: UInt = #line, closure: @escaping () -> Void) { - World.sharedWorld.xit(description, flags: flags, file: file, line: line, closure: closure) -} - -/** - Use this to quicklu mark an `itBehavesLike` closure as pending. - This disables the example group defined by this behavior and ensures the code within is never run. -*/ -public func xitBehavesLike(_ behavior: Behavior.Type, flags: FilterFlags = [:], file: String = #file, line: UInt = #line, context: @escaping () -> C) { - World.sharedWorld.xitBehavesLike(behavior, context: context, flags: flags, file: file, line: line) -} -/** - Use this to quickly focus a `describe` closure, focusing the examples in the closure. - If any examples in the test suite are focused, only those examples are executed. - This trumps any explicitly focused or unfocused examples within the closure--they are all treated as focused. -*/ -public func fdescribe(_ description: String, flags: FilterFlags = [:], closure: () -> Void) { - World.sharedWorld.fdescribe(description, flags: flags, closure: closure) -} - -/** - Use this to quickly focus a `context` closure. Equivalent to `fdescribe`. -*/ -public func fcontext(_ description: String, flags: FilterFlags = [:], closure: () -> Void) { - fdescribe(description, flags: flags, closure: closure) -} - -/** - Use this to quickly focus an `it` closure, focusing the example. - If any examples in the test suite are focused, only those examples are executed. -*/ -public func fit(_ description: String, flags: FilterFlags = [:], file: String = #file, line: UInt = #line, closure: @escaping () -> Void) { - World.sharedWorld.fit(description, flags: flags, file: file, line: line, closure: closure) -} - -/** - Use this to quickly focus an `itBehavesLike` closure. -*/ -public func fitBehavesLike(_ name: String, flags: FilterFlags = [:], file: String = #file, line: UInt = #line) { - fitBehavesLike(name, flags: flags, file: file, line: line, sharedExampleContext: { return [:] }) -} - -/** - Use this to quickly focus an `itBehavesLike` closure. -*/ -public func fitBehavesLike(_ name: String, flags: FilterFlags = [:], file: String = #file, line: UInt = #line, sharedExampleContext: @escaping SharedExampleContext) { - World.sharedWorld.fitBehavesLike(name, sharedExampleContext: sharedExampleContext, flags: flags, file: file, line: line) -} - -/** - Use this to quickly focus on `itBehavesLike` closure. - */ -public func fitBehavesLike(_ behavior: Behavior.Type, flags: FilterFlags = [:], file: String = #file, line: UInt = #line, context: @escaping () -> C) { - World.sharedWorld.fitBehavesLike(behavior, context: context, flags: flags, file: file, line: line) -} diff --git a/Pods/Quick/Sources/Quick/DSL/World+DSL.swift b/Pods/Quick/Sources/Quick/DSL/World+DSL.swift deleted file mode 100644 index 942c2e6..0000000 --- a/Pods/Quick/Sources/Quick/DSL/World+DSL.swift +++ /dev/null @@ -1,210 +0,0 @@ -import Foundation - -/** - Adds methods to World to support top-level DSL functions (Swift) and - macros (Objective-C). These functions map directly to the DSL that test - writers use in their specs. -*/ -extension World { - internal func beforeSuite(_ closure: @escaping BeforeSuiteClosure) { - suiteHooks.appendBefore(closure) - } - - internal func afterSuite(_ closure: @escaping AfterSuiteClosure) { - suiteHooks.appendAfter(closure) - } - - internal func sharedExamples(_ name: String, closure: @escaping SharedExampleClosure) { - registerSharedExample(name, closure: closure) - } - - internal func describe(_ description: String, flags: FilterFlags, closure: () -> Void) { - guard currentExampleMetadata == nil else { - raiseError("'describe' cannot be used inside '\(currentPhase)', 'describe' may only be used inside 'context' or 'describe'. ") - } - guard currentExampleGroup != nil else { - raiseError("Error: example group was not created by its parent QuickSpec spec. Check that describe() or context() was used in QuickSpec.spec() and not a more general context (i.e. an XCTestCase test)") - } - let group = ExampleGroup(description: description, flags: flags) - currentExampleGroup.appendExampleGroup(group) - performWithCurrentExampleGroup(group, closure: closure) - } - - internal func context(_ description: String, flags: FilterFlags, closure: () -> Void) { - guard currentExampleMetadata == nil else { - raiseError("'context' cannot be used inside '\(currentPhase)', 'context' may only be used inside 'context' or 'describe'. ") - } - self.describe(description, flags: flags, closure: closure) - } - - internal func fdescribe(_ description: String, flags: FilterFlags, closure: () -> Void) { - var focusedFlags = flags - focusedFlags[Filter.focused] = true - self.describe(description, flags: focusedFlags, closure: closure) - } - - internal func xdescribe(_ description: String, flags: FilterFlags, closure: () -> Void) { - var pendingFlags = flags - pendingFlags[Filter.pending] = true - self.describe(description, flags: pendingFlags, closure: closure) - } - - internal func beforeEach(_ closure: @escaping BeforeExampleClosure) { - guard currentExampleMetadata == nil else { - raiseError("'beforeEach' cannot be used inside '\(currentPhase)', 'beforeEach' may only be used inside 'context' or 'describe'. ") - } - currentExampleGroup.hooks.appendBefore(closure) - } - -#if (os(macOS) || os(iOS) || os(tvOS) || os(watchOS)) && !SWIFT_PACKAGE - @objc(beforeEachWithMetadata:) - internal func beforeEach(closure: @escaping BeforeExampleWithMetadataClosure) { - currentExampleGroup.hooks.appendBefore(closure) - } -#else - internal func beforeEach(closure: @escaping BeforeExampleWithMetadataClosure) { - currentExampleGroup.hooks.appendBefore(closure) - } -#endif - - internal func afterEach(_ closure: @escaping AfterExampleClosure) { - guard currentExampleMetadata == nil else { - raiseError("'afterEach' cannot be used inside '\(currentPhase)', 'afterEach' may only be used inside 'context' or 'describe'. ") - } - currentExampleGroup.hooks.appendAfter(closure) - } - -#if (os(macOS) || os(iOS) || os(tvOS) || os(watchOS)) && !SWIFT_PACKAGE - @objc(afterEachWithMetadata:) - internal func afterEach(closure: @escaping AfterExampleWithMetadataClosure) { - currentExampleGroup.hooks.appendAfter(closure) - } -#else - internal func afterEach(closure: @escaping AfterExampleWithMetadataClosure) { - currentExampleGroup.hooks.appendAfter(closure) - } -#endif - - @nonobjc - internal func it(_ description: String, flags: FilterFlags, file: String, line: UInt, closure: @escaping () -> Void) { - if beforesCurrentlyExecuting { - raiseError("'it' cannot be used inside 'beforeEach', 'it' may only be used inside 'context' or 'describe'. ") - } - if aftersCurrentlyExecuting { - raiseError("'it' cannot be used inside 'afterEach', 'it' may only be used inside 'context' or 'describe'. ") - } - guard currentExampleMetadata == nil else { - raiseError("'it' cannot be used inside 'it', 'it' may only be used inside 'context' or 'describe'. ") - } - let callsite = Callsite(file: file, line: line) - let example = Example(description: description, callsite: callsite, flags: flags, closure: closure) - currentExampleGroup.appendExample(example) - } - - @nonobjc - internal func fit(_ description: String, flags: FilterFlags, file: String, line: UInt, closure: @escaping () -> Void) { - var focusedFlags = flags - focusedFlags[Filter.focused] = true - self.it(description, flags: focusedFlags, file: file, line: line, closure: closure) - } - - @nonobjc - internal func xit(_ description: String, flags: FilterFlags, file: String, line: UInt, closure: @escaping () -> Void) { - var pendingFlags = flags - pendingFlags[Filter.pending] = true - self.it(description, flags: pendingFlags, file: file, line: line, closure: closure) - } - - @nonobjc - internal func itBehavesLike(_ name: String, sharedExampleContext: @escaping SharedExampleContext, flags: FilterFlags, file: String, line: UInt) { - guard currentExampleMetadata == nil else { - raiseError("'itBehavesLike' cannot be used inside '\(currentPhase)', 'itBehavesLike' may only be used inside 'context' or 'describe'. ") - } - let callsite = Callsite(file: file, line: line) - let closure = World.sharedWorld.sharedExample(name) - - let group = ExampleGroup(description: name, flags: flags) - currentExampleGroup.appendExampleGroup(group) - performWithCurrentExampleGroup(group) { - closure(sharedExampleContext) - } - - group.walkDownExamples { (example: Example) in - example.isSharedExample = true - example.callsite = callsite - } - } - - @nonobjc - internal func fitBehavesLike(_ name: String, sharedExampleContext: @escaping SharedExampleContext, flags: FilterFlags, file: String, line: UInt) { - var focusedFlags = flags - focusedFlags[Filter.focused] = true - self.itBehavesLike(name, sharedExampleContext: sharedExampleContext, flags: focusedFlags, file: file, line: line) - } - - internal func itBehavesLike(_ behavior: Behavior.Type, context: @escaping () -> C, flags: FilterFlags, file: String, line: UInt) { - guard currentExampleMetadata == nil else { - raiseError("'itBehavesLike' cannot be used inside '\(currentPhase)', 'itBehavesLike' may only be used inside 'context' or 'describe'. ") - } - let callsite = Callsite(file: file, line: line) - let closure = behavior.spec - let group = ExampleGroup(description: behavior.name, flags: flags) - currentExampleGroup.appendExampleGroup(group) - performWithCurrentExampleGroup(group) { - closure(context) - } - - group.walkDownExamples { (example: Example) in - example.isSharedExample = true - example.callsite = callsite - } - } - - internal func fitBehavesLike(_ behavior: Behavior.Type, context: @escaping () -> C, flags: FilterFlags, file: String, line: UInt) { - var focusedFlags = flags - focusedFlags[Filter.focused] = true - self.itBehavesLike(behavior, context: context, flags: focusedFlags, file: file, line: line) - } - - internal func xitBehavesLike(_ behavior: Behavior.Type, context: @escaping () -> C, flags: FilterFlags, file: String, line: UInt) { - var pendingFlags = flags - pendingFlags[Filter.pending] = true - self.itBehavesLike(behavior, context: context, flags: pendingFlags, file: file, line: line) - } - -#if (os(macOS) || os(iOS) || os(tvOS) || os(watchOS)) && !SWIFT_PACKAGE - @objc(itWithDescription:flags:file:line:closure:) - internal func objc_it(_ description: String, flags: FilterFlags, file: String, line: UInt, closure: @escaping () -> Void) { - it(description, flags: flags, file: file, line: line, closure: closure) - } - - @objc(fitWithDescription:flags:file:line:closure:) - internal func objc_fit(_ description: String, flags: FilterFlags, file: String, line: UInt, closure: @escaping () -> Void) { - fit(description, flags: flags, file: file, line: line, closure: closure) - } - - @objc(xitWithDescription:flags:file:line:closure:) - internal func objc_xit(_ description: String, flags: FilterFlags, file: String, line: UInt, closure: @escaping () -> Void) { - xit(description, flags: flags, file: file, line: line, closure: closure) - } - - @objc(itBehavesLikeSharedExampleNamed:sharedExampleContext:flags:file:line:) - internal func objc_itBehavesLike(_ name: String, sharedExampleContext: @escaping SharedExampleContext, flags: FilterFlags, file: String, line: UInt) { - itBehavesLike(name, sharedExampleContext: sharedExampleContext, flags: flags, file: file, line: line) - } -#endif - - internal func pending(_ description: String, closure: () -> Void) { - print("Pending: \(description)") - } - - private var currentPhase: String { - if beforesCurrentlyExecuting { - return "beforeEach" - } else if aftersCurrentlyExecuting { - return "afterEach" - } - - return "it" - } -} diff --git a/Pods/Quick/Sources/Quick/ErrorUtility.swift b/Pods/Quick/Sources/Quick/ErrorUtility.swift deleted file mode 100644 index 155fefd..0000000 --- a/Pods/Quick/Sources/Quick/ErrorUtility.swift +++ /dev/null @@ -1,10 +0,0 @@ -import Foundation - -internal func raiseError(_ message: String) -> Never { -#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) - NSException(name: .internalInconsistencyException, reason: message, userInfo: nil).raise() -#endif - - // This won't be reached when ObjC is available and the exception above is raisd - fatalError(message) -} diff --git a/Pods/Quick/Sources/Quick/Example.swift b/Pods/Quick/Sources/Quick/Example.swift deleted file mode 100644 index cf7b4a3..0000000 --- a/Pods/Quick/Sources/Quick/Example.swift +++ /dev/null @@ -1,134 +0,0 @@ -import Foundation - -private var numberOfExamplesRun = 0 -private var numberOfIncludedExamples = 0 - -// `#if swift(>=3.2) && (os(macOS) || os(iOS) || os(tvOS) || os(watchOS)) && !SWIFT_PACKAGE` -// does not work as expected. -#if swift(>=3.2) - #if (os(macOS) || os(iOS) || os(tvOS) || os(watchOS)) && !SWIFT_PACKAGE - @objcMembers - public class _ExampleBase: NSObject {} - #else - public class _ExampleBase: NSObject {} - #endif -#else -public class _ExampleBase: NSObject {} -#endif - -/** - Examples, defined with the `it` function, use assertions to - demonstrate how code should behave. These are like "tests" in XCTest. -*/ -final public class Example: _ExampleBase { - /** - A boolean indicating whether the example is a shared example; - i.e.: whether it is an example defined with `itBehavesLike`. - */ - public var isSharedExample = false - - /** - The site at which the example is defined. - This must be set correctly in order for Xcode to highlight - the correct line in red when reporting a failure. - */ - public var callsite: Callsite - - weak internal var group: ExampleGroup? - - private let internalDescription: String - private let closure: () -> Void - private let flags: FilterFlags - - internal init(description: String, callsite: Callsite, flags: FilterFlags, closure: @escaping () -> Void) { - self.internalDescription = description - self.closure = closure - self.callsite = callsite - self.flags = flags - } - - public override var description: String { - return internalDescription - } - - /** - The example name. A name is a concatenation of the name of - the example group the example belongs to, followed by the - description of the example itself. - - The example name is used to generate a test method selector - to be displayed in Xcode's test navigator. - */ - public var name: String { - guard let groupName = group?.name else { return description } - return "\(groupName), \(description)" - } - - /** - Executes the example closure, as well as all before and after - closures defined in the its surrounding example groups. - */ - public func run() { - let world = World.sharedWorld - - if numberOfIncludedExamples == 0 { - numberOfIncludedExamples = world.includedExampleCount - } - - if numberOfExamplesRun == 0 { - world.suiteHooks.executeBefores() - } - - let exampleMetadata = ExampleMetadata(example: self, exampleIndex: numberOfExamplesRun) - world.currentExampleMetadata = exampleMetadata - defer { - world.currentExampleMetadata = nil - } - - world.exampleHooks.executeBefores(exampleMetadata) - group!.phase = .beforesExecuting - for before in group!.befores { - before(exampleMetadata) - } - group!.phase = .beforesFinished - - closure() - - group!.phase = .aftersExecuting - for after in group!.afters { - after(exampleMetadata) - } - group!.phase = .aftersFinished - world.exampleHooks.executeAfters(exampleMetadata) - - numberOfExamplesRun += 1 - - if !world.isRunningAdditionalSuites && numberOfExamplesRun >= numberOfIncludedExamples { - world.suiteHooks.executeAfters() - } - } - - /** - Evaluates the filter flags set on this example and on the example groups - this example belongs to. Flags set on the example are trumped by flags on - the example group it belongs to. Flags on inner example groups are trumped - by flags on outer example groups. - */ - internal var filterFlags: FilterFlags { - var aggregateFlags = flags - for (key, value) in group!.filterFlags { - aggregateFlags[key] = value - } - return aggregateFlags - } -} - -extension Example { - /** - Returns a boolean indicating whether two Example objects are equal. - If two examples are defined at the exact same callsite, they must be equal. - */ - @nonobjc public static func == (lhs: Example, rhs: Example) -> Bool { - return lhs.callsite == rhs.callsite - } -} diff --git a/Pods/Quick/Sources/Quick/ExampleGroup.swift b/Pods/Quick/Sources/Quick/ExampleGroup.swift deleted file mode 100644 index 129bed0..0000000 --- a/Pods/Quick/Sources/Quick/ExampleGroup.swift +++ /dev/null @@ -1,99 +0,0 @@ -import Foundation - -/** - Example groups are logical groupings of examples, defined with - the `describe` and `context` functions. Example groups can share - setup and teardown code. -*/ -final public class ExampleGroup: NSObject { - weak internal var parent: ExampleGroup? - internal let hooks = ExampleHooks() - - internal var phase: HooksPhase = .nothingExecuted - - private let internalDescription: String - private let flags: FilterFlags - private let isInternalRootExampleGroup: Bool - private var childGroups = [ExampleGroup]() - private var childExamples = [Example]() - - internal init(description: String, flags: FilterFlags, isInternalRootExampleGroup: Bool = false) { - self.internalDescription = description - self.flags = flags - self.isInternalRootExampleGroup = isInternalRootExampleGroup - } - - public override var description: String { - return internalDescription - } - - /** - Returns a list of examples that belong to this example group, - or to any of its descendant example groups. - */ - public var examples: [Example] { - return childExamples + childGroups.flatMap { $0.examples } - } - - internal var name: String? { - guard let parent = parent else { - return isInternalRootExampleGroup ? nil : description - } - - guard let name = parent.name else { return description } - return "\(name), \(description)" - } - - internal var filterFlags: FilterFlags { - var aggregateFlags = flags - walkUp { group in - for (key, value) in group.flags { - aggregateFlags[key] = value - } - } - return aggregateFlags - } - - internal var befores: [BeforeExampleWithMetadataClosure] { - var closures = Array(hooks.befores.reversed()) - walkUp { group in - closures.append(contentsOf: Array(group.hooks.befores.reversed())) - } - return Array(closures.reversed()) - } - - internal var afters: [AfterExampleWithMetadataClosure] { - var closures = hooks.afters - walkUp { group in - closures.append(contentsOf: group.hooks.afters) - } - return closures - } - - internal func walkDownExamples(_ callback: (_ example: Example) -> Void) { - for example in childExamples { - callback(example) - } - for group in childGroups { - group.walkDownExamples(callback) - } - } - - internal func appendExampleGroup(_ group: ExampleGroup) { - group.parent = self - childGroups.append(group) - } - - internal func appendExample(_ example: Example) { - example.group = self - childExamples.append(example) - } - - private func walkUp(_ callback: (_ group: ExampleGroup) -> Void) { - var group = self - while let parent = group.parent { - callback(parent) - group = parent - } - } -} diff --git a/Pods/Quick/Sources/Quick/ExampleMetadata.swift b/Pods/Quick/Sources/Quick/ExampleMetadata.swift deleted file mode 100644 index 3dd28ab..0000000 --- a/Pods/Quick/Sources/Quick/ExampleMetadata.swift +++ /dev/null @@ -1,37 +0,0 @@ -import Foundation - -// `#if swift(>=3.2) && (os(macOS) || os(iOS) || os(tvOS) || os(watchOS)) && !SWIFT_PACKAGE` -// does not work as expected. -#if swift(>=3.2) - #if (os(macOS) || os(iOS) || os(tvOS) || os(watchOS)) && !SWIFT_PACKAGE - @objcMembers - public class _ExampleMetadataBase: NSObject {} - #else - public class _ExampleMetadataBase: NSObject {} - #endif -#else -public class _ExampleMetadataBase: NSObject {} -#endif - -/** - A class that encapsulates information about an example, - including the index at which the example was executed, as - well as the example itself. -*/ -final public class ExampleMetadata: _ExampleMetadataBase { - /** - The example for which this metadata was collected. - */ - public let example: Example - - /** - The index at which this example was executed in the - test suite. - */ - public let exampleIndex: Int - - internal init(example: Example, exampleIndex: Int) { - self.example = example - self.exampleIndex = exampleIndex - } -} diff --git a/Pods/Quick/Sources/Quick/Filter.swift b/Pods/Quick/Sources/Quick/Filter.swift deleted file mode 100644 index da137f8..0000000 --- a/Pods/Quick/Sources/Quick/Filter.swift +++ /dev/null @@ -1,44 +0,0 @@ -import Foundation - -// `#if swift(>=3.2) && (os(macOS) || os(iOS) || os(tvOS) || os(watchOS)) && !SWIFT_PACKAGE` -// does not work as expected. -#if swift(>=3.2) - #if (os(macOS) || os(iOS) || os(tvOS) || os(watchOS)) && !SWIFT_PACKAGE - @objcMembers - public class _FilterBase: NSObject {} - #else - public class _FilterBase: NSObject {} - #endif -#else -public class _FilterBase: NSObject {} -#endif - -/** - A mapping of string keys to booleans that can be used to - filter examples or example groups. For example, a "focused" - example would have the flags [Focused: true]. -*/ -public typealias FilterFlags = [String: Bool] - -/** - A namespace for filter flag keys, defined primarily to make the - keys available in Objective-C. -*/ -final public class Filter: _FilterBase { - /** - Example and example groups with [Focused: true] are included in test runs, - excluding all other examples without this flag. Use this to only run one or - two tests that you're currently focusing on. - */ - public class var focused: String { - return "focused" - } - - /** - Example and example groups with [Pending: true] are excluded from test runs. - Use this to temporarily suspend examples that you know do not pass yet. - */ - public class var pending: String { - return "pending" - } -} diff --git a/Pods/Quick/Sources/Quick/Hooks/Closures.swift b/Pods/Quick/Sources/Quick/Hooks/Closures.swift deleted file mode 100644 index 9c7d310..0000000 --- a/Pods/Quick/Sources/Quick/Hooks/Closures.swift +++ /dev/null @@ -1,35 +0,0 @@ -// MARK: Example Hooks - -/** - A closure executed before an example is run. -*/ -public typealias BeforeExampleClosure = () -> Void - -/** - A closure executed before an example is run. The closure is given example metadata, - which contains information about the example that is about to be run. -*/ -public typealias BeforeExampleWithMetadataClosure = (_ exampleMetadata: ExampleMetadata) -> Void - -/** - A closure executed after an example is run. -*/ -public typealias AfterExampleClosure = BeforeExampleClosure - -/** - A closure executed after an example is run. The closure is given example metadata, - which contains information about the example that has just finished running. -*/ -public typealias AfterExampleWithMetadataClosure = BeforeExampleWithMetadataClosure - -// MARK: Suite Hooks - -/** - A closure executed before any examples are run. -*/ -public typealias BeforeSuiteClosure = () -> Void - -/** - A closure executed after all examples have finished running. -*/ -public typealias AfterSuiteClosure = BeforeSuiteClosure diff --git a/Pods/Quick/Sources/Quick/Hooks/ExampleHooks.swift b/Pods/Quick/Sources/Quick/Hooks/ExampleHooks.swift deleted file mode 100644 index 449cbfc..0000000 --- a/Pods/Quick/Sources/Quick/Hooks/ExampleHooks.swift +++ /dev/null @@ -1,42 +0,0 @@ -/** - A container for closures to be executed before and after each example. -*/ -final internal class ExampleHooks { - internal var befores: [BeforeExampleWithMetadataClosure] = [] - internal var afters: [AfterExampleWithMetadataClosure] = [] - internal var phase: HooksPhase = .nothingExecuted - - internal func appendBefore(_ closure: @escaping BeforeExampleWithMetadataClosure) { - befores.append(closure) - } - - internal func appendBefore(_ closure: @escaping BeforeExampleClosure) { - befores.append { (_: ExampleMetadata) in closure() } - } - - internal func appendAfter(_ closure: @escaping AfterExampleWithMetadataClosure) { - afters.append(closure) - } - - internal func appendAfter(_ closure: @escaping AfterExampleClosure) { - afters.append { (_: ExampleMetadata) in closure() } - } - - internal func executeBefores(_ exampleMetadata: ExampleMetadata) { - phase = .beforesExecuting - for before in befores { - before(exampleMetadata) - } - - phase = .beforesFinished - } - - internal func executeAfters(_ exampleMetadata: ExampleMetadata) { - phase = .aftersExecuting - for after in afters { - after(exampleMetadata) - } - - phase = .aftersFinished - } -} diff --git a/Pods/Quick/Sources/Quick/Hooks/HooksPhase.swift b/Pods/Quick/Sources/Quick/Hooks/HooksPhase.swift deleted file mode 100644 index 2440158..0000000 --- a/Pods/Quick/Sources/Quick/Hooks/HooksPhase.swift +++ /dev/null @@ -1,11 +0,0 @@ -/** - A description of the execution cycle of the current example with - respect to the hooks of that example. - */ -internal enum HooksPhase { - case nothingExecuted - case beforesExecuting - case beforesFinished - case aftersExecuting - case aftersFinished -} diff --git a/Pods/Quick/Sources/Quick/Hooks/SuiteHooks.swift b/Pods/Quick/Sources/Quick/Hooks/SuiteHooks.swift deleted file mode 100644 index b39292b..0000000 --- a/Pods/Quick/Sources/Quick/Hooks/SuiteHooks.swift +++ /dev/null @@ -1,32 +0,0 @@ -/** - A container for closures to be executed before and after all examples. -*/ -final internal class SuiteHooks { - internal var befores: [BeforeSuiteClosure] = [] - internal var afters: [AfterSuiteClosure] = [] - internal var phase: HooksPhase = .nothingExecuted - - internal func appendBefore(_ closure: @escaping BeforeSuiteClosure) { - befores.append(closure) - } - - internal func appendAfter(_ closure: @escaping AfterSuiteClosure) { - afters.append(closure) - } - - internal func executeBefores() { - phase = .beforesExecuting - for before in befores { - before() - } - phase = .beforesFinished - } - - internal func executeAfters() { - phase = .aftersExecuting - for after in afters { - after() - } - phase = .aftersFinished - } -} diff --git a/Pods/Quick/Sources/Quick/NSBundle+CurrentTestBundle.swift b/Pods/Quick/Sources/Quick/NSBundle+CurrentTestBundle.swift deleted file mode 100644 index d7a1442..0000000 --- a/Pods/Quick/Sources/Quick/NSBundle+CurrentTestBundle.swift +++ /dev/null @@ -1,25 +0,0 @@ -#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) - -import Foundation - -extension Bundle { - - /** - Locates the first bundle with a '.xctest' file extension. - */ - internal static var currentTestBundle: Bundle? { - return allBundles.first { $0.bundlePath.hasSuffix(".xctest") } - } - - /** - Return the module name of the bundle. - Uses the bundle filename and transform it to match Xcode's transformation. - Module name has to be a valid "C99 extended identifier". - */ - internal var moduleName: String { - let fileName = bundleURL.fileName as NSString - return fileName.c99ExtendedIdentifier - } -} - -#endif diff --git a/Pods/Quick/Sources/Quick/NSString+C99ExtendedIdentifier.swift b/Pods/Quick/Sources/Quick/NSString+C99ExtendedIdentifier.swift deleted file mode 100644 index 8d67d8d..0000000 --- a/Pods/Quick/Sources/Quick/NSString+C99ExtendedIdentifier.swift +++ /dev/null @@ -1,49 +0,0 @@ -#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) -import Foundation - -extension NSString { - private static var invalidCharacters: CharacterSet = { - var invalidCharacters = CharacterSet() - - let invalidCharacterSets: [CharacterSet] = [ - .whitespacesAndNewlines, - .illegalCharacters, - .controlCharacters, - .punctuationCharacters, - .nonBaseCharacters, - .symbols - ] - - for invalidSet in invalidCharacterSets { - invalidCharacters.formUnion(invalidSet) - } - - return invalidCharacters - }() - - /// This API is not meant to be used outside Quick, so will be unavaialbe in - /// a next major version. - @objc(qck_c99ExtendedIdentifier) - public var c99ExtendedIdentifier: String { - let validComponents = components(separatedBy: NSString.invalidCharacters) - let result = validComponents.joined(separator: "_") - - return result.isEmpty ? "_" : result - } -} - -/// Extension methods or properties for NSObject subclasses are invisible from -/// the Objective-C runtime on static linking unless the consumers add `-ObjC` -/// linker flag, so let's make a wrapper class to mitigate that situation. -/// -/// See: https://github.com/Quick/Quick/issues/785 and https://github.com/Quick/Quick/pull/803 -@objc -class QCKObjCStringUtils: NSObject { - override private init() {} - - @objc - static func c99ExtendedIdentifier(from string: String) -> String { - return string.c99ExtendedIdentifier - } -} -#endif diff --git a/Pods/Quick/Sources/Quick/QuickSelectedTestSuiteBuilder.swift b/Pods/Quick/Sources/Quick/QuickSelectedTestSuiteBuilder.swift deleted file mode 100644 index 415b680..0000000 --- a/Pods/Quick/Sources/Quick/QuickSelectedTestSuiteBuilder.swift +++ /dev/null @@ -1,74 +0,0 @@ -#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) -import Foundation - -/** - Responsible for building a "Selected tests" suite. This corresponds to a single - spec, and all its examples. - */ -internal class QuickSelectedTestSuiteBuilder: QuickTestSuiteBuilder { - - /** - The test spec class to run. - */ - let testCaseClass: AnyClass! - - /** - For Objective-C classes, returns the class name. For Swift classes without, - an explicit Objective-C name, returns a module-namespaced class name - (e.g., "FooTests.FooSpec"). - */ - var testSuiteClassName: String { - return NSStringFromClass(testCaseClass) - } - - /** - Given a test case name: - - FooSpec/testFoo - - Optionally constructs a test suite builder for the named test case class - in the running test bundle. - - If no test bundle can be found, or the test case class can't be found, - initialization fails and returns `nil`. - */ - init?(forTestCaseWithName name: String) { - guard let testCaseClass = testCaseClassForTestCaseWithName(name) else { - self.testCaseClass = nil - return nil - } - - self.testCaseClass = testCaseClass - } - - /** - Returns a `QuickTestSuite` that runs the associated test case class. - */ - func buildTestSuite() -> QuickTestSuite { - return QuickTestSuite(forTestCaseClass: testCaseClass) - } - -} - -/** - Searches `Bundle.allBundles()` for an xctest bundle, then looks up the named - test case class in that bundle. - - Returns `nil` if a bundle or test case class cannot be found. - */ -private func testCaseClassForTestCaseWithName(_ name: String) -> AnyClass? { - func extractClassName(_ name: String) -> String? { - return name.components(separatedBy: "/").first - } - - guard let className = extractClassName(name) else { return nil } - guard let bundle = Bundle.currentTestBundle else { return nil } - - if let testCaseClass = bundle.classNamed(className) { return testCaseClass } - - let moduleName = bundle.moduleName - - return NSClassFromString("\(moduleName).\(className)") -} - -#endif diff --git a/Pods/Quick/Sources/Quick/QuickTestSuite.swift b/Pods/Quick/Sources/Quick/QuickTestSuite.swift deleted file mode 100644 index 0fe76a7..0000000 --- a/Pods/Quick/Sources/Quick/QuickTestSuite.swift +++ /dev/null @@ -1,52 +0,0 @@ -#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) - -import XCTest - -/** - This protocol defines the role of an object that builds test suites. - */ -internal protocol QuickTestSuiteBuilder { - - /** - Construct a `QuickTestSuite` instance with the appropriate test cases added as tests. - - Subsequent calls to this method should return equivalent test suites. - */ - func buildTestSuite() -> QuickTestSuite - -} - -/** - A base class for a class cluster of Quick test suites, that should correctly - build dynamic test suites for XCTest to execute. - */ -public class QuickTestSuite: XCTestSuite { - - private static var builtTestSuites: Set = Set() - - /** - Construct a test suite for a specific, selected subset of test cases (rather - than the default, which as all test cases). - - If this method is called multiple times for the same test case class, e.g.. - - FooSpec/testFoo - FooSpec/testBar - - It is expected that the first call should return a valid test suite, and - all subsequent calls should return `nil`. - */ - @objc - public static func selectedTestSuite(forTestCaseWithName name: String) -> QuickTestSuite? { - guard let builder = QuickSelectedTestSuiteBuilder(forTestCaseWithName: name) else { return nil } - - let (inserted, _) = builtTestSuites.insert(builder.testSuiteClassName) - if inserted { - return builder.buildTestSuite() - } else { - return nil - } - } -} - -#endif diff --git a/Pods/Quick/Sources/Quick/URL+FileName.swift b/Pods/Quick/Sources/Quick/URL+FileName.swift deleted file mode 100644 index 23c4781..0000000 --- a/Pods/Quick/Sources/Quick/URL+FileName.swift +++ /dev/null @@ -1,12 +0,0 @@ -import Foundation - -extension URL { - - /** - Returns the path file name without file extension. - */ - var fileName: String { - return self.deletingPathExtension().lastPathComponent - } - -} diff --git a/Pods/Quick/Sources/Quick/World.swift b/Pods/Quick/Sources/Quick/World.swift deleted file mode 100644 index 59ea7e6..0000000 --- a/Pods/Quick/Sources/Quick/World.swift +++ /dev/null @@ -1,247 +0,0 @@ -import Foundation - -/** - A closure that, when evaluated, returns a dictionary of key-value - pairs that can be accessed from within a group of shared examples. -*/ -public typealias SharedExampleContext = () -> [String: Any] - -/** - A closure that is used to define a group of shared examples. This - closure may contain any number of example and example groups. -*/ -public typealias SharedExampleClosure = (@escaping SharedExampleContext) -> Void - -// `#if swift(>=3.2) && (os(macOS) || os(iOS) || os(tvOS) || os(watchOS)) && !SWIFT_PACKAGE` -// does not work as expected. -#if swift(>=3.2) - #if (os(macOS) || os(iOS) || os(tvOS) || os(watchOS)) && !SWIFT_PACKAGE - @objcMembers - internal class _WorldBase: NSObject {} - #else - internal class _WorldBase: NSObject {} - #endif -#else -internal class _WorldBase: NSObject {} -#endif - -/** - A collection of state Quick builds up in order to work its magic. - World is primarily responsible for maintaining a mapping of QuickSpec - classes to root example groups for those classes. - - It also maintains a mapping of shared example names to shared - example closures. - - You may configure how Quick behaves by calling the -[World configure:] - method from within an overridden +[QuickConfiguration configure:] method. -*/ -final internal class World: _WorldBase { - /** - The example group that is currently being run. - The DSL requires that this group is correctly set in order to build a - correct hierarchy of example groups and their examples. - */ - internal var currentExampleGroup: ExampleGroup! - - /** - The example metadata of the test that is currently being run. - This is useful for using the Quick test metadata (like its name) at - runtime. - */ - - internal var currentExampleMetadata: ExampleMetadata? - - /** - A flag that indicates whether additional test suites are being run - within this test suite. This is only true within the context of Quick - functional tests. - */ -#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) - // Convention of generating Objective-C selector has been changed on Swift 3 - @objc(isRunningAdditionalSuites) - internal var isRunningAdditionalSuites = false -#else - internal var isRunningAdditionalSuites = false -#endif - - private var specs: [String: ExampleGroup] = [:] - private var sharedExamples: [String: SharedExampleClosure] = [:] - private let configuration = Configuration() - - internal private(set) var isConfigurationFinalized = false - - internal var exampleHooks: ExampleHooks {return configuration.exampleHooks } - internal var suiteHooks: SuiteHooks { return configuration.suiteHooks } - - // MARK: Singleton Constructor - - private override init() {} - - static let sharedWorld = World() - - // MARK: Public Interface - - /** - Exposes the World's Configuration object within the scope of the closure - so that it may be configured. This method must not be called outside of - an overridden +[QuickConfiguration configure:] method. - - - parameter closure: A closure that takes a Configuration object that can - be mutated to change Quick's behavior. - */ - internal func configure(_ closure: QuickConfigurer) { - assert(!isConfigurationFinalized, - "Quick cannot be configured outside of a +[QuickConfiguration configure:] method. You should not call -[World configure:] directly. Instead, subclass QuickConfiguration and override the +[QuickConfiguration configure:] method.") - closure(configuration) - } - - /** - Finalizes the World's configuration. - Any subsequent calls to World.configure() will raise. - */ - internal func finalizeConfiguration() { - isConfigurationFinalized = true - } - - /** - Returns an internally constructed root example group for the given - QuickSpec class. - - A root example group with the description "root example group" is lazily - initialized for each QuickSpec class. This root example group wraps the - top level of a -[QuickSpec spec] method--it's thanks to this group that - users can define beforeEach and it closures at the top level, like so: - - override func spec() { - // These belong to the root example group - beforeEach {} - it("is at the top level") {} - } - - - parameter cls: The QuickSpec class for which to retrieve the root example group. - - returns: The root example group for the class. - */ - internal func rootExampleGroupForSpecClass(_ cls: AnyClass) -> ExampleGroup { - let name = String(describing: cls) - - if let group = specs[name] { - return group - } else { - let group = ExampleGroup( - description: "root example group", - flags: [:], - isInternalRootExampleGroup: true - ) - specs[name] = group - return group - } - } - - /** - Returns all examples that should be run for a given spec class. - There are two filtering passes that occur when determining which examples should be run. - That is, these examples are the ones that are included by inclusion filters, and are - not excluded by exclusion filters. - - - parameter specClass: The QuickSpec subclass for which examples are to be returned. - - returns: A list of examples to be run as test invocations. - */ - internal func examples(_ specClass: AnyClass) -> [Example] { - // 1. Grab all included examples. - let included = includedExamples - // 2. Grab the intersection of (a) examples for this spec, and (b) included examples. - let spec = rootExampleGroupForSpecClass(specClass).examples.filter { included.contains($0) } - // 3. Remove all excluded examples. - return spec.filter { example in - !self.configuration.exclusionFilters.reduce(false) { $0 || $1(example) } - } - } - -#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) - @objc(examplesForSpecClass:) - internal func objc_examples(_ specClass: AnyClass) -> [Example] { - return examples(specClass) - } -#endif - - // MARK: Internal - - internal func registerSharedExample(_ name: String, closure: @escaping SharedExampleClosure) { - raiseIfSharedExampleAlreadyRegistered(name) - sharedExamples[name] = closure - } - - internal func sharedExample(_ name: String) -> SharedExampleClosure { - raiseIfSharedExampleNotRegistered(name) - return sharedExamples[name]! - } - - internal var includedExampleCount: Int { - return includedExamples.count - } - - internal var beforesCurrentlyExecuting: Bool { - let suiteBeforesExecuting = suiteHooks.phase == .beforesExecuting - let exampleBeforesExecuting = exampleHooks.phase == .beforesExecuting - var groupBeforesExecuting = false - if let runningExampleGroup = currentExampleMetadata?.example.group { - groupBeforesExecuting = runningExampleGroup.phase == .beforesExecuting - } - - return suiteBeforesExecuting || exampleBeforesExecuting || groupBeforesExecuting - } - - internal var aftersCurrentlyExecuting: Bool { - let suiteAftersExecuting = suiteHooks.phase == .aftersExecuting - let exampleAftersExecuting = exampleHooks.phase == .aftersExecuting - var groupAftersExecuting = false - if let runningExampleGroup = currentExampleMetadata?.example.group { - groupAftersExecuting = runningExampleGroup.phase == .aftersExecuting - } - - return suiteAftersExecuting || exampleAftersExecuting || groupAftersExecuting - } - - internal func performWithCurrentExampleGroup(_ group: ExampleGroup, closure: () -> Void) { - let previousExampleGroup = currentExampleGroup - currentExampleGroup = group - - closure() - - currentExampleGroup = previousExampleGroup - } - - private var allExamples: [Example] { - var all: [Example] = [] - for (_, group) in specs { - group.walkDownExamples { all.append($0) } - } - return all - } - - private var includedExamples: [Example] { - let all = allExamples - let included = all.filter { example in - return self.configuration.inclusionFilters.reduce(false) { $0 || $1(example) } - } - - if included.isEmpty && configuration.runAllWhenEverythingFiltered { - return all - } else { - return included - } - } - - private func raiseIfSharedExampleAlreadyRegistered(_ name: String) { - if sharedExamples[name] != nil { - raiseError("A shared example named '\(name)' has already been registered.") - } - } - - private func raiseIfSharedExampleNotRegistered(_ name: String) { - if sharedExamples[name] == nil { - raiseError("No shared example named '\(name)' has been registered. Registered shared examples: '\(Array(sharedExamples.keys))'") - } - } -} diff --git a/Pods/Quick/Sources/QuickObjectiveC/Configuration/QuickConfiguration.h b/Pods/Quick/Sources/QuickObjectiveC/Configuration/QuickConfiguration.h deleted file mode 100644 index 5646199..0000000 --- a/Pods/Quick/Sources/QuickObjectiveC/Configuration/QuickConfiguration.h +++ /dev/null @@ -1,30 +0,0 @@ -#import - -@class Configuration; - -/** - Subclass QuickConfiguration and override the +[QuickConfiguration configure:] - method in order to configure how Quick behaves when running specs, or to define - shared examples that are used across spec files. - */ -@interface QuickConfiguration : NSObject - -/** - This method is executed on each subclass of this class before Quick runs - any examples. You may override this method on as many subclasses as you like, but - there is no guarantee as to the order in which these methods are executed. - - You can override this method in order to: - - 1. Configure how Quick behaves, by modifying properties on the Configuration object. - Setting the same properties in several methods has undefined behavior. - - 2. Define shared examples using `sharedExamples`. - - @param configuration A mutable object that is used to configure how Quick behaves on - a framework level. For details on all the options, see the - documentation in Configuration.swift. - */ -+ (void)configure:(Configuration *)configuration; - -@end diff --git a/Pods/Quick/Sources/QuickObjectiveC/Configuration/QuickConfiguration.m b/Pods/Quick/Sources/QuickObjectiveC/Configuration/QuickConfiguration.m deleted file mode 100644 index 17beaa7..0000000 --- a/Pods/Quick/Sources/QuickObjectiveC/Configuration/QuickConfiguration.m +++ /dev/null @@ -1,88 +0,0 @@ -#import "QuickConfiguration.h" -#import - -#if __has_include("Quick-Swift.h") -#import "Quick-Swift.h" -#else -#import -#endif - -typedef void (^QCKClassEnumerationBlock)(Class klass); - -/** - Finds all direct subclasses of the given class and passes them to the block provided. - The classes are iterated over in the order that objc_getClassList returns them. - - @param klass The base class to find subclasses of. - @param block A block that takes a Class. This block will be executed once for each subclass of klass. - */ -void qck_enumerateSubclasses(Class klass, QCKClassEnumerationBlock block) { - Class *classes = NULL; - int classesCount = objc_getClassList(NULL, 0); - - if (classesCount > 0) { - classes = (Class *)calloc(sizeof(Class), classesCount); - classesCount = objc_getClassList(classes, classesCount); - - Class subclass, superclass; - for(int i = 0; i < classesCount; i++) { - subclass = classes[i]; - superclass = class_getSuperclass(subclass); - if (superclass == klass && block) { - block(subclass); - } - } - - free(classes); - } -} - -@implementation QuickConfiguration - -#pragma mark - Object Lifecycle - -/** - QuickConfiguration is not meant to be instantiated; it merely provides a hook - for users to configure how Quick behaves. Raise an exception if an instance of - QuickConfiguration is created. - */ -- (instancetype)init { - NSString *className = NSStringFromClass([self class]); - NSString *selectorName = NSStringFromSelector(@selector(configure:)); - [NSException raise:NSInternalInconsistencyException - format:@"%@ is not meant to be instantiated; " - @"subclass %@ and override %@ to configure Quick.", - className, className, selectorName]; - return nil; -} - -#pragma mark - NSObject Overrides - -/** - Hook into when QuickConfiguration is initialized in the runtime in order to - call +[QuickConfiguration configure:] on each of its subclasses. - */ -+ (void)initialize { - // Only enumerate over the subclasses of QuickConfiguration, not any of its subclasses. - if ([self class] == [QuickConfiguration class]) { - - // Only enumerate over subclasses once, even if +[QuickConfiguration initialize] - // were to be called several times. This is necessary because +[QuickSpec initialize] - // manually calls +[QuickConfiguration initialize]. - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - qck_enumerateSubclasses([QuickConfiguration class], ^(__unsafe_unretained Class klass) { - [[World sharedWorld] configure:^(Configuration *configuration) { - [klass configure:configuration]; - }]; - }); - [[World sharedWorld] finalizeConfiguration]; - }); - } -} - -#pragma mark - Public Interface - -+ (void)configure:(Configuration *)configuration { } - -@end diff --git a/Pods/Quick/Sources/QuickObjectiveC/DSL/QCKDSL.h b/Pods/Quick/Sources/QuickObjectiveC/DSL/QCKDSL.h deleted file mode 100644 index c5f3152..0000000 --- a/Pods/Quick/Sources/QuickObjectiveC/DSL/QCKDSL.h +++ /dev/null @@ -1,234 +0,0 @@ -#import - -@class ExampleMetadata; - -/** - Provides a hook for Quick to be configured before any examples are run. - Within this scope, override the +[QuickConfiguration configure:] method - to set properties on a configuration object to customize Quick behavior. - For details, see the documentation for Configuraiton.swift. - - @param name The name of the configuration class. Like any Objective-C - class name, this must be unique to the current runtime - environment. - */ -#define QuickConfigurationBegin(name) \ - @interface name : QuickConfiguration; @end \ - @implementation name \ - - -/** - Marks the end of a Quick configuration. - Make sure you put this after `QuickConfigurationBegin`. - */ -#define QuickConfigurationEnd \ - @end \ - - -/** - Defines a new QuickSpec. Define examples and example groups within the space - between this and `QuickSpecEnd`. - - @param name The name of the spec class. Like any Objective-C class name, this - must be unique to the current runtime environment. - */ -#define QuickSpecBegin(name) \ - @interface name : QuickSpec; @end \ - @implementation name \ - - (void)spec { \ - - -/** - Marks the end of a QuickSpec. Make sure you put this after `QuickSpecBegin`. - */ -#define QuickSpecEnd \ - } \ - @end \ - -typedef NSDictionary *(^QCKDSLSharedExampleContext)(void); -typedef void (^QCKDSLSharedExampleBlock)(QCKDSLSharedExampleContext); -typedef void (^QCKDSLEmptyBlock)(void); -typedef void (^QCKDSLExampleMetadataBlock)(ExampleMetadata *exampleMetadata); - -#define QUICK_EXPORT FOUNDATION_EXPORT - -QUICK_EXPORT void qck_beforeSuite(QCKDSLEmptyBlock closure); -QUICK_EXPORT void qck_afterSuite(QCKDSLEmptyBlock closure); -QUICK_EXPORT void qck_sharedExamples(NSString *name, QCKDSLSharedExampleBlock closure); -QUICK_EXPORT void qck_describe(NSString *description, QCKDSLEmptyBlock closure); -QUICK_EXPORT void qck_context(NSString *description, QCKDSLEmptyBlock closure); -QUICK_EXPORT void qck_beforeEach(QCKDSLEmptyBlock closure); -QUICK_EXPORT void qck_beforeEachWithMetadata(QCKDSLExampleMetadataBlock closure); -QUICK_EXPORT void qck_afterEach(QCKDSLEmptyBlock closure); -QUICK_EXPORT void qck_afterEachWithMetadata(QCKDSLExampleMetadataBlock closure); -QUICK_EXPORT void qck_pending(NSString *description, QCKDSLEmptyBlock closure); -QUICK_EXPORT void qck_xdescribe(NSString *description, QCKDSLEmptyBlock closure); -QUICK_EXPORT void qck_xcontext(NSString *description, QCKDSLEmptyBlock closure); -QUICK_EXPORT void qck_fdescribe(NSString *description, QCKDSLEmptyBlock closure); -QUICK_EXPORT void qck_fcontext(NSString *description, QCKDSLEmptyBlock closure); - -#ifndef QUICK_DISABLE_SHORT_SYNTAX -/** - Defines a closure to be run prior to any examples in the test suite. - You may define an unlimited number of these closures, but there is no - guarantee as to the order in which they're run. - - If the test suite crashes before the first example is run, this closure - will not be executed. - - @param closure The closure to be run prior to any examples in the test suite. - */ -static inline void beforeSuite(QCKDSLEmptyBlock closure) { - qck_beforeSuite(closure); -} - - -/** - Defines a closure to be run after all of the examples in the test suite. - You may define an unlimited number of these closures, but there is no - guarantee as to the order in which they're run. - - If the test suite crashes before all examples are run, this closure - will not be executed. - - @param closure The closure to be run after all of the examples in the test suite. - */ -static inline void afterSuite(QCKDSLEmptyBlock closure) { - qck_afterSuite(closure); -} - -/** - Defines a group of shared examples. These examples can be re-used in several locations - by using the `itBehavesLike` function. - - @param name The name of the shared example group. This must be unique across all shared example - groups defined in a test suite. - @param closure A closure containing the examples. This behaves just like an example group defined - using `describe` or `context`--the closure may contain any number of `beforeEach` - and `afterEach` closures, as well as any number of examples (defined using `it`). - */ -static inline void sharedExamples(NSString *name, QCKDSLSharedExampleBlock closure) { - qck_sharedExamples(name, closure); -} - -/** - Defines an example group. Example groups are logical groupings of examples. - Example groups can share setup and teardown code. - - @param description An arbitrary string describing the example group. - @param closure A closure that can contain other examples. - */ -static inline void describe(NSString *description, QCKDSLEmptyBlock closure) { - qck_describe(description, closure); -} - -/** - Defines an example group. Equivalent to `describe`. - */ -static inline void context(NSString *description, QCKDSLEmptyBlock closure) { - qck_context(description, closure); -} - -/** - Defines a closure to be run prior to each example in the current example - group. This closure is not run for pending or otherwise disabled examples. - An example group may contain an unlimited number of beforeEach. They'll be - run in the order they're defined, but you shouldn't rely on that behavior. - - @param closure The closure to be run prior to each example. - */ -static inline void beforeEach(QCKDSLEmptyBlock closure) { - qck_beforeEach(closure); -} - -/** - Identical to QCKDSL.beforeEach, except the closure is provided with - metadata on the example that the closure is being run prior to. - */ -static inline void beforeEachWithMetadata(QCKDSLExampleMetadataBlock closure) { - qck_beforeEachWithMetadata(closure); -} - -/** - Defines a closure to be run after each example in the current example - group. This closure is not run for pending or otherwise disabled examples. - An example group may contain an unlimited number of afterEach. They'll be - run in the order they're defined, but you shouldn't rely on that behavior. - - @param closure The closure to be run after each example. - */ -static inline void afterEach(QCKDSLEmptyBlock closure) { - qck_afterEach(closure); -} - -/** - Identical to QCKDSL.afterEach, except the closure is provided with - metadata on the example that the closure is being run after. - */ -static inline void afterEachWithMetadata(QCKDSLExampleMetadataBlock closure) { - qck_afterEachWithMetadata(closure); -} - -/** - Defines an example or example group that should not be executed. Use `pending` to temporarily disable - examples or groups that should not be run yet. - - @param description An arbitrary string describing the example or example group. - @param closure A closure that will not be evaluated. - */ -static inline void pending(NSString *description, QCKDSLEmptyBlock closure) { - qck_pending(description, closure); -} - -/** - Use this to quickly mark a `describe` block as pending. - This disables all examples within the block. - */ -static inline void xdescribe(NSString *description, QCKDSLEmptyBlock closure) { - qck_xdescribe(description, closure); -} - -/** - Use this to quickly mark a `context` block as pending. - This disables all examples within the block. - */ -static inline void xcontext(NSString *description, QCKDSLEmptyBlock closure) { - qck_xcontext(description, closure); -} - -/** - Use this to quickly focus a `describe` block, focusing the examples in the block. - If any examples in the test suite are focused, only those examples are executed. - This trumps any explicitly focused or unfocused examples within the block--they are all treated as focused. - */ -static inline void fdescribe(NSString *description, QCKDSLEmptyBlock closure) { - qck_fdescribe(description, closure); -} - -/** - Use this to quickly focus a `context` block. Equivalent to `fdescribe`. - */ -static inline void fcontext(NSString *description, QCKDSLEmptyBlock closure) { - qck_fcontext(description, closure); -} - -#define it qck_it -#define xit qck_xit -#define fit qck_fit -#define itBehavesLike qck_itBehavesLike -#define xitBehavesLike qck_xitBehavesLike -#define fitBehavesLike qck_fitBehavesLike -#endif - -#define qck_it qck_it_builder(@{}, @(__FILE__), __LINE__) -#define qck_xit qck_it_builder(@{Filter.pending: @YES}, @(__FILE__), __LINE__) -#define qck_fit qck_it_builder(@{Filter.focused: @YES}, @(__FILE__), __LINE__) -#define qck_itBehavesLike qck_itBehavesLike_builder(@{}, @(__FILE__), __LINE__) -#define qck_xitBehavesLike qck_itBehavesLike_builder(@{Filter.pending: @YES}, @(__FILE__), __LINE__) -#define qck_fitBehavesLike qck_itBehavesLike_builder(@{Filter.focused: @YES}, @(__FILE__), __LINE__) - -typedef void (^QCKItBlock)(NSString *description, QCKDSLEmptyBlock closure); -typedef void (^QCKItBehavesLikeBlock)(NSString *description, QCKDSLSharedExampleContext context); - -QUICK_EXPORT QCKItBlock qck_it_builder(NSDictionary *flags, NSString *file, NSUInteger line); -QUICK_EXPORT QCKItBehavesLikeBlock qck_itBehavesLike_builder(NSDictionary *flags, NSString *file, NSUInteger line); diff --git a/Pods/Quick/Sources/QuickObjectiveC/DSL/QCKDSL.m b/Pods/Quick/Sources/QuickObjectiveC/DSL/QCKDSL.m deleted file mode 100644 index 624832e..0000000 --- a/Pods/Quick/Sources/QuickObjectiveC/DSL/QCKDSL.m +++ /dev/null @@ -1,83 +0,0 @@ -#import "QCKDSL.h" - -#if __has_include("Quick-Swift.h") -#import "Quick-Swift.h" -#else -#import -#endif - -void qck_beforeSuite(QCKDSLEmptyBlock closure) { - [[World sharedWorld] beforeSuite:closure]; -} - -void qck_afterSuite(QCKDSLEmptyBlock closure) { - [[World sharedWorld] afterSuite:closure]; -} - -void qck_sharedExamples(NSString *name, QCKDSLSharedExampleBlock closure) { - [[World sharedWorld] sharedExamples:name closure:closure]; -} - -void qck_describe(NSString *description, QCKDSLEmptyBlock closure) { - [[World sharedWorld] describe:description flags:@{} closure:closure]; -} - -void qck_context(NSString *description, QCKDSLEmptyBlock closure) { - qck_describe(description, closure); -} - -void qck_beforeEach(QCKDSLEmptyBlock closure) { - [[World sharedWorld] beforeEach:closure]; -} - -void qck_beforeEachWithMetadata(QCKDSLExampleMetadataBlock closure) { - [[World sharedWorld] beforeEachWithMetadata:closure]; -} - -void qck_afterEach(QCKDSLEmptyBlock closure) { - [[World sharedWorld] afterEach:closure]; -} - -void qck_afterEachWithMetadata(QCKDSLExampleMetadataBlock closure) { - [[World sharedWorld] afterEachWithMetadata:closure]; -} - -QCKItBlock qck_it_builder(NSDictionary *flags, NSString *file, NSUInteger line) { - return ^(NSString *description, QCKDSLEmptyBlock closure) { - [[World sharedWorld] itWithDescription:description - flags:flags - file:file - line:line - closure:closure]; - }; -} - -QCKItBehavesLikeBlock qck_itBehavesLike_builder(NSDictionary *flags, NSString *file, NSUInteger line) { - return ^(NSString *name, QCKDSLSharedExampleContext context) { - [[World sharedWorld] itBehavesLikeSharedExampleNamed:name - sharedExampleContext:context - flags:flags - file:file - line:line]; - }; -} - -void qck_pending(NSString *description, QCKDSLEmptyBlock closure) { - [[World sharedWorld] pending:description closure:closure]; -} - -void qck_xdescribe(NSString *description, QCKDSLEmptyBlock closure) { - [[World sharedWorld] xdescribe:description flags:@{} closure:closure]; -} - -void qck_xcontext(NSString *description, QCKDSLEmptyBlock closure) { - qck_xdescribe(description, closure); -} - -void qck_fdescribe(NSString *description, QCKDSLEmptyBlock closure) { - [[World sharedWorld] fdescribe:description flags:@{} closure:closure]; -} - -void qck_fcontext(NSString *description, QCKDSLEmptyBlock closure) { - qck_fdescribe(description, closure); -} diff --git a/Pods/Quick/Sources/QuickObjectiveC/Quick.h b/Pods/Quick/Sources/QuickObjectiveC/Quick.h deleted file mode 100644 index 87dad10..0000000 --- a/Pods/Quick/Sources/QuickObjectiveC/Quick.h +++ /dev/null @@ -1,11 +0,0 @@ -#import - -//! Project version number for Quick. -FOUNDATION_EXPORT double QuickVersionNumber; - -//! Project version string for Quick. -FOUNDATION_EXPORT const unsigned char QuickVersionString[]; - -#import "QuickSpec.h" -#import "QCKDSL.h" -#import "QuickConfiguration.h" diff --git a/Pods/Quick/Sources/QuickObjectiveC/QuickSpec.h b/Pods/Quick/Sources/QuickObjectiveC/QuickSpec.h deleted file mode 100644 index 21bc772..0000000 --- a/Pods/Quick/Sources/QuickObjectiveC/QuickSpec.h +++ /dev/null @@ -1,56 +0,0 @@ -#import - -/** - QuickSpec is a base class all specs written in Quick inherit from. - They need to inherit from QuickSpec, a subclass of XCTestCase, in - order to be discovered by the XCTest framework. - - XCTest automatically compiles a list of XCTestCase subclasses included - in the test target. It iterates over each class in that list, and creates - a new instance of that class for each test method. It then creates an - "invocation" to execute that test method. The invocation is an instance of - NSInvocation, which represents a single message send in Objective-C. - The invocation is set on the XCTestCase instance, and the test is run. - - Most of the code in QuickSpec is dedicated to hooking into XCTest events. - First, when the spec is first loaded and before it is sent any messages, - the +[NSObject initialize] method is called. QuickSpec overrides this method - to call +[QuickSpec spec]. This builds the example group stacks and - registers them with Quick.World, a global register of examples. - - Then, XCTest queries QuickSpec for a list of test methods. Normally, XCTest - automatically finds all methods whose selectors begin with the string "test". - However, QuickSpec overrides this default behavior by implementing the - +[XCTestCase testInvocations] method. This method iterates over each example - registered in Quick.World, defines a new method for that example, and - returns an invocation to call that method to XCTest. Those invocations are - the tests that are run by XCTest. Their selector names are displayed in - the Xcode test navigation bar. - */ -@interface QuickSpec : XCTestCase - -/** - Override this method in your spec to define a set of example groups - and examples. - - @code - override func spec() { - describe("winter") { - it("is coming") { - // ... - } - } - } - @endcode - - See DSL.swift for more information on what syntax is available. - */ -- (void)spec; - -/** - Returns the currently executing spec. Use in specs that require XCTestCase - methds, e.g. expectationWithDescription. -*/ -@property (class, nonatomic, readonly) QuickSpec *current; - -@end diff --git a/Pods/Quick/Sources/QuickObjectiveC/QuickSpec.m b/Pods/Quick/Sources/QuickObjectiveC/QuickSpec.m deleted file mode 100644 index ed70d35..0000000 --- a/Pods/Quick/Sources/QuickObjectiveC/QuickSpec.m +++ /dev/null @@ -1,149 +0,0 @@ -#import "QuickSpec.h" -#import "QuickConfiguration.h" - -#if __has_include("Quick-Swift.h") -#import "Quick-Swift.h" -#else -#import -#endif - -static QuickSpec *currentSpec = nil; - -@interface QuickSpec () -@property (nonatomic, strong) Example *example; -@end - -@implementation QuickSpec - -#pragma mark - XCTestCase Overrides - -/** - The runtime sends initialize to each class in a program just before the class, or any class - that inherits from it, is sent its first message from within the program. QuickSpec hooks into - this event to compile the example groups for this spec subclass. - - If an exception occurs when compiling the examples, report it to the user. Chances are they - included an expectation outside of a "it", "describe", or "context" block. - */ -+ (void)initialize { - [QuickConfiguration initialize]; - - World *world = [World sharedWorld]; - [world performWithCurrentExampleGroup:[world rootExampleGroupForSpecClass:self] closure:^{ - QuickSpec *spec = [self new]; - - @try { - [spec spec]; - } - @catch (NSException *exception) { - [NSException raise:NSInternalInconsistencyException - format:@"An exception occurred when building Quick's example groups.\n" - @"Some possible reasons this might happen include:\n\n" - @"- An 'expect(...).to' expectation was evaluated outside of " - @"an 'it', 'context', or 'describe' block\n" - @"- 'sharedExamples' was called twice with the same name\n" - @"- 'itBehavesLike' was called with a name that is not registered as a shared example\n\n" - @"Here's the original exception: '%@', reason: '%@', userInfo: '%@'", - exception.name, exception.reason, exception.userInfo]; - } - [self testInvocations]; - }]; -} - -/** - Invocations for each test method in the test case. QuickSpec overrides this method to define a - new method for each example defined in +[QuickSpec spec]. - - @return An array of invocations that execute the newly defined example methods. - */ -+ (NSArray *)testInvocations { - NSArray *examples = [[World sharedWorld] examplesForSpecClass:[self class]]; - NSMutableArray *invocations = [NSMutableArray arrayWithCapacity:[examples count]]; - - NSMutableSet *selectorNames = [NSMutableSet set]; - - for (Example *example in examples) { - SEL selector = [self addInstanceMethodForExample:example classSelectorNames:selectorNames]; - - NSMethodSignature *signature = [self instanceMethodSignatureForSelector:selector]; - NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:signature]; - invocation.selector = selector; - - [invocations addObject:invocation]; - } - - return invocations; -} - -#pragma mark - Public Interface - -- (void)spec { } - -+ (QuickSpec*) current { - return currentSpec; -} - -#pragma mark - Internal Methods - -/** - QuickSpec uses this method to dynamically define a new instance method for the - given example. The instance method runs the example, catching any exceptions. - The exceptions are then reported as test failures. - - In order to report the correct file and line number, examples must raise exceptions - containing following keys in their userInfo: - - - "SenTestFilenameKey": A String representing the file name - - "SenTestLineNumberKey": An Int representing the line number - - These keys used to be used by SenTestingKit, and are still used by some testing tools - in the wild. See: https://github.com/Quick/Quick/pull/41 - - @return The selector of the newly defined instance method. - */ -+ (SEL)addInstanceMethodForExample:(Example *)example classSelectorNames:(NSMutableSet *)selectorNames { - IMP implementation = imp_implementationWithBlock(^(QuickSpec *self){ - self.example = example; - currentSpec = self; - [example run]; - }); - - const char *types = [[NSString stringWithFormat:@"%s%s%s", @encode(void), @encode(id), @encode(SEL)] UTF8String]; - - NSString *originalName = [QCKObjCStringUtils c99ExtendedIdentifierFrom:example.name]; - NSString *selectorName = originalName; - NSUInteger i = 2; - - while ([selectorNames containsObject:selectorName]) { - selectorName = [NSString stringWithFormat:@"%@_%tu", originalName, i++]; - } - - [selectorNames addObject:selectorName]; - - SEL selector = NSSelectorFromString(selectorName); - class_addMethod(self, selector, implementation, types); - - return selector; -} - -/** - This method is used to record failures, whether they represent example - expectations that were not met, or exceptions raised during test setup - and teardown. By default, the failure will be reported as an - XCTest failure, and the example will be highlighted in Xcode. - */ -- (void)recordFailureWithDescription:(NSString *)description - inFile:(NSString *)filePath - atLine:(NSUInteger)lineNumber - expected:(BOOL)expected { - if (self.example.isSharedExample) { - filePath = self.example.callsite.file; - lineNumber = self.example.callsite.line; - } - [currentSpec.testRun recordFailureWithDescription:description - inFile:filePath - atLine:lineNumber - expected:expected]; -} - -@end diff --git a/Pods/Quick/Sources/QuickObjectiveC/XCTestSuite+QuickTestSuiteBuilder.m b/Pods/Quick/Sources/QuickObjectiveC/XCTestSuite+QuickTestSuiteBuilder.m deleted file mode 100644 index ae63036..0000000 --- a/Pods/Quick/Sources/QuickObjectiveC/XCTestSuite+QuickTestSuiteBuilder.m +++ /dev/null @@ -1,45 +0,0 @@ -#import -#import - -#if __has_include("Quick-Swift.h") -#import "Quick-Swift.h" -#else -#import -#endif - -@interface XCTestSuite (QuickTestSuiteBuilder) -@end - -@implementation XCTestSuite (QuickTestSuiteBuilder) - -/** - In order to ensure we can correctly build dynamic test suites, we need to - replace some of the default test suite constructors. - */ -+ (void)load { - Method testCaseWithName = class_getClassMethod(self, @selector(testSuiteForTestCaseWithName:)); - Method hooked_testCaseWithName = class_getClassMethod(self, @selector(qck_hooked_testSuiteForTestCaseWithName:)); - method_exchangeImplementations(testCaseWithName, hooked_testCaseWithName); -} - -/** - The `+testSuiteForTestCaseWithName:` method is called when a specific test case - class is run from the Xcode test navigator. If the built test suite is `nil`, - Xcode will not run any tests for that test case. - - Given if the following test case class is run from the Xcode test navigator: - - FooSpec - testFoo - testBar - - XCTest will invoke this once per test case, with test case names following this format: - - FooSpec/testFoo - FooSpec/testBar - */ -+ (nullable instancetype)qck_hooked_testSuiteForTestCaseWithName:(nonnull NSString *)name { - return [QuickTestSuite selectedTestSuiteForTestCaseWithName:name]; -} - -@end diff --git a/Pods/Quick/Sources/QuickSpecBase/QuickSpecBase.m b/Pods/Quick/Sources/QuickSpecBase/QuickSpecBase.m deleted file mode 100644 index 10b6f7e..0000000 --- a/Pods/Quick/Sources/QuickSpecBase/QuickSpecBase.m +++ /dev/null @@ -1,55 +0,0 @@ -#import "QuickSpecBase.h" - -#pragma mark - _QuickSelectorWrapper - -@interface _QuickSelectorWrapper () -@property(nonatomic, assign) SEL selector; -@end - -@implementation _QuickSelectorWrapper - -- (instancetype)initWithSelector:(SEL)selector { - self = [super init]; - _selector = selector; - return self; -} - -@end - - -#pragma mark - _QuickSpecBase - -@implementation _QuickSpecBase - -- (instancetype)init { - self = [super initWithInvocation: nil]; - return self; -} - -/** - Invocations for each test method in the test case. QuickSpec overrides this method to define a - new method for each example defined in +[QuickSpec spec]. - - @return An array of invocations that execute the newly defined example methods. - */ -+ (NSArray *)testInvocations { - NSArray<_QuickSelectorWrapper *> *wrappers = [self _qck_testMethodSelectors]; - NSMutableArray *invocations = [NSMutableArray arrayWithCapacity:wrappers.count]; - - for (_QuickSelectorWrapper *wrapper in wrappers) { - SEL selector = wrapper.selector; - NSMethodSignature *signature = [self instanceMethodSignatureForSelector:selector]; - NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:signature]; - invocation.selector = selector; - - [invocations addObject:invocation]; - } - - return invocations; -} - -+ (NSArray<_QuickSelectorWrapper *> *)_qck_testMethodSelectors { - return @[]; -} - -@end diff --git a/Pods/Quick/Sources/QuickSpecBase/include/QuickSpecBase.h b/Pods/Quick/Sources/QuickSpecBase/include/QuickSpecBase.h deleted file mode 100644 index 8881ca0..0000000 --- a/Pods/Quick/Sources/QuickSpecBase/include/QuickSpecBase.h +++ /dev/null @@ -1,11 +0,0 @@ -#import -#import - -@interface _QuickSelectorWrapper : NSObject -- (instancetype)initWithSelector:(SEL)selector; -@end - -@interface _QuickSpecBase : XCTestCase -+ (NSArray<_QuickSelectorWrapper *> *)_qck_testMethodSelectors; -- (instancetype)init NS_DESIGNATED_INITIALIZER; -@end diff --git a/Pods/RxAppState/LICENSE b/Pods/RxAppState/LICENSE deleted file mode 100644 index 75ac611..0000000 --- a/Pods/RxAppState/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2016 Jörn Schoppe - -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/Pods/RxAppState/Pod/Classes/RxApplicationDelegateProxy.swift b/Pods/RxAppState/Pod/Classes/RxApplicationDelegateProxy.swift deleted file mode 100644 index 1b7060f..0000000 --- a/Pods/RxAppState/Pod/Classes/RxApplicationDelegateProxy.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// RxApplicationDelegateProxy.swift -// UIApplication+Rx -// -// Created by Jörn Schoppe on 29.02.16. -// Copyright © 2015 Jörn Schoppe. All rights reserved. -// - -import RxSwift -import RxCocoa - -open class RxApplicationDelegateProxy: DelegateProxy, DelegateProxyType, UIApplicationDelegate { - - // Typed parent object. - public weak private(set) var application: UIApplication? - - init(application: ParentObject) { - self.application = application - super.init(parentObject: application, delegateProxy: RxApplicationDelegateProxy.self) - } - - public static func registerKnownImplementations() { - self.register { RxApplicationDelegateProxy(application: $0) } - } - - public static func currentDelegate(for object: UIApplication) -> UIApplicationDelegate? { - return object.delegate - } - - public static func setCurrentDelegate(_ delegate: UIApplicationDelegate?, to object: UIApplication) { - object.delegate = delegate - } - - /** - We have to always retain the original delegate here. - - Technically this creates a retain cycle. In this special case that is not a problem - because UIApplication exists as long as the app exists anyway. - - It is necessary to retain the original AppDelegate because when RxApplicationDelegateProxy - replaces the original delegate with the proxy it normally only keeps a weak reference - to the original delegate to forward events to the original delegate. - - For other delegates the original delegate should not be retained because other delegates usually are - owned by another class (often a UIViewController). In case of the default app delegate - it is different because there is no class that owns it. When the application is initialized - the app delegate is explicitly initialized and allocated when UIApplicationMain() is called. - Because of this the first app delegate is released when another object is set as app delegate - - And that makes it necessary to retain the orignal app delegate when the proxy is set - as new delegate. - - Thanks to Michał Ciuba (https://twitter.com/MichalCiuba) who suggested this approach in - his answer to my question on Stack Overflow: - http://stackoverflow.com/questions/35575305/transform-uiapplicationdelegate-methods-into-rxswift-observables - */ - override open func setForwardToDelegate(_ forwardToDelegate: UIApplicationDelegate?, retainDelegate: Bool) { - super.setForwardToDelegate(forwardToDelegate, retainDelegate: true) - } - -} diff --git a/Pods/RxAppState/Pod/Classes/UIApplication+Rx.swift b/Pods/RxAppState/Pod/Classes/UIApplication+Rx.swift deleted file mode 100644 index 9de19c8..0000000 --- a/Pods/RxAppState/Pod/Classes/UIApplication+Rx.swift +++ /dev/null @@ -1,389 +0,0 @@ -// -// UIApplication+Rx.swift -// Pods -// -// Created by Jörn Schoppe on 29.02.16. -// Copyright © 2015 Jörn Schoppe. All rights reserved. -// - -import RxSwift -import RxCocoa - -/** - UIApplication states - - There are two more app states in the Apple Docs ("Not running" and "Suspended"). - I decided to ignore those two states because there are no UIApplicationDelegate - methods for those states. - - +------------------------------------------------+ - | active | - +------------------------------------------------+ - ^ | - | | - didBecomeActive willResignActive - | | - | v - +------------------------------------------------+ - | inactive | - +------------------------------------------------+ - ^ | - | | - willEnterForeground didEnterBackground - | | - | v - +------------------------------------------------+ - | background | - +------------------------------------------------+ - | - | - willTerminate - | - v - +------------------------------------------------+ - | terminated | - +------------------------------------------------+ - - */ -public enum AppState: Equatable { - /** - The application is running in the foreground. - */ - case active - /** - The application is running in the foreground but not receiving events. - Possible reasons: - - The user has opens Notification Center or Control Center - - The user receives a phone call - - A system prompt is shown (e.g. Request to allow Push Notifications) - */ - case inactive - /** - The application is in the background because the user closed it. - */ - case background - /** - The application is about to be terminated by the system - */ - case terminated -} - -/** - Stores the current and the previous App version - */ -public struct AppVersion: Equatable { - public let previous: String - public let current: String -} - -public struct RxAppState { - /** - Allows for the app version to be stored by default in the main bundle from `CFBundleShortVersionString` or - a custom implementation per app. - */ - public static var currentAppVersion = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String -} - -extension RxSwift.Reactive where Base: UIApplication { - - /** - Keys for NSUserDefaults - */ - fileprivate struct DefaultName { - static var didOpenAppCount: String { return "RxAppState_numDidOpenApp" } - static var previousAppVersion: String { return "RxAppState_previousAppVersion" } - static var currentAppVersion: String { return "RxAppState_currentAppVersion" } - } - - /** - Reactive wrapper for `delegate`. - - For more information take a look at `DelegateProxyType` protocol documentation. - */ - public var delegate: DelegateProxy { - return RxApplicationDelegateProxy.proxy(for: base) - } - - /** - Reactive wrapper for `delegate` message `applicationWillEnterForeground(_:)`. - */ - public var applicationWillEnterForeground: Observable { - return delegate.methodInvoked(#selector(UIApplicationDelegate.applicationWillEnterForeground(_:))) - .map { _ in - return .inactive - } - } - - /** - Reactive wrapper for `delegate` message `applicationDidBecomeActive(_:)`. - */ - public var applicationDidBecomeActive: Observable { - return delegate.methodInvoked(#selector(UIApplicationDelegate.applicationDidBecomeActive(_:))) - .map { _ in - return .active - } - } - - /** - Reactive wrapper for `delegate` message `applicationDidEnterBackground(_:)`. - */ - public var applicationDidEnterBackground: Observable { - return delegate.methodInvoked(#selector(UIApplicationDelegate.applicationDidEnterBackground(_:))) - .map { _ in - return .background - } - } - - /** - Reactive wrapper for `delegate` message `applicationWillResignActive(_:)`. - */ - public var applicationWillResignActive: Observable { - return delegate.methodInvoked(#selector(UIApplicationDelegate.applicationWillResignActive(_:))) - .map { _ in - return .inactive - } - } - - /** - Reactive wrapper for `delegate` message `applicationWillTerminate(_:)`. - */ - public var applicationWillTerminate: Observable { - return delegate.methodInvoked(#selector(UIApplicationDelegate.applicationWillTerminate(_:))) - .map { _ in - return .terminated - } - } - - /** - Observable sequence of the application's state - - This gives you an observable sequence of all possible application states. - - - returns: Observable sequence of AppStates - */ - public var appState: Observable { - return Observable.of( - applicationDidBecomeActive, - applicationWillResignActive, - applicationWillEnterForeground, - applicationDidEnterBackground, - applicationWillTerminate - ) - .merge() - } - - /** - Observable sequence that emits a value whenever the user opens the app - - This is a handy sequence if you want to run some code everytime - the user opens the app. - It ignores `applicationDidBecomeActive(_:)` calls when the app was not - in the background but only in inactive state (because the user - opened control center or received a call). - - Typical use cases: - - Track when the user opens the app. - - Refresh data on app start - - - returns: Observable sequence of Void - */ - public var didOpenApp: Observable { - return Observable.of( - applicationDidBecomeActive, - applicationDidEnterBackground - ) - .merge() - .distinctUntilChanged() - .filter { $0 == .active } - .map { _ in - return - } - } - - /** - Observable sequence that emits the number of times a user has opened the app - - This is a handy sequence if you want to know how many times the user has opened your app - - Typical use cases: - - Ask a user to review your app after when he opens it for the 10th time - - Track the number of times a user has opened the app - - -returns: Observable sequence of Int - */ - public var didOpenAppCount: Observable { - return base._sharedRxAppState.didOpenAppCount - } - - /** - Observable sequence that emits if the app is opened for the first time when the user opens the app - - This is a handy sequence for all the times you want to run some code only - when the app is launched for the first time - - Typical use case: - - Show a tutorial to a new user - - -returns: Observable sequence of Bool - */ - public var isFirstLaunch: Observable { - return base._sharedRxAppState.isFirstLaunch - } - - /** - Observable sequence that emits the previous and the current app version string everytime - the user opens the app - - This is a handy sequence for all the times you want to know from what previous - app version a user updated the app. - - Typical use case: - - Show a what features are new to a user after an update - - -returns: Observable sequence of AppVersion - */ - public var appVersion: Observable { - return base._sharedRxAppState.appVersion - } - - /** - Observable sequence that emits if the app is opened for the first time after an app has updated when the user - opens the app. This does not occur on first launch of a new app install. See `isFirstLaunch` for that. - - This is a handy sequence for all the times you want to run some code only when the app is launched for the - first time after an update. - - Typical use case: - - Show a what's new dialog to users, or prompt review or signup - - -returns: Observable sequence of Bool - */ - public var isFirstLaunchOfNewVersion: Observable { - return base._sharedRxAppState.isFirstLaunchOfNewVersion - } - - /** - Observable sequence that emits the app's previous and the current version string if the app - is opened for the first time after an update - - This is a handy sequence for all the times you want to run some code only when a new version of the app - is launched for the first time - - Typical use case: - - Show a what's new dialog to users, or prompt review or signup - - -returns: Observable sequence of AppVersion - */ - public var firstLaunchOfNewVersionOnly: Observable { - return base._sharedRxAppState.firstLaunchOfNewVersionOnly - } - - /** - Observable sequence that just emits one value if the app is opened for the first time - or completes empty if the app has been opened before - - This is a handy sequence for all the times you want to run some code only - when the app is launched for the first time - - Typical use case: - - Show a tutorial to a new user - - -returns: Observable sequence of Void - */ - public var firstLaunchOnly: Observable { - return base._sharedRxAppState.firstLaunchOnly - } - -} - -fileprivate struct _SharedRxAppState { - typealias DefaultName = Reactive.DefaultName - - let rx: Reactive - let disposeBag = DisposeBag() - - init(_ application: UIApplication) { - rx = application.rx - rx.didOpenApp - .subscribe(onNext: updateAppStats) - .disposed(by: disposeBag) - } - - private func updateAppStats() { - let userDefaults = UserDefaults.standard - - var count = userDefaults.integer(forKey: DefaultName.didOpenAppCount) - count = min(count + 1, Int.max - 1) - userDefaults.set(count, forKey: DefaultName.didOpenAppCount) - - let previousAppVersion = userDefaults.string(forKey: DefaultName.currentAppVersion) ?? RxAppState.currentAppVersion - let currentAppVersion = RxAppState.currentAppVersion - userDefaults.set(previousAppVersion, forKey: DefaultName.previousAppVersion) - userDefaults.set(currentAppVersion, forKey: DefaultName.currentAppVersion) - } - - lazy var didOpenAppCount: Observable = rx.didOpenApp - .map { _ in - return UserDefaults.standard.integer(forKey: DefaultName.didOpenAppCount) - } - .share(replay: 1, scope: .forever) - - lazy var isFirstLaunch: Observable = rx.didOpenApp - .map { _ in - let didOpenAppCount = UserDefaults.standard.integer(forKey: DefaultName.didOpenAppCount) - return didOpenAppCount == 1 - } - .share(replay: 1, scope: .forever) - - lazy var firstLaunchOnly: Observable = rx.isFirstLaunch - .filter { $0 } - .map { _ in return } - - lazy var appVersion: Observable = rx.didOpenApp - .map { _ in - let userDefaults = UserDefaults.standard - let currentVersion: String = userDefaults.string(forKey: DefaultName.currentAppVersion) ?? RxAppState.currentAppVersion ?? "" - let previousVersion: String = userDefaults.string(forKey: DefaultName.previousAppVersion) ?? currentVersion - return AppVersion(previous: previousVersion, current: currentVersion) - } - .share(replay: 1, scope: .forever) - - lazy var isFirstLaunchOfNewVersion: Observable = appVersion - .map { version in - return version.previous != version.current - } - - lazy var firstLaunchOfNewVersionOnly: Observable = appVersion - .filter { $0.previous != $0.current } -} - -private var _sharedRxAppStateKey: UInt8 = 0 -extension UIApplication { - fileprivate var _sharedRxAppState: _SharedRxAppState { - get { - if let stored = objc_getAssociatedObject(self, &_sharedRxAppStateKey) as? _SharedRxAppState { - return stored - } - let defaultValue = _SharedRxAppState(self) - self._sharedRxAppState = defaultValue - return defaultValue - } - set { - objc_setAssociatedObject(self, &_sharedRxAppStateKey, - newValue, - .OBJC_ASSOCIATION_RETAIN_NONATOMIC) - } - } -} - -extension RxAppState { - /** - For testing purposes - */ - internal static func clearSharedObservables() { - objc_setAssociatedObject(UIApplication.shared, - &_sharedRxAppStateKey, - nil, - .OBJC_ASSOCIATION_RETAIN_NONATOMIC) - } -} diff --git a/Pods/RxAppState/Pod/Classes/UIViewController+Rx.swift b/Pods/RxAppState/Pod/Classes/UIViewController+Rx.swift deleted file mode 100644 index dbf5683..0000000 --- a/Pods/RxAppState/Pod/Classes/UIViewController+Rx.swift +++ /dev/null @@ -1,77 +0,0 @@ -// -// UIViewController+Rx.swift -// Pods-RxAppState_Example -// -// Created by Jörn Schoppe on 28.10.17. -// - -import RxSwift -import RxCocoa - -/** - ViewController view states -*/ -public enum ViewControllerViewState: Equatable { - case viewWillAppear - case viewDidAppear - case viewWillDisappear - case viewDidDisappear - case viewDidLoad - case viewDidLayoutSubviews -} - -/** - UIViewController view state changes. - Emits a Bool value indicating whether the change was animated or not - */ - -extension RxSwift.Reactive where Base: UIViewController { - public var viewDidLoad: Observable { - return methodInvoked(#selector(UIViewController.viewDidLoad)) - .map { _ in return } - } - - public var viewDidLayoutSubviews: Observable { - return methodInvoked(#selector(UIViewController.viewDidLayoutSubviews)) - .map { _ in return } - } - - public var viewWillAppear: Observable { - return methodInvoked(#selector(UIViewController.viewWillAppear)) - .map { $0.first as? Bool ?? false } - } - - public var viewDidAppear: Observable { - return methodInvoked(#selector(UIViewController.viewDidAppear)) - .map { $0.first as? Bool ?? false } - } - - public var viewWillDisappear: Observable { - return methodInvoked(#selector(UIViewController.viewWillDisappear)) - .map { $0.first as? Bool ?? false } - } - - public var viewDidDisappear: Observable { - return methodInvoked(#selector(UIViewController.viewDidDisappear)) - .map { $0.first as? Bool ?? false } - } - - /** - Observable sequence of the view controller's view state - - This gives you an observable sequence of all possible states. - - - returns: Observable sequence of AppStates - */ - public var viewState: Observable { - return Observable.of( - viewDidLoad.map {_ in return ViewControllerViewState.viewDidLoad }, - viewDidLayoutSubviews.map {_ in return ViewControllerViewState.viewDidLayoutSubviews }, - viewWillAppear.map {_ in return ViewControllerViewState.viewWillAppear }, - viewDidAppear.map {_ in return ViewControllerViewState.viewDidAppear }, - viewWillDisappear.map {_ in return ViewControllerViewState.viewWillDisappear }, - viewDidDisappear.map {_ in return ViewControllerViewState.viewDidDisappear } - ) - .merge() - } -} diff --git a/Pods/RxAppState/README.md b/Pods/RxAppState/README.md deleted file mode 100644 index 17a782d..0000000 --- a/Pods/RxAppState/README.md +++ /dev/null @@ -1,198 +0,0 @@ -# RxAppState - -[![CI Status](http://img.shields.io/travis/pixeldock/RxAppState.svg?style=flat)](https://travis-ci.org/pixeldock/RxAppState) -[![Platform](https://img.shields.io/cocoapods/p/RxAppState.svg?style=flat)](http://cocoapods.org/pods/RxAppState) -[![Version](https://img.shields.io/cocoapods/v/RxAppState.svg?style=flat)](http://cocoapods.org/pods/RxAppState) -[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) -[![Swift](https://img.shields.io/badge/Swift-5-orange.svg?style=flat)](https://swift.org/) -[![Xcode](https://img.shields.io/badge/xcode-10.2-5995EE.svg?style=flat)](https://developer.apple.com) -[![License](https://img.shields.io/cocoapods/l/RxAppState.svg?style=flat)](http://cocoapods.org/pods/RxAppState) -[![Twitter](https://img.shields.io/badge/Twitter-@pixeldock-5E9FE5.svg?logo=twitter)](http://twitter.com/pixeldock) -[![Blog](https://img.shields.io/badge/Blog-pixeldock-FF0066.svg?style=flat)](http://pixeldock.com/blog) - -A collection of handy RxSwift Observables that let you observe all the changes in your Application's state and your UIViewController view-related notifications. - -## About -### Application states -In almost every app there is some code that you want to run each time a user opens the app. For example you want to refresh some data or track that the user opened your app. - -**UIApplicationDelegate** offers two methods that you could use to run the code when the user opens the app: _applicationWillEnterForeground_ and _applicationDidBecomeActive_. But either of these methods is not ideal for this case: - -_applicationWillEnterForeground_ is not called the first time your app is launched. It is only called when the app was in the background and then enters the foreground. At first launch the app is not in the background state so this methods does not get called. - -_applicationDidBecomeActive_ does get called when the app is launched for the first time but is also called when the app becomes active after being in inactive state. That happens everytime the user opens Control Center, Notification Center, receives a phone call or a system prompt is shown (e.g. to ask the user for permission to send remote notifications). So if you put your code in _applicationDidBecomeActive_ it will not only get called when the user opens the app but also in all those cases mentioned above. - -So to really run your code only when your user opens the app you need to keep track of the app's state. You would probably implement something like this: - -```swift -class AppDelegate: UIResponder, UIApplicationDelegate { - var window: UIWindow? - var didEnterBackground = true - ... - func applicationDidEnterBackground(_ application: UIApplication) { - didEnterBackground = true - } - func applicationDidBecomeActive(_ application: UIApplication) { - if didEnterBackground { - // run your code - didEnterBackground = false - } - } - ... -} -``` -This is not a big problem, but it is not a very elegant approach. And you have to set the inital value of _didEnterBackground_ to _true_ to run your code after the first launch (see above), even if the app never has been to the background. Call me picky, but I don't like that. - -**RxAppState to the rescue!** -With RxAppState you can simply do the following: - -```swift -UIApplication.shared.rx.didOpenApp - .subscribe(onNext: { _ in - // run your code - }) - .disposed(by: disposeBag) -``` -This runs your code whenever the user opens the app. It includes the first launch of the app and ignores the cases when the app enters active state without having been in background state before (like when the user just opened Control Center or received a phone call) - -**And there is more!** -You want to show your user a tutorial when he first launches the app? And you only want to show it after the first launch and never again? No problem: - -```swift -UIApplication.shared.rx.firstLaunchOnly - .subscribe(onNext: { _ in - // run your code - }) - .disposed(by: disposeBag) -``` -You want to show your user what features are new when he opens the app for the first time after an update? - -```swift -UIApplication.shared.rx.firstLaunchOfNewVersionOnly - .subscribe(onNext: { version in - let previousAppVersion = version.previous - let currentAppVersion = version.current - // show what has changed between - // the previous and the current version - }) - .disposed(by: disposeBag) -``` - -You want check the previous and the current app version each time the user opens the app? - -```swift -UIApplication.shared.rx.appVersion - .subscribe(onNext: { version in - let previousAppVersion = version.previous - let currentAppVersion = version.current - // run your code - }) - .disposed(by: disposeBag) -``` - -You want to keep track of how many times the user has opened your app? Simply do this: - -```swift -UIApplication.shared.rx.didOpenAppCount - .subscribe(onNext: { count in - print("app opened \(count) times") - }) - .disposed(by: disposeBag) -``` - -**The cherry on top:** -This code does not have to live in your AppDelegate. You could put it anywhere you like in your app! So don't clutter your AppDelegate with this code, put it somewhere else! - -### ViewController view-related notifications - -You can also use Observables to subscribe to your view controllers' view-related notifications: - -Do do something when your view controller's `viewDidAppear:` method is called you can do this in your view controller class: - -```swift -rx.viewDidAppear - .subscribe(onNext: { animated in - // do something - }) - .disposed(by: disposeBag) -``` - -If you want to do something only when the view appeared for the first time you can easily do it like this: - -```swift -rx.viewDidAppear - .take(1) - .subscribe(onNext: { animated in - // do something - }) - .disposed(by: disposeBag) -``` - -You can also directly bind you view controller's view state to another object: - -```swift -rx.viewWillDisappear - .bind(to: viewModel.saveChanges) - .disposed(by: disposeBag) -``` - - -## Example -There is a simple example project to demonstrate how to use RxAppDelegate. - -## Requirements -iOS 8 or greater -Swift 5 -Xcode 10.2 - -If you are using Swift 3.x please use RxAppState version 0.3.4 -If you are using Swift 4.0 please use RxAppState version 1.1.1 -If you are using Swift 4.1 please use RxAppState version 1.1.2 -If you are using Swift 4.2 please use RxAppState version 1.4.1 - - -## Dependencies -RxSwift 4.4 -RxCocoa 4.4 - -## Integration -### CocoaPods -`RxAppState` is available through [CocoaPods](http://cocoapods.org). To install -it, simply add the following line to your `Podfile`: - -```ruby -pod "RxAppState" -``` - -If Xcode complains about Swift versions add this to the end of your Podfile: - -```ruby -post_install do |installer| - installer.pods_project.targets.each do |target| - target.build_configurations.each do |config| - config.build_settings['SWIFT_VERSION'] = '5.0' - end - end -end -``` - -### Carthage - -You can use [Carthage](https://github.com/Carthage/Carthage) to install `RxAppState` by adding it to your `Cartfile`: - -``` -github "pixeldock/RxAppState" -``` - -## Author - -Jörn Schoppe, -joern@pixeldock.com - -[![Twitter](https://img.shields.io/badge/Twitter-@pixeldock-blue.svg?style=flat)](http://twitter.com/pixeldock) -[![Blog](https://img.shields.io/badge/Blog-pixeldock-FF0066.svg?style=flat)](http://pixeldock.com/blog) - - -## License - -RxAppState is available under the MIT license. See the LICENSE file for more info. diff --git a/Pods/RxAtomic/LICENSE.md b/Pods/RxAtomic/LICENSE.md deleted file mode 100644 index d6765d9..0000000 --- a/Pods/RxAtomic/LICENSE.md +++ /dev/null @@ -1,9 +0,0 @@ -**The MIT License** -**Copyright © 2015 Krunoslav Zaher** -**All rights reserved.** - -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. \ No newline at end of file diff --git a/Pods/RxAtomic/README.md b/Pods/RxAtomic/README.md deleted file mode 100644 index 9bce47c..0000000 --- a/Pods/RxAtomic/README.md +++ /dev/null @@ -1,217 +0,0 @@ -Miss Electric Eel 2016 RxSwift: ReactiveX for Swift -====================================== - -[![Travis CI](https://travis-ci.org/ReactiveX/RxSwift.svg?branch=master)](https://travis-ci.org/ReactiveX/RxSwift) ![platforms](https://img.shields.io/badge/platforms-iOS%20%7C%20macOS%20%7C%20tvOS%20%7C%20watchOS%20%7C%20Linux-333333.svg) [![pod](https://img.shields.io/cocoapods/v/RxSwift.svg)](https://cocoapods.org/pods/RxSwift) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![Swift Package Manager compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg)](https://github.com/apple/swift-package-manager) - -* RxSwift 3.x / Swift 3.x can be found in [**rxswift-3.0** branch](https://github.com/ReactiveX/RxSwift/tree/rxswift-3.0). - -Rx is a [generic abstraction of computation](https://youtu.be/looJcaeboBY) expressed through `Observable` interface. - -This is a Swift version of [Rx](https://github.com/Reactive-Extensions/Rx.NET). - -It tries to port as many concepts from the original version as possible, but some concepts were adapted for more pleasant and performant integration with iOS/macOS environment. - -Cross platform documentation can be found on [ReactiveX.io](http://reactivex.io/). - -Like the original Rx, its intention is to enable easy composition of asynchronous operations and event/data streams. - -KVO observing, async operations and streams are all unified under [abstraction of sequence](Documentation/GettingStarted.md#observables-aka-sequences). This is the reason why Rx is so simple, elegant and powerful. - -## I came here because I want to ... - -###### ... understand - -* [why use rx?](Documentation/Why.md) -* [the basics, getting started with RxSwift](Documentation/GettingStarted.md) -* [traits](Documentation/Traits.md) - what are `Single`, `Completable`, `Maybe`, `Driver`, and `ControlProperty` ... and why do they exist? -* [testing](Documentation/UnitTests.md) -* [tips and common errors](Documentation/Tips.md) -* [debugging](Documentation/GettingStarted.md#debugging) -* [the math behind Rx](Documentation/MathBehindRx.md) -* [what are hot and cold observable sequences?](Documentation/HotAndColdObservables.md) - -###### ... install - -* Integrate RxSwift/RxCocoa with my app. [Installation Guide](#installation) - -###### ... hack around - -* with the example app. [Running Example App](Documentation/ExampleApp.md) -* with operators in playgrounds. [Playgrounds](Documentation/Playgrounds.md) - -###### ... interact - -* All of this is great, but it would be nice to talk with other people using RxSwift and exchange experiences.
[![Slack channel](http://rxswift-slack.herokuapp.com/badge.svg)](http://slack.rxswift.org) [Join Slack Channel](http://slack.rxswift.org) -* Report a problem using the library. [Open an Issue With Bug Template](.github/ISSUE_TEMPLATE.md) -* Request a new feature. [Open an Issue With Feature Request Template](Documentation/NewFeatureRequestTemplate.md) -* Help out [Check out contribution guide](CONTRIBUTING.md) - -###### ... compare - -* [with other libraries](Documentation/ComparisonWithOtherLibraries.md). - - -###### ... find compatible - -* libraries from [RxSwiftCommunity](https://github.com/RxSwiftCommunity). -* [Pods using RxSwift](https://cocoapods.org/?q=uses%3Arxswift). - -###### ... see the broader vision - -* Does this exist for Android? [RxJava](https://github.com/ReactiveX/RxJava) -* Where is all of this going, what is the future, what about reactive architectures, how do you design entire apps this way? [Cycle.js](https://github.com/cyclejs/cycle-core) - this is javascript, but [RxJS](https://github.com/Reactive-Extensions/RxJS) is javascript version of Rx. - -## Usage - - - - - - - - - - - - - - - - - - - -
Here's an exampleIn Action
Define search for GitHub repositories ...
-let searchResults = searchBar.rx.text.orEmpty
-    .throttle(0.3, scheduler: MainScheduler.instance)
-    .distinctUntilChanged()
-    .flatMapLatest { query -> Observable<[Repository]> in
-        if query.isEmpty {
-            return .just([])
-        }
-        return searchGitHub(query)
-            .catchErrorJustReturn([])
-    }
-    .observeOn(MainScheduler.instance)
... then bind the results to your tableview
-searchResults
-    .bind(to: tableView.rx.items(cellIdentifier: "Cell")) {
-        (index, repository: Repository, cell) in
-        cell.textLabel?.text = repository.name
-        cell.detailTextLabel?.text = repository.url
-    }
-    .disposed(by: disposeBag)
- - -## Requirements - -* Xcode 9.0 -* Swift 4.0 -* Swift 3.x ([use `rxswift-3.0` branch](https://github.com/ReactiveX/RxSwift/tree/rxswift-3.0) instead) -* Swift 2.3 ([use `rxswift-2.0` branch](https://github.com/ReactiveX/RxSwift/tree/rxswift-2.0) instead) - -## Installation - -Rx doesn't contain any external dependencies. - -These are currently the supported options: - -### Manual - -Open Rx.xcworkspace, choose `RxExample` and hit run. This method will build everything and run the sample app - -### [CocoaPods](https://guides.cocoapods.org/using/using-cocoapods.html) - -**Tested with `pod --version`: `1.3.1`** - -```ruby -# Podfile -use_frameworks! - -target 'YOUR_TARGET_NAME' do - pod 'RxSwift', '~> 4.0' - pod 'RxCocoa', '~> 4.0' -end - -# RxTest and RxBlocking make the most sense in the context of unit/integration tests -target 'YOUR_TESTING_TARGET' do - pod 'RxBlocking', '~> 4.0' - pod 'RxTest', '~> 4.0' -end -``` - -Replace `YOUR_TARGET_NAME` and then, in the `Podfile` directory, type: - -```bash -$ pod install -``` - -### [Carthage](https://github.com/Carthage/Carthage) - -**Tested with `carthage version`: `0.26.2`** - -Add this to `Cartfile` - -``` -github "ReactiveX/RxSwift" ~> 4.0 -``` - -```bash -$ carthage update -``` - -### [Swift Package Manager](https://github.com/apple/swift-package-manager) - -**Tested with `swift build --version`: `Swift 4.0.0-dev (swiftpm-13126)`** - -Create a `Package.swift` file. - -```swift -// swift-tools-version:4.0 - -import PackageDescription - -let package = Package( - name: "RxTestProject", - dependencies: [ - .package(url: "https://github.com/ReactiveX/RxSwift.git", "4.0.0" ..< "5.0.0") - ], - targets: [ - .target(name: "RxTestProject", dependencies: ["RxSwift", "RxCocoa"]) - ] -) -``` - -```bash -$ swift build -``` - -To build or test a module with RxTest dependency, set `TEST=1`. ([RxSwift >= 3.4.2](https://github.com/ReactiveX/RxSwift/releases/tag/3.4.2)) - -```bash -$ TEST=1 swift test -``` - -### Manually using git submodules - -* Add RxSwift as a submodule - -```bash -$ git submodule add git@github.com:ReactiveX/RxSwift.git -``` - -* Drag `Rx.xcodeproj` into Project Navigator -* Go to `Project > Targets > Build Phases > Link Binary With Libraries`, click `+` and select `RxSwift-[Platform]` and `RxCocoa-[Platform]` targets - - -## References - -* [http://reactivex.io/](http://reactivex.io/) -* [Reactive Extensions GitHub (GitHub)](https://github.com/Reactive-Extensions) -* [RxSwift RayWenderlich.com Book](https://store.raywenderlich.com/products/rxswift-reactive-programming-with-swift) -* [Boxue.io RxSwift Online Course](https://boxueio.com/series/rxswift-101) (Chinese 🇨🇳) -* [Erik Meijer (Wikipedia)](http://en.wikipedia.org/wiki/Erik_Meijer_%28computer_scientist%29) -* [Expert to Expert: Brian Beckman and Erik Meijer - Inside the .NET Reactive Framework (Rx) (video)](https://youtu.be/looJcaeboBY) -* [Reactive Programming Overview (Jafar Husain from Netflix)](https://www.youtube.com/watch?v=dwP1TNXE6fc) -* [Subject/Observer is Dual to Iterator (paper)](http://csl.stanford.edu/~christos/pldi2010.fit/meijer.duality.pdf) -* [Rx standard sequence operators visualized (visualization tool)](http://rxmarbles.com/) -* [Haskell](https://www.haskell.org/) diff --git a/Pods/RxAtomic/RxAtomic/RxAtomic.c b/Pods/RxAtomic/RxAtomic/RxAtomic.c deleted file mode 100644 index 5ec86f5..0000000 --- a/Pods/RxAtomic/RxAtomic/RxAtomic.c +++ /dev/null @@ -1,7 +0,0 @@ -// -// RxAtomic.c -// RxAtomic -// -// Created by Krunoslav Zaher on 10/28/18. -// Copyright © 2018 Krunoslav Zaher. All rights reserved. -// diff --git a/Pods/RxAtomic/RxAtomic/include/RxAtomic.h b/Pods/RxAtomic/RxAtomic/include/RxAtomic.h deleted file mode 100644 index 7c205d9..0000000 --- a/Pods/RxAtomic/RxAtomic/include/RxAtomic.h +++ /dev/null @@ -1,73 +0,0 @@ -// -// RxAtomic.h -// RxAtomic -// -// Created by Krunoslav Zaher on 10/28/18. -// Copyright © 2018 Krunoslav Zaher. All rights reserved. -// - -#ifndef RxAtomic_h -#define RxAtomic_h - -#include - -#define SWIFT_NAME(_name) __attribute__((swift_name(#_name))) - -#define Atomic(swift_type, llvm_type) \ - typedef struct { volatile atomic_##llvm_type atom; } Atomic##swift_type;\ - static __inline__ __attribute__((__always_inline__)) SWIFT_NAME(Atomic##swift_type.initialize(_:_:)) \ - void Atomic##swift_type##_Initialize(Atomic##swift_type * _Nonnull self, llvm_type value) { \ - atomic_init(&self->atom, value);\ - }\ - \ - static __inline__ __attribute__((__always_inline__)) SWIFT_NAME(Atomic##swift_type.load(_:)) \ - llvm_type Atomic##swift_type##_Load(Atomic##swift_type * _Nonnull self) { \ - return atomic_load(&self->atom);\ - }\ - \ - static __inline__ __attribute__((__always_inline__)) SWIFT_NAME(Atomic##swift_type.fetchOr(_:_:)) \ - llvm_type Atomic##swift_type##_FetchOr(Atomic##swift_type * _Nonnull self, llvm_type mask) { \ - return atomic_fetch_or(&self->atom, mask);\ - }\ - \ - static __inline__ __attribute__((__always_inline__)) SWIFT_NAME(Atomic##swift_type.add(_:_:)) \ - llvm_type Atomic##swift_type##_Add(Atomic##swift_type * _Nonnull self, llvm_type value) { \ - return atomic_fetch_add(&self->atom, value);\ - }\ - \ - static __inline__ __attribute__((__always_inline__)) SWIFT_NAME(Atomic##swift_type.sub(_:_:)) \ - llvm_type Atomic##swift_type##_Sub(Atomic##swift_type * _Nonnull self, llvm_type value) { \ - return atomic_fetch_sub(&self->atom, value);\ - }\ - \ - static __inline__ __attribute__((__always_inline__)) \ - void Atomic##swift_type##_initialize(Atomic##swift_type * _Nonnull self, llvm_type value) { \ - atomic_init(&self->atom, value);\ - }\ - \ - static __inline__ __attribute__((__always_inline__)) \ - llvm_type Atomic##swift_type##_load(Atomic##swift_type * _Nonnull self) { \ - return atomic_load(&self->atom);\ - }\ - \ - static __inline__ __attribute__((__always_inline__)) \ - llvm_type Atomic##swift_type##_fetchOr(Atomic##swift_type * _Nonnull self, llvm_type mask) { \ - return atomic_fetch_or(&self->atom, mask);\ - }\ - \ - static __inline__ __attribute__((__always_inline__)) \ - llvm_type Atomic##swift_type##_add(Atomic##swift_type * _Nonnull self, llvm_type value) { \ - return atomic_fetch_add(&self->atom, value);\ - }\ - \ - static __inline__ __attribute__((__always_inline__)) \ - llvm_type Atomic##swift_type##_sub(Atomic##swift_type * _Nonnull self, llvm_type value) { \ - return atomic_fetch_sub(&self->atom, value);\ - }\ - \ - -Atomic(Int, int) - -#undef SWIFT_NAME - -#endif /* RxAtomic_h */ diff --git a/Pods/RxBlocking/LICENSE.md b/Pods/RxBlocking/LICENSE.md deleted file mode 100644 index d6765d9..0000000 --- a/Pods/RxBlocking/LICENSE.md +++ /dev/null @@ -1,9 +0,0 @@ -**The MIT License** -**Copyright © 2015 Krunoslav Zaher** -**All rights reserved.** - -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. \ No newline at end of file diff --git a/Pods/RxBlocking/Platform/AtomicInt.swift b/Pods/RxBlocking/Platform/AtomicInt.swift deleted file mode 100644 index d8d9580..0000000 --- a/Pods/RxBlocking/Platform/AtomicInt.swift +++ /dev/null @@ -1,71 +0,0 @@ -// -// AtomicInt.swift -// Platform -// -// Created by Krunoslav Zaher on 10/28/18. -// Copyright © 2018 Krunoslav Zaher. All rights reserved. -// - -import class Foundation.NSLock - -final class AtomicInt: NSLock { - fileprivate var value: Int32 - public init(_ value: Int32 = 0) { - self.value = value - } -} - -@discardableResult -@inline(__always) -func add(_ this: AtomicInt, _ value: Int32) -> Int32 { - this.lock() - let oldValue = this.value - this.value += value - this.unlock() - return oldValue -} - -@discardableResult -@inline(__always) -func sub(_ this: AtomicInt, _ value: Int32) -> Int32 { - this.lock() - let oldValue = this.value - this.value -= value - this.unlock() - return oldValue -} - -@discardableResult -@inline(__always) -func fetchOr(_ this: AtomicInt, _ mask: Int32) -> Int32 { - this.lock() - let oldValue = this.value - this.value |= mask - this.unlock() - return oldValue -} - -@inline(__always) -func load(_ this: AtomicInt) -> Int32 { - this.lock() - let oldValue = this.value - this.unlock() - return oldValue -} - -@discardableResult -@inline(__always) -func increment(_ this: AtomicInt) -> Int32 { - return add(this, 1) -} - -@discardableResult -@inline(__always) -func decrement(_ this: AtomicInt) -> Int32 { - return sub(this, 1) -} - -@inline(__always) -func isFlagSet(_ this: AtomicInt, _ mask: Int32) -> Bool { - return (load(this) & mask) != 0 -} diff --git a/Pods/RxBlocking/Platform/DataStructures/Bag.swift b/Pods/RxBlocking/Platform/DataStructures/Bag.swift deleted file mode 100644 index 4ad0a2b..0000000 --- a/Pods/RxBlocking/Platform/DataStructures/Bag.swift +++ /dev/null @@ -1,187 +0,0 @@ -// -// Bag.swift -// Platform -// -// Created by Krunoslav Zaher on 2/28/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import Swift - -let arrayDictionaryMaxSize = 30 - -struct BagKey { - /** - Unique identifier for object added to `Bag`. - - It's underlying type is UInt64. If we assume there in an idealized CPU that works at 4GHz, - it would take ~150 years of continuous running time for it to overflow. - */ - fileprivate let rawValue: UInt64 -} - -/** -Data structure that represents a bag of elements typed `T`. - -Single element can be stored multiple times. - -Time and space complexity of insertion and deletion is O(n). - -It is suitable for storing small number of elements. -*/ -struct Bag : CustomDebugStringConvertible { - /// Type of identifier for inserted elements. - typealias KeyType = BagKey - - typealias Entry = (key: BagKey, value: T) - - fileprivate var _nextKey: BagKey = BagKey(rawValue: 0) - - // data - - // first fill inline variables - var _key0: BagKey? - var _value0: T? - - // then fill "array dictionary" - var _pairs = ContiguousArray() - - // last is sparse dictionary - var _dictionary: [BagKey: T]? - - var _onlyFastPath = true - - /// Creates new empty `Bag`. - init() { - } - - /** - Inserts `value` into bag. - - - parameter element: Element to insert. - - returns: Key that can be used to remove element from bag. - */ - mutating func insert(_ element: T) -> BagKey { - let key = _nextKey - - _nextKey = BagKey(rawValue: _nextKey.rawValue &+ 1) - - if _key0 == nil { - _key0 = key - _value0 = element - return key - } - - _onlyFastPath = false - - if _dictionary != nil { - _dictionary![key] = element - return key - } - - if _pairs.count < arrayDictionaryMaxSize { - _pairs.append((key: key, value: element)) - return key - } - - _dictionary = [key: element] - - return key - } - - /// - returns: Number of elements in bag. - var count: Int { - let dictionaryCount: Int = _dictionary?.count ?? 0 - return (_value0 != nil ? 1 : 0) + _pairs.count + dictionaryCount - } - - /// Removes all elements from bag and clears capacity. - mutating func removeAll() { - _key0 = nil - _value0 = nil - - _pairs.removeAll(keepingCapacity: false) - _dictionary?.removeAll(keepingCapacity: false) - } - - /** - Removes element with a specific `key` from bag. - - - parameter key: Key that identifies element to remove from bag. - - returns: Element that bag contained, or nil in case element was already removed. - */ - mutating func removeKey(_ key: BagKey) -> T? { - if _key0 == key { - _key0 = nil - let value = _value0! - _value0 = nil - return value - } - - if let existingObject = _dictionary?.removeValue(forKey: key) { - return existingObject - } - - for i in 0 ..< _pairs.count where _pairs[i].key == key { - let value = _pairs[i].value - _pairs.remove(at: i) - return value - } - - return nil - } -} - -extension Bag { - /// A textual representation of `self`, suitable for debugging. - var debugDescription : String { - return "\(self.count) elements in Bag" - } -} - -extension Bag { - /// Enumerates elements inside the bag. - /// - /// - parameter action: Enumeration closure. - func forEach(_ action: (T) -> Void) { - if _onlyFastPath { - if let value0 = _value0 { - action(value0) - } - return - } - - let value0 = _value0 - let dictionary = _dictionary - - if let value0 = value0 { - action(value0) - } - - for i in 0 ..< _pairs.count { - action(_pairs[i].value) - } - - if dictionary?.count ?? 0 > 0 { - for element in dictionary!.values { - action(element) - } - } - } -} - -extension BagKey: Hashable { - #if swift(>=4.2) - func hash(into hasher: inout Hasher) { - hasher.combine(rawValue) - } - #else - var hashValue: Int { - return rawValue.hashValue - } - #endif -} - -func ==(lhs: BagKey, rhs: BagKey) -> Bool { - return lhs.rawValue == rhs.rawValue -} diff --git a/Pods/RxBlocking/Platform/DataStructures/InfiniteSequence.swift b/Pods/RxBlocking/Platform/DataStructures/InfiniteSequence.swift deleted file mode 100644 index 5a573a0..0000000 --- a/Pods/RxBlocking/Platform/DataStructures/InfiniteSequence.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// InfiniteSequence.swift -// Platform -// -// Created by Krunoslav Zaher on 6/13/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// Sequence that repeats `repeatedValue` infinite number of times. -struct InfiniteSequence : Sequence { - typealias Element = E - typealias Iterator = AnyIterator - - private let _repeatedValue: E - - init(repeatedValue: E) { - _repeatedValue = repeatedValue - } - - func makeIterator() -> Iterator { - let repeatedValue = _repeatedValue - return AnyIterator { - return repeatedValue - } - } -} diff --git a/Pods/RxBlocking/Platform/DataStructures/PriorityQueue.swift b/Pods/RxBlocking/Platform/DataStructures/PriorityQueue.swift deleted file mode 100644 index f7cb99c..0000000 --- a/Pods/RxBlocking/Platform/DataStructures/PriorityQueue.swift +++ /dev/null @@ -1,111 +0,0 @@ -// -// PriorityQueue.swift -// Platform -// -// Created by Krunoslav Zaher on 12/27/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -struct PriorityQueue { - private let _hasHigherPriority: (Element, Element) -> Bool - private let _isEqual: (Element, Element) -> Bool - - fileprivate var _elements = [Element]() - - init(hasHigherPriority: @escaping (Element, Element) -> Bool, isEqual: @escaping (Element, Element) -> Bool) { - _hasHigherPriority = hasHigherPriority - _isEqual = isEqual - } - - mutating func enqueue(_ element: Element) { - _elements.append(element) - bubbleToHigherPriority(_elements.count - 1) - } - - func peek() -> Element? { - return _elements.first - } - - var isEmpty: Bool { - return _elements.count == 0 - } - - mutating func dequeue() -> Element? { - guard let front = peek() else { - return nil - } - - removeAt(0) - - return front - } - - mutating func remove(_ element: Element) { - for i in 0 ..< _elements.count { - if _isEqual(_elements[i], element) { - removeAt(i) - return - } - } - } - - private mutating func removeAt(_ index: Int) { - let removingLast = index == _elements.count - 1 - if !removingLast { - _elements.swapAt(index, _elements.count - 1) - } - - _ = _elements.popLast() - - if !removingLast { - bubbleToHigherPriority(index) - bubbleToLowerPriority(index) - } - } - - private mutating func bubbleToHigherPriority(_ initialUnbalancedIndex: Int) { - precondition(initialUnbalancedIndex >= 0) - precondition(initialUnbalancedIndex < _elements.count) - - var unbalancedIndex = initialUnbalancedIndex - - while unbalancedIndex > 0 { - let parentIndex = (unbalancedIndex - 1) / 2 - guard _hasHigherPriority(_elements[unbalancedIndex], _elements[parentIndex]) else { break } - _elements.swapAt(unbalancedIndex, parentIndex) - unbalancedIndex = parentIndex - } - } - - private mutating func bubbleToLowerPriority(_ initialUnbalancedIndex: Int) { - precondition(initialUnbalancedIndex >= 0) - precondition(initialUnbalancedIndex < _elements.count) - - var unbalancedIndex = initialUnbalancedIndex - while true { - let leftChildIndex = unbalancedIndex * 2 + 1 - let rightChildIndex = unbalancedIndex * 2 + 2 - - var highestPriorityIndex = unbalancedIndex - - if leftChildIndex < _elements.count && _hasHigherPriority(_elements[leftChildIndex], _elements[highestPriorityIndex]) { - highestPriorityIndex = leftChildIndex - } - - if rightChildIndex < _elements.count && _hasHigherPriority(_elements[rightChildIndex], _elements[highestPriorityIndex]) { - highestPriorityIndex = rightChildIndex - } - - guard highestPriorityIndex != unbalancedIndex else { break } - _elements.swapAt(highestPriorityIndex, unbalancedIndex) - - unbalancedIndex = highestPriorityIndex - } - } -} - -extension PriorityQueue : CustomDebugStringConvertible { - var debugDescription: String { - return _elements.debugDescription - } -} diff --git a/Pods/RxBlocking/Platform/DataStructures/Queue.swift b/Pods/RxBlocking/Platform/DataStructures/Queue.swift deleted file mode 100644 index d05726c..0000000 --- a/Pods/RxBlocking/Platform/DataStructures/Queue.swift +++ /dev/null @@ -1,152 +0,0 @@ -// -// Queue.swift -// Platform -// -// Created by Krunoslav Zaher on 3/21/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/** -Data structure that represents queue. - -Complexity of `enqueue`, `dequeue` is O(1) when number of operations is -averaged over N operations. - -Complexity of `peek` is O(1). -*/ -struct Queue: Sequence { - /// Type of generator. - typealias Generator = AnyIterator - - private let _resizeFactor = 2 - - private var _storage: ContiguousArray - private var _count = 0 - private var _pushNextIndex = 0 - private let _initialCapacity: Int - - /** - Creates new queue. - - - parameter capacity: Capacity of newly created queue. - */ - init(capacity: Int) { - _initialCapacity = capacity - - _storage = ContiguousArray(repeating: nil, count: capacity) - } - - private var dequeueIndex: Int { - let index = _pushNextIndex - count - return index < 0 ? index + _storage.count : index - } - - /// - returns: Is queue empty. - var isEmpty: Bool { - return count == 0 - } - - /// - returns: Number of elements inside queue. - var count: Int { - return _count - } - - /// - returns: Element in front of a list of elements to `dequeue`. - func peek() -> T { - precondition(count > 0) - - return _storage[dequeueIndex]! - } - - mutating private func resizeTo(_ size: Int) { - var newStorage = ContiguousArray(repeating: nil, count: size) - - let count = _count - - let dequeueIndex = self.dequeueIndex - let spaceToEndOfQueue = _storage.count - dequeueIndex - - // first batch is from dequeue index to end of array - let countElementsInFirstBatch = Swift.min(count, spaceToEndOfQueue) - // second batch is wrapped from start of array to end of queue - let numberOfElementsInSecondBatch = count - countElementsInFirstBatch - - newStorage[0 ..< countElementsInFirstBatch] = _storage[dequeueIndex ..< (dequeueIndex + countElementsInFirstBatch)] - newStorage[countElementsInFirstBatch ..< (countElementsInFirstBatch + numberOfElementsInSecondBatch)] = _storage[0 ..< numberOfElementsInSecondBatch] - - _count = count - _pushNextIndex = count - _storage = newStorage - } - - /// Enqueues `element`. - /// - /// - parameter element: Element to enqueue. - mutating func enqueue(_ element: T) { - if count == _storage.count { - resizeTo(Swift.max(_storage.count, 1) * _resizeFactor) - } - - _storage[_pushNextIndex] = element - _pushNextIndex += 1 - _count += 1 - - if _pushNextIndex >= _storage.count { - _pushNextIndex -= _storage.count - } - } - - private mutating func dequeueElementOnly() -> T { - precondition(count > 0) - - let index = dequeueIndex - - defer { - _storage[index] = nil - _count -= 1 - } - - return _storage[index]! - } - - /// Dequeues element or throws an exception in case queue is empty. - /// - /// - returns: Dequeued element. - mutating func dequeue() -> T? { - if self.count == 0 { - return nil - } - - defer { - let downsizeLimit = _storage.count / (_resizeFactor * _resizeFactor) - if _count < downsizeLimit && downsizeLimit >= _initialCapacity { - resizeTo(_storage.count / _resizeFactor) - } - } - - return dequeueElementOnly() - } - - /// - returns: Generator of contained elements. - func makeIterator() -> AnyIterator { - var i = dequeueIndex - var count = _count - - return AnyIterator { - if count == 0 { - return nil - } - - defer { - count -= 1 - i += 1 - } - - if i >= self._storage.count { - i -= self._storage.count - } - - return self._storage[i] - } - } -} diff --git a/Pods/RxBlocking/Platform/DeprecationWarner.swift b/Pods/RxBlocking/Platform/DeprecationWarner.swift deleted file mode 100644 index 863636b..0000000 --- a/Pods/RxBlocking/Platform/DeprecationWarner.swift +++ /dev/null @@ -1,43 +0,0 @@ -// -// DeprecationWarner.swift -// Platform -// -// Created by Shai Mishali on 1/9/18. -// Copyright © 2018 Krunoslav Zaher. All rights reserved. -// - -import Foundation - -#if DEBUG - class DeprecationWarner { - private static var warned = Set() - private static var _lock = NSRecursiveLock() - - static func warnIfNeeded(_ kind: Kind) { - _lock.lock(); defer { _lock.unlock() } - guard !warned.contains(kind) else { return } - - warned.insert(kind) - print("ℹ️ [DEPRECATED] \(kind.message)") - } - } - - extension DeprecationWarner { - enum Kind { - case variable - case globalTestFunctionNext - case globalTestFunctionError - case globalTestFunctionCompleted - - var message: String { - switch self { - case .variable: return "`Variable` is planned for future deprecation. Please consider `BehaviorRelay` as a replacement. Read more at: https://git.io/vNqvx" - case .globalTestFunctionNext: return "The `next()` global function is planned for future deprecation. Please use `Recorded.next()` instead." - case .globalTestFunctionError: return "The `error()` global function is planned for future deprecation. Please use `Recorded.error()` instead." - case .globalTestFunctionCompleted: return "The `completed()` global function is planned for future deprecation. Please use `Recorded.completed()` instead." - } - } - } - } -#endif - diff --git a/Pods/RxBlocking/Platform/DispatchQueue+Extensions.swift b/Pods/RxBlocking/Platform/DispatchQueue+Extensions.swift deleted file mode 100644 index 552314a..0000000 --- a/Pods/RxBlocking/Platform/DispatchQueue+Extensions.swift +++ /dev/null @@ -1,21 +0,0 @@ -// -// DispatchQueue+Extensions.swift -// Platform -// -// Created by Krunoslav Zaher on 10/22/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -import Dispatch - -extension DispatchQueue { - private static var token: DispatchSpecificKey<()> = { - let key = DispatchSpecificKey<()>() - DispatchQueue.main.setSpecific(key: key, value: ()) - return key - }() - - static var isMain: Bool { - return DispatchQueue.getSpecific(key: token) != nil - } -} diff --git a/Pods/RxBlocking/Platform/Platform.Darwin.swift b/Pods/RxBlocking/Platform/Platform.Darwin.swift deleted file mode 100644 index 6dc36ad..0000000 --- a/Pods/RxBlocking/Platform/Platform.Darwin.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// Platform.Darwin.swift -// Platform -// -// Created by Krunoslav Zaher on 12/29/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) - - import Darwin - import class Foundation.Thread - import protocol Foundation.NSCopying - - extension Thread { - static func setThreadLocalStorageValue(_ value: T?, forKey key: NSCopying) { - let currentThread = Thread.current - let threadDictionary = currentThread.threadDictionary - - if let newValue = value { - threadDictionary[key] = newValue - } - else { - threadDictionary[key] = nil - } - } - - static func getThreadLocalStorageValueForKey(_ key: NSCopying) -> T? { - let currentThread = Thread.current - let threadDictionary = currentThread.threadDictionary - - return threadDictionary[key] as? T - } - } - -#endif diff --git a/Pods/RxBlocking/Platform/Platform.Linux.swift b/Pods/RxBlocking/Platform/Platform.Linux.swift deleted file mode 100644 index 570f8f0..0000000 --- a/Pods/RxBlocking/Platform/Platform.Linux.swift +++ /dev/null @@ -1,37 +0,0 @@ -// -// Platform.Linux.swift -// Platform -// -// Created by Krunoslav Zaher on 12/29/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(Linux) - - import class Foundation.Thread - - extension Thread { - - static func setThreadLocalStorageValue(_ value: T?, forKey key: String) { - let currentThread = Thread.current - var threadDictionary = currentThread.threadDictionary - - if let newValue = value { - threadDictionary[key] = newValue - } - else { - threadDictionary[key] = nil - } - - currentThread.threadDictionary = threadDictionary - } - - static func getThreadLocalStorageValueForKey(_ key: String) -> T? { - let currentThread = Thread.current - let threadDictionary = currentThread.threadDictionary - - return threadDictionary[key] as? T - } - } - -#endif diff --git a/Pods/RxBlocking/Platform/RecursiveLock.swift b/Pods/RxBlocking/Platform/RecursiveLock.swift deleted file mode 100644 index c03471d..0000000 --- a/Pods/RxBlocking/Platform/RecursiveLock.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// RecursiveLock.swift -// Platform -// -// Created by Krunoslav Zaher on 12/18/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -import class Foundation.NSRecursiveLock - -#if TRACE_RESOURCES - class RecursiveLock: NSRecursiveLock { - override init() { - _ = Resources.incrementTotal() - super.init() - } - - override func lock() { - super.lock() - _ = Resources.incrementTotal() - } - - override func unlock() { - super.unlock() - _ = Resources.decrementTotal() - } - - deinit { - _ = Resources.decrementTotal() - } - } -#else - typealias RecursiveLock = NSRecursiveLock -#endif diff --git a/Pods/RxBlocking/README.md b/Pods/RxBlocking/README.md deleted file mode 100644 index 17c8a95..0000000 --- a/Pods/RxBlocking/README.md +++ /dev/null @@ -1,217 +0,0 @@ -Miss Electric Eel 2016 RxSwift: ReactiveX for Swift -====================================== - -[![Travis CI](https://travis-ci.org/ReactiveX/RxSwift.svg?branch=master)](https://travis-ci.org/ReactiveX/RxSwift) ![platforms](https://img.shields.io/badge/platforms-iOS%20%7C%20macOS%20%7C%20tvOS%20%7C%20watchOS%20%7C%20Linux-333333.svg) [![pod](https://img.shields.io/cocoapods/v/RxSwift.svg)](https://cocoapods.org/pods/RxSwift) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![Swift Package Manager compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg)](https://github.com/apple/swift-package-manager) - -* RxSwift 3.x / Swift 3.x can be found in [**rxswift-3.0** branch](https://github.com/ReactiveX/RxSwift/tree/rxswift-3.0). - -Rx is a [generic abstraction of computation](https://youtu.be/looJcaeboBY) expressed through `Observable` interface. - -This is a Swift version of [Rx](https://github.com/Reactive-Extensions/Rx.NET). - -It tries to port as many concepts from the original version as possible, but some concepts were adapted for more pleasant and performant integration with iOS/macOS environment. - -Cross platform documentation can be found on [ReactiveX.io](http://reactivex.io/). - -Like the original Rx, its intention is to enable easy composition of asynchronous operations and event/data streams. - -KVO observing, async operations and streams are all unified under [abstraction of sequence](Documentation/GettingStarted.md#observables-aka-sequences). This is the reason why Rx is so simple, elegant and powerful. - -## I came here because I want to ... - -###### ... understand - -* [why use rx?](Documentation/Why.md) -* [the basics, getting started with RxSwift](Documentation/GettingStarted.md) -* [traits](Documentation/Traits.md) - what are `Single`, `Completable`, `Maybe`, `Driver`, and `ControlProperty` ... and why do they exist? -* [testing](Documentation/UnitTests.md) -* [tips and common errors](Documentation/Tips.md) -* [debugging](Documentation/GettingStarted.md#debugging) -* [the math behind Rx](Documentation/MathBehindRx.md) -* [what are hot and cold observable sequences?](Documentation/HotAndColdObservables.md) - -###### ... install - -* Integrate RxSwift/RxCocoa with my app. [Installation Guide](#installation) - -###### ... hack around - -* with the example app. [Running Example App](Documentation/ExampleApp.md) -* with operators in playgrounds. [Playgrounds](Documentation/Playgrounds.md) - -###### ... interact - -* All of this is great, but it would be nice to talk with other people using RxSwift and exchange experiences.
[Join Slack Channel](http://slack.rxswift.org) -* Report a problem using the library. [Open an Issue With Bug Template](.github/ISSUE_TEMPLATE.md) -* Request a new feature. [Open an Issue With Feature Request Template](Documentation/NewFeatureRequestTemplate.md) -* Help out [Check out contribution guide](CONTRIBUTING.md) - -###### ... compare - -* [with other libraries](Documentation/ComparisonWithOtherLibraries.md). - - -###### ... find compatible - -* libraries from [RxSwiftCommunity](https://github.com/RxSwiftCommunity). -* [Pods using RxSwift](https://cocoapods.org/?q=uses%3Arxswift). - -###### ... see the broader vision - -* Does this exist for Android? [RxJava](https://github.com/ReactiveX/RxJava) -* Where is all of this going, what is the future, what about reactive architectures, how do you design entire apps this way? [Cycle.js](https://github.com/cyclejs/cycle-core) - this is javascript, but [RxJS](https://github.com/Reactive-Extensions/RxJS) is javascript version of Rx. - -## Usage - - - - - - - - - - - - - - - - - - - -
Here's an exampleIn Action
Define search for GitHub repositories ...
-let searchResults = searchBar.rx.text.orEmpty
-    .throttle(0.3, scheduler: MainScheduler.instance)
-    .distinctUntilChanged()
-    .flatMapLatest { query -> Observable<[Repository]> in
-        if query.isEmpty {
-            return .just([])
-        }
-        return searchGitHub(query)
-            .catchErrorJustReturn([])
-    }
-    .observeOn(MainScheduler.instance)
... then bind the results to your tableview
-searchResults
-    .bind(to: tableView.rx.items(cellIdentifier: "Cell")) {
-        (index, repository: Repository, cell) in
-        cell.textLabel?.text = repository.name
-        cell.detailTextLabel?.text = repository.url
-    }
-    .disposed(by: disposeBag)
- - -## Requirements - -* Xcode 9.0 -* Swift 4.0 -* Swift 3.x ([use `rxswift-3.0` branch](https://github.com/ReactiveX/RxSwift/tree/rxswift-3.0) instead) -* Swift 2.3 ([use `rxswift-2.0` branch](https://github.com/ReactiveX/RxSwift/tree/rxswift-2.0) instead) - -## Installation - -Rx doesn't contain any external dependencies. - -These are currently the supported options: - -### Manual - -Open Rx.xcworkspace, choose `RxExample` and hit run. This method will build everything and run the sample app - -### [CocoaPods](https://guides.cocoapods.org/using/using-cocoapods.html) - -**Tested with `pod --version`: `1.3.1`** - -```ruby -# Podfile -use_frameworks! - -target 'YOUR_TARGET_NAME' do - pod 'RxSwift', '~> 4.0' - pod 'RxCocoa', '~> 4.0' -end - -# RxTest and RxBlocking make the most sense in the context of unit/integration tests -target 'YOUR_TESTING_TARGET' do - pod 'RxBlocking', '~> 4.0' - pod 'RxTest', '~> 4.0' -end -``` - -Replace `YOUR_TARGET_NAME` and then, in the `Podfile` directory, type: - -```bash -$ pod install -``` - -### [Carthage](https://github.com/Carthage/Carthage) - -**Tested with `carthage version`: `0.26.2`** - -Add this to `Cartfile` - -``` -github "ReactiveX/RxSwift" ~> 4.0 -``` - -```bash -$ carthage update -``` - -### [Swift Package Manager](https://github.com/apple/swift-package-manager) - -**Tested with `swift build --version`: `Swift 4.0.0-dev (swiftpm-13126)`** - -Create a `Package.swift` file. - -```swift -// swift-tools-version:4.0 - -import PackageDescription - -let package = Package( - name: "RxTestProject", - dependencies: [ - .package(url: "https://github.com/ReactiveX/RxSwift.git", "4.0.0" ..< "5.0.0") - ], - targets: [ - .target(name: "RxTestProject", dependencies: ["RxSwift", "RxCocoa"]) - ] -) -``` - -```bash -$ swift build -``` - -To build or test a module with RxTest dependency, set `TEST=1`. ([RxSwift >= 3.4.2](https://github.com/ReactiveX/RxSwift/releases/tag/3.4.2)) - -```bash -$ TEST=1 swift test -``` - -### Manually using git submodules - -* Add RxSwift as a submodule - -```bash -$ git submodule add git@github.com:ReactiveX/RxSwift.git -``` - -* Drag `Rx.xcodeproj` into Project Navigator -* Go to `Project > Targets > Build Phases > Link Binary With Libraries`, click `+` and select `RxSwift-[Platform]` and `RxCocoa-[Platform]` targets - - -## References - -* [http://reactivex.io/](http://reactivex.io/) -* [Reactive Extensions GitHub (GitHub)](https://github.com/Reactive-Extensions) -* [RxSwift RayWenderlich.com Book](https://store.raywenderlich.com/products/rxswift-reactive-programming-with-swift) -* [Boxue.io RxSwift Online Course](https://boxueio.com/series/rxswift-101) (Chinese 🇨🇳) -* [Erik Meijer (Wikipedia)](http://en.wikipedia.org/wiki/Erik_Meijer_%28computer_scientist%29) -* [Expert to Expert: Brian Beckman and Erik Meijer - Inside the .NET Reactive Framework (Rx) (video)](https://youtu.be/looJcaeboBY) -* [Reactive Programming Overview (Jafar Husain from Netflix)](https://www.youtube.com/watch?v=dwP1TNXE6fc) -* [Subject/Observer is Dual to Iterator (paper)](http://csl.stanford.edu/~christos/pldi2010.fit/meijer.duality.pdf) -* [Rx standard sequence operators visualized (visualization tool)](http://rxmarbles.com/) -* [Haskell](https://www.haskell.org/) diff --git a/Pods/RxBlocking/RxBlocking/BlockingObservable+Operators.swift b/Pods/RxBlocking/RxBlocking/BlockingObservable+Operators.swift deleted file mode 100644 index 92b9000..0000000 --- a/Pods/RxBlocking/RxBlocking/BlockingObservable+Operators.swift +++ /dev/null @@ -1,170 +0,0 @@ -// -// BlockingObservable+Operators.swift -// RxBlocking -// -// Created by Krunoslav Zaher on 10/19/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -/// The `MaterializedSequenceResult` enum represents the materialized -/// output of a BlockingObservable. -/// -/// If the sequence terminates successfully, the result is represented -/// by `.completed` with the array of elements. -/// -/// If the sequence terminates with error, the result is represented -/// by `.failed` with both the array of elements and the terminating error. -public enum MaterializedSequenceResult { - case completed(elements: [T]) - case failed(elements: [T], error: Error) -} - -extension BlockingObservable { - /// Blocks current thread until sequence terminates. - /// - /// If sequence terminates with error, terminating error will be thrown. - /// - /// - returns: All elements of sequence. - public func toArray() throws -> [E] { - let results = self.materializeResult() - return try self.elementsOrThrow(results) - } -} - -extension BlockingObservable { - /// Blocks current thread until sequence produces first element. - /// - /// If sequence terminates with error before producing first element, terminating error will be thrown. - /// - /// - returns: First element of sequence. If sequence is empty `nil` is returned. - public func first() throws -> E? { - let results = self.materializeResult(max: 1) - return try self.elementsOrThrow(results).first - } -} - -extension BlockingObservable { - /// Blocks current thread until sequence terminates. - /// - /// If sequence terminates with error, terminating error will be thrown. - /// - /// - returns: Last element in the sequence. If sequence is empty `nil` is returned. - public func last() throws -> E? { - let results = self.materializeResult() - return try self.elementsOrThrow(results).last - } -} - -extension BlockingObservable { - /// Blocks current thread until sequence terminates. - /// - /// If sequence terminates with error before producing first element, terminating error will be thrown. - /// - /// - returns: Returns the only element of an sequence, and reports an error if there is not exactly one element in the observable sequence. - public func single() throws -> E { - return try self.single { _ in true } - } - - /// Blocks current thread until sequence terminates. - /// - /// If sequence terminates with error before producing first element, terminating error will be thrown. - /// - /// - parameter predicate: A function to test each source element for a condition. - /// - returns: Returns the only element of an sequence that satisfies the condition in the predicate, and reports an error if there is not exactly one element in the sequence. - public func single(_ predicate: @escaping (E) throws -> Bool) throws -> E { - let results = self.materializeResult(max: 2, predicate: predicate) - let elements = try self.elementsOrThrow(results) - - if elements.count > 1 { - throw RxError.moreThanOneElement - } - - guard let first = elements.first else { - throw RxError.noElements - } - - return first - } -} - -extension BlockingObservable { - /// Blocks current thread until sequence terminates. - /// - /// The sequence is materialized as a result type capturing how the sequence terminated (completed or error), along with any elements up to that point. - /// - /// - returns: On completion, returns the list of elements in the sequence. On error, returns the list of elements up to that point, along with the error itself. - public func materialize() -> MaterializedSequenceResult { - return self.materializeResult() - } -} - -extension BlockingObservable { - fileprivate func materializeResult(max: Int? = nil, predicate: @escaping (E) throws -> Bool = { _ in true }) -> MaterializedSequenceResult { - var elements = [E]() - var error: Swift.Error? - - let lock = RunLoopLock(timeout: self.timeout) - - let d = SingleAssignmentDisposable() - - defer { - d.dispose() - } - - lock.dispatch { - let subscription = self.source.subscribe { event in - if d.isDisposed { - return - } - switch event { - case .next(let element): - do { - if try predicate(element) { - elements.append(element) - } - if let max = max, elements.count >= max { - d.dispose() - lock.stop() - } - } catch let err { - error = err - d.dispose() - lock.stop() - } - case .error(let err): - error = err - d.dispose() - lock.stop() - case .completed: - d.dispose() - lock.stop() - } - } - - d.setDisposable(subscription) - } - - do { - try lock.run() - } catch let err { - error = err - } - - if let error = error { - return MaterializedSequenceResult.failed(elements: elements, error: error) - } - - return MaterializedSequenceResult.completed(elements: elements) - } - - fileprivate func elementsOrThrow(_ results: MaterializedSequenceResult) throws -> [E] { - switch results { - case .failed(_, let error): - throw error - case .completed(let elements): - return elements - } - } -} diff --git a/Pods/RxBlocking/RxBlocking/BlockingObservable.swift b/Pods/RxBlocking/RxBlocking/BlockingObservable.swift deleted file mode 100644 index 74f6e88..0000000 --- a/Pods/RxBlocking/RxBlocking/BlockingObservable.swift +++ /dev/null @@ -1,22 +0,0 @@ -// -// BlockingObservable.swift -// RxBlocking -// -// Created by Krunoslav Zaher on 10/19/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -/** -`BlockingObservable` is a variety of `Observable` that provides blocking operators. - -It can be useful for testing and demo purposes, but is generally inappropriate for production applications. - -If you think you need to use a `BlockingObservable` this is usually a sign that you should rethink your -design. -*/ -public struct BlockingObservable { - let timeout: RxTimeInterval? - let source: Observable -} diff --git a/Pods/RxBlocking/RxBlocking/ObservableConvertibleType+Blocking.swift b/Pods/RxBlocking/RxBlocking/ObservableConvertibleType+Blocking.swift deleted file mode 100644 index b6d43cf..0000000 --- a/Pods/RxBlocking/RxBlocking/ObservableConvertibleType+Blocking.swift +++ /dev/null @@ -1,19 +0,0 @@ -// -// ObservableConvertibleType+Blocking.swift -// RxBlocking -// -// Created by Krunoslav Zaher on 7/12/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -extension ObservableConvertibleType { - /// Converts an Observable into a `BlockingObservable` (an Observable with blocking operators). - /// - /// - parameter timeout: Maximal time interval BlockingObservable can block without throwing `RxError.timeout`. - /// - returns: `BlockingObservable` version of `self` - public func toBlocking(timeout: RxTimeInterval? = nil) -> BlockingObservable { - return BlockingObservable(timeout: timeout, source: self.asObservable()) - } -} diff --git a/Pods/RxBlocking/RxBlocking/Resources.swift b/Pods/RxBlocking/RxBlocking/Resources.swift deleted file mode 100644 index 4fe02a3..0000000 --- a/Pods/RxBlocking/RxBlocking/Resources.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// Resources.swift -// RxBlocking -// -// Created by Krunoslav Zaher on 1/21/17. -// Copyright © 2017 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -#if TRACE_RESOURCES - struct Resources { - static func incrementTotal() -> Int32 { - return RxSwift.Resources.incrementTotal() - } - - static func decrementTotal() -> Int32 { - return RxSwift.Resources.decrementTotal() - } - - static var numberOfSerialDispatchQueueObservables: Int32 { - return RxSwift.Resources.numberOfSerialDispatchQueueObservables - } - - static var numberOfMapOperators: Int32 { - return RxSwift.Resources.numberOfMapOperators - } - - static var total: Int32 { - return RxSwift.Resources.total - } - } -#endif diff --git a/Pods/RxBlocking/RxBlocking/RunLoopLock.swift b/Pods/RxBlocking/RxBlocking/RunLoopLock.swift deleted file mode 100644 index 6dba4fb..0000000 --- a/Pods/RxBlocking/RxBlocking/RunLoopLock.swift +++ /dev/null @@ -1,96 +0,0 @@ -// -// RunLoopLock.swift -// RxBlocking -// -// Created by Krunoslav Zaher on 11/5/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import CoreFoundation - -import RxSwift - -#if os(Linux) - import Foundation - let runLoopMode: RunLoopMode = RunLoopMode.defaultRunLoopMode - let runLoopModeRaw: CFString = unsafeBitCast(runLoopMode.rawValue._bridgeToObjectiveC(), to: CFString.self) -#else - let runLoopMode: CFRunLoopMode = CFRunLoopMode.defaultMode - let runLoopModeRaw = runLoopMode.rawValue -#endif - -final class RunLoopLock { - let _currentRunLoop: CFRunLoop - - let _calledRun = AtomicInt(0) - let _calledStop = AtomicInt(0) - var _timeout: RxTimeInterval? - - init(timeout: RxTimeInterval?) { - self._timeout = timeout - self._currentRunLoop = CFRunLoopGetCurrent() - } - - func dispatch(_ action: @escaping () -> Void) { - CFRunLoopPerformBlock(self._currentRunLoop, runLoopModeRaw) { - if CurrentThreadScheduler.isScheduleRequired { - _ = CurrentThreadScheduler.instance.schedule(()) { _ in - action() - return Disposables.create() - } - } - else { - action() - } - } - CFRunLoopWakeUp(self._currentRunLoop) - } - - func stop() { - if decrement(self._calledStop) > 1 { - return - } - CFRunLoopPerformBlock(self._currentRunLoop, runLoopModeRaw) { - CFRunLoopStop(self._currentRunLoop) - } - CFRunLoopWakeUp(self._currentRunLoop) - } - - func run() throws { - if increment(self._calledRun) != 0 { - fatalError("Run can be only called once") - } - if let timeout = self._timeout { - #if os(Linux) - switch Int(CFRunLoopRunInMode(runLoopModeRaw, timeout, false)) { - case kCFRunLoopRunFinished: - return - case kCFRunLoopRunHandledSource: - return - case kCFRunLoopRunStopped: - return - case kCFRunLoopRunTimedOut: - throw RxError.timeout - default: - fatalError("This failed because `CFRunLoopRunResult` wasn't bridged to Swift.") - } - #else - switch CFRunLoopRunInMode(runLoopMode, timeout, false) { - case .finished: - return - case .handledSource: - return - case .stopped: - return - case .timedOut: - throw RxError.timeout - default: - return - } - #endif - } - else { - CFRunLoopRun() - } - } -} diff --git a/Pods/RxCocoa/LICENSE.md b/Pods/RxCocoa/LICENSE.md deleted file mode 100644 index d6765d9..0000000 --- a/Pods/RxCocoa/LICENSE.md +++ /dev/null @@ -1,9 +0,0 @@ -**The MIT License** -**Copyright © 2015 Krunoslav Zaher** -**All rights reserved.** - -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. \ No newline at end of file diff --git a/Pods/RxCocoa/Platform/DataStructures/Bag.swift b/Pods/RxCocoa/Platform/DataStructures/Bag.swift deleted file mode 100644 index 455329c..0000000 --- a/Pods/RxCocoa/Platform/DataStructures/Bag.swift +++ /dev/null @@ -1,181 +0,0 @@ -// -// Bag.swift -// Platform -// -// Created by Krunoslav Zaher on 2/28/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import Swift - -let arrayDictionaryMaxSize = 30 - -struct BagKey { - /** - Unique identifier for object added to `Bag`. - - It's underlying type is UInt64. If we assume there in an idealized CPU that works at 4GHz, - it would take ~150 years of continuous running time for it to overflow. - */ - fileprivate let rawValue: UInt64 -} - -/** -Data structure that represents a bag of elements typed `T`. - -Single element can be stored multiple times. - -Time and space complexity of insertion and deletion is O(n). - -It is suitable for storing small number of elements. -*/ -struct Bag : CustomDebugStringConvertible { - /// Type of identifier for inserted elements. - typealias KeyType = BagKey - - typealias Entry = (key: BagKey, value: T) - - fileprivate var _nextKey: BagKey = BagKey(rawValue: 0) - - // data - - // first fill inline variables - var _key0: BagKey? - var _value0: T? - - // then fill "array dictionary" - var _pairs = ContiguousArray() - - // last is sparse dictionary - var _dictionary: [BagKey: T]? - - var _onlyFastPath = true - - /// Creates new empty `Bag`. - init() { - } - - /** - Inserts `value` into bag. - - - parameter element: Element to insert. - - returns: Key that can be used to remove element from bag. - */ - mutating func insert(_ element: T) -> BagKey { - let key = _nextKey - - _nextKey = BagKey(rawValue: _nextKey.rawValue &+ 1) - - if _key0 == nil { - _key0 = key - _value0 = element - return key - } - - _onlyFastPath = false - - if _dictionary != nil { - _dictionary![key] = element - return key - } - - if _pairs.count < arrayDictionaryMaxSize { - _pairs.append((key: key, value: element)) - return key - } - - _dictionary = [key: element] - - return key - } - - /// - returns: Number of elements in bag. - var count: Int { - let dictionaryCount: Int = _dictionary?.count ?? 0 - return (_value0 != nil ? 1 : 0) + _pairs.count + dictionaryCount - } - - /// Removes all elements from bag and clears capacity. - mutating func removeAll() { - _key0 = nil - _value0 = nil - - _pairs.removeAll(keepingCapacity: false) - _dictionary?.removeAll(keepingCapacity: false) - } - - /** - Removes element with a specific `key` from bag. - - - parameter key: Key that identifies element to remove from bag. - - returns: Element that bag contained, or nil in case element was already removed. - */ - mutating func removeKey(_ key: BagKey) -> T? { - if _key0 == key { - _key0 = nil - let value = _value0! - _value0 = nil - return value - } - - if let existingObject = _dictionary?.removeValue(forKey: key) { - return existingObject - } - - for i in 0 ..< _pairs.count where _pairs[i].key == key { - let value = _pairs[i].value - _pairs.remove(at: i) - return value - } - - return nil - } -} - -extension Bag { - /// A textual representation of `self`, suitable for debugging. - var debugDescription : String { - return "\(self.count) elements in Bag" - } -} - -extension Bag { - /// Enumerates elements inside the bag. - /// - /// - parameter action: Enumeration closure. - func forEach(_ action: (T) -> Void) { - if _onlyFastPath { - if let value0 = _value0 { - action(value0) - } - return - } - - let value0 = _value0 - let dictionary = _dictionary - - if let value0 = value0 { - action(value0) - } - - for i in 0 ..< _pairs.count { - action(_pairs[i].value) - } - - if dictionary?.count ?? 0 > 0 { - for element in dictionary!.values { - action(element) - } - } - } -} - -extension BagKey: Hashable { - var hashValue: Int { - return rawValue.hashValue - } -} - -func ==(lhs: BagKey, rhs: BagKey) -> Bool { - return lhs.rawValue == rhs.rawValue -} diff --git a/Pods/RxCocoa/Platform/DataStructures/InfiniteSequence.swift b/Pods/RxCocoa/Platform/DataStructures/InfiniteSequence.swift deleted file mode 100644 index 5a573a0..0000000 --- a/Pods/RxCocoa/Platform/DataStructures/InfiniteSequence.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// InfiniteSequence.swift -// Platform -// -// Created by Krunoslav Zaher on 6/13/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// Sequence that repeats `repeatedValue` infinite number of times. -struct InfiniteSequence : Sequence { - typealias Element = E - typealias Iterator = AnyIterator - - private let _repeatedValue: E - - init(repeatedValue: E) { - _repeatedValue = repeatedValue - } - - func makeIterator() -> Iterator { - let repeatedValue = _repeatedValue - return AnyIterator { - return repeatedValue - } - } -} diff --git a/Pods/RxCocoa/Platform/DataStructures/PriorityQueue.swift b/Pods/RxCocoa/Platform/DataStructures/PriorityQueue.swift deleted file mode 100644 index f7cb99c..0000000 --- a/Pods/RxCocoa/Platform/DataStructures/PriorityQueue.swift +++ /dev/null @@ -1,111 +0,0 @@ -// -// PriorityQueue.swift -// Platform -// -// Created by Krunoslav Zaher on 12/27/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -struct PriorityQueue { - private let _hasHigherPriority: (Element, Element) -> Bool - private let _isEqual: (Element, Element) -> Bool - - fileprivate var _elements = [Element]() - - init(hasHigherPriority: @escaping (Element, Element) -> Bool, isEqual: @escaping (Element, Element) -> Bool) { - _hasHigherPriority = hasHigherPriority - _isEqual = isEqual - } - - mutating func enqueue(_ element: Element) { - _elements.append(element) - bubbleToHigherPriority(_elements.count - 1) - } - - func peek() -> Element? { - return _elements.first - } - - var isEmpty: Bool { - return _elements.count == 0 - } - - mutating func dequeue() -> Element? { - guard let front = peek() else { - return nil - } - - removeAt(0) - - return front - } - - mutating func remove(_ element: Element) { - for i in 0 ..< _elements.count { - if _isEqual(_elements[i], element) { - removeAt(i) - return - } - } - } - - private mutating func removeAt(_ index: Int) { - let removingLast = index == _elements.count - 1 - if !removingLast { - _elements.swapAt(index, _elements.count - 1) - } - - _ = _elements.popLast() - - if !removingLast { - bubbleToHigherPriority(index) - bubbleToLowerPriority(index) - } - } - - private mutating func bubbleToHigherPriority(_ initialUnbalancedIndex: Int) { - precondition(initialUnbalancedIndex >= 0) - precondition(initialUnbalancedIndex < _elements.count) - - var unbalancedIndex = initialUnbalancedIndex - - while unbalancedIndex > 0 { - let parentIndex = (unbalancedIndex - 1) / 2 - guard _hasHigherPriority(_elements[unbalancedIndex], _elements[parentIndex]) else { break } - _elements.swapAt(unbalancedIndex, parentIndex) - unbalancedIndex = parentIndex - } - } - - private mutating func bubbleToLowerPriority(_ initialUnbalancedIndex: Int) { - precondition(initialUnbalancedIndex >= 0) - precondition(initialUnbalancedIndex < _elements.count) - - var unbalancedIndex = initialUnbalancedIndex - while true { - let leftChildIndex = unbalancedIndex * 2 + 1 - let rightChildIndex = unbalancedIndex * 2 + 2 - - var highestPriorityIndex = unbalancedIndex - - if leftChildIndex < _elements.count && _hasHigherPriority(_elements[leftChildIndex], _elements[highestPriorityIndex]) { - highestPriorityIndex = leftChildIndex - } - - if rightChildIndex < _elements.count && _hasHigherPriority(_elements[rightChildIndex], _elements[highestPriorityIndex]) { - highestPriorityIndex = rightChildIndex - } - - guard highestPriorityIndex != unbalancedIndex else { break } - _elements.swapAt(highestPriorityIndex, unbalancedIndex) - - unbalancedIndex = highestPriorityIndex - } - } -} - -extension PriorityQueue : CustomDebugStringConvertible { - var debugDescription: String { - return _elements.debugDescription - } -} diff --git a/Pods/RxCocoa/Platform/DataStructures/Queue.swift b/Pods/RxCocoa/Platform/DataStructures/Queue.swift deleted file mode 100644 index d05726c..0000000 --- a/Pods/RxCocoa/Platform/DataStructures/Queue.swift +++ /dev/null @@ -1,152 +0,0 @@ -// -// Queue.swift -// Platform -// -// Created by Krunoslav Zaher on 3/21/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/** -Data structure that represents queue. - -Complexity of `enqueue`, `dequeue` is O(1) when number of operations is -averaged over N operations. - -Complexity of `peek` is O(1). -*/ -struct Queue: Sequence { - /// Type of generator. - typealias Generator = AnyIterator - - private let _resizeFactor = 2 - - private var _storage: ContiguousArray - private var _count = 0 - private var _pushNextIndex = 0 - private let _initialCapacity: Int - - /** - Creates new queue. - - - parameter capacity: Capacity of newly created queue. - */ - init(capacity: Int) { - _initialCapacity = capacity - - _storage = ContiguousArray(repeating: nil, count: capacity) - } - - private var dequeueIndex: Int { - let index = _pushNextIndex - count - return index < 0 ? index + _storage.count : index - } - - /// - returns: Is queue empty. - var isEmpty: Bool { - return count == 0 - } - - /// - returns: Number of elements inside queue. - var count: Int { - return _count - } - - /// - returns: Element in front of a list of elements to `dequeue`. - func peek() -> T { - precondition(count > 0) - - return _storage[dequeueIndex]! - } - - mutating private func resizeTo(_ size: Int) { - var newStorage = ContiguousArray(repeating: nil, count: size) - - let count = _count - - let dequeueIndex = self.dequeueIndex - let spaceToEndOfQueue = _storage.count - dequeueIndex - - // first batch is from dequeue index to end of array - let countElementsInFirstBatch = Swift.min(count, spaceToEndOfQueue) - // second batch is wrapped from start of array to end of queue - let numberOfElementsInSecondBatch = count - countElementsInFirstBatch - - newStorage[0 ..< countElementsInFirstBatch] = _storage[dequeueIndex ..< (dequeueIndex + countElementsInFirstBatch)] - newStorage[countElementsInFirstBatch ..< (countElementsInFirstBatch + numberOfElementsInSecondBatch)] = _storage[0 ..< numberOfElementsInSecondBatch] - - _count = count - _pushNextIndex = count - _storage = newStorage - } - - /// Enqueues `element`. - /// - /// - parameter element: Element to enqueue. - mutating func enqueue(_ element: T) { - if count == _storage.count { - resizeTo(Swift.max(_storage.count, 1) * _resizeFactor) - } - - _storage[_pushNextIndex] = element - _pushNextIndex += 1 - _count += 1 - - if _pushNextIndex >= _storage.count { - _pushNextIndex -= _storage.count - } - } - - private mutating func dequeueElementOnly() -> T { - precondition(count > 0) - - let index = dequeueIndex - - defer { - _storage[index] = nil - _count -= 1 - } - - return _storage[index]! - } - - /// Dequeues element or throws an exception in case queue is empty. - /// - /// - returns: Dequeued element. - mutating func dequeue() -> T? { - if self.count == 0 { - return nil - } - - defer { - let downsizeLimit = _storage.count / (_resizeFactor * _resizeFactor) - if _count < downsizeLimit && downsizeLimit >= _initialCapacity { - resizeTo(_storage.count / _resizeFactor) - } - } - - return dequeueElementOnly() - } - - /// - returns: Generator of contained elements. - func makeIterator() -> AnyIterator { - var i = dequeueIndex - var count = _count - - return AnyIterator { - if count == 0 { - return nil - } - - defer { - count -= 1 - i += 1 - } - - if i >= self._storage.count { - i -= self._storage.count - } - - return self._storage[i] - } - } -} diff --git a/Pods/RxCocoa/Platform/DeprecationWarner.swift b/Pods/RxCocoa/Platform/DeprecationWarner.swift deleted file mode 100644 index 863636b..0000000 --- a/Pods/RxCocoa/Platform/DeprecationWarner.swift +++ /dev/null @@ -1,43 +0,0 @@ -// -// DeprecationWarner.swift -// Platform -// -// Created by Shai Mishali on 1/9/18. -// Copyright © 2018 Krunoslav Zaher. All rights reserved. -// - -import Foundation - -#if DEBUG - class DeprecationWarner { - private static var warned = Set() - private static var _lock = NSRecursiveLock() - - static func warnIfNeeded(_ kind: Kind) { - _lock.lock(); defer { _lock.unlock() } - guard !warned.contains(kind) else { return } - - warned.insert(kind) - print("ℹ️ [DEPRECATED] \(kind.message)") - } - } - - extension DeprecationWarner { - enum Kind { - case variable - case globalTestFunctionNext - case globalTestFunctionError - case globalTestFunctionCompleted - - var message: String { - switch self { - case .variable: return "`Variable` is planned for future deprecation. Please consider `BehaviorRelay` as a replacement. Read more at: https://git.io/vNqvx" - case .globalTestFunctionNext: return "The `next()` global function is planned for future deprecation. Please use `Recorded.next()` instead." - case .globalTestFunctionError: return "The `error()` global function is planned for future deprecation. Please use `Recorded.error()` instead." - case .globalTestFunctionCompleted: return "The `completed()` global function is planned for future deprecation. Please use `Recorded.completed()` instead." - } - } - } - } -#endif - diff --git a/Pods/RxCocoa/Platform/DispatchQueue+Extensions.swift b/Pods/RxCocoa/Platform/DispatchQueue+Extensions.swift deleted file mode 100644 index 552314a..0000000 --- a/Pods/RxCocoa/Platform/DispatchQueue+Extensions.swift +++ /dev/null @@ -1,21 +0,0 @@ -// -// DispatchQueue+Extensions.swift -// Platform -// -// Created by Krunoslav Zaher on 10/22/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -import Dispatch - -extension DispatchQueue { - private static var token: DispatchSpecificKey<()> = { - let key = DispatchSpecificKey<()>() - DispatchQueue.main.setSpecific(key: key, value: ()) - return key - }() - - static var isMain: Bool { - return DispatchQueue.getSpecific(key: token) != nil - } -} diff --git a/Pods/RxCocoa/Platform/Platform.Darwin.swift b/Pods/RxCocoa/Platform/Platform.Darwin.swift deleted file mode 100644 index 6dc36ad..0000000 --- a/Pods/RxCocoa/Platform/Platform.Darwin.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// Platform.Darwin.swift -// Platform -// -// Created by Krunoslav Zaher on 12/29/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) - - import Darwin - import class Foundation.Thread - import protocol Foundation.NSCopying - - extension Thread { - static func setThreadLocalStorageValue(_ value: T?, forKey key: NSCopying) { - let currentThread = Thread.current - let threadDictionary = currentThread.threadDictionary - - if let newValue = value { - threadDictionary[key] = newValue - } - else { - threadDictionary[key] = nil - } - } - - static func getThreadLocalStorageValueForKey(_ key: NSCopying) -> T? { - let currentThread = Thread.current - let threadDictionary = currentThread.threadDictionary - - return threadDictionary[key] as? T - } - } - -#endif diff --git a/Pods/RxCocoa/Platform/Platform.Linux.swift b/Pods/RxCocoa/Platform/Platform.Linux.swift deleted file mode 100644 index 570f8f0..0000000 --- a/Pods/RxCocoa/Platform/Platform.Linux.swift +++ /dev/null @@ -1,37 +0,0 @@ -// -// Platform.Linux.swift -// Platform -// -// Created by Krunoslav Zaher on 12/29/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(Linux) - - import class Foundation.Thread - - extension Thread { - - static func setThreadLocalStorageValue(_ value: T?, forKey key: String) { - let currentThread = Thread.current - var threadDictionary = currentThread.threadDictionary - - if let newValue = value { - threadDictionary[key] = newValue - } - else { - threadDictionary[key] = nil - } - - currentThread.threadDictionary = threadDictionary - } - - static func getThreadLocalStorageValueForKey(_ key: String) -> T? { - let currentThread = Thread.current - let threadDictionary = currentThread.threadDictionary - - return threadDictionary[key] as? T - } - } - -#endif diff --git a/Pods/RxCocoa/Platform/RecursiveLock.swift b/Pods/RxCocoa/Platform/RecursiveLock.swift deleted file mode 100644 index c03471d..0000000 --- a/Pods/RxCocoa/Platform/RecursiveLock.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// RecursiveLock.swift -// Platform -// -// Created by Krunoslav Zaher on 12/18/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -import class Foundation.NSRecursiveLock - -#if TRACE_RESOURCES - class RecursiveLock: NSRecursiveLock { - override init() { - _ = Resources.incrementTotal() - super.init() - } - - override func lock() { - super.lock() - _ = Resources.incrementTotal() - } - - override func unlock() { - super.unlock() - _ = Resources.decrementTotal() - } - - deinit { - _ = Resources.decrementTotal() - } - } -#else - typealias RecursiveLock = NSRecursiveLock -#endif diff --git a/Pods/RxCocoa/README.md b/Pods/RxCocoa/README.md deleted file mode 100644 index 9bce47c..0000000 --- a/Pods/RxCocoa/README.md +++ /dev/null @@ -1,217 +0,0 @@ -Miss Electric Eel 2016 RxSwift: ReactiveX for Swift -====================================== - -[![Travis CI](https://travis-ci.org/ReactiveX/RxSwift.svg?branch=master)](https://travis-ci.org/ReactiveX/RxSwift) ![platforms](https://img.shields.io/badge/platforms-iOS%20%7C%20macOS%20%7C%20tvOS%20%7C%20watchOS%20%7C%20Linux-333333.svg) [![pod](https://img.shields.io/cocoapods/v/RxSwift.svg)](https://cocoapods.org/pods/RxSwift) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![Swift Package Manager compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg)](https://github.com/apple/swift-package-manager) - -* RxSwift 3.x / Swift 3.x can be found in [**rxswift-3.0** branch](https://github.com/ReactiveX/RxSwift/tree/rxswift-3.0). - -Rx is a [generic abstraction of computation](https://youtu.be/looJcaeboBY) expressed through `Observable` interface. - -This is a Swift version of [Rx](https://github.com/Reactive-Extensions/Rx.NET). - -It tries to port as many concepts from the original version as possible, but some concepts were adapted for more pleasant and performant integration with iOS/macOS environment. - -Cross platform documentation can be found on [ReactiveX.io](http://reactivex.io/). - -Like the original Rx, its intention is to enable easy composition of asynchronous operations and event/data streams. - -KVO observing, async operations and streams are all unified under [abstraction of sequence](Documentation/GettingStarted.md#observables-aka-sequences). This is the reason why Rx is so simple, elegant and powerful. - -## I came here because I want to ... - -###### ... understand - -* [why use rx?](Documentation/Why.md) -* [the basics, getting started with RxSwift](Documentation/GettingStarted.md) -* [traits](Documentation/Traits.md) - what are `Single`, `Completable`, `Maybe`, `Driver`, and `ControlProperty` ... and why do they exist? -* [testing](Documentation/UnitTests.md) -* [tips and common errors](Documentation/Tips.md) -* [debugging](Documentation/GettingStarted.md#debugging) -* [the math behind Rx](Documentation/MathBehindRx.md) -* [what are hot and cold observable sequences?](Documentation/HotAndColdObservables.md) - -###### ... install - -* Integrate RxSwift/RxCocoa with my app. [Installation Guide](#installation) - -###### ... hack around - -* with the example app. [Running Example App](Documentation/ExampleApp.md) -* with operators in playgrounds. [Playgrounds](Documentation/Playgrounds.md) - -###### ... interact - -* All of this is great, but it would be nice to talk with other people using RxSwift and exchange experiences.
[![Slack channel](http://rxswift-slack.herokuapp.com/badge.svg)](http://slack.rxswift.org) [Join Slack Channel](http://slack.rxswift.org) -* Report a problem using the library. [Open an Issue With Bug Template](.github/ISSUE_TEMPLATE.md) -* Request a new feature. [Open an Issue With Feature Request Template](Documentation/NewFeatureRequestTemplate.md) -* Help out [Check out contribution guide](CONTRIBUTING.md) - -###### ... compare - -* [with other libraries](Documentation/ComparisonWithOtherLibraries.md). - - -###### ... find compatible - -* libraries from [RxSwiftCommunity](https://github.com/RxSwiftCommunity). -* [Pods using RxSwift](https://cocoapods.org/?q=uses%3Arxswift). - -###### ... see the broader vision - -* Does this exist for Android? [RxJava](https://github.com/ReactiveX/RxJava) -* Where is all of this going, what is the future, what about reactive architectures, how do you design entire apps this way? [Cycle.js](https://github.com/cyclejs/cycle-core) - this is javascript, but [RxJS](https://github.com/Reactive-Extensions/RxJS) is javascript version of Rx. - -## Usage - - - - - - - - - - - - - - - - - - - -
Here's an exampleIn Action
Define search for GitHub repositories ...
-let searchResults = searchBar.rx.text.orEmpty
-    .throttle(0.3, scheduler: MainScheduler.instance)
-    .distinctUntilChanged()
-    .flatMapLatest { query -> Observable<[Repository]> in
-        if query.isEmpty {
-            return .just([])
-        }
-        return searchGitHub(query)
-            .catchErrorJustReturn([])
-    }
-    .observeOn(MainScheduler.instance)
... then bind the results to your tableview
-searchResults
-    .bind(to: tableView.rx.items(cellIdentifier: "Cell")) {
-        (index, repository: Repository, cell) in
-        cell.textLabel?.text = repository.name
-        cell.detailTextLabel?.text = repository.url
-    }
-    .disposed(by: disposeBag)
- - -## Requirements - -* Xcode 9.0 -* Swift 4.0 -* Swift 3.x ([use `rxswift-3.0` branch](https://github.com/ReactiveX/RxSwift/tree/rxswift-3.0) instead) -* Swift 2.3 ([use `rxswift-2.0` branch](https://github.com/ReactiveX/RxSwift/tree/rxswift-2.0) instead) - -## Installation - -Rx doesn't contain any external dependencies. - -These are currently the supported options: - -### Manual - -Open Rx.xcworkspace, choose `RxExample` and hit run. This method will build everything and run the sample app - -### [CocoaPods](https://guides.cocoapods.org/using/using-cocoapods.html) - -**Tested with `pod --version`: `1.3.1`** - -```ruby -# Podfile -use_frameworks! - -target 'YOUR_TARGET_NAME' do - pod 'RxSwift', '~> 4.0' - pod 'RxCocoa', '~> 4.0' -end - -# RxTest and RxBlocking make the most sense in the context of unit/integration tests -target 'YOUR_TESTING_TARGET' do - pod 'RxBlocking', '~> 4.0' - pod 'RxTest', '~> 4.0' -end -``` - -Replace `YOUR_TARGET_NAME` and then, in the `Podfile` directory, type: - -```bash -$ pod install -``` - -### [Carthage](https://github.com/Carthage/Carthage) - -**Tested with `carthage version`: `0.26.2`** - -Add this to `Cartfile` - -``` -github "ReactiveX/RxSwift" ~> 4.0 -``` - -```bash -$ carthage update -``` - -### [Swift Package Manager](https://github.com/apple/swift-package-manager) - -**Tested with `swift build --version`: `Swift 4.0.0-dev (swiftpm-13126)`** - -Create a `Package.swift` file. - -```swift -// swift-tools-version:4.0 - -import PackageDescription - -let package = Package( - name: "RxTestProject", - dependencies: [ - .package(url: "https://github.com/ReactiveX/RxSwift.git", "4.0.0" ..< "5.0.0") - ], - targets: [ - .target(name: "RxTestProject", dependencies: ["RxSwift", "RxCocoa"]) - ] -) -``` - -```bash -$ swift build -``` - -To build or test a module with RxTest dependency, set `TEST=1`. ([RxSwift >= 3.4.2](https://github.com/ReactiveX/RxSwift/releases/tag/3.4.2)) - -```bash -$ TEST=1 swift test -``` - -### Manually using git submodules - -* Add RxSwift as a submodule - -```bash -$ git submodule add git@github.com:ReactiveX/RxSwift.git -``` - -* Drag `Rx.xcodeproj` into Project Navigator -* Go to `Project > Targets > Build Phases > Link Binary With Libraries`, click `+` and select `RxSwift-[Platform]` and `RxCocoa-[Platform]` targets - - -## References - -* [http://reactivex.io/](http://reactivex.io/) -* [Reactive Extensions GitHub (GitHub)](https://github.com/Reactive-Extensions) -* [RxSwift RayWenderlich.com Book](https://store.raywenderlich.com/products/rxswift-reactive-programming-with-swift) -* [Boxue.io RxSwift Online Course](https://boxueio.com/series/rxswift-101) (Chinese 🇨🇳) -* [Erik Meijer (Wikipedia)](http://en.wikipedia.org/wiki/Erik_Meijer_%28computer_scientist%29) -* [Expert to Expert: Brian Beckman and Erik Meijer - Inside the .NET Reactive Framework (Rx) (video)](https://youtu.be/looJcaeboBY) -* [Reactive Programming Overview (Jafar Husain from Netflix)](https://www.youtube.com/watch?v=dwP1TNXE6fc) -* [Subject/Observer is Dual to Iterator (paper)](http://csl.stanford.edu/~christos/pldi2010.fit/meijer.duality.pdf) -* [Rx standard sequence operators visualized (visualization tool)](http://rxmarbles.com/) -* [Haskell](https://www.haskell.org/) diff --git a/Pods/RxCocoa/RxCocoa/Common/Binder.swift b/Pods/RxCocoa/RxCocoa/Common/Binder.swift deleted file mode 100644 index 80fec26..0000000 --- a/Pods/RxCocoa/RxCocoa/Common/Binder.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// Binder.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 9/17/17. -// Copyright © 2017 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -/** - Observer that enforces interface binding rules: - * can't bind errors (in debug builds binding of errors causes `fatalError` in release builds errors are being logged) - * ensures binding is performed on a specific scheduler - - `Binder` doesn't retain target and in case target is released, element isn't bound. - - By default it binds elements on main scheduler. - */ -public struct Binder: ObserverType { - public typealias E = Value - - private let _binding: (Event) -> Void - - /// Initializes `Binder` - /// - /// - parameter target: Target object. - /// - parameter scheduler: Scheduler used to bind the events. - /// - parameter binding: Binding logic. - public init(_ target: Target, scheduler: ImmediateSchedulerType = MainScheduler(), binding: @escaping (Target, Value) -> Void) { - weak var weakTarget = target - - self._binding = { event in - switch event { - case .next(let element): - _ = scheduler.schedule(element) { element in - if let target = weakTarget { - binding(target, element) - } - return Disposables.create() - } - case .error(let error): - bindingError(error) - case .completed: - break - } - } - } - - /// Binds next element to owner view as described in `binding`. - public func on(_ event: Event) { - self._binding(event) - } - - /// Erases type of observer. - /// - /// - returns: type erased observer. - public func asObserver() -> AnyObserver { - return AnyObserver(eventHandler: self.on) - } -} diff --git a/Pods/RxCocoa/RxCocoa/Common/ControlTarget.swift b/Pods/RxCocoa/RxCocoa/Common/ControlTarget.swift deleted file mode 100644 index 10fcb85..0000000 --- a/Pods/RxCocoa/RxCocoa/Common/ControlTarget.swift +++ /dev/null @@ -1,94 +0,0 @@ -// -// ControlTarget.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 2/21/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) || os(macOS) - -import RxSwift - -#if os(iOS) || os(tvOS) - import UIKit - - typealias Control = UIKit.UIControl - - #if swift(>=4.2) - public typealias ControlEvents = UIKit.UIControl.Event - #else - public typealias ControlEvents = UIKit.UIControlEvents - #endif -#elseif os(macOS) - import Cocoa - - typealias Control = Cocoa.NSControl -#endif - -// This should be only used from `MainScheduler` -final class ControlTarget: RxTarget { - typealias Callback = (Control) -> Void - - let selector: Selector = #selector(ControlTarget.eventHandler(_:)) - - weak var control: Control? -#if os(iOS) || os(tvOS) - let controlEvents: UIControlEvents -#endif - var callback: Callback? - #if os(iOS) || os(tvOS) - init(control: Control, controlEvents: UIControlEvents, callback: @escaping Callback) { - MainScheduler.ensureRunningOnMainThread() - - self.control = control - self.controlEvents = controlEvents - self.callback = callback - - super.init() - - control.addTarget(self, action: selector, for: controlEvents) - - let method = self.method(for: selector) - if method == nil { - rxFatalError("Can't find method") - } - } -#elseif os(macOS) - init(control: Control, callback: @escaping Callback) { - MainScheduler.ensureRunningOnMainThread() - - self.control = control - self.callback = callback - - super.init() - - control.target = self - control.action = self.selector - - let method = self.method(for: self.selector) - if method == nil { - rxFatalError("Can't find method") - } - } -#endif - - @objc func eventHandler(_ sender: Control!) { - if let callback = self.callback, let control = self.control { - callback(control) - } - } - - override func dispose() { - super.dispose() -#if os(iOS) || os(tvOS) - self.control?.removeTarget(self, action: self.selector, for: self.controlEvents) -#elseif os(macOS) - self.control?.target = nil - self.control?.action = nil -#endif - self.callback = nil - } -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/Common/DelegateProxy.swift b/Pods/RxCocoa/RxCocoa/Common/DelegateProxy.swift deleted file mode 100644 index 33346c4..0000000 --- a/Pods/RxCocoa/RxCocoa/Common/DelegateProxy.swift +++ /dev/null @@ -1,293 +0,0 @@ -// -// DelegateProxy.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 6/14/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if !os(Linux) - - import RxSwift - #if SWIFT_PACKAGE && !os(Linux) - import RxCocoaRuntime - #endif - - /// Base class for `DelegateProxyType` protocol. - /// - /// This implementation is not thread safe and can be used only from one thread (Main thread). - open class DelegateProxy: _RXDelegateProxy { - public typealias ParentObject = P - public typealias Delegate = D - - private var _sentMessageForSelector = [Selector: MessageDispatcher]() - private var _methodInvokedForSelector = [Selector: MessageDispatcher]() - - /// Parent object associated with delegate proxy. - private weak var _parentObject: ParentObject? - - fileprivate let _currentDelegateFor: (ParentObject) -> AnyObject? - fileprivate let _setCurrentDelegateTo: (AnyObject?, ParentObject) -> Void - - /// Initializes new instance. - /// - /// - parameter parentObject: Optional parent object that owns `DelegateProxy` as associated object. - public init(parentObject: ParentObject, delegateProxy: Proxy.Type) - where Proxy: DelegateProxy, Proxy.ParentObject == ParentObject, Proxy.Delegate == Delegate { - self._parentObject = parentObject - self._currentDelegateFor = delegateProxy._currentDelegate - self._setCurrentDelegateTo = delegateProxy._setCurrentDelegate - - MainScheduler.ensureRunningOnMainThread() - #if TRACE_RESOURCES - _ = Resources.incrementTotal() - #endif - super.init() - } - - /** - Returns observable sequence of invocations of delegate methods. Elements are sent *before method is invoked*. - - Only methods that have `void` return value can be observed using this method because - those methods are used as a notification mechanism. It doesn't matter if they are optional - or not. Observing is performed by installing a hidden associated `PublishSubject` that is - used to dispatch messages to observers. - - Delegate methods that have non `void` return value can't be observed directly using this method - because: - * those methods are not intended to be used as a notification mechanism, but as a behavior customization mechanism - * there is no sensible automatic way to determine a default return value - - In case observing of delegate methods that have return type is required, it can be done by - manually installing a `PublishSubject` or `BehaviorSubject` and implementing delegate method. - - e.g. - - // delegate proxy part (RxScrollViewDelegateProxy) - - let internalSubject = PublishSubject - - public func requiredDelegateMethod(scrollView: UIScrollView, arg1: CGPoint) -> Bool { - internalSubject.on(.next(arg1)) - return self._forwardToDelegate?.requiredDelegateMethod?(scrollView, arg1: arg1) ?? defaultReturnValue - } - - .... - - // reactive property implementation in a real class (`UIScrollView`) - public var property: Observable { - let proxy = RxScrollViewDelegateProxy.proxy(for: base) - return proxy.internalSubject.asObservable() - } - - **In case calling this method prints "Delegate proxy is already implementing `\(selector)`, - a more performant way of registering might exist.", that means that manual observing method - is required analog to the example above because delegate method has already been implemented.** - - - parameter selector: Selector used to filter observed invocations of delegate methods. - - returns: Observable sequence of arguments passed to `selector` method. - */ - open func sentMessage(_ selector: Selector) -> Observable<[Any]> { - MainScheduler.ensureRunningOnMainThread() - - let subject = self._sentMessageForSelector[selector] - - if let subject = subject { - return subject.asObservable() - } - else { - let subject = MessageDispatcher(selector: selector, delegateProxy: self) - self._sentMessageForSelector[selector] = subject - return subject.asObservable() - } - } - - /** - Returns observable sequence of invoked delegate methods. Elements are sent *after method is invoked*. - - Only methods that have `void` return value can be observed using this method because - those methods are used as a notification mechanism. It doesn't matter if they are optional - or not. Observing is performed by installing a hidden associated `PublishSubject` that is - used to dispatch messages to observers. - - Delegate methods that have non `void` return value can't be observed directly using this method - because: - * those methods are not intended to be used as a notification mechanism, but as a behavior customization mechanism - * there is no sensible automatic way to determine a default return value - - In case observing of delegate methods that have return type is required, it can be done by - manually installing a `PublishSubject` or `BehaviorSubject` and implementing delegate method. - - e.g. - - // delegate proxy part (RxScrollViewDelegateProxy) - - let internalSubject = PublishSubject - - public func requiredDelegateMethod(scrollView: UIScrollView, arg1: CGPoint) -> Bool { - internalSubject.on(.next(arg1)) - return self._forwardToDelegate?.requiredDelegateMethod?(scrollView, arg1: arg1) ?? defaultReturnValue - } - - .... - - // reactive property implementation in a real class (`UIScrollView`) - public var property: Observable { - let proxy = RxScrollViewDelegateProxy.proxy(for: base) - return proxy.internalSubject.asObservable() - } - - **In case calling this method prints "Delegate proxy is already implementing `\(selector)`, - a more performant way of registering might exist.", that means that manual observing method - is required analog to the example above because delegate method has already been implemented.** - - - parameter selector: Selector used to filter observed invocations of delegate methods. - - returns: Observable sequence of arguments passed to `selector` method. - */ - open func methodInvoked(_ selector: Selector) -> Observable<[Any]> { - MainScheduler.ensureRunningOnMainThread() - - let subject = self._methodInvokedForSelector[selector] - - if let subject = subject { - return subject.asObservable() - } - else { - let subject = MessageDispatcher(selector: selector, delegateProxy: self) - self._methodInvokedForSelector[selector] = subject - return subject.asObservable() - } - } - - fileprivate func checkSelectorIsObservable(_ selector: Selector) { - MainScheduler.ensureRunningOnMainThread() - - if self.hasWiredImplementation(for: selector) { - print("⚠️ Delegate proxy is already implementing `\(selector)`, a more performant way of registering might exist.") - return - } - - if self.voidDelegateMethodsContain(selector) { - return - } - - // In case `_forwardToDelegate` is `nil`, it is assumed the check is being done prematurely. - if !(self._forwardToDelegate?.responds(to: selector) ?? true) { - print("⚠️ Using delegate proxy dynamic interception method but the target delegate object doesn't respond to the requested selector. " + - "In case pure Swift delegate proxy is being used please use manual observing method by using`PublishSubject`s. " + - " (selector: `\(selector)`, forwardToDelegate: `\(self._forwardToDelegate ?? self)`)") - } - } - - // proxy - - open override func _sentMessage(_ selector: Selector, withArguments arguments: [Any]) { - self._sentMessageForSelector[selector]?.on(.next(arguments)) - } - - open override func _methodInvoked(_ selector: Selector, withArguments arguments: [Any]) { - self._methodInvokedForSelector[selector]?.on(.next(arguments)) - } - - /// Returns reference of normal delegate that receives all forwarded messages - /// through `self`. - /// - /// - returns: Value of reference if set or nil. - open func forwardToDelegate() -> Delegate? { - return castOptionalOrFatalError(self._forwardToDelegate) - } - - /// Sets reference of normal delegate that receives all forwarded messages - /// through `self`. - /// - /// - parameter forwardToDelegate: Reference of delegate that receives all messages through `self`. - /// - parameter retainDelegate: Should `self` retain `forwardToDelegate`. - open func setForwardToDelegate(_ delegate: Delegate?, retainDelegate: Bool) { - #if DEBUG // 4.0 all configurations - MainScheduler.ensureRunningOnMainThread() - #endif - self._setForwardToDelegate(delegate, retainDelegate: retainDelegate) - - let sentSelectors: [Selector] = self._sentMessageForSelector.values.filter { $0.hasObservers }.map { $0.selector } - let invokedSelectors: [Selector] = self._methodInvokedForSelector.values.filter { $0.hasObservers }.map { $0.selector } - let allUsedSelectors = sentSelectors + invokedSelectors - - for selector in Set(allUsedSelectors) { - self.checkSelectorIsObservable(selector) - } - - self.reset() - } - - private func hasObservers(selector: Selector) -> Bool { - return (self._sentMessageForSelector[selector]?.hasObservers ?? false) - || (self._methodInvokedForSelector[selector]?.hasObservers ?? false) - } - - override open func responds(to aSelector: Selector!) -> Bool { - return super.responds(to: aSelector) - || (self._forwardToDelegate?.responds(to: aSelector) ?? false) - || (self.voidDelegateMethodsContain(aSelector) && self.hasObservers(selector: aSelector)) - } - - fileprivate func reset() { - guard let parentObject = self._parentObject else { return } - - let maybeCurrentDelegate = self._currentDelegateFor(parentObject) - - if maybeCurrentDelegate === self { - self._setCurrentDelegateTo(nil, parentObject) - self._setCurrentDelegateTo(castOrFatalError(self), parentObject) - } - } - - deinit { - for v in self._sentMessageForSelector.values { - v.on(.completed) - } - for v in self._methodInvokedForSelector.values { - v.on(.completed) - } - #if TRACE_RESOURCES - _ = Resources.decrementTotal() - #endif - } - - - } - - private let mainScheduler = MainScheduler() - - fileprivate final class MessageDispatcher { - private let dispatcher: PublishSubject<[Any]> - private let result: Observable<[Any]> - - fileprivate let selector: Selector - - init(selector: Selector, delegateProxy _delegateProxy: DelegateProxy) { - weak var weakDelegateProxy = _delegateProxy - - let dispatcher = PublishSubject<[Any]>() - self.dispatcher = dispatcher - self.selector = selector - - self.result = dispatcher - .do(onSubscribed: { weakDelegateProxy?.checkSelectorIsObservable(selector); weakDelegateProxy?.reset() }, onDispose: { weakDelegateProxy?.reset() }) - .share() - .subscribeOn(mainScheduler) - } - - var on: (Event<[Any]>) -> Void { - return self.dispatcher.on - } - - var hasObservers: Bool { - return self.dispatcher.hasObservers - } - - func asObservable() -> Observable<[Any]> { - return self.result - } - } - -#endif diff --git a/Pods/RxCocoa/RxCocoa/Common/DelegateProxyType.swift b/Pods/RxCocoa/RxCocoa/Common/DelegateProxyType.swift deleted file mode 100644 index 43a38bd..0000000 --- a/Pods/RxCocoa/RxCocoa/Common/DelegateProxyType.swift +++ /dev/null @@ -1,429 +0,0 @@ -// -// DelegateProxyType.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 6/15/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if !os(Linux) - - import func Foundation.objc_getAssociatedObject - import func Foundation.objc_setAssociatedObject - - import RxSwift - -/** -`DelegateProxyType` protocol enables using both normal delegates and Rx observable sequences with -views that can have only one delegate/datasource registered. - -`Proxies` store information about observers, subscriptions and delegates -for specific views. - -Type implementing `DelegateProxyType` should never be initialized directly. - -To fetch initialized instance of type implementing `DelegateProxyType`, `proxy` method -should be used. - -This is more or less how it works. - - - - +-------------------------------------------+ - | | - | UIView subclass (UIScrollView) | - | | - +-----------+-------------------------------+ - | - | Delegate - | - | - +-----------v-------------------------------+ - | | - | Delegate proxy : DelegateProxyType +-----+----> Observable - | , UIScrollViewDelegate | | - +-----------+-------------------------------+ +----> Observable - | | - | +----> Observable - | | - | forwards events | - | to custom delegate | - | v - +-----------v-------------------------------+ - | | - | Custom delegate (UIScrollViewDelegate) | - | | - +-------------------------------------------+ - - -Since RxCocoa needs to automagically create those Proxys and because views that have delegates can be hierarchical - - UITableView : UIScrollView : UIView - -.. and corresponding delegates are also hierarchical - - UITableViewDelegate : UIScrollViewDelegate : NSObject - -... this mechanism can be extended by using the following snippet in `registerKnownImplementations` or in some other - part of your app that executes before using `rx.*` (e.g. appDidFinishLaunching). - - RxScrollViewDelegateProxy.register { RxTableViewDelegateProxy(parentObject: $0) } - -*/ -public protocol DelegateProxyType: class { - associatedtype ParentObject: AnyObject - associatedtype Delegate - - /// It is require that enumerate call `register` of the extended DelegateProxy subclasses here. - static func registerKnownImplementations() - - /// Unique identifier for delegate - static var identifier: UnsafeRawPointer { get } - - /// Returns designated delegate property for object. - /// - /// Objects can have multiple delegate properties. - /// - /// Each delegate property needs to have it's own type implementing `DelegateProxyType`. - /// - /// It's abstract method. - /// - /// - parameter object: Object that has delegate property. - /// - returns: Value of delegate property. - static func currentDelegate(for object: ParentObject) -> Delegate? - - /// Sets designated delegate property for object. - /// - /// Objects can have multiple delegate properties. - /// - /// Each delegate property needs to have it's own type implementing `DelegateProxyType`. - /// - /// It's abstract method. - /// - /// - parameter toObject: Object that has delegate property. - /// - parameter delegate: Delegate value. - static func setCurrentDelegate(_ delegate: Delegate?, to object: ParentObject) - - /// Returns reference of normal delegate that receives all forwarded messages - /// through `self`. - /// - /// - returns: Value of reference if set or nil. - func forwardToDelegate() -> Delegate? - - /// Sets reference of normal delegate that receives all forwarded messages - /// through `self`. - /// - /// - parameter forwardToDelegate: Reference of delegate that receives all messages through `self`. - /// - parameter retainDelegate: Should `self` retain `forwardToDelegate`. - func setForwardToDelegate(_ forwardToDelegate: Delegate?, retainDelegate: Bool) -} - -// default implementations -extension DelegateProxyType { - /// Unique identifier for delegate - public static var identifier: UnsafeRawPointer { - let delegateIdentifier = ObjectIdentifier(Delegate.self) - let integerIdentifier = Int(bitPattern: delegateIdentifier) - return UnsafeRawPointer(bitPattern: integerIdentifier)! - } -} - -// workaround of Delegate: class -extension DelegateProxyType { - static func _currentDelegate(for object: ParentObject) -> AnyObject? { - return currentDelegate(for: object).map { $0 as AnyObject } - } - - static func _setCurrentDelegate(_ delegate: AnyObject?, to object: ParentObject) { - return setCurrentDelegate(castOptionalOrFatalError(delegate), to: object) - } - - func _forwardToDelegate() -> AnyObject? { - return self.forwardToDelegate().map { $0 as AnyObject } - } - - func _setForwardToDelegate(_ forwardToDelegate: AnyObject?, retainDelegate: Bool) { - return self.setForwardToDelegate(castOptionalOrFatalError(forwardToDelegate), retainDelegate: retainDelegate) - } -} - -extension DelegateProxyType { - - /// Store DelegateProxy subclass to factory. - /// When make 'Rx*DelegateProxy' subclass, call 'Rx*DelegateProxySubclass.register(for:_)' 1 time, or use it in DelegateProxyFactory - /// 'Rx*DelegateProxy' can have one subclass implementation per concrete ParentObject type. - /// Should call it from concrete DelegateProxy type, not generic. - public static func register(make: @escaping (Parent) -> Self) { - self.factory.extend(make: make) - } - - /// Creates new proxy for target object. - /// Should not call this function directory, use 'DelegateProxy.proxy(for:)' - public static func createProxy(for object: AnyObject) -> Self { - return castOrFatalError(factory.createProxy(for: object)) - } - - /// Returns existing proxy for object or installs new instance of delegate proxy. - /// - /// - parameter object: Target object on which to install delegate proxy. - /// - returns: Installed instance of delegate proxy. - /// - /// - /// extension Reactive where Base: UISearchBar { - /// - /// public var delegate: DelegateProxy { - /// return RxSearchBarDelegateProxy.proxy(for: base) - /// } - /// - /// public var text: ControlProperty { - /// let source: Observable = self.delegate.observe(#selector(UISearchBarDelegate.searchBar(_:textDidChange:))) - /// ... - /// } - /// } - public static func proxy(for object: ParentObject) -> Self { - MainScheduler.ensureRunningOnMainThread() - - let maybeProxy = self.assignedProxy(for: object) - - let proxy: AnyObject - if let existingProxy = maybeProxy { - proxy = existingProxy - } - else { - proxy = castOrFatalError(self.createProxy(for: object)) - self.assignProxy(proxy, toObject: object) - assert(self.assignedProxy(for: object) === proxy) - } - let currentDelegate = self._currentDelegate(for: object) - let delegateProxy: Self = castOrFatalError(proxy) - - if currentDelegate !== delegateProxy { - delegateProxy._setForwardToDelegate(currentDelegate, retainDelegate: false) - assert(delegateProxy._forwardToDelegate() === currentDelegate) - self._setCurrentDelegate(proxy, to: object) - assert(self._currentDelegate(for: object) === proxy) - assert(delegateProxy._forwardToDelegate() === currentDelegate) - } - - return delegateProxy - } - - /// Sets forward delegate for `DelegateProxyType` associated with a specific object and return disposable that can be used to unset the forward to delegate. - /// Using this method will also make sure that potential original object cached selectors are cleared and will report any accidental forward delegate mutations. - /// - /// - parameter forwardDelegate: Delegate object to set. - /// - parameter retainDelegate: Retain `forwardDelegate` while it's being set. - /// - parameter onProxyForObject: Object that has `delegate` property. - /// - returns: Disposable object that can be used to clear forward delegate. - public static func installForwardDelegate(_ forwardDelegate: Delegate, retainDelegate: Bool, onProxyForObject object: ParentObject) -> Disposable { - weak var weakForwardDelegate: AnyObject? = forwardDelegate as AnyObject - let proxy = self.proxy(for: object) - - assert(proxy._forwardToDelegate() === nil, "This is a feature to warn you that there is already a delegate (or data source) set somewhere previously. The action you are trying to perform will clear that delegate (data source) and that means that some of your features that depend on that delegate (data source) being set will likely stop working.\n" + - "If you are ok with this, try to set delegate (data source) to `nil` in front of this operation.\n" + - " This is the source object value: \(object)\n" + - " This is the original delegate (data source) value: \(proxy.forwardToDelegate()!)\n" + - "Hint: Maybe delegate was already set in xib or storyboard and now it's being overwritten in code.\n") - - proxy.setForwardToDelegate(forwardDelegate, retainDelegate: retainDelegate) - - return Disposables.create { - MainScheduler.ensureRunningOnMainThread() - - let delegate: AnyObject? = weakForwardDelegate - - assert(delegate == nil || proxy._forwardToDelegate() === delegate, "Delegate was changed from time it was first set. Current \(String(describing: proxy.forwardToDelegate())), and it should have been \(proxy)") - - proxy.setForwardToDelegate(nil, retainDelegate: retainDelegate) - } - } -} - - -// fileprivate extensions -extension DelegateProxyType { - fileprivate static var factory: DelegateProxyFactory { - return DelegateProxyFactory.sharedFactory(for: self) - } - - fileprivate static func assignedProxy(for object: ParentObject) -> AnyObject? { - let maybeDelegate = objc_getAssociatedObject(object, self.identifier) - return castOptionalOrFatalError(maybeDelegate) - } - - fileprivate static func assignProxy(_ proxy: AnyObject, toObject object: ParentObject) { - objc_setAssociatedObject(object, self.identifier, proxy, .OBJC_ASSOCIATION_RETAIN) - } -} - -/// Describes an object that has a delegate. -public protocol HasDelegate: AnyObject { - /// Delegate type - associatedtype Delegate - - /// Delegate - var delegate: Delegate? { get set } -} - -extension DelegateProxyType where ParentObject: HasDelegate, Self.Delegate == ParentObject.Delegate { - public static func currentDelegate(for object: ParentObject) -> Delegate? { - return object.delegate - } - - public static func setCurrentDelegate(_ delegate: Delegate?, to object: ParentObject) { - object.delegate = delegate - } -} - -/// Describes an object that has a data source. -public protocol HasDataSource: AnyObject { - /// Data source type - associatedtype DataSource - - /// Data source - var dataSource: DataSource? { get set } -} - -extension DelegateProxyType where ParentObject: HasDataSource, Self.Delegate == ParentObject.DataSource { - public static func currentDelegate(for object: ParentObject) -> Delegate? { - return object.dataSource - } - - public static func setCurrentDelegate(_ delegate: Delegate?, to object: ParentObject) { - object.dataSource = delegate - } -} - -/// Describes an object that has a prefetch data source. -@available(iOS 10.0, tvOS 10.0, *) -public protocol HasPrefetchDataSource: AnyObject { - /// Prefetch data source type - associatedtype PrefetchDataSource - - /// Prefetch data source - var prefetchDataSource: PrefetchDataSource? { get set } -} - -@available(iOS 10.0, tvOS 10.0, *) -extension DelegateProxyType where ParentObject: HasPrefetchDataSource, Self.Delegate == ParentObject.PrefetchDataSource { - public static func currentDelegate(for object: ParentObject) -> Delegate? { - return object.prefetchDataSource - } - - public static func setCurrentDelegate(_ delegate: Delegate?, to object: ParentObject) { - object.prefetchDataSource = delegate - } -} - - #if os(iOS) || os(tvOS) - import UIKit - - extension ObservableType { - func subscribeProxyDataSource(ofObject object: DelegateProxy.ParentObject, dataSource: DelegateProxy.Delegate, retainDataSource: Bool, binding: @escaping (DelegateProxy, Event) -> Void) - -> Disposable - where DelegateProxy.ParentObject: UIView - , DelegateProxy.Delegate: AnyObject { - let proxy = DelegateProxy.proxy(for: object) - let unregisterDelegate = DelegateProxy.installForwardDelegate(dataSource, retainDelegate: retainDataSource, onProxyForObject: object) - // this is needed to flush any delayed old state (https://github.com/RxSwiftCommunity/RxDataSources/pull/75) - object.layoutIfNeeded() - - let subscription = self.asObservable() - .observeOn(MainScheduler()) - .catchError { error in - bindingError(error) - return Observable.empty() - } - // source can never end, otherwise it would release the subscriber, and deallocate the data source - .concat(Observable.never()) - .takeUntil(object.rx.deallocated) - .subscribe { [weak object] (event: Event) in - - if let object = object { - assert(proxy === DelegateProxy.currentDelegate(for: object), "Proxy changed from the time it was first set.\nOriginal: \(proxy)\nExisting: \(String(describing: DelegateProxy.currentDelegate(for: object)))") - } - - binding(proxy, event) - - switch event { - case .error(let error): - bindingError(error) - unregisterDelegate.dispose() - case .completed: - unregisterDelegate.dispose() - default: - break - } - } - - return Disposables.create { [weak object] in - subscription.dispose() - object?.layoutIfNeeded() - unregisterDelegate.dispose() - } - } - } - - #endif - - /** - - To add delegate proxy subclasses call `DelegateProxySubclass.register()` in `registerKnownImplementations` or in some other - part of your app that executes before using `rx.*` (e.g. appDidFinishLaunching). - - class RxScrollViewDelegateProxy: DelegateProxy { - public static func registerKnownImplementations() { - self.register { RxTableViewDelegateProxy(parentObject: $0) } - } - ... - - - */ - private class DelegateProxyFactory { - private static var _sharedFactories: [UnsafeRawPointer: DelegateProxyFactory] = [:] - - fileprivate static func sharedFactory(for proxyType: DelegateProxy.Type) -> DelegateProxyFactory { - MainScheduler.ensureRunningOnMainThread() - let identifier = DelegateProxy.identifier - if let factory = _sharedFactories[identifier] { - return factory - } - let factory = DelegateProxyFactory(for: proxyType) - _sharedFactories[identifier] = factory - DelegateProxy.registerKnownImplementations() - return factory - } - - private var _factories: [ObjectIdentifier: ((AnyObject) -> AnyObject)] - private var _delegateProxyType: Any.Type - private var _identifier: UnsafeRawPointer - - private init(for proxyType: DelegateProxy.Type) { - self._factories = [:] - self._delegateProxyType = proxyType - self._identifier = proxyType.identifier - } - - fileprivate func extend(make: @escaping (ParentObject) -> DelegateProxy) { - MainScheduler.ensureRunningOnMainThread() - precondition(self._identifier == DelegateProxy.identifier, "Delegate proxy has inconsistent identifier") - guard self._factories[ObjectIdentifier(ParentObject.self)] == nil else { - rxFatalError("The factory of \(ParentObject.self) is duplicated. DelegateProxy is not allowed of duplicated base object type.") - } - self._factories[ObjectIdentifier(ParentObject.self)] = { make(castOrFatalError($0)) } - } - - fileprivate func createProxy(for object: AnyObject) -> AnyObject { - MainScheduler.ensureRunningOnMainThread() - var maybeMirror: Mirror? = Mirror(reflecting: object) - while let mirror = maybeMirror { - if let factory = self._factories[ObjectIdentifier(mirror.subjectType)] { - return factory(object) - } - maybeMirror = mirror.superclassMirror - } - rxFatalError("DelegateProxy has no factory of \(object). Implement DelegateProxy subclass for \(object) first.") - } - } - -#endif diff --git a/Pods/RxCocoa/RxCocoa/Common/KeyPathBinder.swift b/Pods/RxCocoa/RxCocoa/Common/KeyPathBinder.swift deleted file mode 100644 index 7f81561..0000000 --- a/Pods/RxCocoa/RxCocoa/Common/KeyPathBinder.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// KeyPathBinder.swift -// RxCocoa -// -// Created by Ryo Aoyama on 2/7/18. -// Copyright © 2018 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -extension Reactive where Base: AnyObject { - - /// Bindable sink for arbitrary property using the given key path. - /// Binding runs on the MainScheduler. - /// - /// - parameter keyPath: Key path to write to the property. - public subscript(keyPath: ReferenceWritableKeyPath) -> Binder { - return Binder(self.base) { base, value in - base[keyPath: keyPath] = value - } - } - - /// Bindable sink for arbitrary property using the given key path. - /// Binding runs on the specified scheduler. - /// - /// - parameter keyPath: Key path to write to the property. - /// - parameter scheduler: Scheduler to run bindings on. - public subscript(keyPath: ReferenceWritableKeyPath, on scheduler: ImmediateSchedulerType) -> Binder { - return Binder(self.base, scheduler: scheduler) { base, value in - base[keyPath: keyPath] = value - } - } - -} diff --git a/Pods/RxCocoa/RxCocoa/Common/NSLayoutConstraint+Rx.swift b/Pods/RxCocoa/RxCocoa/Common/NSLayoutConstraint+Rx.swift deleted file mode 100644 index 5810fe5..0000000 --- a/Pods/RxCocoa/RxCocoa/Common/NSLayoutConstraint+Rx.swift +++ /dev/null @@ -1,39 +0,0 @@ -// -// NSLayoutConstraint+Rx.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 12/6/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if !os(Linux) - -#if os(macOS) - import Cocoa -#else - import UIKit -#endif - -import RxSwift - -#if os(iOS) || os(macOS) || os(tvOS) -extension Reactive where Base: NSLayoutConstraint { - /// Bindable sink for `constant` property. - public var constant: Binder { - return Binder(self.base) { constraint, constant in - constraint.constant = constant - } - } - - /// Bindable sink for `active` property. - @available(iOS 8, OSX 10.10, *) - public var active: Binder { - return Binder(self.base) { constraint, value in - constraint.isActive = value - } - } -} - -#endif - -#endif diff --git a/Pods/RxCocoa/RxCocoa/Common/Observable+Bind.swift b/Pods/RxCocoa/RxCocoa/Common/Observable+Bind.swift deleted file mode 100644 index 1092602..0000000 --- a/Pods/RxCocoa/RxCocoa/Common/Observable+Bind.swift +++ /dev/null @@ -1,151 +0,0 @@ -// -// Observable+Bind.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 8/29/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - - -import RxSwift - -extension ObservableType { - - /** - Creates new subscription and sends elements to observer. - - In this form it's equivalent to `subscribe` method, but it communicates intent better, and enables - writing more consistent binding code. - - - parameter to: Observer that receives events. - - returns: Disposable object that can be used to unsubscribe the observer. - */ - public func bind(to observer: O) -> Disposable where O.E == E { - return self.subscribe(observer) - } - - /** - Creates new subscription and sends elements to observer. - - In this form it's equivalent to `subscribe` method, but it communicates intent better, and enables - writing more consistent binding code. - - - parameter to: Observer that receives events. - - returns: Disposable object that can be used to unsubscribe the observer. - */ - public func bind(to observer: O) -> Disposable where O.E == E? { - return self.map { $0 }.subscribe(observer) - } - - /** - Creates new subscription and sends elements to publish relay. - - In case error occurs in debug mode, `fatalError` will be raised. - In case error occurs in release mode, `error` will be logged. - - - parameter to: Target publish relay for sequence elements. - - returns: Disposable object that can be used to unsubscribe the observer. - */ - public func bind(to relay: PublishRelay) -> Disposable { - return self.subscribe { e in - switch e { - case let .next(element): - relay.accept(element) - case let .error(error): - rxFatalErrorInDebug("Binding error to publish relay: \(error)") - case .completed: - break - } - } - } - - /** - Creates new subscription and sends elements to publish relay. - - In case error occurs in debug mode, `fatalError` will be raised. - In case error occurs in release mode, `error` will be logged. - - - parameter to: Target publish relay for sequence elements. - - returns: Disposable object that can be used to unsubscribe the observer. - */ - public func bind(to relay: PublishRelay) -> Disposable { - return self.map { $0 as E? }.bind(to: relay) - } - - /** - Creates new subscription and sends elements to behavior relay. - - In case error occurs in debug mode, `fatalError` will be raised. - In case error occurs in release mode, `error` will be logged. - - - parameter to: Target behavior relay for sequence elements. - - returns: Disposable object that can be used to unsubscribe the observer. - */ - public func bind(to relay: BehaviorRelay) -> Disposable { - return self.subscribe { e in - switch e { - case let .next(element): - relay.accept(element) - case let .error(error): - rxFatalErrorInDebug("Binding error to behavior relay: \(error)") - case .completed: - break - } - } - } - - /** - Creates new subscription and sends elements to behavior relay. - - In case error occurs in debug mode, `fatalError` will be raised. - In case error occurs in release mode, `error` will be logged. - - - parameter to: Target behavior relay for sequence elements. - - returns: Disposable object that can be used to unsubscribe the observer. - */ - public func bind(to relay: BehaviorRelay) -> Disposable { - return self.map { $0 as E? }.bind(to: relay) - } - - /** - Subscribes to observable sequence using custom binder function. - - - parameter to: Function used to bind elements from `self`. - - returns: Object representing subscription. - */ - public func bind(to binder: (Self) -> R) -> R { - return binder(self) - } - - /** - Subscribes to observable sequence using custom binder function and final parameter passed to binder function - after `self` is passed. - - public func bind(to binder: Self -> R1 -> R2, curriedArgument: R1) -> R2 { - return binder(self)(curriedArgument) - } - - - parameter to: Function used to bind elements from `self`. - - parameter curriedArgument: Final argument passed to `binder` to finish binding process. - - returns: Object representing subscription. - */ - public func bind(to binder: (Self) -> (R1) -> R2, curriedArgument: R1) -> R2 { - return binder(self)(curriedArgument) - } - - - /** - Subscribes an element handler to an observable sequence. - - In case error occurs in debug mode, `fatalError` will be raised. - In case error occurs in release mode, `error` will be logged. - - - parameter onNext: Action to invoke for each element in the observable sequence. - - returns: Subscription object used to unsubscribe from the observable sequence. - */ - public func bind(onNext: @escaping (E) -> Void) -> Disposable { - return self.subscribe(onNext: onNext, onError: { error in - rxFatalErrorInDebug("Binding error: \(error)") - }) - } -} diff --git a/Pods/RxCocoa/RxCocoa/Common/RxCocoaObjCRuntimeError+Extensions.swift b/Pods/RxCocoa/RxCocoa/Common/RxCocoaObjCRuntimeError+Extensions.swift deleted file mode 100644 index 5a1af71..0000000 --- a/Pods/RxCocoa/RxCocoa/Common/RxCocoaObjCRuntimeError+Extensions.swift +++ /dev/null @@ -1,159 +0,0 @@ -// -// RxCocoaObjCRuntimeError+Extensions.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 10/9/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -#if SWIFT_PACKAGE && !DISABLE_SWIZZLING && !os(Linux) - import RxCocoaRuntime -#endif - -#if !DISABLE_SWIZZLING && !os(Linux) - /// RxCocoa ObjC runtime interception mechanism. - public enum RxCocoaInterceptionMechanism { - /// Unknown message interception mechanism. - case unknown - /// Key value observing interception mechanism. - case kvo - } - - /// RxCocoa ObjC runtime modification errors. - public enum RxCocoaObjCRuntimeError - : Swift.Error - , CustomDebugStringConvertible { - /// Unknown error has occurred. - case unknown(target: AnyObject) - - /** - If the object is reporting a different class then it's real class, that means that there is probably - already some interception mechanism in place or something weird is happening. - - The most common case when this would happen is when using a combination of KVO (`observe`) and `sentMessage`. - - This error is easily resolved by just using `sentMessage` observing before `observe`. - - The reason why the other way around could create issues is because KVO will unregister it's interceptor - class and restore original class. Unfortunately that will happen no matter was there another interceptor - subclass registered in hierarchy or not. - - Failure scenario: - * KVO sets class to be `__KVO__OriginalClass` (subclass of `OriginalClass`) - * `sentMessage` sets object class to be `_RX_namespace___KVO__OriginalClass` (subclass of `__KVO__OriginalClass`) - * then unobserving with KVO will restore class to be `OriginalClass` -> failure point (possibly a bug in KVO) - - The reason why changing order of observing works is because any interception method on unregistration - should return object's original real class (if that doesn't happen then it's really easy to argue that's a bug - in that interception mechanism). - - This library won't remove registered interceptor even if there aren't any observers left because - it's highly unlikely it would have any benefit in real world use cases, and it's even more - dangerous. - */ - case objectMessagesAlreadyBeingIntercepted(target: AnyObject, interceptionMechanism: RxCocoaInterceptionMechanism) - - /// Trying to observe messages for selector that isn't implemented. - case selectorNotImplemented(target: AnyObject) - - /// Core Foundation classes are usually toll free bridged. Those classes crash the program in case - /// `object_setClass` is performed on them. - /// - /// There is a possibility to just swizzle methods on original object, but since those won't be usual use - /// cases for this library, then an error will just be reported for now. - case cantInterceptCoreFoundationTollFreeBridgedObjects(target: AnyObject) - - /// Two libraries have simultaneously tried to modify ObjC runtime and that was detected. This can only - /// happen in scenarios where multiple interception libraries are used. - /// - /// To synchronize other libraries intercepting messages for an object, use `synchronized` on target object and - /// it's meta-class. - case threadingCollisionWithOtherInterceptionMechanism(target: AnyObject) - - /// For some reason saving original method implementation under RX namespace failed. - case savingOriginalForwardingMethodFailed(target: AnyObject) - - /// Intercepting a sent message by replacing a method implementation with `_objc_msgForward` failed for some reason. - case replacingMethodWithForwardingImplementation(target: AnyObject) - - /// Attempt to intercept one of the performance sensitive methods: - /// * class - /// * respondsToSelector: - /// * methodSignatureForSelector: - /// * forwardingTargetForSelector: - case observingPerformanceSensitiveMessages(target: AnyObject) - - /// Message implementation has unsupported return type (for example large struct). The reason why this is a error - /// is because in some cases intercepting sent messages requires replacing implementation with `_objc_msgForward_stret` - /// instead of `_objc_msgForward`. - /// - /// The unsupported cases should be fairly uncommon. - case observingMessagesWithUnsupportedReturnType(target: AnyObject) - } - - extension RxCocoaObjCRuntimeError { - /// A textual representation of `self`, suitable for debugging. - public var debugDescription: String { - switch self { - case let .unknown(target): - return "Unknown error occurred.\nTarget: `\(target)`" - case let .objectMessagesAlreadyBeingIntercepted(target, interceptionMechanism): - let interceptionMechanismDescription = interceptionMechanism == .kvo ? "KVO" : "other interception mechanism" - return "Collision between RxCocoa interception mechanism and \(interceptionMechanismDescription)." - + " To resolve this conflict please use this interception mechanism first.\nTarget: \(target)" - case let .selectorNotImplemented(target): - return "Trying to observe messages for selector that isn't implemented.\nTarget: \(target)" - case let .cantInterceptCoreFoundationTollFreeBridgedObjects(target): - return "Interception of messages sent to Core Foundation isn't supported.\nTarget: \(target)" - case let .threadingCollisionWithOtherInterceptionMechanism(target): - return "Detected a conflict while modifying ObjC runtime.\nTarget: \(target)" - case let .savingOriginalForwardingMethodFailed(target): - return "Saving original method implementation failed.\nTarget: \(target)" - case let .replacingMethodWithForwardingImplementation(target): - return "Intercepting a sent message by replacing a method implementation with `_objc_msgForward` failed for some reason.\nTarget: \(target)" - case let .observingPerformanceSensitiveMessages(target): - return "Attempt to intercept one of the performance sensitive methods. \nTarget: \(target)" - case let .observingMessagesWithUnsupportedReturnType(target): - return "Attempt to intercept a method with unsupported return type. \nTarget: \(target)" - } - } - } - - // MARK: Conversions `NSError` > `RxCocoaObjCRuntimeError` - - extension Error { - func rxCocoaErrorForTarget(_ target: AnyObject) -> RxCocoaObjCRuntimeError { - let error = self as NSError - - if error.domain == RXObjCRuntimeErrorDomain { - let errorCode = RXObjCRuntimeError(rawValue: error.code) ?? .unknown - - switch errorCode { - case .unknown: - return .unknown(target: target) - case .objectMessagesAlreadyBeingIntercepted: - let isKVO = (error.userInfo[RXObjCRuntimeErrorIsKVOKey] as? NSNumber)?.boolValue ?? false - return .objectMessagesAlreadyBeingIntercepted(target: target, interceptionMechanism: isKVO ? .kvo : .unknown) - case .selectorNotImplemented: - return .selectorNotImplemented(target: target) - case .cantInterceptCoreFoundationTollFreeBridgedObjects: - return .cantInterceptCoreFoundationTollFreeBridgedObjects(target: target) - case .threadingCollisionWithOtherInterceptionMechanism: - return .threadingCollisionWithOtherInterceptionMechanism(target: target) - case .savingOriginalForwardingMethodFailed: - return .savingOriginalForwardingMethodFailed(target: target) - case .replacingMethodWithForwardingImplementation: - return .replacingMethodWithForwardingImplementation(target: target) - case .observingPerformanceSensitiveMessages: - return .observingPerformanceSensitiveMessages(target: target) - case .observingMessagesWithUnsupportedReturnType: - return .observingMessagesWithUnsupportedReturnType(target: target) - } - } - - return RxCocoaObjCRuntimeError.unknown(target: target) - } - } - -#endif - diff --git a/Pods/RxCocoa/RxCocoa/Common/RxTarget.swift b/Pods/RxCocoa/RxCocoa/Common/RxTarget.swift deleted file mode 100644 index c3356dd..0000000 --- a/Pods/RxCocoa/RxCocoa/Common/RxTarget.swift +++ /dev/null @@ -1,43 +0,0 @@ -// -// RxTarget.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 7/12/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import class Foundation.NSObject - -import RxSwift - -class RxTarget : NSObject - , Disposable { - - private var retainSelf: RxTarget? - - override init() { - super.init() - self.retainSelf = self - -#if TRACE_RESOURCES - _ = Resources.incrementTotal() -#endif - -#if DEBUG - MainScheduler.ensureRunningOnMainThread() -#endif - } - - func dispose() { -#if DEBUG - MainScheduler.ensureRunningOnMainThread() -#endif - self.retainSelf = nil - } - -#if TRACE_RESOURCES - deinit { - _ = Resources.decrementTotal() - } -#endif -} diff --git a/Pods/RxCocoa/RxCocoa/Common/SectionedViewDataSourceType.swift b/Pods/RxCocoa/RxCocoa/Common/SectionedViewDataSourceType.swift deleted file mode 100644 index 1532baa..0000000 --- a/Pods/RxCocoa/RxCocoa/Common/SectionedViewDataSourceType.swift +++ /dev/null @@ -1,20 +0,0 @@ -// -// SectionedViewDataSourceType.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 1/10/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -import struct Foundation.IndexPath - -/// Data source with access to underlying sectioned model. -public protocol SectionedViewDataSourceType { - /// Returns model at index path. - /// - /// In case data source doesn't contain any sections when this method is being called, `RxCocoaError.ItemsNotYetBound(object: self)` is thrown. - - /// - parameter indexPath: Model index path - /// - returns: Model at index path. - func model(at indexPath: IndexPath) throws -> Any -} diff --git a/Pods/RxCocoa/RxCocoa/Common/TextInput.swift b/Pods/RxCocoa/RxCocoa/Common/TextInput.swift deleted file mode 100644 index 2268882..0000000 --- a/Pods/RxCocoa/RxCocoa/Common/TextInput.swift +++ /dev/null @@ -1,78 +0,0 @@ -// -// TextInput.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 5/12/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -#if os(iOS) || os(tvOS) - import UIKit - - /// Represents text input with reactive extensions. - public struct TextInput { - /// Base text input to extend. - public let base: Base - - /// Reactive wrapper for `text` property. - public let text: ControlProperty - - /// Initializes new text input. - /// - /// - parameter base: Base object. - /// - parameter text: Textual control property. - public init(base: Base, text: ControlProperty) { - self.base = base - self.text = text - } - } - - extension Reactive where Base: UITextField { - /// Reactive text input. - public var textInput: TextInput { - return TextInput(base: base, text: self.text) - } - } - - extension Reactive where Base: UITextView { - /// Reactive text input. - public var textInput: TextInput { - return TextInput(base: base, text: self.text) - } - } - -#endif - -#if os(macOS) - import Cocoa - - /// Represents text input with reactive extensions. - public struct TextInput { - /// Base text input to extend. - public let base: Base - - /// Reactive wrapper for `text` property. - public let text: ControlProperty - - /// Initializes new text input. - /// - /// - parameter base: Base object. - /// - parameter text: Textual control property. - public init(base: Base, text: ControlProperty) { - self.base = base - self.text = text - } - } - - extension Reactive where Base: NSTextField, Base: NSTextInputClient { - /// Reactive text input. - public var textInput: TextInput { - return TextInput(base: self.base, text: self.text) - } - } - -#endif - - diff --git a/Pods/RxCocoa/RxCocoa/Deprecated.swift b/Pods/RxCocoa/RxCocoa/Deprecated.swift deleted file mode 100644 index 54df740..0000000 --- a/Pods/RxCocoa/RxCocoa/Deprecated.swift +++ /dev/null @@ -1,506 +0,0 @@ -// -// Deprecated.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 3/19/17. -// Copyright © 2017 Krunoslav Zaher. All rights reserved. -// - -import RxSwift -import Dispatch - -extension ObservableType { - - /** - Creates new subscription and sends elements to observer. - - In this form it's equivalent to `subscribe` method, but it communicates intent better, and enables - writing more consistent binding code. - - - parameter observer: Observer that receives events. - - returns: Disposable object that can be used to unsubscribe the observer. - */ - @available(*, deprecated, renamed: "bind(to:)") - public func bindTo(_ observer: O) -> Disposable where O.E == E { - return self.subscribe(observer) - } - - /** - Creates new subscription and sends elements to observer. - - In this form it's equivalent to `subscribe` method, but it communicates intent better, and enables - writing more consistent binding code. - - - parameter observer: Observer that receives events. - - returns: Disposable object that can be used to unsubscribe the observer. - */ - @available(*, deprecated, renamed: "bind(to:)") - public func bindTo(_ observer: O) -> Disposable where O.E == E? { - return self.map { $0 }.subscribe(observer) - } - - /** - Creates new subscription and sends elements to variable. - - In case error occurs in debug mode, `fatalError` will be raised. - In case error occurs in release mode, `error` will be logged. - - - parameter variable: Target variable for sequence elements. - - returns: Disposable object that can be used to unsubscribe the observer. - */ - @available(*, deprecated, renamed: "bind(to:)") - public func bindTo(_ variable: Variable) -> Disposable { - return self.subscribe { e in - switch e { - case let .next(element): - variable.value = element - case let .error(error): - let error = "Binding error to variable: \(error)" - #if DEBUG - rxFatalError(error) - #else - print(error) - #endif - case .completed: - break - } - } - } - - /** - Creates new subscription and sends elements to variable. - - In case error occurs in debug mode, `fatalError` will be raised. - In case error occurs in release mode, `error` will be logged. - - - parameter variable: Target variable for sequence elements. - - returns: Disposable object that can be used to unsubscribe the observer. - */ - @available(*, deprecated, renamed: "bind(to:)") - public func bindTo(_ variable: Variable) -> Disposable { - return self.map { $0 as E? }.bindTo(variable) - } - - /** - Subscribes to observable sequence using custom binder function. - - - parameter binder: Function used to bind elements from `self`. - - returns: Object representing subscription. - */ - @available(*, deprecated, renamed: "bind(to:)") - public func bindTo(_ binder: (Self) -> R) -> R { - return binder(self) - } - - /** - Subscribes to observable sequence using custom binder function and final parameter passed to binder function - after `self` is passed. - - public func bindTo(binder: Self -> R1 -> R2, curriedArgument: R1) -> R2 { - return binder(self)(curriedArgument) - } - - - parameter binder: Function used to bind elements from `self`. - - parameter curriedArgument: Final argument passed to `binder` to finish binding process. - - returns: Object representing subscription. - */ - @available(*, deprecated, renamed: "bind(to:)") - public func bindTo(_ binder: (Self) -> (R1) -> R2, curriedArgument: R1) -> R2 { - return binder(self)(curriedArgument) - } - - - /** - Subscribes an element handler to an observable sequence. - - In case error occurs in debug mode, `fatalError` will be raised. - In case error occurs in release mode, `error` will be logged. - - - parameter onNext: Action to invoke for each element in the observable sequence. - - returns: Subscription object used to unsubscribe from the observable sequence. - */ - @available(*, deprecated, renamed: "bind(onNext:)") - public func bindNext(_ onNext: @escaping (E) -> Void) -> Disposable { - return self.subscribe(onNext: onNext, onError: { error in - let error = "Binding error: \(error)" - #if DEBUG - rxFatalError(error) - #else - print(error) - #endif - }) - } -} - -#if os(iOS) || os(tvOS) - import UIKit - - extension NSTextStorage { - @available(*, unavailable, message: "createRxDelegateProxy is now unavailable, check DelegateProxyFactory") - public func createRxDelegateProxy() -> RxTextStorageDelegateProxy { - fatalError() - } - } - - extension UIScrollView { - @available(*, unavailable, message: "createRxDelegateProxy is now unavailable, check DelegateProxyFactory") - public func createRxDelegateProxy() -> RxScrollViewDelegateProxy { - fatalError() - } - } - - extension UICollectionView { - @available(*, unavailable, message: "createRxDataSourceProxy is now unavailable, check DelegateProxyFactory") - public func createRxDataSourceProxy() -> RxCollectionViewDataSourceProxy { - fatalError() - } - } - - extension UITableView { - @available(*, unavailable, message: "createRxDataSourceProxy is now unavailable, check DelegateProxyFactory") - public func createRxDataSourceProxy() -> RxTableViewDataSourceProxy { - fatalError() - } - } - - extension UINavigationBar { - @available(*, unavailable, message: "createRxDelegateProxy is now unavailable, check DelegateProxyFactory") - public func createRxDelegateProxy() -> RxNavigationControllerDelegateProxy { - fatalError() - } - } - - extension UINavigationController { - @available(*, unavailable, message: "createRxDelegateProxy is now unavailable, check DelegateProxyFactory") - public func createRxDelegateProxy() -> RxNavigationControllerDelegateProxy { - fatalError() - } - } - - extension UITabBar { - @available(*, unavailable, message: "createRxDelegateProxy is now unavailable, check DelegateProxyFactory") - public func createRxDelegateProxy() -> RxTabBarDelegateProxy { - fatalError() - } - } - - extension UITabBarController { - @available(*, unavailable, message: "createRxDelegateProxy is now unavailable, check DelegateProxyFactory") - public func createRxDelegateProxy() -> RxTabBarControllerDelegateProxy { - fatalError() - } - } - - extension UISearchBar { - @available(*, unavailable, message: "createRxDelegateProxy is now unavailable, check DelegateProxyFactory") - public func createRxDelegateProxy() -> RxSearchBarDelegateProxy { - fatalError() - } - } - -#endif - -#if os(iOS) - extension UISearchController { - @available(*, unavailable, message: "createRxDelegateProxy is now unavailable, check DelegateProxyFactory") - public func createRxDelegateProxy() -> RxSearchControllerDelegateProxy { - fatalError() - } - } - - extension UIPickerView { - @available(*, unavailable, message: "createRxDelegateProxy is now unavailable, check DelegateProxyFactory") - public func createRxDelegateProxy() -> RxPickerViewDelegateProxy { - fatalError() - } - - @available(*, unavailable, message: "createRxDataSourceProxy is now unavailable, check DelegateProxyFactory") - public func createRxDataSourceProxy() -> RxPickerViewDataSourceProxy { - fatalError() - } - } - extension UIWebView { - @available(*, unavailable, message: "createRxDelegateProxy is now unavailable, check DelegateProxyFactory") - public func createRxDelegateProxy() -> RxWebViewDelegateProxy { - fatalError() - } - } -#endif - -#if os(macOS) - import Cocoa - - extension NSTextField { - @available(*, unavailable, message: "createRxDelegateProxy is now unavailable, check DelegateProxyFactory") - public func createRxDelegateProxy() -> RxTextFieldDelegateProxy { - fatalError() - } - } -#endif - -/** - This method can be used in unit tests to ensure that driver is using mock schedulers instead of - main schedulers. - - **This shouldn't be used in normal release builds.** - */ -@available(*, deprecated, renamed: "SharingScheduler.mock(scheduler:action:)") -public func driveOnScheduler(_ scheduler: SchedulerType, action: () -> Void) { - SharingScheduler.mock(scheduler: scheduler, action: action) -} - -extension Variable { - /// Converts `Variable` to `SharedSequence` unit. - /// - /// - returns: Observable sequence. - @available(*, deprecated, renamed: "asDriver()") - public func asSharedSequence(strategy: SharingStrategy.Type = SharingStrategy.self) -> SharedSequence { - let source = self.asObservable() - .observeOn(SharingStrategy.scheduler) - return SharedSequence(source) - } -} - -#if !os(Linux) - -extension DelegateProxy { - @available(*, unavailable, renamed: "assignedProxy(for:)") - public static func assignedProxyFor(_ object: ParentObject) -> Delegate? { - fatalError() - } - - @available(*, unavailable, renamed: "currentDelegate(for:)") - public static func currentDelegateFor(_ object: ParentObject) -> Delegate? { - fatalError() - } -} - -#endif - -/** -Observer that enforces interface binding rules: - * can't bind errors (in debug builds binding of errors causes `fatalError` in release builds errors are being logged) - * ensures binding is performed on main thread - -`UIBindingObserver` doesn't retain target interface and in case owned interface element is released, element isn't bound. - - In case event binding is attempted from non main dispatch queue, event binding will be dispatched async to main dispatch - queue. -*/ -@available(*, deprecated, renamed: "Binder") -public final class UIBindingObserver : ObserverType where UIElementType: AnyObject { - public typealias E = Value - - weak var UIElement: UIElementType? - - let binding: (UIElementType, Value) -> Void - - /// Initializes `ViewBindingObserver` using - @available(*, deprecated, renamed: "UIBinder.init(_:scheduler:binding:)") - public init(UIElement: UIElementType, binding: @escaping (UIElementType, Value) -> Void) { - self.UIElement = UIElement - self.binding = binding - } - - /// Binds next element to owner view as described in `binding`. - public func on(_ event: Event) { - if !DispatchQueue.isMain { - DispatchQueue.main.async { - self.on(event) - } - return - } - - switch event { - case .next(let element): - if let view = self.UIElement { - self.binding(view, element) - } - case .error(let error): - bindingError(error) - case .completed: - break - } - } - - /// Erases type of observer. - /// - /// - returns: type erased observer. - public func asObserver() -> AnyObserver { - return AnyObserver(eventHandler: self.on) - } -} - - -#if os(iOS) - extension Reactive where Base: UIRefreshControl { - - /// Bindable sink for `beginRefreshing()`, `endRefreshing()` methods. - @available(*, deprecated, renamed: "isRefreshing") - public var refreshing: Binder { - return self.isRefreshing - } - } -#endif - -#if os(iOS) || os(tvOS) -extension Reactive where Base: UIImageView { - - /// Bindable sink for `image` property. - /// - parameter transitionType: Optional transition type while setting the image (kCATransitionFade, kCATransitionMoveIn, ...) - @available(*, deprecated, renamed: "image") - public func image(transitionType: String? = nil) -> Binder { - return Binder(base) { imageView, image in - if let transitionType = transitionType { - if image != nil { - let transition = CATransition() - transition.duration = 0.25 - #if swift(>=4.2) - transition.timingFunction = CAMediaTimingFunction(name: .easeInEaseOut) - transition.type = CATransitionType(rawValue: transitionType) - #else - transition.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseInEaseOut) - transition.type = transitionType - #endif - imageView.layer.add(transition, forKey: kCATransition) - } - } - else { - imageView.layer.removeAllAnimations() - } - imageView.image = image - } - } -} - -extension Reactive where Base: UISegmentedControl { - @available(*, deprecated, renamed: "enabledForSegment(at:)") - public func enabled(forSegmentAt segmentAt: Int) -> Binder { - return enabledForSegment(at: segmentAt) - } -} -#endif - -#if os(macOS) - - extension Reactive where Base: NSImageView { - - /// Bindable sink for `image` property. - /// - /// - parameter transitionType: Optional transition type while setting the image (kCATransitionFade, kCATransitionMoveIn, ...) - @available(*, deprecated, renamed: "image") - public func image(transitionType: String? = nil) -> Binder { - return Binder(self.base) { control, value in - if let transitionType = transitionType { - if value != nil { - let transition = CATransition() - transition.duration = 0.25 -#if swift(>=4.2) - transition.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut) - transition.type = CATransitionType(rawValue: transitionType) -#else - transition.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseInEaseOut) - transition.type = transitionType -#endif - control.layer?.add(transition, forKey: kCATransition) - } - } - else { - control.layer?.removeAllAnimations() - } - control.image = value - } - } - } -#endif - -import RxSwift - -extension Variable { - /// Converts `Variable` to `Driver` trait. - /// - /// - returns: Driving observable sequence. - public func asDriver() -> Driver { - let source = self.asObservable() - .observeOn(DriverSharingStrategy.scheduler) - return Driver(source) - } -} - - -private let errorMessage = "`drive*` family of methods can be only called from `MainThread`.\n" + -"This is required to ensure that the last replayed `Driver` element is delivered on `MainThread`.\n" - -extension SharedSequenceConvertibleType where SharingStrategy == DriverSharingStrategy { - /** - Creates new subscription and sends elements to variable. - This method can be only called from `MainThread`. - - - parameter variable: Target variable for sequence elements. - - returns: Disposable object that can be used to unsubscribe the observer from the variable. - */ - public func drive(_ variable: Variable) -> Disposable { - MainScheduler.ensureRunningOnMainThread(errorMessage: errorMessage) - return self.drive(onNext: { e in - variable.value = e - }) - } - - /** - Creates new subscription and sends elements to variable. - This method can be only called from `MainThread`. - - - parameter variable: Target variable for sequence elements. - - returns: Disposable object that can be used to unsubscribe the observer from the variable. - */ - public func drive(_ variable: Variable) -> Disposable { - MainScheduler.ensureRunningOnMainThread(errorMessage: errorMessage) - return self.drive(onNext: { e in - variable.value = e - }) - } -} - -extension ObservableType { - /** - Creates new subscription and sends elements to variable. - - In case error occurs in debug mode, `fatalError` will be raised. - In case error occurs in release mode, `error` will be logged. - - - parameter to: Target variable for sequence elements. - - returns: Disposable object that can be used to unsubscribe the observer. - */ - public func bind(to variable: Variable) -> Disposable { - return self.subscribe { e in - switch e { - case let .next(element): - variable.value = element - case let .error(error): - let error = "Binding error to variable: \(error)" - #if DEBUG - rxFatalError(error) - #else - print(error) - #endif - case .completed: - break - } - } - } - - /** - Creates new subscription and sends elements to variable. - - In case error occurs in debug mode, `fatalError` will be raised. - In case error occurs in release mode, `error` will be logged. - - - parameter to: Target variable for sequence elements. - - returns: Disposable object that can be used to unsubscribe the observer. - */ - public func bind(to variable: Variable) -> Disposable { - return self.map { $0 as E? }.bind(to: variable) - } -} - - diff --git a/Pods/RxCocoa/RxCocoa/Foundation/KVORepresentable+CoreGraphics.swift b/Pods/RxCocoa/RxCocoa/Foundation/KVORepresentable+CoreGraphics.swift deleted file mode 100644 index 0013434..0000000 --- a/Pods/RxCocoa/RxCocoa/Foundation/KVORepresentable+CoreGraphics.swift +++ /dev/null @@ -1,68 +0,0 @@ -// -// KVORepresentable+CoreGraphics.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 11/14/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if !os(Linux) - -import RxSwift -import CoreGraphics - -import class Foundation.NSValue - -#if arch(x86_64) || arch(arm64) - let CGRectType = "{CGRect={CGPoint=dd}{CGSize=dd}}" - let CGSizeType = "{CGSize=dd}" - let CGPointType = "{CGPoint=dd}" -#elseif arch(i386) || arch(arm) || arch(arm64_32) - let CGRectType = "{CGRect={CGPoint=ff}{CGSize=ff}}" - let CGSizeType = "{CGSize=ff}" - let CGPointType = "{CGPoint=ff}" -#endif - -extension CGRect : KVORepresentable { - public typealias KVOType = NSValue - - /// Constructs self from `NSValue`. - public init?(KVOValue: KVOType) { - if strcmp(KVOValue.objCType, CGRectType) != 0 { - return nil - } - var typedValue = CGRect(x: 0, y: 0, width: 0, height: 0) - KVOValue.getValue(&typedValue) - self = typedValue - } -} - -extension CGPoint : KVORepresentable { - public typealias KVOType = NSValue - - /// Constructs self from `NSValue`. - public init?(KVOValue: KVOType) { - if strcmp(KVOValue.objCType, CGPointType) != 0 { - return nil - } - var typedValue = CGPoint(x: 0, y: 0) - KVOValue.getValue(&typedValue) - self = typedValue - } -} - -extension CGSize : KVORepresentable { - public typealias KVOType = NSValue - - /// Constructs self from `NSValue`. - public init?(KVOValue: KVOType) { - if strcmp(KVOValue.objCType, CGSizeType) != 0 { - return nil - } - var typedValue = CGSize(width: 0, height: 0) - KVOValue.getValue(&typedValue) - self = typedValue - } -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/Foundation/KVORepresentable+Swift.swift b/Pods/RxCocoa/RxCocoa/Foundation/KVORepresentable+Swift.swift deleted file mode 100644 index f65a93e..0000000 --- a/Pods/RxCocoa/RxCocoa/Foundation/KVORepresentable+Swift.swift +++ /dev/null @@ -1,88 +0,0 @@ -// -// KVORepresentable+Swift.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 11/14/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import class Foundation.NSNumber - -extension Int : KVORepresentable { - public typealias KVOType = NSNumber - - /// Constructs `Self` using KVO value. - public init?(KVOValue: KVOType) { - self.init(KVOValue.int32Value) - } -} - -extension Int32 : KVORepresentable { - public typealias KVOType = NSNumber - - /// Constructs `Self` using KVO value. - public init?(KVOValue: KVOType) { - self.init(KVOValue.int32Value) - } -} - -extension Int64 : KVORepresentable { - public typealias KVOType = NSNumber - - /// Constructs `Self` using KVO value. - public init?(KVOValue: KVOType) { - self.init(KVOValue.int64Value) - } -} - -extension UInt : KVORepresentable { - public typealias KVOType = NSNumber - - /// Constructs `Self` using KVO value. - public init?(KVOValue: KVOType) { - self.init(KVOValue.uintValue) - } -} - -extension UInt32 : KVORepresentable { - public typealias KVOType = NSNumber - - /// Constructs `Self` using KVO value. - public init?(KVOValue: KVOType) { - self.init(KVOValue.uint32Value) - } -} - -extension UInt64 : KVORepresentable { - public typealias KVOType = NSNumber - - /// Constructs `Self` using KVO value. - public init?(KVOValue: KVOType) { - self.init(KVOValue.uint64Value) - } -} - -extension Bool : KVORepresentable { - public typealias KVOType = NSNumber - - /// Constructs `Self` using KVO value. - public init?(KVOValue: KVOType) { - self.init(KVOValue.boolValue) - } -} - - -extension RawRepresentable where RawValue: KVORepresentable { - /// Constructs `Self` using optional KVO value. - init?(KVOValue: RawValue.KVOType?) { - guard let KVOValue = KVOValue else { - return nil - } - - guard let rawValue = RawValue(KVOValue: KVOValue) else { - return nil - } - - self.init(rawValue: rawValue) - } -} diff --git a/Pods/RxCocoa/RxCocoa/Foundation/KVORepresentable.swift b/Pods/RxCocoa/RxCocoa/Foundation/KVORepresentable.swift deleted file mode 100644 index be12b33..0000000 --- a/Pods/RxCocoa/RxCocoa/Foundation/KVORepresentable.swift +++ /dev/null @@ -1,28 +0,0 @@ -// -// KVORepresentable.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 11/14/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// Type that is KVO representable (KVO mechanism can be used to observe it). -public protocol KVORepresentable { - /// Associated KVO type. - associatedtype KVOType - - /// Constructs `Self` using KVO value. - init?(KVOValue: KVOType) -} - -extension KVORepresentable { - /// Initializes `KVORepresentable` with optional value. - init?(KVOValue: KVOType?) { - guard let KVOValue = KVOValue else { - return nil - } - - self.init(KVOValue: KVOValue) - } -} - diff --git a/Pods/RxCocoa/RxCocoa/Foundation/Logging.swift b/Pods/RxCocoa/RxCocoa/Foundation/Logging.swift deleted file mode 100644 index 0acb9f8..0000000 --- a/Pods/RxCocoa/RxCocoa/Foundation/Logging.swift +++ /dev/null @@ -1,23 +0,0 @@ -// -// Logging.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 4/3/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import struct Foundation.URLRequest - -/// Simple logging settings for RxCocoa library. -public struct Logging { - public typealias LogURLRequest = (URLRequest) -> Bool - - /// Log URL requests to standard output in curl format. - public static var URLRequests: LogURLRequest = { _ in - #if DEBUG - return true - #else - return false - #endif - } -} diff --git a/Pods/RxCocoa/RxCocoa/Foundation/NSObject+Rx+KVORepresentable.swift b/Pods/RxCocoa/RxCocoa/Foundation/NSObject+Rx+KVORepresentable.swift deleted file mode 100644 index bffd2c6..0000000 --- a/Pods/RxCocoa/RxCocoa/Foundation/NSObject+Rx+KVORepresentable.swift +++ /dev/null @@ -1,60 +0,0 @@ -// -// NSObject+Rx+KVORepresentable.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 11/14/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if !os(Linux) - -import Foundation.NSObject -import RxSwift - -/// Key value observing options -public struct KeyValueObservingOptions: OptionSet { - /// Raw value - public let rawValue: UInt - - public init(rawValue: UInt) { - self.rawValue = rawValue - } - - /// Whether a sequence element should be sent to the observer immediately, before the subscribe method even returns. - public static let initial = KeyValueObservingOptions(rawValue: 1 << 0) - /// Whether to send updated values. - public static let new = KeyValueObservingOptions(rawValue: 1 << 1) -} - -extension Reactive where Base: NSObject { - - /** - Specialization of generic `observe` method. - - This is a special overload because to observe values of some type (for example `Int`), first values of KVO type - need to be observed (`NSNumber`), and then converted to result type. - - For more information take a look at `observe` method. - */ - public func observe(_ type: E.Type, _ keyPath: String, options: KeyValueObservingOptions = [.new, .initial], retainSelf: Bool = true) -> Observable { - return self.observe(E.KVOType.self, keyPath, options: options, retainSelf: retainSelf) - .map(E.init) - } -} - -#if !DISABLE_SWIZZLING && !os(Linux) - // KVO - extension Reactive where Base: NSObject { - /** - Specialization of generic `observeWeakly` method. - - For more information take a look at `observeWeakly` method. - */ - public func observeWeakly(_ type: E.Type, _ keyPath: String, options: KeyValueObservingOptions = [.new, .initial]) -> Observable { - return self.observeWeakly(E.KVOType.self, keyPath, options: options) - .map(E.init) - } - } -#endif - -#endif diff --git a/Pods/RxCocoa/RxCocoa/Foundation/NSObject+Rx+RawRepresentable.swift b/Pods/RxCocoa/RxCocoa/Foundation/NSObject+Rx+RawRepresentable.swift deleted file mode 100644 index 24b4a4b..0000000 --- a/Pods/RxCocoa/RxCocoa/Foundation/NSObject+Rx+RawRepresentable.swift +++ /dev/null @@ -1,52 +0,0 @@ -// -// NSObject+Rx+RawRepresentable.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 11/9/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if !os(Linux) - -import RxSwift - -import Foundation.NSObject - -extension Reactive where Base: NSObject { - /** - Specialization of generic `observe` method. - - This specialization first observes `KVORepresentable` value and then converts it to `RawRepresentable` value. - - It is useful for observing bridged ObjC enum values. - - For more information take a look at `observe` method. - */ - public func observe(_ type: E.Type, _ keyPath: String, options: KeyValueObservingOptions = [.new, .initial], retainSelf: Bool = true) -> Observable where E.RawValue: KVORepresentable { - return self.observe(E.RawValue.KVOType.self, keyPath, options: options, retainSelf: retainSelf) - .map(E.init) - } -} - -#if !DISABLE_SWIZZLING - - // observeWeakly + RawRepresentable - extension Reactive where Base: NSObject { - - /** - Specialization of generic `observeWeakly` method. - - This specialization first observes `KVORepresentable` value and then converts it to `RawRepresentable` value. - - It is useful for observing bridged ObjC enum values. - - For more information take a look at `observeWeakly` method. - */ - public func observeWeakly(_ type: E.Type, _ keyPath: String, options: KeyValueObservingOptions = [.new, .initial]) -> Observable where E.RawValue: KVORepresentable { - return self.observeWeakly(E.RawValue.KVOType.self, keyPath, options: options) - .map(E.init) - } - } -#endif - -#endif diff --git a/Pods/RxCocoa/RxCocoa/Foundation/NSObject+Rx.swift b/Pods/RxCocoa/RxCocoa/Foundation/NSObject+Rx.swift deleted file mode 100644 index aebcb9b..0000000 --- a/Pods/RxCocoa/RxCocoa/Foundation/NSObject+Rx.swift +++ /dev/null @@ -1,544 +0,0 @@ -// -// NSObject+Rx.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 2/21/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if !os(Linux) - -import Foundation.NSObject -import RxSwift -#if SWIFT_PACKAGE && !DISABLE_SWIZZLING && !os(Linux) - import RxCocoaRuntime -#endif - -#if !DISABLE_SWIZZLING && !os(Linux) -private var deallocatingSubjectTriggerContext: UInt8 = 0 -private var deallocatingSubjectContext: UInt8 = 0 -#endif -private var deallocatedSubjectTriggerContext: UInt8 = 0 -private var deallocatedSubjectContext: UInt8 = 0 - -#if !os(Linux) - -/** -KVO is a tricky mechanism. - -When observing child in a ownership hierarchy, usually retaining observing target is wanted behavior. -When observing parent in a ownership hierarchy, usually retaining target isn't wanter behavior. - -KVO with weak references is especially tricky. For it to work, some kind of swizzling is required. -That can be done by - * replacing object class dynamically (like KVO does) - * by swizzling `dealloc` method on all instances for a class. - * some third method ... - -Both approaches can fail in certain scenarios: - * problems arise when swizzlers return original object class (like KVO does when nobody is observing) - * Problems can arise because replacing dealloc method isn't atomic operation (get implementation, - set implementation). - -Second approach is chosen. It can fail in case there are multiple libraries dynamically trying -to replace dealloc method. In case that isn't the case, it should be ok. -*/ -extension Reactive where Base: NSObject { - - - /** - Observes values on `keyPath` starting from `self` with `options` and retains `self` if `retainSelf` is set. - - `observe` is just a simple and performant wrapper around KVO mechanism. - - * it can be used to observe paths starting from `self` or from ancestors in ownership graph (`retainSelf = false`) - * it can be used to observe paths starting from descendants in ownership graph (`retainSelf = true`) - * the paths have to consist only of `strong` properties, otherwise you are risking crashing the system by not unregistering KVO observer before dealloc. - - If support for weak properties is needed or observing arbitrary or unknown relationships in the - ownership tree, `observeWeakly` is the preferred option. - - - parameter keyPath: Key path of property names to observe. - - parameter options: KVO mechanism notification options. - - parameter retainSelf: Retains self during observation if set `true`. - - returns: Observable sequence of objects on `keyPath`. - */ - public func observe(_ type: E.Type, _ keyPath: String, options: KeyValueObservingOptions = [.new, .initial], retainSelf: Bool = true) -> Observable { - return KVOObservable(object: self.base, keyPath: keyPath, options: options, retainTarget: retainSelf).asObservable() - } -} - -#endif - -#if !DISABLE_SWIZZLING && !os(Linux) -// KVO -extension Reactive where Base: NSObject { - /** - Observes values on `keyPath` starting from `self` with `options` and doesn't retain `self`. - - It can be used in all cases where `observe` can be used and additionally - - * because it won't retain observed target, it can be used to observe arbitrary object graph whose ownership relation is unknown - * it can be used to observe `weak` properties - - **Since it needs to intercept object deallocation process it needs to perform swizzling of `dealloc` method on observed object.** - - - parameter keyPath: Key path of property names to observe. - - parameter options: KVO mechanism notification options. - - returns: Observable sequence of objects on `keyPath`. - */ - public func observeWeakly(_ type: E.Type, _ keyPath: String, options: KeyValueObservingOptions = [.new, .initial]) -> Observable { - return observeWeaklyKeyPathFor(self.base, keyPath: keyPath, options: options) - .map { n in - return n as? E - } - } -} -#endif - -// Dealloc -extension Reactive where Base: AnyObject { - - /** - Observable sequence of object deallocated events. - - After object is deallocated one `()` element will be produced and sequence will immediately complete. - - - returns: Observable sequence of object deallocated events. - */ - public var deallocated: Observable { - return self.synchronized { - if let deallocObservable = objc_getAssociatedObject(self.base, &deallocatedSubjectContext) as? DeallocObservable { - return deallocObservable._subject - } - - let deallocObservable = DeallocObservable() - - objc_setAssociatedObject(self.base, &deallocatedSubjectContext, deallocObservable, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) - return deallocObservable._subject - } - } - -#if !DISABLE_SWIZZLING && !os(Linux) - - /** - Observable sequence of message arguments that completes when object is deallocated. - - Each element is produced before message is invoked on target object. `methodInvoked` - exists in case observing of invoked messages is needed. - - In case an error occurs sequence will fail with `RxCocoaObjCRuntimeError`. - - In case some argument is `nil`, instance of `NSNull()` will be sent. - - - returns: Observable sequence of arguments passed to `selector` method. - */ - public func sentMessage(_ selector: Selector) -> Observable<[Any]> { - return self.synchronized { - // in case of dealloc selector replay subject behavior needs to be used - if selector == deallocSelector { - return self.deallocating.map { _ in [] } - } - - do { - let proxy: MessageSentProxy = try self.registerMessageInterceptor(selector) - return proxy.messageSent.asObservable() - } - catch let e { - return Observable.error(e) - } - } - } - - /** - Observable sequence of message arguments that completes when object is deallocated. - - Each element is produced after message is invoked on target object. `sentMessage` - exists in case interception of sent messages before they were invoked is needed. - - In case an error occurs sequence will fail with `RxCocoaObjCRuntimeError`. - - In case some argument is `nil`, instance of `NSNull()` will be sent. - - - returns: Observable sequence of arguments passed to `selector` method. - */ - public func methodInvoked(_ selector: Selector) -> Observable<[Any]> { - return self.synchronized { - // in case of dealloc selector replay subject behavior needs to be used - if selector == deallocSelector { - return self.deallocated.map { _ in [] } - } - - - do { - let proxy: MessageSentProxy = try self.registerMessageInterceptor(selector) - return proxy.methodInvoked.asObservable() - } - catch let e { - return Observable.error(e) - } - } - } - - /** - Observable sequence of object deallocating events. - - When `dealloc` message is sent to `self` one `()` element will be produced and after object is deallocated sequence - will immediately complete. - - In case an error occurs sequence will fail with `RxCocoaObjCRuntimeError`. - - - returns: Observable sequence of object deallocating events. - */ - public var deallocating: Observable<()> { - return self.synchronized { - do { - let proxy: DeallocatingProxy = try self.registerMessageInterceptor(deallocSelector) - return proxy.messageSent.asObservable() - } - catch let e { - return Observable.error(e) - } - } - } - - fileprivate func registerMessageInterceptor(_ selector: Selector) throws -> T { - let rxSelector = RX_selector(selector) - let selectorReference = RX_reference_from_selector(rxSelector) - - let subject: T - if let existingSubject = objc_getAssociatedObject(self.base, selectorReference) as? T { - subject = existingSubject - } - else { - subject = T() - objc_setAssociatedObject( - self.base, - selectorReference, - subject, - .OBJC_ASSOCIATION_RETAIN_NONATOMIC - ) - } - - if subject.isActive { - return subject - } - - var error: NSError? - let targetImplementation = RX_ensure_observing(self.base, selector, &error) - if targetImplementation == nil { - throw error?.rxCocoaErrorForTarget(self.base) ?? RxCocoaError.unknown - } - - subject.targetImplementation = targetImplementation! - - return subject - } -#endif -} - -// MARK: Message interceptors - -#if !DISABLE_SWIZZLING && !os(Linux) - - private protocol MessageInterceptorSubject: class { - init() - - var isActive: Bool { - get - } - - var targetImplementation: IMP { get set } - } - - fileprivate final class DeallocatingProxy - : MessageInterceptorSubject - , RXDeallocatingObserver { - typealias E = () - - let messageSent = ReplaySubject<()>.create(bufferSize: 1) - - @objc var targetImplementation: IMP = RX_default_target_implementation() - - var isActive: Bool { - return self.targetImplementation != RX_default_target_implementation() - } - - init() { - } - - @objc func deallocating() { - self.messageSent.on(.next(())) - } - - deinit { - self.messageSent.on(.completed) - } - } - - fileprivate final class MessageSentProxy - : MessageInterceptorSubject - , RXMessageSentObserver { - typealias E = [AnyObject] - - let messageSent = PublishSubject<[Any]>() - let methodInvoked = PublishSubject<[Any]>() - - @objc var targetImplementation: IMP = RX_default_target_implementation() - - var isActive: Bool { - return self.targetImplementation != RX_default_target_implementation() - } - - init() { - } - - @objc func messageSent(withArguments arguments: [Any]) { - self.messageSent.on(.next(arguments)) - } - - @objc func methodInvoked(withArguments arguments: [Any]) { - self.methodInvoked.on(.next(arguments)) - } - - deinit { - self.messageSent.on(.completed) - self.methodInvoked.on(.completed) - } - } - -#endif - - -fileprivate final class DeallocObservable { - let _subject = ReplaySubject.create(bufferSize:1) - - init() { - } - - deinit { - self._subject.on(.next(())) - self._subject.on(.completed) - } -} - -// MARK: KVO - -#if !os(Linux) - -private protocol KVOObservableProtocol { - var target: AnyObject { get } - var keyPath: String { get } - var retainTarget: Bool { get } - var options: KeyValueObservingOptions { get } -} - -fileprivate final class KVOObserver - : _RXKVOObserver - , Disposable { - typealias Callback = (Any?) -> Void - - var retainSelf: KVOObserver? - - init(parent: KVOObservableProtocol, callback: @escaping Callback) { - #if TRACE_RESOURCES - _ = Resources.incrementTotal() - #endif - - super.init(target: parent.target, retainTarget: parent.retainTarget, keyPath: parent.keyPath, options: parent.options.nsOptions, callback: callback) - self.retainSelf = self - } - - override func dispose() { - super.dispose() - self.retainSelf = nil - } - - deinit { - #if TRACE_RESOURCES - _ = Resources.decrementTotal() - #endif - } -} - -fileprivate final class KVOObservable - : ObservableType - , KVOObservableProtocol { - typealias E = Element? - - unowned var target: AnyObject - var strongTarget: AnyObject? - - var keyPath: String - var options: KeyValueObservingOptions - var retainTarget: Bool - - init(object: AnyObject, keyPath: String, options: KeyValueObservingOptions, retainTarget: Bool) { - self.target = object - self.keyPath = keyPath - self.options = options - self.retainTarget = retainTarget - if retainTarget { - self.strongTarget = object - } - } - - func subscribe(_ observer: O) -> Disposable where O.E == Element? { - let observer = KVOObserver(parent: self) { value in - if value as? NSNull != nil { - observer.on(.next(nil)) - return - } - observer.on(.next(value as? Element)) - } - - return Disposables.create(with: observer.dispose) - } - -} - -fileprivate extension KeyValueObservingOptions { - var nsOptions: NSKeyValueObservingOptions { - var result: UInt = 0 - if self.contains(.new) { - result |= NSKeyValueObservingOptions.new.rawValue - } - if self.contains(.initial) { - result |= NSKeyValueObservingOptions.initial.rawValue - } - - return NSKeyValueObservingOptions(rawValue: result) - } -} - -#endif - -#if !DISABLE_SWIZZLING && !os(Linux) - - private func observeWeaklyKeyPathFor(_ target: NSObject, keyPath: String, options: KeyValueObservingOptions) -> Observable { - let components = keyPath.components(separatedBy: ".").filter { $0 != "self" } - - let observable = observeWeaklyKeyPathFor(target, keyPathSections: components, options: options) - .finishWithNilWhenDealloc(target) - - if !options.isDisjoint(with: .initial) { - return observable - } - else { - return observable - .skip(1) - } - } - - // This should work correctly - // Identifiers can't contain `,`, so the only place where `,` can appear - // is as a delimiter. - // This means there is `W` as element in an array of property attributes. - private func isWeakProperty(_ properyRuntimeInfo: String) -> Bool { - return properyRuntimeInfo.range(of: ",W,") != nil - } - - fileprivate extension ObservableType where E == AnyObject? { - func finishWithNilWhenDealloc(_ target: NSObject) - -> Observable { - let deallocating = target.rx.deallocating - - return deallocating - .map { _ in - return Observable.just(nil) - } - .startWith(self.asObservable()) - .switchLatest() - } - } - - private func observeWeaklyKeyPathFor( - _ target: NSObject, - keyPathSections: [String], - options: KeyValueObservingOptions - ) -> Observable { - - weak var weakTarget: AnyObject? = target - - let propertyName = keyPathSections[0] - let remainingPaths = Array(keyPathSections[1.. - - // KVO recursion for value changes - return propertyObservable - .flatMapLatest { (nextTarget: AnyObject?) -> Observable in - if nextTarget == nil { - return Observable.just(nil) - } - let nextObject = nextTarget! as? NSObject - - let strongTarget: AnyObject? = weakTarget - - if nextObject == nil { - return Observable.error(RxCocoaError.invalidObjectOnKeyPath(object: nextTarget!, sourceObject: strongTarget ?? NSNull(), propertyName: propertyName)) - } - - // if target is alive, then send change - // if it's deallocated, don't send anything - if strongTarget == nil { - return Observable.empty() - } - - let nextElementsObservable = keyPathSections.count == 1 - ? Observable.just(nextTarget) - : observeWeaklyKeyPathFor(nextObject!, keyPathSections: remainingPaths, options: options) - - if isWeak { - return nextElementsObservable - .finishWithNilWhenDealloc(nextObject!) - } - else { - return nextElementsObservable - } - } - } -#endif - -// MARK: Constants - -private let deallocSelector = NSSelectorFromString("dealloc") - -// MARK: AnyObject + Reactive - -extension Reactive where Base: AnyObject { - func synchronized( _ action: () -> T) -> T { - objc_sync_enter(self.base) - let result = action() - objc_sync_exit(self.base) - return result - } -} - -extension Reactive where Base: AnyObject { - /** - Helper to make sure that `Observable` returned from `createCachedObservable` is only created once. - This is important because there is only one `target` and `action` properties on `NSControl` or `UIBarButtonItem`. - */ - func lazyInstanceObservable(_ key: UnsafeRawPointer, createCachedObservable: () -> T) -> T { - if let value = objc_getAssociatedObject(self.base, key) { - return value as! T - } - - let observable = createCachedObservable() - - objc_setAssociatedObject(self.base, key, observable, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) - - return observable - } -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/Foundation/NotificationCenter+Rx.swift b/Pods/RxCocoa/RxCocoa/Foundation/NotificationCenter+Rx.swift deleted file mode 100644 index f15e718..0000000 --- a/Pods/RxCocoa/RxCocoa/Foundation/NotificationCenter+Rx.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// NotificationCenter+Rx.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 5/2/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import class Foundation.NotificationCenter -import struct Foundation.Notification - -import RxSwift - -extension Reactive where Base: NotificationCenter { - /** - Transforms notifications posted to notification center to observable sequence of notifications. - - - parameter name: Optional name used to filter notifications. - - parameter object: Optional object used to filter notifications. - - returns: Observable sequence of posted notifications. - */ - public func notification(_ name: Notification.Name?, object: AnyObject? = nil) -> Observable { - return Observable.create { [weak object] observer in - let nsObserver = self.base.addObserver(forName: name, object: object, queue: nil) { notification in - observer.on(.next(notification)) - } - - return Disposables.create { - self.base.removeObserver(nsObserver) - } - } - } -} diff --git a/Pods/RxCocoa/RxCocoa/Foundation/URLSession+Rx.swift b/Pods/RxCocoa/RxCocoa/Foundation/URLSession+Rx.swift deleted file mode 100644 index 291bc52..0000000 --- a/Pods/RxCocoa/RxCocoa/Foundation/URLSession+Rx.swift +++ /dev/null @@ -1,243 +0,0 @@ -// -// URLSession+Rx.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 3/23/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import struct Foundation.URL -import struct Foundation.URLRequest -import struct Foundation.Data -import struct Foundation.Date -import struct Foundation.TimeInterval -import class Foundation.HTTPURLResponse -import class Foundation.URLSession -import class Foundation.URLResponse -import class Foundation.JSONSerialization -import class Foundation.NSError -import var Foundation.NSURLErrorCancelled -import var Foundation.NSURLErrorDomain - -#if os(Linux) - // don't know why - import Foundation -#endif - -import RxSwift - -/// RxCocoa URL errors. -public enum RxCocoaURLError - : Swift.Error { - /// Unknown error occurred. - case unknown - /// Response is not NSHTTPURLResponse - case nonHTTPResponse(response: URLResponse) - /// Response is not successful. (not in `200 ..< 300` range) - case httpRequestFailed(response: HTTPURLResponse, data: Data?) - /// Deserialization error. - case deserializationError(error: Swift.Error) -} - -extension RxCocoaURLError - : CustomDebugStringConvertible { - /// A textual representation of `self`, suitable for debugging. - public var debugDescription: String { - switch self { - case .unknown: - return "Unknown error has occurred." - case let .nonHTTPResponse(response): - return "Response is not NSHTTPURLResponse `\(response)`." - case let .httpRequestFailed(response, _): - return "HTTP request failed with `\(response.statusCode)`." - case let .deserializationError(error): - return "Error during deserialization of the response: \(error)" - } - } -} - -private func escapeTerminalString(_ value: String) -> String { - return value.replacingOccurrences(of: "\"", with: "\\\"", options:[], range: nil) -} - -fileprivate func convertURLRequestToCurlCommand(_ request: URLRequest) -> String { - let method = request.httpMethod ?? "GET" - var returnValue = "curl -X \(method) " - - if let httpBody = request.httpBody, request.httpMethod == "POST" { - let maybeBody = String(data: httpBody, encoding: String.Encoding.utf8) - if let body = maybeBody { - returnValue += "-d \"\(escapeTerminalString(body))\" " - } - } - - for (key, value) in request.allHTTPHeaderFields ?? [:] { - let escapedKey = escapeTerminalString(key as String) - let escapedValue = escapeTerminalString(value as String) - returnValue += "\n -H \"\(escapedKey): \(escapedValue)\" " - } - - let URLString = request.url?.absoluteString ?? "" - - returnValue += "\n\"\(escapeTerminalString(URLString))\"" - - returnValue += " -i -v" - - return returnValue -} - -private func convertResponseToString(_ response: URLResponse?, _ error: NSError?, _ interval: TimeInterval) -> String { - let ms = Int(interval * 1000) - - if let response = response as? HTTPURLResponse { - if 200 ..< 300 ~= response.statusCode { - return "Success (\(ms)ms): Status \(response.statusCode)" - } - else { - return "Failure (\(ms)ms): Status \(response.statusCode)" - } - } - - if let error = error { - if error.domain == NSURLErrorDomain && error.code == NSURLErrorCancelled { - return "Canceled (\(ms)ms)" - } - return "Failure (\(ms)ms): NSError > \(error)" - } - - return "" -} - -extension Reactive where Base: URLSession { - /** - Observable sequence of responses for URL request. - - Performing of request starts after observer is subscribed and not after invoking this method. - - **URL requests will be performed per subscribed observer.** - - Any error during fetching of the response will cause observed sequence to terminate with error. - - - parameter request: URL request. - - returns: Observable sequence of URL responses. - */ - public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> { - return Observable.create { observer in - - // smart compiler should be able to optimize this out - let d: Date? - - if Logging.URLRequests(request) { - d = Date() - } - else { - d = nil - } - - let task = self.base.dataTask(with: request) { data, response, error in - - if Logging.URLRequests(request) { - let interval = Date().timeIntervalSince(d ?? Date()) - print(convertURLRequestToCurlCommand(request)) - #if os(Linux) - print(convertResponseToString(response, error.flatMap { $0 as? NSError }, interval)) - #else - print(convertResponseToString(response, error.map { $0 as NSError }, interval)) - #endif - } - - guard let response = response, let data = data else { - observer.on(.error(error ?? RxCocoaURLError.unknown)) - return - } - - guard let httpResponse = response as? HTTPURLResponse else { - observer.on(.error(RxCocoaURLError.nonHTTPResponse(response: response))) - return - } - - observer.on(.next((httpResponse, data))) - observer.on(.completed) - } - - task.resume() - - return Disposables.create(with: task.cancel) - } - } - - /** - Observable sequence of response data for URL request. - - Performing of request starts after observer is subscribed and not after invoking this method. - - **URL requests will be performed per subscribed observer.** - - Any error during fetching of the response will cause observed sequence to terminate with error. - - If response is not HTTP response with status code in the range of `200 ..< 300`, sequence - will terminate with `(RxCocoaErrorDomain, RxCocoaError.NetworkError)`. - - - parameter request: URL request. - - returns: Observable sequence of response data. - */ - public func data(request: URLRequest) -> Observable { - return self.response(request: request).map { pair -> Data in - if 200 ..< 300 ~= pair.0.statusCode { - return pair.1 - } - else { - throw RxCocoaURLError.httpRequestFailed(response: pair.0, data: pair.1) - } - } - } - - /** - Observable sequence of response JSON for URL request. - - Performing of request starts after observer is subscribed and not after invoking this method. - - **URL requests will be performed per subscribed observer.** - - Any error during fetching of the response will cause observed sequence to terminate with error. - - If response is not HTTP response with status code in the range of `200 ..< 300`, sequence - will terminate with `(RxCocoaErrorDomain, RxCocoaError.NetworkError)`. - - If there is an error during JSON deserialization observable sequence will fail with that error. - - - parameter request: URL request. - - returns: Observable sequence of response JSON. - */ - public func json(request: URLRequest, options: JSONSerialization.ReadingOptions = []) -> Observable { - return self.data(request: request).map { data -> Any in - do { - return try JSONSerialization.jsonObject(with: data, options: options) - } catch let error { - throw RxCocoaURLError.deserializationError(error: error) - } - } - } - - /** - Observable sequence of response JSON for GET request with `URL`. - - Performing of request starts after observer is subscribed and not after invoking this method. - - **URL requests will be performed per subscribed observer.** - - Any error during fetching of the response will cause observed sequence to terminate with error. - - If response is not HTTP response with status code in the range of `200 ..< 300`, sequence - will terminate with `(RxCocoaErrorDomain, RxCocoaError.NetworkError)`. - - If there is an error during JSON deserialization observable sequence will fail with that error. - - - parameter url: URL of `NSURLRequest` request. - - returns: Observable sequence of response JSON. - */ - public func json(url: Foundation.URL) -> Observable { - return self.json(request: URLRequest(url: url)) - } -} - diff --git a/Pods/RxCocoa/RxCocoa/Runtime/_RX.m b/Pods/RxCocoa/RxCocoa/Runtime/_RX.m deleted file mode 100644 index cffbfbc..0000000 --- a/Pods/RxCocoa/RxCocoa/Runtime/_RX.m +++ /dev/null @@ -1,10 +0,0 @@ -// -// _RX.m -// RxCocoa -// -// Created by Krunoslav Zaher on 7/12/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#import "include/_RX.h" - diff --git a/Pods/RxCocoa/RxCocoa/Runtime/_RXDelegateProxy.m b/Pods/RxCocoa/RxCocoa/Runtime/_RXDelegateProxy.m deleted file mode 100644 index 36338a5..0000000 --- a/Pods/RxCocoa/RxCocoa/Runtime/_RXDelegateProxy.m +++ /dev/null @@ -1,147 +0,0 @@ -// -// _RXDelegateProxy.m -// RxCocoa -// -// Created by Krunoslav Zaher on 7/4/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#import "include/_RXDelegateProxy.h" -#import "include/_RX.h" -#import "include/_RXObjCRuntime.h" - -@interface _RXDelegateProxy () { - id __weak __forwardToDelegate; -} - -@property (nonatomic, strong) id strongForwardDelegate; - -@end - -static NSMutableDictionary *voidSelectorsPerClass = nil; - -@implementation _RXDelegateProxy - -+(NSSet*)collectVoidSelectorsForProtocol:(Protocol *)protocol { - NSMutableSet *selectors = [NSMutableSet set]; - - unsigned int protocolMethodCount = 0; - struct objc_method_description *pMethods = protocol_copyMethodDescriptionList(protocol, NO, YES, &protocolMethodCount); - - for (unsigned int i = 0; i < protocolMethodCount; ++i) { - struct objc_method_description method = pMethods[i]; - if (RX_is_method_with_description_void(method)) { - [selectors addObject:SEL_VALUE(method.name)]; - } - } - - free(pMethods); - - unsigned int numberOfBaseProtocols = 0; - Protocol * __unsafe_unretained * pSubprotocols = protocol_copyProtocolList(protocol, &numberOfBaseProtocols); - - for (unsigned int i = 0; i < numberOfBaseProtocols; ++i) { - [selectors unionSet:[self collectVoidSelectorsForProtocol:pSubprotocols[i]]]; - } - - free(pSubprotocols); - - return selectors; -} - -+(void)initialize { - @synchronized (_RXDelegateProxy.class) { - if (voidSelectorsPerClass == nil) { - voidSelectorsPerClass = [[NSMutableDictionary alloc] init]; - } - - NSMutableSet *voidSelectors = [NSMutableSet set]; - -#define CLASS_HIERARCHY_MAX_DEPTH 100 - - NSInteger classHierarchyDepth = 0; - Class targetClass = NULL; - - for (classHierarchyDepth = 0, targetClass = self; - classHierarchyDepth < CLASS_HIERARCHY_MAX_DEPTH && targetClass != nil; - ++classHierarchyDepth, targetClass = class_getSuperclass(targetClass) - ) { - unsigned int count; - Protocol *__unsafe_unretained *pProtocols = class_copyProtocolList(targetClass, &count); - - for (unsigned int i = 0; i < count; i++) { - NSSet *selectorsForProtocol = [self collectVoidSelectorsForProtocol:pProtocols[i]]; - [voidSelectors unionSet:selectorsForProtocol]; - } - - free(pProtocols); - } - - if (classHierarchyDepth == CLASS_HIERARCHY_MAX_DEPTH) { - NSLog(@"Detected weird class hierarchy with depth over %d. Starting with this class -> %@", CLASS_HIERARCHY_MAX_DEPTH, self); -#if DEBUG - abort(); -#endif - } - - voidSelectorsPerClass[CLASS_VALUE(self)] = voidSelectors; - } -} - --(id)_forwardToDelegate { - return __forwardToDelegate; -} - --(void)_setForwardToDelegate:(id __nullable)forwardToDelegate retainDelegate:(BOOL)retainDelegate { - __forwardToDelegate = forwardToDelegate; - if (retainDelegate) { - self.strongForwardDelegate = forwardToDelegate; - } - else { - self.strongForwardDelegate = nil; - } -} - --(BOOL)hasWiredImplementationForSelector:(SEL)selector { - return [super respondsToSelector:selector]; -} - --(BOOL)voidDelegateMethodsContain:(SEL)selector { - @synchronized(_RXDelegateProxy.class) { - NSSet *voidSelectors = voidSelectorsPerClass[CLASS_VALUE(self.class)]; - NSAssert(voidSelectors != nil, @"Set of allowed methods not initialized"); - return [voidSelectors containsObject:SEL_VALUE(selector)]; - } -} - --(void)forwardInvocation:(NSInvocation *)anInvocation { - BOOL isVoid = RX_is_method_signature_void(anInvocation.methodSignature); - NSArray *arguments = nil; - if (isVoid) { - arguments = RX_extract_arguments(anInvocation); - [self _sentMessage:anInvocation.selector withArguments:arguments]; - } - - if (self._forwardToDelegate && [self._forwardToDelegate respondsToSelector:anInvocation.selector]) { - [anInvocation invokeWithTarget:self._forwardToDelegate]; - } - - if (isVoid) { - [self _methodInvoked:anInvocation.selector withArguments:arguments]; - } -} - -// abstract method --(void)_sentMessage:(SEL)selector withArguments:(NSArray *)arguments { - -} - -// abstract method --(void)_methodInvoked:(SEL)selector withArguments:(NSArray *)arguments { - -} - --(void)dealloc { -} - -@end diff --git a/Pods/RxCocoa/RxCocoa/Runtime/_RXKVOObserver.m b/Pods/RxCocoa/RxCocoa/Runtime/_RXKVOObserver.m deleted file mode 100644 index fc8fb75..0000000 --- a/Pods/RxCocoa/RxCocoa/Runtime/_RXKVOObserver.m +++ /dev/null @@ -1,54 +0,0 @@ -// -// _RXKVOObserver.m -// RxCocoa -// -// Created by Krunoslav Zaher on 7/11/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#import "include/_RXKVOObserver.h" - -@interface _RXKVOObserver () - -@property (nonatomic, unsafe_unretained) id target; -@property (nonatomic, strong ) id retainedTarget; -@property (nonatomic, copy ) NSString *keyPath; -@property (nonatomic, copy ) void (^callback)(id); - -@end - -@implementation _RXKVOObserver - --(instancetype)initWithTarget:(id)target - retainTarget:(BOOL)retainTarget - keyPath:(NSString*)keyPath - options:(NSKeyValueObservingOptions)options - callback:(void (^)(id))callback { - self = [super init]; - if (!self) return nil; - - self.target = target; - if (retainTarget) { - self.retainedTarget = target; - } - self.keyPath = keyPath; - self.callback = callback; - - [self.target addObserver:self forKeyPath:self.keyPath options:options context:nil]; - - return self; -} - --(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { - @synchronized(self) { - self.callback(change[NSKeyValueChangeNewKey]); - } -} - --(void)dispose { - [self.target removeObserver:self forKeyPath:self.keyPath context:nil]; - self.target = nil; - self.retainedTarget = nil; -} - -@end diff --git a/Pods/RxCocoa/RxCocoa/Runtime/_RXObjCRuntime.m b/Pods/RxCocoa/RxCocoa/Runtime/_RXObjCRuntime.m deleted file mode 100644 index 1aa9071..0000000 --- a/Pods/RxCocoa/RxCocoa/Runtime/_RXObjCRuntime.m +++ /dev/null @@ -1,1027 +0,0 @@ -// -// _RXObjCRuntime.m -// RxCocoa -// -// Created by Krunoslav Zaher on 7/11/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#import -#import -#import -#import -#import -#import - -#import "include/_RX.h" -#import "include/_RXObjCRuntime.h" - -// self + cmd -#define HIDDEN_ARGUMENT_COUNT 2 - -#if !DISABLE_SWIZZLING - -#define NSErrorParam NSError *__autoreleasing __nullable * __nullable - -@class RXObjCRuntime; - -BOOL RXAbortOnThreadingHazard = NO; - -typedef NSInvocation *NSInvocationRef; -typedef NSMethodSignature *NSMethodSignatureRef; -typedef unsigned char rx_uchar; -typedef unsigned short rx_ushort; -typedef unsigned int rx_uint; -typedef unsigned long rx_ulong; -typedef id (^rx_block)(id); -typedef BOOL (^RXInterceptWithOptimizedObserver)(RXObjCRuntime * __nonnull self, Class __nonnull class, SEL __nonnull selector, NSErrorParam error); - -static CFTypeID defaultTypeID; -static SEL deallocSelector; - -static int RxSwizzlingTargetClassKey = 0; - -#if TRACE_RESOURCES -_Atomic static int32_t numberOInterceptedMethods = 0; -_Atomic static int32_t numberOfForwardedMethods = 0; -#endif - -#define THREADING_HAZARD(class) \ - NSLog(@"There was a problem swizzling on `%@`.\nYou have probably two libraries performing swizzling in runtime.\nWe didn't want to crash your program, but this is not good ...\nYou an solve this problem by either not using swizzling in this library, removing one of those other libraries, or making sure that swizzling parts are synchronized (only perform them on main thread).\nAnd yes, this message will self destruct when you clear the console, and since it's non deterministic, the problem could still exist and it will be hard for you to reproduce it.", NSStringFromClass(class)); ABORT_IN_DEBUG if (RXAbortOnThreadingHazard) { abort(); } - -#define ALWAYS(condition, message) if (!(condition)) { [NSException raise:@"RX Invalid Operator" format:@"%@", message]; } -#define ALWAYS_WITH_INFO(condition, message) NSAssert((condition), @"%@ [%@] > %@", NSStringFromClass(class), NSStringFromSelector(selector), (message)) -#define C_ALWAYS(condition, message) NSCAssert((condition), @"%@ [%@] > %@", NSStringFromClass(class), NSStringFromSelector(selector), (message)) - -#define RX_PREFIX @"_RX_namespace_" - -#define RX_ARG_id(value) ((value) ?: [NSNull null]) -#define RX_ARG_char(value) [NSNumber numberWithChar:value] -#define RX_ARG_short(value) [NSNumber numberWithShort:value] -#define RX_ARG_int(value) [NSNumber numberWithInt:value] -#define RX_ARG_long(value) [NSNumber numberWithLong:value] -#define RX_ARG_BOOL(value) [NSNumber numberWithBool:value] -#define RX_ARG_SEL(value) [NSNumber valueWithPointer:value] -#define RX_ARG_rx_uchar(value) [NSNumber numberWithUnsignedInt:value] -#define RX_ARG_rx_ushort(value) [NSNumber numberWithUnsignedInt:value] -#define RX_ARG_rx_uint(value) [NSNumber numberWithUnsignedInt:value] -#define RX_ARG_rx_ulong(value) [NSNumber numberWithUnsignedLong:value] -#define RX_ARG_rx_block(value) ((id)(value) ?: [NSNull null]) -#define RX_ARG_float(value) [NSNumber numberWithFloat:value] -#define RX_ARG_double(value) [NSNumber numberWithDouble:value] - -typedef struct supported_type { - const char *encoding; -} supported_type_t; - -static supported_type_t supported_types[] = { - { .encoding = @encode(void)}, - { .encoding = @encode(id)}, - { .encoding = @encode(Class)}, - { .encoding = @encode(void (^)(void))}, - { .encoding = @encode(char)}, - { .encoding = @encode(short)}, - { .encoding = @encode(int)}, - { .encoding = @encode(long)}, - { .encoding = @encode(long long)}, - { .encoding = @encode(unsigned char)}, - { .encoding = @encode(unsigned short)}, - { .encoding = @encode(unsigned int)}, - { .encoding = @encode(unsigned long)}, - { .encoding = @encode(unsigned long long)}, - { .encoding = @encode(float)}, - { .encoding = @encode(double)}, - { .encoding = @encode(BOOL)}, - { .encoding = @encode(const char*)}, -}; - -NSString * __nonnull const RXObjCRuntimeErrorDomain = @"RXObjCRuntimeErrorDomain"; -NSString * __nonnull const RXObjCRuntimeErrorIsKVOKey = @"RXObjCRuntimeErrorIsKVOKey"; - -BOOL RX_return_type_is_supported(const char *type) { - if (type == nil) { - return NO; - } - - for (int i = 0; i < sizeof(supported_types) / sizeof(supported_type_t); ++i) { - if (supported_types[i].encoding[0] != type[0]) { - continue; - } - if (strcmp(supported_types[i].encoding, type) == 0) { - return YES; - } - } - - return NO; -} - -static BOOL RX_method_has_supported_return_type(Method method) { - const char *rawEncoding = method_getTypeEncoding(method); - ALWAYS(rawEncoding != nil, @"Example encoding method is nil."); - - NSMethodSignature *methodSignature = [NSMethodSignature signatureWithObjCTypes:rawEncoding]; - ALWAYS(methodSignature != nil, @"Method signature method is nil."); - - return RX_return_type_is_supported(methodSignature.methodReturnType); -} - -SEL __nonnull RX_selector(SEL __nonnull selector) { - NSString *selectorString = NSStringFromSelector(selector); - return NSSelectorFromString([RX_PREFIX stringByAppendingString:selectorString]); -} - -#endif - -BOOL RX_is_method_signature_void(NSMethodSignature * __nonnull methodSignature) { - const char *methodReturnType = methodSignature.methodReturnType; - return strcmp(methodReturnType, @encode(void)) == 0; -} - -BOOL RX_is_method_with_description_void(struct objc_method_description method) { - return strncmp(method.types, @encode(void), 1) == 0; -} - -id __nonnull RX_extract_argument_at_index(NSInvocation * __nonnull invocation, NSUInteger index) { - const char *argumentType = [invocation.methodSignature getArgumentTypeAtIndex:index]; - -#define RETURN_VALUE(type) \ - else if (strcmp(argumentType, @encode(type)) == 0) {\ - type val = 0; \ - [invocation getArgument:&val atIndex:index]; \ - return @(val); \ - } - - // Skip const type qualifier. - if (argumentType[0] == 'r') { - argumentType++; - } - - if (strcmp(argumentType, @encode(id)) == 0 - || strcmp(argumentType, @encode(Class)) == 0 - || strcmp(argumentType, @encode(void (^)(void))) == 0 - ) { - __unsafe_unretained id argument = nil; - [invocation getArgument:&argument atIndex:index]; - return argument; - } - RETURN_VALUE(char) - RETURN_VALUE(short) - RETURN_VALUE(int) - RETURN_VALUE(long) - RETURN_VALUE(long long) - RETURN_VALUE(unsigned char) - RETURN_VALUE(unsigned short) - RETURN_VALUE(unsigned int) - RETURN_VALUE(unsigned long) - RETURN_VALUE(unsigned long long) - RETURN_VALUE(float) - RETURN_VALUE(double) - RETURN_VALUE(BOOL) - RETURN_VALUE(const char *) - else { - NSUInteger size = 0; - NSGetSizeAndAlignment(argumentType, &size, NULL); - NSCParameterAssert(size > 0); - uint8_t data[size]; - [invocation getArgument:&data atIndex:index]; - - return [NSValue valueWithBytes:&data objCType:argumentType]; - } -} - -NSArray *RX_extract_arguments(NSInvocation *invocation) { - NSUInteger numberOfArguments = invocation.methodSignature.numberOfArguments; - NSUInteger numberOfVisibleArguments = numberOfArguments - HIDDEN_ARGUMENT_COUNT; - - NSCParameterAssert(numberOfVisibleArguments >= 0); - - NSMutableArray *arguments = [NSMutableArray arrayWithCapacity:numberOfVisibleArguments]; - - for (NSUInteger index = HIDDEN_ARGUMENT_COUNT; index < numberOfArguments; ++index) { - [arguments addObject:RX_extract_argument_at_index(invocation, index) ?: [NSNull null]]; - } - - return arguments; -} - -IMP __nonnull RX_default_target_implementation(void) { - return _objc_msgForward; -} - -#if !DISABLE_SWIZZLING - -void * __nonnull RX_reference_from_selector(SEL __nonnull selector) { - return selector; -} - -static BOOL RX_forward_invocation(id __nonnull __unsafe_unretained self, NSInvocation *invocation) { - SEL originalSelector = RX_selector(invocation.selector); - - id messageSentObserver = objc_getAssociatedObject(self, originalSelector); - - if (messageSentObserver != nil) { - NSArray *arguments = RX_extract_arguments(invocation); - [messageSentObserver messageSentWithArguments:arguments]; - } - - if ([self respondsToSelector:originalSelector]) { - invocation.selector = originalSelector; - [invocation invokeWithTarget:self]; - - if (messageSentObserver != nil) { - NSArray *arguments = RX_extract_arguments(invocation); - [messageSentObserver methodInvokedWithArguments:arguments]; - } - - return YES; - } - - return NO; -} - -static BOOL RX_responds_to_selector(id __nonnull __unsafe_unretained self, SEL selector) { - Class class = object_getClass(self); - if (class == nil) { return NO; } - - Method m = class_getInstanceMethod(class, selector); - return m != nil; - -} - -static NSMethodSignatureRef RX_method_signature(id __nonnull __unsafe_unretained self, SEL selector) { - Class class = object_getClass(self); - if (class == nil) { return nil; } - - Method method = class_getInstanceMethod(class, selector); - if (method == nil) { return nil; } - - const char *encoding = method_getTypeEncoding(method); - if (encoding == nil) { return nil; } - - return [NSMethodSignature signatureWithObjCTypes:encoding]; -} - -static NSString * __nonnull RX_method_encoding(Method __nonnull method) { - const char *typeEncoding = method_getTypeEncoding(method); - ALWAYS(typeEncoding != nil, @"Method encoding is nil."); - - NSString *encoding = [NSString stringWithCString:typeEncoding encoding:NSASCIIStringEncoding]; - ALWAYS(encoding != nil, @"Can't convert encoding to NSString."); - return encoding; -} - -@interface RXObjCRuntime: NSObject - -@property (nonatomic, assign) pthread_mutex_t lock; - -@property (nonatomic, strong) NSMutableSet *classesThatSupportObservingByForwarding; -@property (nonatomic, strong) NSMutableDictionary *> *forwardedSelectorsByClass; - -@property (nonatomic, strong) NSMutableDictionary *dynamicSubclassByRealClass; -@property (nonatomic, strong) NSMutableDictionary*> *interceptorIMPbySelectorsByClass; - -+(RXObjCRuntime*)instance; - --(void)performLocked:(void (^)(RXObjCRuntime* __nonnull))action; --(IMP __nullable)ensurePrepared:(id __nonnull)target forObserving:(SEL __nonnull)selector error:(NSErrorParam)error; --(BOOL)ensureSwizzledSelector:(SEL __nonnull)selector - ofClass:(Class __nonnull)class - newImplementationGenerator:(IMP(^)(void))newImplementationGenerator -replacementImplementationGenerator:(IMP (^)(IMP originalImplementation))replacementImplementationGenerator - error:(NSErrorParam)error; - - -+(void)registerOptimizedObserver:(RXInterceptWithOptimizedObserver)registration encodedAs:(SEL)selector; - -@end - -/** - All API methods perform work on locked instance of `RXObjCRuntime`. In that way it's easy to prove - that every action is properly locked. - */ -IMP __nullable RX_ensure_observing(id __nonnull target, SEL __nonnull selector, NSErrorParam error) { - __block IMP targetImplementation = nil; - // Target is the second object that needs to be synchronized to TRY to make sure other swizzling framework - // won't do something in parallel. - // Even though this is too fine grained locking and more coarse grained locks should exist, this is just in case - // someone calls this method directly without any external lock. - @synchronized(target) { - // The only other resource that all other swizzling libraries have in common without introducing external - // dependencies is class object. - // - // It is polite to try to synchronize it in hope other unknown entities will also attempt to do so. - // It's like trying to figure out how to communicate with aliens without actually communicating, - // save for the fact that aliens are people, programmers, authors of swizzling libraries. - @synchronized([target class]) { - [[RXObjCRuntime instance] performLocked:^(RXObjCRuntime * __nonnull self) { - targetImplementation = [self ensurePrepared:target - forObserving:selector - error:error]; - }]; - } - } - - return targetImplementation; -} - -// bodies - -#define FORWARD_BODY(invocation) if (RX_forward_invocation(self, NAME_CAT(_, 0, invocation))) { return; } - -#define RESPONDS_TO_SELECTOR_BODY(selector) if (RX_responds_to_selector(self, NAME_CAT(_, 0, selector))) return YES; - -#define CLASS_BODY(...) return actAsClass; - -#define METHOD_SIGNATURE_FOR_SELECTOR_BODY(selector) \ - NSMethodSignatureRef methodSignature = RX_method_signature(self, NAME_CAT(_, 0, selector)); \ - if (methodSignature != nil) { \ - return methodSignature; \ - } - -#define DEALLOCATING_BODY(...) \ - id observer = objc_getAssociatedObject(self, rxSelector); \ - if (observer != nil && observer.targetImplementation == thisIMP) { \ - [observer deallocating]; \ - } - -#define OBSERVE_BODY(...) \ - id observer = objc_getAssociatedObject(self, rxSelector); \ - \ - if (observer != nil && observer.targetImplementation == thisIMP) { \ - [observer messageSentWithArguments:@[COMMA_DELIMITED_ARGUMENTS(__VA_ARGS__)]]; \ - } \ - - -#define OBSERVE_INVOKED_BODY(...) \ - if (observer != nil && observer.targetImplementation == thisIMP) { \ - [observer methodInvokedWithArguments:@[COMMA_DELIMITED_ARGUMENTS(__VA_ARGS__)]]; \ - } \ - - -#define BUILD_ARG_WRAPPER(type) RX_ARG_ ## type //RX_ARG_ ## type - -#define CAT(_1, _2, head, tail) RX_CAT2(head, tail) -#define SEPARATE_BY_COMMA(_1, _2, head, tail) head, tail -#define SEPARATE_BY_SPACE(_1, _2, head, tail) head tail -#define SEPARATE_BY_UNDERSCORE(head, tail) RX_CAT2(RX_CAT2(head, _), tail) - -#define UNDERSCORE_TYPE_CAT(_1, index, type) RX_CAT2(_, type) // generates -> _type -#define NAME_CAT(_1, index, type) SEPARATE_BY_UNDERSCORE(type, index) // generates -> type_0 -#define TYPE_AND_NAME_CAT(_1, index, type) type SEPARATE_BY_UNDERSCORE(type, index) // generates -> type type_0 -#define NOT_NULL_ARGUMENT_CAT(_1, index, type) BUILD_ARG_WRAPPER(type)(NAME_CAT(_1, index, type)) // generates -> ((id)(type_0) ?: [NSNull null]) -#define EXAMPLE_PARAMETER(_1, index, type) RX_CAT2(_, type):(type)SEPARATE_BY_UNDERSCORE(type, index) // generates -> _type:(type)type_0 -#define SELECTOR_PART(_1, index, type) RX_CAT2(_, type:) // generates -> _type: - -#define COMMA_DELIMITED_ARGUMENTS(...) RX_FOREACH(_, SEPARATE_BY_COMMA, NOT_NULL_ARGUMENT_CAT, ## __VA_ARGS__) -#define ARGUMENTS(...) RX_FOREACH_COMMA(_, NAME_CAT, ## __VA_ARGS__) -#define DECLARE_ARGUMENTS(...) RX_FOREACH_COMMA(_, TYPE_AND_NAME_CAT, ## __VA_ARGS__) - -// optimized observe methods - -#define GENERATE_METHOD_IDENTIFIER(...) RX_CAT2(swizzle, RX_FOREACH(_, CAT, UNDERSCORE_TYPE_CAT, ## __VA_ARGS__)) - -#define GENERATE_OBSERVE_METHOD_DECLARATION(...) \ - -(BOOL)GENERATE_METHOD_IDENTIFIER(__VA_ARGS__):(Class __nonnull)class \ - selector:(SEL)selector \ - error:(NSErrorParam)error { \ - - -#define BUILD_EXAMPLE_METHOD(return_value, ...) \ - +(return_value)RX_CAT2(RX_CAT2(example_, return_value), RX_FOREACH(_, SEPARATE_BY_SPACE, EXAMPLE_PARAMETER, ## __VA_ARGS__)) {} - -#define BUILD_EXAMPLE_METHOD_SELECTOR(return_value, ...) \ - RX_CAT2(RX_CAT2(example_, return_value), RX_FOREACH(_, SEPARATE_BY_SPACE, SELECTOR_PART, ## __VA_ARGS__)) - -#define SWIZZLE_OBSERVE_METHOD(return_value, ...) \ - @interface RXObjCRuntime (GENERATE_METHOD_IDENTIFIER(return_value, ## __VA_ARGS__)) \ - @end \ - \ - @implementation RXObjCRuntime(GENERATE_METHOD_IDENTIFIER(return_value, ## __VA_ARGS__)) \ - BUILD_EXAMPLE_METHOD(return_value, ## __VA_ARGS__) \ - SWIZZLE_METHOD(return_value, GENERATE_OBSERVE_METHOD_DECLARATION(return_value, ## __VA_ARGS__), OBSERVE_BODY, OBSERVE_INVOKED_BODY, ## __VA_ARGS__) \ - \ - +(void)load { \ - __unused SEL exampleSelector = @selector(BUILD_EXAMPLE_METHOD_SELECTOR(return_value, ## __VA_ARGS__)); \ - [self registerOptimizedObserver:^BOOL(RXObjCRuntime * __nonnull self, Class __nonnull class, \ - SEL __nonnull selector, NSErrorParam error) { \ - return [self GENERATE_METHOD_IDENTIFIER(return_value, ## __VA_ARGS__):class selector:selector error:error]; \ - } encodedAs:exampleSelector]; \ - } \ - \ - @end \ - -// infrastructure method - -#define NO_BODY(...) - -#define SWIZZLE_INFRASTRUCTURE_METHOD(return_value, method_name, parameters, method_selector, body, ...) \ - SWIZZLE_METHOD(return_value, -(BOOL)method_name:(Class __nonnull)class parameters error:(NSErrorParam)error \ - { \ - SEL selector = method_selector; , body, NO_BODY, __VA_ARGS__) \ - - -// common base - -#define SWIZZLE_METHOD(return_value, method_prototype, body, invoked_body, ...) \ -method_prototype \ - __unused SEL rxSelector = RX_selector(selector); \ - IMP (^newImplementationGenerator)(void) = ^() { \ - __block IMP thisIMP = nil; \ - id newImplementation = ^return_value(__unsafe_unretained id self DECLARE_ARGUMENTS(__VA_ARGS__)) { \ - body(__VA_ARGS__) \ - \ - struct objc_super superInfo = { \ - .receiver = self, \ - .super_class = class_getSuperclass(class) \ - }; \ - \ - return_value (*msgSend)(struct objc_super *, SEL DECLARE_ARGUMENTS(__VA_ARGS__)) \ - = (__typeof__(msgSend))objc_msgSendSuper; \ - @try { \ - return msgSend(&superInfo, selector ARGUMENTS(__VA_ARGS__)); \ - } \ - @finally { invoked_body(__VA_ARGS__) } \ - }; \ - \ - thisIMP = imp_implementationWithBlock(newImplementation); \ - return thisIMP; \ - }; \ - \ - IMP (^replacementImplementationGenerator)(IMP) = ^(IMP originalImplementation) { \ - __block return_value (*originalImplementationTyped)(__unsafe_unretained id, SEL DECLARE_ARGUMENTS(__VA_ARGS__) ) \ - = (__typeof__(originalImplementationTyped))(originalImplementation); \ - \ - __block IMP thisIMP = nil; \ - id implementationReplacement = ^return_value(__unsafe_unretained id self DECLARE_ARGUMENTS(__VA_ARGS__) ) { \ - body(__VA_ARGS__) \ - @try { \ - return originalImplementationTyped(self, selector ARGUMENTS(__VA_ARGS__)); \ - } \ - @finally { invoked_body(__VA_ARGS__) } \ - }; \ - \ - thisIMP = imp_implementationWithBlock(implementationReplacement); \ - return thisIMP; \ - }; \ - \ - return [self ensureSwizzledSelector:selector \ - ofClass:class \ - newImplementationGenerator:newImplementationGenerator \ - replacementImplementationGenerator:replacementImplementationGenerator \ - error:error]; \ - } \ - - -@interface RXObjCRuntime (InfrastructureMethods) -@end - -// MARK: Infrastructure Methods - -@implementation RXObjCRuntime (InfrastructureMethods) - -SWIZZLE_INFRASTRUCTURE_METHOD( - void, - swizzleForwardInvocation, - , - @selector(forwardInvocation:), - FORWARD_BODY, - NSInvocationRef -) -SWIZZLE_INFRASTRUCTURE_METHOD( - BOOL, - swizzleRespondsToSelector, - , - @selector(respondsToSelector:), - RESPONDS_TO_SELECTOR_BODY, - SEL -) -SWIZZLE_INFRASTRUCTURE_METHOD( - Class __nonnull, - swizzleClass, - toActAs:(Class)actAsClass, - @selector(class), - CLASS_BODY -) -SWIZZLE_INFRASTRUCTURE_METHOD( - NSMethodSignatureRef, - swizzleMethodSignatureForSelector, - , - @selector(methodSignatureForSelector:), - METHOD_SIGNATURE_FOR_SELECTOR_BODY, - SEL -) -SWIZZLE_INFRASTRUCTURE_METHOD( - void, - swizzleDeallocating, - , - deallocSelector, - DEALLOCATING_BODY -) - -@end - -// MARK: Optimized intercepting methods for specific combination of parameter types - -SWIZZLE_OBSERVE_METHOD(void) - -SWIZZLE_OBSERVE_METHOD(void, id) -SWIZZLE_OBSERVE_METHOD(void, char) -SWIZZLE_OBSERVE_METHOD(void, short) -SWIZZLE_OBSERVE_METHOD(void, int) -SWIZZLE_OBSERVE_METHOD(void, long) -SWIZZLE_OBSERVE_METHOD(void, rx_uchar) -SWIZZLE_OBSERVE_METHOD(void, rx_ushort) -SWIZZLE_OBSERVE_METHOD(void, rx_uint) -SWIZZLE_OBSERVE_METHOD(void, rx_ulong) -SWIZZLE_OBSERVE_METHOD(void, rx_block) -SWIZZLE_OBSERVE_METHOD(void, float) -SWIZZLE_OBSERVE_METHOD(void, double) -SWIZZLE_OBSERVE_METHOD(void, SEL) - -SWIZZLE_OBSERVE_METHOD(void, id, id) -SWIZZLE_OBSERVE_METHOD(void, id, char) -SWIZZLE_OBSERVE_METHOD(void, id, short) -SWIZZLE_OBSERVE_METHOD(void, id, int) -SWIZZLE_OBSERVE_METHOD(void, id, long) -SWIZZLE_OBSERVE_METHOD(void, id, rx_uchar) -SWIZZLE_OBSERVE_METHOD(void, id, rx_ushort) -SWIZZLE_OBSERVE_METHOD(void, id, rx_uint) -SWIZZLE_OBSERVE_METHOD(void, id, rx_ulong) -SWIZZLE_OBSERVE_METHOD(void, id, rx_block) -SWIZZLE_OBSERVE_METHOD(void, id, float) -SWIZZLE_OBSERVE_METHOD(void, id, double) -SWIZZLE_OBSERVE_METHOD(void, id, SEL) - -// MARK: RXObjCRuntime - -@implementation RXObjCRuntime - -static RXObjCRuntime *_instance = nil; -static NSMutableDictionary *optimizedObserversByMethodEncoding = nil; - -+(RXObjCRuntime*)instance { - return _instance; -} - -+(void)initialize { - _instance = [[RXObjCRuntime alloc] init]; - defaultTypeID = CFGetTypeID((CFTypeRef)RXObjCRuntime.class); // just need a reference of some object not from CF - deallocSelector = NSSelectorFromString(@"dealloc"); - NSAssert(_instance != nil, @"Failed to initialize swizzling"); -} - --(instancetype)init { - self = [super init]; - if (!self) return nil; - - self.classesThatSupportObservingByForwarding = [NSMutableSet set]; - self.forwardedSelectorsByClass = [NSMutableDictionary dictionary]; - - self.dynamicSubclassByRealClass = [NSMutableDictionary dictionary]; - self.interceptorIMPbySelectorsByClass = [NSMutableDictionary dictionary]; - - pthread_mutexattr_t lock_attr; - pthread_mutexattr_init(&lock_attr); - pthread_mutexattr_settype(&lock_attr, PTHREAD_MUTEX_RECURSIVE); - pthread_mutex_init(&_lock, &lock_attr); - pthread_mutexattr_destroy(&lock_attr); - - return self; -} - --(void)performLocked:(void (^)(RXObjCRuntime* __nonnull))action { - pthread_mutex_lock(&_lock); - action(self); - pthread_mutex_unlock(&_lock); -} - -+(void)registerOptimizedObserver:(RXInterceptWithOptimizedObserver)registration encodedAs:(SEL)selector { - Method exampleEncodingMethod = class_getClassMethod(self, selector); - ALWAYS(exampleEncodingMethod != nil, @"Example encoding method is nil."); - - NSString *methodEncoding = RX_method_encoding(exampleEncodingMethod); - - if (optimizedObserversByMethodEncoding == nil) { - optimizedObserversByMethodEncoding = [NSMutableDictionary dictionary]; - } - - DLOG(@"Added optimized method: %@ (%@)", methodEncoding, NSStringFromSelector(selector)); - ALWAYS(optimizedObserversByMethodEncoding[methodEncoding] == nil, @"Optimized observer already registered") - optimizedObserversByMethodEncoding[methodEncoding] = registration; -} - -/** - This is the main entry point for observing messages sent to arbitrary objects. - */ --(IMP __nullable)ensurePrepared:(id __nonnull)target forObserving:(SEL __nonnull)selector error:(NSErrorParam)error { - Method instanceMethod = class_getInstanceMethod([target class], selector); - if (instanceMethod == nil) { - RX_THROW_ERROR([NSError errorWithDomain:RXObjCRuntimeErrorDomain - code:RXObjCRuntimeErrorSelectorNotImplemented - userInfo:nil], nil); - } - - if (selector == @selector(class) - || selector == @selector(forwardingTargetForSelector:) - || selector == @selector(methodSignatureForSelector:) - || selector == @selector(respondsToSelector:)) { - RX_THROW_ERROR([NSError errorWithDomain:RXObjCRuntimeErrorDomain - code:RXObjCRuntimeErrorObservingPerformanceSensitiveMessages - userInfo:nil], nil); - } - - // For `dealloc` message, original implementation will be swizzled. - // This is a special case because observing `dealloc` message is performed when `observeWeakly` is used. - // - // Some toll free bridged classes don't handle `object_setClass` well and cause crashes. - // - // To make `deallocating` as robust as possible, original implementation will be replaced. - if (selector == deallocSelector) { - Class __nonnull deallocSwizzingTarget = [target class]; - IMP interceptorIMPForSelector = [self interceptorImplementationForSelector:selector forClass:deallocSwizzingTarget]; - if (interceptorIMPForSelector != nil) { - return interceptorIMPForSelector; - } - - if (![self swizzleDeallocating:deallocSwizzingTarget error:error]) { - return nil; - } - - interceptorIMPForSelector = [self interceptorImplementationForSelector:selector forClass:deallocSwizzingTarget]; - if (interceptorIMPForSelector != nil) { - return interceptorIMPForSelector; - } - } - else { - Class __nullable swizzlingImplementorClass = [self prepareTargetClassForObserving:target error:error]; - if (swizzlingImplementorClass == nil) { - return nil; - } - - NSString *methodEncoding = RX_method_encoding(instanceMethod); - RXInterceptWithOptimizedObserver optimizedIntercept = optimizedObserversByMethodEncoding[methodEncoding]; - - if (!RX_method_has_supported_return_type(instanceMethod)) { - RX_THROW_ERROR([NSError errorWithDomain:RXObjCRuntimeErrorDomain - code:RXObjCRuntimeErrorObservingMessagesWithUnsupportedReturnType - userInfo:nil], nil); - } - - // optimized interception method - if (optimizedIntercept != nil) { - IMP interceptorIMPForSelector = [self interceptorImplementationForSelector:selector forClass:swizzlingImplementorClass]; - if (interceptorIMPForSelector != nil) { - return interceptorIMPForSelector; - } - - if (!optimizedIntercept(self, swizzlingImplementorClass, selector, error)) { - return nil; - } - - interceptorIMPForSelector = [self interceptorImplementationForSelector:selector forClass:swizzlingImplementorClass]; - if (interceptorIMPForSelector != nil) { - return interceptorIMPForSelector; - } - } - // default fallback to observing by forwarding messages - else { - if ([self forwardingSelector:selector forClass:swizzlingImplementorClass]) { - return RX_default_target_implementation(); - } - - if (![self observeByForwardingMessages:swizzlingImplementorClass - selector:selector - target:target - error:error]) { - return nil; - } - - if ([self forwardingSelector:selector forClass:swizzlingImplementorClass]) { - return RX_default_target_implementation(); - } - } - } - - RX_THROW_ERROR([NSError errorWithDomain:RXObjCRuntimeErrorDomain - code:RXObjCRuntimeErrorUnknown - userInfo:nil], nil); -} - --(Class __nullable)prepareTargetClassForObserving:(id __nonnull)target error:(NSErrorParam)error { - Class swizzlingClass = objc_getAssociatedObject(target, &RxSwizzlingTargetClassKey); - if (swizzlingClass != nil) { - return swizzlingClass; - } - - Class __nonnull wannaBeClass = [target class]; - /** - Core Foundation classes are usually toll free bridged. Those classes crash the program in case - `object_setClass` is performed on them. - - There is a possibility to just swizzle methods on original object, but since those won't be usual use - cases for this library, then an error will just be reported for now. - */ - BOOL isThisTollFreeFoundationClass = CFGetTypeID((CFTypeRef)target) != defaultTypeID; - - if (isThisTollFreeFoundationClass) { - RX_THROW_ERROR([NSError errorWithDomain:RXObjCRuntimeErrorDomain - code:RXObjCRuntimeErrorCantInterceptCoreFoundationTollFreeBridgedObjects - userInfo:nil], nil); - } - - /** - If the object is reporting a different class then what it's real class, that means that there is probably - already some interception mechanism in place or something weird is happening. - - Most common case when this would happen is when using KVO (`observe`) and `sentMessage`. - - This error is easily resolved by just using `sentMessage` observing before `observe`. - - The reason why other way around could create issues is because KVO will unregister it's interceptor - class and restore original class. Unfortunately that will happen no matter was there another interceptor - subclass registered in hierarchy or not. - - Failure scenario: - * KVO sets class to be `__KVO__OriginalClass` (subclass of `OriginalClass`) - * `sentMessage` sets object class to be `_RX_namespace___KVO__OriginalClass` (subclass of `__KVO__OriginalClass`) - * then unobserving with KVO will restore class to be `OriginalClass` -> failure point - - The reason why changing order of observing works is because any interception method should return - object's original real class (if that doesn't happen then it's really easy to argue that's a bug - in that other library). - - This library won't remove registered interceptor even if there aren't any observers left because - it's highly unlikely it would have any benefit in real world use cases, and it's even more - dangerous. - */ - if ([target class] != object_getClass(target)) { - BOOL isKVO = [target respondsToSelector:NSSelectorFromString(@"_isKVOA")]; - - RX_THROW_ERROR([NSError errorWithDomain:RXObjCRuntimeErrorDomain - code:RXObjCRuntimeErrorObjectMessagesAlreadyBeingIntercepted - userInfo:@{ - RXObjCRuntimeErrorIsKVOKey : @(isKVO) - }], nil); - } - - Class __nullable dynamicFakeSubclass = [self ensureHasDynamicFakeSubclass:wannaBeClass error:error]; - - if (dynamicFakeSubclass == nil) { - return nil; - } - - Class previousClass = object_setClass(target, dynamicFakeSubclass); - if (previousClass != wannaBeClass) { - THREADING_HAZARD(wannaBeClass); - RX_THROW_ERROR([NSError errorWithDomain:RXObjCRuntimeErrorDomain - code:RXObjCRuntimeErrorThreadingCollisionWithOtherInterceptionMechanism - userInfo:nil], nil); - } - - objc_setAssociatedObject(target, &RxSwizzlingTargetClassKey, dynamicFakeSubclass, OBJC_ASSOCIATION_RETAIN_NONATOMIC); - return dynamicFakeSubclass; -} - - --(BOOL)forwardingSelector:(SEL)selector forClass:(Class __nonnull)class { - return [self.forwardedSelectorsByClass[CLASS_VALUE(class)] containsObject:SEL_VALUE(selector)]; -} - --(void)registerForwardedSelector:(SEL)selector forClass:(Class __nonnull)class { - NSValue *classValue = CLASS_VALUE(class); - - NSMutableSet *forwardedSelectors = self.forwardedSelectorsByClass[classValue]; - - if (forwardedSelectors == nil) { - forwardedSelectors = [NSMutableSet set]; - self.forwardedSelectorsByClass[classValue] = forwardedSelectors; - } - - [forwardedSelectors addObject:SEL_VALUE(selector)]; -} - --(BOOL)observeByForwardingMessages:(Class __nonnull)swizzlingImplementorClass - selector:(SEL)selector - target:(id __nonnull)target - error:(NSErrorParam)error { - if (![self ensureForwardingMethodsAreSwizzled:swizzlingImplementorClass error:error]) { - return NO; - } - - ALWAYS(![self forwardingSelector:selector forClass:swizzlingImplementorClass], @"Already observing selector for class"); - -#if TRACE_RESOURCES - atomic_fetch_add(&numberOfForwardedMethods, 1); -#endif - SEL rxSelector = RX_selector(selector); - - Method instanceMethod = class_getInstanceMethod(swizzlingImplementorClass, selector); - ALWAYS(instanceMethod != nil, @"Instance method is nil"); - - const char* methodEncoding = method_getTypeEncoding(instanceMethod); - ALWAYS(methodEncoding != nil, @"Method encoding is nil."); - NSMethodSignature *methodSignature = [NSMethodSignature signatureWithObjCTypes:methodEncoding]; - ALWAYS(methodSignature != nil, @"Method signature is invalid."); - - IMP implementation = method_getImplementation(instanceMethod); - - if (implementation == nil) { - RX_THROW_ERROR([NSError errorWithDomain:RXObjCRuntimeErrorDomain - code:RXObjCRuntimeErrorSelectorNotImplemented - userInfo:nil], NO); - } - - if (!class_addMethod(swizzlingImplementorClass, rxSelector, implementation, methodEncoding)) { - RX_THROW_ERROR([NSError errorWithDomain:RXObjCRuntimeErrorDomain - code:RXObjCRuntimeErrorSavingOriginalForwardingMethodFailed - userInfo:nil], NO); - } - - if (!class_addMethod(swizzlingImplementorClass, selector, _objc_msgForward, methodEncoding)) { - if (implementation != method_setImplementation(instanceMethod, _objc_msgForward)) { - THREADING_HAZARD(swizzlingImplementorClass); - RX_THROW_ERROR([NSError errorWithDomain:RXObjCRuntimeErrorDomain - code:RXObjCRuntimeErrorReplacingMethodWithForwardingImplementation - userInfo:nil], NO); - } - } - - DLOG(@"Rx uses forwarding to observe `%@` for `%@`.", NSStringFromSelector(selector), swizzlingImplementorClass); - [self registerForwardedSelector:selector forClass:swizzlingImplementorClass]; - - return YES; -} - -/** - If object don't have some weird behavior, claims it's the same class that runtime shows, - then dynamic subclass is created (only this instance will have performance hit). - - In case something weird is detected, then original base class is being swizzled and all instances - will have somewhat reduced performance. - - This is especially handy optimization for weak KVO. Nobody will swizzle for example `NSString`, - but to know when instance of a `NSString` was deallocated, performance hit will be only felt on a - single instance of `NSString`, not all instances of `NSString`s. - */ --(Class __nullable)ensureHasDynamicFakeSubclass:(Class __nonnull)class error:(NSErrorParam)error { - Class dynamicFakeSubclass = self.dynamicSubclassByRealClass[CLASS_VALUE(class)]; - if (dynamicFakeSubclass != nil) { - return dynamicFakeSubclass; - } - - NSString *dynamicFakeSubclassName = [RX_PREFIX stringByAppendingString:NSStringFromClass(class)]; - const char *dynamicFakeSubclassNameRaw = dynamicFakeSubclassName.UTF8String; - dynamicFakeSubclass = objc_allocateClassPair(class, dynamicFakeSubclassNameRaw, 0); - ALWAYS(dynamicFakeSubclass != nil, @"Class not generated"); - - if (![self swizzleClass:dynamicFakeSubclass toActAs:class error:error]) { - return nil; - } - - objc_registerClassPair(dynamicFakeSubclass); - - [self.dynamicSubclassByRealClass setObject:dynamicFakeSubclass forKey:CLASS_VALUE(class)]; - ALWAYS(self.dynamicSubclassByRealClass[CLASS_VALUE(class)] != nil, @"Class not registered"); - - return dynamicFakeSubclass; -} - --(BOOL)ensureForwardingMethodsAreSwizzled:(Class __nonnull)class error:(NSErrorParam)error { - NSValue *classValue = CLASS_VALUE(class); - if ([self.classesThatSupportObservingByForwarding containsObject:classValue]) { - return YES; - } - - if (![self swizzleForwardInvocation:class error:error]) { return NO; } - if (![self swizzleMethodSignatureForSelector:class error:error]) { return NO; } - if (![self swizzleRespondsToSelector:class error:error]) { return NO; } - - [self.classesThatSupportObservingByForwarding addObject:classValue]; - - return YES; -} - --(void)registerInterceptedSelector:(SEL)selector implementation:(IMP)implementation forClass:(Class)class { - NSValue * __nonnull classValue = CLASS_VALUE(class); - NSValue * __nonnull selectorValue = SEL_VALUE(selector); - - NSMutableDictionary *swizzledIMPBySelectorsForClass = self.interceptorIMPbySelectorsByClass[classValue]; - - if (swizzledIMPBySelectorsForClass == nil) { - swizzledIMPBySelectorsForClass = [NSMutableDictionary dictionary]; - self.interceptorIMPbySelectorsByClass[classValue] = swizzledIMPBySelectorsForClass; - } - - swizzledIMPBySelectorsForClass[selectorValue] = IMP_VALUE(implementation); - - ALWAYS([self interceptorImplementationForSelector:selector forClass:class] != nil, @"Class should have been swizzled"); -} - --(IMP)interceptorImplementationForSelector:(SEL)selector forClass:(Class)class { - NSValue * __nonnull classValue = CLASS_VALUE(class); - NSValue * __nonnull selectorValue = SEL_VALUE(selector); - - NSMutableDictionary *swizzledIMPBySelectorForClass = self.interceptorIMPbySelectorsByClass[classValue]; - - NSValue *impValue = swizzledIMPBySelectorForClass[selectorValue]; - return impValue.pointerValue; -} - --(BOOL)ensureSwizzledSelector:(SEL __nonnull)selector - ofClass:(Class __nonnull)class - newImplementationGenerator:(IMP(^)(void))newImplementationGenerator -replacementImplementationGenerator:(IMP (^)(IMP originalImplementation))replacementImplementationGenerator - error:(NSErrorParam)error { - if ([self interceptorImplementationForSelector:selector forClass:class] != nil) { - DLOG(@"Trying to register same intercept at least once, this sounds like a possible bug"); - return YES; - } - -#if TRACE_RESOURCES - atomic_fetch_add(&numberOInterceptedMethods, 1); -#endif - - DLOG(@"Rx is swizzling `%@` for `%@`", NSStringFromSelector(selector), class); - - Method existingMethod = class_getInstanceMethod(class, selector); - ALWAYS(existingMethod != nil, @"Method doesn't exist"); - - const char *encoding = method_getTypeEncoding(existingMethod); - ALWAYS(encoding != nil, @"Encoding is nil"); - - IMP newImplementation = newImplementationGenerator(); - - if (class_addMethod(class, selector, newImplementation, encoding)) { - // new method added, job done - [self registerInterceptedSelector:selector implementation:newImplementation forClass:class]; - - return YES; - } - - imp_removeBlock(newImplementation); - - // if add fails, that means that method already exists on targetClass - Method existingMethodOnTargetClass = existingMethod; - - IMP originalImplementation = method_getImplementation(existingMethodOnTargetClass); - ALWAYS(originalImplementation != nil, @"Method must exist."); - IMP implementationReplacementIMP = replacementImplementationGenerator(originalImplementation); - ALWAYS(implementationReplacementIMP != nil, @"Method must exist."); - IMP originalImplementationAfterChange = method_setImplementation(existingMethodOnTargetClass, implementationReplacementIMP); - ALWAYS(originalImplementation != nil, @"Method must exist."); - - // If method replacing failed, who knows what happened, better not trying again, otherwise program can get - // corrupted. - [self registerInterceptedSelector:selector implementation:implementationReplacementIMP forClass:class]; - - // ¯\_(ツ)_/¯ - if (originalImplementationAfterChange != originalImplementation) { - THREADING_HAZARD(class); - return NO; - } - - return YES; -} - -@end - -#if TRACE_RESOURCES - -NSInteger RX_number_of_dynamic_subclasses() { - __block NSInteger count = 0; - [[RXObjCRuntime instance] performLocked:^(RXObjCRuntime * __nonnull self) { - count = self.dynamicSubclassByRealClass.count; - }]; - - return count; -} - -NSInteger RX_number_of_forwarding_enabled_classes() { - __block NSInteger count = 0; - [[RXObjCRuntime instance] performLocked:^(RXObjCRuntime * __nonnull self) { - count = self.classesThatSupportObservingByForwarding.count; - }]; - - return count; -} - -NSInteger RX_number_of_intercepting_classes() { - __block NSInteger count = 0; - [[RXObjCRuntime instance] performLocked:^(RXObjCRuntime * __nonnull self) { - count = self.interceptorIMPbySelectorsByClass.count; - }]; - - return count; -} - -NSInteger RX_number_of_forwarded_methods() { - return numberOfForwardedMethods; -} - -NSInteger RX_number_of_swizzled_methods() { - return numberOInterceptedMethods; -} - -#endif - -#endif diff --git a/Pods/RxCocoa/RxCocoa/Runtime/include/RxCocoaRuntime.h b/Pods/RxCocoa/RxCocoa/Runtime/include/RxCocoaRuntime.h deleted file mode 100644 index 8cf762e..0000000 --- a/Pods/RxCocoa/RxCocoa/Runtime/include/RxCocoaRuntime.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// RxCocoaRuntime.h -// RxCocoa -// -// Created by Krunoslav Zaher on 2/21/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#import -#import "_RX.h" -#import "_RXDelegateProxy.h" -#import "_RXKVOObserver.h" -#import "_RXObjCRuntime.h" - -//! Project version number for RxCocoa. -FOUNDATION_EXPORT double RxCocoaVersionNumber; - -//! Project version string for RxCocoa. -FOUNDATION_EXPORT const unsigned char RxCocoaVersionString[]; diff --git a/Pods/RxCocoa/RxCocoa/Runtime/include/_RX.h b/Pods/RxCocoa/RxCocoa/Runtime/include/_RX.h deleted file mode 100644 index b868ac9..0000000 --- a/Pods/RxCocoa/RxCocoa/Runtime/include/_RX.h +++ /dev/null @@ -1,93 +0,0 @@ -// -// _RX.h -// RxCocoa -// -// Created by Krunoslav Zaher on 7/12/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#import -#import - -/** - ################################################################################ - This file is part of RX private API - ################################################################################ - */ - -#if TRACE_RESOURCES >= 2 -# define DLOG(...) NSLog(__VA_ARGS__) -#else -# define DLOG(...) -#endif - -#if DEBUG -# define ABORT_IN_DEBUG abort(); -#else -# define ABORT_IN_DEBUG -#endif - - -#define SEL_VALUE(x) [NSValue valueWithPointer:(x)] -#define CLASS_VALUE(x) [NSValue valueWithNonretainedObject:(x)] -#define IMP_VALUE(x) [NSValue valueWithPointer:(x)] - -/** - Checks that the local `error` instance exists before assigning it's value by reference. - This macro exists to work around static analysis warnings — `NSError` is always assumed to be `nullable`, even though we explicitly define the method parameter as `nonnull`. See http://www.openradar.me/21766176 for more details. - */ -#define RX_THROW_ERROR(errorValue, returnValue) if (error != nil) { *error = (errorValue); } return (returnValue); - -#define RX_CAT2(_1, _2) _RX_CAT2(_1, _2) -#define _RX_CAT2(_1, _2) _1 ## _2 - -#define RX_ELEMENT_AT(n, ...) RX_CAT2(_RX_ELEMENT_AT_, n)(__VA_ARGS__) -#define _RX_ELEMENT_AT_0(x, ...) x -#define _RX_ELEMENT_AT_1(_0, x, ...) x -#define _RX_ELEMENT_AT_2(_0, _1, x, ...) x -#define _RX_ELEMENT_AT_3(_0, _1, _2, x, ...) x -#define _RX_ELEMENT_AT_4(_0, _1, _2, _3, x, ...) x -#define _RX_ELEMENT_AT_5(_0, _1, _2, _3, _4, x, ...) x -#define _RX_ELEMENT_AT_6(_0, _1, _2, _3, _4, _5, x, ...) x - -#define RX_COUNT(...) RX_ELEMENT_AT(6, ## __VA_ARGS__, 6, 5, 4, 3, 2, 1, 0) -#define RX_EMPTY(...) RX_ELEMENT_AT(6, ## __VA_ARGS__, 0, 0, 0, 0, 0, 0, 1) - -/** - #define SUM(context, index, head, tail) head + tail - #define MAP(context, index, element) (context)[index] * (element) - - RX_FOR(numbers, SUM, MAP, b0, b1, b2); - - (numbers)[0] * (b0) + (numbers)[1] * (b1) + (numbers[2]) * (b2) - */ - -#define RX_FOREACH(context, concat, map, ...) RX_FOR_MAX(RX_COUNT(__VA_ARGS__), _RX_FOREACH_CONCAT, _RX_FOREACH_MAP, context, concat, map, __VA_ARGS__) -#define _RX_FOREACH_CONCAT(index, head, tail, context, concat, map, ...) concat(context, index, head, tail) -#define _RX_FOREACH_MAP(index, context, concat, map, ...) map(context, index, RX_ELEMENT_AT(index, __VA_ARGS__)) - -/** - #define MAP(context, index, item) (context)[index] * (item) - - RX_FOR_COMMA(numbers, MAP, b0, b1); - - ,(numbers)[0] * b0, (numbers)[1] * b1 - */ -#define RX_FOREACH_COMMA(context, map, ...) RX_CAT2(_RX_FOREACH_COMMA_EMPTY_, RX_EMPTY(__VA_ARGS__))(context, map, ## __VA_ARGS__) -#define _RX_FOREACH_COMMA_EMPTY_1(context, map, ...) -#define _RX_FOREACH_COMMA_EMPTY_0(context, map, ...) , RX_FOR_MAX(RX_COUNT(__VA_ARGS__), _RX_FOREACH_COMMA_CONCAT, _RX_FOREACH_COMMA_MAP, context, map, __VA_ARGS__) -#define _RX_FOREACH_COMMA_CONCAT(index, head, tail, context, map, ...) head, tail -#define _RX_FOREACH_COMMA_MAP(index, context, map, ...) map(context, index, RX_ELEMENT_AT(index, __VA_ARGS__)) - -// rx for - -#define RX_FOR_MAX(max, concat, map, ...) RX_CAT2(RX_FOR_, max)(concat, map, ## __VA_ARGS__) - -#define RX_FOR_0(concat, map, ...) -#define RX_FOR_1(concat, map, ...) map(0, __VA_ARGS__) -#define RX_FOR_2(concat, map, ...) concat(1, RX_FOR_1(concat, map, ## __VA_ARGS__), map(1, __VA_ARGS__), __VA_ARGS__) -#define RX_FOR_3(concat, map, ...) concat(2, RX_FOR_2(concat, map, ## __VA_ARGS__), map(2, __VA_ARGS__), __VA_ARGS__) -#define RX_FOR_4(concat, map, ...) concat(3, RX_FOR_3(concat, map, ## __VA_ARGS__), map(3, __VA_ARGS__), __VA_ARGS__) -#define RX_FOR_5(concat, map, ...) concat(4, RX_FOR_4(concat, map, ## __VA_ARGS__), map(4, __VA_ARGS__), __VA_ARGS__) -#define RX_FOR_6(concat, map, ...) concat(5, RX_FOR_5(concat, map, ## __VA_ARGS__), map(5, __VA_ARGS__), __VA_ARGS__) - diff --git a/Pods/RxCocoa/RxCocoa/Runtime/include/_RXDelegateProxy.h b/Pods/RxCocoa/RxCocoa/Runtime/include/_RXDelegateProxy.h deleted file mode 100644 index e1cc207..0000000 --- a/Pods/RxCocoa/RxCocoa/Runtime/include/_RXDelegateProxy.h +++ /dev/null @@ -1,27 +0,0 @@ -// -// _RXDelegateProxy.h -// RxCocoa -// -// Created by Krunoslav Zaher on 7/4/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface _RXDelegateProxy : NSObject - -@property (nonatomic, weak, readonly) id _forwardToDelegate; - --(void)_setForwardToDelegate:(id __nullable)forwardToDelegate retainDelegate:(BOOL)retainDelegate NS_SWIFT_NAME(_setForwardToDelegate(_:retainDelegate:)) ; - --(BOOL)hasWiredImplementationForSelector:(SEL)selector; --(BOOL)voidDelegateMethodsContain:(SEL)selector; - --(void)_sentMessage:(SEL)selector withArguments:(NSArray*)arguments; --(void)_methodInvoked:(SEL)selector withArguments:(NSArray*)arguments; - -@end - -NS_ASSUME_NONNULL_END diff --git a/Pods/RxCocoa/RxCocoa/Runtime/include/_RXKVOObserver.h b/Pods/RxCocoa/RxCocoa/Runtime/include/_RXKVOObserver.h deleted file mode 100644 index adcfd0a..0000000 --- a/Pods/RxCocoa/RxCocoa/Runtime/include/_RXKVOObserver.h +++ /dev/null @@ -1,28 +0,0 @@ -// -// _RXKVOObserver.h -// RxCocoa -// -// Created by Krunoslav Zaher on 7/11/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#import - -/** - ################################################################################ - This file is part of RX private API - ################################################################################ - */ - -// Exists because if written in Swift, reading unowned is disabled during dealloc process -@interface _RXKVOObserver : NSObject - --(instancetype)initWithTarget:(id)target - retainTarget:(BOOL)retainTarget - keyPath:(NSString*)keyPath - options:(NSKeyValueObservingOptions)options - callback:(void (^)(id))callback; - --(void)dispose; - -@end diff --git a/Pods/RxCocoa/RxCocoa/Runtime/include/_RXObjCRuntime.h b/Pods/RxCocoa/RxCocoa/Runtime/include/_RXObjCRuntime.h deleted file mode 100644 index bc6a76a..0000000 --- a/Pods/RxCocoa/RxCocoa/Runtime/include/_RXObjCRuntime.h +++ /dev/null @@ -1,102 +0,0 @@ -// -// _RXObjCRuntime.h -// RxCocoa -// -// Created by Krunoslav Zaher on 7/11/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#import - -#if !DISABLE_SWIZZLING - -/** - ################################################################################ - This file is part of RX private API - ################################################################################ - */ - -/** - This flag controls `RELEASE` configuration behavior in case race was detecting while modifying - ObjC runtime. - - In case this value is set to `YES`, after runtime race is detected, `abort()` will be called. - Otherwise, only error will be reported using normal error reporting mechanism. - - In `DEBUG` mode `abort` will be always called in case race is detected. - - Races can't happen in case this is the only library modifying ObjC runtime, but in case there are multiple libraries - changing ObjC runtime, race conditions can occur because there is no way to synchronize multiple libraries unaware of - each other. - - To help remedy this situation this library will use `synchronized` on target object and it's meta-class, but - there aren't any guarantees of how other libraries will behave. - - Default value is `NO`. - - */ -extern BOOL RXAbortOnThreadingHazard; - -/// Error domain for RXObjCRuntime. -extern NSString * __nonnull const RXObjCRuntimeErrorDomain; - -/// `userInfo` key with additional information is interceptor probably KVO. -extern NSString * __nonnull const RXObjCRuntimeErrorIsKVOKey; - -typedef NS_ENUM(NSInteger, RXObjCRuntimeError) { - RXObjCRuntimeErrorUnknown = 1, - RXObjCRuntimeErrorObjectMessagesAlreadyBeingIntercepted = 2, - RXObjCRuntimeErrorSelectorNotImplemented = 3, - RXObjCRuntimeErrorCantInterceptCoreFoundationTollFreeBridgedObjects = 4, - RXObjCRuntimeErrorThreadingCollisionWithOtherInterceptionMechanism = 5, - RXObjCRuntimeErrorSavingOriginalForwardingMethodFailed = 6, - RXObjCRuntimeErrorReplacingMethodWithForwardingImplementation = 7, - RXObjCRuntimeErrorObservingPerformanceSensitiveMessages = 8, - RXObjCRuntimeErrorObservingMessagesWithUnsupportedReturnType = 9, -}; - -/// Transforms normal selector into a selector with RX prefix. -SEL _Nonnull RX_selector(SEL _Nonnull selector); - -/// Transforms selector into a unique pointer (because of Swift conversion rules) -void * __nonnull RX_reference_from_selector(SEL __nonnull selector); - -/// Protocol that interception observers must implement. -@protocol RXMessageSentObserver - -/// In case the same selector is being intercepted for a pair of base/sub classes, -/// this property will differentiate between interceptors that need to fire. -@property (nonatomic, assign, readonly) IMP __nonnull targetImplementation; - --(void)messageSentWithArguments:(NSArray* __nonnull)arguments; --(void)methodInvokedWithArguments:(NSArray* __nonnull)arguments; - -@end - -/// Protocol that deallocating observer must implement. -@protocol RXDeallocatingObserver - -/// In case the same selector is being intercepted for a pair of base/sub classes, -/// this property will differentiate between interceptors that need to fire. -@property (nonatomic, assign, readonly) IMP __nonnull targetImplementation; - --(void)deallocating; - -@end - -/// Ensures interceptor is installed on target object. -IMP __nullable RX_ensure_observing(id __nonnull target, SEL __nonnull selector, NSError *__autoreleasing __nullable * __nullable error); - -#endif - -/// Extracts arguments for `invocation`. -NSArray * __nonnull RX_extract_arguments(NSInvocation * __nonnull invocation); - -/// Returns `YES` in case method has `void` return type. -BOOL RX_is_method_with_description_void(struct objc_method_description method); - -/// Returns `YES` in case methodSignature has `void` return type. -BOOL RX_is_method_signature_void(NSMethodSignature * __nonnull methodSignature); - -/// Default value for `RXInterceptionObserver.targetImplementation`. -IMP __nonnull RX_default_target_implementation(void); diff --git a/Pods/RxCocoa/RxCocoa/RxCocoa.h b/Pods/RxCocoa/RxCocoa/RxCocoa.h deleted file mode 100644 index 7436904..0000000 --- a/Pods/RxCocoa/RxCocoa/RxCocoa.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// RxCocoa.h -// RxCocoa -// -// Created by Krunoslav Zaher on 2/21/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#import -#import "_RX.h" -#import "_RXDelegateProxy.h" -#import "_RXKVOObserver.h" -#import "_RXObjCRuntime.h" - -//! Project version number for RxCocoa. -FOUNDATION_EXPORT double RxCocoaVersionNumber; - -//! Project version string for RxCocoa. -FOUNDATION_EXPORT const unsigned char RxCocoaVersionString[]; \ No newline at end of file diff --git a/Pods/RxCocoa/RxCocoa/RxCocoa.swift b/Pods/RxCocoa/RxCocoa/RxCocoa.swift deleted file mode 100644 index a56b708..0000000 --- a/Pods/RxCocoa/RxCocoa/RxCocoa.swift +++ /dev/null @@ -1,152 +0,0 @@ -// -// RxCocoa.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 2/21/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import class Foundation.NSNull - -import RxSwift -#if os(iOS) - import UIKit -#endif - -/// RxCocoa errors. -public enum RxCocoaError - : Swift.Error - , CustomDebugStringConvertible { - /// Unknown error has occurred. - case unknown - /// Invalid operation was attempted. - case invalidOperation(object: Any) - /// Items are not yet bound to user interface but have been requested. - case itemsNotYetBound(object: Any) - /// Invalid KVO Path. - case invalidPropertyName(object: Any, propertyName: String) - /// Invalid object on key path. - case invalidObjectOnKeyPath(object: Any, sourceObject: AnyObject, propertyName: String) - /// Error during swizzling. - case errorDuringSwizzling - /// Casting error. - case castingError(object: Any, targetType: Any.Type) -} - - -// MARK: Debug descriptions - -extension RxCocoaError { - /// A textual representation of `self`, suitable for debugging. - public var debugDescription: String { - switch self { - case .unknown: - return "Unknown error occurred." - case let .invalidOperation(object): - return "Invalid operation was attempted on `\(object)`." - case let .itemsNotYetBound(object): - return "Data source is set, but items are not yet bound to user interface for `\(object)`." - case let .invalidPropertyName(object, propertyName): - return "Object `\(object)` doesn't have a property named `\(propertyName)`." - case let .invalidObjectOnKeyPath(object, sourceObject, propertyName): - return "Unobservable object `\(object)` was observed as `\(propertyName)` of `\(sourceObject)`." - case .errorDuringSwizzling: - return "Error during swizzling." - case let .castingError(object, targetType): - return "Error casting `\(object)` to `\(targetType)`" - } - } -} - - - -// MARK: Error binding policies - -func bindingError(_ error: Swift.Error) { - let error = "Binding error: \(error)" -#if DEBUG - rxFatalError(error) -#else - print(error) -#endif -} - -/// Swift does not implement abstract methods. This method is used as a runtime check to ensure that methods which intended to be abstract (i.e., they should be implemented in subclasses) are not called directly on the superclass. -func rxAbstractMethod(message: String = "Abstract method", file: StaticString = #file, line: UInt = #line) -> Swift.Never { - rxFatalError(message, file: file, line: line) -} - -func rxFatalError(_ lastMessage: @autoclosure () -> String, file: StaticString = #file, line: UInt = #line) -> Swift.Never { - // The temptation to comment this line is great, but please don't, it's for your own good. The choice is yours. - fatalError(lastMessage(), file: file, line: line) -} - -func rxFatalErrorInDebug(_ lastMessage: @autoclosure () -> String, file: StaticString = #file, line: UInt = #line) { - #if DEBUG - fatalError(lastMessage(), file: file, line: line) - #else - print("\(file):\(line): \(lastMessage())") - #endif -} - -// MARK: casts or fatal error - -// workaround for Swift compiler bug, cheers compiler team :) -func castOptionalOrFatalError(_ value: Any?) -> T? { - if value == nil { - return nil - } - let v: T = castOrFatalError(value) - return v -} - -func castOrThrow(_ resultType: T.Type, _ object: Any) throws -> T { - guard let returnValue = object as? T else { - throw RxCocoaError.castingError(object: object, targetType: resultType) - } - - return returnValue -} - -func castOptionalOrThrow(_ resultType: T.Type, _ object: AnyObject) throws -> T? { - if NSNull().isEqual(object) { - return nil - } - - guard let returnValue = object as? T else { - throw RxCocoaError.castingError(object: object, targetType: resultType) - } - - return returnValue -} - -func castOrFatalError(_ value: AnyObject!, message: String) -> T { - let maybeResult: T? = value as? T - guard let result = maybeResult else { - rxFatalError(message) - } - - return result -} - -func castOrFatalError(_ value: Any!) -> T { - let maybeResult: T? = value as? T - guard let result = maybeResult else { - rxFatalError("Failure converting from \(String(describing: value)) to \(T.self)") - } - - return result -} - -// MARK: Error messages - -let dataSourceNotSet = "DataSource not set" -let delegateNotSet = "Delegate not set" - -// MARK: Shared with RxSwift - -func rxFatalError(_ lastMessage: String) -> Never { - // The temptation to comment this line is great, but please don't, it's for your own good. The choice is yours. - fatalError(lastMessage) -} - diff --git a/Pods/RxCocoa/RxCocoa/Traits/BehaviorRelay.swift b/Pods/RxCocoa/RxCocoa/Traits/BehaviorRelay.swift deleted file mode 100644 index 36c344b..0000000 --- a/Pods/RxCocoa/RxCocoa/Traits/BehaviorRelay.swift +++ /dev/null @@ -1,44 +0,0 @@ -// -// BehaviorRelay.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 10/7/17. -// Copyright © 2017 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -/// BehaviorRelay is a wrapper for `BehaviorSubject`. -/// -/// Unlike `BehaviorSubject` it can't terminate with error or completed. -public final class BehaviorRelay: ObservableType { - public typealias E = Element - - private let _subject: BehaviorSubject - - /// Accepts `event` and emits it to subscribers - public func accept(_ event: Element) { - self._subject.onNext(event) - } - - /// Current value of behavior subject - public var value: Element { - // this try! is ok because subject can't error out or be disposed - return try! self._subject.value() - } - - /// Initializes behavior relay with initial value. - public init(value: Element) { - self._subject = BehaviorSubject(value: value) - } - - /// Subscribes observer - public func subscribe(_ observer: O) -> Disposable where O.E == E { - return self._subject.subscribe(observer) - } - - /// - returns: Canonical interface for push style sequence - public func asObservable() -> Observable { - return self._subject.asObservable() - } -} diff --git a/Pods/RxCocoa/RxCocoa/Traits/ControlEvent.swift b/Pods/RxCocoa/RxCocoa/Traits/ControlEvent.swift deleted file mode 100644 index 04f9eb9..0000000 --- a/Pods/RxCocoa/RxCocoa/Traits/ControlEvent.swift +++ /dev/null @@ -1,69 +0,0 @@ -// -// ControlEvent.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 8/28/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -/// A protocol that extends `ControlEvent`. -public protocol ControlEventType : ObservableType { - - /// - returns: `ControlEvent` interface - func asControlEvent() -> ControlEvent -} - -/** - A trait for `Observable`/`ObservableType` that represents an event on a UI element. - - Properties: - - - it never fails, - - it doesn’t send any initial value on subscription, - - it `Complete`s the sequence when the control deallocates, - - it never errors out, and - - it delivers events on `MainScheduler.instance`. - - **The implementation of `ControlEvent` will ensure that sequence of events is being subscribed on main scheduler - (`subscribeOn(ConcurrentMainScheduler.instance)` behavior).** - - **It is the implementor’s responsibility to make sure that all other properties enumerated above are satisfied.** - - **If they aren’t, using this trait will communicate wrong properties, and could potentially break someone’s code.** - - **If the `events` observable sequence passed into thr initializer doesn’t satisfy all enumerated - properties, don’t use this trait.** -*/ -public struct ControlEvent : ControlEventType { - public typealias E = PropertyType - - let _events: Observable - - /// Initializes control event with a observable sequence that represents events. - /// - /// - parameter events: Observable sequence that represents events. - /// - returns: Control event created with a observable sequence of events. - public init(events: Ev) where Ev.E == E { - self._events = events.subscribeOn(ConcurrentMainScheduler.instance) - } - - /// Subscribes an observer to control events. - /// - /// - parameter observer: Observer to subscribe to events. - /// - returns: Disposable object that can be used to unsubscribe the observer from receiving control events. - public func subscribe(_ observer: O) -> Disposable where O.E == E { - return self._events.subscribe(observer) - } - - /// - returns: `Observable` interface. - public func asObservable() -> Observable { - return self._events - } - - /// - returns: `ControlEvent` interface. - public func asControlEvent() -> ControlEvent { - return self - } -} diff --git a/Pods/RxCocoa/RxCocoa/Traits/ControlProperty.swift b/Pods/RxCocoa/RxCocoa/Traits/ControlProperty.swift deleted file mode 100644 index 4de4577..0000000 --- a/Pods/RxCocoa/RxCocoa/Traits/ControlProperty.swift +++ /dev/null @@ -1,119 +0,0 @@ -// -// ControlProperty.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 8/28/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -/// Protocol that enables extension of `ControlProperty`. -public protocol ControlPropertyType : ObservableType, ObserverType { - - /// - returns: `ControlProperty` interface - func asControlProperty() -> ControlProperty -} - -/** - Trait for `Observable`/`ObservableType` that represents property of UI element. - - Sequence of values only represents initial control value and user initiated value changes. - Programmatic value changes won't be reported. - - It's properties are: - - - it never fails - - `shareReplay(1)` behavior - - it's stateful, upon subscription (calling subscribe) last element is immediately replayed if it was produced - - it will `Complete` sequence on control being deallocated - - it never errors out - - it delivers events on `MainScheduler.instance` - - **The implementation of `ControlProperty` will ensure that sequence of values is being subscribed on main scheduler - (`subscribeOn(ConcurrentMainScheduler.instance)` behavior).** - - **It is implementor's responsibility to make sure that that all other properties enumerated above are satisfied.** - - **If they aren't, then using this trait communicates wrong properties and could potentially break someone's code.** - - **In case `values` observable sequence that is being passed into initializer doesn't satisfy all enumerated - properties, please don't use this trait.** -*/ -public struct ControlProperty : ControlPropertyType { - public typealias E = PropertyType - - let _values: Observable - let _valueSink: AnyObserver - - /// Initializes control property with a observable sequence that represents property values and observer that enables - /// binding values to property. - /// - /// - parameter values: Observable sequence that represents property values. - /// - parameter valueSink: Observer that enables binding values to control property. - /// - returns: Control property created with a observable sequence of values and an observer that enables binding values - /// to property. - public init(values: V, valueSink: S) where E == V.E, E == S.E { - self._values = values.subscribeOn(ConcurrentMainScheduler.instance) - self._valueSink = valueSink.asObserver() - } - - /// Subscribes an observer to control property values. - /// - /// - parameter observer: Observer to subscribe to property values. - /// - returns: Disposable object that can be used to unsubscribe the observer from receiving control property values. - public func subscribe(_ observer: O) -> Disposable where O.E == E { - return self._values.subscribe(observer) - } - - /// `ControlEvent` of user initiated value changes. Every time user updates control value change event - /// will be emitted from `changed` event. - /// - /// Programmatic changes to control value won't be reported. - /// - /// It contains all control property values except for first one. - /// - /// The name only implies that sequence element will be generated once user changes a value and not that - /// adjacent sequence values need to be different (e.g. because of interaction between programmatic and user updates, - /// or for any other reason). - public var changed: ControlEvent { - return ControlEvent(events: self._values.skip(1)) - } - - /// - returns: `Observable` interface. - public func asObservable() -> Observable { - return self._values - } - - /// - returns: `ControlProperty` interface. - public func asControlProperty() -> ControlProperty { - return self - } - - /// Binds event to user interface. - /// - /// - In case next element is received, it is being set to control value. - /// - In case error is received, DEBUG buids raise fatal error, RELEASE builds log event to standard output. - /// - In case sequence completes, nothing happens. - public func on(_ event: Event) { - switch event { - case .error(let error): - bindingError(error) - case .next: - self._valueSink.on(event) - case .completed: - self._valueSink.on(event) - } - } -} - -extension ControlPropertyType where E == String? { - /// Transforms control property of type `String?` into control property of type `String`. - public var orEmpty: ControlProperty { - let original: ControlProperty = self.asControlProperty() - - let values: Observable = original._values.map { $0 ?? "" } - let valueSink: AnyObserver = original._valueSink.mapObserver { $0 } - return ControlProperty(values: values, valueSink: valueSink) - } -} diff --git a/Pods/RxCocoa/RxCocoa/Traits/Driver/BehaviorRelay+Driver.swift b/Pods/RxCocoa/RxCocoa/Traits/Driver/BehaviorRelay+Driver.swift deleted file mode 100644 index b882e40..0000000 --- a/Pods/RxCocoa/RxCocoa/Traits/Driver/BehaviorRelay+Driver.swift +++ /dev/null @@ -1,20 +0,0 @@ -// -// BehaviorRelay+Driver.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 10/7/17. -// Copyright © 2017 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -extension BehaviorRelay { - /// Converts `BehaviorRelay` to `Driver`. - /// - /// - returns: Observable sequence. - public func asDriver() -> Driver { - let source = self.asObservable() - .observeOn(DriverSharingStrategy.scheduler) - return SharedSequence(source) - } -} diff --git a/Pods/RxCocoa/RxCocoa/Traits/Driver/ControlEvent+Driver.swift b/Pods/RxCocoa/RxCocoa/Traits/Driver/ControlEvent+Driver.swift deleted file mode 100644 index 40d7e09..0000000 --- a/Pods/RxCocoa/RxCocoa/Traits/Driver/ControlEvent+Driver.swift +++ /dev/null @@ -1,24 +0,0 @@ -// -// ControlEvent+Driver.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 9/19/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -extension ControlEvent { - /// Converts `ControlEvent` to `Driver` trait. - /// - /// `ControlEvent` already can't fail, so no special case needs to be handled. - public func asDriver() -> Driver { - return self.asDriver { _ -> Driver in - #if DEBUG - rxFatalError("Somehow driver received error from a source that shouldn't fail.") - #else - return Driver.empty() - #endif - } - } -} diff --git a/Pods/RxCocoa/RxCocoa/Traits/Driver/ControlProperty+Driver.swift b/Pods/RxCocoa/RxCocoa/Traits/Driver/ControlProperty+Driver.swift deleted file mode 100644 index 61a3357..0000000 --- a/Pods/RxCocoa/RxCocoa/Traits/Driver/ControlProperty+Driver.swift +++ /dev/null @@ -1,24 +0,0 @@ -// -// ControlProperty+Driver.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 9/19/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -extension ControlProperty { - /// Converts `ControlProperty` to `Driver` trait. - /// - /// `ControlProperty` already can't fail, so no special case needs to be handled. - public func asDriver() -> Driver { - return self.asDriver { _ -> Driver in - #if DEBUG - rxFatalError("Somehow driver received error from a source that shouldn't fail.") - #else - return Driver.empty() - #endif - } - } -} diff --git a/Pods/RxCocoa/RxCocoa/Traits/Driver/Driver+Subscription.swift b/Pods/RxCocoa/RxCocoa/Traits/Driver/Driver+Subscription.swift deleted file mode 100644 index fc198c4..0000000 --- a/Pods/RxCocoa/RxCocoa/Traits/Driver/Driver+Subscription.swift +++ /dev/null @@ -1,121 +0,0 @@ -// -// Driver+Subscription.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 9/19/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -private let errorMessage = "`drive*` family of methods can be only called from `MainThread`.\n" + -"This is required to ensure that the last replayed `Driver` element is delivered on `MainThread`.\n" - -extension SharedSequenceConvertibleType where SharingStrategy == DriverSharingStrategy { - /** - Creates new subscription and sends elements to observer. - This method can be only called from `MainThread`. - - In this form it's equivalent to `subscribe` method, but it communicates intent better. - - - parameter observer: Observer that receives events. - - returns: Disposable object that can be used to unsubscribe the observer from the subject. - */ - public func drive(_ observer: O) -> Disposable where O.E == E { - MainScheduler.ensureRunningOnMainThread(errorMessage: errorMessage) - return self.asSharedSequence().asObservable().subscribe(observer) - } - - /** - Creates new subscription and sends elements to observer. - This method can be only called from `MainThread`. - - In this form it's equivalent to `subscribe` method, but it communicates intent better. - - - parameter observer: Observer that receives events. - - returns: Disposable object that can be used to unsubscribe the observer from the subject. - */ - public func drive(_ observer: O) -> Disposable where O.E == E? { - MainScheduler.ensureRunningOnMainThread(errorMessage: errorMessage) - return self.asSharedSequence().asObservable().map { $0 as E? }.subscribe(observer) - } - - /** - Creates new subscription and sends elements to `BehaviorRelay`. - This method can be only called from `MainThread`. - - - parameter relay: Target relay for sequence elements. - - returns: Disposable object that can be used to unsubscribe the observer from the relay. - */ - public func drive(_ relay: BehaviorRelay) -> Disposable { - MainScheduler.ensureRunningOnMainThread(errorMessage: errorMessage) - return self.drive(onNext: { e in - relay.accept(e) - }) - } - - /** - Creates new subscription and sends elements to `BehaviorRelay`. - This method can be only called from `MainThread`. - - - parameter relay: Target relay for sequence elements. - - returns: Disposable object that can be used to unsubscribe the observer from the relay. - */ - public func drive(_ relay: BehaviorRelay) -> Disposable { - MainScheduler.ensureRunningOnMainThread(errorMessage: errorMessage) - return self.drive(onNext: { e in - relay.accept(e) - }) - } - - /** - Subscribes to observable sequence using custom binder function. - This method can be only called from `MainThread`. - - - parameter with: Function used to bind elements from `self`. - - returns: Object representing subscription. - */ - public func drive(_ transformation: (Observable) -> R) -> R { - MainScheduler.ensureRunningOnMainThread(errorMessage: errorMessage) - return transformation(self.asObservable()) - } - - /** - Subscribes to observable sequence using custom binder function and final parameter passed to binder function - after `self` is passed. - - public func drive(with: Self -> R1 -> R2, curriedArgument: R1) -> R2 { - return with(self)(curriedArgument) - } - - This method can be only called from `MainThread`. - - - parameter with: Function used to bind elements from `self`. - - parameter curriedArgument: Final argument passed to `binder` to finish binding process. - - returns: Object representing subscription. - */ - public func drive(_ with: (Observable) -> (R1) -> R2, curriedArgument: R1) -> R2 { - MainScheduler.ensureRunningOnMainThread(errorMessage: errorMessage) - return with(self.asObservable())(curriedArgument) - } - - /** - Subscribes an element handler, a completion handler and disposed handler to an observable sequence. - This method can be only called from `MainThread`. - - Error callback is not exposed because `Driver` can't error out. - - - parameter onNext: Action to invoke for each element in the observable sequence. - - parameter onCompleted: Action to invoke upon graceful termination of the observable sequence. - gracefully completed, errored, or if the generation is canceled by disposing subscription) - - parameter onDisposed: Action to invoke upon any type of termination of sequence (if the sequence has - gracefully completed, errored, or if the generation is canceled by disposing subscription) - - returns: Subscription object used to unsubscribe from the observable sequence. - */ - public func drive(onNext: ((E) -> Void)? = nil, onCompleted: (() -> Void)? = nil, onDisposed: (() -> Void)? = nil) -> Disposable { - MainScheduler.ensureRunningOnMainThread(errorMessage: errorMessage) - return self.asObservable().subscribe(onNext: onNext, onCompleted: onCompleted, onDisposed: onDisposed) - } -} - - diff --git a/Pods/RxCocoa/RxCocoa/Traits/Driver/Driver.swift b/Pods/RxCocoa/RxCocoa/Traits/Driver/Driver.swift deleted file mode 100644 index 1f42277..0000000 --- a/Pods/RxCocoa/RxCocoa/Traits/Driver/Driver.swift +++ /dev/null @@ -1,53 +0,0 @@ -// -// Driver.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 9/26/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -/** - Trait that represents observable sequence with following properties: - - - it never fails - - it delivers events on `MainScheduler.instance` - - `share(replay: 1, scope: .whileConnected)` sharing strategy - - Additional explanation: - - all observers share sequence computation resources - - it's stateful, upon subscription (calling subscribe) last element is immediately replayed if it was produced - - computation of elements is reference counted with respect to the number of observers - - if there are no subscribers, it will release sequence computation resources - - In case trait that models event bus is required, please check `Signal`. - - `Driver` can be considered a builder pattern for observable sequences that drive the application. - - If observable sequence has produced at least one element, after new subscription is made last produced element will be - immediately replayed on the same thread on which the subscription was made. - - When using `drive*`, `subscribe*` and `bind*` family of methods, they should always be called from main thread. - - If `drive*`, `subscribe*` and `bind*` are called from background thread, it is possible that initial replay - will happen on background thread, and subsequent events will arrive on main thread. - - To find out more about traits and how to use them, please visit `Documentation/Traits.md`. - */ -public typealias Driver = SharedSequence - -public struct DriverSharingStrategy: SharingStrategyProtocol { - public static var scheduler: SchedulerType { return SharingScheduler.make() } - public static func share(_ source: Observable) -> Observable { - return source.share(replay: 1, scope: .whileConnected) - } -} - -extension SharedSequenceConvertibleType where SharingStrategy == DriverSharingStrategy { - /// Adds `asDriver` to `SharingSequence` with `DriverSharingStrategy`. - public func asDriver() -> Driver { - return self.asSharedSequence() - } -} - diff --git a/Pods/RxCocoa/RxCocoa/Traits/Driver/ObservableConvertibleType+Driver.swift b/Pods/RxCocoa/RxCocoa/Traits/Driver/ObservableConvertibleType+Driver.swift deleted file mode 100644 index ac62190..0000000 --- a/Pods/RxCocoa/RxCocoa/Traits/Driver/ObservableConvertibleType+Driver.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// ObservableConvertibleType+Driver.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 9/19/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -extension ObservableConvertibleType { - /** - Converts observable sequence to `Driver` trait. - - - parameter onErrorJustReturn: Element to return in case of error and after that complete the sequence. - - returns: Driver trait. - */ - public func asDriver(onErrorJustReturn: E) -> Driver { - let source = self - .asObservable() - .observeOn(DriverSharingStrategy.scheduler) - .catchErrorJustReturn(onErrorJustReturn) - return Driver(source) - } - - /** - Converts observable sequence to `Driver` trait. - - - parameter onErrorDriveWith: Driver that continues to drive the sequence in case of error. - - returns: Driver trait. - */ - public func asDriver(onErrorDriveWith: Driver) -> Driver { - let source = self - .asObservable() - .observeOn(DriverSharingStrategy.scheduler) - .catchError { _ in - onErrorDriveWith.asObservable() - } - return Driver(source) - } - - /** - Converts observable sequence to `Driver` trait. - - - parameter onErrorRecover: Calculates driver that continues to drive the sequence in case of error. - - returns: Driver trait. - */ - public func asDriver(onErrorRecover: @escaping (_ error: Swift.Error) -> Driver) -> Driver { - let source = self - .asObservable() - .observeOn(DriverSharingStrategy.scheduler) - .catchError { error in - onErrorRecover(error).asObservable() - } - return Driver(source) - } -} diff --git a/Pods/RxCocoa/RxCocoa/Traits/PublishRelay.swift b/Pods/RxCocoa/RxCocoa/Traits/PublishRelay.swift deleted file mode 100644 index ab30efa..0000000 --- a/Pods/RxCocoa/RxCocoa/Traits/PublishRelay.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// PublishRelay.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 3/28/15. -// Copyright © 2017 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -/// PublishRelay is a wrapper for `PublishSubject`. -/// -/// Unlike `PublishSubject` it can't terminate with error or completed. -public final class PublishRelay: ObservableType { - public typealias E = Element - - private let _subject: PublishSubject - - // Accepts `event` and emits it to subscribers - public func accept(_ event: Element) { - self._subject.onNext(event) - } - - /// Initializes with internal empty subject. - public init() { - self._subject = PublishSubject() - } - - /// Subscribes observer - public func subscribe(_ observer: O) -> Disposable where O.E == E { - return self._subject.subscribe(observer) - } - - /// - returns: Canonical interface for push style sequence - public func asObservable() -> Observable { - return self._subject.asObservable() - } -} diff --git a/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/ObservableConvertibleType+SharedSequence.swift b/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/ObservableConvertibleType+SharedSequence.swift deleted file mode 100644 index dac504b..0000000 --- a/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/ObservableConvertibleType+SharedSequence.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// ObservableConvertibleType+SharedSequence.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 11/1/17. -// Copyright © 2017 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -extension ObservableConvertibleType { - /** - Converts anything convertible to `Observable` to `SharedSequence` unit. - - - parameter onErrorJustReturn: Element to return in case of error and after that complete the sequence. - - returns: Driving observable sequence. - */ - public func asSharedSequence(sharingStrategy: S.Type = S.self, onErrorJustReturn: E) -> SharedSequence { - let source = self - .asObservable() - .observeOn(S.scheduler) - .catchErrorJustReturn(onErrorJustReturn) - return SharedSequence(source) - } - - /** - Converts anything convertible to `Observable` to `SharedSequence` unit. - - - parameter onErrorDriveWith: SharedSequence that provides elements of the sequence in case of error. - - returns: Driving observable sequence. - */ - public func asSharedSequence(sharingStrategy: S.Type = S.self, onErrorDriveWith: SharedSequence) -> SharedSequence { - let source = self - .asObservable() - .observeOn(S.scheduler) - .catchError { _ in - onErrorDriveWith.asObservable() - } - return SharedSequence(source) - } - - /** - Converts anything convertible to `Observable` to `SharedSequence` unit. - - - parameter onErrorRecover: Calculates driver that continues to drive the sequence in case of error. - - returns: Driving observable sequence. - */ - public func asSharedSequence(sharingStrategy: S.Type = S.self, onErrorRecover: @escaping (_ error: Swift.Error) -> SharedSequence) -> SharedSequence { - let source = self - .asObservable() - .observeOn(S.scheduler) - .catchError { error in - onErrorRecover(error).asObservable() - } - return SharedSequence(source) - } -} diff --git a/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SchedulerType+SharedSequence.swift b/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SchedulerType+SharedSequence.swift deleted file mode 100644 index 4ab1bb9..0000000 --- a/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SchedulerType+SharedSequence.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// SchedulerType+SharedSequence.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 8/27/17. -// Copyright © 2017 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -public enum SharingScheduler { - /// Default scheduler used in SharedSequence based traits. - public private(set) static var make: () -> SchedulerType = { MainScheduler() } - - /** - This method can be used in unit tests to ensure that built in shared sequences are using mock schedulers instead - of main schedulers. - - **This shouldn't be used in normal release builds.** - */ - static public func mock(scheduler: SchedulerType, action: () -> Void) { - return mock(makeScheduler: { scheduler }, action: action) - } - - /** - This method can be used in unit tests to ensure that built in shared sequences are using mock schedulers instead - of main schedulers. - - **This shouldn't be used in normal release builds.** - */ - static public func mock(makeScheduler: @escaping () -> SchedulerType, action: () -> Void) { - let originalMake = make - make = makeScheduler - - action() - - // If you remove this line , compiler buggy optimizations will change behavior of this code - _forceCompilerToStopDoingInsaneOptimizationsThatBreakCode(makeScheduler) - // Scary, I know - - make = originalMake - } -} - -#if os(Linux) - import Glibc -#else - import func Foundation.arc4random -#endif - -func _forceCompilerToStopDoingInsaneOptimizationsThatBreakCode(_ scheduler: () -> SchedulerType) { - let a: Int32 = 1 -#if os(Linux) - let b = 314 + Int32(Glibc.random() & 1) -#else - let b = 314 + Int32(arc4random() & 1) -#endif - if a == b { - print(scheduler()) - } -} diff --git a/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SharedSequence+Operators+arity.swift b/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SharedSequence+Operators+arity.swift deleted file mode 100644 index 980d9d3..0000000 --- a/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SharedSequence+Operators+arity.swift +++ /dev/null @@ -1,656 +0,0 @@ -// This file is autogenerated. Take a look at `Preprocessor` target in RxSwift project -// -// SharedSequence+Operators+arity.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 10/14/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - - - -// 2 - -extension SharedSequence { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences have produced an element at a corresponding index. - - - parameter resultSelector: Function to invoke for each series of elements at corresponding indexes in the sources. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func zip - (_ source1: O1, _ source2: O2, resultSelector: @escaping (O1.E, O2.E) throws -> E) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy { - let source = Observable.zip( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), - resultSelector: resultSelector - ) - - return SharedSequence(source) - } -} - -extension SharedSequenceConvertibleType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of element tuples whenever all of the observable sequences have produced an element at a corresponding index. - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func zip - (_ source1: O1, _ source2: O2) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy { - let source = Observable.zip( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable() - ) - - return SharedSequence(source) - } -} - -extension SharedSequence { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. - - - parameter resultSelector: Function to invoke whenever any of the sources produces an element. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, resultSelector: @escaping (O1.E, O2.E) throws -> E) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy { - let source = Observable.combineLatest( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), - resultSelector: resultSelector - ) - - return SharedSequence(source) - } -} - -extension SharedSequenceConvertibleType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of element tuples whenever any of the observable sequences produces an element. - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy { - let source = Observable.combineLatest( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable() - ) - - return SharedSequence(source) - } -} - - - -// 3 - -extension SharedSequence { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences have produced an element at a corresponding index. - - - parameter resultSelector: Function to invoke for each series of elements at corresponding indexes in the sources. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3, resultSelector: @escaping (O1.E, O2.E, O3.E) throws -> E) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy { - let source = Observable.zip( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable(), - resultSelector: resultSelector - ) - - return SharedSequence(source) - } -} - -extension SharedSequenceConvertibleType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of element tuples whenever all of the observable sequences have produced an element at a corresponding index. - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy { - let source = Observable.zip( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable() - ) - - return SharedSequence(source) - } -} - -extension SharedSequence { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. - - - parameter resultSelector: Function to invoke whenever any of the sources produces an element. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3, resultSelector: @escaping (O1.E, O2.E, O3.E) throws -> E) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy { - let source = Observable.combineLatest( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable(), - resultSelector: resultSelector - ) - - return SharedSequence(source) - } -} - -extension SharedSequenceConvertibleType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of element tuples whenever any of the observable sequences produces an element. - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy { - let source = Observable.combineLatest( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable() - ) - - return SharedSequence(source) - } -} - - - -// 4 - -extension SharedSequence { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences have produced an element at a corresponding index. - - - parameter resultSelector: Function to invoke for each series of elements at corresponding indexes in the sources. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, resultSelector: @escaping (O1.E, O2.E, O3.E, O4.E) throws -> E) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy, - SharingStrategy == O4.SharingStrategy { - let source = Observable.zip( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable(), source4.asSharedSequence().asObservable(), - resultSelector: resultSelector - ) - - return SharedSequence(source) - } -} - -extension SharedSequenceConvertibleType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of element tuples whenever all of the observable sequences have produced an element at a corresponding index. - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy, - SharingStrategy == O4.SharingStrategy { - let source = Observable.zip( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable(), source4.asSharedSequence().asObservable() - ) - - return SharedSequence(source) - } -} - -extension SharedSequence { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. - - - parameter resultSelector: Function to invoke whenever any of the sources produces an element. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, resultSelector: @escaping (O1.E, O2.E, O3.E, O4.E) throws -> E) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy, - SharingStrategy == O4.SharingStrategy { - let source = Observable.combineLatest( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable(), source4.asSharedSequence().asObservable(), - resultSelector: resultSelector - ) - - return SharedSequence(source) - } -} - -extension SharedSequenceConvertibleType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of element tuples whenever any of the observable sequences produces an element. - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy, - SharingStrategy == O4.SharingStrategy { - let source = Observable.combineLatest( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable(), source4.asSharedSequence().asObservable() - ) - - return SharedSequence(source) - } -} - - - -// 5 - -extension SharedSequence { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences have produced an element at a corresponding index. - - - parameter resultSelector: Function to invoke for each series of elements at corresponding indexes in the sources. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, resultSelector: @escaping (O1.E, O2.E, O3.E, O4.E, O5.E) throws -> E) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy, - SharingStrategy == O4.SharingStrategy, - SharingStrategy == O5.SharingStrategy { - let source = Observable.zip( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable(), source4.asSharedSequence().asObservable(), source5.asSharedSequence().asObservable(), - resultSelector: resultSelector - ) - - return SharedSequence(source) - } -} - -extension SharedSequenceConvertibleType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of element tuples whenever all of the observable sequences have produced an element at a corresponding index. - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy, - SharingStrategy == O4.SharingStrategy, - SharingStrategy == O5.SharingStrategy { - let source = Observable.zip( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable(), source4.asSharedSequence().asObservable(), source5.asSharedSequence().asObservable() - ) - - return SharedSequence(source) - } -} - -extension SharedSequence { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. - - - parameter resultSelector: Function to invoke whenever any of the sources produces an element. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, resultSelector: @escaping (O1.E, O2.E, O3.E, O4.E, O5.E) throws -> E) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy, - SharingStrategy == O4.SharingStrategy, - SharingStrategy == O5.SharingStrategy { - let source = Observable.combineLatest( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable(), source4.asSharedSequence().asObservable(), source5.asSharedSequence().asObservable(), - resultSelector: resultSelector - ) - - return SharedSequence(source) - } -} - -extension SharedSequenceConvertibleType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of element tuples whenever any of the observable sequences produces an element. - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy, - SharingStrategy == O4.SharingStrategy, - SharingStrategy == O5.SharingStrategy { - let source = Observable.combineLatest( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable(), source4.asSharedSequence().asObservable(), source5.asSharedSequence().asObservable() - ) - - return SharedSequence(source) - } -} - - - -// 6 - -extension SharedSequence { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences have produced an element at a corresponding index. - - - parameter resultSelector: Function to invoke for each series of elements at corresponding indexes in the sources. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6, resultSelector: @escaping (O1.E, O2.E, O3.E, O4.E, O5.E, O6.E) throws -> E) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy, - SharingStrategy == O4.SharingStrategy, - SharingStrategy == O5.SharingStrategy, - SharingStrategy == O6.SharingStrategy { - let source = Observable.zip( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable(), source4.asSharedSequence().asObservable(), source5.asSharedSequence().asObservable(), source6.asSharedSequence().asObservable(), - resultSelector: resultSelector - ) - - return SharedSequence(source) - } -} - -extension SharedSequenceConvertibleType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of element tuples whenever all of the observable sequences have produced an element at a corresponding index. - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy, - SharingStrategy == O4.SharingStrategy, - SharingStrategy == O5.SharingStrategy, - SharingStrategy == O6.SharingStrategy { - let source = Observable.zip( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable(), source4.asSharedSequence().asObservable(), source5.asSharedSequence().asObservable(), source6.asSharedSequence().asObservable() - ) - - return SharedSequence(source) - } -} - -extension SharedSequence { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. - - - parameter resultSelector: Function to invoke whenever any of the sources produces an element. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6, resultSelector: @escaping (O1.E, O2.E, O3.E, O4.E, O5.E, O6.E) throws -> E) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy, - SharingStrategy == O4.SharingStrategy, - SharingStrategy == O5.SharingStrategy, - SharingStrategy == O6.SharingStrategy { - let source = Observable.combineLatest( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable(), source4.asSharedSequence().asObservable(), source5.asSharedSequence().asObservable(), source6.asSharedSequence().asObservable(), - resultSelector: resultSelector - ) - - return SharedSequence(source) - } -} - -extension SharedSequenceConvertibleType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of element tuples whenever any of the observable sequences produces an element. - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy, - SharingStrategy == O4.SharingStrategy, - SharingStrategy == O5.SharingStrategy, - SharingStrategy == O6.SharingStrategy { - let source = Observable.combineLatest( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable(), source4.asSharedSequence().asObservable(), source5.asSharedSequence().asObservable(), source6.asSharedSequence().asObservable() - ) - - return SharedSequence(source) - } -} - - - -// 7 - -extension SharedSequence { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences have produced an element at a corresponding index. - - - parameter resultSelector: Function to invoke for each series of elements at corresponding indexes in the sources. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6, _ source7: O7, resultSelector: @escaping (O1.E, O2.E, O3.E, O4.E, O5.E, O6.E, O7.E) throws -> E) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy, - SharingStrategy == O4.SharingStrategy, - SharingStrategy == O5.SharingStrategy, - SharingStrategy == O6.SharingStrategy, - SharingStrategy == O7.SharingStrategy { - let source = Observable.zip( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable(), source4.asSharedSequence().asObservable(), source5.asSharedSequence().asObservable(), source6.asSharedSequence().asObservable(), source7.asSharedSequence().asObservable(), - resultSelector: resultSelector - ) - - return SharedSequence(source) - } -} - -extension SharedSequenceConvertibleType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of element tuples whenever all of the observable sequences have produced an element at a corresponding index. - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6, _ source7: O7) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy, - SharingStrategy == O4.SharingStrategy, - SharingStrategy == O5.SharingStrategy, - SharingStrategy == O6.SharingStrategy, - SharingStrategy == O7.SharingStrategy { - let source = Observable.zip( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable(), source4.asSharedSequence().asObservable(), source5.asSharedSequence().asObservable(), source6.asSharedSequence().asObservable(), source7.asSharedSequence().asObservable() - ) - - return SharedSequence(source) - } -} - -extension SharedSequence { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. - - - parameter resultSelector: Function to invoke whenever any of the sources produces an element. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6, _ source7: O7, resultSelector: @escaping (O1.E, O2.E, O3.E, O4.E, O5.E, O6.E, O7.E) throws -> E) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy, - SharingStrategy == O4.SharingStrategy, - SharingStrategy == O5.SharingStrategy, - SharingStrategy == O6.SharingStrategy, - SharingStrategy == O7.SharingStrategy { - let source = Observable.combineLatest( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable(), source4.asSharedSequence().asObservable(), source5.asSharedSequence().asObservable(), source6.asSharedSequence().asObservable(), source7.asSharedSequence().asObservable(), - resultSelector: resultSelector - ) - - return SharedSequence(source) - } -} - -extension SharedSequenceConvertibleType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of element tuples whenever any of the observable sequences produces an element. - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6, _ source7: O7) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy, - SharingStrategy == O4.SharingStrategy, - SharingStrategy == O5.SharingStrategy, - SharingStrategy == O6.SharingStrategy, - SharingStrategy == O7.SharingStrategy { - let source = Observable.combineLatest( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable(), source4.asSharedSequence().asObservable(), source5.asSharedSequence().asObservable(), source6.asSharedSequence().asObservable(), source7.asSharedSequence().asObservable() - ) - - return SharedSequence(source) - } -} - - - -// 8 - -extension SharedSequence { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences have produced an element at a corresponding index. - - - parameter resultSelector: Function to invoke for each series of elements at corresponding indexes in the sources. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6, _ source7: O7, _ source8: O8, resultSelector: @escaping (O1.E, O2.E, O3.E, O4.E, O5.E, O6.E, O7.E, O8.E) throws -> E) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy, - SharingStrategy == O4.SharingStrategy, - SharingStrategy == O5.SharingStrategy, - SharingStrategy == O6.SharingStrategy, - SharingStrategy == O7.SharingStrategy, - SharingStrategy == O8.SharingStrategy { - let source = Observable.zip( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable(), source4.asSharedSequence().asObservable(), source5.asSharedSequence().asObservable(), source6.asSharedSequence().asObservable(), source7.asSharedSequence().asObservable(), source8.asSharedSequence().asObservable(), - resultSelector: resultSelector - ) - - return SharedSequence(source) - } -} - -extension SharedSequenceConvertibleType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of element tuples whenever all of the observable sequences have produced an element at a corresponding index. - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6, _ source7: O7, _ source8: O8) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy, - SharingStrategy == O4.SharingStrategy, - SharingStrategy == O5.SharingStrategy, - SharingStrategy == O6.SharingStrategy, - SharingStrategy == O7.SharingStrategy, - SharingStrategy == O8.SharingStrategy { - let source = Observable.zip( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable(), source4.asSharedSequence().asObservable(), source5.asSharedSequence().asObservable(), source6.asSharedSequence().asObservable(), source7.asSharedSequence().asObservable(), source8.asSharedSequence().asObservable() - ) - - return SharedSequence(source) - } -} - -extension SharedSequence { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. - - - parameter resultSelector: Function to invoke whenever any of the sources produces an element. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6, _ source7: O7, _ source8: O8, resultSelector: @escaping (O1.E, O2.E, O3.E, O4.E, O5.E, O6.E, O7.E, O8.E) throws -> E) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy, - SharingStrategy == O4.SharingStrategy, - SharingStrategy == O5.SharingStrategy, - SharingStrategy == O6.SharingStrategy, - SharingStrategy == O7.SharingStrategy, - SharingStrategy == O8.SharingStrategy { - let source = Observable.combineLatest( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable(), source4.asSharedSequence().asObservable(), source5.asSharedSequence().asObservable(), source6.asSharedSequence().asObservable(), source7.asSharedSequence().asObservable(), source8.asSharedSequence().asObservable(), - resultSelector: resultSelector - ) - - return SharedSequence(source) - } -} - -extension SharedSequenceConvertibleType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of element tuples whenever any of the observable sequences produces an element. - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6, _ source7: O7, _ source8: O8) - -> SharedSequence where SharingStrategy == O1.SharingStrategy, - SharingStrategy == O2.SharingStrategy, - SharingStrategy == O3.SharingStrategy, - SharingStrategy == O4.SharingStrategy, - SharingStrategy == O5.SharingStrategy, - SharingStrategy == O6.SharingStrategy, - SharingStrategy == O7.SharingStrategy, - SharingStrategy == O8.SharingStrategy { - let source = Observable.combineLatest( - source1.asSharedSequence().asObservable(), source2.asSharedSequence().asObservable(), source3.asSharedSequence().asObservable(), source4.asSharedSequence().asObservable(), source5.asSharedSequence().asObservable(), source6.asSharedSequence().asObservable(), source7.asSharedSequence().asObservable(), source8.asSharedSequence().asObservable() - ) - - return SharedSequence(source) - } -} - - diff --git a/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SharedSequence+Operators.swift b/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SharedSequence+Operators.swift deleted file mode 100644 index c929ff8..0000000 --- a/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SharedSequence+Operators.swift +++ /dev/null @@ -1,515 +0,0 @@ -// -// SharedSequence+Operators.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 9/19/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -// MARK: map -extension SharedSequenceConvertibleType { - - /** - Projects each element of an observable sequence into a new form. - - - parameter selector: A transform function to apply to each source element. - - returns: An observable sequence whose elements are the result of invoking the transform function on each element of source. - */ - public func map(_ selector: @escaping (E) -> R) -> SharedSequence { - let source = self - .asObservable() - .map(selector) - return SharedSequence(source) - } -} - -// MARK: filter -extension SharedSequenceConvertibleType { - /** - Filters the elements of an observable sequence based on a predicate. - - - parameter predicate: A function to test each source element for a condition. - - returns: An observable sequence that contains elements from the input sequence that satisfy the condition. - */ - public func filter(_ predicate: @escaping (E) -> Bool) -> SharedSequence { - let source = self - .asObservable() - .filter(predicate) - return SharedSequence(source) - } -} - -// MARK: switchLatest -extension SharedSequenceConvertibleType where E : SharedSequenceConvertibleType { - - /** - Transforms an observable sequence of observable sequences into an observable sequence - producing values only from the most recent observable sequence. - - Each time a new inner observable sequence is received, unsubscribe from the - previous inner observable sequence. - - - returns: The observable sequence that at any point in time produces the elements of the most recent inner observable sequence that has been received. - */ - public func switchLatest() -> SharedSequence { - let source: Observable = self - .asObservable() - .map { $0.asSharedSequence() } - .switchLatest() - return SharedSequence(source) - } -} - -// MARK: flatMapLatest -extension SharedSequenceConvertibleType { - /** - Projects each element of an observable sequence into a new sequence of observable sequences and then - transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence. - - It is a combination of `map` + `switchLatest` operator - - - parameter selector: A transform function to apply to each element. - - returns: An observable sequence whose elements are the result of invoking the transform function on each element of source producing an - Observable of Observable sequences and that at any point in time produces the elements of the most recent inner observable sequence that has been received. - */ - public func flatMapLatest(_ selector: @escaping (E) -> SharedSequence) - -> SharedSequence { - let source: Observable = self - .asObservable() - .flatMapLatest(selector) - return SharedSequence(source) - } -} - -// MARK: flatMapFirst -extension SharedSequenceConvertibleType { - - /** - Projects each element of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence. - If element is received while there is some projected observable sequence being merged it will simply be ignored. - - - parameter selector: A transform function to apply to element that was observed while no observable is executing in parallel. - - returns: An observable sequence whose elements are the result of invoking the one-to-many transform function on each element of the input sequence that was received while no other sequence was being calculated. - */ - public func flatMapFirst(_ selector: @escaping (E) -> SharedSequence) - -> SharedSequence { - let source: Observable = self - .asObservable() - .flatMapFirst(selector) - return SharedSequence(source) - } -} - -// MARK: do -extension SharedSequenceConvertibleType { - /** - Invokes an action for each event in the observable sequence, and propagates all observer messages through the result sequence. - - - parameter onNext: Action to invoke for each element in the observable sequence. - - parameter onCompleted: Action to invoke upon graceful termination of the observable sequence. - - parameter onSubscribe: Action to invoke before subscribing to source observable sequence. - - parameter onSubscribed: Action to invoke after subscribing to source observable sequence. - - parameter onDispose: Action to invoke after subscription to source observable has been disposed for any reason. It can be either because sequence terminates for some reason or observer subscription being disposed. - - returns: The source sequence with the side-effecting behavior applied. - */ - public func `do`(onNext: ((E) -> Void)? = nil, onCompleted: (() -> Void)? = nil, onSubscribe: (() -> Void)? = nil, onSubscribed: (() -> Void)? = nil, onDispose: (() -> Void)? = nil) - -> SharedSequence { - let source = self.asObservable() - .do(onNext: onNext, onCompleted: onCompleted, onSubscribe: onSubscribe, onSubscribed: onSubscribed, onDispose: onDispose) - - return SharedSequence(source) - } -} - -// MARK: debug -extension SharedSequenceConvertibleType { - - /** - Prints received events for all observers on standard output. - - - parameter identifier: Identifier that is printed together with event description to standard output. - - returns: An observable sequence whose events are printed to standard output. - */ - public func debug(_ identifier: String? = nil, trimOutput: Bool = false, file: String = #file, line: UInt = #line, function: String = #function) -> SharedSequence { - let source = self.asObservable() - .debug(identifier, trimOutput: trimOutput, file: file, line: line, function: function) - return SharedSequence(source) - } -} - -// MARK: distinctUntilChanged -extension SharedSequenceConvertibleType where E: Equatable { - - /** - Returns an observable sequence that contains only distinct contiguous elements according to equality operator. - - - returns: An observable sequence only containing the distinct contiguous elements, based on equality operator, from the source sequence. - */ - public func distinctUntilChanged() - -> SharedSequence { - let source = self.asObservable() - .distinctUntilChanged({ $0 }, comparer: { ($0 == $1) }) - - return SharedSequence(source) - } -} - -extension SharedSequenceConvertibleType { - - /** - Returns an observable sequence that contains only distinct contiguous elements according to the `keySelector`. - - - parameter keySelector: A function to compute the comparison key for each element. - - returns: An observable sequence only containing the distinct contiguous elements, based on a computed key value, from the source sequence. - */ - public func distinctUntilChanged(_ keySelector: @escaping (E) -> K) -> SharedSequence { - let source = self.asObservable() - .distinctUntilChanged(keySelector, comparer: { $0 == $1 }) - return SharedSequence(source) - } - - /** - Returns an observable sequence that contains only distinct contiguous elements according to the `comparer`. - - - parameter comparer: Equality comparer for computed key values. - - returns: An observable sequence only containing the distinct contiguous elements, based on `comparer`, from the source sequence. - */ - public func distinctUntilChanged(_ comparer: @escaping (E, E) -> Bool) -> SharedSequence { - let source = self.asObservable() - .distinctUntilChanged({ $0 }, comparer: comparer) - return SharedSequence(source) - } - - /** - Returns an observable sequence that contains only distinct contiguous elements according to the keySelector and the comparer. - - - parameter keySelector: A function to compute the comparison key for each element. - - parameter comparer: Equality comparer for computed key values. - - returns: An observable sequence only containing the distinct contiguous elements, based on a computed key value and the comparer, from the source sequence. - */ - public func distinctUntilChanged(_ keySelector: @escaping (E) -> K, comparer: @escaping (K, K) -> Bool) -> SharedSequence { - let source = self.asObservable() - .distinctUntilChanged(keySelector, comparer: comparer) - return SharedSequence(source) - } -} - - -// MARK: flatMap -extension SharedSequenceConvertibleType { - - /** - Projects each element of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence. - - - parameter selector: A transform function to apply to each element. - - returns: An observable sequence whose elements are the result of invoking the one-to-many transform function on each element of the input sequence. - */ - public func flatMap(_ selector: @escaping (E) -> SharedSequence) -> SharedSequence { - let source = self.asObservable() - .flatMap(selector) - - return SharedSequence(source) - } -} - -// MARK: merge -extension SharedSequenceConvertibleType { - /** - Merges elements from all observable sequences from collection into a single observable sequence. - - - seealso: [merge operator on reactivex.io](http://reactivex.io/documentation/operators/merge.html) - - - parameter sources: Collection of observable sequences to merge. - - returns: The observable sequence that merges the elements of the observable sequences. - */ - public static func merge(_ sources: C) -> SharedSequence - where C.Iterator.Element == SharedSequence { - let source = Observable.merge(sources.map { $0.asObservable() }) - return SharedSequence(source) - } - - /** - Merges elements from all observable sequences from array into a single observable sequence. - - - seealso: [merge operator on reactivex.io](http://reactivex.io/documentation/operators/merge.html) - - - parameter sources: Array of observable sequences to merge. - - returns: The observable sequence that merges the elements of the observable sequences. - */ - public static func merge(_ sources: [SharedSequence]) -> SharedSequence { - let source = Observable.merge(sources.map { $0.asObservable() }) - return SharedSequence(source) - } - - /** - Merges elements from all observable sequences into a single observable sequence. - - - seealso: [merge operator on reactivex.io](http://reactivex.io/documentation/operators/merge.html) - - - parameter sources: Collection of observable sequences to merge. - - returns: The observable sequence that merges the elements of the observable sequences. - */ - public static func merge(_ sources: SharedSequence...) -> SharedSequence { - let source = Observable.merge(sources.map { $0.asObservable() }) - return SharedSequence(source) - } - -} - -// MARK: merge -extension SharedSequenceConvertibleType where E : SharedSequenceConvertibleType { - /** - Merges elements from all observable sequences in the given enumerable sequence into a single observable sequence. - - - returns: The observable sequence that merges the elements of the observable sequences. - */ - public func merge() -> SharedSequence { - let source = self.asObservable() - .map { $0.asSharedSequence() } - .merge() - return SharedSequence(source) - } - - /** - Merges elements from all inner observable sequences into a single observable sequence, limiting the number of concurrent subscriptions to inner sequences. - - - parameter maxConcurrent: Maximum number of inner observable sequences being subscribed to concurrently. - - returns: The observable sequence that merges the elements of the inner sequences. - */ - public func merge(maxConcurrent: Int) - -> SharedSequence { - let source = self.asObservable() - .map { $0.asSharedSequence() } - .merge(maxConcurrent: maxConcurrent) - return SharedSequence(source) - } -} - -// MARK: throttle -extension SharedSequenceConvertibleType { - - /** - Returns an Observable that emits the first and the latest item emitted by the source Observable during sequential time windows of a specified duration. - - This operator makes sure that no two elements are emitted in less then dueTime. - - - seealso: [debounce operator on reactivex.io](http://reactivex.io/documentation/operators/debounce.html) - - - parameter dueTime: Throttling duration for each element. - - parameter latest: Should latest element received in a dueTime wide time window since last element emission be emitted. - - returns: The throttled sequence. - */ - public func throttle(_ dueTime: RxTimeInterval, latest: Bool = true) - -> SharedSequence { - let source = self.asObservable() - .throttle(dueTime, latest: latest, scheduler: SharingStrategy.scheduler) - - return SharedSequence(source) - } - - /** - Ignores elements from an observable sequence which are followed by another element within a specified relative time duration, using the specified scheduler to run throttling timers. - - - parameter dueTime: Throttling duration for each element. - - returns: The throttled sequence. - */ - public func debounce(_ dueTime: RxTimeInterval) - -> SharedSequence { - let source = self.asObservable() - .debounce(dueTime, scheduler: SharingStrategy.scheduler) - - return SharedSequence(source) - } -} - -// MARK: scan -extension SharedSequenceConvertibleType { - /** - Applies an accumulator function over an observable sequence and returns each intermediate result. The specified seed value is used as the initial accumulator value. - - For aggregation behavior with no intermediate results, see `reduce`. - - - parameter seed: The initial accumulator value. - - parameter accumulator: An accumulator function to be invoked on each element. - - returns: An observable sequence containing the accumulated values. - */ - public func scan(_ seed: A, accumulator: @escaping (A, E) -> A) - -> SharedSequence { - let source = self.asObservable() - .scan(seed, accumulator: accumulator) - return SharedSequence(source) - } -} - -// MARK: concat - -extension SharedSequence { - /** - Concatenates all observable sequences in the given sequence, as long as the previous observable sequence terminated successfully. - - - returns: An observable sequence that contains the elements of each given sequence, in sequential order. - */ - public static func concat(_ sequence: S) -> SharedSequence - where S.Iterator.Element == SharedSequence { - let source = Observable.concat(sequence.lazy.map { $0.asObservable() }) - return SharedSequence(source) - } - - /** - Concatenates all observable sequences in the given sequence, as long as the previous observable sequence terminated successfully. - - - returns: An observable sequence that contains the elements of each given sequence, in sequential order. - */ - public static func concat(_ collection: C) -> SharedSequence - where C.Iterator.Element == SharedSequence { - let source = Observable.concat(collection.map { $0.asObservable() }) - return SharedSequence(source) - } -} - -// MARK: zip - -extension SharedSequence { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences have produced an element at a corresponding index. - - - parameter resultSelector: Function to invoke for each series of elements at corresponding indexes in the sources. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func zip(_ collection: C, _ resultSelector: @escaping ([Element]) throws -> R) -> SharedSequence - where C.Iterator.Element == SharedSequence { - let source = Observable.zip(collection.map { $0.asSharedSequence().asObservable() }, resultSelector) - return SharedSequence(source) - } - - /** - Merges the specified observable sequences into one observable sequence all of the observable sequences have produced an element at a corresponding index. - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func zip(_ collection: C) -> SharedSequence - where C.Iterator.Element == SharedSequence { - let source = Observable.zip(collection.map { $0.asSharedSequence().asObservable() }) - return SharedSequence(source) - } -} - -// MARK: combineLatest - -extension SharedSequence { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. - - - parameter resultSelector: Function to invoke whenever any of the sources produces an element. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func combineLatest(_ collection: C, _ resultSelector: @escaping ([Element]) throws -> R) -> SharedSequence - where C.Iterator.Element == SharedSequence { - let source = Observable.combineLatest(collection.map { $0.asObservable() }, resultSelector) - return SharedSequence(source) - } - - /** - Merges the specified observable sequences into one observable sequence whenever any of the observable sequences produces an element. - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func combineLatest(_ collection: C) -> SharedSequence - where C.Iterator.Element == SharedSequence { - let source = Observable.combineLatest(collection.map { $0.asObservable() }) - return SharedSequence(source) - } -} - -// MARK: withLatestFrom -extension SharedSequenceConvertibleType { - - /** - Merges two observable sequences into one observable sequence by combining each element from self with the latest element from the second source, if any. - - - parameter second: Second observable source. - - parameter resultSelector: Function to invoke for each element from the self combined with the latest element from the second source, if any. - - returns: An observable sequence containing the result of combining each element of the self with the latest element from the second source, if any, using the specified result selector function. - */ - public func withLatestFrom(_ second: SecondO, resultSelector: @escaping (E, SecondO.E) -> ResultType) -> SharedSequence where SecondO.SharingStrategy == SharingStrategy { - let source = self.asObservable() - .withLatestFrom(second.asSharedSequence(), resultSelector: resultSelector) - - return SharedSequence(source) - } - - /** - Merges two observable sequences into one observable sequence by using latest element from the second sequence every time when `self` emits an element. - - - parameter second: Second observable source. - - returns: An observable sequence containing the result of combining each element of the self with the latest element from the second source, if any, using the specified result selector function. - */ - public func withLatestFrom(_ second: SecondO) -> SharedSequence { - let source = self.asObservable() - .withLatestFrom(second.asSharedSequence()) - - return SharedSequence(source) - } -} - -// MARK: skip -extension SharedSequenceConvertibleType { - - /** - Bypasses a specified number of elements in an observable sequence and then returns the remaining elements. - - - seealso: [skip operator on reactivex.io](http://reactivex.io/documentation/operators/skip.html) - - - parameter count: The number of elements to skip before returning the remaining elements. - - returns: An observable sequence that contains the elements that occur after the specified index in the input sequence. - */ - public func skip(_ count: Int) - -> SharedSequence { - let source = self.asObservable() - .skip(count) - return SharedSequence(source) - } -} - -// MARK: startWith -extension SharedSequenceConvertibleType { - - /** - Prepends a value to an observable sequence. - - - seealso: [startWith operator on reactivex.io](http://reactivex.io/documentation/operators/startwith.html) - - - parameter element: Element to prepend to the specified sequence. - - returns: The source sequence prepended with the specified values. - */ - public func startWith(_ element: E) - -> SharedSequence { - let source = self.asObservable() - .startWith(element) - - return SharedSequence(source) - } -} - -// MARK: delay -extension SharedSequenceConvertibleType { - - /** - Returns an observable sequence by the source observable sequence shifted forward in time by a specified delay. Error events from the source observable sequence are not delayed. - - - seealso: [delay operator on reactivex.io](http://reactivex.io/documentation/operators/delay.html) - - - parameter dueTime: Relative time shift of the source by. - - parameter scheduler: Scheduler to run the subscription delay timer on. - - returns: the source Observable shifted in time by the specified delay. - */ - public func delay(_ dueTime: RxTimeInterval) - -> SharedSequence { - let source = self.asObservable() - .delay(dueTime, scheduler: SharingStrategy.scheduler) - - return SharedSequence(source) - } -} diff --git a/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SharedSequence.swift b/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SharedSequence.swift deleted file mode 100644 index 7a79103..0000000 --- a/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SharedSequence.swift +++ /dev/null @@ -1,229 +0,0 @@ -// -// SharedSequence.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 8/27/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -/** - Trait that represents observable sequence that shares computation resources with following properties: - - - it never fails - - it delivers events on `SharingStrategy.scheduler` - - sharing strategy is customizable using `SharingStrategy.share` behavior - - `SharedSequence` can be considered a builder pattern for observable sequences that share computation resources. - - To find out more about units and how to use them, please visit `Documentation/Traits.md`. -*/ -public struct SharedSequence : SharedSequenceConvertibleType { - public typealias E = Element - public typealias SharingStrategy = S - - let _source: Observable - - init(_ source: Observable) { - self._source = S.share(source) - } - - init(raw: Observable) { - self._source = raw - } - - #if EXPANDABLE_SHARED_SEQUENCE - /** - This method is extension hook in case this unit needs to extended from outside the library. - - By defining `EXPANDABLE_SHARED_SEQUENCE` one agrees that it's up to him to ensure shared sequence - properties are preserved after extension. - */ - public static func createUnsafe(source: O) -> SharedSequence { - return SharedSequence(raw: source.asObservable()) - } - #endif - - /** - - returns: Built observable sequence. - */ - public func asObservable() -> Observable { - return self._source - } - - /** - - returns: `self` - */ - public func asSharedSequence() -> SharedSequence { - return self - } -} - -/** - Different `SharedSequence` sharing strategies must conform to this protocol. - */ -public protocol SharingStrategyProtocol { - /** - Scheduled on which all sequence events will be delivered. - */ - static var scheduler: SchedulerType { get } - - /** - Computation resources sharing strategy for multiple sequence observers. - - E.g. One can choose `share(replay:scope:)` - as sequence event sharing strategies, but also do something more exotic, like - implementing promises or lazy loading chains. - */ - static func share(_ source: Observable) -> Observable -} - -/** -A type that can be converted to `SharedSequence`. -*/ -public protocol SharedSequenceConvertibleType : ObservableConvertibleType { - associatedtype SharingStrategy: SharingStrategyProtocol - - /** - Converts self to `SharedSequence`. - */ - func asSharedSequence() -> SharedSequence -} - -extension SharedSequenceConvertibleType { - public func asObservable() -> Observable { - return self.asSharedSequence().asObservable() - } -} - - -extension SharedSequence { - - /** - Returns an empty observable sequence, using the specified scheduler to send out the single `Completed` message. - - - returns: An observable sequence with no elements. - */ - public static func empty() -> SharedSequence { - return SharedSequence(raw: Observable.empty().subscribeOn(S.scheduler)) - } - - /** - Returns a non-terminating observable sequence, which can be used to denote an infinite duration. - - - returns: An observable sequence whose observers will never get called. - */ - public static func never() -> SharedSequence { - return SharedSequence(raw: Observable.never()) - } - - /** - Returns an observable sequence that contains a single element. - - - parameter element: Single element in the resulting observable sequence. - - returns: An observable sequence containing the single specified element. - */ - public static func just(_ element: E) -> SharedSequence { - return SharedSequence(raw: Observable.just(element).subscribeOn(S.scheduler)) - } - - /** - Returns an observable sequence that invokes the specified factory function whenever a new observer subscribes. - - - parameter observableFactory: Observable factory function to invoke for each observer that subscribes to the resulting sequence. - - returns: An observable sequence whose observers trigger an invocation of the given observable factory function. - */ - public static func deferred(_ observableFactory: @escaping () -> SharedSequence) - -> SharedSequence { - return SharedSequence(Observable.deferred { observableFactory().asObservable() }) - } - - /** - This method creates a new Observable instance with a variable number of elements. - - - seealso: [from operator on reactivex.io](http://reactivex.io/documentation/operators/from.html) - - - parameter elements: Elements to generate. - - returns: The observable sequence whose elements are pulled from the given arguments. - */ - public static func of(_ elements: E ...) -> SharedSequence { - let source = Observable.from(elements, scheduler: S.scheduler) - return SharedSequence(raw: source) - } -} - -extension SharedSequence { - - /** - This method converts an array to an observable sequence. - - - seealso: [from operator on reactivex.io](http://reactivex.io/documentation/operators/from.html) - - - returns: The observable sequence whose elements are pulled from the given enumerable sequence. - */ - public static func from(_ array: [E]) -> SharedSequence { - let source = Observable.from(array, scheduler: S.scheduler) - return SharedSequence(raw: source) - } - - /** - This method converts a sequence to an observable sequence. - - - seealso: [from operator on reactivex.io](http://reactivex.io/documentation/operators/from.html) - - - returns: The observable sequence whose elements are pulled from the given enumerable sequence. - */ - public static func from(_ sequence: S) -> SharedSequence where S.Iterator.Element == E { - let source = Observable.from(sequence, scheduler: SharingStrategy.scheduler) - return SharedSequence(raw: source) - } - - /** - This method converts a optional to an observable sequence. - - - seealso: [from operator on reactivex.io](http://reactivex.io/documentation/operators/from.html) - - - parameter optional: Optional element in the resulting observable sequence. - - - returns: An observable sequence containing the wrapped value or not from given optional. - */ - public static func from(optional: E?) -> SharedSequence { - let source = Observable.from(optional: optional, scheduler: S.scheduler) - return SharedSequence(raw: source) - } -} - -extension SharedSequence where Element : RxAbstractInteger { - /** - Returns an observable sequence that produces a value after each period, using the specified scheduler to run timers and to send out observer messages. - - - seealso: [interval operator on reactivex.io](http://reactivex.io/documentation/operators/interval.html) - - - parameter period: Period for producing the values in the resulting sequence. - - returns: An observable sequence that produces a value after each period. - */ - public static func interval(_ period: RxTimeInterval) - -> SharedSequence { - return SharedSequence(Observable.interval(period, scheduler: S.scheduler)) - } -} - -// MARK: timer - -extension SharedSequence where Element: RxAbstractInteger { - /** - Returns an observable sequence that periodically produces a value after the specified initial relative due time has elapsed, using the specified scheduler to run timers. - - - seealso: [timer operator on reactivex.io](http://reactivex.io/documentation/operators/timer.html) - - - parameter dueTime: Relative time at which to produce the first value. - - parameter period: Period to produce subsequent values. - - returns: An observable sequence that produces a value after due time has elapsed and then each period. - */ - public static func timer(_ dueTime: RxTimeInterval, period: RxTimeInterval) - -> SharedSequence { - return SharedSequence(Observable.timer(dueTime, period: period, scheduler: S.scheduler)) - } -} - diff --git a/Pods/RxCocoa/RxCocoa/Traits/Signal/ControlEvent+Signal.swift b/Pods/RxCocoa/RxCocoa/Traits/Signal/ControlEvent+Signal.swift deleted file mode 100644 index 89dbb39..0000000 --- a/Pods/RxCocoa/RxCocoa/Traits/Signal/ControlEvent+Signal.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// ControlEvent+Signal.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 11/1/17. -// Copyright © 2017 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -extension ControlEvent { - /// Converts `ControlEvent` to `Signal` trait. - /// - /// `ControlEvent` already can't fail, so no special case needs to be handled. - public func asSignal() -> Signal { - return self.asSignal { _ -> Signal in - #if DEBUG - rxFatalError("Somehow signal received error from a source that shouldn't fail.") - #else - return Signal.empty() - #endif - } - } -} - diff --git a/Pods/RxCocoa/RxCocoa/Traits/Signal/ObservableConvertibleType+Signal.swift b/Pods/RxCocoa/RxCocoa/Traits/Signal/ObservableConvertibleType+Signal.swift deleted file mode 100644 index 9316e08..0000000 --- a/Pods/RxCocoa/RxCocoa/Traits/Signal/ObservableConvertibleType+Signal.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// ObservableConvertibleType+Signal.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 9/19/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -extension ObservableConvertibleType { - /** - Converts observable sequence to `Signal` trait. - - - parameter onErrorJustReturn: Element to return in case of error and after that complete the sequence. - - returns: Signal trait. - */ - public func asSignal(onErrorJustReturn: E) -> Signal { - let source = self - .asObservable() - .observeOn(SignalSharingStrategy.scheduler) - .catchErrorJustReturn(onErrorJustReturn) - return Signal(source) - } - - /** - Converts observable sequence to `Driver` trait. - - - parameter onErrorDriveWith: Driver that continues to drive the sequence in case of error. - - returns: Signal trait. - */ - public func asSignal(onErrorSignalWith: Signal) -> Signal { - let source = self - .asObservable() - .observeOn(SignalSharingStrategy.scheduler) - .catchError { _ in - onErrorSignalWith.asObservable() - } - return Signal(source) - } - - /** - Converts observable sequence to `Driver` trait. - - - parameter onErrorRecover: Calculates driver that continues to drive the sequence in case of error. - - returns: Signal trait. - */ - public func asSignal(onErrorRecover: @escaping (_ error: Swift.Error) -> Signal) -> Signal { - let source = self - .asObservable() - .observeOn(SignalSharingStrategy.scheduler) - .catchError { error in - onErrorRecover(error).asObservable() - } - return Signal(source) - } -} diff --git a/Pods/RxCocoa/RxCocoa/Traits/Signal/PublishRelay+Signal.swift b/Pods/RxCocoa/RxCocoa/Traits/Signal/PublishRelay+Signal.swift deleted file mode 100644 index ab4b8d8..0000000 --- a/Pods/RxCocoa/RxCocoa/Traits/Signal/PublishRelay+Signal.swift +++ /dev/null @@ -1,20 +0,0 @@ -// -// PublishRelay+Signal.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 12/28/15. -// Copyright © 2017 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -extension PublishRelay { - /// Converts `PublishRelay` to `Signal`. - /// - /// - returns: Observable sequence. - public func asSignal() -> Signal { - let source = self.asObservable() - .observeOn(SignalSharingStrategy.scheduler) - return SharedSequence(source) - } -} diff --git a/Pods/RxCocoa/RxCocoa/Traits/Signal/Signal+Subscription.swift b/Pods/RxCocoa/RxCocoa/Traits/Signal/Signal+Subscription.swift deleted file mode 100644 index a5f7d21..0000000 --- a/Pods/RxCocoa/RxCocoa/Traits/Signal/Signal+Subscription.swift +++ /dev/null @@ -1,100 +0,0 @@ -// -// Signal+Subscription.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 9/19/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -extension SharedSequenceConvertibleType where SharingStrategy == SignalSharingStrategy { - /** - Creates new subscription and sends elements to observer. - - In this form it's equivalent to `subscribe` method, but it communicates intent better. - - - parameter to: Observer that receives events. - - returns: Disposable object that can be used to unsubscribe the observer from the subject. - */ - public func emit(to observer: O) -> Disposable where O.E == E { - return self.asSharedSequence().asObservable().subscribe(observer) - } - - /** - Creates new subscription and sends elements to observer. - - In this form it's equivalent to `subscribe` method, but it communicates intent better. - - - parameter to: Observer that receives events. - - returns: Disposable object that can be used to unsubscribe the observer from the subject. - */ - public func emit(to observer: O) -> Disposable where O.E == E? { - return self.asSharedSequence().asObservable().map { $0 as E? }.subscribe(observer) - } - - /** - Creates new subscription and sends elements to `BehaviorRelay`. - - parameter relay: Target relay for sequence elements. - - returns: Disposable object that can be used to unsubscribe the observer from the relay. - */ - public func emit(to relay: BehaviorRelay) -> Disposable { - return self.emit(onNext: { e in - relay.accept(e) - }) - } - - /** - Creates new subscription and sends elements to `BehaviorRelay`. - - parameter relay: Target relay for sequence elements. - - returns: Disposable object that can be used to unsubscribe the observer from the relay. - */ - public func emit(to relay: BehaviorRelay) -> Disposable { - return self.emit(onNext: { e in - relay.accept(e) - }) - } - - /** - Creates new subscription and sends elements to relay. - - - parameter relay: Target relay for sequence elements. - - returns: Disposable object that can be used to unsubscribe the observer from the relay. - */ - public func emit(to relay: PublishRelay) -> Disposable { - return self.emit(onNext: { e in - relay.accept(e) - }) - } - - /** - Creates new subscription and sends elements to relay. - - - parameter to: Target relay for sequence elements. - - returns: Disposable object that can be used to unsubscribe the observer from the relay. - */ - public func emit(to relay: PublishRelay) -> Disposable { - return self.emit(onNext: { e in - relay.accept(e) - }) - } - - /** - Subscribes an element handler, a completion handler and disposed handler to an observable sequence. - - Error callback is not exposed because `Signal` can't error out. - - - parameter onNext: Action to invoke for each element in the observable sequence. - - parameter onCompleted: Action to invoke upon graceful termination of the observable sequence. - gracefully completed, errored, or if the generation is canceled by disposing subscription) - - parameter onDisposed: Action to invoke upon any type of termination of sequence (if the sequence has - gracefully completed, errored, or if the generation is canceled by disposing subscription) - - returns: Subscription object used to unsubscribe from the observable sequence. - */ - public func emit(onNext: ((E) -> Void)? = nil, onCompleted: (() -> Void)? = nil, onDisposed: (() -> Void)? = nil) -> Disposable { - return self.asObservable().subscribe(onNext: onNext, onCompleted: onCompleted, onDisposed: onDisposed) - } -} - - - diff --git a/Pods/RxCocoa/RxCocoa/Traits/Signal/Signal.swift b/Pods/RxCocoa/RxCocoa/Traits/Signal/Signal.swift deleted file mode 100644 index 1bb95f7..0000000 --- a/Pods/RxCocoa/RxCocoa/Traits/Signal/Signal.swift +++ /dev/null @@ -1,45 +0,0 @@ -// -// Signal.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 9/26/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -import RxSwift - -/** - Trait that represents observable sequence with following properties: - - - it never fails - - it delivers events on `MainScheduler.instance` - - `share(scope: .whileConnected)` sharing strategy - - Additional explanation: - - all observers share sequence computation resources - - there is no replaying of sequence elements on new observer subscription - - computation of elements is reference counted with respect to the number of observers - - if there are no subscribers, it will release sequence computation resources - - In case trait that models state propagation is required, please check `Driver`. - - `Signal` can be considered a builder pattern for observable sequences that model imperative events part of the application. - - To find out more about units and how to use them, please visit `Documentation/Traits.md`. - */ -public typealias Signal = SharedSequence - -public struct SignalSharingStrategy : SharingStrategyProtocol { - public static var scheduler: SchedulerType { return SharingScheduler.make() } - - public static func share(_ source: Observable) -> Observable { - return source.share(scope: .whileConnected) - } -} - -extension SharedSequenceConvertibleType where SharingStrategy == SignalSharingStrategy { - /// Adds `asPublisher` to `SharingSequence` with `PublishSharingStrategy`. - public func asSignal() -> Signal { - return self.asSharedSequence() - } -} diff --git a/Pods/RxCocoa/RxCocoa/iOS/DataSources/RxCollectionViewReactiveArrayDataSource.swift b/Pods/RxCocoa/RxCocoa/iOS/DataSources/RxCollectionViewReactiveArrayDataSource.swift deleted file mode 100644 index be0fa74..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/DataSources/RxCollectionViewReactiveArrayDataSource.swift +++ /dev/null @@ -1,108 +0,0 @@ -// -// RxCollectionViewReactiveArrayDataSource.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 6/29/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -// objc monkey business -class _RxCollectionViewReactiveArrayDataSource - : NSObject - , UICollectionViewDataSource { - - @objc(numberOfSectionsInCollectionView:) - func numberOfSections(in: UICollectionView) -> Int { - return 1 - } - - func _collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { - return 0 - } - - func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { - return _collectionView(collectionView, numberOfItemsInSection: section) - } - - fileprivate func _collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { - rxAbstractMethod() - } - - func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { - return _collectionView(collectionView, cellForItemAt: indexPath) - } -} - -class RxCollectionViewReactiveArrayDataSourceSequenceWrapper - : RxCollectionViewReactiveArrayDataSource - , RxCollectionViewDataSourceType { - typealias Element = S - - override init(cellFactory: @escaping CellFactory) { - super.init(cellFactory: cellFactory) - } - - func collectionView(_ collectionView: UICollectionView, observedEvent: Event) { - Binder(self) { collectionViewDataSource, sectionModels in - let sections = Array(sectionModels) - collectionViewDataSource.collectionView(collectionView, observedElements: sections) - }.on(observedEvent) - } -} - - -// Please take a look at `DelegateProxyType.swift` -class RxCollectionViewReactiveArrayDataSource - : _RxCollectionViewReactiveArrayDataSource - , SectionedViewDataSourceType { - - typealias CellFactory = (UICollectionView, Int, Element) -> UICollectionViewCell - - var itemModels: [Element]? - - func modelAtIndex(_ index: Int) -> Element? { - return itemModels?[index] - } - - func model(at indexPath: IndexPath) throws -> Any { - precondition(indexPath.section == 0) - guard let item = itemModels?[indexPath.item] else { - throw RxCocoaError.itemsNotYetBound(object: self) - } - return item - } - - var cellFactory: CellFactory - - init(cellFactory: @escaping CellFactory) { - self.cellFactory = cellFactory - } - - // data source - - override func _collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { - return itemModels?.count ?? 0 - } - - override func _collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { - return cellFactory(collectionView, indexPath.item, itemModels![indexPath.item]) - } - - // reactive - - func collectionView(_ collectionView: UICollectionView, observedElements: [Element]) { - self.itemModels = observedElements - - collectionView.reloadData() - - // workaround for http://stackoverflow.com/questions/39867325/ios-10-bug-uicollectionview-received-layout-attributes-for-a-cell-with-an-index - collectionView.collectionViewLayout.invalidateLayout() - } -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/DataSources/RxPickerViewAdapter.swift b/Pods/RxCocoa/RxCocoa/iOS/DataSources/RxPickerViewAdapter.swift deleted file mode 100644 index 550a033..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/DataSources/RxPickerViewAdapter.swift +++ /dev/null @@ -1,92 +0,0 @@ -// -// RxPickerViewAdapter.swift -// RxCocoa -// -// Created by Sergey Shulga on 12/07/2017. -// Copyright © 2017 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) - -import UIKit -import RxSwift - -class RxPickerViewArrayDataSource: NSObject, UIPickerViewDataSource, SectionedViewDataSourceType { - fileprivate var items: [T] = [] - - func model(at indexPath: IndexPath) throws -> Any { - guard items.indices ~= indexPath.row else { - throw RxCocoaError.itemsNotYetBound(object: self) - } - return items[indexPath.row] - } - - func numberOfComponents(in pickerView: UIPickerView) -> Int { - return 1 - } - - func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int { - return items.count - } -} - -class RxPickerViewSequenceDataSource - : RxPickerViewArrayDataSource - , RxPickerViewDataSourceType { - typealias Element = S - - func pickerView(_ pickerView: UIPickerView, observedEvent: Event) { - Binder(self) { dataSource, items in - dataSource.items = items - pickerView.reloadAllComponents() - } - .on(observedEvent.map(Array.init)) - } -} - -final class RxStringPickerViewAdapter - : RxPickerViewSequenceDataSource - , UIPickerViewDelegate { - - typealias TitleForRow = (Int, S.Iterator.Element) -> String? - private let titleForRow: TitleForRow - - init(titleForRow: @escaping TitleForRow) { - self.titleForRow = titleForRow - super.init() - } - - func pickerView(_ pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String? { - return titleForRow(row, items[row]) - } -} - -final class RxAttributedStringPickerViewAdapter: RxPickerViewSequenceDataSource, UIPickerViewDelegate { - typealias AttributedTitleForRow = (Int, S.Iterator.Element) -> NSAttributedString? - private let attributedTitleForRow: AttributedTitleForRow - - init(attributedTitleForRow: @escaping AttributedTitleForRow) { - self.attributedTitleForRow = attributedTitleForRow - super.init() - } - - func pickerView(_ pickerView: UIPickerView, attributedTitleForRow row: Int, forComponent component: Int) -> NSAttributedString? { - return attributedTitleForRow(row, items[row]) - } -} - -final class RxPickerViewAdapter: RxPickerViewSequenceDataSource, UIPickerViewDelegate { - typealias ViewForRow = (Int, S.Iterator.Element, UIView?) -> UIView - private let viewForRow: ViewForRow - - init(viewForRow: @escaping ViewForRow) { - self.viewForRow = viewForRow - super.init() - } - - func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?) -> UIView { - return viewForRow(row, items[row], view) - } -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/DataSources/RxTableViewReactiveArrayDataSource.swift b/Pods/RxCocoa/RxCocoa/iOS/DataSources/RxTableViewReactiveArrayDataSource.swift deleted file mode 100644 index 8658832..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/DataSources/RxTableViewReactiveArrayDataSource.swift +++ /dev/null @@ -1,101 +0,0 @@ -// -// RxTableViewReactiveArrayDataSource.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 6/26/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -// objc monkey business -class _RxTableViewReactiveArrayDataSource - : NSObject - , UITableViewDataSource { - - func numberOfSections(in tableView: UITableView) -> Int { - return 1 - } - - func _tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { - return 0 - } - - func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { - return _tableView(tableView, numberOfRowsInSection: section) - } - - fileprivate func _tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { - rxAbstractMethod() - } - - func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { - return _tableView(tableView, cellForRowAt: indexPath) - } -} - - -class RxTableViewReactiveArrayDataSourceSequenceWrapper - : RxTableViewReactiveArrayDataSource - , RxTableViewDataSourceType { - typealias Element = S - - override init(cellFactory: @escaping CellFactory) { - super.init(cellFactory: cellFactory) - } - - func tableView(_ tableView: UITableView, observedEvent: Event) { - Binder(self) { tableViewDataSource, sectionModels in - let sections = Array(sectionModels) - tableViewDataSource.tableView(tableView, observedElements: sections) - }.on(observedEvent) - } -} - -// Please take a look at `DelegateProxyType.swift` -class RxTableViewReactiveArrayDataSource - : _RxTableViewReactiveArrayDataSource - , SectionedViewDataSourceType { - typealias CellFactory = (UITableView, Int, Element) -> UITableViewCell - - var itemModels: [Element]? - - func modelAtIndex(_ index: Int) -> Element? { - return itemModels?[index] - } - - func model(at indexPath: IndexPath) throws -> Any { - precondition(indexPath.section == 0) - guard let item = itemModels?[indexPath.item] else { - throw RxCocoaError.itemsNotYetBound(object: self) - } - return item - } - - let cellFactory: CellFactory - - init(cellFactory: @escaping CellFactory) { - self.cellFactory = cellFactory - } - - override func _tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { - return itemModels?.count ?? 0 - } - - override func _tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { - return cellFactory(tableView, indexPath.item, itemModels![indexPath.row]) - } - - // reactive - - func tableView(_ tableView: UITableView, observedElements: [Element]) { - self.itemModels = observedElements - - tableView.reloadData() - } -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/Events/ItemEvents.swift b/Pods/RxCocoa/RxCocoa/iOS/Events/ItemEvents.swift deleted file mode 100644 index aadf749..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/Events/ItemEvents.swift +++ /dev/null @@ -1,15 +0,0 @@ -// -// ItemEvents.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 6/20/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) -import UIKit - -public typealias ItemMovedEvent = (sourceIndex: IndexPath, destinationIndex: IndexPath) -public typealias WillDisplayCellEvent = (cell: UITableViewCell, indexPath: IndexPath) -public typealias DidEndDisplayingCellEvent = (cell: UITableViewCell, indexPath: IndexPath) -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/NSTextStorage+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/NSTextStorage+Rx.swift deleted file mode 100644 index c8e435a..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/NSTextStorage+Rx.swift +++ /dev/null @@ -1,39 +0,0 @@ -// -// NSTextStorage+Rx.swift -// RxCocoa -// -// Created by Segii Shulga on 12/30/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - import RxSwift - import UIKit - - #if swift(>=4.2) - public typealias NSTextStorageEditActions = NSTextStorage.EditActions - #endif - - extension Reactive where Base: NSTextStorage { - - /// Reactive wrapper for `delegate`. - /// - /// For more information take a look at `DelegateProxyType` protocol documentation. - public var delegate: DelegateProxy { - return RxTextStorageDelegateProxy.proxy(for: base) - } - - /// Reactive wrapper for `delegate` message. - public var didProcessEditingRangeChangeInLength: Observable<(editedMask:NSTextStorageEditActions, editedRange:NSRange, delta:Int)> { - return delegate - .methodInvoked(#selector(NSTextStorageDelegate.textStorage(_:didProcessEditing:range:changeInLength:))) - .map { a in - let editedMask = NSTextStorageEditActions(rawValue: try castOrThrow(UInt.self, a[1]) ) - let editedRange = try castOrThrow(NSValue.self, a[2]).rangeValue - let delta = try castOrThrow(Int.self, a[3]) - - return (editedMask, editedRange, delta) - } - } - } -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/Protocols/RxCollectionViewDataSourceType.swift b/Pods/RxCocoa/RxCocoa/iOS/Protocols/RxCollectionViewDataSourceType.swift deleted file mode 100644 index b098a9e..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/Protocols/RxCollectionViewDataSourceType.swift +++ /dev/null @@ -1,27 +0,0 @@ -// -// RxCollectionViewDataSourceType.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 6/29/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -/// Marks data source as `UICollectionView` reactive data source enabling it to be used with one of the `bindTo` methods. -public protocol RxCollectionViewDataSourceType /*: UICollectionViewDataSource*/ { - - /// Type of elements that can be bound to collection view. - associatedtype Element - - /// New observable sequence event observed. - /// - /// - parameter collectionView: Bound collection view. - /// - parameter observedEvent: Event - func collectionView(_ collectionView: UICollectionView, observedEvent: Event) -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/Protocols/RxPickerViewDataSourceType.swift b/Pods/RxCocoa/RxCocoa/iOS/Protocols/RxPickerViewDataSourceType.swift deleted file mode 100644 index 1f390bf..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/Protocols/RxPickerViewDataSourceType.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// RxPickerViewDataSourceType.swift -// RxCocoa -// -// Created by Sergey Shulga on 05/07/2017. -// Copyright © 2017 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) - -import UIKit -import RxSwift - -/// Marks data source as `UIPickerView` reactive data source enabling it to be used with one of the `bindTo` methods. -public protocol RxPickerViewDataSourceType { - /// Type of elements that can be bound to picker view. - associatedtype Element - - /// New observable sequence event observed. - /// - /// - parameter pickerView: Bound picker view. - /// - parameter observedEvent: Event - func pickerView(_ pickerView: UIPickerView, observedEvent: Event) -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/Protocols/RxTableViewDataSourceType.swift b/Pods/RxCocoa/RxCocoa/iOS/Protocols/RxTableViewDataSourceType.swift deleted file mode 100644 index d59af9e..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/Protocols/RxTableViewDataSourceType.swift +++ /dev/null @@ -1,27 +0,0 @@ -// -// RxTableViewDataSourceType.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 6/26/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -/// Marks data source as `UITableView` reactive data source enabling it to be used with one of the `bindTo` methods. -public protocol RxTableViewDataSourceType /*: UITableViewDataSource*/ { - - /// Type of elements that can be bound to table view. - associatedtype Element - - /// New observable sequence event observed. - /// - /// - parameter tableView: Bound table view. - /// - parameter observedEvent: Event - func tableView(_ tableView: UITableView, observedEvent: Event) -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxCollectionViewDataSourcePrefetchingProxy.swift b/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxCollectionViewDataSourcePrefetchingProxy.swift deleted file mode 100644 index 779d8d4..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxCollectionViewDataSourcePrefetchingProxy.swift +++ /dev/null @@ -1,92 +0,0 @@ -// -// RxCollectionViewDataSourcePrefetchingProxy.swift -// RxCocoa -// -// Created by Rowan Livingstone on 2/15/18. -// Copyright © 2018 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -@available(iOS 10.0, tvOS 10.0, *) -extension UICollectionView: HasPrefetchDataSource { - public typealias PrefetchDataSource = UICollectionViewDataSourcePrefetching -} - -@available(iOS 10.0, tvOS 10.0, *) -fileprivate let collectionViewPrefetchDataSourceNotSet = CollectionViewPrefetchDataSourceNotSet() - -@available(iOS 10.0, tvOS 10.0, *) -fileprivate final class CollectionViewPrefetchDataSourceNotSet - : NSObject - , UICollectionViewDataSourcePrefetching { - - func collectionView(_ collectionView: UICollectionView, prefetchItemsAt indexPaths: [IndexPath]) {} - -} - -@available(iOS 10.0, tvOS 10.0, *) -open class RxCollectionViewDataSourcePrefetchingProxy - : DelegateProxy - , DelegateProxyType - , UICollectionViewDataSourcePrefetching { - - /// Typed parent object. - public weak private(set) var collectionView: UICollectionView? - - /// - parameter collectionView: Parent object for delegate proxy. - public init(collectionView: ParentObject) { - self.collectionView = collectionView - super.init(parentObject: collectionView, delegateProxy: RxCollectionViewDataSourcePrefetchingProxy.self) - } - - // Register known implementations - public static func registerKnownImplementations() { - self.register { RxCollectionViewDataSourcePrefetchingProxy(collectionView: $0) } - } - - fileprivate var _prefetchItemsPublishSubject: PublishSubject<[IndexPath]>? - - /// Optimized version used for observing prefetch items callbacks. - internal var prefetchItemsPublishSubject: PublishSubject<[IndexPath]> { - if let subject = _prefetchItemsPublishSubject { - return subject - } - - let subject = PublishSubject<[IndexPath]>() - _prefetchItemsPublishSubject = subject - - return subject - } - - private weak var _requiredMethodsPrefetchDataSource: UICollectionViewDataSourcePrefetching? = collectionViewPrefetchDataSourceNotSet - - // MARK: delegate - - /// Required delegate method implementation. - public func collectionView(_ collectionView: UICollectionView, prefetchItemsAt indexPaths: [IndexPath]) { - if let subject = _prefetchItemsPublishSubject { - subject.on(.next(indexPaths)) - } - - (_requiredMethodsPrefetchDataSource ?? collectionViewPrefetchDataSourceNotSet).collectionView(collectionView, prefetchItemsAt: indexPaths) - } - - /// For more information take a look at `DelegateProxyType`. - open override func setForwardToDelegate(_ forwardToDelegate: UICollectionViewDataSourcePrefetching?, retainDelegate: Bool) { - _requiredMethodsPrefetchDataSource = forwardToDelegate ?? collectionViewPrefetchDataSourceNotSet - super.setForwardToDelegate(forwardToDelegate, retainDelegate: retainDelegate) - } - - deinit { - if let subject = _prefetchItemsPublishSubject { - subject.on(.completed) - } - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxCollectionViewDataSourceProxy.swift b/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxCollectionViewDataSourceProxy.swift deleted file mode 100644 index 9c970a2..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxCollectionViewDataSourceProxy.swift +++ /dev/null @@ -1,76 +0,0 @@ -// -// RxCollectionViewDataSourceProxy.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 6/29/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -extension UICollectionView: HasDataSource { - public typealias DataSource = UICollectionViewDataSource -} - -fileprivate let collectionViewDataSourceNotSet = CollectionViewDataSourceNotSet() - -fileprivate final class CollectionViewDataSourceNotSet - : NSObject - , UICollectionViewDataSource { - - func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { - return 0 - } - - // The cell that is returned must be retrieved from a call to -dequeueReusableCellWithReuseIdentifier:forIndexPath: - func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { - rxAbstractMethod(message: dataSourceNotSet) - } - -} - -/// For more information take a look at `DelegateProxyType`. -open class RxCollectionViewDataSourceProxy - : DelegateProxy - , DelegateProxyType - , UICollectionViewDataSource { - - /// Typed parent object. - public weak private(set) var collectionView: UICollectionView? - - /// - parameter collectionView: Parent object for delegate proxy. - public init(collectionView: ParentObject) { - self.collectionView = collectionView - super.init(parentObject: collectionView, delegateProxy: RxCollectionViewDataSourceProxy.self) - } - - // Register known implementations - public static func registerKnownImplementations() { - self.register { RxCollectionViewDataSourceProxy(collectionView: $0) } - } - - private weak var _requiredMethodsDataSource: UICollectionViewDataSource? = collectionViewDataSourceNotSet - - // MARK: delegate - - /// Required delegate method implementation. - public func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { - return (_requiredMethodsDataSource ?? collectionViewDataSourceNotSet).collectionView(collectionView, numberOfItemsInSection: section) - } - - /// Required delegate method implementation. - public func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { - return (_requiredMethodsDataSource ?? collectionViewDataSourceNotSet).collectionView(collectionView, cellForItemAt: indexPath) - } - - /// For more information take a look at `DelegateProxyType`. - open override func setForwardToDelegate(_ forwardToDelegate: UICollectionViewDataSource?, retainDelegate: Bool) { - _requiredMethodsDataSource = forwardToDelegate ?? collectionViewDataSourceNotSet - super.setForwardToDelegate(forwardToDelegate, retainDelegate: retainDelegate) - } -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxCollectionViewDelegateProxy.swift b/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxCollectionViewDelegateProxy.swift deleted file mode 100644 index dd8f4b4..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxCollectionViewDelegateProxy.swift +++ /dev/null @@ -1,32 +0,0 @@ -// -// RxCollectionViewDelegateProxy.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 6/29/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -/// For more information take a look at `DelegateProxyType`. -open class RxCollectionViewDelegateProxy - : RxScrollViewDelegateProxy - , UICollectionViewDelegate - , UICollectionViewDelegateFlowLayout { - - /// Typed parent object. - public weak private(set) var collectionView: UICollectionView? - - /// Initializes `RxCollectionViewDelegateProxy` - /// - /// - parameter collectionView: Parent object for delegate proxy. - public init(collectionView: UICollectionView) { - self.collectionView = collectionView - super.init(scrollView: collectionView) - } -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxNavigationControllerDelegateProxy.swift b/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxNavigationControllerDelegateProxy.swift deleted file mode 100644 index 372bf79..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxNavigationControllerDelegateProxy.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// RxNavigationControllerDelegateProxy.swift -// RxCocoa -// -// Created by Diogo on 13/04/17. -// Copyright © 2017 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - - import UIKit - import RxSwift - - extension UINavigationController: HasDelegate { - public typealias Delegate = UINavigationControllerDelegate - } - - /// For more information take a look at `DelegateProxyType`. - open class RxNavigationControllerDelegateProxy - : DelegateProxy - , DelegateProxyType - , UINavigationControllerDelegate { - - /// Typed parent object. - public weak private(set) var navigationController: UINavigationController? - - /// - parameter navigationController: Parent object for delegate proxy. - public init(navigationController: ParentObject) { - self.navigationController = navigationController - super.init(parentObject: navigationController, delegateProxy: RxNavigationControllerDelegateProxy.self) - } - - // Register known implementations - public static func registerKnownImplementations() { - self.register { RxNavigationControllerDelegateProxy(navigationController: $0) } - } - } -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxPickerViewDataSourceProxy.swift b/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxPickerViewDataSourceProxy.swift deleted file mode 100644 index a639ef8..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxPickerViewDataSourceProxy.swift +++ /dev/null @@ -1,71 +0,0 @@ -// -// RxPickerViewDataSourceProxy.swift -// RxCocoa -// -// Created by Sergey Shulga on 05/07/2017. -// Copyright © 2017 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) - -import UIKit -import RxSwift - -extension UIPickerView: HasDataSource { - public typealias DataSource = UIPickerViewDataSource -} - -private let pickerViewDataSourceNotSet = PickerViewDataSourceNotSet() - -final private class PickerViewDataSourceNotSet: NSObject, UIPickerViewDataSource { - func numberOfComponents(in pickerView: UIPickerView) -> Int { - return 0 - } - - func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int { - return 0 - } -} - -/// For more information take a look at `DelegateProxyType`. -public class RxPickerViewDataSourceProxy - : DelegateProxy - , DelegateProxyType - , UIPickerViewDataSource { - - /// Typed parent object. - public weak private(set) var pickerView: UIPickerView? - - /// - parameter pickerView: Parent object for delegate proxy. - public init(pickerView: ParentObject) { - self.pickerView = pickerView - super.init(parentObject: pickerView, delegateProxy: RxPickerViewDataSourceProxy.self) - } - - // Register known implementations - public static func registerKnownImplementations() { - self.register { RxPickerViewDataSourceProxy(pickerView: $0) } - } - - private weak var _requiredMethodsDataSource: UIPickerViewDataSource? = pickerViewDataSourceNotSet - - // MARK: UIPickerViewDataSource - - /// Required delegate method implementation. - public func numberOfComponents(in pickerView: UIPickerView) -> Int { - return (_requiredMethodsDataSource ?? pickerViewDataSourceNotSet).numberOfComponents(in: pickerView) - } - - /// Required delegate method implementation. - public func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int { - return (_requiredMethodsDataSource ?? pickerViewDataSourceNotSet).pickerView(pickerView, numberOfRowsInComponent: component) - } - - /// For more information take a look at `DelegateProxyType`. - public override func setForwardToDelegate(_ forwardToDelegate: UIPickerViewDataSource?, retainDelegate: Bool) { - _requiredMethodsDataSource = forwardToDelegate ?? pickerViewDataSourceNotSet - super.setForwardToDelegate(forwardToDelegate, retainDelegate: retainDelegate) - } -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxPickerViewDelegateProxy.swift b/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxPickerViewDelegateProxy.swift deleted file mode 100644 index 922126f..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxPickerViewDelegateProxy.swift +++ /dev/null @@ -1,37 +0,0 @@ -// -// RxPickerViewDelegateProxy.swift -// RxCocoa -// -// Created by Segii Shulga on 5/12/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) - - import RxSwift - import UIKit - - extension UIPickerView: HasDelegate { - public typealias Delegate = UIPickerViewDelegate - } - - open class RxPickerViewDelegateProxy - : DelegateProxy - , DelegateProxyType - , UIPickerViewDelegate { - - /// Typed parent object. - public weak private(set) var pickerView: UIPickerView? - - /// - parameter pickerView: Parent object for delegate proxy. - public init(pickerView: ParentObject) { - self.pickerView = pickerView - super.init(parentObject: pickerView, delegateProxy: RxPickerViewDelegateProxy.self) - } - - // Register known implementationss - public static func registerKnownImplementations() { - self.register { RxPickerViewDelegateProxy(pickerView: $0) } - } - } -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxScrollViewDelegateProxy.swift b/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxScrollViewDelegateProxy.swift deleted file mode 100644 index dbaf238..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxScrollViewDelegateProxy.swift +++ /dev/null @@ -1,92 +0,0 @@ -// -// RxScrollViewDelegateProxy.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 6/19/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import RxSwift -import UIKit - -extension UIScrollView: HasDelegate { - public typealias Delegate = UIScrollViewDelegate -} - -/// For more information take a look at `DelegateProxyType`. -open class RxScrollViewDelegateProxy - : DelegateProxy - , DelegateProxyType - , UIScrollViewDelegate { - - /// Typed parent object. - public weak private(set) var scrollView: UIScrollView? - - /// - parameter scrollView: Parent object for delegate proxy. - public init(scrollView: ParentObject) { - self.scrollView = scrollView - super.init(parentObject: scrollView, delegateProxy: RxScrollViewDelegateProxy.self) - } - - // Register known implementations - public static func registerKnownImplementations() { - self.register { RxScrollViewDelegateProxy(scrollView: $0) } - self.register { RxTableViewDelegateProxy(tableView: $0) } - self.register { RxCollectionViewDelegateProxy(collectionView: $0) } - self.register { RxTextViewDelegateProxy(textView: $0) } - } - - fileprivate var _contentOffsetBehaviorSubject: BehaviorSubject? - fileprivate var _contentOffsetPublishSubject: PublishSubject<()>? - - /// Optimized version used for observing content offset changes. - internal var contentOffsetBehaviorSubject: BehaviorSubject { - if let subject = _contentOffsetBehaviorSubject { - return subject - } - - let subject = BehaviorSubject(value: self.scrollView?.contentOffset ?? CGPoint.zero) - _contentOffsetBehaviorSubject = subject - - return subject - } - - /// Optimized version used for observing content offset changes. - internal var contentOffsetPublishSubject: PublishSubject<()> { - if let subject = _contentOffsetPublishSubject { - return subject - } - - let subject = PublishSubject<()>() - _contentOffsetPublishSubject = subject - - return subject - } - - // MARK: delegate methods - - /// For more information take a look at `DelegateProxyType`. - public func scrollViewDidScroll(_ scrollView: UIScrollView) { - if let subject = _contentOffsetBehaviorSubject { - subject.on(.next(scrollView.contentOffset)) - } - if let subject = _contentOffsetPublishSubject { - subject.on(.next(())) - } - self._forwardToDelegate?.scrollViewDidScroll?(scrollView) - } - - deinit { - if let subject = _contentOffsetBehaviorSubject { - subject.on(.completed) - } - - if let subject = _contentOffsetPublishSubject { - subject.on(.completed) - } - } -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxSearchBarDelegateProxy.swift b/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxSearchBarDelegateProxy.swift deleted file mode 100644 index 532ab68..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxSearchBarDelegateProxy.swift +++ /dev/null @@ -1,39 +0,0 @@ -// -// RxSearchBarDelegateProxy.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 7/4/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -extension UISearchBar: HasDelegate { - public typealias Delegate = UISearchBarDelegate -} - -/// For more information take a look at `DelegateProxyType`. -open class RxSearchBarDelegateProxy - : DelegateProxy - , DelegateProxyType - , UISearchBarDelegate { - - /// Typed parent object. - public weak private(set) var searchBar: UISearchBar? - - /// - parameter searchBar: Parent object for delegate proxy. - public init(searchBar: ParentObject) { - self.searchBar = searchBar - super.init(parentObject: searchBar, delegateProxy: RxSearchBarDelegateProxy.self) - } - - // Register known implementations - public static func registerKnownImplementations() { - self.register { RxSearchBarDelegateProxy(searchBar: $0) } - } -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxSearchControllerDelegateProxy.swift b/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxSearchControllerDelegateProxy.swift deleted file mode 100644 index 8341aa3..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxSearchControllerDelegateProxy.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// RxSearchControllerDelegateProxy.swift -// RxCocoa -// -// Created by Segii Shulga on 3/17/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) - -import RxSwift -import UIKit - -extension UISearchController: HasDelegate { - public typealias Delegate = UISearchControllerDelegate -} - -/// For more information take a look at `DelegateProxyType`. -@available(iOS 8.0, *) -open class RxSearchControllerDelegateProxy - : DelegateProxy - , DelegateProxyType - , UISearchControllerDelegate { - - /// Typed parent object. - public weak private(set) var searchController: UISearchController? - - /// - parameter searchController: Parent object for delegate proxy. - public init(searchController: UISearchController) { - self.searchController = searchController - super.init(parentObject: searchController, delegateProxy: RxSearchControllerDelegateProxy.self) - } - - // Register known implementations - public static func registerKnownImplementations() { - self.register { RxSearchControllerDelegateProxy(searchController: $0) } - } -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTabBarControllerDelegateProxy.swift b/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTabBarControllerDelegateProxy.swift deleted file mode 100644 index 585894c..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTabBarControllerDelegateProxy.swift +++ /dev/null @@ -1,39 +0,0 @@ -// -// RxTabBarControllerDelegateProxy.swift -// RxCocoa -// -// Created by Yusuke Kita on 2016/12/07. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -extension UITabBarController: HasDelegate { - public typealias Delegate = UITabBarControllerDelegate -} - -/// For more information take a look at `DelegateProxyType`. -open class RxTabBarControllerDelegateProxy - : DelegateProxy - , DelegateProxyType - , UITabBarControllerDelegate { - - /// Typed parent object. - public weak private(set) var tabBar: UITabBarController? - - /// - parameter tabBar: Parent object for delegate proxy. - public init(tabBar: ParentObject) { - self.tabBar = tabBar - super.init(parentObject: tabBar, delegateProxy: RxTabBarControllerDelegateProxy.self) - } - - // Register known implementations - public static func registerKnownImplementations() { - self.register { RxTabBarControllerDelegateProxy(tabBar: $0) } - } -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTabBarDelegateProxy.swift b/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTabBarDelegateProxy.swift deleted file mode 100644 index c4a1704..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTabBarDelegateProxy.swift +++ /dev/null @@ -1,49 +0,0 @@ -// -// RxTabBarDelegateProxy.swift -// RxCocoa -// -// Created by Jesse Farless on 5/14/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -extension UITabBar: HasDelegate { - public typealias Delegate = UITabBarDelegate -} - -/// For more information take a look at `DelegateProxyType`. -open class RxTabBarDelegateProxy - : DelegateProxy - , DelegateProxyType - , UITabBarDelegate { - - /// Typed parent object. - public weak private(set) var tabBar: UITabBar? - - /// - parameter tabBar: Parent object for delegate proxy. - public init(tabBar: ParentObject) { - self.tabBar = tabBar - super.init(parentObject: tabBar, delegateProxy: RxTabBarDelegateProxy.self) - } - - // Register known implementations - public static func registerKnownImplementations() { - self.register { RxTabBarDelegateProxy(tabBar: $0) } - } - - /// For more information take a look at `DelegateProxyType`. - open class func currentDelegate(for object: ParentObject) -> UITabBarDelegate? { - return object.delegate - } - - /// For more information take a look at `DelegateProxyType`. - open class func setCurrentDelegate(_ delegate: UITabBarDelegate?, to object: ParentObject) { - object.delegate = delegate - } -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTableViewDataSourcePrefetchingProxy.swift b/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTableViewDataSourcePrefetchingProxy.swift deleted file mode 100644 index a8bdf41..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTableViewDataSourcePrefetchingProxy.swift +++ /dev/null @@ -1,93 +0,0 @@ -// -// RxTableViewDataSourcePrefetchingProxy.swift -// RxCocoa -// -// Created by Rowan Livingstone on 2/15/18. -// Copyright © 2018 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -@available(iOS 10.0, tvOS 10.0, *) -extension UITableView: HasPrefetchDataSource { - public typealias PrefetchDataSource = UITableViewDataSourcePrefetching -} - -@available(iOS 10.0, tvOS 10.0, *) -fileprivate let tableViewPrefetchDataSourceNotSet = TableViewPrefetchDataSourceNotSet() - -@available(iOS 10.0, tvOS 10.0, *) -fileprivate final class TableViewPrefetchDataSourceNotSet - : NSObject - , UITableViewDataSourcePrefetching { - - func tableView(_ tableView: UITableView, prefetchRowsAt indexPaths: [IndexPath]) {} - -} - -@available(iOS 10.0, tvOS 10.0, *) -open class RxTableViewDataSourcePrefetchingProxy - : DelegateProxy - , DelegateProxyType - , UITableViewDataSourcePrefetching { - - /// Typed parent object. - public weak private(set) var tableView: UITableView? - - /// - parameter tableView: Parent object for delegate proxy. - public init(tableView: ParentObject) { - self.tableView = tableView - super.init(parentObject: tableView, delegateProxy: RxTableViewDataSourcePrefetchingProxy.self) - } - - // Register known implementations - public static func registerKnownImplementations() { - self.register { RxTableViewDataSourcePrefetchingProxy(tableView: $0) } - } - - fileprivate var _prefetchRowsPublishSubject: PublishSubject<[IndexPath]>? - - /// Optimized version used for observing prefetch rows callbacks. - internal var prefetchRowsPublishSubject: PublishSubject<[IndexPath]> { - if let subject = _prefetchRowsPublishSubject { - return subject - } - - let subject = PublishSubject<[IndexPath]>() - _prefetchRowsPublishSubject = subject - - return subject - } - - private weak var _requiredMethodsPrefetchDataSource: UITableViewDataSourcePrefetching? = tableViewPrefetchDataSourceNotSet - - // MARK: delegate - - /// Required delegate method implementation. - public func tableView(_ tableView: UITableView, prefetchRowsAt indexPaths: [IndexPath]) { - if let subject = _prefetchRowsPublishSubject { - subject.on(.next(indexPaths)) - } - - (_requiredMethodsPrefetchDataSource ?? tableViewPrefetchDataSourceNotSet).tableView(tableView, prefetchRowsAt: indexPaths) - } - - /// For more information take a look at `DelegateProxyType`. - open override func setForwardToDelegate(_ forwardToDelegate: UITableViewDataSourcePrefetching?, retainDelegate: Bool) { - _requiredMethodsPrefetchDataSource = forwardToDelegate ?? tableViewPrefetchDataSourceNotSet - super.setForwardToDelegate(forwardToDelegate, retainDelegate: retainDelegate) - } - - deinit { - if let subject = _prefetchRowsPublishSubject { - subject.on(.completed) - } - } - -} - -#endif - diff --git a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTableViewDataSourceProxy.swift b/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTableViewDataSourceProxy.swift deleted file mode 100644 index 7536d1b..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTableViewDataSourceProxy.swift +++ /dev/null @@ -1,75 +0,0 @@ -// -// RxTableViewDataSourceProxy.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 6/15/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -extension UITableView: HasDataSource { - public typealias DataSource = UITableViewDataSource -} - -fileprivate let tableViewDataSourceNotSet = TableViewDataSourceNotSet() - -fileprivate final class TableViewDataSourceNotSet - : NSObject - , UITableViewDataSource { - - func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { - return 0 - } - - func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { - rxAbstractMethod(message: dataSourceNotSet) - } -} - -/// For more information take a look at `DelegateProxyType`. -open class RxTableViewDataSourceProxy - : DelegateProxy - , DelegateProxyType - , UITableViewDataSource { - - /// Typed parent object. - public weak private(set) var tableView: UITableView? - - /// - parameter tableView: Parent object for delegate proxy. - public init(tableView: UITableView) { - self.tableView = tableView - super.init(parentObject: tableView, delegateProxy: RxTableViewDataSourceProxy.self) - } - - // Register known implementations - public static func registerKnownImplementations() { - self.register { RxTableViewDataSourceProxy(tableView: $0) } - } - - fileprivate weak var _requiredMethodsDataSource: UITableViewDataSource? = tableViewDataSourceNotSet - - // MARK: delegate - - /// Required delegate method implementation. - public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { - return (_requiredMethodsDataSource ?? tableViewDataSourceNotSet).tableView(tableView, numberOfRowsInSection: section) - } - - /// Required delegate method implementation. - public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { - return (_requiredMethodsDataSource ?? tableViewDataSourceNotSet).tableView(tableView, cellForRowAt: indexPath) - } - - /// For more information take a look at `DelegateProxyType`. - open override func setForwardToDelegate(_ forwardToDelegate: UITableViewDataSource?, retainDelegate: Bool) { - _requiredMethodsDataSource = forwardToDelegate ?? tableViewDataSourceNotSet - super.setForwardToDelegate(forwardToDelegate, retainDelegate: retainDelegate) - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTableViewDelegateProxy.swift b/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTableViewDelegateProxy.swift deleted file mode 100644 index 86a8758..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTableViewDelegateProxy.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// RxTableViewDelegateProxy.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 6/15/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -/// For more information take a look at `DelegateProxyType`. -open class RxTableViewDelegateProxy - : RxScrollViewDelegateProxy - , UITableViewDelegate { - - /// Typed parent object. - public weak private(set) var tableView: UITableView? - - /// - parameter tableView: Parent object for delegate proxy. - public init(tableView: UITableView) { - self.tableView = tableView - super.init(scrollView: tableView) - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTextStorageDelegateProxy.swift b/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTextStorageDelegateProxy.swift deleted file mode 100644 index 12669f9..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTextStorageDelegateProxy.swift +++ /dev/null @@ -1,37 +0,0 @@ -// -// RxTextStorageDelegateProxy.swift -// RxCocoa -// -// Created by Segii Shulga on 12/30/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - - import RxSwift - import UIKit - - extension NSTextStorage: HasDelegate { - public typealias Delegate = NSTextStorageDelegate - } - - open class RxTextStorageDelegateProxy - : DelegateProxy - , DelegateProxyType - , NSTextStorageDelegate { - - /// Typed parent object. - public weak private(set) var textStorage: NSTextStorage? - - /// - parameter textStorage: Parent object for delegate proxy. - public init(textStorage: NSTextStorage) { - self.textStorage = textStorage - super.init(parentObject: textStorage, delegateProxy: RxTextStorageDelegateProxy.self) - } - - // Register known implementations - public static func registerKnownImplementations() { - self.register { RxTextStorageDelegateProxy(textStorage: $0) } - } - } -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTextViewDelegateProxy.swift b/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTextViewDelegateProxy.swift deleted file mode 100644 index c8a1dfd..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTextViewDelegateProxy.swift +++ /dev/null @@ -1,43 +0,0 @@ -// -// RxTextViewDelegateProxy.swift -// RxCocoa -// -// Created by Yuta ToKoRo on 7/19/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -/// For more information take a look at `DelegateProxyType`. -open class RxTextViewDelegateProxy - : RxScrollViewDelegateProxy - , UITextViewDelegate { - - /// Typed parent object. - public weak private(set) var textView: UITextView? - - /// - parameter textview: Parent object for delegate proxy. - public init(textView: UITextView) { - self.textView = textView - super.init(scrollView: textView) - } - - // MARK: delegate methods - - /// For more information take a look at `DelegateProxyType`. - @objc open func textView(_ textView: UITextView, shouldChangeTextIn range: NSRange, replacementText text: String) -> Bool { - /** - We've had some issues with observing text changes. This is here just in case we need the same hack in future and that - we wouldn't need to change the public interface. - */ - let forwardToDelegate = self.forwardToDelegate() as? UITextViewDelegate - return forwardToDelegate?.textView?(textView, - shouldChangeTextIn: range, - replacementText: text) ?? true - } -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxWebViewDelegateProxy.swift b/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxWebViewDelegateProxy.swift deleted file mode 100644 index 36a03dc..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxWebViewDelegateProxy.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// RxWebViewDelegateProxy.swift -// RxCocoa -// -// Created by Andrew Breckenridge on 9/26/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) - -import UIKit -import RxSwift - -extension UIWebView: HasDelegate { - public typealias Delegate = UIWebViewDelegate -} - -open class RxWebViewDelegateProxy - : DelegateProxy - , DelegateProxyType - , UIWebViewDelegate { - - /// Typed parent object. - public weak private(set) var webView: UIWebView? - - /// - parameter webView: Parent object for delegate proxy. - public init(webView: ParentObject) { - self.webView = webView - super.init(parentObject: webView, delegateProxy: RxWebViewDelegateProxy.self) - } - - // Register known implementations - public static func registerKnownImplementations() { - self.register { RxWebViewDelegateProxy(webView: $0) } - } -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UIActivityIndicatorView+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UIActivityIndicatorView+Rx.swift deleted file mode 100644 index bf00996..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UIActivityIndicatorView+Rx.swift +++ /dev/null @@ -1,29 +0,0 @@ -// -// UIActivityIndicatorView+Rx.swift -// RxCocoa -// -// Created by Ivan Persidskiy on 02/12/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -extension Reactive where Base: UIActivityIndicatorView { - - /// Bindable sink for `startAnimating()`, `stopAnimating()` methods. - public var isAnimating: Binder { - return Binder(self.base) { activityIndicator, active in - if active { - activityIndicator.startAnimating() - } else { - activityIndicator.stopAnimating() - } - } - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UIAlertAction+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UIAlertAction+Rx.swift deleted file mode 100644 index a992fe1..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UIAlertAction+Rx.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// UIAlertAction+Rx.swift -// RxCocoa -// -// Created by Andrew Breckenridge on 5/7/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -extension Reactive where Base: UIAlertAction { - - /// Bindable sink for `enabled` property. - public var isEnabled: Binder { - return Binder(self.base) { alertAction, value in - alertAction.isEnabled = value - } - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UIApplication+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UIApplication+Rx.swift deleted file mode 100644 index c6ed134..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UIApplication+Rx.swift +++ /dev/null @@ -1,24 +0,0 @@ -// -// UIApplication+Rx.swift -// RxCocoa -// -// Created by Mads Bøgeskov on 18/01/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) - - import UIKit - import RxSwift - - extension Reactive where Base: UIApplication { - - /// Bindable sink for `networkActivityIndicatorVisible`. - public var isNetworkActivityIndicatorVisible: Binder { - return Binder(self.base) { application, active in - application.isNetworkActivityIndicatorVisible = active - } - } - } -#endif - diff --git a/Pods/RxCocoa/RxCocoa/iOS/UIBarButtonItem+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UIBarButtonItem+Rx.swift deleted file mode 100644 index 8bed531..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UIBarButtonItem+Rx.swift +++ /dev/null @@ -1,87 +0,0 @@ -// -// UIBarButtonItem+Rx.swift -// RxCocoa -// -// Created by Daniel Tartaglia on 5/31/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -fileprivate var rx_tap_key: UInt8 = 0 - -extension Reactive where Base: UIBarButtonItem { - - /// Bindable sink for `enabled` property. - public var isEnabled: Binder { - return Binder(self.base) { element, value in - element.isEnabled = value - } - } - - /// Bindable sink for `title` property. - public var title: Binder { - return Binder(self.base) { element, value in - element.title = value - } - } - - /// Reactive wrapper for target action pattern on `self`. - public var tap: ControlEvent<()> { - let source = lazyInstanceObservable(&rx_tap_key) { () -> Observable<()> in - Observable.create { [weak control = self.base] observer in - guard let control = control else { - observer.on(.completed) - return Disposables.create() - } - let target = BarButtonItemTarget(barButtonItem: control) { - observer.on(.next(())) - } - return target - } - .takeUntil(self.deallocated) - .share() - } - - return ControlEvent(events: source) - } -} - - -@objc -final class BarButtonItemTarget: RxTarget { - typealias Callback = () -> Void - - weak var barButtonItem: UIBarButtonItem? - var callback: Callback! - - init(barButtonItem: UIBarButtonItem, callback: @escaping () -> Void) { - self.barButtonItem = barButtonItem - self.callback = callback - super.init() - barButtonItem.target = self - barButtonItem.action = #selector(BarButtonItemTarget.action(_:)) - } - - override func dispose() { - super.dispose() -#if DEBUG - MainScheduler.ensureRunningOnMainThread() -#endif - - barButtonItem?.target = nil - barButtonItem?.action = nil - - callback = nil - } - - @objc func action(_ sender: AnyObject) { - callback() - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UIButton+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UIButton+Rx.swift deleted file mode 100644 index c022058..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UIButton+Rx.swift +++ /dev/null @@ -1,90 +0,0 @@ -// -// UIButton+Rx.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 3/28/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) - -import RxSwift -import UIKit - -extension Reactive where Base: UIButton { - - /// Reactive wrapper for `TouchUpInside` control event. - public var tap: ControlEvent { - return controlEvent(.touchUpInside) - } -} - -#endif - -#if os(tvOS) - -import RxSwift -import UIKit - -extension Reactive where Base: UIButton { - - /// Reactive wrapper for `PrimaryActionTriggered` control event. - public var primaryAction: ControlEvent { - return controlEvent(.primaryActionTriggered) - } - -} - -#endif - -#if os(iOS) || os(tvOS) - -import RxSwift -import UIKit - -#if swift(>=4.2) - public typealias UIControlState = UIControl.State -#endif - -extension Reactive where Base: UIButton { - - /// Reactive wrapper for `setTitle(_:for:)` - public func title(for controlState: UIControlState = []) -> Binder { - return Binder(self.base) { button, title -> Void in - button.setTitle(title, for: controlState) - } - } - - /// Reactive wrapper for `setImage(_:for:)` - public func image(for controlState: UIControlState = []) -> Binder { - return Binder(self.base) { button, image -> Void in - button.setImage(image, for: controlState) - } - } - - /// Reactive wrapper for `setBackgroundImage(_:for:)` - public func backgroundImage(for controlState: UIControlState = []) -> Binder { - return Binder(self.base) { button, image -> Void in - button.setBackgroundImage(image, for: controlState) - } - } - -} -#endif - -#if os(iOS) || os(tvOS) - - import RxSwift - import UIKit - - extension Reactive where Base: UIButton { - - /// Reactive wrapper for `setAttributedTitle(_:controlState:)` - public func attributedTitle(for controlState: UIControlState = []) -> Binder { - return Binder(self.base) { button, attributedTitle -> Void in - button.setAttributedTitle(attributedTitle, for: controlState) - } - } - - } -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UICollectionView+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UICollectionView+Rx.swift deleted file mode 100644 index 507b6aa..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UICollectionView+Rx.swift +++ /dev/null @@ -1,380 +0,0 @@ -// -// UICollectionView+Rx.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 4/2/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import RxSwift -import UIKit - -// Items - -extension Reactive where Base: UICollectionView { - - /** - Binds sequences of elements to collection view items. - - - parameter source: Observable sequence of items. - - parameter cellFactory: Transform between sequence elements and view cells. - - returns: Disposable object that can be used to unbind. - - Example - - let items = Observable.just([ - 1, - 2, - 3 - ]) - - items - .bind(to: collectionView.rx.items) { (collectionView, row, element) in - let indexPath = IndexPath(row: row, section: 0) - let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "Cell", for: indexPath) as! NumberCell - cell.value?.text = "\(element) @ \(row)" - return cell - } - .disposed(by: disposeBag) - */ - public func items - (_ source: O) - -> (_ cellFactory: @escaping (UICollectionView, Int, S.Iterator.Element) -> UICollectionViewCell) - -> Disposable where O.E == S { - return { cellFactory in - let dataSource = RxCollectionViewReactiveArrayDataSourceSequenceWrapper(cellFactory: cellFactory) - return self.items(dataSource: dataSource)(source) - } - - } - - /** - Binds sequences of elements to collection view items. - - - parameter cellIdentifier: Identifier used to dequeue cells. - - parameter source: Observable sequence of items. - - parameter configureCell: Transform between sequence elements and view cells. - - parameter cellType: Type of table view cell. - - returns: Disposable object that can be used to unbind. - - Example - - let items = Observable.just([ - 1, - 2, - 3 - ]) - - items - .bind(to: collectionView.rx.items(cellIdentifier: "Cell", cellType: NumberCell.self)) { (row, element, cell) in - cell.value?.text = "\(element) @ \(row)" - } - .disposed(by: disposeBag) - */ - public func items - (cellIdentifier: String, cellType: Cell.Type = Cell.self) - -> (_ source: O) - -> (_ configureCell: @escaping (Int, S.Iterator.Element, Cell) -> Void) - -> Disposable where O.E == S { - return { source in - return { configureCell in - let dataSource = RxCollectionViewReactiveArrayDataSourceSequenceWrapper { cv, i, item in - let indexPath = IndexPath(item: i, section: 0) - let cell = cv.dequeueReusableCell(withReuseIdentifier: cellIdentifier, for: indexPath) as! Cell - configureCell(i, item, cell) - return cell - } - - return self.items(dataSource: dataSource)(source) - } - } - } - - - /** - Binds sequences of elements to collection view items using a custom reactive data used to perform the transformation. - - - parameter dataSource: Data source used to transform elements to view cells. - - parameter source: Observable sequence of items. - - returns: Disposable object that can be used to unbind. - - Example - - let dataSource = RxCollectionViewSectionedReloadDataSource>() - - let items = Observable.just([ - SectionModel(model: "First section", items: [ - 1.0, - 2.0, - 3.0 - ]), - SectionModel(model: "Second section", items: [ - 1.0, - 2.0, - 3.0 - ]), - SectionModel(model: "Third section", items: [ - 1.0, - 2.0, - 3.0 - ]) - ]) - - dataSource.configureCell = { (dataSource, cv, indexPath, element) in - let cell = cv.dequeueReusableCell(withReuseIdentifier: "Cell", for: indexPath) as! NumberCell - cell.value?.text = "\(element) @ row \(indexPath.row)" - return cell - } - - items - .bind(to: collectionView.rx.items(dataSource: dataSource)) - .disposed(by: disposeBag) - */ - public func items< - DataSource: RxCollectionViewDataSourceType & UICollectionViewDataSource, - O: ObservableType> - (dataSource: DataSource) - -> (_ source: O) - -> Disposable where DataSource.Element == O.E - { - return { source in - // This is called for sideeffects only, and to make sure delegate proxy is in place when - // data source is being bound. - // This is needed because theoretically the data source subscription itself might - // call `self.rx.delegate`. If that happens, it might cause weird side effects since - // setting data source will set delegate, and UICollectionView might get into a weird state. - // Therefore it's better to set delegate proxy first, just to be sure. - _ = self.delegate - // Strong reference is needed because data source is in use until result subscription is disposed - return source.subscribeProxyDataSource(ofObject: self.base, dataSource: dataSource, retainDataSource: true) { [weak collectionView = self.base] (_: RxCollectionViewDataSourceProxy, event) -> Void in - guard let collectionView = collectionView else { - return - } - dataSource.collectionView(collectionView, observedEvent: event) - } - } - } -} - -extension Reactive where Base: UICollectionView { - public typealias DisplayCollectionViewCellEvent = (cell: UICollectionViewCell, at: IndexPath) - public typealias DisplayCollectionViewSupplementaryViewEvent = (supplementaryView: UICollectionReusableView, elementKind: String, at: IndexPath) - - /// Reactive wrapper for `dataSource`. - /// - /// For more information take a look at `DelegateProxyType` protocol documentation. - public var dataSource: DelegateProxy { - return RxCollectionViewDataSourceProxy.proxy(for: base) - } - - /// Installs data source as forwarding delegate on `rx.dataSource`. - /// Data source won't be retained. - /// - /// It enables using normal delegate mechanism with reactive delegate mechanism. - /// - /// - parameter dataSource: Data source object. - /// - returns: Disposable object that can be used to unbind the data source. - public func setDataSource(_ dataSource: UICollectionViewDataSource) - -> Disposable { - return RxCollectionViewDataSourceProxy.installForwardDelegate(dataSource, retainDelegate: false, onProxyForObject: self.base) - } - - /// Reactive wrapper for `delegate` message `collectionView(_:didSelectItemAtIndexPath:)`. - public var itemSelected: ControlEvent { - let source = delegate.methodInvoked(#selector(UICollectionViewDelegate.collectionView(_:didSelectItemAt:))) - .map { a in - return try castOrThrow(IndexPath.self, a[1]) - } - - return ControlEvent(events: source) - } - - /// Reactive wrapper for `delegate` message `collectionView(_:didDeselectItemAtIndexPath:)`. - public var itemDeselected: ControlEvent { - let source = delegate.methodInvoked(#selector(UICollectionViewDelegate.collectionView(_:didDeselectItemAt:))) - .map { a in - return try castOrThrow(IndexPath.self, a[1]) - } - - return ControlEvent(events: source) - } - - /// Reactive wrapper for `delegate` message `collectionView(_:didHighlightItemAt:)`. - public var itemHighlighted: ControlEvent { - let source = delegate.methodInvoked(#selector(UICollectionViewDelegate.collectionView(_:didHighlightItemAt:))) - .map { a in - return try castOrThrow(IndexPath.self, a[1]) - } - - return ControlEvent(events: source) - } - - /// Reactive wrapper for `delegate` message `collectionView(_:didUnhighlightItemAt:)`. - public var itemUnhighlighted: ControlEvent { - let source = delegate.methodInvoked(#selector(UICollectionViewDelegate.collectionView(_:didUnhighlightItemAt:))) - .map { a in - return try castOrThrow(IndexPath.self, a[1]) - } - - return ControlEvent(events: source) - } - - /// Reactive wrapper for `delegate` message `collectionView:willDisplay:forItemAt:`. - public var willDisplayCell: ControlEvent { - let source: Observable = self.delegate.methodInvoked(#selector(UICollectionViewDelegate.collectionView(_:willDisplay:forItemAt:))) - .map { a in - return (try castOrThrow(UICollectionViewCell.self, a[1]), try castOrThrow(IndexPath.self, a[2])) - } - - return ControlEvent(events: source) - } - - /// Reactive wrapper for `delegate` message `collectionView(_:willDisplaySupplementaryView:forElementKind:at:)`. - public var willDisplaySupplementaryView: ControlEvent { - let source: Observable = self.delegate.methodInvoked(#selector(UICollectionViewDelegate.collectionView(_:willDisplaySupplementaryView:forElementKind:at:))) - .map { a in - return (try castOrThrow(UICollectionReusableView.self, a[1]), - try castOrThrow(String.self, a[2]), - try castOrThrow(IndexPath.self, a[3])) - } - - return ControlEvent(events: source) - } - - /// Reactive wrapper for `delegate` message `collectionView:didEndDisplaying:forItemAt:`. - public var didEndDisplayingCell: ControlEvent { - let source: Observable = self.delegate.methodInvoked(#selector(UICollectionViewDelegate.collectionView(_:didEndDisplaying:forItemAt:))) - .map { a in - return (try castOrThrow(UICollectionViewCell.self, a[1]), try castOrThrow(IndexPath.self, a[2])) - } - - return ControlEvent(events: source) - } - - /// Reactive wrapper for `delegate` message `collectionView(_:didEndDisplayingSupplementaryView:forElementOfKind:at:)`. - public var didEndDisplayingSupplementaryView: ControlEvent { - let source: Observable = self.delegate.methodInvoked(#selector(UICollectionViewDelegate.collectionView(_:didEndDisplayingSupplementaryView:forElementOfKind:at:))) - .map { a in - return (try castOrThrow(UICollectionReusableView.self, a[1]), - try castOrThrow(String.self, a[2]), - try castOrThrow(IndexPath.self, a[3])) - } - - return ControlEvent(events: source) - } - - /// Reactive wrapper for `delegate` message `collectionView(_:didSelectItemAtIndexPath:)`. - /// - /// It can be only used when one of the `rx.itemsWith*` methods is used to bind observable sequence, - /// or any other data source conforming to `SectionedViewDataSourceType` protocol. - /// - /// ``` - /// collectionView.rx.modelSelected(MyModel.self) - /// .map { ... - /// ``` - public func modelSelected(_ modelType: T.Type) -> ControlEvent { - let source: Observable = itemSelected.flatMap { [weak view = self.base as UICollectionView] indexPath -> Observable in - guard let view = view else { - return Observable.empty() - } - - return Observable.just(try view.rx.model(at: indexPath)) - } - - return ControlEvent(events: source) - } - - /// Reactive wrapper for `delegate` message `collectionView(_:didSelectItemAtIndexPath:)`. - /// - /// It can be only used when one of the `rx.itemsWith*` methods is used to bind observable sequence, - /// or any other data source conforming to `SectionedViewDataSourceType` protocol. - /// - /// ``` - /// collectionView.rx.modelDeselected(MyModel.self) - /// .map { ... - /// ``` - public func modelDeselected(_ modelType: T.Type) -> ControlEvent { - let source: Observable = itemDeselected.flatMap { [weak view = self.base as UICollectionView] indexPath -> Observable in - guard let view = view else { - return Observable.empty() - } - - return Observable.just(try view.rx.model(at: indexPath)) - } - - return ControlEvent(events: source) - } - - /// Synchronous helper method for retrieving a model at indexPath through a reactive data source - public func model(at indexPath: IndexPath) throws -> T { - let dataSource: SectionedViewDataSourceType = castOrFatalError(self.dataSource.forwardToDelegate(), message: "This method only works in case one of the `rx.itemsWith*` methods was used.") - - let element = try dataSource.model(at: indexPath) - - return try castOrThrow(T.self, element) - } -} - -@available(iOS 10.0, tvOS 10.0, *) -extension Reactive where Base: UICollectionView { - - /// Reactive wrapper for `prefetchDataSource`. - /// - /// For more information take a look at `DelegateProxyType` protocol documentation. - public var prefetchDataSource: DelegateProxy { - return RxCollectionViewDataSourcePrefetchingProxy.proxy(for: base) - } - - /** - Installs prefetch data source as forwarding delegate on `rx.prefetchDataSource`. - Prefetch data source won't be retained. - - It enables using normal delegate mechanism with reactive delegate mechanism. - - - parameter prefetchDataSource: Prefetch data source object. - - returns: Disposable object that can be used to unbind the data source. - */ - public func setPrefetchDataSource(_ prefetchDataSource: UICollectionViewDataSourcePrefetching) - -> Disposable { - return RxCollectionViewDataSourcePrefetchingProxy.installForwardDelegate(prefetchDataSource, retainDelegate: false, onProxyForObject: self.base) - } - - /// Reactive wrapper for `prefetchDataSource` message `collectionView(_:prefetchItemsAt:)`. - public var prefetchItems: ControlEvent<[IndexPath]> { - let source = RxCollectionViewDataSourcePrefetchingProxy.proxy(for: base).prefetchItemsPublishSubject - return ControlEvent(events: source) - } - - /// Reactive wrapper for `prefetchDataSource` message `collectionView(_:cancelPrefetchingForItemsAt:)`. - public var cancelPrefetchingForItems: ControlEvent<[IndexPath]> { - let source = prefetchDataSource.methodInvoked(#selector(UICollectionViewDataSourcePrefetching.collectionView(_:cancelPrefetchingForItemsAt:))) - .map { a in - return try castOrThrow(Array.self, a[1]) - } - - return ControlEvent(events: source) - } - -} -#endif - -#if os(tvOS) - -extension Reactive where Base: UICollectionView { - - /// Reactive wrapper for `delegate` message `collectionView(_:didUpdateFocusInContext:withAnimationCoordinator:)`. - public var didUpdateFocusInContextWithAnimationCoordinator: ControlEvent<(context: UICollectionViewFocusUpdateContext, animationCoordinator: UIFocusAnimationCoordinator)> { - - let source = delegate.methodInvoked(#selector(UICollectionViewDelegate.collectionView(_:didUpdateFocusIn:with:))) - .map { a -> (context: UICollectionViewFocusUpdateContext, animationCoordinator: UIFocusAnimationCoordinator) in - let context = try castOrThrow(UICollectionViewFocusUpdateContext.self, a[1]) - let animationCoordinator = try castOrThrow(UIFocusAnimationCoordinator.self, a[2]) - return (context: context, animationCoordinator: animationCoordinator) - } - - return ControlEvent(events: source) - } -} -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UIControl+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UIControl+Rx.swift deleted file mode 100644 index 8229db0..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UIControl+Rx.swift +++ /dev/null @@ -1,105 +0,0 @@ -// -// UIControl+Rx.swift -// RxCocoa -// -// Created by Daniel Tartaglia on 5/23/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import RxSwift -import UIKit - -#if swift(>=4.2) - public typealias UIControlEvents = UIControl.Event -#endif - -extension Reactive where Base: UIControl { - - /// Bindable sink for `enabled` property. - public var isEnabled: Binder { - return Binder(self.base) { control, value in - control.isEnabled = value - } - } - - /// Bindable sink for `selected` property. - public var isSelected: Binder { - return Binder(self.base) { control, selected in - control.isSelected = selected - } - } - - /// Reactive wrapper for target action pattern. - /// - /// - parameter controlEvents: Filter for observed event types. - public func controlEvent(_ controlEvents: UIControlEvents) -> ControlEvent<()> { - let source: Observable = Observable.create { [weak control = self.base] observer in - MainScheduler.ensureRunningOnMainThread() - - guard let control = control else { - observer.on(.completed) - return Disposables.create() - } - - let controlTarget = ControlTarget(control: control, controlEvents: controlEvents) { _ in - observer.on(.next(())) - } - - return Disposables.create(with: controlTarget.dispose) - } - .takeUntil(deallocated) - - return ControlEvent(events: source) - } - - /// Creates a `ControlProperty` that is triggered by target/action pattern value updates. - /// - /// - parameter controlEvents: Events that trigger value update sequence elements. - /// - parameter getter: Property value getter. - /// - parameter setter: Property value setter. - public func controlProperty( - editingEvents: UIControlEvents, - getter: @escaping (Base) -> T, - setter: @escaping (Base, T) -> Void - ) -> ControlProperty { - let source: Observable = Observable.create { [weak weakControl = base] observer in - guard let control = weakControl else { - observer.on(.completed) - return Disposables.create() - } - - observer.on(.next(getter(control))) - - let controlTarget = ControlTarget(control: control, controlEvents: editingEvents) { _ in - if let control = weakControl { - observer.on(.next(getter(control))) - } - } - - return Disposables.create(with: controlTarget.dispose) - } - .takeUntil(deallocated) - - let bindingObserver = Binder(base, binding: setter) - - return ControlProperty(values: source, valueSink: bindingObserver) - } - - /// This is a separate method to better communicate to public consumers that - /// an `editingEvent` needs to fire for control property to be updated. - internal func controlPropertyWithDefaultEvents( - editingEvents: UIControlEvents = [.allEditingEvents, .valueChanged], - getter: @escaping (Base) -> T, - setter: @escaping (Base, T) -> Void - ) -> ControlProperty { - return controlProperty( - editingEvents: editingEvents, - getter: getter, - setter: setter - ) - } -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UIDatePicker+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UIDatePicker+Rx.swift deleted file mode 100644 index 233be86..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UIDatePicker+Rx.swift +++ /dev/null @@ -1,43 +0,0 @@ -// -// UIDatePicker+Rx.swift -// RxCocoa -// -// Created by Daniel Tartaglia on 5/31/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) - -import RxSwift -import UIKit - -extension Reactive where Base: UIDatePicker { - /// Reactive wrapper for `date` property. - public var date: ControlProperty { - return value - } - - /// Reactive wrapper for `date` property. - public var value: ControlProperty { - return base.rx.controlPropertyWithDefaultEvents( - getter: { datePicker in - datePicker.date - }, setter: { datePicker, value in - datePicker.date = value - } - ) - } - - /// Reactive wrapper for `countDownDuration` property. - public var countDownDuration: ControlProperty { - return base.rx.controlPropertyWithDefaultEvents( - getter: { datePicker in - datePicker.countDownDuration - }, setter: { datePicker, value in - datePicker.countDownDuration = value - } - ) - } -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UIGestureRecognizer+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UIGestureRecognizer+Rx.swift deleted file mode 100644 index 1ad762d..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UIGestureRecognizer+Rx.swift +++ /dev/null @@ -1,75 +0,0 @@ -// -// UIGestureRecognizer+Rx.swift -// RxCocoa -// -// Created by Carlos García on 10/6/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -// This should be only used from `MainScheduler` -final class GestureTarget: RxTarget { - typealias Callback = (Recognizer) -> Void - - let selector = #selector(ControlTarget.eventHandler(_:)) - - weak var gestureRecognizer: Recognizer? - var callback: Callback? - - init(_ gestureRecognizer: Recognizer, callback: @escaping Callback) { - self.gestureRecognizer = gestureRecognizer - self.callback = callback - - super.init() - - gestureRecognizer.addTarget(self, action: selector) - - let method = self.method(for: selector) - if method == nil { - fatalError("Can't find method") - } - } - - @objc func eventHandler(_ sender: UIGestureRecognizer) { - if let callback = self.callback, let gestureRecognizer = self.gestureRecognizer { - callback(gestureRecognizer) - } - } - - override func dispose() { - super.dispose() - - self.gestureRecognizer?.removeTarget(self, action: self.selector) - self.callback = nil - } -} - -extension Reactive where Base: UIGestureRecognizer { - - /// Reactive wrapper for gesture recognizer events. - public var event: ControlEvent { - let source: Observable = Observable.create { [weak control = self.base] observer in - MainScheduler.ensureRunningOnMainThread() - - guard let control = control else { - observer.on(.completed) - return Disposables.create() - } - - let observer = GestureTarget(control) { control in - observer.on(.next(control)) - } - - return observer - }.takeUntil(deallocated) - - return ControlEvent(events: source) - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UIImageView+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UIImageView+Rx.swift deleted file mode 100644 index b6315c2..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UIImageView+Rx.swift +++ /dev/null @@ -1,24 +0,0 @@ -// -// UIImageView+Rx.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 4/1/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import RxSwift -import UIKit - -extension Reactive where Base: UIImageView { - - /// Bindable sink for `image` property. - public var image: Binder { - return Binder(base) { imageView, image in - imageView.image = image - } - } -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UILabel+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UILabel+Rx.swift deleted file mode 100644 index f533f56..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UILabel+Rx.swift +++ /dev/null @@ -1,32 +0,0 @@ -// -// UILabel+Rx.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 4/1/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import RxSwift -import UIKit - -extension Reactive where Base: UILabel { - - /// Bindable sink for `text` property. - public var text: Binder { - return Binder(self.base) { label, text in - label.text = text - } - } - - /// Bindable sink for `attributedText` property. - public var attributedText: Binder { - return Binder(self.base) { label, text in - label.attributedText = text - } - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UINavigationController+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UINavigationController+Rx.swift deleted file mode 100644 index 2391351..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UINavigationController+Rx.swift +++ /dev/null @@ -1,49 +0,0 @@ -// -// UINavigationController+Rx.swift -// RxCocoa -// -// Created by Diogo on 13/04/17. -// Copyright © 2017 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import RxSwift -import UIKit - -extension Reactive where Base: UINavigationController { - public typealias ShowEvent = (viewController: UIViewController, animated: Bool) - - /// Reactive wrapper for `delegate`. - /// - /// For more information take a look at `DelegateProxyType` protocol documentation. - public var delegate: DelegateProxy { - return RxNavigationControllerDelegateProxy.proxy(for: base) - } - - /// Reactive wrapper for delegate method `navigationController(:willShow:animated:)`. - public var willShow: ControlEvent { - let source: Observable = delegate - .methodInvoked(#selector(UINavigationControllerDelegate.navigationController(_:willShow:animated:))) - .map { arg in - let viewController = try castOrThrow(UIViewController.self, arg[1]) - let animated = try castOrThrow(Bool.self, arg[2]) - return (viewController, animated) - } - return ControlEvent(events: source) - } - - /// Reactive wrapper for delegate method `navigationController(:didShow:animated:)`. - public var didShow: ControlEvent { - let source: Observable = delegate - .methodInvoked(#selector(UINavigationControllerDelegate.navigationController(_:didShow:animated:))) - .map { arg in - let viewController = try castOrThrow(UIViewController.self, arg[1]) - let animated = try castOrThrow(Bool.self, arg[2]) - return (viewController, animated) - } - return ControlEvent(events: source) - } -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UINavigationItem+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UINavigationItem+Rx.swift deleted file mode 100644 index 6250033..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UINavigationItem+Rx.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// UINavigationItem+Rx.swift -// RxCocoa -// -// Created by kumapo on 2016/05/09. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -extension Reactive where Base: UINavigationItem { - - /// Bindable sink for `title` property. - public var title: Binder { - return Binder(self.base) { navigationItem, text in - navigationItem.title = text - } - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UIPageControl+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UIPageControl+Rx.swift deleted file mode 100644 index f21decf..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UIPageControl+Rx.swift +++ /dev/null @@ -1,32 +0,0 @@ -// -// UIPageControl+Rx.swift -// RxCocoa -// -// Created by Francesco Puntillo on 14/04/2016. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import RxSwift -import UIKit - -extension Reactive where Base: UIPageControl { - - /// Bindable sink for `currentPage` property. - public var currentPage: Binder { - return Binder(self.base) { controller, page in - controller.currentPage = page - } - } - - /// Bindable sink for `numberOfPages` property. - public var numberOfPages: Binder { - return Binder(self.base) { controller, page in - controller.numberOfPages = page - } - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UIPickerView+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UIPickerView+Rx.swift deleted file mode 100644 index b8e3dae..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UIPickerView+Rx.swift +++ /dev/null @@ -1,224 +0,0 @@ -// -// UIPickerView+Rx.swift -// RxCocoa -// -// Created by Segii Shulga on 5/12/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) - - import RxSwift - import UIKit - - extension Reactive where Base: UIPickerView { - - /// Reactive wrapper for `delegate`. - /// For more information take a look at `DelegateProxyType` protocol documentation. - public var delegate: DelegateProxy { - return RxPickerViewDelegateProxy.proxy(for: base) - } - - /// Installs delegate as forwarding delegate on `delegate`. - /// Delegate won't be retained. - /// - /// It enables using normal delegate mechanism with reactive delegate mechanism. - /// - /// - parameter delegate: Delegate object. - /// - returns: Disposable object that can be used to unbind the delegate. - public func setDelegate(_ delegate: UIPickerViewDelegate) - -> Disposable { - return RxPickerViewDelegateProxy.installForwardDelegate(delegate, retainDelegate: false, onProxyForObject: self.base) - } - - /** - Reactive wrapper for `dataSource`. - - For more information take a look at `DelegateProxyType` protocol documentation. - */ - public var dataSource: DelegateProxy { - return RxPickerViewDataSourceProxy.proxy(for: base) - } - - /** - Reactive wrapper for `delegate` message `pickerView:didSelectRow:inComponent:`. - */ - public var itemSelected: ControlEvent<(row: Int, component: Int)> { - let source = delegate - .methodInvoked(#selector(UIPickerViewDelegate.pickerView(_:didSelectRow:inComponent:))) - .map { - return (row: try castOrThrow(Int.self, $0[1]), component: try castOrThrow(Int.self, $0[2])) - } - return ControlEvent(events: source) - } - - /** - Reactive wrapper for `delegate` message `pickerView:didSelectRow:inComponent:`. - - It can be only used when one of the `rx.itemTitles, rx.itemAttributedTitles, items(_ source: O)` methods is used to bind observable sequence, - or any other data source conforming to a `ViewDataSourceType` protocol. - - ``` - pickerView.rx.modelSelected(MyModel.self) - .map { ... - ``` - - parameter modelType: Type of a Model which bound to the dataSource - */ - public func modelSelected(_ modelType: T.Type) -> ControlEvent<[T]> { - let source = itemSelected.flatMap { [weak view = self.base as UIPickerView] _, component -> Observable<[T]> in - guard let view = view else { - return Observable.empty() - } - - let model: [T] = try (0 ..< view.numberOfComponents).map { component in - let row = view.selectedRow(inComponent: component) - return try view.rx.model(at: IndexPath(row: row, section: component)) - } - - return Observable.just(model) - } - - return ControlEvent(events: source) - } - - /** - Binds sequences of elements to picker view rows. - - - parameter source: Observable sequence of items. - - parameter titleForRow: Transform between sequence elements and row titles. - - returns: Disposable object that can be used to unbind. - - Example: - - let items = Observable.just([ - "First Item", - "Second Item", - "Third Item" - ]) - - items - .bind(to: pickerView.rx.itemTitles) { (row, element) in - return element.title - } - .disposed(by: disposeBag) - - */ - - public func itemTitles - (_ source: O) - -> (_ titleForRow: @escaping (Int, S.Iterator.Element) -> String?) - -> Disposable where O.E == S { - return { titleForRow in - let adapter = RxStringPickerViewAdapter(titleForRow: titleForRow) - return self.items(adapter: adapter)(source) - } - } - - /** - Binds sequences of elements to picker view rows. - - - parameter source: Observable sequence of items. - - parameter attributedTitleForRow: Transform between sequence elements and row attributed titles. - - returns: Disposable object that can be used to unbind. - - Example: - - let items = Observable.just([ - "First Item", - "Second Item", - "Third Item" - ]) - - items - .bind(to: pickerView.rx.itemAttributedTitles) { (row, element) in - return NSAttributedString(string: element.title) - } - .disposed(by: disposeBag) - - */ - - public func itemAttributedTitles - (_ source: O) - -> (_ attributedTitleForRow: @escaping (Int, S.Iterator.Element) -> NSAttributedString?) - -> Disposable where O.E == S { - return { attributedTitleForRow in - let adapter = RxAttributedStringPickerViewAdapter(attributedTitleForRow: attributedTitleForRow) - return self.items(adapter: adapter)(source) - } - } - - /** - Binds sequences of elements to picker view rows. - - - parameter source: Observable sequence of items. - - parameter viewForRow: Transform between sequence elements and row views. - - returns: Disposable object that can be used to unbind. - - Example: - - let items = Observable.just([ - "First Item", - "Second Item", - "Third Item" - ]) - - items - .bind(to: pickerView.rx.items) { (row, element, view) in - guard let myView = view as? MyView else { - let view = MyView() - view.configure(with: element) - return view - } - myView.configure(with: element) - return myView - } - .disposed(by: disposeBag) - - */ - - public func items - (_ source: O) - -> (_ viewForRow: @escaping (Int, S.Iterator.Element, UIView?) -> UIView) - -> Disposable where O.E == S { - return { viewForRow in - let adapter = RxPickerViewAdapter(viewForRow: viewForRow) - return self.items(adapter: adapter)(source) - } - } - - /** - Binds sequences of elements to picker view rows using a custom reactive adapter used to perform the transformation. - This method will retain the adapter for as long as the subscription isn't disposed (result `Disposable` - being disposed). - In case `source` observable sequence terminates successfully, the adapter will present latest element - until the subscription isn't disposed. - - - parameter adapter: Adapter used to transform elements to picker components. - - parameter source: Observable sequence of items. - - returns: Disposable object that can be used to unbind. - */ - public func items(adapter: Adapter) - -> (_ source: O) - -> Disposable where O.E == Adapter.Element { - return { source in - let delegateSubscription = self.setDelegate(adapter) - let dataSourceSubscription = source.subscribeProxyDataSource(ofObject: self.base, dataSource: adapter, retainDataSource: true, binding: { [weak pickerView = self.base] (_: RxPickerViewDataSourceProxy, event) in - guard let pickerView = pickerView else { return } - adapter.pickerView(pickerView, observedEvent: event) - }) - return Disposables.create(delegateSubscription, dataSourceSubscription) - } - } - - /** - Synchronous helper method for retrieving a model at indexPath through a reactive data source. - */ - public func model(at indexPath: IndexPath) throws -> T { - let dataSource: SectionedViewDataSourceType = castOrFatalError(self.dataSource.forwardToDelegate(), message: "This method only works in case one of the `rx.itemTitles, rx.itemAttributedTitles, items(_ source: O)` methods was used.") - - return castOrFatalError(try dataSource.model(at: indexPath)) - } - } - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UIProgressView+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UIProgressView+Rx.swift deleted file mode 100644 index 7a39d9a..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UIProgressView+Rx.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// UIProgressView+Rx.swift -// RxCocoa -// -// Created by Samuel Bae on 2/27/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import RxSwift -import UIKit - -extension Reactive where Base: UIProgressView { - - /// Bindable sink for `progress` property - public var progress: Binder { - return Binder(self.base) { progressView, progress in - progressView.progress = progress - } - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UIRefreshControl+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UIRefreshControl+Rx.swift deleted file mode 100644 index cdb10be..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UIRefreshControl+Rx.swift +++ /dev/null @@ -1,28 +0,0 @@ -// -// UIRefreshControl+Rx.swift -// RxCocoa -// -// Created by Yosuke Ishikawa on 1/31/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) - -import UIKit -import RxSwift - -extension Reactive where Base: UIRefreshControl { - /// Bindable sink for `beginRefreshing()`, `endRefreshing()` methods. - public var isRefreshing: Binder { - return Binder(self.base) { refreshControl, refresh in - if refresh { - refreshControl.beginRefreshing() - } else { - refreshControl.endRefreshing() - } - } - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UIScrollView+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UIScrollView+Rx.swift deleted file mode 100644 index 2d5d74c..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UIScrollView+Rx.swift +++ /dev/null @@ -1,138 +0,0 @@ -// -// UIScrollView+Rx.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 4/3/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - - import RxSwift - import UIKit - - extension Reactive where Base: UIScrollView { - public typealias EndZoomEvent = (view: UIView?, scale: CGFloat) - public typealias WillEndDraggingEvent = (velocity: CGPoint, targetContentOffset: UnsafeMutablePointer) - - /// Reactive wrapper for `delegate`. - /// - /// For more information take a look at `DelegateProxyType` protocol documentation. - public var delegate: DelegateProxy { - return RxScrollViewDelegateProxy.proxy(for: base) - } - - /// Reactive wrapper for `contentOffset`. - public var contentOffset: ControlProperty { - let proxy = RxScrollViewDelegateProxy.proxy(for: base) - - let bindingObserver = Binder(self.base) { scrollView, contentOffset in - scrollView.contentOffset = contentOffset - } - - return ControlProperty(values: proxy.contentOffsetBehaviorSubject, valueSink: bindingObserver) - } - - /// Bindable sink for `scrollEnabled` property. - public var isScrollEnabled: Binder { - return Binder(self.base) { scrollView, scrollEnabled in - scrollView.isScrollEnabled = scrollEnabled - } - } - - /// Reactive wrapper for delegate method `scrollViewDidScroll` - public var didScroll: ControlEvent { - let source = RxScrollViewDelegateProxy.proxy(for: base).contentOffsetPublishSubject - return ControlEvent(events: source) - } - - /// Reactive wrapper for delegate method `scrollViewWillBeginDecelerating` - public var willBeginDecelerating: ControlEvent { - let source = delegate.methodInvoked(#selector(UIScrollViewDelegate.scrollViewWillBeginDecelerating(_:))).map { _ in } - return ControlEvent(events: source) - } - - /// Reactive wrapper for delegate method `scrollViewDidEndDecelerating` - public var didEndDecelerating: ControlEvent { - let source = delegate.methodInvoked(#selector(UIScrollViewDelegate.scrollViewDidEndDecelerating(_:))).map { _ in } - return ControlEvent(events: source) - } - - /// Reactive wrapper for delegate method `scrollViewWillBeginDragging` - public var willBeginDragging: ControlEvent { - let source = delegate.methodInvoked(#selector(UIScrollViewDelegate.scrollViewWillBeginDragging(_:))).map { _ in } - return ControlEvent(events: source) - } - - /// Reactive wrapper for delegate method `scrollViewWillEndDragging(_:withVelocity:targetContentOffset:)` - public var willEndDragging: ControlEvent { - let source = delegate.methodInvoked(#selector(UIScrollViewDelegate.scrollViewWillEndDragging(_:withVelocity:targetContentOffset:))) - .map { value -> WillEndDraggingEvent in - let velocity = try castOrThrow(CGPoint.self, value[1]) - let targetContentOffsetValue = try castOrThrow(NSValue.self, value[2]) - - guard let rawPointer = targetContentOffsetValue.pointerValue else { throw RxCocoaError.unknown } - let typedPointer = rawPointer.bindMemory(to: CGPoint.self, capacity: MemoryLayout.size) - - return (velocity, typedPointer) - } - return ControlEvent(events: source) - } - - /// Reactive wrapper for delegate method `scrollViewDidEndDragging(_:willDecelerate:)` - public var didEndDragging: ControlEvent { - let source = delegate.methodInvoked(#selector(UIScrollViewDelegate.scrollViewDidEndDragging(_:willDecelerate:))).map { value -> Bool in - return try castOrThrow(Bool.self, value[1]) - } - return ControlEvent(events: source) - } - - /// Reactive wrapper for delegate method `scrollViewDidZoom` - public var didZoom: ControlEvent { - let source = delegate.methodInvoked(#selector(UIScrollViewDelegate.scrollViewDidZoom)).map { _ in } - return ControlEvent(events: source) - } - - - /// Reactive wrapper for delegate method `scrollViewDidScrollToTop` - public var didScrollToTop: ControlEvent { - let source = delegate.methodInvoked(#selector(UIScrollViewDelegate.scrollViewDidScrollToTop(_:))).map { _ in } - return ControlEvent(events: source) - } - - /// Reactive wrapper for delegate method `scrollViewDidEndScrollingAnimation` - public var didEndScrollingAnimation: ControlEvent { - let source = delegate.methodInvoked(#selector(UIScrollViewDelegate.scrollViewDidEndScrollingAnimation(_:))).map { _ in } - return ControlEvent(events: source) - } - - /// Reactive wrapper for delegate method `scrollViewWillBeginZooming(_:with:)` - public var willBeginZooming: ControlEvent { - let source = delegate.methodInvoked(#selector(UIScrollViewDelegate.scrollViewWillBeginZooming(_:with:))).map { value -> UIView? in - return try castOptionalOrThrow(UIView.self, value[1] as AnyObject) - } - return ControlEvent(events: source) - } - - /// Reactive wrapper for delegate method `scrollViewDidEndZooming(_:with:atScale:)` - public var didEndZooming: ControlEvent { - let source = delegate.methodInvoked(#selector(UIScrollViewDelegate.scrollViewDidEndZooming(_:with:atScale:))).map { value -> EndZoomEvent in - return (try castOptionalOrThrow(UIView.self, value[1] as AnyObject), try castOrThrow(CGFloat.self, value[2])) - } - return ControlEvent(events: source) - } - - /// Installs delegate as forwarding delegate on `delegate`. - /// Delegate won't be retained. - /// - /// It enables using normal delegate mechanism with reactive delegate mechanism. - /// - /// - parameter delegate: Delegate object. - /// - returns: Disposable object that can be used to unbind the delegate. - public func setDelegate(_ delegate: UIScrollViewDelegate) - -> Disposable { - return RxScrollViewDelegateProxy.installForwardDelegate(delegate, retainDelegate: false, onProxyForObject: self.base) - } - } - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UISearchBar+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UISearchBar+Rx.swift deleted file mode 100644 index 0560a89..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UISearchBar+Rx.swift +++ /dev/null @@ -1,125 +0,0 @@ -// -// UISearchBar+Rx.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 3/28/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import RxSwift -import UIKit - -extension Reactive where Base: UISearchBar { - - /// Reactive wrapper for `delegate`. - /// - /// For more information take a look at `DelegateProxyType` protocol documentation. - public var delegate: DelegateProxy { - return RxSearchBarDelegateProxy.proxy(for: base) - } - - /// Reactive wrapper for `text` property. - public var text: ControlProperty { - return value - } - - /// Reactive wrapper for `text` property. - public var value: ControlProperty { - let source: Observable = Observable.deferred { [weak searchBar = self.base as UISearchBar] () -> Observable in - let text = searchBar?.text - - let textDidChange = (searchBar?.rx.delegate.methodInvoked(#selector(UISearchBarDelegate.searchBar(_:textDidChange:))) ?? Observable.empty()) - let didEndEditing = (searchBar?.rx.delegate.methodInvoked(#selector(UISearchBarDelegate.searchBarTextDidEndEditing(_:))) ?? Observable.empty()) - - return Observable.merge(textDidChange, didEndEditing) - .map { _ in searchBar?.text ?? "" } - .startWith(text) - } - - let bindingObserver = Binder(self.base) { (searchBar, text: String?) in - searchBar.text = text - } - - return ControlProperty(values: source, valueSink: bindingObserver) - } - - /// Reactive wrapper for `selectedScopeButtonIndex` property. - public var selectedScopeButtonIndex: ControlProperty { - let source: Observable = Observable.deferred { [weak source = self.base as UISearchBar] () -> Observable in - let index = source?.selectedScopeButtonIndex ?? 0 - - return (source?.rx.delegate.methodInvoked(#selector(UISearchBarDelegate.searchBar(_:selectedScopeButtonIndexDidChange:))) ?? Observable.empty()) - .map { a in - return try castOrThrow(Int.self, a[1]) - } - .startWith(index) - } - - let bindingObserver = Binder(self.base) { (searchBar, index: Int) in - searchBar.selectedScopeButtonIndex = index - } - - return ControlProperty(values: source, valueSink: bindingObserver) - } - -#if os(iOS) - /// Reactive wrapper for delegate method `searchBarCancelButtonClicked`. - public var cancelButtonClicked: ControlEvent { - let source: Observable = self.delegate.methodInvoked(#selector(UISearchBarDelegate.searchBarCancelButtonClicked(_:))) - .map { _ in - return () - } - return ControlEvent(events: source) - } - - /// Reactive wrapper for delegate method `searchBarBookmarkButtonClicked`. - public var bookmarkButtonClicked: ControlEvent { - let source: Observable = self.delegate.methodInvoked(#selector(UISearchBarDelegate.searchBarBookmarkButtonClicked(_:))) - .map { _ in - return () - } - return ControlEvent(events: source) - } - - /// Reactive wrapper for delegate method `searchBarResultsListButtonClicked`. - public var resultsListButtonClicked: ControlEvent { - let source: Observable = self.delegate.methodInvoked(#selector(UISearchBarDelegate.searchBarResultsListButtonClicked(_:))) - .map { _ in - return () - } - return ControlEvent(events: source) - } -#endif - - /// Reactive wrapper for delegate method `searchBarSearchButtonClicked`. - public var searchButtonClicked: ControlEvent { - let source: Observable = self.delegate.methodInvoked(#selector(UISearchBarDelegate.searchBarSearchButtonClicked(_:))) - .map { _ in - return () - } - return ControlEvent(events: source) - } - - /// Reactive wrapper for delegate method `searchBarTextDidBeginEditing`. - public var textDidBeginEditing: ControlEvent { - let source: Observable = self.delegate.methodInvoked(#selector(UISearchBarDelegate.searchBarTextDidBeginEditing(_:))) - .map { _ in - return () - } - return ControlEvent(events: source) - } - - /// Reactive wrapper for delegate method `searchBarTextDidEndEditing`. - public var textDidEndEditing: ControlEvent { - let source: Observable = self.delegate.methodInvoked(#selector(UISearchBarDelegate.searchBarTextDidEndEditing(_:))) - .map { _ in - return () - } - return ControlEvent(events: source) - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UISearchController+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UISearchController+Rx.swift deleted file mode 100644 index 350c932..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UISearchController+Rx.swift +++ /dev/null @@ -1,59 +0,0 @@ -// -// UISearchController+Rx.swift -// RxCocoa -// -// Created by Segii Shulga on 3/17/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) - - import RxSwift - import UIKit - - @available(iOS 8.0, *) - extension Reactive where Base: UISearchController { - /// Reactive wrapper for `delegate`. - /// For more information take a look at `DelegateProxyType` protocol documentation. - public var delegate: DelegateProxy { - return RxSearchControllerDelegateProxy.proxy(for: base) - } - - /// Reactive wrapper for `delegate` message. - public var didDismiss: Observable { - return delegate - .methodInvoked( #selector(UISearchControllerDelegate.didDismissSearchController(_:))) - .map { _ in } - } - - /// Reactive wrapper for `delegate` message. - public var didPresent: Observable { - return delegate - .methodInvoked(#selector(UISearchControllerDelegate.didPresentSearchController(_:))) - .map { _ in } - } - - /// Reactive wrapper for `delegate` message. - public var present: Observable { - return delegate - .methodInvoked( #selector(UISearchControllerDelegate.presentSearchController(_:))) - .map { _ in } - } - - /// Reactive wrapper for `delegate` message. - public var willDismiss: Observable { - return delegate - .methodInvoked(#selector(UISearchControllerDelegate.willDismissSearchController(_:))) - .map { _ in } - } - - /// Reactive wrapper for `delegate` message. - public var willPresent: Observable { - return delegate - .methodInvoked( #selector(UISearchControllerDelegate.willPresentSearchController(_:))) - .map { _ in } - } - - } - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UISegmentedControl+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UISegmentedControl+Rx.swift deleted file mode 100644 index 31995a6..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UISegmentedControl+Rx.swift +++ /dev/null @@ -1,54 +0,0 @@ -// -// UISegmentedControl+Rx.swift -// RxCocoa -// -// Created by Carlos García on 8/7/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -extension Reactive where Base: UISegmentedControl { - /// Reactive wrapper for `selectedSegmentIndex` property. - public var selectedSegmentIndex: ControlProperty { - return value - } - - /// Reactive wrapper for `selectedSegmentIndex` property. - public var value: ControlProperty { - return base.rx.controlPropertyWithDefaultEvents( - getter: { segmentedControl in - segmentedControl.selectedSegmentIndex - }, setter: { segmentedControl, value in - segmentedControl.selectedSegmentIndex = value - } - ) - } - - /// Reactive wrapper for `setEnabled(_:forSegmentAt:)` - public func enabledForSegment(at index: Int) -> Binder { - return Binder(self.base) { segmentedControl, segmentEnabled -> Void in - segmentedControl.setEnabled(segmentEnabled, forSegmentAt: index) - } - } - - /// Reactive wrapper for `setTitle(_:forSegmentAt:)` - public func titleForSegment(at index: Int) -> Binder { - return Binder(self.base) { segmentedControl, title -> Void in - segmentedControl.setTitle(title, forSegmentAt: index) - } - } - - /// Reactive wrapper for `setImage(_:forSegmentAt:)` - public func imageForSegment(at index: Int) -> Binder { - return Binder(self.base) { segmentedControl, image -> Void in - segmentedControl.setImage(image, forSegmentAt: index) - } - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UISlider+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UISlider+Rx.swift deleted file mode 100644 index 07d4adb..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UISlider+Rx.swift +++ /dev/null @@ -1,29 +0,0 @@ -// -// UISlider+Rx.swift -// RxCocoa -// -// Created by Alexander van der Werff on 28/05/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) - -import RxSwift -import UIKit - -extension Reactive where Base: UISlider { - - /// Reactive wrapper for `value` property. - public var value: ControlProperty { - return base.rx.controlPropertyWithDefaultEvents( - getter: { slider in - slider.value - }, setter: { slider, value in - slider.value = value - } - ) - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UIStepper+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UIStepper+Rx.swift deleted file mode 100644 index 1fcb57a..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UIStepper+Rx.swift +++ /dev/null @@ -1,37 +0,0 @@ -// -// UIStepper+Rx.swift -// RxCocoa -// -// Created by Yuta ToKoRo on 9/1/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) - -import UIKit -import RxSwift - -extension Reactive where Base: UIStepper { - - /// Reactive wrapper for `value` property. - public var value: ControlProperty { - return base.rx.controlPropertyWithDefaultEvents( - getter: { stepper in - stepper.value - }, setter: { stepper, value in - stepper.value = value - } - ) - } - - /// Reactive wrapper for `stepValue` property. - public var stepValue: Binder { - return Binder(self.base) { stepper, value in - stepper.stepValue = value - } - } - -} - -#endif - diff --git a/Pods/RxCocoa/RxCocoa/iOS/UISwitch+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UISwitch+Rx.swift deleted file mode 100644 index c96f91a..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UISwitch+Rx.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// UISwitch+Rx.swift -// RxCocoa -// -// Created by Carlos García on 8/7/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) - -import UIKit -import RxSwift - -extension Reactive where Base: UISwitch { - - /// Reactive wrapper for `isOn` property. - public var isOn: ControlProperty { - return value - } - - /// Reactive wrapper for `isOn` property. - /// - /// ⚠️ Versions prior to iOS 10.2 were leaking `UISwitch`'s, so on those versions - /// underlying observable sequence won't complete when nothing holds a strong reference - /// to `UISwitch`. - public var value: ControlProperty { - return base.rx.controlPropertyWithDefaultEvents( - getter: { uiSwitch in - uiSwitch.isOn - }, setter: { uiSwitch, value in - uiSwitch.isOn = value - } - ) - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UITabBar+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UITabBar+Rx.swift deleted file mode 100644 index 7879684..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UITabBar+Rx.swift +++ /dev/null @@ -1,92 +0,0 @@ -// -// UITabBar+Rx.swift -// RxCocoa -// -// Created by Jesse Farless on 5/13/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -/** - iOS only - */ -#if os(iOS) -extension Reactive where Base: UITabBar { - - /// Reactive wrapper for `delegate` message `tabBar(_:willBeginCustomizing:)`. - public var willBeginCustomizing: ControlEvent<[UITabBarItem]> { - - let source = delegate.methodInvoked(#selector(UITabBarDelegate.tabBar(_:willBeginCustomizing:))) - .map { a in - return try castOrThrow([UITabBarItem].self, a[1]) - } - - return ControlEvent(events: source) - } - - /// Reactive wrapper for `delegate` message `tabBar(_:didBeginCustomizing:)`. - public var didBeginCustomizing: ControlEvent<[UITabBarItem]> { - let source = delegate.methodInvoked(#selector(UITabBarDelegate.tabBar(_:didBeginCustomizing:))) - .map { a in - return try castOrThrow([UITabBarItem].self, a[1]) - } - - return ControlEvent(events: source) - } - - /// Reactive wrapper for `delegate` message `tabBar(_:willEndCustomizing:changed:)`. - public var willEndCustomizing: ControlEvent<([UITabBarItem], Bool)> { - let source = delegate.methodInvoked(#selector(UITabBarDelegate.tabBar(_:willEndCustomizing:changed:))) - .map { (a: [Any]) -> (([UITabBarItem], Bool)) in - let items = try castOrThrow([UITabBarItem].self, a[1]) - let changed = try castOrThrow(Bool.self, a[2]) - return (items, changed) - } - - return ControlEvent(events: source) - } - - /// Reactive wrapper for `delegate` message `tabBar(_:didEndCustomizing:changed:)`. - public var didEndCustomizing: ControlEvent<([UITabBarItem], Bool)> { - let source = delegate.methodInvoked(#selector(UITabBarDelegate.tabBar(_:didEndCustomizing:changed:))) - .map { (a: [Any]) -> (([UITabBarItem], Bool)) in - let items = try castOrThrow([UITabBarItem].self, a[1]) - let changed = try castOrThrow(Bool.self, a[2]) - return (items, changed) - } - - return ControlEvent(events: source) - } - -} -#endif - -/** - iOS and tvOS - */ - -extension Reactive where Base: UITabBar { - /// Reactive wrapper for `delegate`. - /// - /// For more information take a look at `DelegateProxyType` protocol documentation. - public var delegate: DelegateProxy { - return RxTabBarDelegateProxy.proxy(for: base) - } - - /// Reactive wrapper for `delegate` message `tabBar(_:didSelect:)`. - public var didSelectItem: ControlEvent { - let source = delegate.methodInvoked(#selector(UITabBarDelegate.tabBar(_:didSelect:))) - .map { a in - return try castOrThrow(UITabBarItem.self, a[1]) - } - - return ControlEvent(events: source) - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UITabBarController+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UITabBarController+Rx.swift deleted file mode 100644 index 34a3501..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UITabBarController+Rx.swift +++ /dev/null @@ -1,79 +0,0 @@ -// -// UITabBarController+Rx.swift -// RxCocoa -// -// Created by Yusuke Kita on 2016/12/07. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -/** - iOS only - */ -#if os(iOS) -extension Reactive where Base: UITabBarController { - - /// Reactive wrapper for `delegate` message `tabBarController:willBeginCustomizing:`. - public var willBeginCustomizing: ControlEvent<[UIViewController]> { - let source = delegate.methodInvoked(#selector(UITabBarControllerDelegate.tabBarController(_:willBeginCustomizing:))) - .map { a in - return try castOrThrow([UIViewController].self, a[1]) - } - - return ControlEvent(events: source) - } - - /// Reactive wrapper for `delegate` message `tabBarController:willEndCustomizing:changed:`. - public var willEndCustomizing: ControlEvent<(viewControllers: [UIViewController], changed: Bool)> { - let source = delegate.methodInvoked(#selector(UITabBarControllerDelegate.tabBarController(_:willEndCustomizing:changed:))) - .map { (a: [Any]) -> (viewControllers: [UIViewController], changed: Bool) in - let viewControllers = try castOrThrow([UIViewController].self, a[1]) - let changed = try castOrThrow(Bool.self, a[2]) - return (viewControllers, changed) - } - - return ControlEvent(events: source) - } - - /// Reactive wrapper for `delegate` message `tabBarController:didEndCustomizing:changed:`. - public var didEndCustomizing: ControlEvent<(viewControllers: [UIViewController], changed: Bool)> { - let source = delegate.methodInvoked(#selector(UITabBarControllerDelegate.tabBarController(_:didEndCustomizing:changed:))) - .map { (a: [Any]) -> (viewControllers: [UIViewController], changed: Bool) in - let viewControllers = try castOrThrow([UIViewController].self, a[1]) - let changed = try castOrThrow(Bool.self, a[2]) - return (viewControllers, changed) - } - - return ControlEvent(events: source) - } -} -#endif - -/** - iOS and tvOS - */ - - extension Reactive where Base: UITabBarController { - /// Reactive wrapper for `delegate`. - /// - /// For more information take a look at `DelegateProxyType` protocol documentation. - public var delegate: DelegateProxy { - return RxTabBarControllerDelegateProxy.proxy(for: base) - } - - /// Reactive wrapper for `delegate` message `tabBarController:didSelect:`. - public var didSelect: ControlEvent { - let source = delegate.methodInvoked(#selector(UITabBarControllerDelegate.tabBarController(_:didSelect:))) - .map { a in - return try castOrThrow(UIViewController.self, a[1]) - } - - return ControlEvent(events: source) - } -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UITabBarItem+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UITabBarItem+Rx.swift deleted file mode 100644 index 1664e27..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UITabBarItem+Rx.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// UITabBarItem+Rx.swift -// RxCocoa -// -// Created by Mateusz Derks on 04/03/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -extension Reactive where Base: UITabBarItem { - - /// Bindable sink for `badgeValue` property. - public var badgeValue: Binder { - return Binder(self.base) { tabBarItem, badgeValue in - tabBarItem.badgeValue = badgeValue - } - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UITableView+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UITableView+Rx.swift deleted file mode 100644 index e861e82..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UITableView+Rx.swift +++ /dev/null @@ -1,409 +0,0 @@ -// -// UITableView+Rx.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 4/2/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import RxSwift -import UIKit - -#if swift(>=4.2) - public typealias UITableViewCellEditingStyle = UITableViewCell.EditingStyle -#endif - -// Items - -extension Reactive where Base: UITableView { - - /** - Binds sequences of elements to table view rows. - - - parameter source: Observable sequence of items. - - parameter cellFactory: Transform between sequence elements and view cells. - - returns: Disposable object that can be used to unbind. - - Example: - - let items = Observable.just([ - "First Item", - "Second Item", - "Third Item" - ]) - - items - .bind(to: tableView.rx.items) { (tableView, row, element) in - let cell = tableView.dequeueReusableCell(withIdentifier: "Cell")! - cell.textLabel?.text = "\(element) @ row \(row)" - return cell - } - .disposed(by: disposeBag) - - */ - public func items - (_ source: O) - -> (_ cellFactory: @escaping (UITableView, Int, S.Iterator.Element) -> UITableViewCell) - -> Disposable - where O.E == S { - return { cellFactory in - let dataSource = RxTableViewReactiveArrayDataSourceSequenceWrapper(cellFactory: cellFactory) - return self.items(dataSource: dataSource)(source) - } - } - - /** - Binds sequences of elements to table view rows. - - - parameter cellIdentifier: Identifier used to dequeue cells. - - parameter source: Observable sequence of items. - - parameter configureCell: Transform between sequence elements and view cells. - - parameter cellType: Type of table view cell. - - returns: Disposable object that can be used to unbind. - - Example: - - let items = Observable.just([ - "First Item", - "Second Item", - "Third Item" - ]) - - items - .bind(to: tableView.rx.items(cellIdentifier: "Cell", cellType: UITableViewCell.self)) { (row, element, cell) in - cell.textLabel?.text = "\(element) @ row \(row)" - } - .disposed(by: disposeBag) - */ - public func items - (cellIdentifier: String, cellType: Cell.Type = Cell.self) - -> (_ source: O) - -> (_ configureCell: @escaping (Int, S.Iterator.Element, Cell) -> Void) - -> Disposable - where O.E == S { - return { source in - return { configureCell in - let dataSource = RxTableViewReactiveArrayDataSourceSequenceWrapper { tv, i, item in - let indexPath = IndexPath(item: i, section: 0) - let cell = tv.dequeueReusableCell(withIdentifier: cellIdentifier, for: indexPath) as! Cell - configureCell(i, item, cell) - return cell - } - return self.items(dataSource: dataSource)(source) - } - } - } - - - /** - Binds sequences of elements to table view rows using a custom reactive data used to perform the transformation. - This method will retain the data source for as long as the subscription isn't disposed (result `Disposable` - being disposed). - In case `source` observable sequence terminates successfully, the data source will present latest element - until the subscription isn't disposed. - - - parameter dataSource: Data source used to transform elements to view cells. - - parameter source: Observable sequence of items. - - returns: Disposable object that can be used to unbind. - */ - public func items< - DataSource: RxTableViewDataSourceType & UITableViewDataSource, - O: ObservableType> - (dataSource: DataSource) - -> (_ source: O) - -> Disposable - where DataSource.Element == O.E { - return { source in - // This is called for sideeffects only, and to make sure delegate proxy is in place when - // data source is being bound. - // This is needed because theoretically the data source subscription itself might - // call `self.rx.delegate`. If that happens, it might cause weird side effects since - // setting data source will set delegate, and UITableView might get into a weird state. - // Therefore it's better to set delegate proxy first, just to be sure. - _ = self.delegate - // Strong reference is needed because data source is in use until result subscription is disposed - return source.subscribeProxyDataSource(ofObject: self.base, dataSource: dataSource as UITableViewDataSource, retainDataSource: true) { [weak tableView = self.base] (_: RxTableViewDataSourceProxy, event) -> Void in - guard let tableView = tableView else { - return - } - dataSource.tableView(tableView, observedEvent: event) - } - } - } - -} - -extension Reactive where Base: UITableView { - /** - Reactive wrapper for `dataSource`. - - For more information take a look at `DelegateProxyType` protocol documentation. - */ - public var dataSource: DelegateProxy { - return RxTableViewDataSourceProxy.proxy(for: base) - } - - /** - Installs data source as forwarding delegate on `rx.dataSource`. - Data source won't be retained. - - It enables using normal delegate mechanism with reactive delegate mechanism. - - - parameter dataSource: Data source object. - - returns: Disposable object that can be used to unbind the data source. - */ - public func setDataSource(_ dataSource: UITableViewDataSource) - -> Disposable { - return RxTableViewDataSourceProxy.installForwardDelegate(dataSource, retainDelegate: false, onProxyForObject: self.base) - } - - // events - - /** - Reactive wrapper for `delegate` message `tableView:didSelectRowAtIndexPath:`. - */ - public var itemSelected: ControlEvent { - let source = self.delegate.methodInvoked(#selector(UITableViewDelegate.tableView(_:didSelectRowAt:))) - .map { a in - return try castOrThrow(IndexPath.self, a[1]) - } - - return ControlEvent(events: source) - } - - /** - Reactive wrapper for `delegate` message `tableView:didDeselectRowAtIndexPath:`. - */ - public var itemDeselected: ControlEvent { - let source = self.delegate.methodInvoked(#selector(UITableViewDelegate.tableView(_:didDeselectRowAt:))) - .map { a in - return try castOrThrow(IndexPath.self, a[1]) - } - - return ControlEvent(events: source) - } - - /** - Reactive wrapper for `delegate` message `tableView:accessoryButtonTappedForRowWithIndexPath:`. - */ - public var itemAccessoryButtonTapped: ControlEvent { - let source: Observable = self.delegate.methodInvoked(#selector(UITableViewDelegate.tableView(_:accessoryButtonTappedForRowWith:))) - .map { a in - return try castOrThrow(IndexPath.self, a[1]) - } - - return ControlEvent(events: source) - } - - /** - Reactive wrapper for `delegate` message `tableView:commitEditingStyle:forRowAtIndexPath:`. - */ - public var itemInserted: ControlEvent { - let source = self.dataSource.methodInvoked(#selector(UITableViewDataSource.tableView(_:commit:forRowAt:))) - .filter { a in - return UITableViewCellEditingStyle(rawValue: (try castOrThrow(NSNumber.self, a[1])).intValue) == .insert - } - .map { a in - return (try castOrThrow(IndexPath.self, a[2])) - } - - return ControlEvent(events: source) - } - - /** - Reactive wrapper for `delegate` message `tableView:commitEditingStyle:forRowAtIndexPath:`. - */ - public var itemDeleted: ControlEvent { - let source = self.dataSource.methodInvoked(#selector(UITableViewDataSource.tableView(_:commit:forRowAt:))) - .filter { a in - return UITableViewCellEditingStyle(rawValue: (try castOrThrow(NSNumber.self, a[1])).intValue) == .delete - } - .map { a in - return try castOrThrow(IndexPath.self, a[2]) - } - - return ControlEvent(events: source) - } - - /** - Reactive wrapper for `delegate` message `tableView:moveRowAtIndexPath:toIndexPath:`. - */ - public var itemMoved: ControlEvent { - let source: Observable = self.dataSource.methodInvoked(#selector(UITableViewDataSource.tableView(_:moveRowAt:to:))) - .map { a in - return (try castOrThrow(IndexPath.self, a[1]), try castOrThrow(IndexPath.self, a[2])) - } - - return ControlEvent(events: source) - } - - /** - Reactive wrapper for `delegate` message `tableView:willDisplayCell:forRowAtIndexPath:`. - */ - public var willDisplayCell: ControlEvent { - let source: Observable = self.delegate.methodInvoked(#selector(UITableViewDelegate.tableView(_:willDisplay:forRowAt:))) - .map { a in - return (try castOrThrow(UITableViewCell.self, a[1]), try castOrThrow(IndexPath.self, a[2])) - } - - return ControlEvent(events: source) - } - - /** - Reactive wrapper for `delegate` message `tableView:didEndDisplayingCell:forRowAtIndexPath:`. - */ - public var didEndDisplayingCell: ControlEvent { - let source: Observable = self.delegate.methodInvoked(#selector(UITableViewDelegate.tableView(_:didEndDisplaying:forRowAt:))) - .map { a in - return (try castOrThrow(UITableViewCell.self, a[1]), try castOrThrow(IndexPath.self, a[2])) - } - - return ControlEvent(events: source) - } - - /** - Reactive wrapper for `delegate` message `tableView:didSelectRowAtIndexPath:`. - - It can be only used when one of the `rx.itemsWith*` methods is used to bind observable sequence, - or any other data source conforming to `SectionedViewDataSourceType` protocol. - - ``` - tableView.rx.modelSelected(MyModel.self) - .map { ... - ``` - */ - public func modelSelected(_ modelType: T.Type) -> ControlEvent { - let source: Observable = self.itemSelected.flatMap { [weak view = self.base as UITableView] indexPath -> Observable in - guard let view = view else { - return Observable.empty() - } - - return Observable.just(try view.rx.model(at: indexPath)) - } - - return ControlEvent(events: source) - } - - /** - Reactive wrapper for `delegate` message `tableView:didDeselectRowAtIndexPath:`. - - It can be only used when one of the `rx.itemsWith*` methods is used to bind observable sequence, - or any other data source conforming to `SectionedViewDataSourceType` protocol. - - ``` - tableView.rx.modelDeselected(MyModel.self) - .map { ... - ``` - */ - public func modelDeselected(_ modelType: T.Type) -> ControlEvent { - let source: Observable = self.itemDeselected.flatMap { [weak view = self.base as UITableView] indexPath -> Observable in - guard let view = view else { - return Observable.empty() - } - - return Observable.just(try view.rx.model(at: indexPath)) - } - - return ControlEvent(events: source) - } - - /** - Reactive wrapper for `delegate` message `tableView:commitEditingStyle:forRowAtIndexPath:`. - - It can be only used when one of the `rx.itemsWith*` methods is used to bind observable sequence, - or any other data source conforming to `SectionedViewDataSourceType` protocol. - - ``` - tableView.rx.modelDeleted(MyModel.self) - .map { ... - ``` - */ - public func modelDeleted(_ modelType: T.Type) -> ControlEvent { - let source: Observable = self.itemDeleted.flatMap { [weak view = self.base as UITableView] indexPath -> Observable in - guard let view = view else { - return Observable.empty() - } - - return Observable.just(try view.rx.model(at: indexPath)) - } - - return ControlEvent(events: source) - } - - /** - Synchronous helper method for retrieving a model at indexPath through a reactive data source. - */ - public func model(at indexPath: IndexPath) throws -> T { - let dataSource: SectionedViewDataSourceType = castOrFatalError(self.dataSource.forwardToDelegate(), message: "This method only works in case one of the `rx.items*` methods was used.") - - let element = try dataSource.model(at: indexPath) - - return castOrFatalError(element) - } -} - -@available(iOS 10.0, tvOS 10.0, *) -extension Reactive where Base: UITableView { - - /// Reactive wrapper for `prefetchDataSource`. - /// - /// For more information take a look at `DelegateProxyType` protocol documentation. - public var prefetchDataSource: DelegateProxy { - return RxTableViewDataSourcePrefetchingProxy.proxy(for: base) - } - - /** - Installs prefetch data source as forwarding delegate on `rx.prefetchDataSource`. - Prefetch data source won't be retained. - - It enables using normal delegate mechanism with reactive delegate mechanism. - - - parameter prefetchDataSource: Prefetch data source object. - - returns: Disposable object that can be used to unbind the data source. - */ - public func setPrefetchDataSource(_ prefetchDataSource: UITableViewDataSourcePrefetching) - -> Disposable { - return RxTableViewDataSourcePrefetchingProxy.installForwardDelegate(prefetchDataSource, retainDelegate: false, onProxyForObject: self.base) - } - - /// Reactive wrapper for `prefetchDataSource` message `tableView(_:prefetchRowsAt:)`. - public var prefetchRows: ControlEvent<[IndexPath]> { - let source = RxTableViewDataSourcePrefetchingProxy.proxy(for: base).prefetchRowsPublishSubject - return ControlEvent(events: source) - } - - /// Reactive wrapper for `prefetchDataSource` message `tableView(_:cancelPrefetchingForRowsAt:)`. - public var cancelPrefetchingForRows: ControlEvent<[IndexPath]> { - let source = prefetchDataSource.methodInvoked(#selector(UITableViewDataSourcePrefetching.tableView(_:cancelPrefetchingForRowsAt:))) - .map { a in - return try castOrThrow(Array.self, a[1]) - } - - return ControlEvent(events: source) - } - -} -#endif - -#if os(tvOS) - - extension Reactive where Base: UITableView { - - /** - Reactive wrapper for `delegate` message `tableView:didUpdateFocusInContext:withAnimationCoordinator:`. - */ - public var didUpdateFocusInContextWithAnimationCoordinator: ControlEvent<(context: UITableViewFocusUpdateContext, animationCoordinator: UIFocusAnimationCoordinator)> { - - let source = delegate.methodInvoked(#selector(UITableViewDelegate.tableView(_:didUpdateFocusIn:with:))) - .map { a -> (context: UITableViewFocusUpdateContext, animationCoordinator: UIFocusAnimationCoordinator) in - let context = try castOrThrow(UITableViewFocusUpdateContext.self, a[1]) - let animationCoordinator = try castOrThrow(UIFocusAnimationCoordinator.self, a[2]) - return (context: context, animationCoordinator: animationCoordinator) - } - - return ControlEvent(events: source) - } - } -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UITextField+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UITextField+Rx.swift deleted file mode 100644 index 4f19c8b..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UITextField+Rx.swift +++ /dev/null @@ -1,56 +0,0 @@ -// -// UITextField+Rx.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 2/21/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import RxSwift -import UIKit - -extension Reactive where Base: UITextField { - /// Reactive wrapper for `text` property. - public var text: ControlProperty { - return value - } - - /// Reactive wrapper for `text` property. - public var value: ControlProperty { - return base.rx.controlPropertyWithDefaultEvents( - getter: { textField in - textField.text - }, - setter: { textField, value in - // This check is important because setting text value always clears control state - // including marked text selection which is imporant for proper input - // when IME input method is used. - if textField.text != value { - textField.text = value - } - } - ) - } - - /// Bindable sink for `attributedText` property. - public var attributedText: ControlProperty { - return base.rx.controlPropertyWithDefaultEvents( - getter: { textField in - textField.attributedText - }, - setter: { textField, value in - // This check is important because setting text value always clears control state - // including marked text selection which is imporant for proper input - // when IME input method is used. - if textField.attributedText != value { - textField.attributedText = value - } - } - ) - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UITextView+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UITextView+Rx.swift deleted file mode 100644 index 7e943ca..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UITextView+Rx.swift +++ /dev/null @@ -1,125 +0,0 @@ -// -// UITextView+Rx.swift -// RxCocoa -// -// Created by Yuta ToKoRo on 7/19/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -extension Reactive where Base: UITextView { - /// Reactive wrapper for `text` property - public var text: ControlProperty { - return value - } - - /// Reactive wrapper for `text` property. - public var value: ControlProperty { - let source: Observable = Observable.deferred { [weak textView = self.base] in - let text = textView?.text - - let textChanged = textView?.textStorage - // This project uses text storage notifications because - // that's the only way to catch autocorrect changes - // in all cases. Other suggestions are welcome. - .rx.didProcessEditingRangeChangeInLength - // This observe on is here because text storage - // will emit event while process is not completely done, - // so rebinding a value will cause an exception to be thrown. - .observeOn(MainScheduler.asyncInstance) - .map { _ in - return textView?.textStorage.string - } - ?? Observable.empty() - - return textChanged - .startWith(text) - } - - let bindingObserver = Binder(self.base) { (textView, text: String?) in - // This check is important because setting text value always clears control state - // including marked text selection which is imporant for proper input - // when IME input method is used. - if textView.text != text { - textView.text = text - } - } - - return ControlProperty(values: source, valueSink: bindingObserver) - } - - - /// Reactive wrapper for `attributedText` property. - public var attributedText: ControlProperty { - let source: Observable = Observable.deferred { [weak textView = self.base] in - let attributedText = textView?.attributedText - - let textChanged: Observable = textView?.textStorage - // This project uses text storage notifications because - // that's the only way to catch autocorrect changes - // in all cases. Other suggestions are welcome. - .rx.didProcessEditingRangeChangeInLength - // This observe on is here because attributedText storage - // will emit event while process is not completely done, - // so rebinding a value will cause an exception to be thrown. - .observeOn(MainScheduler.asyncInstance) - .map { _ in - return textView?.attributedText - } - ?? Observable.empty() - - return textChanged - .startWith(attributedText) - } - - let bindingObserver = Binder(self.base) { (textView, attributedText: NSAttributedString?) in - // This check is important because setting text value always clears control state - // including marked text selection which is imporant for proper input - // when IME input method is used. - if textView.attributedText != attributedText { - textView.attributedText = attributedText - } - } - - return ControlProperty(values: source, valueSink: bindingObserver) - } - - /// Reactive wrapper for `delegate` message. - public var didBeginEditing: ControlEvent<()> { - return ControlEvent<()>(events: self.delegate.methodInvoked(#selector(UITextViewDelegate.textViewDidBeginEditing(_:))) - .map { _ in - return () - }) - } - - /// Reactive wrapper for `delegate` message. - public var didEndEditing: ControlEvent<()> { - return ControlEvent<()>(events: self.delegate.methodInvoked(#selector(UITextViewDelegate.textViewDidEndEditing(_:))) - .map { _ in - return () - }) - } - - /// Reactive wrapper for `delegate` message. - public var didChange: ControlEvent<()> { - return ControlEvent<()>(events: self.delegate.methodInvoked(#selector(UITextViewDelegate.textViewDidChange(_:))) - .map { _ in - return () - }) - } - - /// Reactive wrapper for `delegate` message. - public var didChangeSelection: ControlEvent<()> { - return ControlEvent<()>(events: self.delegate.methodInvoked(#selector(UITextViewDelegate.textViewDidChangeSelection(_:))) - .map { _ in - return () - }) - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UIView+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UIView+Rx.swift deleted file mode 100644 index 4dd2aba..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UIView+Rx.swift +++ /dev/null @@ -1,45 +0,0 @@ -// -// UIView+Rx.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 12/6/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - -import UIKit -import RxSwift - -extension Reactive where Base: UIView { - /// Bindable sink for `hidden` property. - public var isHidden: Binder { - return Binder(self.base) { view, hidden in - view.isHidden = hidden - } - } - - /// Bindable sink for `alpha` property. - public var alpha: Binder { - return Binder(self.base) { view, alpha in - view.alpha = alpha - } - } - - /// Bindable sink for `backgroundColor` property. - public var backgroundColor: Binder { - return Binder(self.base) { view, color in - view.backgroundColor = color - } - } - - /// Bindable sink for `isUserInteractionEnabled` property. - public var isUserInteractionEnabled: Binder { - return Binder(self.base) { view, userInteractionEnabled in - view.isUserInteractionEnabled = userInteractionEnabled - } - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UIViewController+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UIViewController+Rx.swift deleted file mode 100644 index a9ab2a5..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UIViewController+Rx.swift +++ /dev/null @@ -1,24 +0,0 @@ -// -// UIViewController+Rx.swift -// RxCocoa -// -// Created by Kyle Fuller on 27/05/2016. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - - import UIKit - import RxSwift - - extension Reactive where Base: UIViewController { - - /// Bindable sink for `title`. - public var title: Binder { - return Binder(self.base) { viewController, title in - viewController.title = title - } - } - - } -#endif diff --git a/Pods/RxCocoa/RxCocoa/iOS/UIWebView+Rx.swift b/Pods/RxCocoa/RxCocoa/iOS/UIWebView+Rx.swift deleted file mode 100644 index e058b97..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UIWebView+Rx.swift +++ /dev/null @@ -1,46 +0,0 @@ -// -// UIWebView+Rx.swift -// RxCocoa -// -// Created by Andrew Breckenridge on 8/30/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) - - import UIKit - import RxSwift - - extension Reactive where Base: UIWebView { - - /// Reactive wrapper for `delegate`. - /// For more information take a look at `DelegateProxyType` protocol documentation. - public var delegate: DelegateProxy { - return RxWebViewDelegateProxy.proxy(for: base) - } - - /// Reactive wrapper for `delegate` message. - public var didStartLoad: Observable { - return delegate - .methodInvoked(#selector(UIWebViewDelegate.webViewDidStartLoad(_:))) - .map { _ in } - } - - /// Reactive wrapper for `delegate` message. - public var didFinishLoad: Observable { - return delegate - .methodInvoked(#selector(UIWebViewDelegate.webViewDidFinishLoad(_:))) - .map { _ in } - } - - /// Reactive wrapper for `delegate` message. - public var didFailLoad: Observable { - return delegate - .methodInvoked(#selector(UIWebViewDelegate.webView(_:didFailLoadWithError:))) - .map { a in - return try castOrThrow(Error.self, a[1]) - } - } - } - -#endif diff --git a/Pods/RxCocoa/RxCocoa/macOS/NSButton+Rx.swift b/Pods/RxCocoa/RxCocoa/macOS/NSButton+Rx.swift deleted file mode 100644 index 02a88f6..0000000 --- a/Pods/RxCocoa/RxCocoa/macOS/NSButton+Rx.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// NSButton+Rx.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 5/17/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(macOS) - -import RxSwift -import Cocoa - -extension Reactive where Base: NSButton { - - /// Reactive wrapper for control event. - public var tap: ControlEvent { - return self.controlEvent - } - - /// Reactive wrapper for `state` property`. - public var state: ControlProperty { - return self.base.rx.controlProperty( - getter: { control in - return control.state - }, setter: { (control: NSButton, state: NSControl.StateValue) in - control.state = state - } - ) - } -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/macOS/NSControl+Rx.swift b/Pods/RxCocoa/RxCocoa/macOS/NSControl+Rx.swift deleted file mode 100644 index b1d1932..0000000 --- a/Pods/RxCocoa/RxCocoa/macOS/NSControl+Rx.swift +++ /dev/null @@ -1,94 +0,0 @@ -// -// NSControl+Rx.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 5/31/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(macOS) - -import Cocoa -import RxSwift - -private var rx_value_key: UInt8 = 0 -private var rx_control_events_key: UInt8 = 0 - -extension Reactive where Base: NSControl { - - /// Reactive wrapper for control event. - public var controlEvent: ControlEvent<()> { - MainScheduler.ensureRunningOnMainThread() - - let source = self.lazyInstanceObservable(&rx_control_events_key) { () -> Observable in - Observable.create { [weak control = self.base] observer in - MainScheduler.ensureRunningOnMainThread() - - guard let control = control else { - observer.on(.completed) - return Disposables.create() - } - - let observer = ControlTarget(control: control) { _ in - observer.on(.next(())) - } - - return observer - } - .takeUntil(self.deallocated) - .share() - } - - return ControlEvent(events: source) - } - - /// Creates a `ControlProperty` that is triggered by target/action pattern value updates. - /// - /// - parameter getter: Property value getter. - /// - parameter setter: Property value setter. - public func controlProperty( - getter: @escaping (Base) -> T, - setter: @escaping (Base, T) -> Void - ) -> ControlProperty { - MainScheduler.ensureRunningOnMainThread() - - let source = self.base.rx.lazyInstanceObservable(&rx_value_key) { () -> Observable<()> in - return Observable.create { [weak weakControl = self.base] (observer: AnyObserver<()>) in - guard let control = weakControl else { - observer.on(.completed) - return Disposables.create() - } - - observer.on(.next(())) - - let observer = ControlTarget(control: control) { _ in - if weakControl != nil { - observer.on(.next(())) - } - } - - return observer - } - .takeUntil(self.deallocated) - .share(replay: 1, scope: .whileConnected) - } - .flatMap { [weak base] _ -> Observable in - guard let control = base else { return Observable.empty() } - return Observable.just(getter(control)) - } - - let bindingObserver = Binder(self.base, binding: setter) - - return ControlProperty(values: source, valueSink: bindingObserver) - } - - /// Bindable sink for `enabled` property. - public var isEnabled: Binder { - return Binder(self.base) { owner, value in - owner.isEnabled = value - } - } -} - - -#endif diff --git a/Pods/RxCocoa/RxCocoa/macOS/NSImageView+Rx.swift b/Pods/RxCocoa/RxCocoa/macOS/NSImageView+Rx.swift deleted file mode 100644 index 20a0514..0000000 --- a/Pods/RxCocoa/RxCocoa/macOS/NSImageView+Rx.swift +++ /dev/null @@ -1,24 +0,0 @@ -// -// NSImageView+Rx.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 5/17/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(macOS) - -import RxSwift -import Cocoa - -extension Reactive where Base: NSImageView { - - /// Bindable sink for `image` property. - public var image: Binder { - return Binder(self.base) { imageView, image in - imageView.image = image - } - } -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/macOS/NSSlider+Rx.swift b/Pods/RxCocoa/RxCocoa/macOS/NSSlider+Rx.swift deleted file mode 100644 index 2d56fb8..0000000 --- a/Pods/RxCocoa/RxCocoa/macOS/NSSlider+Rx.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// NSSlider+Rx.swift -// RxCocoa -// -// Created by Junior B. on 24/05/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(macOS) - -import RxSwift -import Cocoa - -extension Reactive where Base: NSSlider { - - /// Reactive wrapper for `value` property. - public var value: ControlProperty { - return self.base.rx.controlProperty( - getter: { control in - return control.doubleValue - }, - setter: { control, value in - control.doubleValue = value - } - ) - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/macOS/NSTextField+Rx.swift b/Pods/RxCocoa/RxCocoa/macOS/NSTextField+Rx.swift deleted file mode 100644 index 85500b1..0000000 --- a/Pods/RxCocoa/RxCocoa/macOS/NSTextField+Rx.swift +++ /dev/null @@ -1,96 +0,0 @@ -// -// NSTextField+Rx.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 5/17/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(macOS) - -import Cocoa -import RxSwift - -/// Delegate proxy for `NSTextField`. -/// -/// For more information take a look at `DelegateProxyType`. -open class RxTextFieldDelegateProxy - : DelegateProxy - , DelegateProxyType - , NSTextFieldDelegate { - - /// Typed parent object. - public weak private(set) var textField: NSTextField? - - /// Initializes `RxTextFieldDelegateProxy` - /// - /// - parameter textField: Parent object for delegate proxy. - init(textField: NSTextField) { - self.textField = textField - super.init(parentObject: textField, delegateProxy: RxTextFieldDelegateProxy.self) - } - - public static func registerKnownImplementations() { - self.register { RxTextFieldDelegateProxy(textField: $0) } - } - - fileprivate let textSubject = PublishSubject() - - // MARK: Delegate methods -#if swift(>=4.2) - open func controlTextDidChange(_ notification: Notification) { - let textField: NSTextField = castOrFatalError(notification.object) - let nextValue = textField.stringValue - self.textSubject.on(.next(nextValue)) - _forwardToDelegate?.controlTextDidChange?(notification) - } -#else - open override func controlTextDidChange(_ notification: Notification) { - let textField: NSTextField = castOrFatalError(notification.object) - let nextValue = textField.stringValue - self.textSubject.on(.next(nextValue)) - self._forwardToDelegate?.controlTextDidChange?(notification) - } -#endif - - // MARK: Delegate proxy methods - - /// For more information take a look at `DelegateProxyType`. - open class func currentDelegate(for object: ParentObject) -> NSTextFieldDelegate? { - return object.delegate - } - - /// For more information take a look at `DelegateProxyType`. - open class func setCurrentDelegate(_ delegate: NSTextFieldDelegate?, to object: ParentObject) { - object.delegate = delegate - } - -} - -extension Reactive where Base: NSTextField { - - /// Reactive wrapper for `delegate`. - /// - /// For more information take a look at `DelegateProxyType` protocol documentation. - public var delegate: DelegateProxy { - return RxTextFieldDelegateProxy.proxy(for: self.base) - } - - /// Reactive wrapper for `text` property. - public var text: ControlProperty { - let delegate = RxTextFieldDelegateProxy.proxy(for: self.base) - - let source = Observable.deferred { [weak textField = self.base] in - delegate.textSubject.startWith(textField?.stringValue) - }.takeUntil(self.deallocated) - - let observer = Binder(self.base) { (control, value: String?) in - control.stringValue = value ?? "" - } - - return ControlProperty(values: source, valueSink: observer.asObserver()) - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/macOS/NSTextView+Rx.swift b/Pods/RxCocoa/RxCocoa/macOS/NSTextView+Rx.swift deleted file mode 100644 index 85e8f6f..0000000 --- a/Pods/RxCocoa/RxCocoa/macOS/NSTextView+Rx.swift +++ /dev/null @@ -1,85 +0,0 @@ -// -// NSTextView+Rx.swift -// RxCocoa -// -// Created by Cee on 8/5/18. -// Copyright © 2018 Krunoslav Zaher. All rights reserved. -// - -#if os(macOS) - -import Cocoa -import RxSwift - -/// Delegate proxy for `NSTextView`. -/// -/// For more information take a look at `DelegateProxyType`. -open class RxTextViewDelegateProxy: DelegateProxy, DelegateProxyType, NSTextViewDelegate { - - /// Typed parent object. - public weak private(set) var textView: NSTextView? - - /// Initializes `RxTextViewDelegateProxy` - /// - /// - parameter textView: Parent object for delegate proxy. - init(textView: NSTextView) { - self.textView = textView - super.init(parentObject: textView, delegateProxy: RxTextViewDelegateProxy.self) - } - - public static func registerKnownImplementations() { - self.register { RxTextViewDelegateProxy(textView: $0) } - } - - fileprivate let textSubject = PublishSubject() - - // MARK: Delegate methods - - open func textDidChange(_ notification: Notification) { - let textView: NSTextView = castOrFatalError(notification.object) - let nextValue = textView.string - self.textSubject.on(.next(nextValue)) - self._forwardToDelegate?.textDidChange?(notification) - } - - // MARK: Delegate proxy methods - - /// For more information take a look at `DelegateProxyType`. - open class func currentDelegate(for object: ParentObject) -> NSTextViewDelegate? { - return object.delegate - } - - /// For more information take a look at `DelegateProxyType`. - open class func setCurrentDelegate(_ delegate: NSTextViewDelegate?, to object: ParentObject) { - object.delegate = delegate - } - -} - -extension Reactive where Base: NSTextView { - - /// Reactive wrapper for `delegate`. - /// - /// For more information take a look at `DelegateProxyType` protocol documentation. - public var delegate: DelegateProxy { - return RxTextViewDelegateProxy.proxy(for: self.base) - } - - /// Reactive wrapper for `string` property. - public var string: ControlProperty { - let delegate = RxTextViewDelegateProxy.proxy(for: self.base) - - let source = Observable.deferred { [weak textView = self.base] in - delegate.textSubject.startWith(textView?.string ?? "") - }.takeUntil(self.deallocated) - - let observer = Binder(self.base) { control, value in - control.string = value - } - - return ControlProperty(values: source, valueSink: observer.asObserver()) - } - -} - -#endif diff --git a/Pods/RxCocoa/RxCocoa/macOS/NSView+Rx.swift b/Pods/RxCocoa/RxCocoa/macOS/NSView+Rx.swift deleted file mode 100644 index 060829d..0000000 --- a/Pods/RxCocoa/RxCocoa/macOS/NSView+Rx.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// NSView+Rx.swift -// RxCocoa -// -// Created by Krunoslav Zaher on 12/6/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(macOS) - - import Cocoa - import RxSwift - - extension Reactive where Base: NSView { - /// Bindable sink for `hidden` property. - public var isHidden: Binder { - return Binder(self.base) { view, value in - view.isHidden = value - } - } - - /// Bindable sink for `alphaValue` property. - public var alpha: Binder { - return Binder(self.base) { view, value in - view.alphaValue = value - } - } - } - -#endif diff --git a/Pods/RxDataSources/LICENSE.md b/Pods/RxDataSources/LICENSE.md deleted file mode 100644 index 6705bea..0000000 --- a/Pods/RxDataSources/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 RxSwift Community - -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/Pods/RxDataSources/README.md b/Pods/RxDataSources/README.md deleted file mode 100644 index 88891b6..0000000 --- a/Pods/RxDataSources/README.md +++ /dev/null @@ -1,169 +0,0 @@ -[![Travis CI](https://travis-ci.org/RxSwiftCommunity/RxDataSources.svg?branch=master)](https://travis-ci.org/RxSwiftCommunity/RxDataSources) - -Table and Collection view data sources -====================================== - -## Features - -- [x] **O(N)** algorithm for calculating differences - - the algorithm has the assumption that all sections and items are unique so there is no ambiguity - - in case there is ambiguity, fallbacks automagically on non animated refresh -- [x] it applies additional heuristics to send the least number of commands to sectioned view - - even though the running time is linear, preferred number of sent commands is usually a lot less than linear - - it is preferred (and possible) to cap the number of changes to some small number, and in case the number of changes grows towards linear, just do normal reload -- [x] Supports **extending your item and section structures** - - just extend your item with `IdentifiableType` and `Equatable`, and your section with `AnimatableSectionModelType` -- [x] Supports all combinations of two level hierarchical animations for **both sections and items** - - Section animations: Insert, Delete, Move - - Item animations: Insert, Delete, Move, Reload (if old value is not equal to new value) -- [x] Configurable animation types for `Insert`, `Reload` and `Delete` (Automatic, Fade, ...) -- [x] Example app -- [x] Randomized stress tests (example app) -- [x] Supports editing out of the box (example app) -- [x] Works with `UITableView` and `UICollectionView` - -## Why -Writing table and collection view data sources is tedious. There is a large number of delegate methods that need to be implemented for the simplest case possible. - -RxSwift helps alleviate some of the burden with a simple data binding mechanism: -1) Turn your data into an Observable sequence -2) Bind the data to the tableView/collectionView using one of: - - `rx.items(dataSource:protocol)` - - `rx.items(cellIdentifier:String)` - - `rx.items(cellIdentifier:String:Cell.Type:_:)` - - `rx.items(_:_:)` - -```swift -let data = Observable<[String]>.just(["first element", "second element", "third element"]) - -data.bind(to: tableView.rx.items(cellIdentifier: "Cell")) { index, model, cell in - cell.textLabel?.text = model -} -.disposed(by: disposeBag) -``` - -This works well with simple data sets but does not handle cases where you need to bind complex data sets with multiples sections, or when you need to perform animations when adding/modifying/deleting items. - -These are precisely the use cases that RxDataSources helps solve. - -With RxDataSources, it is super easy to just write - -```swift -let dataSource = RxTableViewSectionedReloadDataSource>(configureCell: configureCell) -Observable.just([SectionModel(model: "title", items: [1, 2, 3])]) - .bind(to: tableView.rx.items(dataSource: dataSource)) - .disposed(by: disposeBag) -``` -![RxDataSources example app](https://raw.githubusercontent.com/kzaher/rxswiftcontent/rxdatasources/RxDataSources.gif) - -## How -Given the following custom data structure: -```swift -struct CustomData { - var anInt: Int - var aString: String - var aCGPoint: CGPoint -} -``` - -1) Start by defining your sections with a struct that conforms to the `SectionModelType` protocol: - - define the `Item` typealias: equal to the type of items that the section will contain - - declare an `items` property: of type array of `Item` - -```swift -struct SectionOfCustomData { - var header: String - var items: [Item] -} -extension SectionOfCustomData: SectionModelType { - typealias Item = CustomData - - init(original: SectionOfCustomData, items: [Item]) { - self = original - self.items = items - } -} -``` - -2) Create a dataSource object and pass it your `SectionOfCustomData` type: -```swift -let dataSource = RxTableViewSectionedReloadDataSource( - configureCell: { dataSource, tableView, indexPath, item in - let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) - cell.textLabel?.text = "Item \(item.anInt): \(item.aString) - \(item.aCGPoint.x):\(item.aCGPoint.y)" - return cell -}) -``` - -3) Customize closures on the dataSource as needed: -- `titleForHeaderInSection` -- `titleForFooterInSection` -- etc - -```swift -dataSource.titleForHeaderInSection = { dataSource, index in - return dataSource.sectionModels[index].header -} - -dataSource.titleForFooterInSection = { dataSource, indexPath in - return dataSource.sectionModels[index].footer -} - -dataSource.canEditRowAtIndexPath = { dataSource, indexPath in - return true -} - -dataSource.canMoveRowAtIndexPath = { dataSource, indexPath in - return true -} -``` - -4) Define the actual data as an Observable sequence of CustomData objects and bind it to the tableView -```swift -let sections = [ - SectionOfCustomData(header: "First section", items: [CustomData(anInt: 0, aString: "zero", aCGPoint: CGPoint.zero), CustomData(anInt: 1, aString: "one", aCGPoint: CGPoint(x: 1, y: 1)) ]), - SectionOfCustomData(header: "Second section", items: [CustomData(anInt: 2, aString: "two", aCGPoint: CGPoint(x: 2, y: 2)), CustomData(anInt: 3, aString: "three", aCGPoint: CGPoint(x: 3, y: 3)) ]) -] - -Observable.just(sections) - .bind(to: tableView.rx.items(dataSource: dataSource)) - .disposed(by: disposeBag) -``` - -### Animated Data Sources - -RxDataSources provides two special data source types that automatically take care of animating changes in the bound data source: `RxTableViewSectionedAnimatedDataSource` and `RxCollectionViewSectionedAnimatedDataSource`. - -To use one of the two animated data sources, you must take a few extra steps on top of those outlined above: - -- SectionOfCustomData needs to conform to `AnimatableSectionModelType` -- Your data model must conform to - * `IdentifiableType`: The `identity` provided by the `IdentifiableType` protocol must be an **immutable identifier representing an instance of the model**. For example, in case of a `Car` model, you might want to use the car's `plateNumber` as its identity. - * `Equatable`: Conforming to `Equatable` helps `RxDataSources` determine which cells have changed so it can animate only these specific cells. Meaning, changing **any** of the `Car` model's properties will trigger an animated reload of that cell. - -## Requirements - -Xcode 9.0 - -Swift 4.0 - -For Swift 3.x version please use versions `1.0 ... 2.0.2` -For Swift 2.3 version please use versions `0.1 ... 0.9` - -## Installation - -**We'll try to keep the API as stable as possible, but breaking API changes can occur.** - -### CocoaPods - -Podfile -``` -pod 'RxDataSources', '~> 3.0' -``` - -### Carthage - -Cartfile -``` -github "RxSwiftCommunity/RxDataSources" ~> 3.0 -``` diff --git a/Pods/RxDataSources/Sources/RxDataSources/AnimationConfiguration.swift b/Pods/RxDataSources/Sources/RxDataSources/AnimationConfiguration.swift deleted file mode 100644 index 3d08a61..0000000 --- a/Pods/RxDataSources/Sources/RxDataSources/AnimationConfiguration.swift +++ /dev/null @@ -1,29 +0,0 @@ -// -// AnimationConfiguration.swift -// RxDataSources -// -// Created by Esteban Torres on 5/2/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) - import Foundation - import UIKit - - /** - Exposes custom animation styles for insertion, deletion and reloading behavior. - */ - public struct AnimationConfiguration { - public let insertAnimation: UITableViewRowAnimation - public let reloadAnimation: UITableViewRowAnimation - public let deleteAnimation: UITableViewRowAnimation - - public init(insertAnimation: UITableViewRowAnimation = .automatic, - reloadAnimation: UITableViewRowAnimation = .automatic, - deleteAnimation: UITableViewRowAnimation = .automatic) { - self.insertAnimation = insertAnimation - self.reloadAnimation = reloadAnimation - self.deleteAnimation = deleteAnimation - } - } -#endif diff --git a/Pods/RxDataSources/Sources/RxDataSources/Array+Extensions.swift b/Pods/RxDataSources/Sources/RxDataSources/Array+Extensions.swift deleted file mode 100644 index 1e06e0f..0000000 --- a/Pods/RxDataSources/Sources/RxDataSources/Array+Extensions.swift +++ /dev/null @@ -1,29 +0,0 @@ -// -// Array+Extensions.swift -// RxDataSources -// -// Created by Krunoslav Zaher on 4/26/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) -import Foundation - -extension Array where Element: SectionModelType { - mutating func moveFromSourceIndexPath(_ sourceIndexPath: IndexPath, destinationIndexPath: IndexPath) { - let sourceSection = self[sourceIndexPath.section] - var sourceItems = sourceSection.items - - let sourceItem = sourceItems.remove(at: sourceIndexPath.item) - - let sourceSectionNew = Element(original: sourceSection, items: sourceItems) - self[sourceIndexPath.section] = sourceSectionNew - - let destinationSection = self[destinationIndexPath.section] - var destinationItems = destinationSection.items - destinationItems.insert(sourceItem, at: destinationIndexPath.item) - - self[destinationIndexPath.section] = Element(original: destinationSection, items: destinationItems) - } -} -#endif diff --git a/Pods/RxDataSources/Sources/RxDataSources/CollectionViewSectionedDataSource.swift b/Pods/RxDataSources/Sources/RxDataSources/CollectionViewSectionedDataSource.swift deleted file mode 100644 index 6146bae..0000000 --- a/Pods/RxDataSources/Sources/RxDataSources/CollectionViewSectionedDataSource.swift +++ /dev/null @@ -1,164 +0,0 @@ -// -// CollectionViewSectionedDataSource.swift -// RxDataSources -// -// Created by Krunoslav Zaher on 7/2/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) -import Foundation -import UIKit -#if !RX_NO_MODULE -import RxCocoa -#endif -import Differentiator - -open class CollectionViewSectionedDataSource - : NSObject - , UICollectionViewDataSource - , SectionedViewDataSourceType { - public typealias I = S.Item - public typealias Section = S - public typealias ConfigureCell = (CollectionViewSectionedDataSource, UICollectionView, IndexPath, I) -> UICollectionViewCell - public typealias ConfigureSupplementaryView = (CollectionViewSectionedDataSource, UICollectionView, String, IndexPath) -> UICollectionReusableView - public typealias MoveItem = (CollectionViewSectionedDataSource, _ sourceIndexPath:IndexPath, _ destinationIndexPath:IndexPath) -> Void - public typealias CanMoveItemAtIndexPath = (CollectionViewSectionedDataSource, IndexPath) -> Bool - - - public init( - configureCell: @escaping ConfigureCell, - configureSupplementaryView: ConfigureSupplementaryView? = nil, - moveItem: @escaping MoveItem = { _, _, _ in () }, - canMoveItemAtIndexPath: @escaping CanMoveItemAtIndexPath = { _, _ in false } - ) { - self.configureCell = configureCell - self.configureSupplementaryView = configureSupplementaryView - self.moveItem = moveItem - self.canMoveItemAtIndexPath = canMoveItemAtIndexPath - } - - #if DEBUG - // If data source has already been bound, then mutating it - // afterwards isn't something desired. - // This simulates immutability after binding - var _dataSourceBound: Bool = false - - private func ensureNotMutatedAfterBinding() { - assert(!_dataSourceBound, "Data source is already bound. Please write this line before binding call (`bindTo`, `drive`). Data source must first be completely configured, and then bound after that, otherwise there could be runtime bugs, glitches, or partial malfunctions.") - } - - #endif - - // This structure exists because model can be mutable - // In that case current state value should be preserved. - // The state that needs to be preserved is ordering of items in section - // and their relationship with section. - // If particular item is mutable, that is irrelevant for this logic to function - // properly. - public typealias SectionModelSnapshot = SectionModel - - private var _sectionModels: [SectionModelSnapshot] = [] - - open var sectionModels: [S] { - return _sectionModels.map { Section(original: $0.model, items: $0.items) } - } - - open subscript(section: Int) -> S { - let sectionModel = self._sectionModels[section] - return S(original: sectionModel.model, items: sectionModel.items) - } - - open subscript(indexPath: IndexPath) -> I { - get { - return self._sectionModels[indexPath.section].items[indexPath.item] - } - set(item) { - var section = self._sectionModels[indexPath.section] - section.items[indexPath.item] = item - self._sectionModels[indexPath.section] = section - } - } - - open func model(at indexPath: IndexPath) throws -> Any { - return self[indexPath] - } - - open func setSections(_ sections: [S]) { - self._sectionModels = sections.map { SectionModelSnapshot(model: $0, items: $0.items) } - } - - open var configureCell: ConfigureCell { - didSet { - #if DEBUG - ensureNotMutatedAfterBinding() - #endif - } - } - - open var configureSupplementaryView: ConfigureSupplementaryView? { - didSet { - #if DEBUG - ensureNotMutatedAfterBinding() - #endif - } - } - - open var moveItem: MoveItem { - didSet { - #if DEBUG - ensureNotMutatedAfterBinding() - #endif - } - } - open var canMoveItemAtIndexPath: ((CollectionViewSectionedDataSource, IndexPath) -> Bool)? { - didSet { - #if DEBUG - ensureNotMutatedAfterBinding() - #endif - } - } - - // UICollectionViewDataSource - - open func numberOfSections(in collectionView: UICollectionView) -> Int { - return _sectionModels.count - } - - open func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { - return _sectionModels[section].items.count - } - - open func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { - precondition(indexPath.item < _sectionModels[indexPath.section].items.count) - - return configureCell(self, collectionView, indexPath, self[indexPath]) - } - - open func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView { - return configureSupplementaryView!(self, collectionView, kind, indexPath) - } - - open func collectionView(_ collectionView: UICollectionView, canMoveItemAt indexPath: IndexPath) -> Bool { - guard let canMoveItem = canMoveItemAtIndexPath?(self, indexPath) else { - return false - } - - return canMoveItem - } - - open func collectionView(_ collectionView: UICollectionView, moveItemAt sourceIndexPath: IndexPath, to destinationIndexPath: IndexPath) { - self._sectionModels.moveFromSourceIndexPath(sourceIndexPath, destinationIndexPath: destinationIndexPath) - self.moveItem(self, sourceIndexPath, destinationIndexPath) - } - - override open func responds(to aSelector: Selector!) -> Bool { - if aSelector == #selector(UICollectionViewDataSource.collectionView(_:viewForSupplementaryElementOfKind:at:)) { - return configureSupplementaryView != nil - } - else { - return super.responds(to: aSelector) - } - } -} -#endif diff --git a/Pods/RxDataSources/Sources/RxDataSources/DataSources.swift b/Pods/RxDataSources/Sources/RxDataSources/DataSources.swift deleted file mode 100644 index 0f05c18..0000000 --- a/Pods/RxDataSources/Sources/RxDataSources/DataSources.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// DataSources.swift -// RxDataSources -// -// Created by Krunoslav Zaher on 1/8/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -import Foundation - -@_exported import Differentiator - -enum RxDataSourceError : Error { - case preconditionFailed(message: String) -} - -func rxPrecondition(_ condition: Bool, _ message: @autoclosure() -> String) throws -> () { - if condition { - return - } - rxDebugFatalError("Precondition failed") - - throw RxDataSourceError.preconditionFailed(message: message()) -} - -func rxDebugFatalError(_ error: Error) { - rxDebugFatalError("\(error)") -} - -func rxDebugFatalError(_ message: String) { - #if DEBUG - fatalError(message) - #else - print(message) - #endif -} diff --git a/Pods/RxDataSources/Sources/RxDataSources/Deprecated.swift b/Pods/RxDataSources/Sources/RxDataSources/Deprecated.swift deleted file mode 100644 index 7e7c97f..0000000 --- a/Pods/RxDataSources/Sources/RxDataSources/Deprecated.swift +++ /dev/null @@ -1,21 +0,0 @@ -// -// Deprecated.swift -// RxDataSources -// -// Created by Krunoslav Zaher on 10/8/17. -// Copyright © 2017 kzaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) -extension CollectionViewSectionedDataSource { - @available(*, deprecated, renamed: "configureSupplementaryView") - public var supplementaryViewFactory: ConfigureSupplementaryView? { - get { - return self.configureSupplementaryView - } - set { - self.configureSupplementaryView = newValue - } - } -} -#endif diff --git a/Pods/RxDataSources/Sources/RxDataSources/FloatingPointType+IdentifiableType.swift b/Pods/RxDataSources/Sources/RxDataSources/FloatingPointType+IdentifiableType.swift deleted file mode 100644 index d11eaee..0000000 --- a/Pods/RxDataSources/Sources/RxDataSources/FloatingPointType+IdentifiableType.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// FloatingPointType+IdentifiableType.swift -// RxDataSources -// -// Created by Krunoslav Zaher on 7/4/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -import Foundation - -extension FloatingPoint { - typealias identity = Self - - public var identity: Self { - return self - } -} - -extension Float : IdentifiableType { - -} - -extension Double : IdentifiableType { - -} diff --git a/Pods/RxDataSources/Sources/RxDataSources/IntegerType+IdentifiableType.swift b/Pods/RxDataSources/Sources/RxDataSources/IntegerType+IdentifiableType.swift deleted file mode 100644 index d2bcf99..0000000 --- a/Pods/RxDataSources/Sources/RxDataSources/IntegerType+IdentifiableType.swift +++ /dev/null @@ -1,59 +0,0 @@ -// -// IntegerType+IdentifiableType.swift -// RxDataSources -// -// Created by Krunoslav Zaher on 7/4/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -import Foundation - -extension BinaryInteger { - typealias identity = Self - - public var identity: Self { - return self - } -} - -extension Int : IdentifiableType { - -} - -extension Int8 : IdentifiableType { - -} - -extension Int16 : IdentifiableType { - -} - -extension Int32 : IdentifiableType { - -} - -extension Int64 : IdentifiableType { - -} - - -extension UInt : IdentifiableType { - -} - -extension UInt8 : IdentifiableType { - -} - -extension UInt16 : IdentifiableType { - -} - -extension UInt32 : IdentifiableType { - -} - -extension UInt64 : IdentifiableType { - -} - diff --git a/Pods/RxDataSources/Sources/RxDataSources/RxCollectionViewSectionedAnimatedDataSource.swift b/Pods/RxDataSources/Sources/RxDataSources/RxCollectionViewSectionedAnimatedDataSource.swift deleted file mode 100644 index d3fa707..0000000 --- a/Pods/RxDataSources/Sources/RxDataSources/RxCollectionViewSectionedAnimatedDataSource.swift +++ /dev/null @@ -1,130 +0,0 @@ -// -// RxCollectionViewSectionedAnimatedDataSource.swift -// RxExample -// -// Created by Krunoslav Zaher on 7/2/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) -import Foundation -import UIKit -#if !RX_NO_MODULE -import RxSwift -import RxCocoa -#endif -import Differentiator - -/* - This is commented becuse collection view has bugs when doing animated updates. - Take a look at randomized sections. -*/ -open class RxCollectionViewSectionedAnimatedDataSource - : CollectionViewSectionedDataSource - , RxCollectionViewDataSourceType { - public typealias Element = [S] - public typealias DecideViewTransition = (CollectionViewSectionedDataSource, UICollectionView, [Changeset]) -> ViewTransition - - // animation configuration - public var animationConfiguration: AnimationConfiguration - - /// Calculates view transition depending on type of changes - public var decideViewTransition: DecideViewTransition - - public init( - animationConfiguration: AnimationConfiguration = AnimationConfiguration(), - decideViewTransition: @escaping DecideViewTransition = { _, _, _ in .animated }, - configureCell: @escaping ConfigureCell, - configureSupplementaryView: ConfigureSupplementaryView? = nil, - moveItem: @escaping MoveItem = { _, _, _ in () }, - canMoveItemAtIndexPath: @escaping CanMoveItemAtIndexPath = { _, _ in false } - ) { - self.animationConfiguration = animationConfiguration - self.decideViewTransition = decideViewTransition - super.init( - configureCell: configureCell, - configureSupplementaryView: configureSupplementaryView, - moveItem: moveItem, - canMoveItemAtIndexPath: canMoveItemAtIndexPath - ) - - self.partialUpdateEvent - // so in case it does produce a crash, it will be after the data has changed - .observeOn(MainScheduler.asyncInstance) - // Collection view has issues digesting fast updates, this should - // help to alleviate the issues with them. - .throttle(0.5, scheduler: MainScheduler.instance) - .subscribe(onNext: { [weak self] event in - self?.collectionView(event.0, throttledObservedEvent: event.1) - }) - .disposed(by: disposeBag) - } - - // For some inexplicable reason, when doing animated updates first time - // it crashes. Still need to figure out that one. - var dataSet = false - - private let disposeBag = DisposeBag() - - // This subject and throttle are here - // because collection view has problems processing animated updates fast. - // This should somewhat help to alleviate the problem. - private let partialUpdateEvent = PublishSubject<(UICollectionView, Event)>() - - /** - This method exists because collection view updates are throttled because of internal collection view bugs. - Collection view behaves poorly during fast updates, so this should remedy those issues. - */ - open func collectionView(_ collectionView: UICollectionView, throttledObservedEvent event: Event) { - Binder(self) { dataSource, newSections in - let oldSections = dataSource.sectionModels - do { - // if view is not in view hierarchy, performing batch updates will crash the app - if collectionView.window == nil { - dataSource.setSections(newSections) - collectionView.reloadData() - return - } - let differences = try Diff.differencesForSectionedView(initialSections: oldSections, finalSections: newSections) - - switch self.decideViewTransition(self, collectionView, differences) { - case .animated: - for difference in differences { - dataSource.setSections(difference.finalSections) - - collectionView.performBatchUpdates(difference, animationConfiguration: self.animationConfiguration) - } - case .reload: - self.setSections(newSections) - collectionView.reloadData() - } - } - catch let e { - #if DEBUG - print("Error while binding data animated: \(e)\nFallback to normal `reloadData` behavior.") - rxDebugFatalError(e) - #endif - self.setSections(newSections) - collectionView.reloadData() - } - }.on(event) - } - - open func collectionView(_ collectionView: UICollectionView, observedEvent: Event) { - Binder(self) { dataSource, newSections in - #if DEBUG - self._dataSourceBound = true - #endif - if !self.dataSet { - self.dataSet = true - dataSource.setSections(newSections) - collectionView.reloadData() - } - else { - let element = (collectionView, observedEvent) - dataSource.partialUpdateEvent.on(.next(element)) - } - }.on(observedEvent) - } -} -#endif diff --git a/Pods/RxDataSources/Sources/RxDataSources/RxCollectionViewSectionedReloadDataSource.swift b/Pods/RxDataSources/Sources/RxDataSources/RxCollectionViewSectionedReloadDataSource.swift deleted file mode 100644 index 08b37b6..0000000 --- a/Pods/RxDataSources/Sources/RxDataSources/RxCollectionViewSectionedReloadDataSource.swift +++ /dev/null @@ -1,35 +0,0 @@ -// -// RxCollectionViewSectionedReloadDataSource.swift -// RxExample -// -// Created by Krunoslav Zaher on 7/2/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) -import Foundation -import UIKit -#if !RX_NO_MODULE -import RxSwift -import RxCocoa -#endif -import Differentiator - -open class RxCollectionViewSectionedReloadDataSource - : CollectionViewSectionedDataSource - , RxCollectionViewDataSourceType { - - public typealias Element = [S] - - open func collectionView(_ collectionView: UICollectionView, observedEvent: Event) { - Binder(self) { dataSource, element in - #if DEBUG - self._dataSourceBound = true - #endif - dataSource.setSections(element) - collectionView.reloadData() - collectionView.collectionViewLayout.invalidateLayout() - }.on(observedEvent) - } -} -#endif diff --git a/Pods/RxDataSources/Sources/RxDataSources/RxPickerViewAdapter.swift b/Pods/RxDataSources/Sources/RxDataSources/RxPickerViewAdapter.swift deleted file mode 100644 index 331be91..0000000 --- a/Pods/RxDataSources/Sources/RxDataSources/RxPickerViewAdapter.swift +++ /dev/null @@ -1,233 +0,0 @@ -// -// RxPickerViewAdapter.swift -// RxDataSources -// -// Created by Sergey Shulga on 04/07/2017. -// Copyright © 2017 kzaher. All rights reserved. -// - -#if os(iOS) - -import Foundation -import UIKit -#if !RX_NO_MODULE - import RxSwift - import RxCocoa -#endif - -/// A reactive UIPickerView adapter which uses `func pickerView(UIPickerView, titleForRow: Int, forComponent: Int)` to display the content -/** - Example: - -let adapter = RxPickerViewStringAdapter<[T]>(...) - -items - .bind(to: firstPickerView.rx.items(adapter: adapter)) - .disposed(by: disposeBag) - - */ -open class RxPickerViewStringAdapter: RxPickerViewDataSource, UIPickerViewDelegate { - /** - - parameter dataSource - - parameter pickerView - - parameter components - - parameter row - - parameter component - */ - public typealias TitleForRow = ( - _ dataSource: RxPickerViewStringAdapter, - _ pickerView: UIPickerView, - _ components: T, - _ row: Int, - _ component: Int - ) -> String? - - private let titleForRow: TitleForRow - - /** - - parameter components: Initial content value. - - parameter numberOfComponents: Implementation of corresponding delegate method. - - parameter numberOfRowsInComponent: Implementation of corresponding delegate method. - - parameter titleForRow: Implementation of corresponding adapter method that converts component to `String`. - */ - public init(components: T, - numberOfComponents: @escaping NumberOfComponents, - numberOfRowsInComponent: @escaping NumberOfRowsInComponent, - titleForRow: @escaping TitleForRow) { - self.titleForRow = titleForRow - super.init(components: components, - numberOfComponents: numberOfComponents, - numberOfRowsInComponent: numberOfRowsInComponent) - } - - open func pickerView(_ pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String? { - return titleForRow(self, pickerView, components, row, component) - } -} - -/// A reactive UIPickerView adapter which uses `func pickerView(UIPickerView, viewForRow: Int, forComponent: Int, reusing: UIView?)` to display the content -/** - Example: - - let adapter = RxPickerViewAttributedStringAdapter<[T]>(...) - - items - .bind(to: firstPickerView.rx.items(adapter: adapter)) - .disposed(by: disposeBag) - - */ -open class RxPickerViewAttributedStringAdapter: RxPickerViewDataSource, UIPickerViewDelegate { - /** - - parameter dataSource - - parameter pickerView - - parameter components - - parameter row - - parameter component - */ - public typealias AttributedTitleForRow = ( - _ dataSource: RxPickerViewAttributedStringAdapter, - _ pickerView: UIPickerView, - _ components: T, - _ row: Int, - _ component: Int - ) -> NSAttributedString? - - private let attributedTitleForRow: AttributedTitleForRow - - /** - - parameter components: Initial content value. - - parameter numberOfComponents: Implementation of corresponding delegate method. - - parameter numberOfRowsInComponent: Implementation of corresponding delegate method. - - parameter attributedTitleForRow: Implementation of corresponding adapter method that converts component to `NSAttributedString`. - */ - public init(components: T, - numberOfComponents: @escaping NumberOfComponents, - numberOfRowsInComponent: @escaping NumberOfRowsInComponent, - attributedTitleForRow: @escaping AttributedTitleForRow) { - self.attributedTitleForRow = attributedTitleForRow - super.init(components: components, - numberOfComponents: numberOfComponents, - numberOfRowsInComponent: numberOfRowsInComponent) - } - - open func pickerView(_ pickerView: UIPickerView, attributedTitleForRow row: Int, forComponent component: Int) -> NSAttributedString? { - return attributedTitleForRow(self, pickerView, components, row, component) - } -} - -/// A reactive UIPickerView adapter which uses `func pickerView(pickerView:, viewForRow row:, forComponent component:)` to display the content -/** - Example: - - let adapter = RxPickerViewViewAdapter<[T]>(...) - - items - .bind(to: firstPickerView.rx.items(adapter: adapter)) - .disposed(by: disposeBag) - - */ -open class RxPickerViewViewAdapter: RxPickerViewDataSource, UIPickerViewDelegate { - /** - - parameter dataSource - - parameter pickerView - - parameter components - - parameter row - - parameter component - - parameter view - */ - public typealias ViewForRow = ( - _ dataSource: RxPickerViewViewAdapter, - _ pickerView: UIPickerView, - _ components: T, - _ row: Int, - _ component: Int, - _ view: UIView? - ) -> UIView - - private let viewForRow: ViewForRow - - /** - - parameter components: Initial content value. - - parameter numberOfComponents: Implementation of corresponding delegate method. - - parameter numberOfRowsInComponent: Implementation of corresponding delegate method. - - parameter attributedTitleForRow: Implementation of corresponding adapter method that converts component to `UIView`. - */ - public init(components: T, - numberOfComponents: @escaping NumberOfComponents, - numberOfRowsInComponent: @escaping NumberOfRowsInComponent, - viewForRow: @escaping ViewForRow) { - self.viewForRow = viewForRow - super.init(components: components, - numberOfComponents: numberOfComponents, - numberOfRowsInComponent: numberOfRowsInComponent) - } - - open func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?) -> UIView { - return viewForRow(self, pickerView, components, row, component, view) - } -} - -/// A reactive UIPickerView data source -open class RxPickerViewDataSource: NSObject, UIPickerViewDataSource { - /** - - parameter dataSource - - parameter pickerView - - parameter components - */ - public typealias NumberOfComponents = ( - _ dataSource: RxPickerViewDataSource, - _ pickerView: UIPickerView, - _ components: T) -> Int - /** - - parameter dataSource - - parameter pickerView - - parameter components - - parameter component - */ - public typealias NumberOfRowsInComponent = ( - _ dataSource: RxPickerViewDataSource, - _ pickerView: UIPickerView, - _ components: T, - _ component: Int - ) -> Int - - fileprivate var components: T - - /** - - parameter components: Initial content value. - - parameter numberOfComponents: Implementation of corresponding delegate method. - - parameter numberOfRowsInComponent: Implementation of corresponding delegate method. - */ - init(components: T, - numberOfComponents: @escaping NumberOfComponents, - numberOfRowsInComponent: @escaping NumberOfRowsInComponent) { - self.components = components - self.numberOfComponents = numberOfComponents - self.numberOfRowsInComponent = numberOfRowsInComponent - super.init() - } - - private let numberOfComponents: NumberOfComponents - private let numberOfRowsInComponent: NumberOfRowsInComponent - - //MARK: UIPickerViewDataSource - - public func numberOfComponents(in pickerView: UIPickerView) -> Int { - return numberOfComponents(self, pickerView, components) - } - - public func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int { - return numberOfRowsInComponent(self, pickerView, components, component) - } -} - -extension RxPickerViewDataSource: RxPickerViewDataSourceType { - public func pickerView(_ pickerView: UIPickerView, observedEvent: Event) { - Binder(self) { (dataSource, components) in - dataSource.components = components - pickerView.reloadAllComponents() - }.on(observedEvent) - } -} - -#endif diff --git a/Pods/RxDataSources/Sources/RxDataSources/RxTableViewSectionedAnimatedDataSource.swift b/Pods/RxDataSources/Sources/RxDataSources/RxTableViewSectionedAnimatedDataSource.swift deleted file mode 100644 index a7890e4..0000000 --- a/Pods/RxDataSources/Sources/RxDataSources/RxTableViewSectionedAnimatedDataSource.swift +++ /dev/null @@ -1,123 +0,0 @@ -// -// RxTableViewSectionedAnimatedDataSource.swift -// RxExample -// -// Created by Krunoslav Zaher on 6/27/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) -import Foundation -import UIKit -#if !RX_NO_MODULE -import RxSwift -import RxCocoa -#endif -import Differentiator - -open class RxTableViewSectionedAnimatedDataSource - : TableViewSectionedDataSource - , RxTableViewDataSourceType { - public typealias Element = [S] - public typealias DecideViewTransition = (TableViewSectionedDataSource, UITableView, [Changeset]) -> ViewTransition - - /// Animation configuration for data source - public var animationConfiguration: AnimationConfiguration - - /// Calculates view transition depending on type of changes - public var decideViewTransition: DecideViewTransition - - #if os(iOS) - public init( - animationConfiguration: AnimationConfiguration = AnimationConfiguration(), - decideViewTransition: @escaping DecideViewTransition = { _, _, _ in .animated }, - configureCell: @escaping ConfigureCell, - titleForHeaderInSection: @escaping TitleForHeaderInSection = { _, _ in nil }, - titleForFooterInSection: @escaping TitleForFooterInSection = { _, _ in nil }, - canEditRowAtIndexPath: @escaping CanEditRowAtIndexPath = { _, _ in false }, - canMoveRowAtIndexPath: @escaping CanMoveRowAtIndexPath = { _, _ in false }, - sectionIndexTitles: @escaping SectionIndexTitles = { _ in nil }, - sectionForSectionIndexTitle: @escaping SectionForSectionIndexTitle = { _, _, index in index } - ) { - self.animationConfiguration = animationConfiguration - self.decideViewTransition = decideViewTransition - super.init( - configureCell: configureCell, - titleForHeaderInSection: titleForHeaderInSection, - titleForFooterInSection: titleForFooterInSection, - canEditRowAtIndexPath: canEditRowAtIndexPath, - canMoveRowAtIndexPath: canMoveRowAtIndexPath, - sectionIndexTitles: sectionIndexTitles, - sectionForSectionIndexTitle: sectionForSectionIndexTitle - ) - } - #else - public init( - animationConfiguration: AnimationConfiguration = AnimationConfiguration(), - decideViewTransition: @escaping DecideViewTransition = { _, _, _ in .animated }, - configureCell: @escaping ConfigureCell, - titleForHeaderInSection: @escaping TitleForHeaderInSection = { _, _ in nil }, - titleForFooterInSection: @escaping TitleForFooterInSection = { _, _ in nil }, - canEditRowAtIndexPath: @escaping CanEditRowAtIndexPath = { _, _ in false }, - canMoveRowAtIndexPath: @escaping CanMoveRowAtIndexPath = { _, _ in false } - ) { - self.animationConfiguration = animationConfiguration - self.decideViewTransition = decideViewTransition - super.init( - configureCell: configureCell, - titleForHeaderInSection: titleForHeaderInSection, - titleForFooterInSection: titleForFooterInSection, - canEditRowAtIndexPath: canEditRowAtIndexPath, - canMoveRowAtIndexPath: canMoveRowAtIndexPath - ) - } - #endif - - var dataSet = false - - open func tableView(_ tableView: UITableView, observedEvent: Event) { - Binder(self) { dataSource, newSections in - #if DEBUG - self._dataSourceBound = true - #endif - if !self.dataSet { - self.dataSet = true - dataSource.setSections(newSections) - tableView.reloadData() - } - else { - DispatchQueue.main.async { - // if view is not in view hierarchy, performing batch updates will crash the app - if tableView.window == nil { - dataSource.setSections(newSections) - tableView.reloadData() - return - } - let oldSections = dataSource.sectionModels - do { - let differences = try Diff.differencesForSectionedView(initialSections: oldSections, finalSections: newSections) - - switch self.decideViewTransition(self, tableView, differences) { - case .animated: - for difference in differences { - dataSource.setSections(difference.finalSections) - - tableView.performBatchUpdates(difference, animationConfiguration: self.animationConfiguration) - } - case .reload: - self.setSections(newSections) - tableView.reloadData() - return - } - } - catch let e { - rxDebugFatalError(e) - self.setSections(newSections) - tableView.reloadData() - } - } - } - }.on(observedEvent) - } -} -#endif diff --git a/Pods/RxDataSources/Sources/RxDataSources/RxTableViewSectionedReloadDataSource.swift b/Pods/RxDataSources/Sources/RxDataSources/RxTableViewSectionedReloadDataSource.swift deleted file mode 100644 index 26629ce..0000000 --- a/Pods/RxDataSources/Sources/RxDataSources/RxTableViewSectionedReloadDataSource.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// RxTableViewSectionedReloadDataSource.swift -// RxExample -// -// Created by Krunoslav Zaher on 6/27/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) -import Foundation -import UIKit -#if !RX_NO_MODULE -import RxSwift -import RxCocoa -#endif -import Differentiator - -open class RxTableViewSectionedReloadDataSource - : TableViewSectionedDataSource - , RxTableViewDataSourceType { - public typealias Element = [S] - - open func tableView(_ tableView: UITableView, observedEvent: Event) { - Binder(self) { dataSource, element in - #if DEBUG - self._dataSourceBound = true - #endif - dataSource.setSections(element) - tableView.reloadData() - }.on(observedEvent) - } -} -#endif diff --git a/Pods/RxDataSources/Sources/RxDataSources/String+IdentifiableType.swift b/Pods/RxDataSources/Sources/RxDataSources/String+IdentifiableType.swift deleted file mode 100644 index 708db74..0000000 --- a/Pods/RxDataSources/Sources/RxDataSources/String+IdentifiableType.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// String+IdentifiableType.swift -// RxDataSources -// -// Created by Krunoslav Zaher on 7/4/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -import Foundation - -extension String : IdentifiableType { - public typealias Identity = String - - public var identity: String { - return self - } -} diff --git a/Pods/RxDataSources/Sources/RxDataSources/TableViewSectionedDataSource.swift b/Pods/RxDataSources/Sources/RxDataSources/TableViewSectionedDataSource.swift deleted file mode 100644 index e2b48a6..0000000 --- a/Pods/RxDataSources/Sources/RxDataSources/TableViewSectionedDataSource.swift +++ /dev/null @@ -1,225 +0,0 @@ -// -// TableViewSectionedDataSource.swift -// RxDataSources -// -// Created by Krunoslav Zaher on 6/15/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) -import Foundation -import UIKit -#if !RX_NO_MODULE -import RxCocoa -#endif -import Differentiator - -open class TableViewSectionedDataSource - : NSObject - , UITableViewDataSource - , SectionedViewDataSourceType { - - public typealias I = S.Item - public typealias Section = S - - public typealias ConfigureCell = (TableViewSectionedDataSource, UITableView, IndexPath, I) -> UITableViewCell - public typealias TitleForHeaderInSection = (TableViewSectionedDataSource, Int) -> String? - public typealias TitleForFooterInSection = (TableViewSectionedDataSource, Int) -> String? - public typealias CanEditRowAtIndexPath = (TableViewSectionedDataSource, IndexPath) -> Bool - public typealias CanMoveRowAtIndexPath = (TableViewSectionedDataSource, IndexPath) -> Bool - - #if os(iOS) - public typealias SectionIndexTitles = (TableViewSectionedDataSource) -> [String]? - public typealias SectionForSectionIndexTitle = (TableViewSectionedDataSource, _ title: String, _ index: Int) -> Int - #endif - - #if os(iOS) - public init( - configureCell: @escaping ConfigureCell, - titleForHeaderInSection: @escaping TitleForHeaderInSection = { _, _ in nil }, - titleForFooterInSection: @escaping TitleForFooterInSection = { _, _ in nil }, - canEditRowAtIndexPath: @escaping CanEditRowAtIndexPath = { _, _ in false }, - canMoveRowAtIndexPath: @escaping CanMoveRowAtIndexPath = { _, _ in false }, - sectionIndexTitles: @escaping SectionIndexTitles = { _ in nil }, - sectionForSectionIndexTitle: @escaping SectionForSectionIndexTitle = { _, _, index in index } - ) { - self.configureCell = configureCell - self.titleForHeaderInSection = titleForHeaderInSection - self.titleForFooterInSection = titleForFooterInSection - self.canEditRowAtIndexPath = canEditRowAtIndexPath - self.canMoveRowAtIndexPath = canMoveRowAtIndexPath - self.sectionIndexTitles = sectionIndexTitles - self.sectionForSectionIndexTitle = sectionForSectionIndexTitle - } - #else - public init( - configureCell: @escaping ConfigureCell, - titleForHeaderInSection: @escaping TitleForHeaderInSection = { _, _ in nil }, - titleForFooterInSection: @escaping TitleForFooterInSection = { _, _ in nil }, - canEditRowAtIndexPath: @escaping CanEditRowAtIndexPath = { _, _ in false }, - canMoveRowAtIndexPath: @escaping CanMoveRowAtIndexPath = { _, _ in false } - ) { - self.configureCell = configureCell - self.titleForHeaderInSection = titleForHeaderInSection - self.titleForFooterInSection = titleForFooterInSection - self.canEditRowAtIndexPath = canEditRowAtIndexPath - self.canMoveRowAtIndexPath = canMoveRowAtIndexPath - } - #endif - - #if DEBUG - // If data source has already been bound, then mutating it - // afterwards isn't something desired. - // This simulates immutability after binding - var _dataSourceBound: Bool = false - - private func ensureNotMutatedAfterBinding() { - assert(!_dataSourceBound, "Data source is already bound. Please write this line before binding call (`bindTo`, `drive`). Data source must first be completely configured, and then bound after that, otherwise there could be runtime bugs, glitches, or partial malfunctions.") - } - - #endif - - // This structure exists because model can be mutable - // In that case current state value should be preserved. - // The state that needs to be preserved is ordering of items in section - // and their relationship with section. - // If particular item is mutable, that is irrelevant for this logic to function - // properly. - public typealias SectionModelSnapshot = SectionModel - - private var _sectionModels: [SectionModelSnapshot] = [] - - open var sectionModels: [S] { - return _sectionModels.map { Section(original: $0.model, items: $0.items) } - } - - open subscript(section: Int) -> S { - let sectionModel = self._sectionModels[section] - return S(original: sectionModel.model, items: sectionModel.items) - } - - open subscript(indexPath: IndexPath) -> I { - get { - return self._sectionModels[indexPath.section].items[indexPath.item] - } - set(item) { - var section = self._sectionModels[indexPath.section] - section.items[indexPath.item] = item - self._sectionModels[indexPath.section] = section - } - } - - open func model(at indexPath: IndexPath) throws -> Any { - return self[indexPath] - } - - open func setSections(_ sections: [S]) { - self._sectionModels = sections.map { SectionModelSnapshot(model: $0, items: $0.items) } - } - - open var configureCell: ConfigureCell { - didSet { - #if DEBUG - ensureNotMutatedAfterBinding() - #endif - } - } - - open var titleForHeaderInSection: TitleForHeaderInSection { - didSet { - #if DEBUG - ensureNotMutatedAfterBinding() - #endif - } - } - open var titleForFooterInSection: TitleForFooterInSection { - didSet { - #if DEBUG - ensureNotMutatedAfterBinding() - #endif - } - } - - open var canEditRowAtIndexPath: CanEditRowAtIndexPath { - didSet { - #if DEBUG - ensureNotMutatedAfterBinding() - #endif - } - } - open var canMoveRowAtIndexPath: CanMoveRowAtIndexPath { - didSet { - #if DEBUG - ensureNotMutatedAfterBinding() - #endif - } - } - - open var rowAnimation: UITableViewRowAnimation = .automatic - - #if os(iOS) - open var sectionIndexTitles: SectionIndexTitles { - didSet { - #if DEBUG - ensureNotMutatedAfterBinding() - #endif - } - } - open var sectionForSectionIndexTitle: SectionForSectionIndexTitle { - didSet { - #if DEBUG - ensureNotMutatedAfterBinding() - #endif - } - } - #endif - - - // UITableViewDataSource - - open func numberOfSections(in tableView: UITableView) -> Int { - return _sectionModels.count - } - - open func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { - guard _sectionModels.count > section else { return 0 } - return _sectionModels[section].items.count - } - - open func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { - precondition(indexPath.item < _sectionModels[indexPath.section].items.count) - - return configureCell(self, tableView, indexPath, self[indexPath]) - } - - open func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? { - return titleForHeaderInSection(self, section) - } - - open func tableView(_ tableView: UITableView, titleForFooterInSection section: Int) -> String? { - return titleForFooterInSection(self, section) - } - - open func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool { - return canEditRowAtIndexPath(self, indexPath) - } - - open func tableView(_ tableView: UITableView, canMoveRowAt indexPath: IndexPath) -> Bool { - return canMoveRowAtIndexPath(self, indexPath) - } - - open func tableView(_ tableView: UITableView, moveRowAt sourceIndexPath: IndexPath, to destinationIndexPath: IndexPath) { - self._sectionModels.moveFromSourceIndexPath(sourceIndexPath, destinationIndexPath: destinationIndexPath) - } - - #if os(iOS) - open func sectionIndexTitles(for tableView: UITableView) -> [String]? { - return sectionIndexTitles(self) - } - - open func tableView(_ tableView: UITableView, sectionForSectionIndexTitle title: String, at index: Int) -> Int { - return sectionForSectionIndexTitle(self, title, index) - } - #endif -} -#endif diff --git a/Pods/RxDataSources/Sources/RxDataSources/UI+SectionedViewType.swift b/Pods/RxDataSources/Sources/RxDataSources/UI+SectionedViewType.swift deleted file mode 100644 index d1f89a3..0000000 --- a/Pods/RxDataSources/Sources/RxDataSources/UI+SectionedViewType.swift +++ /dev/null @@ -1,154 +0,0 @@ -// -// UI+SectionedViewType.swift -// RxDataSources -// -// Created by Krunoslav Zaher on 6/27/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(iOS) || os(tvOS) -import Foundation -import UIKit -import Differentiator - -#if swift(>=4.2) -public typealias UITableViewRowAnimation = UITableView.RowAnimation -#endif - -func indexSet(_ values: [Int]) -> IndexSet { - let indexSet = NSMutableIndexSet() - for i in values { - indexSet.add(i) - } - return indexSet as IndexSet -} - -extension UITableView : SectionedViewType { - - public func insertItemsAtIndexPaths(_ paths: [IndexPath], animationStyle: UITableViewRowAnimation) { - self.insertRows(at: paths, with: animationStyle) - } - - public func deleteItemsAtIndexPaths(_ paths: [IndexPath], animationStyle: UITableViewRowAnimation) { - self.deleteRows(at: paths, with: animationStyle) - } - - public func moveItemAtIndexPath(_ from: IndexPath, to: IndexPath) { - self.moveRow(at: from, to: to) - } - - public func reloadItemsAtIndexPaths(_ paths: [IndexPath], animationStyle: UITableViewRowAnimation) { - self.reloadRows(at: paths, with: animationStyle) - } - - public func insertSections(_ sections: [Int], animationStyle: UITableViewRowAnimation) { - self.insertSections(indexSet(sections), with: animationStyle) - } - - public func deleteSections(_ sections: [Int], animationStyle: UITableViewRowAnimation) { - self.deleteSections(indexSet(sections), with: animationStyle) - } - - public func moveSection(_ from: Int, to: Int) { - self.moveSection(from, toSection: to) - } - - public func reloadSections(_ sections: [Int], animationStyle: UITableViewRowAnimation) { - self.reloadSections(indexSet(sections), with: animationStyle) - } - - public func performBatchUpdates(_ changes: Changeset, animationConfiguration: AnimationConfiguration) { - self.beginUpdates() - _performBatchUpdates(self, changes: changes, animationConfiguration: animationConfiguration) - self.endUpdates() - } -} - -extension UICollectionView : SectionedViewType { - public func insertItemsAtIndexPaths(_ paths: [IndexPath], animationStyle: UITableViewRowAnimation) { - self.insertItems(at: paths) - } - - public func deleteItemsAtIndexPaths(_ paths: [IndexPath], animationStyle: UITableViewRowAnimation) { - self.deleteItems(at: paths) - } - - public func moveItemAtIndexPath(_ from: IndexPath, to: IndexPath) { - self.moveItem(at: from, to: to) - } - - public func reloadItemsAtIndexPaths(_ paths: [IndexPath], animationStyle: UITableViewRowAnimation) { - self.reloadItems(at: paths) - } - - public func insertSections(_ sections: [Int], animationStyle: UITableViewRowAnimation) { - self.insertSections(indexSet(sections)) - } - - public func deleteSections(_ sections: [Int], animationStyle: UITableViewRowAnimation) { - self.deleteSections(indexSet(sections)) - } - - public func moveSection(_ from: Int, to: Int) { - self.moveSection(from, toSection: to) - } - - public func reloadSections(_ sections: [Int], animationStyle: UITableViewRowAnimation) { - self.reloadSections(indexSet(sections)) - } - - public func performBatchUpdates(_ changes: Changeset, animationConfiguration: AnimationConfiguration) { - self.performBatchUpdates({ () -> Void in - _performBatchUpdates(self, changes: changes, animationConfiguration: animationConfiguration) - }, completion: { (completed: Bool) -> Void in - }) - } -} - -public protocol SectionedViewType { - func insertItemsAtIndexPaths(_ paths: [IndexPath], animationStyle: UITableViewRowAnimation) - func deleteItemsAtIndexPaths(_ paths: [IndexPath], animationStyle: UITableViewRowAnimation) - func moveItemAtIndexPath(_ from: IndexPath, to: IndexPath) - func reloadItemsAtIndexPaths(_ paths: [IndexPath], animationStyle: UITableViewRowAnimation) - - func insertSections(_ sections: [Int], animationStyle: UITableViewRowAnimation) - func deleteSections(_ sections: [Int], animationStyle: UITableViewRowAnimation) - func moveSection(_ from: Int, to: Int) - func reloadSections(_ sections: [Int], animationStyle: UITableViewRowAnimation) - - func performBatchUpdates(_ changes: Changeset, animationConfiguration: AnimationConfiguration) -} - -func _performBatchUpdates(_ view: V, changes: Changeset, animationConfiguration:AnimationConfiguration) { - typealias I = S.Item - - view.deleteSections(changes.deletedSections, animationStyle: animationConfiguration.deleteAnimation) - // Updated sections doesn't mean reload entire section, somebody needs to update the section view manually - // otherwise all cells will be reloaded for nothing. - //view.reloadSections(changes.updatedSections, animationStyle: rowAnimation) - view.insertSections(changes.insertedSections, animationStyle: animationConfiguration.insertAnimation) - for (from, to) in changes.movedSections { - view.moveSection(from, to: to) - } - - view.deleteItemsAtIndexPaths( - changes.deletedItems.map { IndexPath(item: $0.itemIndex, section: $0.sectionIndex) }, - animationStyle: animationConfiguration.deleteAnimation - ) - view.insertItemsAtIndexPaths( - changes.insertedItems.map { IndexPath(item: $0.itemIndex, section: $0.sectionIndex) }, - animationStyle: animationConfiguration.insertAnimation - ) - view.reloadItemsAtIndexPaths( - changes.updatedItems.map { IndexPath(item: $0.itemIndex, section: $0.sectionIndex) }, - animationStyle: animationConfiguration.reloadAnimation - ) - - for (from, to) in changes.movedItems { - view.moveItemAtIndexPath( - IndexPath(item: from.itemIndex, section: from.sectionIndex), - to: IndexPath(item: to.itemIndex, section: to.sectionIndex) - ) - } -} -#endif diff --git a/Pods/RxDataSources/Sources/RxDataSources/ViewTransition.swift b/Pods/RxDataSources/Sources/RxDataSources/ViewTransition.swift deleted file mode 100644 index 35299f0..0000000 --- a/Pods/RxDataSources/Sources/RxDataSources/ViewTransition.swift +++ /dev/null @@ -1,16 +0,0 @@ -// -// ViewTransition.swift -// RxDataSources -// -// Created by Krunoslav Zaher on 10/22/17. -// Copyright © 2017 kzaher. All rights reserved. -// - -/// Transition between two view states -public enum ViewTransition { - /// animated transition - case animated - /// refresh view without animations - case reload -} - diff --git a/Pods/RxKeyboard/LICENSE b/Pods/RxKeyboard/LICENSE deleted file mode 100644 index 0fd33f4..0000000 --- a/Pods/RxKeyboard/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 Suyeol Jeon (xoul.kr) - -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/Pods/RxKeyboard/README.md b/Pods/RxKeyboard/README.md deleted file mode 100644 index 5983e4f..0000000 --- a/Pods/RxKeyboard/README.md +++ /dev/null @@ -1,140 +0,0 @@ -# RxKeyboard - -![Swift](https://img.shields.io/badge/Swift-4.1-orange.svg) -[![CocoaPods](http://img.shields.io/cocoapods/v/RxKeyboard.svg)](https://cocoapods.org/pods/RxKeyboard) -[![Build Status](https://travis-ci.org/RxSwiftCommunity/RxKeyboard.svg?branch=master)](https://travis-ci.org/RxSwiftCommunity/RxKeyboard) -[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) - -RxKeyboard provides a reactive way of observing keyboard frame changes. Forget about keyboard notifications. It also perfectly works with `UIScrollViewKeyboardDismissMode.interactive`. - -![rxkeyboard-message](https://cloud.githubusercontent.com/assets/931655/22062707/625eea7a-ddbe-11e6-9984-529abae1bd1a.gif) -![rxkeyboard-textview](https://cloud.githubusercontent.com/assets/931655/19223656/14bd915c-8eb0-11e6-93ea-7618fc9c5d81.gif) - -## Getting Started - -RxKeyboard provides two [`Driver`](https://github.com/ReactiveX/RxSwift/blob/master/Documentation/Units.md#driver-unit)s. - -```swift -/// An observable keyboard frame. -let frame: Driver - -/// An observable visible height of keyboard. Emits keyboard height if the keyboard is visible -/// or `0` if the keyboard is not visible. -let visibleHeight: Driver - -/// Same with `visibleHeight` but only emits values when keyboard is about to show. This is -/// useful when adjusting scroll view content offset. -let willShowVisibleHeight: Driver -``` - -Use `RxKeyboard.instance` to get singleton instance. - -```swift -RxKeyboard.instance -``` - -Subscribe `RxKeyboard.instance.frame` to observe keyboard frame changes. - -```swift -RxKeyboard.instance.frame - .drive(onNext: { frame in - print(frame) - }) - .disposed(by: disposeBag) -``` - -## Tips and Tricks - -- 🔗 **I want to adjust `UIScrollView`'s `contentInset` to fit keyboard height.** - - ```swift - RxKeyboard.instance.visibleHeight - .drive(onNext: { keyboardVisibleHeight in - scrollView.contentInset.bottom = keyboardVisibleHeight - }) - .disposed(by: disposeBag) - ``` - -- 🔗 **I want to adjust `UIScrollView`'s `contentOffset` to fit keyboard height.** - - ```swift - RxKeyboard.instance.willShowVisibleHeight - .drive(onNext: { keyboardVisibleHeight in - scrollView.contentOffset.y += keyboardVisibleHeight - }) - .disposed(by: disposeBag) - ``` - -- 🔗 **I want to make `UIToolbar` move along with the keyboard in an interactive dismiss mode. (Just like the wonderful GIF above!)** - - If you're not using Auto Layout: - - ```swift - RxKeyboard.instance.visibleHeight - .drive(onNext: { keyboardVisibleHeight in - toolbar.frame.origin.y = self.view.frame.height - toolbar.frame.height - keyboardVisibleHeight - }) - .disposed(by: disposeBag) - ``` - - If you're using Auto Layout, you have to capture the toolbar's bottom constraint and set `constant` to keyboard visible height. - - ```swift - RxKeyboard.instance.visibleHeight - .drive(onNext: { keyboardVisibleHeight in - toolbarBottomConstraint.constant = -1 * keyboardVisibleHeight - }) - .disposed(by: disposeBag) - ``` - - > **Note**: In real world, you should use `setNeedsLayout()` and `layoutIfNeeded()` with animation block. See the [example project](https://github.com/RxSwiftCommunity/RxKeyboard/blob/master/Example/Sources/ViewControllers/MessageListViewController.swift#L92-L105) for example. - -- Anything else? Please open an issue or make a Pull Request. - -## Dependencies - -- [RxSwift](https://github.com/ReactiveX/RxSwift) (>= 4.1.0) -- [RxCocoa](https://github.com/ReactiveX/RxSwift) (>= 4.1.0) - -## Requirements - -- Swift 4 -- iOS 8+ - -## Contributing - -In development, RxKeyboard manages dependencies with Swift Package Manager. Use the command below in order to generate a Xcode project file. Note that `.xcodeproj` file changes are not tracked via git. - -```console -$ swift package generate-xcodeproj -``` - -## Installation - -- **Using [CocoaPods](https://cocoapods.org)**: - - ```ruby - pod 'RxKeyboard' - ``` - -- **Using [Carthage](https://github.com/Carthage/Carthage)**: - - ``` - binary "https://raw.githubusercontent.com/RxSwiftCommunity/RxKeyboard/master/RxKeyboard.json" - ``` - - ⚠️ With Carthage, RxKeyboard only supports binary installation: - - * 0.8.2 - * Xcode 9.3 (9E145) - * Swift 4.1.0 (swiftlang-902.0.48 clang-902.0.37.1) - * 0.7.1 - * Xcode 9.1 (9B55) - * Swift 4.0.2 (swiftlang-900.0.69.2 clang-900.0.38) - * 0.7.0 - * 9.0.1 (9A1004) - * Swift 4.0 (swiftlang-900.0.65.2 clang-900.0.37) - -## License - -RxKeyboard is under MIT license. diff --git a/Pods/RxKeyboard/Sources/RxKeyboard/RxKeyboard.swift b/Pods/RxKeyboard/Sources/RxKeyboard/RxKeyboard.swift deleted file mode 100644 index 9563576..0000000 --- a/Pods/RxKeyboard/Sources/RxKeyboard/RxKeyboard.swift +++ /dev/null @@ -1,175 +0,0 @@ -// -// RxKeyboard.swift -// RxKeyboard -// -// Created by Suyeol Jeon on 09/10/2016. -// Copyright © 2016 Suyeol Jeon. All rights reserved. -// - -#if os(iOS) -import UIKit - -import RxCocoa -import RxSwift - -public protocol RxKeyboardType { - var frame: Driver { get } - var visibleHeight: Driver { get } - var willShowVisibleHeight: Driver { get } - var isHidden: Driver { get } -} - -/// RxKeyboard provides a reactive way of observing keyboard frame changes. -public class RxKeyboard: NSObject, RxKeyboardType { - - // MARK: Public - - /// Get a singleton instance. - public static let instance = RxKeyboard() - - /// An observable keyboard frame. - public let frame: Driver - - /// An observable visible height of keyboard. Emits keyboard height if the keyboard is visible - /// or `0` if the keyboard is not visible. - public let visibleHeight: Driver - - /// Same with `visibleHeight` but only emits values when keyboard is about to show. This is - /// useful when adjusting scroll view content offset. - public let willShowVisibleHeight: Driver - - /// An observable visibility of keyboard. Emits keyboard visibility - /// when changed keyboard show and hide. - public let isHidden: Driver - - // MARK: Private - - private let disposeBag = DisposeBag() - private let panRecognizer = UIPanGestureRecognizer() - - // MARK: Initializing - - override init() { - #if swift(>=4.2) - let keyboardWillChangeFrame = UIResponder.keyboardWillChangeFrameNotification - let keyboardWillHide = UIResponder.keyboardWillHideNotification - let keyboardFrameEndKey = UIResponder.keyboardFrameEndUserInfoKey - let applicationDidFinishLaunching = UIApplication.didFinishLaunchingNotification - #else - let keyboardWillChangeFrame = NSNotification.Name.UIKeyboardWillChangeFrame - let keyboardWillHide = NSNotification.Name.UIKeyboardWillHide - let keyboardFrameEndKey = UIKeyboardFrameEndUserInfoKey - let applicationDidFinishLaunching = NSNotification.Name.UIApplicationDidFinishLaunching - #endif - - let defaultFrame = CGRect( - x: 0, - y: UIScreen.main.bounds.height, - width: UIScreen.main.bounds.width, - height: 0 - ) - let frameVariable = BehaviorRelay(value: defaultFrame) - self.frame = frameVariable.asDriver().distinctUntilChanged() - self.visibleHeight = self.frame.map { UIScreen.main.bounds.height - $0.origin.y } - self.willShowVisibleHeight = self.visibleHeight - .scan((visibleHeight: 0, isShowing: false)) { lastState, newVisibleHeight in - return (visibleHeight: newVisibleHeight, isShowing: lastState.visibleHeight == 0 && newVisibleHeight > 0) - } - .filter { state in state.isShowing } - .map { state in state.visibleHeight } - self.isHidden = self.visibleHeight.map({ $0 == 0.0 }).distinctUntilChanged() - super.init() - - // keyboard will change frame - let willChangeFrame = NotificationCenter.default.rx.notification(keyboardWillChangeFrame) - .map { notification -> CGRect in - let rectValue = notification.userInfo?[keyboardFrameEndKey] as? NSValue - return rectValue?.cgRectValue ?? defaultFrame - } - .map { frame -> CGRect in - if frame.origin.y < 0 { // if went to wrong frame - var newFrame = frame - newFrame.origin.y = UIScreen.main.bounds.height - newFrame.height - return newFrame - } - return frame - } - - // keyboard will hide - let willHide = NotificationCenter.default.rx.notification(keyboardWillHide) - .map { notification -> CGRect in - let rectValue = notification.userInfo?[keyboardFrameEndKey] as? NSValue - return rectValue?.cgRectValue ?? defaultFrame - } - .map { frame -> CGRect in - if frame.origin.y < 0 { // if went to wrong frame - var newFrame = frame - newFrame.origin.y = UIScreen.main.bounds.height - return newFrame - } - return frame - } - - // pan gesture - let didPan = self.panRecognizer.rx.event - .withLatestFrom(frameVariable.asObservable()) { ($0, $1) } - .flatMap { (gestureRecognizer, frame) -> Observable in - guard case .changed = gestureRecognizer.state, - let window = UIApplication.shared.windows.first, - frame.origin.y < UIScreen.main.bounds.height - else { return .empty() } - let origin = gestureRecognizer.location(in: window) - var newFrame = frame - newFrame.origin.y = max(origin.y, UIScreen.main.bounds.height - frame.height) - return .just(newFrame) - } - - // merge into single sequence - Observable.of(didPan, willChangeFrame, willHide).merge() - .bind(to: frameVariable) - .disposed(by: self.disposeBag) - - // gesture recognizer - self.panRecognizer.delegate = self - NotificationCenter.default.rx.notification(applicationDidFinishLaunching) - .map { _ in Void() } - .startWith(Void()) // when RxKeyboard is initialized before UIApplication.window is created - .subscribe(onNext: { _ in - UIApplication.shared.windows.first?.addGestureRecognizer(self.panRecognizer) - }) - .disposed(by: self.disposeBag) - } - -} - - -// MARK: - UIGestureRecognizerDelegate - -extension RxKeyboard: UIGestureRecognizerDelegate { - - public func gestureRecognizer( - _ gestureRecognizer: UIGestureRecognizer, - shouldReceive touch: UITouch - ) -> Bool { - let point = touch.location(in: gestureRecognizer.view) - var view = gestureRecognizer.view?.hitTest(point, with: nil) - while let candidate = view { - if let scrollView = candidate as? UIScrollView, - case .interactive = scrollView.keyboardDismissMode { - return true - } - view = candidate.superview - } - return false - } - - public func gestureRecognizer( - _ gestureRecognizer: UIGestureRecognizer, - shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer - ) -> Bool { - return gestureRecognizer === self.panRecognizer - } - -} -#endif - diff --git a/Pods/RxOptional/LICENSE b/Pods/RxOptional/LICENSE deleted file mode 100644 index bdf9d3d..0000000 --- a/Pods/RxOptional/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2016 Thane Gill - -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/Pods/RxOptional/README.md b/Pods/RxOptional/README.md deleted file mode 100644 index 3e57ac8..0000000 --- a/Pods/RxOptional/README.md +++ /dev/null @@ -1,192 +0,0 @@ -# RxOptional - -[![CircleCI](https://img.shields.io/circleci/project/github/RxSwiftCommunity/RxOptional/master.svg)](https://circleci.com/gh/RxSwiftCommunity/RxOptional/tree/master) -[![Version](https://img.shields.io/cocoapods/v/RxOptional.svg?style=flat)](http://cocoapods.org/pods/RxOptional) -[![License](https://img.shields.io/cocoapods/l/RxOptional.svg?style=flat)](http://cocoapods.org/pods/RxOptional) -[![Platform](https://img.shields.io/cocoapods/p/RxOptional.svg?style=flat)](http://cocoapods.org/pods/RxOptional) - -RxSwift extensions for Swift optionals and "Occupiable" types. - -## Usage - -All operators are also available on `Driver` and `Signal`, unless otherwise noted. - -### Optional Operators - -##### filterNil -```swift -Observable - .of("One", nil, "Three") - .filterNil() - // Type is now Observable - .subscribe { print($0) } -``` -```text -next(One) -next(Three) -completed -``` - -##### replaceNilWith -```swift -Observable - .of("One", nil, "Three") - .replaceNilWith("Two") - // Type is now Observable - .subscribe { print($0) } -``` -```text -next(One) -next(Two) -next(Three) -completed -``` - -##### errorOnNil -Unavailable on `Driver`, because `Driver`s cannot error out. - -By default errors with `RxOptionalError.foundNilWhileUnwrappingOptional`. -```swift -Observable - .of("One", nil, "Three") - .errorOnNil() - // Type is now Observable - .subscribe { print($0) } -``` -```text -next(One) -error(Found nil while trying to unwrap type >) -``` - -##### catchOnNil -```swift -Observable - .of("One", nil, "Three") - .catchOnNil { - return Observable.just("A String from a new Observable") - } - // Type is now Observable - .subscribe { print($0) } -``` -```text -next(One) -next(A String from a new Observable) -next(Three) -completed -``` - -##### distinctUntilChanged -```swift -Observable - .of(5, 6, 6, nil, nil, 3) - .distinctUntilChanged() - .subscribe { print($0) } -``` -```text -next(Optional(5)) -next(Optional(6)) -next(nil) -next(Optional(3)) -completed -``` - -### Occupiable Operators - -Occupiables are: - -- `String` -- `Array` -- `Dictionary` -- `Set` - -Currently in Swift protocols cannot be extended to conform to other protocols. -For now the types listed above conform to `Occupiable`. You can also conform -custom types to `Occupiable`. - -##### filterEmpty -```swift -Observable<[String]> - .of(["Single Element"], [], ["Two", "Elements"]) - .filterEmpty() - .subscribe { print($0) } -``` -```text -next(["Single Element"]) -next(["Two", "Elements"]) -completed -``` - -##### errorOnEmpty -Unavailable on `Driver`, because `Driver`s cannot error out. - -By default errors with `RxOptionalError.emptyOccupiable`. -```swift -Observable<[String]> - .of(["Single Element"], [], ["Two", "Elements"]) - .errorOnEmpty() - .subscribe { print($0) } -``` -```text -next(["Single Element"]) -error(Empty occupiable of type >) -``` - -##### catchOnEmpty -```swift -Observable<[String]> - .of(["Single Element"], [], ["Two", "Elements"]) - .catchOnEmpty { - return Observable<[String]>.just(["Not Empty"]) - } - .subscribe { print($0) } -``` -```text -next(["Single Element"]) -next(["Not Empty"]) -next(["Two", "Elements"]) -completed -``` - -## Running Examples.playground - -- Run `pod install` in Example directory -- Select RxOptional Examples target -- Build -- Show Debug Area (cmd+shift+Y) -- Click blue play button in Debug Area - -## Requirements - -- [RxSwift](https://github.com/ReactiveX/RxSwift) -- [RxCocoa](https://github.com/ReactiveX/RxSwift) - -## Installation - -### [CocoaPods](https://guides.cocoapods.org/using/using-cocoapods.html) - -RxOptional is available through [CocoaPods](http://cocoapods.org). To install -it, simply add the following line to your Podfile: - -```ruby -pod 'RxOptional' -``` - -### [Carthage](https://github.com/Carthage/Carthage) - -Add this to `Cartfile` - -``` -github "RxSwiftCommunity/RxOptional" ~> 3.1.3 -``` - -``` -$ carthage update -``` - -## Author - -Thane Gill, me@thanegill.com - -## License - -RxOptional is available under the MIT license. See the LICENSE file for more info. diff --git a/Pods/RxOptional/Source/Observable+Occupiable.swift b/Pods/RxOptional/Source/Observable+Occupiable.swift deleted file mode 100644 index f4bcd50..0000000 --- a/Pods/RxOptional/Source/Observable+Occupiable.swift +++ /dev/null @@ -1,55 +0,0 @@ -import Foundation -import RxSwift - -public extension ObservableType where E: Occupiable { - /** - Filter out empty occupiable elements. - - - returns: `Observable` of source `Observable`'s occupiable elements, with empty occupiable elements filtered out. - */ - - public func filterEmpty() -> Observable { - return self.flatMap { element -> Observable in - guard element.isNotEmpty else { - return Observable.empty() - } - return Observable.just(element) - } - } - - /** - Replaces empty occupiable elements with result returned by `handler`. - - - parameter handler: empty handler throwing function that returns `Observable` of non-empty occupiable elements. - - - returns: `Observable` of the source `Observable`'s occupiable elements, with empty occupiable elements replaced by the handler's returned non-empty occupiable elements. - */ - - public func catchOnEmpty(_ handler: @escaping () throws -> Observable) -> Observable { - return self.flatMap { element -> Observable in - guard element.isNotEmpty else { - return try handler() - } - return Observable.just(element) - } - } - - /** - Throws an error if the source `Observable` contains an empty occupiable element; otherwise returns original source `Observable` of non-empty occupiable elements. - - - parameter error: error to throw when an empty occupiable element is encountered. Defaults to `RxOptionalError.EmptyOccupiable`. - - - throws: `error` if an empty occupiable element is encountered. - - - returns: original source `Observable` of non-empty occupiable elements if it contains no empty occupiable elements. - */ - - public func errorOnEmpty(_ error: Error = RxOptionalError.emptyOccupiable(E.self)) -> Observable { - return self.map { element in - guard element.isNotEmpty else { - throw error - } - return element - } - } -} diff --git a/Pods/RxOptional/Source/Observable+Optional.swift b/Pods/RxOptional/Source/Observable+Optional.swift deleted file mode 100644 index 6818616..0000000 --- a/Pods/RxOptional/Source/Observable+Optional.swift +++ /dev/null @@ -1,107 +0,0 @@ -import Foundation -import RxSwift - -// Some code originally from here: https://github.com/artsy/eidolon/blob/24e36a69bbafb4ef6dbe4d98b575ceb4e1d8345f/Kiosk/Observable%2BOperators.swift#L42-L62 -// Credit to Artsy and @ashfurrow - -public extension ObservableType where E: OptionalType { - /** - Unwraps and filters out `nil` elements. - - - returns: `Observable` of source `Observable`'s elements, with `nil` elements filtered out. - */ - - public func filterNil() -> Observable { - return self.flatMap { element -> Observable in - guard let value = element.value else { - return Observable.empty() - } - return Observable.just(value) - } - } - - /** - - Filters out `nil` elements. Similar to `filterNil`, but keeps the elements of the observable - wrapped in Optionals. This is often useful for binding to a UIBindingObserver with an optional type. - - - returns: `Observable` of source `Observable`'s elements, with `nil` elements filtered out. - */ - - public func filterNilKeepOptional() -> Observable { - return self.filter { element -> Bool in - return element.value != nil - } - } - - /** - Throws an error if the source `Observable` contains an empty element; otherwise returns original source `Observable` of non-empty elements. - - - parameter error: error to throw when an empty element is encountered. Defaults to `RxOptionalError.FoundNilWhileUnwrappingOptional`. - - - throws: `error` if an empty element is encountered. - - - returns: original source `Observable` of non-empty elements if it contains no empty elements. - */ - - public func errorOnNil(_ error: Error = RxOptionalError.foundNilWhileUnwrappingOptional(E.self)) -> Observable { - return self.map { element -> E.Wrapped in - guard let value = element.value else { - throw error - } - return value - } - } - - /** - Unwraps optional elements and replaces `nil` elements with `valueOnNil`. - - - parameter valueOnNil: value to use when `nil` is encountered. - - - returns: `Observable` of the source `Observable`'s unwrapped elements, with `nil` elements replaced by `valueOnNil`. - */ - - public func replaceNilWith(_ valueOnNil: E.Wrapped) -> Observable { - return self.map { element -> E.Wrapped in - guard let value = element.value else { - return valueOnNil - } - return value - } - } - - /** - Unwraps optional elements and replaces `nil` elements with result returned by `handler`. - - - parameter handler: `nil` handler throwing function that returns `Observable` of non-`nil` elements. - - - returns: `Observable` of the source `Observable`'s unwrapped elements, with `nil` elements replaced by the handler's returned non-`nil` elements. - */ - - public func catchOnNil(_ handler: @escaping () throws -> Observable) -> Observable { - return self.flatMap { element -> Observable in - guard let value = element.value else { - return try handler() - } - return Observable.just(value) - } - } -} - -#if !swift(>=3.3) || (swift(>=4.0) && !swift(>=4.1)) -public extension ObservableType where E: OptionalType, E.Wrapped: Equatable { - /** - Returns an observable sequence that contains only distinct contiguous elements according to equality operator. - - - seealso: [distinct operator on reactivex.io](http://reactivex.io/documentation/operators/distinct.html) - - - returns: An observable sequence only containing the distinct contiguous elements, based on equality operator, from the source sequence. - */ - - public func distinctUntilChanged() -> Observable { - return self.distinctUntilChanged { (lhs, rhs) -> Bool in - return lhs.value == rhs.value - } - } -} -#endif diff --git a/Pods/RxOptional/Source/Occupiable.swift b/Pods/RxOptional/Source/Occupiable.swift deleted file mode 100644 index f6cdfea..0000000 --- a/Pods/RxOptional/Source/Occupiable.swift +++ /dev/null @@ -1,22 +0,0 @@ -import Foundation - -// Originally from here: https://github.com/artsy/eidolon/blob/f95c0a5bf1e90358320529529d6bf431ada04c3f/Kiosk/App/SwiftExtensions.swift#L23-L40 -// Credit to Artsy and @ashfurrow - -// Anything that can hold a value (strings, arrays, etc.) -public protocol Occupiable { - var isEmpty: Bool { get } - var isNotEmpty: Bool { get } -} - -public extension Occupiable { - public var isNotEmpty: Bool { - return !isEmpty - } -} - -extension String: Occupiable { } -// I can't think of a way to combine these collection types. Suggestions welcomed! -extension Array: Occupiable { } -extension Dictionary: Occupiable { } -extension Set: Occupiable { } diff --git a/Pods/RxOptional/Source/OptionalType.swift b/Pods/RxOptional/Source/OptionalType.swift deleted file mode 100644 index 14868f0..0000000 --- a/Pods/RxOptional/Source/OptionalType.swift +++ /dev/null @@ -1,16 +0,0 @@ -import Foundation - -// Originally from here: https://github.com/artsy/eidolon/blob/24e36a69bbafb4ef6dbe4d98b575ceb4e1d8345f/Kiosk/Observable%2BOperators.swift#L30-L40 -// Credit to Artsy and @ashfurrow - -public protocol OptionalType { - associatedtype Wrapped - var value: Wrapped? { get } -} - -extension Optional: OptionalType { - /// Cast `Optional` to `Wrapped?` - public var value: Wrapped? { - return self - } -} diff --git a/Pods/RxOptional/Source/RxOptionalError.swift b/Pods/RxOptional/Source/RxOptionalError.swift deleted file mode 100644 index a2b1cba..0000000 --- a/Pods/RxOptional/Source/RxOptionalError.swift +++ /dev/null @@ -1,15 +0,0 @@ -import Foundation - -public enum RxOptionalError: Error, CustomStringConvertible { - case foundNilWhileUnwrappingOptional(Any.Type) - case emptyOccupiable(Any.Type) - - public var description: String { - switch self { - case .foundNilWhileUnwrappingOptional(let type): - return "Found nil while trying to unwrap type <\(String(describing: type))>" - case .emptyOccupiable(let type): - return "Empty occupiable of type <\(String(describing: type))>" - } - } -} diff --git a/Pods/RxOptional/Source/SharedSequence+Occupiable.swift b/Pods/RxOptional/Source/SharedSequence+Occupiable.swift deleted file mode 100644 index 5a41b02..0000000 --- a/Pods/RxOptional/Source/SharedSequence+Occupiable.swift +++ /dev/null @@ -1,36 +0,0 @@ -import Foundation -import RxCocoa - -public extension SharedSequenceConvertibleType where E: Occupiable { - /** - Filters out empty elements. - - - returns: `Driver` of source `Driver`'s elements, with empty elements filtered out. - */ - - public func filterEmpty() -> SharedSequence { - return flatMap { element -> SharedSequence in - guard element.isNotEmpty else { - return SharedSequence.empty() - } - return SharedSequence.just(element) - } - } - - /** - Replaces empty elements with result returned by `handler`. - - - parameter handler: empty handler function that returns `Driver` of non-empty elements. - - - returns: `Driver` of the source `Driver`'s elements, with empty elements replaced by the handler's returned non-empty elements. - */ - - public func catchOnEmpty(_ handler: @escaping () -> SharedSequence) -> SharedSequence { - return flatMap { element -> SharedSequence in - guard element.isNotEmpty else { - return handler() - } - return SharedSequence.just(element) - } - } -} diff --git a/Pods/RxOptional/Source/SharedSequence+Optional.swift b/Pods/RxOptional/Source/SharedSequence+Optional.swift deleted file mode 100644 index 5f0304e..0000000 --- a/Pods/RxOptional/Source/SharedSequence+Optional.swift +++ /dev/null @@ -1,70 +0,0 @@ -import RxCocoa - -public extension SharedSequenceConvertibleType where E: OptionalType { - /** - Unwraps and filters out `nil` elements. - - - returns: `Driver` of source `Driver`'s elements, with `nil` elements filtered out. - */ - - public func filterNil() -> SharedSequence { - return flatMap { element -> SharedSequence in - guard let value = element.value else { - return SharedSequence.empty() - } - return SharedSequence.just(value) - } - } - - /** - Unwraps optional elements and replaces `nil` elements with `valueOnNil`. - - - parameter valueOnNil: value to use when `nil` is encountered. - - - returns: `Driver` of the source `Driver`'s unwrapped elements, with `nil` elements replaced by `valueOnNil`. - */ - - public func replaceNilWith(_ valueOnNil: E.Wrapped) -> SharedSequence { - return map { element -> E.Wrapped in - guard let value = element.value else { - return valueOnNil - } - return value - } - } - - /** - Unwraps optional elements and replaces `nil` elements with result returned by `handler`. - - - parameter handler: `nil` handler function that returns `Driver` of non-`nil` elements. - - - returns: `Driver` of the source `Driver`'s unwrapped elements, with `nil` elements replaced by the handler's returned non-`nil` elements. - */ - - public func catchOnNil(_ handler: @escaping () -> SharedSequence) -> SharedSequence { - return flatMap { element -> SharedSequence in - guard let value = element.value else { - return handler() - } - return SharedSequence.just(value) - } - } -} - -#if !swift(>=3.3) || (swift(>=4.0) && !swift(>=4.1)) -public extension SharedSequenceConvertibleType where E: OptionalType, E.Wrapped: Equatable { - /** - Returns an observable sequence that contains only distinct contiguous elements according to equality operator. - - - seealso: [distinct operator on reactivex.io](http://reactivex.io/documentation/operators/distinct.html) - - - returns: An observable sequence only containing the distinct contiguous elements, based on equality operator, from the source sequence. - */ - - public func distinctUntilChanged() -> SharedSequence { - return self.distinctUntilChanged { (lhs, rhs) -> Bool in - return lhs.value == rhs.value - } - } -} -#endif diff --git a/Pods/RxSwift/LICENSE.md b/Pods/RxSwift/LICENSE.md deleted file mode 100644 index d6765d9..0000000 --- a/Pods/RxSwift/LICENSE.md +++ /dev/null @@ -1,9 +0,0 @@ -**The MIT License** -**Copyright © 2015 Krunoslav Zaher** -**All rights reserved.** - -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. \ No newline at end of file diff --git a/Pods/RxSwift/Platform/AtomicInt.swift b/Pods/RxSwift/Platform/AtomicInt.swift deleted file mode 100644 index 45e6c9b..0000000 --- a/Pods/RxSwift/Platform/AtomicInt.swift +++ /dev/null @@ -1,58 +0,0 @@ -// -// AtomicInt.swift -// Platform -// -// Created by Krunoslav Zaher on 10/28/18. -// Copyright © 2018 Krunoslav Zaher. All rights reserved. -// - -import RxAtomic - -typealias AtomicInt = RxAtomic.AtomicInt - -extension AtomicInt { - public init(_ value: Int32) { - self.init() - AtomicInt_initialize(&self, value) - } -} - -@discardableResult -@inline(__always) -func add(_ this: UnsafeMutablePointer, _ value: Int32) -> Int32 { - return AtomicInt_add(this, value) -} - -@discardableResult -@inline(__always) -func sub(_ this: UnsafeMutablePointer, _ value: Int32) -> Int32 { - return AtomicInt_sub(this, value) -} - -@discardableResult -@inline(__always) -func fetchOr(_ this: UnsafeMutablePointer, _ mask: Int32) -> Int32 { - return AtomicInt_fetchOr(this, mask) -} - -@inline(__always) -func load(_ this: UnsafeMutablePointer) -> Int32 { - return AtomicInt_load(this) -} - -@discardableResult -@inline(__always) -func increment(_ this: UnsafeMutablePointer) -> Int32 { - return add(this, 1) -} - -@discardableResult -@inline(__always) -func decrement(_ this: UnsafeMutablePointer) -> Int32 { - return sub(this, 1) -} - -@inline(__always) -func isFlagSet(_ this: UnsafeMutablePointer, _ mask: Int32) -> Bool { - return (load(this) & mask) != 0 -} diff --git a/Pods/RxSwift/Platform/DataStructures/Bag.swift b/Pods/RxSwift/Platform/DataStructures/Bag.swift deleted file mode 100644 index 455329c..0000000 --- a/Pods/RxSwift/Platform/DataStructures/Bag.swift +++ /dev/null @@ -1,181 +0,0 @@ -// -// Bag.swift -// Platform -// -// Created by Krunoslav Zaher on 2/28/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import Swift - -let arrayDictionaryMaxSize = 30 - -struct BagKey { - /** - Unique identifier for object added to `Bag`. - - It's underlying type is UInt64. If we assume there in an idealized CPU that works at 4GHz, - it would take ~150 years of continuous running time for it to overflow. - */ - fileprivate let rawValue: UInt64 -} - -/** -Data structure that represents a bag of elements typed `T`. - -Single element can be stored multiple times. - -Time and space complexity of insertion and deletion is O(n). - -It is suitable for storing small number of elements. -*/ -struct Bag : CustomDebugStringConvertible { - /// Type of identifier for inserted elements. - typealias KeyType = BagKey - - typealias Entry = (key: BagKey, value: T) - - fileprivate var _nextKey: BagKey = BagKey(rawValue: 0) - - // data - - // first fill inline variables - var _key0: BagKey? - var _value0: T? - - // then fill "array dictionary" - var _pairs = ContiguousArray() - - // last is sparse dictionary - var _dictionary: [BagKey: T]? - - var _onlyFastPath = true - - /// Creates new empty `Bag`. - init() { - } - - /** - Inserts `value` into bag. - - - parameter element: Element to insert. - - returns: Key that can be used to remove element from bag. - */ - mutating func insert(_ element: T) -> BagKey { - let key = _nextKey - - _nextKey = BagKey(rawValue: _nextKey.rawValue &+ 1) - - if _key0 == nil { - _key0 = key - _value0 = element - return key - } - - _onlyFastPath = false - - if _dictionary != nil { - _dictionary![key] = element - return key - } - - if _pairs.count < arrayDictionaryMaxSize { - _pairs.append((key: key, value: element)) - return key - } - - _dictionary = [key: element] - - return key - } - - /// - returns: Number of elements in bag. - var count: Int { - let dictionaryCount: Int = _dictionary?.count ?? 0 - return (_value0 != nil ? 1 : 0) + _pairs.count + dictionaryCount - } - - /// Removes all elements from bag and clears capacity. - mutating func removeAll() { - _key0 = nil - _value0 = nil - - _pairs.removeAll(keepingCapacity: false) - _dictionary?.removeAll(keepingCapacity: false) - } - - /** - Removes element with a specific `key` from bag. - - - parameter key: Key that identifies element to remove from bag. - - returns: Element that bag contained, or nil in case element was already removed. - */ - mutating func removeKey(_ key: BagKey) -> T? { - if _key0 == key { - _key0 = nil - let value = _value0! - _value0 = nil - return value - } - - if let existingObject = _dictionary?.removeValue(forKey: key) { - return existingObject - } - - for i in 0 ..< _pairs.count where _pairs[i].key == key { - let value = _pairs[i].value - _pairs.remove(at: i) - return value - } - - return nil - } -} - -extension Bag { - /// A textual representation of `self`, suitable for debugging. - var debugDescription : String { - return "\(self.count) elements in Bag" - } -} - -extension Bag { - /// Enumerates elements inside the bag. - /// - /// - parameter action: Enumeration closure. - func forEach(_ action: (T) -> Void) { - if _onlyFastPath { - if let value0 = _value0 { - action(value0) - } - return - } - - let value0 = _value0 - let dictionary = _dictionary - - if let value0 = value0 { - action(value0) - } - - for i in 0 ..< _pairs.count { - action(_pairs[i].value) - } - - if dictionary?.count ?? 0 > 0 { - for element in dictionary!.values { - action(element) - } - } - } -} - -extension BagKey: Hashable { - var hashValue: Int { - return rawValue.hashValue - } -} - -func ==(lhs: BagKey, rhs: BagKey) -> Bool { - return lhs.rawValue == rhs.rawValue -} diff --git a/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift b/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift deleted file mode 100644 index 5a573a0..0000000 --- a/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// InfiniteSequence.swift -// Platform -// -// Created by Krunoslav Zaher on 6/13/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// Sequence that repeats `repeatedValue` infinite number of times. -struct InfiniteSequence : Sequence { - typealias Element = E - typealias Iterator = AnyIterator - - private let _repeatedValue: E - - init(repeatedValue: E) { - _repeatedValue = repeatedValue - } - - func makeIterator() -> Iterator { - let repeatedValue = _repeatedValue - return AnyIterator { - return repeatedValue - } - } -} diff --git a/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift b/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift deleted file mode 100644 index f7cb99c..0000000 --- a/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift +++ /dev/null @@ -1,111 +0,0 @@ -// -// PriorityQueue.swift -// Platform -// -// Created by Krunoslav Zaher on 12/27/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -struct PriorityQueue { - private let _hasHigherPriority: (Element, Element) -> Bool - private let _isEqual: (Element, Element) -> Bool - - fileprivate var _elements = [Element]() - - init(hasHigherPriority: @escaping (Element, Element) -> Bool, isEqual: @escaping (Element, Element) -> Bool) { - _hasHigherPriority = hasHigherPriority - _isEqual = isEqual - } - - mutating func enqueue(_ element: Element) { - _elements.append(element) - bubbleToHigherPriority(_elements.count - 1) - } - - func peek() -> Element? { - return _elements.first - } - - var isEmpty: Bool { - return _elements.count == 0 - } - - mutating func dequeue() -> Element? { - guard let front = peek() else { - return nil - } - - removeAt(0) - - return front - } - - mutating func remove(_ element: Element) { - for i in 0 ..< _elements.count { - if _isEqual(_elements[i], element) { - removeAt(i) - return - } - } - } - - private mutating func removeAt(_ index: Int) { - let removingLast = index == _elements.count - 1 - if !removingLast { - _elements.swapAt(index, _elements.count - 1) - } - - _ = _elements.popLast() - - if !removingLast { - bubbleToHigherPriority(index) - bubbleToLowerPriority(index) - } - } - - private mutating func bubbleToHigherPriority(_ initialUnbalancedIndex: Int) { - precondition(initialUnbalancedIndex >= 0) - precondition(initialUnbalancedIndex < _elements.count) - - var unbalancedIndex = initialUnbalancedIndex - - while unbalancedIndex > 0 { - let parentIndex = (unbalancedIndex - 1) / 2 - guard _hasHigherPriority(_elements[unbalancedIndex], _elements[parentIndex]) else { break } - _elements.swapAt(unbalancedIndex, parentIndex) - unbalancedIndex = parentIndex - } - } - - private mutating func bubbleToLowerPriority(_ initialUnbalancedIndex: Int) { - precondition(initialUnbalancedIndex >= 0) - precondition(initialUnbalancedIndex < _elements.count) - - var unbalancedIndex = initialUnbalancedIndex - while true { - let leftChildIndex = unbalancedIndex * 2 + 1 - let rightChildIndex = unbalancedIndex * 2 + 2 - - var highestPriorityIndex = unbalancedIndex - - if leftChildIndex < _elements.count && _hasHigherPriority(_elements[leftChildIndex], _elements[highestPriorityIndex]) { - highestPriorityIndex = leftChildIndex - } - - if rightChildIndex < _elements.count && _hasHigherPriority(_elements[rightChildIndex], _elements[highestPriorityIndex]) { - highestPriorityIndex = rightChildIndex - } - - guard highestPriorityIndex != unbalancedIndex else { break } - _elements.swapAt(highestPriorityIndex, unbalancedIndex) - - unbalancedIndex = highestPriorityIndex - } - } -} - -extension PriorityQueue : CustomDebugStringConvertible { - var debugDescription: String { - return _elements.debugDescription - } -} diff --git a/Pods/RxSwift/Platform/DataStructures/Queue.swift b/Pods/RxSwift/Platform/DataStructures/Queue.swift deleted file mode 100644 index d05726c..0000000 --- a/Pods/RxSwift/Platform/DataStructures/Queue.swift +++ /dev/null @@ -1,152 +0,0 @@ -// -// Queue.swift -// Platform -// -// Created by Krunoslav Zaher on 3/21/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/** -Data structure that represents queue. - -Complexity of `enqueue`, `dequeue` is O(1) when number of operations is -averaged over N operations. - -Complexity of `peek` is O(1). -*/ -struct Queue: Sequence { - /// Type of generator. - typealias Generator = AnyIterator - - private let _resizeFactor = 2 - - private var _storage: ContiguousArray - private var _count = 0 - private var _pushNextIndex = 0 - private let _initialCapacity: Int - - /** - Creates new queue. - - - parameter capacity: Capacity of newly created queue. - */ - init(capacity: Int) { - _initialCapacity = capacity - - _storage = ContiguousArray(repeating: nil, count: capacity) - } - - private var dequeueIndex: Int { - let index = _pushNextIndex - count - return index < 0 ? index + _storage.count : index - } - - /// - returns: Is queue empty. - var isEmpty: Bool { - return count == 0 - } - - /// - returns: Number of elements inside queue. - var count: Int { - return _count - } - - /// - returns: Element in front of a list of elements to `dequeue`. - func peek() -> T { - precondition(count > 0) - - return _storage[dequeueIndex]! - } - - mutating private func resizeTo(_ size: Int) { - var newStorage = ContiguousArray(repeating: nil, count: size) - - let count = _count - - let dequeueIndex = self.dequeueIndex - let spaceToEndOfQueue = _storage.count - dequeueIndex - - // first batch is from dequeue index to end of array - let countElementsInFirstBatch = Swift.min(count, spaceToEndOfQueue) - // second batch is wrapped from start of array to end of queue - let numberOfElementsInSecondBatch = count - countElementsInFirstBatch - - newStorage[0 ..< countElementsInFirstBatch] = _storage[dequeueIndex ..< (dequeueIndex + countElementsInFirstBatch)] - newStorage[countElementsInFirstBatch ..< (countElementsInFirstBatch + numberOfElementsInSecondBatch)] = _storage[0 ..< numberOfElementsInSecondBatch] - - _count = count - _pushNextIndex = count - _storage = newStorage - } - - /// Enqueues `element`. - /// - /// - parameter element: Element to enqueue. - mutating func enqueue(_ element: T) { - if count == _storage.count { - resizeTo(Swift.max(_storage.count, 1) * _resizeFactor) - } - - _storage[_pushNextIndex] = element - _pushNextIndex += 1 - _count += 1 - - if _pushNextIndex >= _storage.count { - _pushNextIndex -= _storage.count - } - } - - private mutating func dequeueElementOnly() -> T { - precondition(count > 0) - - let index = dequeueIndex - - defer { - _storage[index] = nil - _count -= 1 - } - - return _storage[index]! - } - - /// Dequeues element or throws an exception in case queue is empty. - /// - /// - returns: Dequeued element. - mutating func dequeue() -> T? { - if self.count == 0 { - return nil - } - - defer { - let downsizeLimit = _storage.count / (_resizeFactor * _resizeFactor) - if _count < downsizeLimit && downsizeLimit >= _initialCapacity { - resizeTo(_storage.count / _resizeFactor) - } - } - - return dequeueElementOnly() - } - - /// - returns: Generator of contained elements. - func makeIterator() -> AnyIterator { - var i = dequeueIndex - var count = _count - - return AnyIterator { - if count == 0 { - return nil - } - - defer { - count -= 1 - i += 1 - } - - if i >= self._storage.count { - i -= self._storage.count - } - - return self._storage[i] - } - } -} diff --git a/Pods/RxSwift/Platform/DeprecationWarner.swift b/Pods/RxSwift/Platform/DeprecationWarner.swift deleted file mode 100644 index 863636b..0000000 --- a/Pods/RxSwift/Platform/DeprecationWarner.swift +++ /dev/null @@ -1,43 +0,0 @@ -// -// DeprecationWarner.swift -// Platform -// -// Created by Shai Mishali on 1/9/18. -// Copyright © 2018 Krunoslav Zaher. All rights reserved. -// - -import Foundation - -#if DEBUG - class DeprecationWarner { - private static var warned = Set() - private static var _lock = NSRecursiveLock() - - static func warnIfNeeded(_ kind: Kind) { - _lock.lock(); defer { _lock.unlock() } - guard !warned.contains(kind) else { return } - - warned.insert(kind) - print("ℹ️ [DEPRECATED] \(kind.message)") - } - } - - extension DeprecationWarner { - enum Kind { - case variable - case globalTestFunctionNext - case globalTestFunctionError - case globalTestFunctionCompleted - - var message: String { - switch self { - case .variable: return "`Variable` is planned for future deprecation. Please consider `BehaviorRelay` as a replacement. Read more at: https://git.io/vNqvx" - case .globalTestFunctionNext: return "The `next()` global function is planned for future deprecation. Please use `Recorded.next()` instead." - case .globalTestFunctionError: return "The `error()` global function is planned for future deprecation. Please use `Recorded.error()` instead." - case .globalTestFunctionCompleted: return "The `completed()` global function is planned for future deprecation. Please use `Recorded.completed()` instead." - } - } - } - } -#endif - diff --git a/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift b/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift deleted file mode 100644 index 552314a..0000000 --- a/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift +++ /dev/null @@ -1,21 +0,0 @@ -// -// DispatchQueue+Extensions.swift -// Platform -// -// Created by Krunoslav Zaher on 10/22/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -import Dispatch - -extension DispatchQueue { - private static var token: DispatchSpecificKey<()> = { - let key = DispatchSpecificKey<()>() - DispatchQueue.main.setSpecific(key: key, value: ()) - return key - }() - - static var isMain: Bool { - return DispatchQueue.getSpecific(key: token) != nil - } -} diff --git a/Pods/RxSwift/Platform/Platform.Darwin.swift b/Pods/RxSwift/Platform/Platform.Darwin.swift deleted file mode 100644 index 6dc36ad..0000000 --- a/Pods/RxSwift/Platform/Platform.Darwin.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// Platform.Darwin.swift -// Platform -// -// Created by Krunoslav Zaher on 12/29/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) - - import Darwin - import class Foundation.Thread - import protocol Foundation.NSCopying - - extension Thread { - static func setThreadLocalStorageValue(_ value: T?, forKey key: NSCopying) { - let currentThread = Thread.current - let threadDictionary = currentThread.threadDictionary - - if let newValue = value { - threadDictionary[key] = newValue - } - else { - threadDictionary[key] = nil - } - } - - static func getThreadLocalStorageValueForKey(_ key: NSCopying) -> T? { - let currentThread = Thread.current - let threadDictionary = currentThread.threadDictionary - - return threadDictionary[key] as? T - } - } - -#endif diff --git a/Pods/RxSwift/Platform/Platform.Linux.swift b/Pods/RxSwift/Platform/Platform.Linux.swift deleted file mode 100644 index 570f8f0..0000000 --- a/Pods/RxSwift/Platform/Platform.Linux.swift +++ /dev/null @@ -1,37 +0,0 @@ -// -// Platform.Linux.swift -// Platform -// -// Created by Krunoslav Zaher on 12/29/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if os(Linux) - - import class Foundation.Thread - - extension Thread { - - static func setThreadLocalStorageValue(_ value: T?, forKey key: String) { - let currentThread = Thread.current - var threadDictionary = currentThread.threadDictionary - - if let newValue = value { - threadDictionary[key] = newValue - } - else { - threadDictionary[key] = nil - } - - currentThread.threadDictionary = threadDictionary - } - - static func getThreadLocalStorageValueForKey(_ key: String) -> T? { - let currentThread = Thread.current - let threadDictionary = currentThread.threadDictionary - - return threadDictionary[key] as? T - } - } - -#endif diff --git a/Pods/RxSwift/Platform/RecursiveLock.swift b/Pods/RxSwift/Platform/RecursiveLock.swift deleted file mode 100644 index c03471d..0000000 --- a/Pods/RxSwift/Platform/RecursiveLock.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// RecursiveLock.swift -// Platform -// -// Created by Krunoslav Zaher on 12/18/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -import class Foundation.NSRecursiveLock - -#if TRACE_RESOURCES - class RecursiveLock: NSRecursiveLock { - override init() { - _ = Resources.incrementTotal() - super.init() - } - - override func lock() { - super.lock() - _ = Resources.incrementTotal() - } - - override func unlock() { - super.unlock() - _ = Resources.decrementTotal() - } - - deinit { - _ = Resources.decrementTotal() - } - } -#else - typealias RecursiveLock = NSRecursiveLock -#endif diff --git a/Pods/RxSwift/README.md b/Pods/RxSwift/README.md deleted file mode 100644 index 9bce47c..0000000 --- a/Pods/RxSwift/README.md +++ /dev/null @@ -1,217 +0,0 @@ -Miss Electric Eel 2016 RxSwift: ReactiveX for Swift -====================================== - -[![Travis CI](https://travis-ci.org/ReactiveX/RxSwift.svg?branch=master)](https://travis-ci.org/ReactiveX/RxSwift) ![platforms](https://img.shields.io/badge/platforms-iOS%20%7C%20macOS%20%7C%20tvOS%20%7C%20watchOS%20%7C%20Linux-333333.svg) [![pod](https://img.shields.io/cocoapods/v/RxSwift.svg)](https://cocoapods.org/pods/RxSwift) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![Swift Package Manager compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg)](https://github.com/apple/swift-package-manager) - -* RxSwift 3.x / Swift 3.x can be found in [**rxswift-3.0** branch](https://github.com/ReactiveX/RxSwift/tree/rxswift-3.0). - -Rx is a [generic abstraction of computation](https://youtu.be/looJcaeboBY) expressed through `Observable` interface. - -This is a Swift version of [Rx](https://github.com/Reactive-Extensions/Rx.NET). - -It tries to port as many concepts from the original version as possible, but some concepts were adapted for more pleasant and performant integration with iOS/macOS environment. - -Cross platform documentation can be found on [ReactiveX.io](http://reactivex.io/). - -Like the original Rx, its intention is to enable easy composition of asynchronous operations and event/data streams. - -KVO observing, async operations and streams are all unified under [abstraction of sequence](Documentation/GettingStarted.md#observables-aka-sequences). This is the reason why Rx is so simple, elegant and powerful. - -## I came here because I want to ... - -###### ... understand - -* [why use rx?](Documentation/Why.md) -* [the basics, getting started with RxSwift](Documentation/GettingStarted.md) -* [traits](Documentation/Traits.md) - what are `Single`, `Completable`, `Maybe`, `Driver`, and `ControlProperty` ... and why do they exist? -* [testing](Documentation/UnitTests.md) -* [tips and common errors](Documentation/Tips.md) -* [debugging](Documentation/GettingStarted.md#debugging) -* [the math behind Rx](Documentation/MathBehindRx.md) -* [what are hot and cold observable sequences?](Documentation/HotAndColdObservables.md) - -###### ... install - -* Integrate RxSwift/RxCocoa with my app. [Installation Guide](#installation) - -###### ... hack around - -* with the example app. [Running Example App](Documentation/ExampleApp.md) -* with operators in playgrounds. [Playgrounds](Documentation/Playgrounds.md) - -###### ... interact - -* All of this is great, but it would be nice to talk with other people using RxSwift and exchange experiences.
[![Slack channel](http://rxswift-slack.herokuapp.com/badge.svg)](http://slack.rxswift.org) [Join Slack Channel](http://slack.rxswift.org) -* Report a problem using the library. [Open an Issue With Bug Template](.github/ISSUE_TEMPLATE.md) -* Request a new feature. [Open an Issue With Feature Request Template](Documentation/NewFeatureRequestTemplate.md) -* Help out [Check out contribution guide](CONTRIBUTING.md) - -###### ... compare - -* [with other libraries](Documentation/ComparisonWithOtherLibraries.md). - - -###### ... find compatible - -* libraries from [RxSwiftCommunity](https://github.com/RxSwiftCommunity). -* [Pods using RxSwift](https://cocoapods.org/?q=uses%3Arxswift). - -###### ... see the broader vision - -* Does this exist for Android? [RxJava](https://github.com/ReactiveX/RxJava) -* Where is all of this going, what is the future, what about reactive architectures, how do you design entire apps this way? [Cycle.js](https://github.com/cyclejs/cycle-core) - this is javascript, but [RxJS](https://github.com/Reactive-Extensions/RxJS) is javascript version of Rx. - -## Usage - - - - - - - - - - - - - - - - - - - -
Here's an exampleIn Action
Define search for GitHub repositories ...
-let searchResults = searchBar.rx.text.orEmpty
-    .throttle(0.3, scheduler: MainScheduler.instance)
-    .distinctUntilChanged()
-    .flatMapLatest { query -> Observable<[Repository]> in
-        if query.isEmpty {
-            return .just([])
-        }
-        return searchGitHub(query)
-            .catchErrorJustReturn([])
-    }
-    .observeOn(MainScheduler.instance)
... then bind the results to your tableview
-searchResults
-    .bind(to: tableView.rx.items(cellIdentifier: "Cell")) {
-        (index, repository: Repository, cell) in
-        cell.textLabel?.text = repository.name
-        cell.detailTextLabel?.text = repository.url
-    }
-    .disposed(by: disposeBag)
- - -## Requirements - -* Xcode 9.0 -* Swift 4.0 -* Swift 3.x ([use `rxswift-3.0` branch](https://github.com/ReactiveX/RxSwift/tree/rxswift-3.0) instead) -* Swift 2.3 ([use `rxswift-2.0` branch](https://github.com/ReactiveX/RxSwift/tree/rxswift-2.0) instead) - -## Installation - -Rx doesn't contain any external dependencies. - -These are currently the supported options: - -### Manual - -Open Rx.xcworkspace, choose `RxExample` and hit run. This method will build everything and run the sample app - -### [CocoaPods](https://guides.cocoapods.org/using/using-cocoapods.html) - -**Tested with `pod --version`: `1.3.1`** - -```ruby -# Podfile -use_frameworks! - -target 'YOUR_TARGET_NAME' do - pod 'RxSwift', '~> 4.0' - pod 'RxCocoa', '~> 4.0' -end - -# RxTest and RxBlocking make the most sense in the context of unit/integration tests -target 'YOUR_TESTING_TARGET' do - pod 'RxBlocking', '~> 4.0' - pod 'RxTest', '~> 4.0' -end -``` - -Replace `YOUR_TARGET_NAME` and then, in the `Podfile` directory, type: - -```bash -$ pod install -``` - -### [Carthage](https://github.com/Carthage/Carthage) - -**Tested with `carthage version`: `0.26.2`** - -Add this to `Cartfile` - -``` -github "ReactiveX/RxSwift" ~> 4.0 -``` - -```bash -$ carthage update -``` - -### [Swift Package Manager](https://github.com/apple/swift-package-manager) - -**Tested with `swift build --version`: `Swift 4.0.0-dev (swiftpm-13126)`** - -Create a `Package.swift` file. - -```swift -// swift-tools-version:4.0 - -import PackageDescription - -let package = Package( - name: "RxTestProject", - dependencies: [ - .package(url: "https://github.com/ReactiveX/RxSwift.git", "4.0.0" ..< "5.0.0") - ], - targets: [ - .target(name: "RxTestProject", dependencies: ["RxSwift", "RxCocoa"]) - ] -) -``` - -```bash -$ swift build -``` - -To build or test a module with RxTest dependency, set `TEST=1`. ([RxSwift >= 3.4.2](https://github.com/ReactiveX/RxSwift/releases/tag/3.4.2)) - -```bash -$ TEST=1 swift test -``` - -### Manually using git submodules - -* Add RxSwift as a submodule - -```bash -$ git submodule add git@github.com:ReactiveX/RxSwift.git -``` - -* Drag `Rx.xcodeproj` into Project Navigator -* Go to `Project > Targets > Build Phases > Link Binary With Libraries`, click `+` and select `RxSwift-[Platform]` and `RxCocoa-[Platform]` targets - - -## References - -* [http://reactivex.io/](http://reactivex.io/) -* [Reactive Extensions GitHub (GitHub)](https://github.com/Reactive-Extensions) -* [RxSwift RayWenderlich.com Book](https://store.raywenderlich.com/products/rxswift-reactive-programming-with-swift) -* [Boxue.io RxSwift Online Course](https://boxueio.com/series/rxswift-101) (Chinese 🇨🇳) -* [Erik Meijer (Wikipedia)](http://en.wikipedia.org/wiki/Erik_Meijer_%28computer_scientist%29) -* [Expert to Expert: Brian Beckman and Erik Meijer - Inside the .NET Reactive Framework (Rx) (video)](https://youtu.be/looJcaeboBY) -* [Reactive Programming Overview (Jafar Husain from Netflix)](https://www.youtube.com/watch?v=dwP1TNXE6fc) -* [Subject/Observer is Dual to Iterator (paper)](http://csl.stanford.edu/~christos/pldi2010.fit/meijer.duality.pdf) -* [Rx standard sequence operators visualized (visualization tool)](http://rxmarbles.com/) -* [Haskell](https://www.haskell.org/) diff --git a/Pods/RxSwift/RxSwift/AnyObserver.swift b/Pods/RxSwift/RxSwift/AnyObserver.swift deleted file mode 100644 index 85a5efa..0000000 --- a/Pods/RxSwift/RxSwift/AnyObserver.swift +++ /dev/null @@ -1,72 +0,0 @@ -// -// AnyObserver.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/28/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// A type-erased `ObserverType`. -/// -/// Forwards operations to an arbitrary underlying observer with the same `Element` type, hiding the specifics of the underlying observer type. -public struct AnyObserver : ObserverType { - /// The type of elements in sequence that observer can observe. - public typealias E = Element - - /// Anonymous event handler type. - public typealias EventHandler = (Event) -> Void - - private let observer: EventHandler - - /// Construct an instance whose `on(event)` calls `eventHandler(event)` - /// - /// - parameter eventHandler: Event handler that observes sequences events. - public init(eventHandler: @escaping EventHandler) { - self.observer = eventHandler - } - - /// Construct an instance whose `on(event)` calls `observer.on(event)` - /// - /// - parameter observer: Observer that receives sequence events. - public init(_ observer: O) where O.E == Element { - self.observer = observer.on - } - - /// Send `event` to this observer. - /// - /// - parameter event: Event instance. - public func on(_ event: Event) { - return self.observer(event) - } - - /// Erases type of observer and returns canonical observer. - /// - /// - returns: type erased observer. - public func asObserver() -> AnyObserver { - return self - } -} - -extension AnyObserver { - /// Collection of `AnyObserver`s - typealias s = Bag<(Event) -> Void> -} - -extension ObserverType { - /// Erases type of observer and returns canonical observer. - /// - /// - returns: type erased observer. - public func asObserver() -> AnyObserver { - return AnyObserver(self) - } - - /// Transforms observer of type R to type E using custom transform method. - /// Each event sent to result observer is transformed and sent to `self`. - /// - /// - returns: observer that transforms events. - public func mapObserver(_ transform: @escaping (R) throws -> E) -> AnyObserver { - return AnyObserver { e in - self.on(e.map(transform)) - } - } -} diff --git a/Pods/RxSwift/RxSwift/Cancelable.swift b/Pods/RxSwift/RxSwift/Cancelable.swift deleted file mode 100644 index 1fa7a67..0000000 --- a/Pods/RxSwift/RxSwift/Cancelable.swift +++ /dev/null @@ -1,13 +0,0 @@ -// -// Cancelable.swift -// RxSwift -// -// Created by Krunoslav Zaher on 3/12/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// Represents disposable resource with state tracking. -public protocol Cancelable : Disposable { - /// Was resource disposed. - var isDisposed: Bool { get } -} diff --git a/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift b/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift deleted file mode 100644 index 80332db..0000000 --- a/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift +++ /dev/null @@ -1,102 +0,0 @@ -// -// AsyncLock.swift -// RxSwift -// -// Created by Krunoslav Zaher on 3/21/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/** -In case nobody holds this lock, the work will be queued and executed immediately -on thread that is requesting lock. - -In case there is somebody currently holding that lock, action will be enqueued. -When owned of the lock finishes with it's processing, it will also execute -and pending work. - -That means that enqueued work could possibly be executed later on a different thread. -*/ -final class AsyncLock - : Disposable - , Lock - , SynchronizedDisposeType { - typealias Action = () -> Void - - var _lock = SpinLock() - - private var _queue: Queue = Queue(capacity: 0) - - private var _isExecuting: Bool = false - private var _hasFaulted: Bool = false - - // lock { - func lock() { - self._lock.lock() - } - - func unlock() { - self._lock.unlock() - } - // } - - private func enqueue(_ action: I) -> I? { - self._lock.lock(); defer { self._lock.unlock() } // { - if self._hasFaulted { - return nil - } - - if self._isExecuting { - self._queue.enqueue(action) - return nil - } - - self._isExecuting = true - - return action - // } - } - - private func dequeue() -> I? { - self._lock.lock(); defer { self._lock.unlock() } // { - if !self._queue.isEmpty { - return self._queue.dequeue() - } - else { - self._isExecuting = false - return nil - } - // } - } - - func invoke(_ action: I) { - let firstEnqueuedAction = self.enqueue(action) - - if let firstEnqueuedAction = firstEnqueuedAction { - firstEnqueuedAction.invoke() - } - else { - // action is enqueued, it's somebody else's concern now - return - } - - while true { - let nextAction = self.dequeue() - - if let nextAction = nextAction { - nextAction.invoke() - } - else { - return - } - } - } - - func dispose() { - self.synchronizedDispose() - } - - func _synchronized_dispose() { - self._queue = Queue(capacity: 0) - self._hasFaulted = true - } -} diff --git a/Pods/RxSwift/RxSwift/Concurrency/Lock.swift b/Pods/RxSwift/RxSwift/Concurrency/Lock.swift deleted file mode 100644 index b26f5b7..0000000 --- a/Pods/RxSwift/RxSwift/Concurrency/Lock.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// Lock.swift -// RxSwift -// -// Created by Krunoslav Zaher on 3/31/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -protocol Lock { - func lock() - func unlock() -} - -// https://lists.swift.org/pipermail/swift-dev/Week-of-Mon-20151214/000321.html -typealias SpinLock = RecursiveLock - -extension RecursiveLock : Lock { - @inline(__always) - final func performLocked(_ action: () -> Void) { - self.lock(); defer { self.unlock() } - action() - } - - @inline(__always) - final func calculateLocked(_ action: () -> T) -> T { - self.lock(); defer { self.unlock() } - return action() - } - - @inline(__always) - final func calculateLockedOrFail(_ action: () throws -> T) throws -> T { - self.lock(); defer { self.unlock() } - let result = try action() - return result - } -} diff --git a/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift b/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift deleted file mode 100644 index ed6b28a..0000000 --- a/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift +++ /dev/null @@ -1,21 +0,0 @@ -// -// LockOwnerType.swift -// RxSwift -// -// Created by Krunoslav Zaher on 10/25/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -protocol LockOwnerType : class, Lock { - var _lock: RecursiveLock { get } -} - -extension LockOwnerType { - func lock() { - self._lock.lock() - } - - func unlock() { - self._lock.unlock() - } -} diff --git a/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift b/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift deleted file mode 100644 index 0490a69..0000000 --- a/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// SynchronizedDisposeType.swift -// RxSwift -// -// Created by Krunoslav Zaher on 10/25/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -protocol SynchronizedDisposeType : class, Disposable, Lock { - func _synchronized_dispose() -} - -extension SynchronizedDisposeType { - func synchronizedDispose() { - self.lock(); defer { self.unlock() } - self._synchronized_dispose() - } -} diff --git a/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift b/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift deleted file mode 100644 index 33aa84f..0000000 --- a/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// SynchronizedOnType.swift -// RxSwift -// -// Created by Krunoslav Zaher on 10/25/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -protocol SynchronizedOnType : class, ObserverType, Lock { - func _synchronized_on(_ event: Event) -} - -extension SynchronizedOnType { - func synchronizedOn(_ event: Event) { - self.lock(); defer { self.unlock() } - self._synchronized_on(event) - } -} diff --git a/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift b/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift deleted file mode 100644 index bb1aa7e..0000000 --- a/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift +++ /dev/null @@ -1,13 +0,0 @@ -// -// SynchronizedUnsubscribeType.swift -// RxSwift -// -// Created by Krunoslav Zaher on 10/25/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -protocol SynchronizedUnsubscribeType : class { - associatedtype DisposeKey - - func synchronizedUnsubscribe(_ disposeKey: DisposeKey) -} diff --git a/Pods/RxSwift/RxSwift/ConnectableObservableType.swift b/Pods/RxSwift/RxSwift/ConnectableObservableType.swift deleted file mode 100644 index 52bf93c..0000000 --- a/Pods/RxSwift/RxSwift/ConnectableObservableType.swift +++ /dev/null @@ -1,19 +0,0 @@ -// -// ConnectableObservableType.swift -// RxSwift -// -// Created by Krunoslav Zaher on 3/1/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/** -Represents an observable sequence wrapper that can be connected and disconnected from its underlying observable sequence. -*/ -public protocol ConnectableObservableType : ObservableType { - /** - Connects the observable wrapper to its source. All subscribed observers will receive values from the underlying observable sequence as long as the connection is established. - - - returns: Disposable used to disconnect the observable wrapper from its source, causing subscribed observer to stop receiving values from the underlying observable sequence. - */ - func connect() -> Disposable -} diff --git a/Pods/RxSwift/RxSwift/Deprecated.swift b/Pods/RxSwift/RxSwift/Deprecated.swift deleted file mode 100644 index cb41090..0000000 --- a/Pods/RxSwift/RxSwift/Deprecated.swift +++ /dev/null @@ -1,228 +0,0 @@ -// -// Deprecated.swift -// RxSwift -// -// Created by Krunoslav Zaher on 3/5/17. -// Copyright © 2017 Krunoslav Zaher. All rights reserved. -// - -extension Observable { - /** - Converts a optional to an observable sequence. - - - seealso: [from operator on reactivex.io](http://reactivex.io/documentation/operators/from.html) - - - parameter optional: Optional element in the resulting observable sequence. - - returns: An observable sequence containing the wrapped value or not from given optional. - */ - @available(*, deprecated, message: "Implicit conversions from any type to optional type are allowed and that is causing issues with `from` operator overloading.", renamed: "from(optional:)") - public static func from(_ optional: E?) -> Observable { - return Observable.from(optional: optional) - } - - /** - Converts a optional to an observable sequence. - - - seealso: [from operator on reactivex.io](http://reactivex.io/documentation/operators/from.html) - - - parameter optional: Optional element in the resulting observable sequence. - - parameter scheduler: Scheduler to send the optional element on. - - returns: An observable sequence containing the wrapped value or not from given optional. - */ - @available(*, deprecated, message: "Implicit conversions from any type to optional type are allowed and that is causing issues with `from` operator overloading.", renamed: "from(optional:scheduler:)") - public static func from(_ optional: E?, scheduler: ImmediateSchedulerType) -> Observable { - return Observable.from(optional: optional, scheduler: scheduler) - } -} - -extension ObservableType { - /** - - Projects each element of an observable sequence into a new form by incorporating the element's index. - - - seealso: [map operator on reactivex.io](http://reactivex.io/documentation/operators/map.html) - - - parameter selector: A transform function to apply to each source element; the second parameter of the function represents the index of the source element. - - returns: An observable sequence whose elements are the result of invoking the transform function on each element of source. - */ - @available(*, deprecated, message: "Please use enumerated().map()") - public func mapWithIndex(_ selector: @escaping (E, Int) throws -> R) - -> Observable { - return self.enumerated().map { try selector($0.element, $0.index) } - } - - - /** - - Projects each element of an observable sequence to an observable sequence by incorporating the element's index and merges the resulting observable sequences into one observable sequence. - - - seealso: [flatMap operator on reactivex.io](http://reactivex.io/documentation/operators/flatmap.html) - - - parameter selector: A transform function to apply to each element; the second parameter of the function represents the index of the source element. - - returns: An observable sequence whose elements are the result of invoking the one-to-many transform function on each element of the input sequence. - */ - @available(*, deprecated, message: "Please use enumerated().flatMap()") - public func flatMapWithIndex(_ selector: @escaping (E, Int) throws -> O) - -> Observable { - return self.enumerated().flatMap { try selector($0.element, $0.index) } - } - - /** - - Bypasses elements in an observable sequence as long as a specified condition is true and then returns the remaining elements. - The element's index is used in the logic of the predicate function. - - - seealso: [skipWhile operator on reactivex.io](http://reactivex.io/documentation/operators/skipwhile.html) - - - parameter predicate: A function to test each element for a condition; the second parameter of the function represents the index of the source element. - - returns: An observable sequence that contains the elements from the input sequence starting at the first element in the linear series that does not pass the test specified by predicate. - */ - @available(*, deprecated, message: "Please use enumerated().skipWhile().map()") - public func skipWhileWithIndex(_ predicate: @escaping (E, Int) throws -> Bool) -> Observable { - return self.enumerated().skipWhile { try predicate($0.element, $0.index) }.map { $0.element } - } - - - /** - - Returns elements from an observable sequence as long as a specified condition is true. - - The element's index is used in the logic of the predicate function. - - - seealso: [takeWhile operator on reactivex.io](http://reactivex.io/documentation/operators/takewhile.html) - - - parameter predicate: A function to test each element for a condition; the second parameter of the function represents the index of the source element. - - returns: An observable sequence that contains the elements from the input sequence that occur before the element at which the test no longer passes. - */ - @available(*, deprecated, message: "Please use enumerated().takeWhile().map()") - public func takeWhileWithIndex(_ predicate: @escaping (E, Int) throws -> Bool) -> Observable { - return self.enumerated().takeWhile { try predicate($0.element, $0.index) }.map { $0.element } - } -} - -extension Disposable { - /// Deprecated in favor of `disposed(by:)` - /// - /// - /// Adds `self` to `bag`. - /// - /// - parameter bag: `DisposeBag` to add `self` to. - @available(*, deprecated, message: "use disposed(by:) instead", renamed: "disposed(by:)") - public func addDisposableTo(_ bag: DisposeBag) { - self.disposed(by: bag) - } -} - - -extension ObservableType { - - /** - Returns an observable sequence that shares a single subscription to the underlying sequence, and immediately upon subscription replays latest element in buffer. - - This operator is a specialization of replay which creates a subscription when the number of observers goes from zero to one, then shares that subscription with all subsequent observers until the number of observers returns to zero, at which point the subscription is disposed. - - - seealso: [shareReplay operator on reactivex.io](http://reactivex.io/documentation/operators/replay.html) - - - returns: An observable sequence that contains the elements of a sequence produced by multicasting the source sequence. - */ - @available(*, deprecated, message: "use share(replay: 1) instead", renamed: "share(replay:)") - public func shareReplayLatestWhileConnected() - -> Observable { - return self.share(replay: 1, scope: .whileConnected) - } -} - - -extension ObservableType { - - /** - Returns an observable sequence that shares a single subscription to the underlying sequence, and immediately upon subscription replays maximum number of elements in buffer. - - This operator is a specialization of replay which creates a subscription when the number of observers goes from zero to one, then shares that subscription with all subsequent observers until the number of observers returns to zero, at which point the subscription is disposed. - - - seealso: [shareReplay operator on reactivex.io](http://reactivex.io/documentation/operators/replay.html) - - - parameter bufferSize: Maximum element count of the replay buffer. - - returns: An observable sequence that contains the elements of a sequence produced by multicasting the source sequence. - */ - @available(*, deprecated, message: "Suggested replacement is `share(replay: 1)`. In case old 3.x behavior of `shareReplay` is required please use `share(replay: 1, scope: .forever)` instead.", renamed: "share(replay:)") - public func shareReplay(_ bufferSize: Int) - -> Observable { - return self.share(replay: bufferSize, scope: .forever) - } -} - -/// Variable is a wrapper for `BehaviorSubject`. -/// -/// Unlike `BehaviorSubject` it can't terminate with error, and when variable is deallocated -/// it will complete its observable sequence (`asObservable`). -/// -/// **This concept will be deprecated from RxSwift but offical migration path hasn't been decided yet.** -/// https://github.com/ReactiveX/RxSwift/issues/1501 -/// -/// Current recommended replacement for this API is `RxCocoa.BehaviorRelay` because: -/// * `Variable` isn't a standard cross platform concept, hence it's out of place in RxSwift target. -/// * It doesn't have a counterpart for handling events (`PublishRelay`). It models state only. -/// * It doesn't have a consistent naming with *Relay or other Rx concepts. -/// * It has an inconsistent memory management model compared to other parts of RxSwift (completes on `deinit`). -/// -/// Once plans are finalized, official availability attribute will be added in one of upcoming versions. -public final class Variable { - - public typealias E = Element - - private let _subject: BehaviorSubject - - private var _lock = SpinLock() - - // state - private var _value: E - - #if DEBUG - fileprivate let _synchronizationTracker = SynchronizationTracker() - #endif - - /// Gets or sets current value of variable. - /// - /// Whenever a new value is set, all the observers are notified of the change. - /// - /// Even if the newly set value is same as the old value, observers are still notified for change. - public var value: E { - get { - self._lock.lock(); defer { self._lock.unlock() } - return self._value - } - set(newValue) { - #if DEBUG - self._synchronizationTracker.register(synchronizationErrorMessage: .variable) - defer { self._synchronizationTracker.unregister() } - #endif - self._lock.lock() - self._value = newValue - self._lock.unlock() - - self._subject.on(.next(newValue)) - } - } - - /// Initializes variable with initial value. - /// - /// - parameter value: Initial variable value. - public init(_ value: Element) { - #if DEBUG - DeprecationWarner.warnIfNeeded(.variable) - #endif - - self._value = value - self._subject = BehaviorSubject(value: value) - } - - /// - returns: Canonical interface for push style sequence - public func asObservable() -> Observable { - return self._subject - } - - deinit { - self._subject.on(.completed) - } -} diff --git a/Pods/RxSwift/RxSwift/Disposable.swift b/Pods/RxSwift/RxSwift/Disposable.swift deleted file mode 100644 index b79c77a..0000000 --- a/Pods/RxSwift/RxSwift/Disposable.swift +++ /dev/null @@ -1,13 +0,0 @@ -// -// Disposable.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/8/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// Represents a disposable resource. -public protocol Disposable { - /// Dispose resource. - func dispose() -} diff --git a/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift b/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift deleted file mode 100644 index 5249a31..0000000 --- a/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift +++ /dev/null @@ -1,59 +0,0 @@ -// -// AnonymousDisposable.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/15/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// Represents an Action-based disposable. -/// -/// When dispose method is called, disposal action will be dereferenced. -fileprivate final class AnonymousDisposable : DisposeBase, Cancelable { - public typealias DisposeAction = () -> Void - - private var _isDisposed = AtomicInt(0) - private var _disposeAction: DisposeAction? - - /// - returns: Was resource disposed. - public var isDisposed: Bool { - return isFlagSet(&self._isDisposed, 1) - } - - /// Constructs a new disposable with the given action used for disposal. - /// - /// - parameter disposeAction: Disposal action which will be run upon calling `dispose`. - fileprivate init(_ disposeAction: @escaping DisposeAction) { - self._disposeAction = disposeAction - super.init() - } - - // Non-deprecated version of the constructor, used by `Disposables.create(with:)` - fileprivate init(disposeAction: @escaping DisposeAction) { - self._disposeAction = disposeAction - super.init() - } - - /// Calls the disposal action if and only if the current instance hasn't been disposed yet. - /// - /// After invoking disposal action, disposal action will be dereferenced. - fileprivate func dispose() { - if fetchOr(&self._isDisposed, 1) == 0 { - if let action = self._disposeAction { - self._disposeAction = nil - action() - } - } - } -} - -extension Disposables { - - /// Constructs a new disposable with the given action used for disposal. - /// - /// - parameter dispose: Disposal action which will be run upon calling `dispose`. - public static func create(with dispose: @escaping () -> Void) -> Cancelable { - return AnonymousDisposable(disposeAction: dispose) - } - -} diff --git a/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift b/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift deleted file mode 100644 index 4bbff55..0000000 --- a/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift +++ /dev/null @@ -1,53 +0,0 @@ -// -// BinaryDisposable.swift -// RxSwift -// -// Created by Krunoslav Zaher on 6/12/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// Represents two disposable resources that are disposed together. -private final class BinaryDisposable : DisposeBase, Cancelable { - - private var _isDisposed = AtomicInt(0) - - // state - private var _disposable1: Disposable? - private var _disposable2: Disposable? - - /// - returns: Was resource disposed. - var isDisposed: Bool { - return isFlagSet(&self._isDisposed, 1) - } - - /// Constructs new binary disposable from two disposables. - /// - /// - parameter disposable1: First disposable - /// - parameter disposable2: Second disposable - init(_ disposable1: Disposable, _ disposable2: Disposable) { - self._disposable1 = disposable1 - self._disposable2 = disposable2 - super.init() - } - - /// Calls the disposal action if and only if the current instance hasn't been disposed yet. - /// - /// After invoking disposal action, disposal action will be dereferenced. - func dispose() { - if fetchOr(&self._isDisposed, 1) == 0 { - self._disposable1?.dispose() - self._disposable2?.dispose() - self._disposable1 = nil - self._disposable2 = nil - } - } -} - -extension Disposables { - - /// Creates a disposable with the given disposables. - public static func create(_ disposable1: Disposable, _ disposable2: Disposable) -> Cancelable { - return BinaryDisposable(disposable1, disposable2) - } - -} diff --git a/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift b/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift deleted file mode 100644 index a0f5c2f..0000000 --- a/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// BooleanDisposable.swift -// RxSwift -// -// Created by Junior B. on 10/29/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// Represents a disposable resource that can be checked for disposal status. -public final class BooleanDisposable : Cancelable { - - internal static let BooleanDisposableTrue = BooleanDisposable(isDisposed: true) - private var _isDisposed = false - - /// Initializes a new instance of the `BooleanDisposable` class - public init() { - } - - /// Initializes a new instance of the `BooleanDisposable` class with given value - public init(isDisposed: Bool) { - self._isDisposed = isDisposed - } - - /// - returns: Was resource disposed. - public var isDisposed: Bool { - return self._isDisposed - } - - /// Sets the status to disposed, which can be observer through the `isDisposed` property. - public func dispose() { - self._isDisposed = true - } -} diff --git a/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift b/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift deleted file mode 100644 index ce0da6a..0000000 --- a/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift +++ /dev/null @@ -1,151 +0,0 @@ -// -// CompositeDisposable.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/20/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// Represents a group of disposable resources that are disposed together. -public final class CompositeDisposable : DisposeBase, Cancelable { - /// Key used to remove disposable from composite disposable - public struct DisposeKey { - fileprivate let key: BagKey - fileprivate init(key: BagKey) { - self.key = key - } - } - - private var _lock = SpinLock() - - // state - private var _disposables: Bag? = Bag() - - public var isDisposed: Bool { - self._lock.lock(); defer { self._lock.unlock() } - return self._disposables == nil - } - - public override init() { - } - - /// Initializes a new instance of composite disposable with the specified number of disposables. - public init(_ disposable1: Disposable, _ disposable2: Disposable) { - // This overload is here to make sure we are using optimized version up to 4 arguments. - _ = self._disposables!.insert(disposable1) - _ = self._disposables!.insert(disposable2) - } - - /// Initializes a new instance of composite disposable with the specified number of disposables. - public init(_ disposable1: Disposable, _ disposable2: Disposable, _ disposable3: Disposable) { - // This overload is here to make sure we are using optimized version up to 4 arguments. - _ = self._disposables!.insert(disposable1) - _ = self._disposables!.insert(disposable2) - _ = self._disposables!.insert(disposable3) - } - - /// Initializes a new instance of composite disposable with the specified number of disposables. - public init(_ disposable1: Disposable, _ disposable2: Disposable, _ disposable3: Disposable, _ disposable4: Disposable, _ disposables: Disposable...) { - // This overload is here to make sure we are using optimized version up to 4 arguments. - _ = self._disposables!.insert(disposable1) - _ = self._disposables!.insert(disposable2) - _ = self._disposables!.insert(disposable3) - _ = self._disposables!.insert(disposable4) - - for disposable in disposables { - _ = self._disposables!.insert(disposable) - } - } - - /// Initializes a new instance of composite disposable with the specified number of disposables. - public init(disposables: [Disposable]) { - for disposable in disposables { - _ = self._disposables!.insert(disposable) - } - } - - /** - Adds a disposable to the CompositeDisposable or disposes the disposable if the CompositeDisposable is disposed. - - - parameter disposable: Disposable to add. - - returns: Key that can be used to remove disposable from composite disposable. In case dispose bag was already - disposed `nil` will be returned. - */ - public func insert(_ disposable: Disposable) -> DisposeKey? { - let key = self._insert(disposable) - - if key == nil { - disposable.dispose() - } - - return key - } - - private func _insert(_ disposable: Disposable) -> DisposeKey? { - self._lock.lock(); defer { self._lock.unlock() } - - let bagKey = self._disposables?.insert(disposable) - return bagKey.map(DisposeKey.init) - } - - /// - returns: Gets the number of disposables contained in the `CompositeDisposable`. - public var count: Int { - self._lock.lock(); defer { self._lock.unlock() } - return self._disposables?.count ?? 0 - } - - /// Removes and disposes the disposable identified by `disposeKey` from the CompositeDisposable. - /// - /// - parameter disposeKey: Key used to identify disposable to be removed. - public func remove(for disposeKey: DisposeKey) { - self._remove(for: disposeKey)?.dispose() - } - - private func _remove(for disposeKey: DisposeKey) -> Disposable? { - self._lock.lock(); defer { self._lock.unlock() } - return self._disposables?.removeKey(disposeKey.key) - } - - /// Disposes all disposables in the group and removes them from the group. - public func dispose() { - if let disposables = self._dispose() { - disposeAll(in: disposables) - } - } - - private func _dispose() -> Bag? { - self._lock.lock(); defer { self._lock.unlock() } - - let disposeBag = self._disposables - self._disposables = nil - - return disposeBag - } -} - -extension Disposables { - - /// Creates a disposable with the given disposables. - public static func create(_ disposable1: Disposable, _ disposable2: Disposable, _ disposable3: Disposable) -> Cancelable { - return CompositeDisposable(disposable1, disposable2, disposable3) - } - - /// Creates a disposable with the given disposables. - public static func create(_ disposable1: Disposable, _ disposable2: Disposable, _ disposable3: Disposable, _ disposables: Disposable ...) -> Cancelable { - var disposables = disposables - disposables.append(disposable1) - disposables.append(disposable2) - disposables.append(disposable3) - return CompositeDisposable(disposables: disposables) - } - - /// Creates a disposable with the given disposables. - public static func create(_ disposables: [Disposable]) -> Cancelable { - switch disposables.count { - case 2: - return Disposables.create(disposables[0], disposables[1]) - default: - return CompositeDisposable(disposables: disposables) - } - } -} diff --git a/Pods/RxSwift/RxSwift/Disposables/Disposables.swift b/Pods/RxSwift/RxSwift/Disposables/Disposables.swift deleted file mode 100644 index 8cd6e28..0000000 --- a/Pods/RxSwift/RxSwift/Disposables/Disposables.swift +++ /dev/null @@ -1,13 +0,0 @@ -// -// Disposables.swift -// RxSwift -// -// Created by Mohsen Ramezanpoor on 01/08/2016. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -/// A collection of utility methods for common disposable operations. -public struct Disposables { - private init() {} -} - diff --git a/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift b/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift deleted file mode 100644 index 22e5cb0..0000000 --- a/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift +++ /dev/null @@ -1,114 +0,0 @@ -// -// DisposeBag.swift -// RxSwift -// -// Created by Krunoslav Zaher on 3/25/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension Disposable { - /// Adds `self` to `bag` - /// - /// - parameter bag: `DisposeBag` to add `self` to. - public func disposed(by bag: DisposeBag) { - bag.insert(self) - } -} - -/** -Thread safe bag that disposes added disposables on `deinit`. - -This returns ARC (RAII) like resource management to `RxSwift`. - -In case contained disposables need to be disposed, just put a different dispose bag -or create a new one in its place. - - self.existingDisposeBag = DisposeBag() - -In case explicit disposal is necessary, there is also `CompositeDisposable`. -*/ -public final class DisposeBag: DisposeBase { - - private var _lock = SpinLock() - - // state - fileprivate var _disposables = [Disposable]() - fileprivate var _isDisposed = false - - /// Constructs new empty dispose bag. - public override init() { - super.init() - } - - /// Adds `disposable` to be disposed when dispose bag is being deinited. - /// - /// - parameter disposable: Disposable to add. - public func insert(_ disposable: Disposable) { - self._insert(disposable)?.dispose() - } - - private func _insert(_ disposable: Disposable) -> Disposable? { - self._lock.lock(); defer { self._lock.unlock() } - if self._isDisposed { - return disposable - } - - self._disposables.append(disposable) - - return nil - } - - /// This is internal on purpose, take a look at `CompositeDisposable` instead. - private func dispose() { - let oldDisposables = self._dispose() - - for disposable in oldDisposables { - disposable.dispose() - } - } - - private func _dispose() -> [Disposable] { - self._lock.lock(); defer { self._lock.unlock() } - - let disposables = self._disposables - - self._disposables.removeAll(keepingCapacity: false) - self._isDisposed = true - - return disposables - } - - deinit { - self.dispose() - } -} - -extension DisposeBag { - - /// Convenience init allows a list of disposables to be gathered for disposal. - public convenience init(disposing disposables: Disposable...) { - self.init() - self._disposables += disposables - } - - /// Convenience init allows an array of disposables to be gathered for disposal. - public convenience init(disposing disposables: [Disposable]) { - self.init() - self._disposables += disposables - } - - /// Convenience function allows a list of disposables to be gathered for disposal. - public func insert(_ disposables: Disposable...) { - self.insert(disposables) - } - - /// Convenience function allows an array of disposables to be gathered for disposal. - public func insert(_ disposables: [Disposable]) { - self._lock.lock(); defer { self._lock.unlock() } - if self._isDisposed { - disposables.forEach { $0.dispose() } - } else { - self._disposables += disposables - } - } -} diff --git a/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift b/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift deleted file mode 100644 index 0d4b2fb..0000000 --- a/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift +++ /dev/null @@ -1,22 +0,0 @@ -// -// DisposeBase.swift -// RxSwift -// -// Created by Krunoslav Zaher on 4/4/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// Base class for all disposables. -public class DisposeBase { - init() { -#if TRACE_RESOURCES - _ = Resources.incrementTotal() -#endif - } - - deinit { -#if TRACE_RESOURCES - _ = Resources.decrementTotal() -#endif - } -} diff --git a/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift b/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift deleted file mode 100644 index 149f866..0000000 --- a/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift +++ /dev/null @@ -1,32 +0,0 @@ -// -// NopDisposable.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/15/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// Represents a disposable that does nothing on disposal. -/// -/// Nop = No Operation -fileprivate struct NopDisposable : Disposable { - - fileprivate static let noOp: Disposable = NopDisposable() - - fileprivate init() { - - } - - /// Does nothing. - public func dispose() { - } -} - -extension Disposables { - /** - Creates a disposable that does nothing on disposal. - */ - static public func create() -> Disposable { - return NopDisposable.noOp - } -} diff --git a/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift b/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift deleted file mode 100644 index 4194556..0000000 --- a/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift +++ /dev/null @@ -1,113 +0,0 @@ -// -// RefCountDisposable.swift -// RxSwift -// -// Created by Junior B. on 10/29/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// Represents a disposable resource that only disposes its underlying disposable resource when all dependent disposable objects have been disposed. -public final class RefCountDisposable : DisposeBase, Cancelable { - private var _lock = SpinLock() - private var _disposable = nil as Disposable? - private var _primaryDisposed = false - private var _count = 0 - - /// - returns: Was resource disposed. - public var isDisposed: Bool { - self._lock.lock(); defer { self._lock.unlock() } - return self._disposable == nil - } - - /// Initializes a new instance of the `RefCountDisposable`. - public init(disposable: Disposable) { - self._disposable = disposable - super.init() - } - - /** - Holds a dependent disposable that when disposed decreases the refcount on the underlying disposable. - - When getter is called, a dependent disposable contributing to the reference count that manages the underlying disposable's lifetime is returned. - */ - public func retain() -> Disposable { - return self._lock.calculateLocked { - if self._disposable != nil { - do { - _ = try incrementChecked(&self._count) - } catch { - rxFatalError("RefCountDisposable increment failed") - } - - return RefCountInnerDisposable(self) - } else { - return Disposables.create() - } - } - } - - /// Disposes the underlying disposable only when all dependent disposables have been disposed. - public func dispose() { - let oldDisposable: Disposable? = self._lock.calculateLocked { - if let oldDisposable = self._disposable, !self._primaryDisposed { - self._primaryDisposed = true - - if self._count == 0 { - self._disposable = nil - return oldDisposable - } - } - - return nil - } - - if let disposable = oldDisposable { - disposable.dispose() - } - } - - fileprivate func release() { - let oldDisposable: Disposable? = self._lock.calculateLocked { - if let oldDisposable = self._disposable { - do { - _ = try decrementChecked(&self._count) - } catch { - rxFatalError("RefCountDisposable decrement on release failed") - } - - guard self._count >= 0 else { - rxFatalError("RefCountDisposable counter is lower than 0") - } - - if self._primaryDisposed && self._count == 0 { - self._disposable = nil - return oldDisposable - } - } - - return nil - } - - if let disposable = oldDisposable { - disposable.dispose() - } - } -} - -internal final class RefCountInnerDisposable: DisposeBase, Disposable -{ - private let _parent: RefCountDisposable - private var _isDisposed = AtomicInt(0) - - init(_ parent: RefCountDisposable) { - self._parent = parent - super.init() - } - - internal func dispose() - { - if fetchOr(&self._isDisposed, 1) == 0 { - self._parent.release() - } - } -} diff --git a/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift b/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift deleted file mode 100644 index 8d91bd4..0000000 --- a/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift +++ /dev/null @@ -1,50 +0,0 @@ -// -// ScheduledDisposable.swift -// RxSwift -// -// Created by Krunoslav Zaher on 6/13/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -private let disposeScheduledDisposable: (ScheduledDisposable) -> Disposable = { sd in - sd.disposeInner() - return Disposables.create() -} - -/// Represents a disposable resource whose disposal invocation will be scheduled on the specified scheduler. -public final class ScheduledDisposable : Cancelable { - public let scheduler: ImmediateSchedulerType - - private var _isDisposed = AtomicInt(0) - - // state - private var _disposable: Disposable? - - /// - returns: Was resource disposed. - public var isDisposed: Bool { - return isFlagSet(&self._isDisposed, 1) - } - - /** - Initializes a new instance of the `ScheduledDisposable` that uses a `scheduler` on which to dispose the `disposable`. - - - parameter scheduler: Scheduler where the disposable resource will be disposed on. - - parameter disposable: Disposable resource to dispose on the given scheduler. - */ - public init(scheduler: ImmediateSchedulerType, disposable: Disposable) { - self.scheduler = scheduler - self._disposable = disposable - } - - /// Disposes the wrapped disposable on the provided scheduler. - public func dispose() { - _ = self.scheduler.schedule(self, action: disposeScheduledDisposable) - } - - func disposeInner() { - if fetchOr(&self._isDisposed, 1) == 0 { - self._disposable!.dispose() - self._disposable = nil - } - } -} diff --git a/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift b/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift deleted file mode 100644 index 22dce36..0000000 --- a/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift +++ /dev/null @@ -1,75 +0,0 @@ -// -// SerialDisposable.swift -// RxSwift -// -// Created by Krunoslav Zaher on 3/12/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// Represents a disposable resource whose underlying disposable resource can be replaced by another disposable resource, causing automatic disposal of the previous underlying disposable resource. -public final class SerialDisposable : DisposeBase, Cancelable { - private var _lock = SpinLock() - - // state - private var _current = nil as Disposable? - private var _isDisposed = false - - /// - returns: Was resource disposed. - public var isDisposed: Bool { - return self._isDisposed - } - - /// Initializes a new instance of the `SerialDisposable`. - override public init() { - super.init() - } - - /** - Gets or sets the underlying disposable. - - Assigning this property disposes the previous disposable object. - - If the `SerialDisposable` has already been disposed, assignment to this property causes immediate disposal of the given disposable object. - */ - public var disposable: Disposable { - get { - return self._lock.calculateLocked { - return self._current ?? Disposables.create() - } - } - set (newDisposable) { - let disposable: Disposable? = self._lock.calculateLocked { - if self._isDisposed { - return newDisposable - } - else { - let toDispose = self._current - self._current = newDisposable - return toDispose - } - } - - if let disposable = disposable { - disposable.dispose() - } - } - } - - /// Disposes the underlying disposable as well as all future replacements. - public func dispose() { - self._dispose()?.dispose() - } - - private func _dispose() -> Disposable? { - self._lock.lock(); defer { self._lock.unlock() } - if self._isDisposed { - return nil - } - else { - self._isDisposed = true - let current = self._current - self._current = nil - return current - } - } -} diff --git a/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift b/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift deleted file mode 100644 index 229e0ae..0000000 --- a/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift +++ /dev/null @@ -1,70 +0,0 @@ -// -// SingleAssignmentDisposable.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/15/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/** -Represents a disposable resource which only allows a single assignment of its underlying disposable resource. - -If an underlying disposable resource has already been set, future attempts to set the underlying disposable resource will throw an exception. -*/ -public final class SingleAssignmentDisposable : DisposeBase, Cancelable { - - fileprivate enum DisposeState: Int32 { - case disposed = 1 - case disposableSet = 2 - } - - // state - private var _state = AtomicInt(0) - private var _disposable = nil as Disposable? - - /// - returns: A value that indicates whether the object is disposed. - public var isDisposed: Bool { - return isFlagSet(&self._state, DisposeState.disposed.rawValue) - } - - /// Initializes a new instance of the `SingleAssignmentDisposable`. - public override init() { - super.init() - } - - /// Gets or sets the underlying disposable. After disposal, the result of getting this property is undefined. - /// - /// **Throws exception if the `SingleAssignmentDisposable` has already been assigned to.** - public func setDisposable(_ disposable: Disposable) { - self._disposable = disposable - - let previousState = fetchOr(&self._state, DisposeState.disposableSet.rawValue) - - if (previousState & DisposeState.disposableSet.rawValue) != 0 { - rxFatalError("oldState.disposable != nil") - } - - if (previousState & DisposeState.disposed.rawValue) != 0 { - disposable.dispose() - self._disposable = nil - } - } - - /// Disposes the underlying disposable. - public func dispose() { - let previousState = fetchOr(&self._state, DisposeState.disposed.rawValue) - - if (previousState & DisposeState.disposed.rawValue) != 0 { - return - } - - if (previousState & DisposeState.disposableSet.rawValue) != 0 { - guard let disposable = self._disposable else { - rxFatalError("Disposable not set") - } - disposable.dispose() - self._disposable = nil - } - } - -} diff --git a/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift b/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift deleted file mode 100644 index 430e4c6..0000000 --- a/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift +++ /dev/null @@ -1,21 +0,0 @@ -// -// SubscriptionDisposable.swift -// RxSwift -// -// Created by Krunoslav Zaher on 10/25/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -struct SubscriptionDisposable : Disposable { - private let _key: T.DisposeKey - private weak var _owner: T? - - init(owner: T, key: T.DisposeKey) { - self._owner = owner - self._key = key - } - - func dispose() { - self._owner?.synchronizedUnsubscribe(self._key) - } -} diff --git a/Pods/RxSwift/RxSwift/Errors.swift b/Pods/RxSwift/RxSwift/Errors.swift deleted file mode 100644 index f17b52d..0000000 --- a/Pods/RxSwift/RxSwift/Errors.swift +++ /dev/null @@ -1,52 +0,0 @@ -// -// Errors.swift -// RxSwift -// -// Created by Krunoslav Zaher on 3/28/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -let RxErrorDomain = "RxErrorDomain" -let RxCompositeFailures = "RxCompositeFailures" - -/// Generic Rx error codes. -public enum RxError - : Swift.Error - , CustomDebugStringConvertible { - /// Unknown error occurred. - case unknown - /// Performing an action on disposed object. - case disposed(object: AnyObject) - /// Aritmetic overflow error. - case overflow - /// Argument out of range error. - case argumentOutOfRange - /// Sequence doesn't contain any elements. - case noElements - /// Sequence contains more than one element. - case moreThanOneElement - /// Timeout error. - case timeout -} - -extension RxError { - /// A textual representation of `self`, suitable for debugging. - public var debugDescription: String { - switch self { - case .unknown: - return "Unknown error occurred." - case .disposed(let object): - return "Object `\(object)` was already disposed." - case .overflow: - return "Arithmetic overflow occurred." - case .argumentOutOfRange: - return "Argument out of range." - case .noElements: - return "Sequence doesn't contain any elements." - case .moreThanOneElement: - return "Sequence contains more than one element." - case .timeout: - return "Sequence timeout." - } - } -} diff --git a/Pods/RxSwift/RxSwift/Event.swift b/Pods/RxSwift/RxSwift/Event.swift deleted file mode 100644 index 9193e35..0000000 --- a/Pods/RxSwift/RxSwift/Event.swift +++ /dev/null @@ -1,106 +0,0 @@ -// -// Event.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/8/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// Represents a sequence event. -/// -/// Sequence grammar: -/// **next\* (error | completed)** -public enum Event { - /// Next element is produced. - case next(Element) - - /// Sequence terminated with an error. - case error(Swift.Error) - - /// Sequence completed successfully. - case completed -} - -extension Event : CustomDebugStringConvertible { - /// Description of event. - public var debugDescription: String { - switch self { - case .next(let value): - return "next(\(value))" - case .error(let error): - return "error(\(error))" - case .completed: - return "completed" - } - } -} - -extension Event { - /// Is `completed` or `error` event. - public var isStopEvent: Bool { - switch self { - case .next: return false - case .error, .completed: return true - } - } - - /// If `next` event, returns element value. - public var element: Element? { - if case .next(let value) = self { - return value - } - return nil - } - - /// If `error` event, returns error. - public var error: Swift.Error? { - if case .error(let error) = self { - return error - } - return nil - } - - /// If `completed` event, returns `true`. - public var isCompleted: Bool { - if case .completed = self { - return true - } - return false - } -} - -extension Event { - /// Maps sequence elements using transform. If error happens during the transform, `.error` - /// will be returned as value. - public func map(_ transform: (Element) throws -> Result) -> Event { - do { - switch self { - case let .next(element): - return .next(try transform(element)) - case let .error(error): - return .error(error) - case .completed: - return .completed - } - } - catch let e { - return .error(e) - } - } -} - -/// A type that can be converted to `Event`. -public protocol EventConvertible { - /// Type of element in event - associatedtype ElementType - - /// Event representation of this instance - var event: Event { get } -} - -extension Event : EventConvertible { - /// Event representation of this instance - public var event: Event { - return self - } -} diff --git a/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift b/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift deleted file mode 100644 index fc9b22c..0000000 --- a/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift +++ /dev/null @@ -1,50 +0,0 @@ -// -// Bag+Rx.swift -// RxSwift -// -// Created by Krunoslav Zaher on 10/19/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - - -// MARK: forEach - -@inline(__always) -func dispatch(_ bag: Bag<(Event) -> Void>, _ event: Event) { - bag._value0?(event) - - if bag._onlyFastPath { - return - } - - let pairs = bag._pairs - for i in 0 ..< pairs.count { - pairs[i].value(event) - } - - if let dictionary = bag._dictionary { - for element in dictionary.values { - element(event) - } - } -} - -/// Dispatches `dispose` to all disposables contained inside bag. -func disposeAll(in bag: Bag) { - bag._value0?.dispose() - - if bag._onlyFastPath { - return - } - - let pairs = bag._pairs - for i in 0 ..< pairs.count { - pairs[i].value.dispose() - } - - if let dictionary = bag._dictionary { - for element in dictionary.values { - element.dispose() - } - } -} diff --git a/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift b/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift deleted file mode 100644 index 70d4786..0000000 --- a/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift +++ /dev/null @@ -1,22 +0,0 @@ -// -// String+Rx.swift -// RxSwift -// -// Created by Krunoslav Zaher on 12/25/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension String { - /// This is needed because on Linux Swift doesn't have `rangeOfString(..., options: .BackwardsSearch)` - func lastIndexOf(_ character: Character) -> Index? { - var index = self.endIndex - while index > self.startIndex { - index = self.index(before: index) - if self[index] == character { - return index - } - } - - return nil - } -} diff --git a/Pods/RxSwift/RxSwift/GroupedObservable.swift b/Pods/RxSwift/RxSwift/GroupedObservable.swift deleted file mode 100644 index c5b0a9d..0000000 --- a/Pods/RxSwift/RxSwift/GroupedObservable.swift +++ /dev/null @@ -1,37 +0,0 @@ -// -// GroupedObservable.swift -// RxSwift -// -// Created by Tomi Koskinen on 01/12/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// Represents an observable sequence of elements that have a common key. -public struct GroupedObservable : ObservableType { - public typealias E = Element - - /// Gets the common key. - public let key: Key - - private let source: Observable - - /// Initializes grouped observable sequence with key and source observable sequence. - /// - /// - parameter key: Grouped observable sequence key - /// - parameter source: Observable sequence that represents sequence of elements for the key - /// - returns: Grouped observable sequence of elements for the specific key - public init(key: Key, source: Observable) { - self.key = key - self.source = source - } - - /// Subscribes `observer` to receive events for this sequence. - public func subscribe(_ observer: O) -> Disposable where O.E == E { - return self.source.subscribe(observer) - } - - /// Converts `self` to `Observable` sequence. - public func asObservable() -> Observable { - return self.source - } -} diff --git a/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift b/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift deleted file mode 100644 index 954fbf0..0000000 --- a/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// ImmediateSchedulerType.swift -// RxSwift -// -// Created by Krunoslav Zaher on 5/31/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// Represents an object that immediately schedules units of work. -public protocol ImmediateSchedulerType { - /** - Schedules an action to be executed immediately. - - - parameter state: State passed to the action to be executed. - - parameter action: Action to be executed. - - returns: The disposable object used to cancel the scheduled action (best effort). - */ - func schedule(_ state: StateType, action: @escaping (StateType) -> Disposable) -> Disposable -} - -extension ImmediateSchedulerType { - /** - Schedules an action to be executed recursively. - - - parameter state: State passed to the action to be executed. - - parameter action: Action to execute recursively. The last parameter passed to the action is used to trigger recursive scheduling of the action, passing in recursive invocation state. - - returns: The disposable object used to cancel the scheduled action (best effort). - */ - public func scheduleRecursive(_ state: State, action: @escaping (_ state: State, _ recurse: (State) -> Void) -> Void) -> Disposable { - let recursiveScheduler = RecursiveImmediateScheduler(action: action, scheduler: self) - - recursiveScheduler.schedule(state) - - return Disposables.create(with: recursiveScheduler.dispose) - } -} diff --git a/Pods/RxSwift/RxSwift/Observable.swift b/Pods/RxSwift/RxSwift/Observable.swift deleted file mode 100644 index 08caab4..0000000 --- a/Pods/RxSwift/RxSwift/Observable.swift +++ /dev/null @@ -1,44 +0,0 @@ -// -// Observable.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/8/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// A type-erased `ObservableType`. -/// -/// It represents a push style sequence. -public class Observable : ObservableType { - /// Type of elements in sequence. - public typealias E = Element - - init() { -#if TRACE_RESOURCES - _ = Resources.incrementTotal() -#endif - } - - public func subscribe(_ observer: O) -> Disposable where O.E == E { - rxAbstractMethod() - } - - public func asObservable() -> Observable { - return self - } - - deinit { -#if TRACE_RESOURCES - _ = Resources.decrementTotal() -#endif - } - - // this is kind of ugly I know :( - // Swift compiler reports "Not supported yet" when trying to override protocol extensions, so ¯\_(ツ)_/¯ - - /// Optimizations for map operator - internal func composeMap(_ transform: @escaping (Element) throws -> R) -> Observable { - return _map(source: self, transform: transform) - } -} - diff --git a/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift b/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift deleted file mode 100644 index d89c5aa..0000000 --- a/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ObservableConvertibleType.swift -// RxSwift -// -// Created by Krunoslav Zaher on 9/17/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// Type that can be converted to observable sequence (`Observable`). -public protocol ObservableConvertibleType { - /// Type of elements in sequence. - associatedtype E - - /// Converts `self` to `Observable` sequence. - /// - /// - returns: Observable sequence that represents `self`. - func asObservable() -> Observable -} diff --git a/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift b/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift deleted file mode 100644 index 362fc58..0000000 --- a/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift +++ /dev/null @@ -1,131 +0,0 @@ -// -// ObservableType+Extensions.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/21/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if DEBUG - import Foundation -#endif - -extension ObservableType { - /** - Subscribes an event handler to an observable sequence. - - - parameter on: Action to invoke for each event in the observable sequence. - - returns: Subscription object used to unsubscribe from the observable sequence. - */ - public func subscribe(_ on: @escaping (Event) -> Void) - -> Disposable { - let observer = AnonymousObserver { e in - on(e) - } - return self.asObservable().subscribe(observer) - } - - - /** - Subscribes an element handler, an error handler, a completion handler and disposed handler to an observable sequence. - - - parameter onNext: Action to invoke for each element in the observable sequence. - - parameter onError: Action to invoke upon errored termination of the observable sequence. - - parameter onCompleted: Action to invoke upon graceful termination of the observable sequence. - - parameter onDisposed: Action to invoke upon any type of termination of sequence (if the sequence has - gracefully completed, errored, or if the generation is canceled by disposing subscription). - - returns: Subscription object used to unsubscribe from the observable sequence. - */ - public func subscribe(onNext: ((E) -> Void)? = nil, onError: ((Swift.Error) -> Void)? = nil, onCompleted: (() -> Void)? = nil, onDisposed: (() -> Void)? = nil) - -> Disposable { - let disposable: Disposable - - if let disposed = onDisposed { - disposable = Disposables.create(with: disposed) - } - else { - disposable = Disposables.create() - } - - #if DEBUG - let synchronizationTracker = SynchronizationTracker() - #endif - - let callStack = Hooks.recordCallStackOnError ? Hooks.customCaptureSubscriptionCallstack() : [] - - let observer = AnonymousObserver { event in - - #if DEBUG - synchronizationTracker.register(synchronizationErrorMessage: .default) - defer { synchronizationTracker.unregister() } - #endif - - switch event { - case .next(let value): - onNext?(value) - case .error(let error): - if let onError = onError { - onError(error) - } - else { - Hooks.defaultErrorHandler(callStack, error) - } - disposable.dispose() - case .completed: - onCompleted?() - disposable.dispose() - } - } - return Disposables.create( - self.asObservable().subscribe(observer), - disposable - ) - } -} - -import class Foundation.NSRecursiveLock - -extension Hooks { - public typealias DefaultErrorHandler = (_ subscriptionCallStack: [String], _ error: Error) -> Void - public typealias CustomCaptureSubscriptionCallstack = () -> [String] - - fileprivate static let _lock = RecursiveLock() - fileprivate static var _defaultErrorHandler: DefaultErrorHandler = { subscriptionCallStack, error in - #if DEBUG - let serializedCallStack = subscriptionCallStack.joined(separator: "\n") - print("Unhandled error happened: \(error)\n subscription called from:\n\(serializedCallStack)") - #endif - } - fileprivate static var _customCaptureSubscriptionCallstack: CustomCaptureSubscriptionCallstack = { - #if DEBUG - return Thread.callStackSymbols - #else - return [] - #endif - } - - /// Error handler called in case onError handler wasn't provided. - public static var defaultErrorHandler: DefaultErrorHandler { - get { - _lock.lock(); defer { _lock.unlock() } - return _defaultErrorHandler - } - set { - _lock.lock(); defer { _lock.unlock() } - _defaultErrorHandler = newValue - } - } - - /// Subscription callstack block to fetch custom callstack information. - public static var customCaptureSubscriptionCallstack: CustomCaptureSubscriptionCallstack { - get { - _lock.lock(); defer { _lock.unlock() } - return _customCaptureSubscriptionCallstack - } - set { - _lock.lock(); defer { _lock.unlock() } - _customCaptureSubscriptionCallstack = newValue - } - } -} - diff --git a/Pods/RxSwift/RxSwift/ObservableType.swift b/Pods/RxSwift/RxSwift/ObservableType.swift deleted file mode 100644 index e41a36a..0000000 --- a/Pods/RxSwift/RxSwift/ObservableType.swift +++ /dev/null @@ -1,47 +0,0 @@ -// -// ObservableType.swift -// RxSwift -// -// Created by Krunoslav Zaher on 8/8/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// Represents a push style sequence. -public protocol ObservableType : ObservableConvertibleType { - /** - Subscribes `observer` to receive events for this sequence. - - ### Grammar - - **Next\* (Error | Completed)?** - - * sequences can produce zero or more elements so zero or more `Next` events can be sent to `observer` - * once an `Error` or `Completed` event is sent, the sequence terminates and can't produce any other elements - - It is possible that events are sent from different threads, but no two events can be sent concurrently to - `observer`. - - ### Resource Management - - When sequence sends `Complete` or `Error` event all internal resources that compute sequence elements - will be freed. - - To cancel production of sequence elements and free resources immediately, call `dispose` on returned - subscription. - - - returns: Subscription for `observer` that can be used to cancel production of sequence elements and free resources. - */ - func subscribe(_ observer: O) -> Disposable where O.E == E -} - -extension ObservableType { - - /// Default implementation of converting `ObservableType` to `Observable`. - public func asObservable() -> Observable { - // temporary workaround - //return Observable.create(subscribe: self.subscribe) - return Observable.create { o in - return self.subscribe(o) - } - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/AddRef.swift b/Pods/RxSwift/RxSwift/Observables/AddRef.swift deleted file mode 100644 index a69147c..0000000 --- a/Pods/RxSwift/RxSwift/Observables/AddRef.swift +++ /dev/null @@ -1,44 +0,0 @@ -// -// AddRef.swift -// RxSwift -// -// Created by Junior B. on 30/10/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -final class AddRefSink : Sink, ObserverType { - typealias Element = O.E - - override init(observer: O, cancel: Cancelable) { - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - switch event { - case .next: - self.forwardOn(event) - case .completed, .error: - self.forwardOn(event) - self.dispose() - } - } -} - -final class AddRef : Producer { - - private let _source: Observable - private let _refCount: RefCountDisposable - - init(source: Observable, refCount: RefCountDisposable) { - self._source = source - self._refCount = refCount - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let releaseDisposable = self._refCount.retain() - let sink = AddRefSink(observer: observer, cancel: cancel) - let subscription = Disposables.create(releaseDisposable, self._source.subscribe(sink)) - - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Amb.swift b/Pods/RxSwift/RxSwift/Observables/Amb.swift deleted file mode 100644 index b4b9b7e..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Amb.swift +++ /dev/null @@ -1,157 +0,0 @@ -// -// Amb.swift -// RxSwift -// -// Created by Krunoslav Zaher on 6/14/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - /** - Propagates the observable sequence that reacts first. - - - seealso: [amb operator on reactivex.io](http://reactivex.io/documentation/operators/amb.html) - - - returns: An observable sequence that surfaces any of the given sequences, whichever reacted first. - */ - public static func amb(_ sequence: S) -> Observable - where S.Iterator.Element == Observable { - return sequence.reduce(Observable.never()) { a, o in - return a.amb(o.asObservable()) - } - } -} - -extension ObservableType { - - /** - Propagates the observable sequence that reacts first. - - - seealso: [amb operator on reactivex.io](http://reactivex.io/documentation/operators/amb.html) - - - parameter right: Second observable sequence. - - returns: An observable sequence that surfaces either of the given sequences, whichever reacted first. - */ - public func amb - (_ right: O2) - -> Observable where O2.E == E { - return Amb(left: self.asObservable(), right: right.asObservable()) - } -} - -fileprivate enum AmbState { - case neither - case left - case right -} - -final private class AmbObserver: ObserverType { - typealias Element = O.E - typealias Parent = AmbSink - typealias This = AmbObserver - typealias Sink = (This, Event) -> Void - - fileprivate let _parent: Parent - fileprivate var _sink: Sink - fileprivate var _cancel: Disposable - - init(parent: Parent, cancel: Disposable, sink: @escaping Sink) { -#if TRACE_RESOURCES - _ = Resources.incrementTotal() -#endif - - self._parent = parent - self._sink = sink - self._cancel = cancel - } - - func on(_ event: Event) { - self._sink(self, event) - if event.isStopEvent { - self._cancel.dispose() - } - } - - deinit { -#if TRACE_RESOURCES - _ = Resources.decrementTotal() -#endif - } -} - -final private class AmbSink: Sink { - typealias ElementType = O.E - typealias Parent = Amb - typealias AmbObserverType = AmbObserver - - private let _parent: Parent - - private let _lock = RecursiveLock() - // state - private var _choice = AmbState.neither - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(observer: observer, cancel: cancel) - } - - func run() -> Disposable { - let subscription1 = SingleAssignmentDisposable() - let subscription2 = SingleAssignmentDisposable() - let disposeAll = Disposables.create(subscription1, subscription2) - - let forwardEvent = { (o: AmbObserverType, event: Event) -> Void in - self.forwardOn(event) - if event.isStopEvent { - self.dispose() - } - } - - let decide = { (o: AmbObserverType, event: Event, me: AmbState, otherSubscription: Disposable) in - self._lock.performLocked { - if self._choice == .neither { - self._choice = me - o._sink = forwardEvent - o._cancel = disposeAll - otherSubscription.dispose() - } - - if self._choice == me { - self.forwardOn(event) - if event.isStopEvent { - self.dispose() - } - } - } - } - - let sink1 = AmbObserver(parent: self, cancel: subscription1) { o, e in - decide(o, e, .left, subscription2) - } - - let sink2 = AmbObserver(parent: self, cancel: subscription1) { o, e in - decide(o, e, .right, subscription1) - } - - subscription1.setDisposable(self._parent._left.subscribe(sink1)) - subscription2.setDisposable(self._parent._right.subscribe(sink2)) - - return disposeAll - } -} - -final private class Amb: Producer { - fileprivate let _left: Observable - fileprivate let _right: Observable - - init(left: Observable, right: Observable) { - self._left = left - self._right = right - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = AmbSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift b/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift deleted file mode 100644 index d9010dd..0000000 --- a/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift +++ /dev/null @@ -1,49 +0,0 @@ -// -// AsMaybe.swift -// RxSwift -// -// Created by Krunoslav Zaher on 3/12/17. -// Copyright © 2017 Krunoslav Zaher. All rights reserved. -// - -fileprivate final class AsMaybeSink : Sink, ObserverType { - typealias ElementType = O.E - typealias E = ElementType - - private var _element: Event? - - func on(_ event: Event) { - switch event { - case .next: - if self._element != nil { - self.forwardOn(.error(RxError.moreThanOneElement)) - self.dispose() - } - - self._element = event - case .error: - self.forwardOn(event) - self.dispose() - case .completed: - if let element = self._element { - self.forwardOn(element) - } - self.forwardOn(.completed) - self.dispose() - } - } -} - -final class AsMaybe: Producer { - fileprivate let _source: Observable - - init(source: Observable) { - self._source = source - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = AsMaybeSink(observer: observer, cancel: cancel) - let subscription = self._source.subscribe(sink) - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/AsSingle.swift b/Pods/RxSwift/RxSwift/Observables/AsSingle.swift deleted file mode 100644 index 8682f1f..0000000 --- a/Pods/RxSwift/RxSwift/Observables/AsSingle.swift +++ /dev/null @@ -1,52 +0,0 @@ -// -// AsSingle.swift -// RxSwift -// -// Created by Krunoslav Zaher on 3/12/17. -// Copyright © 2017 Krunoslav Zaher. All rights reserved. -// - -fileprivate final class AsSingleSink : Sink, ObserverType { - typealias ElementType = O.E - typealias E = ElementType - - private var _element: Event? - - func on(_ event: Event) { - switch event { - case .next: - if self._element != nil { - self.forwardOn(.error(RxError.moreThanOneElement)) - self.dispose() - } - - self._element = event - case .error: - self.forwardOn(event) - self.dispose() - case .completed: - if let element = self._element { - self.forwardOn(element) - self.forwardOn(.completed) - } - else { - self.forwardOn(.error(RxError.noElements)) - } - self.dispose() - } - } -} - -final class AsSingle: Producer { - fileprivate let _source: Observable - - init(source: Observable) { - self._source = source - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = AsSingleSink(observer: observer, cancel: cancel) - let subscription = self._source.subscribe(sink) - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Buffer.swift b/Pods/RxSwift/RxSwift/Observables/Buffer.swift deleted file mode 100644 index db4cf21..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Buffer.swift +++ /dev/null @@ -1,139 +0,0 @@ -// -// Buffer.swift -// RxSwift -// -// Created by Krunoslav Zaher on 9/13/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Projects each element of an observable sequence into a buffer that's sent out when either it's full or a given amount of time has elapsed, using the specified scheduler to run timers. - - A useful real-world analogy of this overload is the behavior of a ferry leaving the dock when all seats are taken, or at the scheduled time of departure, whichever event occurs first. - - - seealso: [buffer operator on reactivex.io](http://reactivex.io/documentation/operators/buffer.html) - - - parameter timeSpan: Maximum time length of a buffer. - - parameter count: Maximum element count of a buffer. - - parameter scheduler: Scheduler to run buffering timers on. - - returns: An observable sequence of buffers. - */ - public func buffer(timeSpan: RxTimeInterval, count: Int, scheduler: SchedulerType) - -> Observable<[E]> { - return BufferTimeCount(source: self.asObservable(), timeSpan: timeSpan, count: count, scheduler: scheduler) - } -} - -final private class BufferTimeCount: Producer<[Element]> { - - fileprivate let _timeSpan: RxTimeInterval - fileprivate let _count: Int - fileprivate let _scheduler: SchedulerType - fileprivate let _source: Observable - - init(source: Observable, timeSpan: RxTimeInterval, count: Int, scheduler: SchedulerType) { - self._source = source - self._timeSpan = timeSpan - self._count = count - self._scheduler = scheduler - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == [Element] { - let sink = BufferTimeCountSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} - -final private class BufferTimeCountSink - : Sink - , LockOwnerType - , ObserverType - , SynchronizedOnType where O.E == [Element] { - typealias Parent = BufferTimeCount - typealias E = Element - - private let _parent: Parent - - let _lock = RecursiveLock() - - // state - private let _timerD = SerialDisposable() - private var _buffer = [Element]() - private var _windowID = 0 - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(observer: observer, cancel: cancel) - } - - func run() -> Disposable { - self.createTimer(self._windowID) - return Disposables.create(_timerD, _parent._source.subscribe(self)) - } - - func startNewWindowAndSendCurrentOne() { - self._windowID = self._windowID &+ 1 - let windowID = self._windowID - - let buffer = self._buffer - self._buffer = [] - self.forwardOn(.next(buffer)) - - self.createTimer(windowID) - } - - func on(_ event: Event) { - self.synchronizedOn(event) - } - - func _synchronized_on(_ event: Event) { - switch event { - case .next(let element): - self._buffer.append(element) - - if self._buffer.count == self._parent._count { - self.startNewWindowAndSendCurrentOne() - } - - case .error(let error): - self._buffer = [] - self.forwardOn(.error(error)) - self.dispose() - case .completed: - self.forwardOn(.next(self._buffer)) - self.forwardOn(.completed) - self.dispose() - } - } - - func createTimer(_ windowID: Int) { - if self._timerD.isDisposed { - return - } - - if self._windowID != windowID { - return - } - - let nextTimer = SingleAssignmentDisposable() - - self._timerD.disposable = nextTimer - - let disposable = self._parent._scheduler.scheduleRelative(windowID, dueTime: self._parent._timeSpan) { previousWindowID in - self._lock.performLocked { - if previousWindowID != self._windowID { - return - } - - self.startNewWindowAndSendCurrentOne() - } - - return Disposables.create() - } - - nextTimer.setDisposable(disposable) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Catch.swift b/Pods/RxSwift/RxSwift/Observables/Catch.swift deleted file mode 100644 index 1306076..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Catch.swift +++ /dev/null @@ -1,235 +0,0 @@ -// -// Catch.swift -// RxSwift -// -// Created by Krunoslav Zaher on 4/19/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Continues an observable sequence that is terminated by an error with the observable sequence produced by the handler. - - - seealso: [catch operator on reactivex.io](http://reactivex.io/documentation/operators/catch.html) - - - parameter handler: Error handler function, producing another observable sequence. - - returns: An observable sequence containing the source sequence's elements, followed by the elements produced by the handler's resulting observable sequence in case an error occurred. - */ - public func catchError(_ handler: @escaping (Swift.Error) throws -> Observable) - -> Observable { - return Catch(source: self.asObservable(), handler: handler) - } - - /** - Continues an observable sequence that is terminated by an error with a single element. - - - seealso: [catch operator on reactivex.io](http://reactivex.io/documentation/operators/catch.html) - - - parameter element: Last element in an observable sequence in case error occurs. - - returns: An observable sequence containing the source sequence's elements, followed by the `element` in case an error occurred. - */ - public func catchErrorJustReturn(_ element: E) - -> Observable { - return Catch(source: self.asObservable(), handler: { _ in Observable.just(element) }) - } - -} - -extension ObservableType { - /** - Continues an observable sequence that is terminated by an error with the next observable sequence. - - - seealso: [catch operator on reactivex.io](http://reactivex.io/documentation/operators/catch.html) - - - returns: An observable sequence containing elements from consecutive source sequences until a source sequence terminates successfully. - */ - public static func catchError(_ sequence: S) -> Observable - where S.Iterator.Element == Observable { - return CatchSequence(sources: sequence) - } -} - -extension ObservableType { - - /** - Repeats the source observable sequence until it successfully terminates. - - **This could potentially create an infinite sequence.** - - - seealso: [retry operator on reactivex.io](http://reactivex.io/documentation/operators/retry.html) - - - returns: Observable sequence to repeat until it successfully terminates. - */ - public func retry() -> Observable { - return CatchSequence(sources: InfiniteSequence(repeatedValue: self.asObservable())) - } - - /** - Repeats the source observable sequence the specified number of times in case of an error or until it successfully terminates. - - If you encounter an error and want it to retry once, then you must use `retry(2)` - - - seealso: [retry operator on reactivex.io](http://reactivex.io/documentation/operators/retry.html) - - - parameter maxAttemptCount: Maximum number of times to repeat the sequence. - - returns: An observable sequence producing the elements of the given sequence repeatedly until it terminates successfully. - */ - public func retry(_ maxAttemptCount: Int) - -> Observable { - return CatchSequence(sources: Swift.repeatElement(self.asObservable(), count: maxAttemptCount)) - } -} - -// catch with callback - -final private class CatchSinkProxy: ObserverType { - typealias E = O.E - typealias Parent = CatchSink - - private let _parent: Parent - - init(parent: Parent) { - self._parent = parent - } - - func on(_ event: Event) { - self._parent.forwardOn(event) - - switch event { - case .next: - break - case .error, .completed: - self._parent.dispose() - } - } -} - -final private class CatchSink: Sink, ObserverType { - typealias E = O.E - typealias Parent = Catch - - private let _parent: Parent - private let _subscription = SerialDisposable() - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(observer: observer, cancel: cancel) - } - - func run() -> Disposable { - let d1 = SingleAssignmentDisposable() - self._subscription.disposable = d1 - d1.setDisposable(self._parent._source.subscribe(self)) - - return self._subscription - } - - func on(_ event: Event) { - switch event { - case .next: - self.forwardOn(event) - case .completed: - self.forwardOn(event) - self.dispose() - case .error(let error): - do { - let catchSequence = try self._parent._handler(error) - - let observer = CatchSinkProxy(parent: self) - - self._subscription.disposable = catchSequence.subscribe(observer) - } - catch let e { - self.forwardOn(.error(e)) - self.dispose() - } - } - } -} - -final private class Catch: Producer { - typealias Handler = (Swift.Error) throws -> Observable - - fileprivate let _source: Observable - fileprivate let _handler: Handler - - init(source: Observable, handler: @escaping Handler) { - self._source = source - self._handler = handler - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = CatchSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} - -// catch enumerable - -final private class CatchSequenceSink - : TailRecursiveSink - , ObserverType where S.Iterator.Element: ObservableConvertibleType, S.Iterator.Element.E == O.E { - typealias Element = O.E - typealias Parent = CatchSequence - - private var _lastError: Swift.Error? - - override init(observer: O, cancel: Cancelable) { - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - switch event { - case .next: - self.forwardOn(event) - case .error(let error): - self._lastError = error - self.schedule(.moveNext) - case .completed: - self.forwardOn(event) - self.dispose() - } - } - - override func subscribeToNext(_ source: Observable) -> Disposable { - return source.subscribe(self) - } - - override func done() { - if let lastError = self._lastError { - self.forwardOn(.error(lastError)) - } - else { - self.forwardOn(.completed) - } - - self.dispose() - } - - override func extract(_ observable: Observable) -> SequenceGenerator? { - if let onError = observable as? CatchSequence { - return (onError.sources.makeIterator(), nil) - } - else { - return nil - } - } -} - -final private class CatchSequence: Producer where S.Iterator.Element: ObservableConvertibleType { - typealias Element = S.Iterator.Element.E - - let sources: S - - init(sources: S) { - self.sources = sources - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = CatchSequenceSink(observer: observer, cancel: cancel) - let subscription = sink.run((self.sources.makeIterator(), nil)) - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift b/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift deleted file mode 100644 index b62fa29..0000000 --- a/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift +++ /dev/null @@ -1,157 +0,0 @@ -// -// CombineLatest+Collection.swift -// RxSwift -// -// Created by Krunoslav Zaher on 8/29/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. - - - seealso: [combinelatest operator on reactivex.io](http://reactivex.io/documentation/operators/combinelatest.html) - - - parameter resultSelector: Function to invoke whenever any of the sources produces an element. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func combineLatest(_ collection: C, _ resultSelector: @escaping ([C.Iterator.Element.E]) throws -> E) -> Observable - where C.Iterator.Element: ObservableType { - return CombineLatestCollectionType(sources: collection, resultSelector: resultSelector) - } - - /** - Merges the specified observable sequences into one observable sequence whenever any of the observable sequences produces an element. - - - seealso: [combinelatest operator on reactivex.io](http://reactivex.io/documentation/operators/combinelatest.html) - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func combineLatest(_ collection: C) -> Observable<[E]> - where C.Iterator.Element: ObservableType, C.Iterator.Element.E == E { - return CombineLatestCollectionType(sources: collection, resultSelector: { $0 }) - } -} - -final private class CombineLatestCollectionTypeSink - : Sink where C.Iterator.Element: ObservableConvertibleType { - typealias R = O.E - typealias Parent = CombineLatestCollectionType - typealias SourceElement = C.Iterator.Element.E - - let _parent: Parent - - let _lock = RecursiveLock() - - // state - var _numberOfValues = 0 - var _values: [SourceElement?] - var _isDone: [Bool] - var _numberOfDone = 0 - var _subscriptions: [SingleAssignmentDisposable] - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - self._values = [SourceElement?](repeating: nil, count: parent._count) - self._isDone = [Bool](repeating: false, count: parent._count) - self._subscriptions = [SingleAssignmentDisposable]() - self._subscriptions.reserveCapacity(parent._count) - - for _ in 0 ..< parent._count { - self._subscriptions.append(SingleAssignmentDisposable()) - } - - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event, atIndex: Int) { - self._lock.lock(); defer { self._lock.unlock() } // { - switch event { - case .next(let element): - if self._values[atIndex] == nil { - self._numberOfValues += 1 - } - - self._values[atIndex] = element - - if self._numberOfValues < self._parent._count { - let numberOfOthersThatAreDone = self._numberOfDone - (self._isDone[atIndex] ? 1 : 0) - if numberOfOthersThatAreDone == self._parent._count - 1 { - self.forwardOn(.completed) - self.dispose() - } - return - } - - do { - let result = try self._parent._resultSelector(self._values.map { $0! }) - self.forwardOn(.next(result)) - } - catch let error { - self.forwardOn(.error(error)) - self.dispose() - } - - case .error(let error): - self.forwardOn(.error(error)) - self.dispose() - case .completed: - if self._isDone[atIndex] { - return - } - - self._isDone[atIndex] = true - self._numberOfDone += 1 - - if self._numberOfDone == self._parent._count { - self.forwardOn(.completed) - self.dispose() - } - else { - self._subscriptions[atIndex].dispose() - } - } - // } - } - - func run() -> Disposable { - var j = 0 - for i in self._parent._sources { - let index = j - let source = i.asObservable() - let disposable = source.subscribe(AnyObserver { event in - self.on(event, atIndex: index) - }) - - self._subscriptions[j].setDisposable(disposable) - - j += 1 - } - - if self._parent._sources.isEmpty { - self.forwardOn(.completed) - } - - return Disposables.create(_subscriptions) - } -} - -final private class CombineLatestCollectionType: Producer where C.Iterator.Element: ObservableConvertibleType { - typealias ResultSelector = ([C.Iterator.Element.E]) throws -> R - - let _sources: C - let _resultSelector: ResultSelector - let _count: Int - - init(sources: C, resultSelector: @escaping ResultSelector) { - self._sources = sources - self._resultSelector = resultSelector - self._count = Int(Int64(self._sources.count)) - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == R { - let sink = CombineLatestCollectionTypeSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift b/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift deleted file mode 100644 index 7474bdc..0000000 --- a/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift +++ /dev/null @@ -1,843 +0,0 @@ -// This file is autogenerated. Take a look at `Preprocessor` target in RxSwift project -// -// CombineLatest+arity.swift -// RxSwift -// -// Created by Krunoslav Zaher on 4/22/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - - - -// 2 - -extension ObservableType { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. - - - seealso: [combineLatest operator on reactivex.io](http://reactivex.io/documentation/operators/combinelatest.html) - - - parameter resultSelector: Function to invoke whenever any of the sources produces an element. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, resultSelector: @escaping (O1.E, O2.E) throws -> E) - -> Observable { - return CombineLatest2( - source1: source1.asObservable(), source2: source2.asObservable(), - resultSelector: resultSelector - ) - } -} - -extension ObservableType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of tuples whenever any of the observable sequences produces an element. - - - seealso: [combineLatest operator on reactivex.io](http://reactivex.io/documentation/operators/combinelatest.html) - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2) - -> Observable<(O1.E, O2.E)> { - return CombineLatest2( - source1: source1.asObservable(), source2: source2.asObservable(), - resultSelector: { ($0, $1) } - ) - } -} - -final class CombineLatestSink2_ : CombineLatestSink { - typealias R = O.E - typealias Parent = CombineLatest2 - - let _parent: Parent - - var _latestElement1: E1! = nil - var _latestElement2: E2! = nil - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(arity: 2, observer: observer, cancel: cancel) - } - - func run() -> Disposable { - let subscription1 = SingleAssignmentDisposable() - let subscription2 = SingleAssignmentDisposable() - - let observer1 = CombineLatestObserver(lock: self._lock, parent: self, index: 0, setLatestValue: { (e: E1) -> Void in self._latestElement1 = e }, this: subscription1) - let observer2 = CombineLatestObserver(lock: self._lock, parent: self, index: 1, setLatestValue: { (e: E2) -> Void in self._latestElement2 = e }, this: subscription2) - - subscription1.setDisposable(self._parent._source1.subscribe(observer1)) - subscription2.setDisposable(self._parent._source2.subscribe(observer2)) - - return Disposables.create([ - subscription1, - subscription2 - ]) - } - - override func getResult() throws -> R { - return try self._parent._resultSelector(self._latestElement1, self._latestElement2) - } -} - -final class CombineLatest2 : Producer { - typealias ResultSelector = (E1, E2) throws -> R - - let _source1: Observable - let _source2: Observable - - let _resultSelector: ResultSelector - - init(source1: Observable, source2: Observable, resultSelector: @escaping ResultSelector) { - self._source1 = source1 - self._source2 = source2 - - self._resultSelector = resultSelector - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == R { - let sink = CombineLatestSink2_(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} - - - -// 3 - -extension ObservableType { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. - - - seealso: [combineLatest operator on reactivex.io](http://reactivex.io/documentation/operators/combinelatest.html) - - - parameter resultSelector: Function to invoke whenever any of the sources produces an element. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3, resultSelector: @escaping (O1.E, O2.E, O3.E) throws -> E) - -> Observable { - return CombineLatest3( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), - resultSelector: resultSelector - ) - } -} - -extension ObservableType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of tuples whenever any of the observable sequences produces an element. - - - seealso: [combineLatest operator on reactivex.io](http://reactivex.io/documentation/operators/combinelatest.html) - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3) - -> Observable<(O1.E, O2.E, O3.E)> { - return CombineLatest3( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), - resultSelector: { ($0, $1, $2) } - ) - } -} - -final class CombineLatestSink3_ : CombineLatestSink { - typealias R = O.E - typealias Parent = CombineLatest3 - - let _parent: Parent - - var _latestElement1: E1! = nil - var _latestElement2: E2! = nil - var _latestElement3: E3! = nil - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(arity: 3, observer: observer, cancel: cancel) - } - - func run() -> Disposable { - let subscription1 = SingleAssignmentDisposable() - let subscription2 = SingleAssignmentDisposable() - let subscription3 = SingleAssignmentDisposable() - - let observer1 = CombineLatestObserver(lock: self._lock, parent: self, index: 0, setLatestValue: { (e: E1) -> Void in self._latestElement1 = e }, this: subscription1) - let observer2 = CombineLatestObserver(lock: self._lock, parent: self, index: 1, setLatestValue: { (e: E2) -> Void in self._latestElement2 = e }, this: subscription2) - let observer3 = CombineLatestObserver(lock: self._lock, parent: self, index: 2, setLatestValue: { (e: E3) -> Void in self._latestElement3 = e }, this: subscription3) - - subscription1.setDisposable(self._parent._source1.subscribe(observer1)) - subscription2.setDisposable(self._parent._source2.subscribe(observer2)) - subscription3.setDisposable(self._parent._source3.subscribe(observer3)) - - return Disposables.create([ - subscription1, - subscription2, - subscription3 - ]) - } - - override func getResult() throws -> R { - return try self._parent._resultSelector(self._latestElement1, self._latestElement2, self._latestElement3) - } -} - -final class CombineLatest3 : Producer { - typealias ResultSelector = (E1, E2, E3) throws -> R - - let _source1: Observable - let _source2: Observable - let _source3: Observable - - let _resultSelector: ResultSelector - - init(source1: Observable, source2: Observable, source3: Observable, resultSelector: @escaping ResultSelector) { - self._source1 = source1 - self._source2 = source2 - self._source3 = source3 - - self._resultSelector = resultSelector - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == R { - let sink = CombineLatestSink3_(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} - - - -// 4 - -extension ObservableType { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. - - - seealso: [combineLatest operator on reactivex.io](http://reactivex.io/documentation/operators/combinelatest.html) - - - parameter resultSelector: Function to invoke whenever any of the sources produces an element. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, resultSelector: @escaping (O1.E, O2.E, O3.E, O4.E) throws -> E) - -> Observable { - return CombineLatest4( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), source4: source4.asObservable(), - resultSelector: resultSelector - ) - } -} - -extension ObservableType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of tuples whenever any of the observable sequences produces an element. - - - seealso: [combineLatest operator on reactivex.io](http://reactivex.io/documentation/operators/combinelatest.html) - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4) - -> Observable<(O1.E, O2.E, O3.E, O4.E)> { - return CombineLatest4( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), source4: source4.asObservable(), - resultSelector: { ($0, $1, $2, $3) } - ) - } -} - -final class CombineLatestSink4_ : CombineLatestSink { - typealias R = O.E - typealias Parent = CombineLatest4 - - let _parent: Parent - - var _latestElement1: E1! = nil - var _latestElement2: E2! = nil - var _latestElement3: E3! = nil - var _latestElement4: E4! = nil - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(arity: 4, observer: observer, cancel: cancel) - } - - func run() -> Disposable { - let subscription1 = SingleAssignmentDisposable() - let subscription2 = SingleAssignmentDisposable() - let subscription3 = SingleAssignmentDisposable() - let subscription4 = SingleAssignmentDisposable() - - let observer1 = CombineLatestObserver(lock: self._lock, parent: self, index: 0, setLatestValue: { (e: E1) -> Void in self._latestElement1 = e }, this: subscription1) - let observer2 = CombineLatestObserver(lock: self._lock, parent: self, index: 1, setLatestValue: { (e: E2) -> Void in self._latestElement2 = e }, this: subscription2) - let observer3 = CombineLatestObserver(lock: self._lock, parent: self, index: 2, setLatestValue: { (e: E3) -> Void in self._latestElement3 = e }, this: subscription3) - let observer4 = CombineLatestObserver(lock: self._lock, parent: self, index: 3, setLatestValue: { (e: E4) -> Void in self._latestElement4 = e }, this: subscription4) - - subscription1.setDisposable(self._parent._source1.subscribe(observer1)) - subscription2.setDisposable(self._parent._source2.subscribe(observer2)) - subscription3.setDisposable(self._parent._source3.subscribe(observer3)) - subscription4.setDisposable(self._parent._source4.subscribe(observer4)) - - return Disposables.create([ - subscription1, - subscription2, - subscription3, - subscription4 - ]) - } - - override func getResult() throws -> R { - return try self._parent._resultSelector(self._latestElement1, self._latestElement2, self._latestElement3, self._latestElement4) - } -} - -final class CombineLatest4 : Producer { - typealias ResultSelector = (E1, E2, E3, E4) throws -> R - - let _source1: Observable - let _source2: Observable - let _source3: Observable - let _source4: Observable - - let _resultSelector: ResultSelector - - init(source1: Observable, source2: Observable, source3: Observable, source4: Observable, resultSelector: @escaping ResultSelector) { - self._source1 = source1 - self._source2 = source2 - self._source3 = source3 - self._source4 = source4 - - self._resultSelector = resultSelector - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == R { - let sink = CombineLatestSink4_(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} - - - -// 5 - -extension ObservableType { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. - - - seealso: [combineLatest operator on reactivex.io](http://reactivex.io/documentation/operators/combinelatest.html) - - - parameter resultSelector: Function to invoke whenever any of the sources produces an element. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, resultSelector: @escaping (O1.E, O2.E, O3.E, O4.E, O5.E) throws -> E) - -> Observable { - return CombineLatest5( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), source4: source4.asObservable(), source5: source5.asObservable(), - resultSelector: resultSelector - ) - } -} - -extension ObservableType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of tuples whenever any of the observable sequences produces an element. - - - seealso: [combineLatest operator on reactivex.io](http://reactivex.io/documentation/operators/combinelatest.html) - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5) - -> Observable<(O1.E, O2.E, O3.E, O4.E, O5.E)> { - return CombineLatest5( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), source4: source4.asObservable(), source5: source5.asObservable(), - resultSelector: { ($0, $1, $2, $3, $4) } - ) - } -} - -final class CombineLatestSink5_ : CombineLatestSink { - typealias R = O.E - typealias Parent = CombineLatest5 - - let _parent: Parent - - var _latestElement1: E1! = nil - var _latestElement2: E2! = nil - var _latestElement3: E3! = nil - var _latestElement4: E4! = nil - var _latestElement5: E5! = nil - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(arity: 5, observer: observer, cancel: cancel) - } - - func run() -> Disposable { - let subscription1 = SingleAssignmentDisposable() - let subscription2 = SingleAssignmentDisposable() - let subscription3 = SingleAssignmentDisposable() - let subscription4 = SingleAssignmentDisposable() - let subscription5 = SingleAssignmentDisposable() - - let observer1 = CombineLatestObserver(lock: self._lock, parent: self, index: 0, setLatestValue: { (e: E1) -> Void in self._latestElement1 = e }, this: subscription1) - let observer2 = CombineLatestObserver(lock: self._lock, parent: self, index: 1, setLatestValue: { (e: E2) -> Void in self._latestElement2 = e }, this: subscription2) - let observer3 = CombineLatestObserver(lock: self._lock, parent: self, index: 2, setLatestValue: { (e: E3) -> Void in self._latestElement3 = e }, this: subscription3) - let observer4 = CombineLatestObserver(lock: self._lock, parent: self, index: 3, setLatestValue: { (e: E4) -> Void in self._latestElement4 = e }, this: subscription4) - let observer5 = CombineLatestObserver(lock: self._lock, parent: self, index: 4, setLatestValue: { (e: E5) -> Void in self._latestElement5 = e }, this: subscription5) - - subscription1.setDisposable(self._parent._source1.subscribe(observer1)) - subscription2.setDisposable(self._parent._source2.subscribe(observer2)) - subscription3.setDisposable(self._parent._source3.subscribe(observer3)) - subscription4.setDisposable(self._parent._source4.subscribe(observer4)) - subscription5.setDisposable(self._parent._source5.subscribe(observer5)) - - return Disposables.create([ - subscription1, - subscription2, - subscription3, - subscription4, - subscription5 - ]) - } - - override func getResult() throws -> R { - return try self._parent._resultSelector(self._latestElement1, self._latestElement2, self._latestElement3, self._latestElement4, self._latestElement5) - } -} - -final class CombineLatest5 : Producer { - typealias ResultSelector = (E1, E2, E3, E4, E5) throws -> R - - let _source1: Observable - let _source2: Observable - let _source3: Observable - let _source4: Observable - let _source5: Observable - - let _resultSelector: ResultSelector - - init(source1: Observable, source2: Observable, source3: Observable, source4: Observable, source5: Observable, resultSelector: @escaping ResultSelector) { - self._source1 = source1 - self._source2 = source2 - self._source3 = source3 - self._source4 = source4 - self._source5 = source5 - - self._resultSelector = resultSelector - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == R { - let sink = CombineLatestSink5_(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} - - - -// 6 - -extension ObservableType { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. - - - seealso: [combineLatest operator on reactivex.io](http://reactivex.io/documentation/operators/combinelatest.html) - - - parameter resultSelector: Function to invoke whenever any of the sources produces an element. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6, resultSelector: @escaping (O1.E, O2.E, O3.E, O4.E, O5.E, O6.E) throws -> E) - -> Observable { - return CombineLatest6( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), source4: source4.asObservable(), source5: source5.asObservable(), source6: source6.asObservable(), - resultSelector: resultSelector - ) - } -} - -extension ObservableType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of tuples whenever any of the observable sequences produces an element. - - - seealso: [combineLatest operator on reactivex.io](http://reactivex.io/documentation/operators/combinelatest.html) - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6) - -> Observable<(O1.E, O2.E, O3.E, O4.E, O5.E, O6.E)> { - return CombineLatest6( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), source4: source4.asObservable(), source5: source5.asObservable(), source6: source6.asObservable(), - resultSelector: { ($0, $1, $2, $3, $4, $5) } - ) - } -} - -final class CombineLatestSink6_ : CombineLatestSink { - typealias R = O.E - typealias Parent = CombineLatest6 - - let _parent: Parent - - var _latestElement1: E1! = nil - var _latestElement2: E2! = nil - var _latestElement3: E3! = nil - var _latestElement4: E4! = nil - var _latestElement5: E5! = nil - var _latestElement6: E6! = nil - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(arity: 6, observer: observer, cancel: cancel) - } - - func run() -> Disposable { - let subscription1 = SingleAssignmentDisposable() - let subscription2 = SingleAssignmentDisposable() - let subscription3 = SingleAssignmentDisposable() - let subscription4 = SingleAssignmentDisposable() - let subscription5 = SingleAssignmentDisposable() - let subscription6 = SingleAssignmentDisposable() - - let observer1 = CombineLatestObserver(lock: self._lock, parent: self, index: 0, setLatestValue: { (e: E1) -> Void in self._latestElement1 = e }, this: subscription1) - let observer2 = CombineLatestObserver(lock: self._lock, parent: self, index: 1, setLatestValue: { (e: E2) -> Void in self._latestElement2 = e }, this: subscription2) - let observer3 = CombineLatestObserver(lock: self._lock, parent: self, index: 2, setLatestValue: { (e: E3) -> Void in self._latestElement3 = e }, this: subscription3) - let observer4 = CombineLatestObserver(lock: self._lock, parent: self, index: 3, setLatestValue: { (e: E4) -> Void in self._latestElement4 = e }, this: subscription4) - let observer5 = CombineLatestObserver(lock: self._lock, parent: self, index: 4, setLatestValue: { (e: E5) -> Void in self._latestElement5 = e }, this: subscription5) - let observer6 = CombineLatestObserver(lock: self._lock, parent: self, index: 5, setLatestValue: { (e: E6) -> Void in self._latestElement6 = e }, this: subscription6) - - subscription1.setDisposable(self._parent._source1.subscribe(observer1)) - subscription2.setDisposable(self._parent._source2.subscribe(observer2)) - subscription3.setDisposable(self._parent._source3.subscribe(observer3)) - subscription4.setDisposable(self._parent._source4.subscribe(observer4)) - subscription5.setDisposable(self._parent._source5.subscribe(observer5)) - subscription6.setDisposable(self._parent._source6.subscribe(observer6)) - - return Disposables.create([ - subscription1, - subscription2, - subscription3, - subscription4, - subscription5, - subscription6 - ]) - } - - override func getResult() throws -> R { - return try self._parent._resultSelector(self._latestElement1, self._latestElement2, self._latestElement3, self._latestElement4, self._latestElement5, self._latestElement6) - } -} - -final class CombineLatest6 : Producer { - typealias ResultSelector = (E1, E2, E3, E4, E5, E6) throws -> R - - let _source1: Observable - let _source2: Observable - let _source3: Observable - let _source4: Observable - let _source5: Observable - let _source6: Observable - - let _resultSelector: ResultSelector - - init(source1: Observable, source2: Observable, source3: Observable, source4: Observable, source5: Observable, source6: Observable, resultSelector: @escaping ResultSelector) { - self._source1 = source1 - self._source2 = source2 - self._source3 = source3 - self._source4 = source4 - self._source5 = source5 - self._source6 = source6 - - self._resultSelector = resultSelector - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == R { - let sink = CombineLatestSink6_(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} - - - -// 7 - -extension ObservableType { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. - - - seealso: [combineLatest operator on reactivex.io](http://reactivex.io/documentation/operators/combinelatest.html) - - - parameter resultSelector: Function to invoke whenever any of the sources produces an element. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6, _ source7: O7, resultSelector: @escaping (O1.E, O2.E, O3.E, O4.E, O5.E, O6.E, O7.E) throws -> E) - -> Observable { - return CombineLatest7( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), source4: source4.asObservable(), source5: source5.asObservable(), source6: source6.asObservable(), source7: source7.asObservable(), - resultSelector: resultSelector - ) - } -} - -extension ObservableType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of tuples whenever any of the observable sequences produces an element. - - - seealso: [combineLatest operator on reactivex.io](http://reactivex.io/documentation/operators/combinelatest.html) - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6, _ source7: O7) - -> Observable<(O1.E, O2.E, O3.E, O4.E, O5.E, O6.E, O7.E)> { - return CombineLatest7( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), source4: source4.asObservable(), source5: source5.asObservable(), source6: source6.asObservable(), source7: source7.asObservable(), - resultSelector: { ($0, $1, $2, $3, $4, $5, $6) } - ) - } -} - -final class CombineLatestSink7_ : CombineLatestSink { - typealias R = O.E - typealias Parent = CombineLatest7 - - let _parent: Parent - - var _latestElement1: E1! = nil - var _latestElement2: E2! = nil - var _latestElement3: E3! = nil - var _latestElement4: E4! = nil - var _latestElement5: E5! = nil - var _latestElement6: E6! = nil - var _latestElement7: E7! = nil - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(arity: 7, observer: observer, cancel: cancel) - } - - func run() -> Disposable { - let subscription1 = SingleAssignmentDisposable() - let subscription2 = SingleAssignmentDisposable() - let subscription3 = SingleAssignmentDisposable() - let subscription4 = SingleAssignmentDisposable() - let subscription5 = SingleAssignmentDisposable() - let subscription6 = SingleAssignmentDisposable() - let subscription7 = SingleAssignmentDisposable() - - let observer1 = CombineLatestObserver(lock: self._lock, parent: self, index: 0, setLatestValue: { (e: E1) -> Void in self._latestElement1 = e }, this: subscription1) - let observer2 = CombineLatestObserver(lock: self._lock, parent: self, index: 1, setLatestValue: { (e: E2) -> Void in self._latestElement2 = e }, this: subscription2) - let observer3 = CombineLatestObserver(lock: self._lock, parent: self, index: 2, setLatestValue: { (e: E3) -> Void in self._latestElement3 = e }, this: subscription3) - let observer4 = CombineLatestObserver(lock: self._lock, parent: self, index: 3, setLatestValue: { (e: E4) -> Void in self._latestElement4 = e }, this: subscription4) - let observer5 = CombineLatestObserver(lock: self._lock, parent: self, index: 4, setLatestValue: { (e: E5) -> Void in self._latestElement5 = e }, this: subscription5) - let observer6 = CombineLatestObserver(lock: self._lock, parent: self, index: 5, setLatestValue: { (e: E6) -> Void in self._latestElement6 = e }, this: subscription6) - let observer7 = CombineLatestObserver(lock: self._lock, parent: self, index: 6, setLatestValue: { (e: E7) -> Void in self._latestElement7 = e }, this: subscription7) - - subscription1.setDisposable(self._parent._source1.subscribe(observer1)) - subscription2.setDisposable(self._parent._source2.subscribe(observer2)) - subscription3.setDisposable(self._parent._source3.subscribe(observer3)) - subscription4.setDisposable(self._parent._source4.subscribe(observer4)) - subscription5.setDisposable(self._parent._source5.subscribe(observer5)) - subscription6.setDisposable(self._parent._source6.subscribe(observer6)) - subscription7.setDisposable(self._parent._source7.subscribe(observer7)) - - return Disposables.create([ - subscription1, - subscription2, - subscription3, - subscription4, - subscription5, - subscription6, - subscription7 - ]) - } - - override func getResult() throws -> R { - return try self._parent._resultSelector(self._latestElement1, self._latestElement2, self._latestElement3, self._latestElement4, self._latestElement5, self._latestElement6, self._latestElement7) - } -} - -final class CombineLatest7 : Producer { - typealias ResultSelector = (E1, E2, E3, E4, E5, E6, E7) throws -> R - - let _source1: Observable - let _source2: Observable - let _source3: Observable - let _source4: Observable - let _source5: Observable - let _source6: Observable - let _source7: Observable - - let _resultSelector: ResultSelector - - init(source1: Observable, source2: Observable, source3: Observable, source4: Observable, source5: Observable, source6: Observable, source7: Observable, resultSelector: @escaping ResultSelector) { - self._source1 = source1 - self._source2 = source2 - self._source3 = source3 - self._source4 = source4 - self._source5 = source5 - self._source6 = source6 - self._source7 = source7 - - self._resultSelector = resultSelector - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == R { - let sink = CombineLatestSink7_(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} - - - -// 8 - -extension ObservableType { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. - - - seealso: [combineLatest operator on reactivex.io](http://reactivex.io/documentation/operators/combinelatest.html) - - - parameter resultSelector: Function to invoke whenever any of the sources produces an element. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6, _ source7: O7, _ source8: O8, resultSelector: @escaping (O1.E, O2.E, O3.E, O4.E, O5.E, O6.E, O7.E, O8.E) throws -> E) - -> Observable { - return CombineLatest8( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), source4: source4.asObservable(), source5: source5.asObservable(), source6: source6.asObservable(), source7: source7.asObservable(), source8: source8.asObservable(), - resultSelector: resultSelector - ) - } -} - -extension ObservableType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of tuples whenever any of the observable sequences produces an element. - - - seealso: [combineLatest operator on reactivex.io](http://reactivex.io/documentation/operators/combinelatest.html) - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func combineLatest - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6, _ source7: O7, _ source8: O8) - -> Observable<(O1.E, O2.E, O3.E, O4.E, O5.E, O6.E, O7.E, O8.E)> { - return CombineLatest8( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), source4: source4.asObservable(), source5: source5.asObservable(), source6: source6.asObservable(), source7: source7.asObservable(), source8: source8.asObservable(), - resultSelector: { ($0, $1, $2, $3, $4, $5, $6, $7) } - ) - } -} - -final class CombineLatestSink8_ : CombineLatestSink { - typealias R = O.E - typealias Parent = CombineLatest8 - - let _parent: Parent - - var _latestElement1: E1! = nil - var _latestElement2: E2! = nil - var _latestElement3: E3! = nil - var _latestElement4: E4! = nil - var _latestElement5: E5! = nil - var _latestElement6: E6! = nil - var _latestElement7: E7! = nil - var _latestElement8: E8! = nil - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(arity: 8, observer: observer, cancel: cancel) - } - - func run() -> Disposable { - let subscription1 = SingleAssignmentDisposable() - let subscription2 = SingleAssignmentDisposable() - let subscription3 = SingleAssignmentDisposable() - let subscription4 = SingleAssignmentDisposable() - let subscription5 = SingleAssignmentDisposable() - let subscription6 = SingleAssignmentDisposable() - let subscription7 = SingleAssignmentDisposable() - let subscription8 = SingleAssignmentDisposable() - - let observer1 = CombineLatestObserver(lock: self._lock, parent: self, index: 0, setLatestValue: { (e: E1) -> Void in self._latestElement1 = e }, this: subscription1) - let observer2 = CombineLatestObserver(lock: self._lock, parent: self, index: 1, setLatestValue: { (e: E2) -> Void in self._latestElement2 = e }, this: subscription2) - let observer3 = CombineLatestObserver(lock: self._lock, parent: self, index: 2, setLatestValue: { (e: E3) -> Void in self._latestElement3 = e }, this: subscription3) - let observer4 = CombineLatestObserver(lock: self._lock, parent: self, index: 3, setLatestValue: { (e: E4) -> Void in self._latestElement4 = e }, this: subscription4) - let observer5 = CombineLatestObserver(lock: self._lock, parent: self, index: 4, setLatestValue: { (e: E5) -> Void in self._latestElement5 = e }, this: subscription5) - let observer6 = CombineLatestObserver(lock: self._lock, parent: self, index: 5, setLatestValue: { (e: E6) -> Void in self._latestElement6 = e }, this: subscription6) - let observer7 = CombineLatestObserver(lock: self._lock, parent: self, index: 6, setLatestValue: { (e: E7) -> Void in self._latestElement7 = e }, this: subscription7) - let observer8 = CombineLatestObserver(lock: self._lock, parent: self, index: 7, setLatestValue: { (e: E8) -> Void in self._latestElement8 = e }, this: subscription8) - - subscription1.setDisposable(self._parent._source1.subscribe(observer1)) - subscription2.setDisposable(self._parent._source2.subscribe(observer2)) - subscription3.setDisposable(self._parent._source3.subscribe(observer3)) - subscription4.setDisposable(self._parent._source4.subscribe(observer4)) - subscription5.setDisposable(self._parent._source5.subscribe(observer5)) - subscription6.setDisposable(self._parent._source6.subscribe(observer6)) - subscription7.setDisposable(self._parent._source7.subscribe(observer7)) - subscription8.setDisposable(self._parent._source8.subscribe(observer8)) - - return Disposables.create([ - subscription1, - subscription2, - subscription3, - subscription4, - subscription5, - subscription6, - subscription7, - subscription8 - ]) - } - - override func getResult() throws -> R { - return try self._parent._resultSelector(self._latestElement1, self._latestElement2, self._latestElement3, self._latestElement4, self._latestElement5, self._latestElement6, self._latestElement7, self._latestElement8) - } -} - -final class CombineLatest8 : Producer { - typealias ResultSelector = (E1, E2, E3, E4, E5, E6, E7, E8) throws -> R - - let _source1: Observable - let _source2: Observable - let _source3: Observable - let _source4: Observable - let _source5: Observable - let _source6: Observable - let _source7: Observable - let _source8: Observable - - let _resultSelector: ResultSelector - - init(source1: Observable, source2: Observable, source3: Observable, source4: Observable, source5: Observable, source6: Observable, source7: Observable, source8: Observable, resultSelector: @escaping ResultSelector) { - self._source1 = source1 - self._source2 = source2 - self._source3 = source3 - self._source4 = source4 - self._source5 = source5 - self._source6 = source6 - self._source7 = source7 - self._source8 = source8 - - self._resultSelector = resultSelector - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == R { - let sink = CombineLatestSink8_(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} - - diff --git a/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift b/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift deleted file mode 100644 index dbecf98..0000000 --- a/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift +++ /dev/null @@ -1,132 +0,0 @@ -// -// CombineLatest.swift -// RxSwift -// -// Created by Krunoslav Zaher on 3/21/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -protocol CombineLatestProtocol : class { - func next(_ index: Int) - func fail(_ error: Swift.Error) - func done(_ index: Int) -} - -class CombineLatestSink - : Sink - , CombineLatestProtocol { - typealias Element = O.E - - let _lock = RecursiveLock() - - private let _arity: Int - private var _numberOfValues = 0 - private var _numberOfDone = 0 - private var _hasValue: [Bool] - private var _isDone: [Bool] - - init(arity: Int, observer: O, cancel: Cancelable) { - self._arity = arity - self._hasValue = [Bool](repeating: false, count: arity) - self._isDone = [Bool](repeating: false, count: arity) - - super.init(observer: observer, cancel: cancel) - } - - func getResult() throws -> Element { - rxAbstractMethod() - } - - func next(_ index: Int) { - if !self._hasValue[index] { - self._hasValue[index] = true - self._numberOfValues += 1 - } - - if self._numberOfValues == self._arity { - do { - let result = try self.getResult() - self.forwardOn(.next(result)) - } - catch let e { - self.forwardOn(.error(e)) - self.dispose() - } - } - else { - var allOthersDone = true - - for i in 0 ..< self._arity { - if i != index && !self._isDone[i] { - allOthersDone = false - break - } - } - - if allOthersDone { - self.forwardOn(.completed) - self.dispose() - } - } - } - - func fail(_ error: Swift.Error) { - self.forwardOn(.error(error)) - self.dispose() - } - - func done(_ index: Int) { - if self._isDone[index] { - return - } - - self._isDone[index] = true - self._numberOfDone += 1 - - if self._numberOfDone == self._arity { - self.forwardOn(.completed) - self.dispose() - } - } -} - -final class CombineLatestObserver - : ObserverType - , LockOwnerType - , SynchronizedOnType { - typealias Element = ElementType - typealias ValueSetter = (Element) -> Void - - private let _parent: CombineLatestProtocol - - let _lock: RecursiveLock - private let _index: Int - private let _this: Disposable - private let _setLatestValue: ValueSetter - - init(lock: RecursiveLock, parent: CombineLatestProtocol, index: Int, setLatestValue: @escaping ValueSetter, this: Disposable) { - self._lock = lock - self._parent = parent - self._index = index - self._this = this - self._setLatestValue = setLatestValue - } - - func on(_ event: Event) { - self.synchronizedOn(event) - } - - func _synchronized_on(_ event: Event) { - switch event { - case .next(let value): - self._setLatestValue(value) - self._parent.next(self._index) - case .error(let error): - self._this.dispose() - self._parent.fail(error) - case .completed: - self._this.dispose() - self._parent.done(self._index) - } - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Concat.swift b/Pods/RxSwift/RxSwift/Observables/Concat.swift deleted file mode 100644 index 27daf8d..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Concat.swift +++ /dev/null @@ -1,131 +0,0 @@ -// -// Concat.swift -// RxSwift -// -// Created by Krunoslav Zaher on 3/21/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Concatenates the second observable sequence to `self` upon successful termination of `self`. - - - seealso: [concat operator on reactivex.io](http://reactivex.io/documentation/operators/concat.html) - - - parameter second: Second observable sequence. - - returns: An observable sequence that contains the elements of `self`, followed by those of the second sequence. - */ - public func concat(_ second: O) -> Observable where O.E == E { - return Observable.concat([self.asObservable(), second.asObservable()]) - } -} - -extension ObservableType { - /** - Concatenates all observable sequences in the given sequence, as long as the previous observable sequence terminated successfully. - - This operator has tail recursive optimizations that will prevent stack overflow. - - Optimizations will be performed in cases equivalent to following: - - [1, [2, [3, .....].concat()].concat].concat() - - - seealso: [concat operator on reactivex.io](http://reactivex.io/documentation/operators/concat.html) - - - returns: An observable sequence that contains the elements of each given sequence, in sequential order. - */ - public static func concat(_ sequence: S) -> Observable - where S.Iterator.Element == Observable { - return Concat(sources: sequence, count: nil) - } - - /** - Concatenates all observable sequences in the given collection, as long as the previous observable sequence terminated successfully. - - This operator has tail recursive optimizations that will prevent stack overflow. - - Optimizations will be performed in cases equivalent to following: - - [1, [2, [3, .....].concat()].concat].concat() - - - seealso: [concat operator on reactivex.io](http://reactivex.io/documentation/operators/concat.html) - - - returns: An observable sequence that contains the elements of each given sequence, in sequential order. - */ - public static func concat(_ collection: S) -> Observable - where S.Iterator.Element == Observable { - return Concat(sources: collection, count: Int64(collection.count)) - } - - /** - Concatenates all observable sequences in the given collection, as long as the previous observable sequence terminated successfully. - - This operator has tail recursive optimizations that will prevent stack overflow. - - Optimizations will be performed in cases equivalent to following: - - [1, [2, [3, .....].concat()].concat].concat() - - - seealso: [concat operator on reactivex.io](http://reactivex.io/documentation/operators/concat.html) - - - returns: An observable sequence that contains the elements of each given sequence, in sequential order. - */ - public static func concat(_ sources: Observable ...) -> Observable { - return Concat(sources: sources, count: Int64(sources.count)) - } -} - -final private class ConcatSink - : TailRecursiveSink - , ObserverType where S.Iterator.Element: ObservableConvertibleType, S.Iterator.Element.E == O.E { - typealias Element = O.E - - override init(observer: O, cancel: Cancelable) { - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event){ - switch event { - case .next: - self.forwardOn(event) - case .error: - self.forwardOn(event) - self.dispose() - case .completed: - self.schedule(.moveNext) - } - } - - override func subscribeToNext(_ source: Observable) -> Disposable { - return source.subscribe(self) - } - - override func extract(_ observable: Observable) -> SequenceGenerator? { - if let source = observable as? Concat { - return (source._sources.makeIterator(), source._count) - } - else { - return nil - } - } -} - -final private class Concat: Producer where S.Iterator.Element: ObservableConvertibleType { - typealias Element = S.Iterator.Element.E - - fileprivate let _sources: S - fileprivate let _count: IntMax? - - init(sources: S, count: IntMax?) { - self._sources = sources - self._count = count - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = ConcatSink(observer: observer, cancel: cancel) - let subscription = sink.run((self._sources.makeIterator(), self._count)) - return (sink: sink, subscription: subscription) - } -} - diff --git a/Pods/RxSwift/RxSwift/Observables/Create.swift b/Pods/RxSwift/RxSwift/Observables/Create.swift deleted file mode 100644 index 287b088..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Create.swift +++ /dev/null @@ -1,78 +0,0 @@ -// -// Create.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/8/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - // MARK: create - - /** - Creates an observable sequence from a specified subscribe method implementation. - - - seealso: [create operator on reactivex.io](http://reactivex.io/documentation/operators/create.html) - - - parameter subscribe: Implementation of the resulting observable sequence's `subscribe` method. - - returns: The observable sequence with the specified implementation for the `subscribe` method. - */ - public static func create(_ subscribe: @escaping (AnyObserver) -> Disposable) -> Observable { - return AnonymousObservable(subscribe) - } -} - -final private class AnonymousObservableSink: Sink, ObserverType { - typealias E = O.E - typealias Parent = AnonymousObservable - - // state - private var _isStopped = AtomicInt(0) - - #if DEBUG - fileprivate let _synchronizationTracker = SynchronizationTracker() - #endif - - override init(observer: O, cancel: Cancelable) { - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - #if DEBUG - self._synchronizationTracker.register(synchronizationErrorMessage: .default) - defer { self._synchronizationTracker.unregister() } - #endif - switch event { - case .next: - if load(&self._isStopped) == 1 { - return - } - self.forwardOn(event) - case .error, .completed: - if fetchOr(&self._isStopped, 1) == 0 { - self.forwardOn(event) - self.dispose() - } - } - } - - func run(_ parent: Parent) -> Disposable { - return parent._subscribeHandler(AnyObserver(self)) - } -} - -final private class AnonymousObservable: Producer { - typealias SubscribeHandler = (AnyObserver) -> Disposable - - let _subscribeHandler: SubscribeHandler - - init(_ subscribeHandler: @escaping SubscribeHandler) { - self._subscribeHandler = subscribeHandler - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = AnonymousObservableSink(observer: observer, cancel: cancel) - let subscription = sink.run(self) - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Debounce.swift b/Pods/RxSwift/RxSwift/Observables/Debounce.swift deleted file mode 100644 index 0b23cc9..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Debounce.swift +++ /dev/null @@ -1,118 +0,0 @@ -// -// Debounce.swift -// RxSwift -// -// Created by Krunoslav Zaher on 9/11/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Ignores elements from an observable sequence which are followed by another element within a specified relative time duration, using the specified scheduler to run throttling timers. - - - seealso: [debounce operator on reactivex.io](http://reactivex.io/documentation/operators/debounce.html) - - - parameter dueTime: Throttling duration for each element. - - parameter scheduler: Scheduler to run the throttle timers on. - - returns: The throttled sequence. - */ - public func debounce(_ dueTime: RxTimeInterval, scheduler: SchedulerType) - -> Observable { - return Debounce(source: self.asObservable(), dueTime: dueTime, scheduler: scheduler) - } -} - -final private class DebounceSink - : Sink - , ObserverType - , LockOwnerType - , SynchronizedOnType { - typealias Element = O.E - typealias ParentType = Debounce - - private let _parent: ParentType - - let _lock = RecursiveLock() - - // state - private var _id = 0 as UInt64 - private var _value: Element? - - let cancellable = SerialDisposable() - - init(parent: ParentType, observer: O, cancel: Cancelable) { - self._parent = parent - - super.init(observer: observer, cancel: cancel) - } - - func run() -> Disposable { - let subscription = self._parent._source.subscribe(self) - - return Disposables.create(subscription, cancellable) - } - - func on(_ event: Event) { - self.synchronizedOn(event) - } - - func _synchronized_on(_ event: Event) { - switch event { - case .next(let element): - self._id = self._id &+ 1 - let currentId = self._id - self._value = element - - - let scheduler = self._parent._scheduler - let dueTime = self._parent._dueTime - - let d = SingleAssignmentDisposable() - self.cancellable.disposable = d - d.setDisposable(scheduler.scheduleRelative(currentId, dueTime: dueTime, action: self.propagate)) - case .error: - self._value = nil - self.forwardOn(event) - self.dispose() - case .completed: - if let value = self._value { - self._value = nil - self.forwardOn(.next(value)) - } - self.forwardOn(.completed) - self.dispose() - } - } - - func propagate(_ currentId: UInt64) -> Disposable { - self._lock.lock(); defer { self._lock.unlock() } // { - let originalValue = self._value - - if let value = originalValue, self._id == currentId { - self._value = nil - self.forwardOn(.next(value)) - } - // } - return Disposables.create() - } -} - -final private class Debounce: Producer { - fileprivate let _source: Observable - fileprivate let _dueTime: RxTimeInterval - fileprivate let _scheduler: SchedulerType - - init(source: Observable, dueTime: RxTimeInterval, scheduler: SchedulerType) { - self._source = source - self._dueTime = dueTime - self._scheduler = scheduler - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = DebounceSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } - -} diff --git a/Pods/RxSwift/RxSwift/Observables/Debug.swift b/Pods/RxSwift/RxSwift/Observables/Debug.swift deleted file mode 100644 index 1a07eb6..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Debug.swift +++ /dev/null @@ -1,103 +0,0 @@ -// -// Debug.swift -// RxSwift -// -// Created by Krunoslav Zaher on 5/2/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import struct Foundation.Date -import class Foundation.DateFormatter - -extension ObservableType { - - /** - Prints received events for all observers on standard output. - - - seealso: [do operator on reactivex.io](http://reactivex.io/documentation/operators/do.html) - - - parameter identifier: Identifier that is printed together with event description to standard output. - - parameter trimOutput: Should output be trimmed to max 40 characters. - - returns: An observable sequence whose events are printed to standard output. - */ - public func debug(_ identifier: String? = nil, trimOutput: Bool = false, file: String = #file, line: UInt = #line, function: String = #function) - -> Observable { - return Debug(source: self, identifier: identifier, trimOutput: trimOutput, file: file, line: line, function: function) - } -} - -fileprivate let dateFormat = "yyyy-MM-dd HH:mm:ss.SSS" - -fileprivate func logEvent(_ identifier: String, dateFormat: DateFormatter, content: String) { - print("\(dateFormat.string(from: Date())): \(identifier) -> \(content)") -} - -final private class DebugSink: Sink, ObserverType where O.E == Source.E { - typealias Element = O.E - typealias Parent = Debug - - private let _parent: Parent - private let _timestampFormatter = DateFormatter() - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - self._timestampFormatter.dateFormat = dateFormat - - logEvent(self._parent._identifier, dateFormat: self._timestampFormatter, content: "subscribed") - - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - let maxEventTextLength = 40 - let eventText = "\(event)" - - let eventNormalized = (eventText.count > maxEventTextLength) && self._parent._trimOutput - ? String(eventText.prefix(maxEventTextLength / 2)) + "..." + String(eventText.suffix(maxEventTextLength / 2)) - : eventText - - logEvent(self._parent._identifier, dateFormat: self._timestampFormatter, content: "Event \(eventNormalized)") - - self.forwardOn(event) - if event.isStopEvent { - self.dispose() - } - } - - override func dispose() { - if !self.disposed { - logEvent(self._parent._identifier, dateFormat: self._timestampFormatter, content: "isDisposed") - } - super.dispose() - } -} - -final private class Debug: Producer { - fileprivate let _identifier: String - fileprivate let _trimOutput: Bool - fileprivate let _source: Source - - init(source: Source, identifier: String?, trimOutput: Bool, file: String, line: UInt, function: String) { - self._trimOutput = trimOutput - if let identifier = identifier { - self._identifier = identifier - } - else { - let trimmedFile: String - if let lastIndex = file.lastIndexOf("/") { - trimmedFile = String(file[file.index(after: lastIndex) ..< file.endIndex]) - } - else { - trimmedFile = file - } - self._identifier = "\(trimmedFile):\(line) (\(function))" - } - self._source = source - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Source.E { - let sink = DebugSink(parent: self, observer: observer, cancel: cancel) - let subscription = self._source.subscribe(sink) - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift b/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift deleted file mode 100644 index cf0bfed..0000000 --- a/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift +++ /dev/null @@ -1,66 +0,0 @@ -// -// DefaultIfEmpty.swift -// RxSwift -// -// Created by sergdort on 23/12/2016. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Emits elements from the source observable sequence, or a default element if the source observable sequence is empty. - - - seealso: [DefaultIfEmpty operator on reactivex.io](http://reactivex.io/documentation/operators/defaultifempty.html) - - - parameter default: Default element to be sent if the source does not emit any elements - - returns: An observable sequence which emits default element end completes in case the original sequence is empty - */ - public func ifEmpty(default: E) -> Observable { - return DefaultIfEmpty(source: self.asObservable(), default: `default`) - } -} - -final private class DefaultIfEmptySink: Sink, ObserverType { - typealias E = O.E - private let _default: E - private var _isEmpty = true - - init(default: E, observer: O, cancel: Cancelable) { - self._default = `default` - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - switch event { - case .next: - self._isEmpty = false - self.forwardOn(event) - case .error: - self.forwardOn(event) - self.dispose() - case .completed: - if self._isEmpty { - self.forwardOn(.next(self._default)) - } - self.forwardOn(.completed) - self.dispose() - } - } -} - -final private class DefaultIfEmpty: Producer { - private let _source: Observable - private let _default: SourceType - - init(source: Observable, `default`: SourceType) { - self._source = source - self._default = `default` - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == SourceType { - let sink = DefaultIfEmptySink(default: self._default, observer: observer, cancel: cancel) - let subscription = self._source.subscribe(sink) - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Deferred.swift b/Pods/RxSwift/RxSwift/Observables/Deferred.swift deleted file mode 100644 index b75fbf9..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Deferred.swift +++ /dev/null @@ -1,74 +0,0 @@ -// -// Deferred.swift -// RxSwift -// -// Created by Krunoslav Zaher on 4/19/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - /** - Returns an observable sequence that invokes the specified factory function whenever a new observer subscribes. - - - seealso: [defer operator on reactivex.io](http://reactivex.io/documentation/operators/defer.html) - - - parameter observableFactory: Observable factory function to invoke for each observer that subscribes to the resulting sequence. - - returns: An observable sequence whose observers trigger an invocation of the given observable factory function. - */ - public static func deferred(_ observableFactory: @escaping () throws -> Observable) - -> Observable { - return Deferred(observableFactory: observableFactory) - } -} - -final private class DeferredSink: Sink, ObserverType where S.E == O.E { - typealias E = O.E - - private let _observableFactory: () throws -> S - - init(observableFactory: @escaping () throws -> S, observer: O, cancel: Cancelable) { - self._observableFactory = observableFactory - super.init(observer: observer, cancel: cancel) - } - - func run() -> Disposable { - do { - let result = try self._observableFactory() - return result.subscribe(self) - } - catch let e { - self.forwardOn(.error(e)) - self.dispose() - return Disposables.create() - } - } - - func on(_ event: Event) { - self.forwardOn(event) - - switch event { - case .next: - break - case .error: - self.dispose() - case .completed: - self.dispose() - } - } -} - -final private class Deferred: Producer { - typealias Factory = () throws -> S - - private let _observableFactory : Factory - - init(observableFactory: @escaping Factory) { - self._observableFactory = observableFactory - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == S.E { - let sink = DeferredSink(observableFactory: self._observableFactory, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Delay.swift b/Pods/RxSwift/RxSwift/Observables/Delay.swift deleted file mode 100644 index 61969d5..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Delay.swift +++ /dev/null @@ -1,179 +0,0 @@ -// -// Delay.swift -// RxSwift -// -// Created by tarunon on 2016/02/09. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -import struct Foundation.Date - -extension ObservableType { - - /** - Returns an observable sequence by the source observable sequence shifted forward in time by a specified delay. Error events from the source observable sequence are not delayed. - - - seealso: [delay operator on reactivex.io](http://reactivex.io/documentation/operators/delay.html) - - - parameter dueTime: Relative time shift of the source by. - - parameter scheduler: Scheduler to run the subscription delay timer on. - - returns: the source Observable shifted in time by the specified delay. - */ - public func delay(_ dueTime: RxTimeInterval, scheduler: SchedulerType) - -> Observable { - return Delay(source: self.asObservable(), dueTime: dueTime, scheduler: scheduler) - } -} - -final private class DelaySink - : Sink - , ObserverType { - typealias E = O.E - typealias Source = Observable - typealias DisposeKey = Bag.KeyType - - private let _lock = RecursiveLock() - - private let _dueTime: RxTimeInterval - private let _scheduler: SchedulerType - - private let _sourceSubscription = SingleAssignmentDisposable() - private let _cancelable = SerialDisposable() - - // is scheduled some action - private var _active = false - // is "run loop" on different scheduler running - private var _running = false - private var _errorEvent: Event? - - // state - private var _queue = Queue<(eventTime: RxTime, event: Event)>(capacity: 0) - private var _disposed = false - - init(observer: O, dueTime: RxTimeInterval, scheduler: SchedulerType, cancel: Cancelable) { - self._dueTime = dueTime - self._scheduler = scheduler - super.init(observer: observer, cancel: cancel) - } - - // All of these complications in this method are caused by the fact that - // error should be propagated immediately. Error can be potentially received on different - // scheduler so this process needs to be synchronized somehow. - // - // Another complication is that scheduler is potentially concurrent so internal queue is used. - func drainQueue(state: (), scheduler: AnyRecursiveScheduler<()>) { - - self._lock.lock() // { - let hasFailed = self._errorEvent != nil - if !hasFailed { - self._running = true - } - self._lock.unlock() // } - - if hasFailed { - return - } - - var ranAtLeastOnce = false - - while true { - self._lock.lock() // { - let errorEvent = self._errorEvent - - let eventToForwardImmediately = ranAtLeastOnce ? nil : self._queue.dequeue()?.event - let nextEventToScheduleOriginalTime: Date? = ranAtLeastOnce && !self._queue.isEmpty ? self._queue.peek().eventTime : nil - - if errorEvent == nil { - if eventToForwardImmediately != nil { - } - else if nextEventToScheduleOriginalTime != nil { - self._running = false - } - else { - self._running = false - self._active = false - } - } - self._lock.unlock() // { - - if let errorEvent = errorEvent { - self.forwardOn(errorEvent) - self.dispose() - return - } - else { - if let eventToForwardImmediately = eventToForwardImmediately { - ranAtLeastOnce = true - self.forwardOn(eventToForwardImmediately) - if case .completed = eventToForwardImmediately { - self.dispose() - return - } - } - else if let nextEventToScheduleOriginalTime = nextEventToScheduleOriginalTime { - let elapsedTime = self._scheduler.now.timeIntervalSince(nextEventToScheduleOriginalTime) - let interval = self._dueTime - elapsedTime - let normalizedInterval = interval < 0.0 ? 0.0 : interval - scheduler.schedule((), dueTime: normalizedInterval) - return - } - else { - return - } - } - } - } - - func on(_ event: Event) { - if event.isStopEvent { - self._sourceSubscription.dispose() - } - - switch event { - case .error: - self._lock.lock() // { - let shouldSendImmediately = !self._running - self._queue = Queue(capacity: 0) - self._errorEvent = event - self._lock.unlock() // } - - if shouldSendImmediately { - self.forwardOn(event) - self.dispose() - } - default: - self._lock.lock() // { - let shouldSchedule = !self._active - self._active = true - self._queue.enqueue((self._scheduler.now, event)) - self._lock.unlock() // } - - if shouldSchedule { - self._cancelable.disposable = self._scheduler.scheduleRecursive((), dueTime: self._dueTime, action: self.drainQueue) - } - } - } - - func run(source: Observable) -> Disposable { - self._sourceSubscription.setDisposable(source.subscribe(self)) - return Disposables.create(_sourceSubscription, _cancelable) - } -} - -final private class Delay: Producer { - private let _source: Observable - private let _dueTime: RxTimeInterval - private let _scheduler: SchedulerType - - init(source: Observable, dueTime: RxTimeInterval, scheduler: SchedulerType) { - self._source = source - self._dueTime = dueTime - self._scheduler = scheduler - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = DelaySink(observer: observer, dueTime: self._dueTime, scheduler: self._scheduler, cancel: cancel) - let subscription = sink.run(source: self._source) - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift b/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift deleted file mode 100644 index 16218a7..0000000 --- a/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift +++ /dev/null @@ -1,58 +0,0 @@ -// -// DelaySubscription.swift -// RxSwift -// -// Created by Krunoslav Zaher on 6/14/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Time shifts the observable sequence by delaying the subscription with the specified relative time duration, using the specified scheduler to run timers. - - - seealso: [delay operator on reactivex.io](http://reactivex.io/documentation/operators/delay.html) - - - parameter dueTime: Relative time shift of the subscription. - - parameter scheduler: Scheduler to run the subscription delay timer on. - - returns: Time-shifted sequence. - */ - public func delaySubscription(_ dueTime: RxTimeInterval, scheduler: SchedulerType) - -> Observable { - return DelaySubscription(source: self.asObservable(), dueTime: dueTime, scheduler: scheduler) - } -} - -final private class DelaySubscriptionSink - : Sink, ObserverType { - typealias E = O.E - - func on(_ event: Event) { - self.forwardOn(event) - if event.isStopEvent { - self.dispose() - } - } - -} - -final private class DelaySubscription: Producer { - private let _source: Observable - private let _dueTime: RxTimeInterval - private let _scheduler: SchedulerType - - init(source: Observable, dueTime: RxTimeInterval, scheduler: SchedulerType) { - self._source = source - self._dueTime = dueTime - self._scheduler = scheduler - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = DelaySubscriptionSink(observer: observer, cancel: cancel) - let subscription = self._scheduler.scheduleRelative((), dueTime: self._dueTime) { _ in - return self._source.subscribe(sink) - } - - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift b/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift deleted file mode 100644 index e315d17..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift +++ /dev/null @@ -1,51 +0,0 @@ -// -// Dematerialize.swift -// RxSwift -// -// Created by Jamie Pinkham on 3/13/17. -// Copyright © 2017 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType where E: EventConvertible { - /** - Convert any previously materialized Observable into it's original form. - - seealso: [materialize operator on reactivex.io](http://reactivex.io/documentation/operators/materialize-dematerialize.html) - - returns: The dematerialized observable sequence. - */ - public func dematerialize() -> Observable { - return Dematerialize(source: self.asObservable()) - } - -} - -fileprivate final class DematerializeSink: Sink, ObserverType where O.E == Element.ElementType { - fileprivate func on(_ event: Event) { - switch event { - case .next(let element): - self.forwardOn(element.event) - if element.event.isStopEvent { - self.dispose() - } - case .completed: - self.forwardOn(.completed) - self.dispose() - case .error(let error): - self.forwardOn(.error(error)) - self.dispose() - } - } -} - -final private class Dematerialize: Producer { - private let _source: Observable - - init(source: Observable) { - self._source = source - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element.ElementType { - let sink = DematerializeSink(observer: observer, cancel: cancel) - let subscription = self._source.subscribe(sink) - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift b/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift deleted file mode 100644 index db0b0ab..0000000 --- a/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift +++ /dev/null @@ -1,125 +0,0 @@ -// -// DistinctUntilChanged.swift -// RxSwift -// -// Created by Krunoslav Zaher on 3/15/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType where E: Equatable { - - /** - Returns an observable sequence that contains only distinct contiguous elements according to equality operator. - - - seealso: [distinct operator on reactivex.io](http://reactivex.io/documentation/operators/distinct.html) - - - returns: An observable sequence only containing the distinct contiguous elements, based on equality operator, from the source sequence. - */ - public func distinctUntilChanged() - -> Observable { - return self.distinctUntilChanged({ $0 }, comparer: { ($0 == $1) }) - } -} - -extension ObservableType { - /** - Returns an observable sequence that contains only distinct contiguous elements according to the `keySelector`. - - - seealso: [distinct operator on reactivex.io](http://reactivex.io/documentation/operators/distinct.html) - - - parameter keySelector: A function to compute the comparison key for each element. - - returns: An observable sequence only containing the distinct contiguous elements, based on a computed key value, from the source sequence. - */ - public func distinctUntilChanged(_ keySelector: @escaping (E) throws -> K) - -> Observable { - return self.distinctUntilChanged(keySelector, comparer: { $0 == $1 }) - } - - /** - Returns an observable sequence that contains only distinct contiguous elements according to the `comparer`. - - - seealso: [distinct operator on reactivex.io](http://reactivex.io/documentation/operators/distinct.html) - - - parameter comparer: Equality comparer for computed key values. - - returns: An observable sequence only containing the distinct contiguous elements, based on `comparer`, from the source sequence. - */ - public func distinctUntilChanged(_ comparer: @escaping (E, E) throws -> Bool) - -> Observable { - return self.distinctUntilChanged({ $0 }, comparer: comparer) - } - - /** - Returns an observable sequence that contains only distinct contiguous elements according to the keySelector and the comparer. - - - seealso: [distinct operator on reactivex.io](http://reactivex.io/documentation/operators/distinct.html) - - - parameter keySelector: A function to compute the comparison key for each element. - - parameter comparer: Equality comparer for computed key values. - - returns: An observable sequence only containing the distinct contiguous elements, based on a computed key value and the comparer, from the source sequence. - */ - public func distinctUntilChanged(_ keySelector: @escaping (E) throws -> K, comparer: @escaping (K, K) throws -> Bool) - -> Observable { - return DistinctUntilChanged(source: self.asObservable(), selector: keySelector, comparer: comparer) - } -} - -final private class DistinctUntilChangedSink: Sink, ObserverType { - typealias E = O.E - - private let _parent: DistinctUntilChanged - private var _currentKey: Key? - - init(parent: DistinctUntilChanged, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - switch event { - case .next(let value): - do { - let key = try self._parent._selector(value) - var areEqual = false - if let currentKey = self._currentKey { - areEqual = try self._parent._comparer(currentKey, key) - } - - if areEqual { - return - } - - self._currentKey = key - - self.forwardOn(event) - } - catch let error { - self.forwardOn(.error(error)) - self.dispose() - } - case .error, .completed: - self.forwardOn(event) - self.dispose() - } - } -} - -final private class DistinctUntilChanged: Producer { - typealias KeySelector = (Element) throws -> Key - typealias EqualityComparer = (Key, Key) throws -> Bool - - fileprivate let _source: Observable - fileprivate let _selector: KeySelector - fileprivate let _comparer: EqualityComparer - - init(source: Observable, selector: @escaping KeySelector, comparer: @escaping EqualityComparer) { - self._source = source - self._selector = selector - self._comparer = comparer - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = DistinctUntilChangedSink(parent: self, observer: observer, cancel: cancel) - let subscription = self._source.subscribe(sink) - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Do.swift b/Pods/RxSwift/RxSwift/Observables/Do.swift deleted file mode 100644 index d057131..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Do.swift +++ /dev/null @@ -1,93 +0,0 @@ -// -// Do.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/21/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - /** - Invokes an action for each event in the observable sequence, and propagates all observer messages through the result sequence. - - - seealso: [do operator on reactivex.io](http://reactivex.io/documentation/operators/do.html) - - - parameter onNext: Action to invoke for each element in the observable sequence. - - parameter onError: Action to invoke upon errored termination of the observable sequence. - - parameter onCompleted: Action to invoke upon graceful termination of the observable sequence. - - parameter onSubscribe: Action to invoke before subscribing to source observable sequence. - - parameter onSubscribed: Action to invoke after subscribing to source observable sequence. - - parameter onDispose: Action to invoke after subscription to source observable has been disposed for any reason. It can be either because sequence terminates for some reason or observer subscription being disposed. - - returns: The source sequence with the side-effecting behavior applied. - */ - public func `do`(onNext: ((E) throws -> Void)? = nil, onError: ((Swift.Error) throws -> Void)? = nil, onCompleted: (() throws -> Void)? = nil, onSubscribe: (() -> Void)? = nil, onSubscribed: (() -> Void)? = nil, onDispose: (() -> Void)? = nil) - -> Observable { - return Do(source: self.asObservable(), eventHandler: { e in - switch e { - case .next(let element): - try onNext?(element) - case .error(let e): - try onError?(e) - case .completed: - try onCompleted?() - } - }, onSubscribe: onSubscribe, onSubscribed: onSubscribed, onDispose: onDispose) - } -} - -final private class DoSink: Sink, ObserverType { - typealias Element = O.E - typealias EventHandler = (Event) throws -> Void - - private let _eventHandler: EventHandler - - init(eventHandler: @escaping EventHandler, observer: O, cancel: Cancelable) { - self._eventHandler = eventHandler - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - do { - try self._eventHandler(event) - self.forwardOn(event) - if event.isStopEvent { - self.dispose() - } - } - catch let error { - self.forwardOn(.error(error)) - self.dispose() - } - } -} - -final private class Do: Producer { - typealias EventHandler = (Event) throws -> Void - - fileprivate let _source: Observable - fileprivate let _eventHandler: EventHandler - fileprivate let _onSubscribe: (() -> Void)? - fileprivate let _onSubscribed: (() -> Void)? - fileprivate let _onDispose: (() -> Void)? - - init(source: Observable, eventHandler: @escaping EventHandler, onSubscribe: (() -> Void)?, onSubscribed: (() -> Void)?, onDispose: (() -> Void)?) { - self._source = source - self._eventHandler = eventHandler - self._onSubscribe = onSubscribe - self._onSubscribed = onSubscribed - self._onDispose = onDispose - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - self._onSubscribe?() - let sink = DoSink(eventHandler: self._eventHandler, observer: observer, cancel: cancel) - let subscription = self._source.subscribe(sink) - self._onSubscribed?() - let onDispose = self._onDispose - let allSubscriptions = Disposables.create { - subscription.dispose() - onDispose?() - } - return (sink: sink, subscription: allSubscriptions) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/ElementAt.swift b/Pods/RxSwift/RxSwift/Observables/ElementAt.swift deleted file mode 100644 index 2279400..0000000 --- a/Pods/RxSwift/RxSwift/Observables/ElementAt.swift +++ /dev/null @@ -1,92 +0,0 @@ -// -// ElementAt.swift -// RxSwift -// -// Created by Junior B. on 21/10/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Returns a sequence emitting only element _n_ emitted by an Observable - - - seealso: [elementAt operator on reactivex.io](http://reactivex.io/documentation/operators/elementat.html) - - - parameter index: The index of the required element (starting from 0). - - returns: An observable sequence that emits the desired element as its own sole emission. - */ - public func elementAt(_ index: Int) - -> Observable { - return ElementAt(source: self.asObservable(), index: index, throwOnEmpty: true) - } -} - -final private class ElementAtSink: Sink, ObserverType { - typealias SourceType = O.E - typealias Parent = ElementAt - - let _parent: Parent - var _i: Int - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - self._i = parent._index - - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - switch event { - case .next: - - if self._i == 0 { - self.forwardOn(event) - self.forwardOn(.completed) - self.dispose() - } - - do { - _ = try decrementChecked(&self._i) - } catch let e { - self.forwardOn(.error(e)) - self.dispose() - return - } - - case .error(let e): - self.forwardOn(.error(e)) - self.dispose() - case .completed: - if self._parent._throwOnEmpty { - self.forwardOn(.error(RxError.argumentOutOfRange)) - } else { - self.forwardOn(.completed) - } - - self.dispose() - } - } -} - -final private class ElementAt: Producer { - let _source: Observable - let _throwOnEmpty: Bool - let _index: Int - - init(source: Observable, index: Int, throwOnEmpty: Bool) { - if index < 0 { - rxFatalError("index can't be negative") - } - - self._source = source - self._index = index - self._throwOnEmpty = throwOnEmpty - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == SourceType { - let sink = ElementAtSink(parent: self, observer: observer, cancel: cancel) - let subscription = self._source.subscribe(sink) - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Empty.swift b/Pods/RxSwift/RxSwift/Observables/Empty.swift deleted file mode 100644 index cf72519..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Empty.swift +++ /dev/null @@ -1,27 +0,0 @@ -// -// Empty.swift -// RxSwift -// -// Created by Krunoslav Zaher on 8/30/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - /** - Returns an empty observable sequence, using the specified scheduler to send out the single `Completed` message. - - - seealso: [empty operator on reactivex.io](http://reactivex.io/documentation/operators/empty-never-throw.html) - - - returns: An observable sequence with no elements. - */ - public static func empty() -> Observable { - return EmptyProducer() - } -} - -final private class EmptyProducer: Producer { - override func subscribe(_ observer: O) -> Disposable where O.E == Element { - observer.on(.completed) - return Disposables.create() - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Enumerated.swift b/Pods/RxSwift/RxSwift/Observables/Enumerated.swift deleted file mode 100644 index fdf326e..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Enumerated.swift +++ /dev/null @@ -1,62 +0,0 @@ -// -// Enumerated.swift -// RxSwift -// -// Created by Krunoslav Zaher on 8/6/17. -// Copyright © 2017 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Enumerates the elements of an observable sequence. - - - seealso: [map operator on reactivex.io](http://reactivex.io/documentation/operators/map.html) - - - returns: An observable sequence that contains tuples of source sequence elements and their indexes. - */ - public func enumerated() - -> Observable<(index: Int, element: E)> { - return Enumerated(source: self.asObservable()) - } -} - -final private class EnumeratedSink: Sink, ObserverType where O.E == (index: Int, element: Element) { - typealias E = Element - var index = 0 - - func on(_ event: Event) { - switch event { - case .next(let value): - do { - let nextIndex = try incrementChecked(&self.index) - let next = (index: nextIndex, element: value) - self.forwardOn(.next(next)) - } - catch let e { - self.forwardOn(.error(e)) - self.dispose() - } - case .completed: - self.forwardOn(.completed) - self.dispose() - case .error(let error): - self.forwardOn(.error(error)) - self.dispose() - } - } -} - -final private class Enumerated: Producer<(index: Int, element: Element)> { - private let _source: Observable - - init(source: Observable) { - self._source = source - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == (index: Int, element: Element) { - let sink = EnumeratedSink(observer: observer, cancel: cancel) - let subscription = self._source.subscribe(sink) - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Error.swift b/Pods/RxSwift/RxSwift/Observables/Error.swift deleted file mode 100644 index 026a7ce..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Error.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// Error.swift -// RxSwift -// -// Created by Krunoslav Zaher on 8/30/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - /** - Returns an observable sequence that terminates with an `error`. - - - seealso: [throw operator on reactivex.io](http://reactivex.io/documentation/operators/empty-never-throw.html) - - - returns: The observable sequence that terminates with specified error. - */ - public static func error(_ error: Swift.Error) -> Observable { - return ErrorProducer(error: error) - } -} - -final private class ErrorProducer: Producer { - private let _error: Swift.Error - - init(error: Swift.Error) { - self._error = error - } - - override func subscribe(_ observer: O) -> Disposable where O.E == Element { - observer.on(.error(self._error)) - return Disposables.create() - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Filter.swift b/Pods/RxSwift/RxSwift/Observables/Filter.swift deleted file mode 100644 index d77e890..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Filter.swift +++ /dev/null @@ -1,90 +0,0 @@ -// -// Filter.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/17/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Filters the elements of an observable sequence based on a predicate. - - - seealso: [filter operator on reactivex.io](http://reactivex.io/documentation/operators/filter.html) - - - parameter predicate: A function to test each source element for a condition. - - returns: An observable sequence that contains elements from the input sequence that satisfy the condition. - */ - public func filter(_ predicate: @escaping (E) throws -> Bool) - -> Observable { - return Filter(source: self.asObservable(), predicate: predicate) - } -} - -extension ObservableType { - - /** - Skips elements and completes (or errors) when the observable sequence completes (or errors). Equivalent to filter that always returns false. - - - seealso: [ignoreElements operator on reactivex.io](http://reactivex.io/documentation/operators/ignoreelements.html) - - - returns: An observable sequence that skips all elements of the source sequence. - */ - public func ignoreElements() - -> Completable { - return self.flatMap { _ in - return Observable.empty() - } - .asCompletable() - } -} - -final private class FilterSink: Sink, ObserverType { - typealias Predicate = (Element) throws -> Bool - typealias Element = O.E - - private let _predicate: Predicate - - init(predicate: @escaping Predicate, observer: O, cancel: Cancelable) { - self._predicate = predicate - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - switch event { - case .next(let value): - do { - let satisfies = try self._predicate(value) - if satisfies { - self.forwardOn(.next(value)) - } - } - catch let e { - self.forwardOn(.error(e)) - self.dispose() - } - case .completed, .error: - self.forwardOn(event) - self.dispose() - } - } -} - -final private class Filter: Producer { - typealias Predicate = (Element) throws -> Bool - - private let _source: Observable - private let _predicate: Predicate - - init(source: Observable, predicate: @escaping Predicate) { - self._source = source - self._predicate = predicate - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = FilterSink(predicate: self._predicate, observer: observer, cancel: cancel) - let subscription = self._source.subscribe(sink) - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/First.swift b/Pods/RxSwift/RxSwift/Observables/First.swift deleted file mode 100644 index 29ba8de..0000000 --- a/Pods/RxSwift/RxSwift/Observables/First.swift +++ /dev/null @@ -1,42 +0,0 @@ -// -// First.swift -// RxSwift -// -// Created by Krunoslav Zaher on 7/31/17. -// Copyright © 2017 Krunoslav Zaher. All rights reserved. -// - -fileprivate final class FirstSink : Sink, ObserverType where O.E == Element? { - typealias E = Element - typealias Parent = First - - func on(_ event: Event) { - switch event { - case .next(let value): - self.forwardOn(.next(value)) - self.forwardOn(.completed) - self.dispose() - case .error(let error): - self.forwardOn(.error(error)) - self.dispose() - case .completed: - self.forwardOn(.next(nil)) - self.forwardOn(.completed) - self.dispose() - } - } -} - -final class First: Producer { - fileprivate let _source: Observable - - init(source: Observable) { - self._source = source - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element? { - let sink = FirstSink(observer: observer, cancel: cancel) - let subscription = self._source.subscribe(sink) - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Generate.swift b/Pods/RxSwift/RxSwift/Observables/Generate.swift deleted file mode 100644 index 98635e9..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Generate.swift +++ /dev/null @@ -1,87 +0,0 @@ -// -// Generate.swift -// RxSwift -// -// Created by Krunoslav Zaher on 9/2/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - /** - Generates an observable sequence by running a state-driven loop producing the sequence's elements, using the specified scheduler - to run the loop send out observer messages. - - - seealso: [create operator on reactivex.io](http://reactivex.io/documentation/operators/create.html) - - - parameter initialState: Initial state. - - parameter condition: Condition to terminate generation (upon returning `false`). - - parameter iterate: Iteration step function. - - parameter scheduler: Scheduler on which to run the generator loop. - - returns: The generated sequence. - */ - public static func generate(initialState: E, condition: @escaping (E) throws -> Bool, scheduler: ImmediateSchedulerType = CurrentThreadScheduler.instance, iterate: @escaping (E) throws -> E) -> Observable { - return Generate(initialState: initialState, condition: condition, iterate: iterate, resultSelector: { $0 }, scheduler: scheduler) - } -} - -final private class GenerateSink: Sink { - typealias Parent = Generate - - private let _parent: Parent - - private var _state: S - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - self._state = parent._initialState - super.init(observer: observer, cancel: cancel) - } - - func run() -> Disposable { - return self._parent._scheduler.scheduleRecursive(true) { isFirst, recurse -> Void in - do { - if !isFirst { - self._state = try self._parent._iterate(self._state) - } - - if try self._parent._condition(self._state) { - let result = try self._parent._resultSelector(self._state) - self.forwardOn(.next(result)) - - recurse(false) - } - else { - self.forwardOn(.completed) - self.dispose() - } - } - catch let error { - self.forwardOn(.error(error)) - self.dispose() - } - } - } -} - -final private class Generate: Producer { - fileprivate let _initialState: S - fileprivate let _condition: (S) throws -> Bool - fileprivate let _iterate: (S) throws -> S - fileprivate let _resultSelector: (S) throws -> E - fileprivate let _scheduler: ImmediateSchedulerType - - init(initialState: S, condition: @escaping (S) throws -> Bool, iterate: @escaping (S) throws -> S, resultSelector: @escaping (S) throws -> E, scheduler: ImmediateSchedulerType) { - self._initialState = initialState - self._condition = condition - self._iterate = iterate - self._resultSelector = resultSelector - self._scheduler = scheduler - super.init() - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == E { - let sink = GenerateSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/GroupBy.swift b/Pods/RxSwift/RxSwift/Observables/GroupBy.swift deleted file mode 100644 index adce876..0000000 --- a/Pods/RxSwift/RxSwift/Observables/GroupBy.swift +++ /dev/null @@ -1,134 +0,0 @@ -// -// GroupBy.swift -// RxSwift -// -// Created by Tomi Koskinen on 01/12/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - /* - Groups the elements of an observable sequence according to a specified key selector function. - - - seealso: [groupBy operator on reactivex.io](http://reactivex.io/documentation/operators/groupby.html) - - - parameter keySelector: A function to extract the key for each element. - - returns: A sequence of observable groups, each of which corresponds to a unique key value, containing all elements that share that same key value. - */ - public func groupBy(keySelector: @escaping (E) throws -> K) - -> Observable> { - return GroupBy(source: self.asObservable(), selector: keySelector) - } -} - -final private class GroupedObservableImpl: Observable { - private var _subject: PublishSubject - private var _refCount: RefCountDisposable - - init(subject: PublishSubject, refCount: RefCountDisposable) { - self._subject = subject - self._refCount = refCount - } - - override public func subscribe(_ observer: O) -> Disposable where O.E == E { - let release = self._refCount.retain() - let subscription = self._subject.subscribe(observer) - return Disposables.create(release, subscription) - } -} - - -final private class GroupBySink - : Sink - , ObserverType where O.E == GroupedObservable { - typealias E = Element - typealias ResultType = O.E - typealias Parent = GroupBy - - private let _parent: Parent - private let _subscription = SingleAssignmentDisposable() - private var _refCountDisposable: RefCountDisposable! - private var _groupedSubjectTable: [Key: PublishSubject] - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - self._groupedSubjectTable = [Key: PublishSubject]() - super.init(observer: observer, cancel: cancel) - } - - func run() -> Disposable { - self._refCountDisposable = RefCountDisposable(disposable: self._subscription) - - self._subscription.setDisposable(self._parent._source.subscribe(self)) - - return self._refCountDisposable - } - - private func onGroupEvent(key: Key, value: Element) { - if let writer = self._groupedSubjectTable[key] { - writer.on(.next(value)) - } else { - let writer = PublishSubject() - self._groupedSubjectTable[key] = writer - - let group = GroupedObservable( - key: key, - source: GroupedObservableImpl(subject: writer, refCount: _refCountDisposable) - ) - - self.forwardOn(.next(group)) - writer.on(.next(value)) - } - } - - final func on(_ event: Event) { - switch event { - case let .next(value): - do { - let groupKey = try self._parent._selector(value) - self.onGroupEvent(key: groupKey, value: value) - } - catch let e { - self.error(e) - return - } - case let .error(e): - self.error(e) - case .completed: - self.forwardOnGroups(event: .completed) - self.forwardOn(.completed) - self._subscription.dispose() - self.dispose() - } - } - - final func error(_ error: Swift.Error) { - self.forwardOnGroups(event: .error(error)) - self.forwardOn(.error(error)) - self._subscription.dispose() - self.dispose() - } - - final func forwardOnGroups(event: Event) { - for writer in self._groupedSubjectTable.values { - writer.on(event) - } - } -} - -final private class GroupBy: Producer> { - typealias KeySelector = (Element) throws -> Key - - fileprivate let _source: Observable - fileprivate let _selector: KeySelector - - init(source: Observable, selector: @escaping KeySelector) { - self._source = source - self._selector = selector - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == GroupedObservable { - let sink = GroupBySink(parent: self, observer: observer, cancel: cancel) - return (sink: sink, subscription: sink.run()) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Just.swift b/Pods/RxSwift/RxSwift/Observables/Just.swift deleted file mode 100644 index f4fa0d2..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Just.swift +++ /dev/null @@ -1,87 +0,0 @@ -// -// Just.swift -// RxSwift -// -// Created by Krunoslav Zaher on 8/30/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - /** - Returns an observable sequence that contains a single element. - - - seealso: [just operator on reactivex.io](http://reactivex.io/documentation/operators/just.html) - - - parameter element: Single element in the resulting observable sequence. - - returns: An observable sequence containing the single specified element. - */ - public static func just(_ element: E) -> Observable { - return Just(element: element) - } - - /** - Returns an observable sequence that contains a single element. - - - seealso: [just operator on reactivex.io](http://reactivex.io/documentation/operators/just.html) - - - parameter element: Single element in the resulting observable sequence. - - parameter scheduler: Scheduler to send the single element on. - - returns: An observable sequence containing the single specified element. - */ - public static func just(_ element: E, scheduler: ImmediateSchedulerType) -> Observable { - return JustScheduled(element: element, scheduler: scheduler) - } -} - -final private class JustScheduledSink: Sink { - typealias Parent = JustScheduled - - private let _parent: Parent - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(observer: observer, cancel: cancel) - } - - func run() -> Disposable { - let scheduler = self._parent._scheduler - return scheduler.schedule(self._parent._element) { element in - self.forwardOn(.next(element)) - return scheduler.schedule(()) { _ in - self.forwardOn(.completed) - self.dispose() - return Disposables.create() - } - } - } -} - -final private class JustScheduled: Producer { - fileprivate let _scheduler: ImmediateSchedulerType - fileprivate let _element: Element - - init(element: Element, scheduler: ImmediateSchedulerType) { - self._scheduler = scheduler - self._element = element - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == E { - let sink = JustScheduledSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} - -final private class Just: Producer { - private let _element: Element - - init(element: Element) { - self._element = element - } - - override func subscribe(_ observer: O) -> Disposable where O.E == Element { - observer.on(.next(self._element)) - observer.on(.completed) - return Disposables.create() - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Map.swift b/Pods/RxSwift/RxSwift/Observables/Map.swift deleted file mode 100644 index c19f066..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Map.swift +++ /dev/null @@ -1,108 +0,0 @@ -// -// Map.swift -// RxSwift -// -// Created by Krunoslav Zaher on 3/15/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Projects each element of an observable sequence into a new form. - - - seealso: [map operator on reactivex.io](http://reactivex.io/documentation/operators/map.html) - - - parameter transform: A transform function to apply to each source element. - - returns: An observable sequence whose elements are the result of invoking the transform function on each element of source. - - */ - public func map(_ transform: @escaping (E) throws -> R) - -> Observable { - return self.asObservable().composeMap(transform) - } -} - -final private class MapSink: Sink, ObserverType { - typealias Transform = (SourceType) throws -> ResultType - - typealias ResultType = O.E - typealias Element = SourceType - - private let _transform: Transform - - init(transform: @escaping Transform, observer: O, cancel: Cancelable) { - self._transform = transform - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - switch event { - case .next(let element): - do { - let mappedElement = try self._transform(element) - self.forwardOn(.next(mappedElement)) - } - catch let e { - self.forwardOn(.error(e)) - self.dispose() - } - case .error(let error): - self.forwardOn(.error(error)) - self.dispose() - case .completed: - self.forwardOn(.completed) - self.dispose() - } - } -} - -#if TRACE_RESOURCES - fileprivate var _numberOfMapOperators = AtomicInt(0) - extension Resources { - public static var numberOfMapOperators: Int32 { - return load(&_numberOfMapOperators) - } - } -#endif - -internal func _map(source: Observable, transform: @escaping (Element) throws -> R) -> Observable { - return Map(source: source, transform: transform) -} - -final private class Map: Producer { - typealias Transform = (SourceType) throws -> ResultType - - private let _source: Observable - - private let _transform: Transform - - init(source: Observable, transform: @escaping Transform) { - self._source = source - self._transform = transform - -#if TRACE_RESOURCES - _ = increment(&_numberOfMapOperators) -#endif - } - - override func composeMap(_ selector: @escaping (ResultType) throws -> R) -> Observable { - let originalSelector = self._transform - return Map(source: self._source, transform: { (s: SourceType) throws -> R in - let r: ResultType = try originalSelector(s) - return try selector(r) - }) - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == ResultType { - let sink = MapSink(transform: self._transform, observer: observer, cancel: cancel) - let subscription = self._source.subscribe(sink) - return (sink: sink, subscription: subscription) - } - - #if TRACE_RESOURCES - deinit { - _ = decrement(&_numberOfMapOperators) - } - #endif -} diff --git a/Pods/RxSwift/RxSwift/Observables/Materialize.swift b/Pods/RxSwift/RxSwift/Observables/Materialize.swift deleted file mode 100644 index 1a5e2f5..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Materialize.swift +++ /dev/null @@ -1,44 +0,0 @@ -// -// Materialize.swift -// RxSwift -// -// Created by sergdort on 08/03/2017. -// Copyright © 2017 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - /** - Convert any Observable into an Observable of its events. - - seealso: [materialize operator on reactivex.io](http://reactivex.io/documentation/operators/materialize-dematerialize.html) - - returns: An observable sequence that wraps events in an Event. The returned Observable never errors, but it does complete after observing all of the events of the underlying Observable. - */ - public func materialize() -> Observable> { - return Materialize(source: self.asObservable()) - } -} - -fileprivate final class MaterializeSink: Sink, ObserverType where O.E == Event { - - func on(_ event: Event) { - self.forwardOn(.next(event)) - if event.isStopEvent { - self.forwardOn(.completed) - self.dispose() - } - } -} - -final private class Materialize: Producer> { - private let _source: Observable - - init(source: Observable) { - self._source = source - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == E { - let sink = MaterializeSink(observer: observer, cancel: cancel) - let subscription = self._source.subscribe(sink) - - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Merge.swift b/Pods/RxSwift/RxSwift/Observables/Merge.swift deleted file mode 100644 index 0bc0a38..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Merge.swift +++ /dev/null @@ -1,598 +0,0 @@ -// -// Merge.swift -// RxSwift -// -// Created by Krunoslav Zaher on 3/28/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Projects each element of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence. - - - seealso: [flatMap operator on reactivex.io](http://reactivex.io/documentation/operators/flatmap.html) - - - parameter selector: A transform function to apply to each element. - - returns: An observable sequence whose elements are the result of invoking the one-to-many transform function on each element of the input sequence. - */ - public func flatMap(_ selector: @escaping (E) throws -> O) - -> Observable { - return FlatMap(source: self.asObservable(), selector: selector) - } - -} - -extension ObservableType { - - /** - Projects each element of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence. - If element is received while there is some projected observable sequence being merged it will simply be ignored. - - - seealso: [flatMapFirst operator on reactivex.io](http://reactivex.io/documentation/operators/flatmap.html) - - - parameter selector: A transform function to apply to element that was observed while no observable is executing in parallel. - - returns: An observable sequence whose elements are the result of invoking the one-to-many transform function on each element of the input sequence that was received while no other sequence was being calculated. - */ - public func flatMapFirst(_ selector: @escaping (E) throws -> O) - -> Observable { - return FlatMapFirst(source: self.asObservable(), selector: selector) - } -} - -extension ObservableType where E : ObservableConvertibleType { - - /** - Merges elements from all observable sequences in the given enumerable sequence into a single observable sequence. - - - seealso: [merge operator on reactivex.io](http://reactivex.io/documentation/operators/merge.html) - - - returns: The observable sequence that merges the elements of the observable sequences. - */ - public func merge() -> Observable { - return Merge(source: self.asObservable()) - } - - /** - Merges elements from all inner observable sequences into a single observable sequence, limiting the number of concurrent subscriptions to inner sequences. - - - seealso: [merge operator on reactivex.io](http://reactivex.io/documentation/operators/merge.html) - - - parameter maxConcurrent: Maximum number of inner observable sequences being subscribed to concurrently. - - returns: The observable sequence that merges the elements of the inner sequences. - */ - public func merge(maxConcurrent: Int) - -> Observable { - return MergeLimited(source: self.asObservable(), maxConcurrent: maxConcurrent) - } -} - -extension ObservableType where E : ObservableConvertibleType { - - /** - Concatenates all inner observable sequences, as long as the previous observable sequence terminated successfully. - - - seealso: [concat operator on reactivex.io](http://reactivex.io/documentation/operators/concat.html) - - - returns: An observable sequence that contains the elements of each observed inner sequence, in sequential order. - */ - public func concat() -> Observable { - return self.merge(maxConcurrent: 1) - } -} - -extension ObservableType { - /** - Merges elements from all observable sequences from collection into a single observable sequence. - - - seealso: [merge operator on reactivex.io](http://reactivex.io/documentation/operators/merge.html) - - - parameter sources: Collection of observable sequences to merge. - - returns: The observable sequence that merges the elements of the observable sequences. - */ - public static func merge(_ sources: C) -> Observable where C.Iterator.Element == Observable { - return MergeArray(sources: Array(sources)) - } - - /** - Merges elements from all observable sequences from array into a single observable sequence. - - - seealso: [merge operator on reactivex.io](http://reactivex.io/documentation/operators/merge.html) - - - parameter sources: Array of observable sequences to merge. - - returns: The observable sequence that merges the elements of the observable sequences. - */ - public static func merge(_ sources: [Observable]) -> Observable { - return MergeArray(sources: sources) - } - - /** - Merges elements from all observable sequences into a single observable sequence. - - - seealso: [merge operator on reactivex.io](http://reactivex.io/documentation/operators/merge.html) - - - parameter sources: Collection of observable sequences to merge. - - returns: The observable sequence that merges the elements of the observable sequences. - */ - public static func merge(_ sources: Observable...) -> Observable { - return MergeArray(sources: sources) - } -} - -// MARK: concatMap - -extension ObservableType { - /** - Projects each element of an observable sequence to an observable sequence and concatenates the resulting observable sequences into one observable sequence. - - - seealso: [concat operator on reactivex.io](http://reactivex.io/documentation/operators/concat.html) - - - returns: An observable sequence that contains the elements of each observed inner sequence, in sequential order. - */ - - public func concatMap(_ selector: @escaping (E) throws -> O) - -> Observable { - return ConcatMap(source: self.asObservable(), selector: selector) - } -} - -fileprivate final class MergeLimitedSinkIter - : ObserverType - , LockOwnerType - , SynchronizedOnType where SourceSequence.E == Observer.E { - typealias E = Observer.E - typealias DisposeKey = CompositeDisposable.DisposeKey - typealias Parent = MergeLimitedSink - - private let _parent: Parent - private let _disposeKey: DisposeKey - - var _lock: RecursiveLock { - return self._parent._lock - } - - init(parent: Parent, disposeKey: DisposeKey) { - self._parent = parent - self._disposeKey = disposeKey - } - - func on(_ event: Event) { - self.synchronizedOn(event) - } - - func _synchronized_on(_ event: Event) { - switch event { - case .next: - self._parent.forwardOn(event) - case .error: - self._parent.forwardOn(event) - self._parent.dispose() - case .completed: - self._parent._group.remove(for: self._disposeKey) - if let next = self._parent._queue.dequeue() { - self._parent.subscribe(next, group: self._parent._group) - } - else { - self._parent._activeCount -= 1 - - if self._parent._stopped && self._parent._activeCount == 0 { - self._parent.forwardOn(.completed) - self._parent.dispose() - } - } - } - } -} - -fileprivate final class ConcatMapSink: MergeLimitedSink where Observer.E == SourceSequence.E { - typealias Selector = (SourceElement) throws -> SourceSequence - - private let _selector: Selector - - init(selector: @escaping Selector, observer: Observer, cancel: Cancelable) { - self._selector = selector - super.init(maxConcurrent: 1, observer: observer, cancel: cancel) - } - - override func performMap(_ element: SourceElement) throws -> SourceSequence { - return try self._selector(element) - } -} - -fileprivate final class MergeLimitedBasicSink: MergeLimitedSink where Observer.E == SourceSequence.E { - - override func performMap(_ element: SourceSequence) throws -> SourceSequence { - return element - } -} - -private class MergeLimitedSink - : Sink - , ObserverType where Observer.E == SourceSequence.E { - typealias QueueType = Queue - - let _maxConcurrent: Int - - let _lock = RecursiveLock() - - // state - var _stopped = false - var _activeCount = 0 - var _queue = QueueType(capacity: 2) - - let _sourceSubscription = SingleAssignmentDisposable() - let _group = CompositeDisposable() - - init(maxConcurrent: Int, observer: Observer, cancel: Cancelable) { - self._maxConcurrent = maxConcurrent - super.init(observer: observer, cancel: cancel) - } - - func run(_ source: Observable) -> Disposable { - _ = self._group.insert(self._sourceSubscription) - - let disposable = source.subscribe(self) - self._sourceSubscription.setDisposable(disposable) - return self._group - } - - func subscribe(_ innerSource: SourceSequence, group: CompositeDisposable) { - let subscription = SingleAssignmentDisposable() - - let key = group.insert(subscription) - - if let key = key { - let observer = MergeLimitedSinkIter(parent: self, disposeKey: key) - - let disposable = innerSource.asObservable().subscribe(observer) - subscription.setDisposable(disposable) - } - } - - func performMap(_ element: SourceElement) throws -> SourceSequence { - rxAbstractMethod() - } - - @inline(__always) - final private func nextElementArrived(element: SourceElement) -> SourceSequence? { - self._lock.lock(); defer { self._lock.unlock() } // { - let subscribe: Bool - if self._activeCount < self._maxConcurrent { - self._activeCount += 1 - subscribe = true - } - else { - do { - let value = try self.performMap(element) - self._queue.enqueue(value) - } catch { - self.forwardOn(.error(error)) - self.dispose() - } - subscribe = false - } - - if subscribe { - do { - return try self.performMap(element) - } catch { - self.forwardOn(.error(error)) - self.dispose() - } - } - - return nil - // } - } - - func on(_ event: Event) { - switch event { - case .next(let element): - if let sequence = self.nextElementArrived(element: element) { - self.subscribe(sequence, group: self._group) - } - case .error(let error): - self._lock.lock(); defer { self._lock.unlock() } - - self.forwardOn(.error(error)) - self.dispose() - case .completed: - self._lock.lock(); defer { self._lock.unlock() } - - if self._activeCount == 0 { - self.forwardOn(.completed) - self.dispose() - } - else { - self._sourceSubscription.dispose() - } - - self._stopped = true - } - } -} - -final private class MergeLimited: Producer { - private let _source: Observable - private let _maxConcurrent: Int - - init(source: Observable, maxConcurrent: Int) { - self._source = source - self._maxConcurrent = maxConcurrent - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == SourceSequence.E { - let sink = MergeLimitedBasicSink(maxConcurrent: self._maxConcurrent, observer: observer, cancel: cancel) - let subscription = sink.run(self._source) - return (sink: sink, subscription: subscription) - } -} - -// MARK: Merge - -fileprivate final class MergeBasicSink : MergeSink where O.E == S.E { - override func performMap(_ element: S) throws -> S { - return element - } -} - -// MARK: flatMap - -fileprivate final class FlatMapSink : MergeSink where Observer.E == SourceSequence.E { - typealias Selector = (SourceElement) throws -> SourceSequence - - private let _selector: Selector - - init(selector: @escaping Selector, observer: Observer, cancel: Cancelable) { - self._selector = selector - super.init(observer: observer, cancel: cancel) - } - - override func performMap(_ element: SourceElement) throws -> SourceSequence { - return try self._selector(element) - } -} - -// MARK: FlatMapFirst - -fileprivate final class FlatMapFirstSink : MergeSink where Observer.E == SourceSequence.E { - typealias Selector = (SourceElement) throws -> SourceSequence - - private let _selector: Selector - - override var subscribeNext: Bool { - return self._activeCount == 0 - } - - init(selector: @escaping Selector, observer: Observer, cancel: Cancelable) { - self._selector = selector - super.init(observer: observer, cancel: cancel) - } - - override func performMap(_ element: SourceElement) throws -> SourceSequence { - return try self._selector(element) - } -} - -fileprivate final class MergeSinkIter : ObserverType where Observer.E == SourceSequence.E { - typealias Parent = MergeSink - typealias DisposeKey = CompositeDisposable.DisposeKey - typealias E = Observer.E - - private let _parent: Parent - private let _disposeKey: DisposeKey - - init(parent: Parent, disposeKey: DisposeKey) { - self._parent = parent - self._disposeKey = disposeKey - } - - func on(_ event: Event) { - self._parent._lock.lock(); defer { self._parent._lock.unlock() } // lock { - switch event { - case .next(let value): - self._parent.forwardOn(.next(value)) - case .error(let error): - self._parent.forwardOn(.error(error)) - self._parent.dispose() - case .completed: - self._parent._group.remove(for: self._disposeKey) - self._parent._activeCount -= 1 - self._parent.checkCompleted() - } - // } - } -} - - -private class MergeSink - : Sink - , ObserverType where Observer.E == SourceSequence.E { - typealias ResultType = Observer.E - typealias Element = SourceElement - - let _lock = RecursiveLock() - - var subscribeNext: Bool { - return true - } - - // state - let _group = CompositeDisposable() - let _sourceSubscription = SingleAssignmentDisposable() - - var _activeCount = 0 - var _stopped = false - - override init(observer: Observer, cancel: Cancelable) { - super.init(observer: observer, cancel: cancel) - } - - func performMap(_ element: SourceElement) throws -> SourceSequence { - rxAbstractMethod() - } - - @inline(__always) - final private func nextElementArrived(element: SourceElement) -> SourceSequence? { - self._lock.lock(); defer { self._lock.unlock() } // { - if !self.subscribeNext { - return nil - } - - do { - let value = try self.performMap(element) - self._activeCount += 1 - return value - } - catch let e { - self.forwardOn(.error(e)) - self.dispose() - return nil - } - // } - } - - func on(_ event: Event) { - switch event { - case .next(let element): - if let value = self.nextElementArrived(element: element) { - self.subscribeInner(value.asObservable()) - } - case .error(let error): - self._lock.lock(); defer { self._lock.unlock() } - self.forwardOn(.error(error)) - self.dispose() - case .completed: - self._lock.lock(); defer { self._lock.unlock() } - self._stopped = true - self._sourceSubscription.dispose() - self.checkCompleted() - } - } - - func subscribeInner(_ source: Observable) { - let iterDisposable = SingleAssignmentDisposable() - if let disposeKey = self._group.insert(iterDisposable) { - let iter = MergeSinkIter(parent: self, disposeKey: disposeKey) - let subscription = source.subscribe(iter) - iterDisposable.setDisposable(subscription) - } - } - - func run(_ sources: [Observable]) -> Disposable { - self._activeCount += sources.count - - for source in sources { - self.subscribeInner(source) - } - - self._stopped = true - - self.checkCompleted() - - return self._group - } - - @inline(__always) - func checkCompleted() { - if self._stopped && self._activeCount == 0 { - self.forwardOn(.completed) - self.dispose() - } - } - - func run(_ source: Observable) -> Disposable { - _ = self._group.insert(self._sourceSubscription) - - let subscription = source.subscribe(self) - self._sourceSubscription.setDisposable(subscription) - - return self._group - } -} - -// MARK: Producers - -final private class FlatMap: Producer { - typealias Selector = (SourceElement) throws -> SourceSequence - - private let _source: Observable - - private let _selector: Selector - - init(source: Observable, selector: @escaping Selector) { - self._source = source - self._selector = selector - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == SourceSequence.E { - let sink = FlatMapSink(selector: self._selector, observer: observer, cancel: cancel) - let subscription = sink.run(self._source) - return (sink: sink, subscription: subscription) - } -} - -final private class FlatMapFirst: Producer { - typealias Selector = (SourceElement) throws -> SourceSequence - - private let _source: Observable - - private let _selector: Selector - - init(source: Observable, selector: @escaping Selector) { - self._source = source - self._selector = selector - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == SourceSequence.E { - let sink = FlatMapFirstSink(selector: self._selector, observer: observer, cancel: cancel) - let subscription = sink.run(self._source) - return (sink: sink, subscription: subscription) - } -} - -final class ConcatMap: Producer { - typealias Selector = (SourceElement) throws -> SourceSequence - - private let _source: Observable - private let _selector: Selector - - init(source: Observable, selector: @escaping Selector) { - self._source = source - self._selector = selector - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == SourceSequence.E { - let sink = ConcatMapSink(selector: self._selector, observer: observer, cancel: cancel) - let subscription = sink.run(self._source) - return (sink: sink, subscription: subscription) - } -} - -final class Merge : Producer { - private let _source: Observable - - init(source: Observable) { - self._source = source - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == SourceSequence.E { - let sink = MergeBasicSink(observer: observer, cancel: cancel) - let subscription = sink.run(self._source) - return (sink: sink, subscription: subscription) - } -} - -final private class MergeArray: Producer { - private let _sources: [Observable] - - init(sources: [Observable]) { - self._sources = sources - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == E { - let sink = MergeBasicSink, O>(observer: observer, cancel: cancel) - let subscription = sink.run(self._sources) - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Multicast.swift b/Pods/RxSwift/RxSwift/Observables/Multicast.swift deleted file mode 100644 index a274377..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Multicast.swift +++ /dev/null @@ -1,408 +0,0 @@ -// -// Multicast.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/27/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/** - Represents an observable wrapper that can be connected and disconnected from its underlying observable sequence. - */ -public class ConnectableObservable - : Observable - , ConnectableObservableType { - - /** - Connects the observable wrapper to its source. All subscribed observers will receive values from the underlying observable sequence as long as the connection is established. - - - returns: Disposable used to disconnect the observable wrapper from its source, causing subscribed observer to stop receiving values from the underlying observable sequence. - */ - public func connect() -> Disposable { - rxAbstractMethod() - } -} - -extension ObservableType { - - /** - Multicasts the source sequence notifications through an instantiated subject into all uses of the sequence within a selector function. - - Each subscription to the resulting sequence causes a separate multicast invocation, exposing the sequence resulting from the selector function's invocation. - - For specializations with fixed subject types, see `publish` and `replay`. - - - seealso: [multicast operator on reactivex.io](http://reactivex.io/documentation/operators/publish.html) - - - parameter subjectSelector: Factory function to create an intermediate subject through which the source sequence's elements will be multicast to the selector function. - - parameter selector: Selector function which can use the multicasted source sequence subject to the policies enforced by the created subject. - - returns: An observable sequence that contains the elements of a sequence produced by multicasting the source sequence within a selector function. - */ - public func multicast(_ subjectSelector: @escaping () throws -> S, selector: @escaping (Observable) throws -> Observable) - -> Observable where S.SubjectObserverType.E == E { - return Multicast( - source: self.asObservable(), - subjectSelector: subjectSelector, - selector: selector - ) - } -} - -extension ObservableType { - - /** - Returns a connectable observable sequence that shares a single subscription to the underlying sequence. - - This operator is a specialization of `multicast` using a `PublishSubject`. - - - seealso: [publish operator on reactivex.io](http://reactivex.io/documentation/operators/publish.html) - - - returns: A connectable observable sequence that shares a single subscription to the underlying sequence. - */ - public func publish() -> ConnectableObservable { - return self.multicast { PublishSubject() } - } -} - -extension ObservableType { - - /** - Returns a connectable observable sequence that shares a single subscription to the underlying sequence replaying bufferSize elements. - - This operator is a specialization of `multicast` using a `ReplaySubject`. - - - seealso: [replay operator on reactivex.io](http://reactivex.io/documentation/operators/replay.html) - - - parameter bufferSize: Maximum element count of the replay buffer. - - returns: A connectable observable sequence that shares a single subscription to the underlying sequence. - */ - public func replay(_ bufferSize: Int) - -> ConnectableObservable { - return self.multicast { ReplaySubject.create(bufferSize: bufferSize) } - } - - /** - Returns a connectable observable sequence that shares a single subscription to the underlying sequence replaying all elements. - - This operator is a specialization of `multicast` using a `ReplaySubject`. - - - seealso: [replay operator on reactivex.io](http://reactivex.io/documentation/operators/replay.html) - - - returns: A connectable observable sequence that shares a single subscription to the underlying sequence. - */ - public func replayAll() - -> ConnectableObservable { - return self.multicast { ReplaySubject.createUnbounded() } - } -} - -extension ConnectableObservableType { - - /** - Returns an observable sequence that stays connected to the source as long as there is at least one subscription to the observable sequence. - - - seealso: [refCount operator on reactivex.io](http://reactivex.io/documentation/operators/refcount.html) - - - returns: An observable sequence that stays connected to the source as long as there is at least one subscription to the observable sequence. - */ - public func refCount() -> Observable { - return RefCount(source: self) - } -} - -extension ObservableType { - - /** - Multicasts the source sequence notifications through the specified subject to the resulting connectable observable. - - Upon connection of the connectable observable, the subject is subscribed to the source exactly one, and messages are forwarded to the observers registered with the connectable observable. - - For specializations with fixed subject types, see `publish` and `replay`. - - - seealso: [multicast operator on reactivex.io](http://reactivex.io/documentation/operators/publish.html) - - - parameter subject: Subject to push source elements into. - - returns: A connectable observable sequence that upon connection causes the source sequence to push results into the specified subject. - */ - public func multicast(_ subject: S) - -> ConnectableObservable where S.SubjectObserverType.E == E { - return ConnectableObservableAdapter(source: self.asObservable(), makeSubject: { subject }) - } - - /** - Multicasts the source sequence notifications through an instantiated subject to the resulting connectable observable. - - Upon connection of the connectable observable, the subject is subscribed to the source exactly one, and messages are forwarded to the observers registered with the connectable observable. - - Subject is cleared on connection disposal or in case source sequence produces terminal event. - - - seealso: [multicast operator on reactivex.io](http://reactivex.io/documentation/operators/publish.html) - - - parameter makeSubject: Factory function used to instantiate a subject for each connection. - - returns: A connectable observable sequence that upon connection causes the source sequence to push results into the specified subject. - */ - public func multicast(makeSubject: @escaping () -> S) - -> ConnectableObservable where S.SubjectObserverType.E == E { - return ConnectableObservableAdapter(source: self.asObservable(), makeSubject: makeSubject) - } -} - -final private class Connection: ObserverType, Disposable { - typealias E = S.SubjectObserverType.E - - private var _lock: RecursiveLock - // state - private var _parent: ConnectableObservableAdapter? - private var _subscription : Disposable? - private var _subjectObserver: S.SubjectObserverType - - private var _disposed = AtomicInt(0) - - init(parent: ConnectableObservableAdapter, subjectObserver: S.SubjectObserverType, lock: RecursiveLock, subscription: Disposable) { - self._parent = parent - self._subscription = subscription - self._lock = lock - self._subjectObserver = subjectObserver - } - - func on(_ event: Event) { - if isFlagSet(&self._disposed, 1) { - return - } - if event.isStopEvent { - self.dispose() - } - self._subjectObserver.on(event) - } - - func dispose() { - _lock.lock(); defer { _lock.unlock() } // { - fetchOr(&self._disposed, 1) - guard let parent = _parent else { - return - } - - if parent._connection === self { - parent._connection = nil - parent._subject = nil - } - self._parent = nil - - self._subscription?.dispose() - self._subscription = nil - // } - } -} - -final private class ConnectableObservableAdapter - : ConnectableObservable { - typealias ConnectionType = Connection - - fileprivate let _source: Observable - fileprivate let _makeSubject: () -> S - - fileprivate let _lock = RecursiveLock() - fileprivate var _subject: S? - - // state - fileprivate var _connection: ConnectionType? - - init(source: Observable, makeSubject: @escaping () -> S) { - self._source = source - self._makeSubject = makeSubject - self._subject = nil - self._connection = nil - } - - override func connect() -> Disposable { - return self._lock.calculateLocked { - if let connection = self._connection { - return connection - } - - let singleAssignmentDisposable = SingleAssignmentDisposable() - let connection = Connection(parent: self, subjectObserver: self.lazySubject.asObserver(), lock: self._lock, subscription: singleAssignmentDisposable) - self._connection = connection - let subscription = self._source.subscribe(connection) - singleAssignmentDisposable.setDisposable(subscription) - return connection - } - } - - fileprivate var lazySubject: S { - if let subject = self._subject { - return subject - } - - let subject = self._makeSubject() - self._subject = subject - return subject - } - - override func subscribe(_ observer: O) -> Disposable where O.E == S.E { - return self.lazySubject.subscribe(observer) - } -} - -final private class RefCountSink - : Sink - , ObserverType where CO.E == O.E { - typealias Element = O.E - typealias Parent = RefCount - - private let _parent: Parent - - private var _connectionIdSnapshot: Int64 = -1 - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(observer: observer, cancel: cancel) - } - - func run() -> Disposable { - let subscription = self._parent._source.subscribe(self) - self._parent._lock.lock(); defer { self._parent._lock.unlock() } // { - - self._connectionIdSnapshot = self._parent._connectionId - - if self.disposed { - return Disposables.create() - } - - if self._parent._count == 0 { - self._parent._count = 1 - self._parent._connectableSubscription = self._parent._source.connect() - } - else { - self._parent._count += 1 - } - // } - - return Disposables.create { - subscription.dispose() - self._parent._lock.lock(); defer { self._parent._lock.unlock() } // { - if self._parent._connectionId != self._connectionIdSnapshot { - return - } - if self._parent._count == 1 { - self._parent._count = 0 - guard let connectableSubscription = self._parent._connectableSubscription else { - return - } - - connectableSubscription.dispose() - self._parent._connectableSubscription = nil - } - else if self._parent._count > 1 { - self._parent._count -= 1 - } - else { - rxFatalError("Something went wrong with RefCount disposing mechanism") - } - // } - } - } - - func on(_ event: Event) { - switch event { - case .next: - self.forwardOn(event) - case .error, .completed: - self._parent._lock.lock() // { - if self._parent._connectionId == self._connectionIdSnapshot { - let connection = self._parent._connectableSubscription - defer { connection?.dispose() } - self._parent._count = 0 - self._parent._connectionId = self._parent._connectionId &+ 1 - self._parent._connectableSubscription = nil - } - // } - self._parent._lock.unlock() - self.forwardOn(event) - self.dispose() - } - } -} - -final private class RefCount: Producer { - fileprivate let _lock = RecursiveLock() - - // state - fileprivate var _count = 0 - fileprivate var _connectionId: Int64 = 0 - fileprivate var _connectableSubscription = nil as Disposable? - - fileprivate let _source: CO - - init(source: CO) { - self._source = source - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == CO.E { - let sink = RefCountSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} - -final private class MulticastSink: Sink, ObserverType { - typealias Element = O.E - typealias ResultType = Element - typealias MutlicastType = Multicast - - private let _parent: MutlicastType - - init(parent: MutlicastType, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(observer: observer, cancel: cancel) - } - - func run() -> Disposable { - do { - let subject = try self._parent._subjectSelector() - let connectable = ConnectableObservableAdapter(source: self._parent._source, makeSubject: { subject }) - - let observable = try self._parent._selector(connectable) - - let subscription = observable.subscribe(self) - let connection = connectable.connect() - - return Disposables.create(subscription, connection) - } - catch let e { - self.forwardOn(.error(e)) - self.dispose() - return Disposables.create() - } - } - - func on(_ event: Event) { - self.forwardOn(event) - switch event { - case .next: break - case .error, .completed: - self.dispose() - } - } -} - -final private class Multicast: Producer { - typealias SubjectSelectorType = () throws -> S - typealias SelectorType = (Observable) throws -> Observable - - fileprivate let _source: Observable - fileprivate let _subjectSelector: SubjectSelectorType - fileprivate let _selector: SelectorType - - init(source: Observable, subjectSelector: @escaping SubjectSelectorType, selector: @escaping SelectorType) { - self._source = source - self._subjectSelector = subjectSelector - self._selector = selector - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == R { - let sink = MulticastSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Never.swift b/Pods/RxSwift/RxSwift/Observables/Never.swift deleted file mode 100644 index 51aa3f0..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Never.swift +++ /dev/null @@ -1,27 +0,0 @@ -// -// Never.swift -// RxSwift -// -// Created by Krunoslav Zaher on 8/30/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Returns a non-terminating observable sequence, which can be used to denote an infinite duration. - - - seealso: [never operator on reactivex.io](http://reactivex.io/documentation/operators/empty-never-throw.html) - - - returns: An observable sequence whose observers will never get called. - */ - public static func never() -> Observable { - return NeverProducer() - } -} - -final private class NeverProducer: Producer { - override func subscribe(_ observer: O) -> Disposable where O.E == Element { - return Disposables.create() - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift b/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift deleted file mode 100644 index 5d169a6..0000000 --- a/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift +++ /dev/null @@ -1,231 +0,0 @@ -// -// ObserveOn.swift -// RxSwift -// -// Created by Krunoslav Zaher on 7/25/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Wraps the source sequence in order to run its observer callbacks on the specified scheduler. - - This only invokes observer callbacks on a `scheduler`. In case the subscription and/or unsubscription - actions have side-effects that require to be run on a scheduler, use `subscribeOn`. - - - seealso: [observeOn operator on reactivex.io](http://reactivex.io/documentation/operators/observeon.html) - - - parameter scheduler: Scheduler to notify observers on. - - returns: The source sequence whose observations happen on the specified scheduler. - */ - public func observeOn(_ scheduler: ImmediateSchedulerType) - -> Observable { - if let scheduler = scheduler as? SerialDispatchQueueScheduler { - return ObserveOnSerialDispatchQueue(source: self.asObservable(), scheduler: scheduler) - } - else { - return ObserveOn(source: self.asObservable(), scheduler: scheduler) - } - } -} - -final private class ObserveOn: Producer { - let scheduler: ImmediateSchedulerType - let source: Observable - - init(source: Observable, scheduler: ImmediateSchedulerType) { - self.scheduler = scheduler - self.source = source - -#if TRACE_RESOURCES - _ = Resources.incrementTotal() -#endif - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == E { - let sink = ObserveOnSink(scheduler: self.scheduler, observer: observer, cancel: cancel) - let subscription = self.source.subscribe(sink) - return (sink: sink, subscription: subscription) - } - -#if TRACE_RESOURCES - deinit { - _ = Resources.decrementTotal() - } -#endif -} - -enum ObserveOnState : Int32 { - // pump is not running - case stopped = 0 - // pump is running - case running = 1 -} - -final private class ObserveOnSink: ObserverBase { - typealias E = O.E - - let _scheduler: ImmediateSchedulerType - - var _lock = SpinLock() - let _observer: O - - // state - var _state = ObserveOnState.stopped - var _queue = Queue>(capacity: 10) - - let _scheduleDisposable = SerialDisposable() - let _cancel: Cancelable - - init(scheduler: ImmediateSchedulerType, observer: O, cancel: Cancelable) { - self._scheduler = scheduler - self._observer = observer - self._cancel = cancel - } - - override func onCore(_ event: Event) { - let shouldStart = self._lock.calculateLocked { () -> Bool in - self._queue.enqueue(event) - - switch self._state { - case .stopped: - self._state = .running - return true - case .running: - return false - } - } - - if shouldStart { - self._scheduleDisposable.disposable = self._scheduler.scheduleRecursive((), action: self.run) - } - } - - func run(_ state: (), _ recurse: (()) -> Void) { - let (nextEvent, observer) = self._lock.calculateLocked { () -> (Event?, O) in - if !self._queue.isEmpty { - return (self._queue.dequeue(), self._observer) - } - else { - self._state = .stopped - return (nil, self._observer) - } - } - - if let nextEvent = nextEvent, !self._cancel.isDisposed { - observer.on(nextEvent) - if nextEvent.isStopEvent { - self.dispose() - } - } - else { - return - } - - let shouldContinue = self._shouldContinue_synchronized() - - if shouldContinue { - recurse(()) - } - } - - func _shouldContinue_synchronized() -> Bool { - self._lock.lock(); defer { self._lock.unlock() } // { - if !self._queue.isEmpty { - return true - } - else { - self._state = .stopped - return false - } - // } - } - - override func dispose() { - super.dispose() - - self._cancel.dispose() - self._scheduleDisposable.dispose() - } -} - -#if TRACE_RESOURCES - fileprivate var _numberOfSerialDispatchQueueObservables = AtomicInt(0) - extension Resources { - /** - Counts number of `SerialDispatchQueueObservables`. - - Purposed for unit tests. - */ - public static var numberOfSerialDispatchQueueObservables: Int32 { - return load(&_numberOfSerialDispatchQueueObservables) - } - } -#endif - -final private class ObserveOnSerialDispatchQueueSink: ObserverBase { - let scheduler: SerialDispatchQueueScheduler - let observer: O - - let cancel: Cancelable - - var cachedScheduleLambda: (((sink: ObserveOnSerialDispatchQueueSink, event: Event)) -> Disposable)! - - init(scheduler: SerialDispatchQueueScheduler, observer: O, cancel: Cancelable) { - self.scheduler = scheduler - self.observer = observer - self.cancel = cancel - super.init() - - self.cachedScheduleLambda = { pair in - guard !cancel.isDisposed else { return Disposables.create() } - - pair.sink.observer.on(pair.event) - - if pair.event.isStopEvent { - pair.sink.dispose() - } - - return Disposables.create() - } - } - - override func onCore(_ event: Event) { - _ = self.scheduler.schedule((self, event), action: self.cachedScheduleLambda!) - } - - override func dispose() { - super.dispose() - - self.cancel.dispose() - } -} - -final private class ObserveOnSerialDispatchQueue: Producer { - let scheduler: SerialDispatchQueueScheduler - let source: Observable - - init(source: Observable, scheduler: SerialDispatchQueueScheduler) { - self.scheduler = scheduler - self.source = source - - #if TRACE_RESOURCES - _ = Resources.incrementTotal() - _ = increment(&_numberOfSerialDispatchQueueObservables) - #endif - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == E { - let sink = ObserveOnSerialDispatchQueueSink(scheduler: self.scheduler, observer: observer, cancel: cancel) - let subscription = self.source.subscribe(sink) - return (sink: sink, subscription: subscription) - } - - #if TRACE_RESOURCES - deinit { - _ = Resources.decrementTotal() - _ = decrement(&_numberOfSerialDispatchQueueObservables) - } - #endif -} diff --git a/Pods/RxSwift/RxSwift/Observables/Optional.swift b/Pods/RxSwift/RxSwift/Observables/Optional.swift deleted file mode 100644 index 43fede5..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Optional.swift +++ /dev/null @@ -1,95 +0,0 @@ -// -// Optional.swift -// RxSwift -// -// Created by tarunon on 2016/12/13. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - /** - Converts a optional to an observable sequence. - - - seealso: [from operator on reactivex.io](http://reactivex.io/documentation/operators/from.html) - - - parameter optional: Optional element in the resulting observable sequence. - - returns: An observable sequence containing the wrapped value or not from given optional. - */ - public static func from(optional: E?) -> Observable { - return ObservableOptional(optional: optional) - } - - /** - Converts a optional to an observable sequence. - - - seealso: [from operator on reactivex.io](http://reactivex.io/documentation/operators/from.html) - - - parameter optional: Optional element in the resulting observable sequence. - - parameter scheduler: Scheduler to send the optional element on. - - returns: An observable sequence containing the wrapped value or not from given optional. - */ - public static func from(optional: E?, scheduler: ImmediateSchedulerType) -> Observable { - return ObservableOptionalScheduled(optional: optional, scheduler: scheduler) - } -} - -final private class ObservableOptionalScheduledSink: Sink { - typealias E = O.E - typealias Parent = ObservableOptionalScheduled - - private let _parent: Parent - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(observer: observer, cancel: cancel) - } - - func run() -> Disposable { - return self._parent._scheduler.schedule(self._parent._optional) { (optional: E?) -> Disposable in - if let next = optional { - self.forwardOn(.next(next)) - return self._parent._scheduler.schedule(()) { _ in - self.forwardOn(.completed) - self.dispose() - return Disposables.create() - } - } else { - self.forwardOn(.completed) - self.dispose() - return Disposables.create() - } - } - } -} - -final private class ObservableOptionalScheduled: Producer { - fileprivate let _optional: E? - fileprivate let _scheduler: ImmediateSchedulerType - - init(optional: E?, scheduler: ImmediateSchedulerType) { - self._optional = optional - self._scheduler = scheduler - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == E { - let sink = ObservableOptionalScheduledSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} - -final private class ObservableOptional: Producer { - private let _optional: E? - - init(optional: E?) { - self._optional = optional - } - - override func subscribe(_ observer: O) -> Disposable where O.E == E { - if let element = self._optional { - observer.on(.next(element)) - } - observer.on(.completed) - return Disposables.create() - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Producer.swift b/Pods/RxSwift/RxSwift/Observables/Producer.swift deleted file mode 100644 index c6521b1..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Producer.swift +++ /dev/null @@ -1,92 +0,0 @@ -// -// Producer.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/20/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -class Producer : Observable { - override init() { - super.init() - } - - override func subscribe(_ observer: O) -> Disposable where O.E == Element { - if !CurrentThreadScheduler.isScheduleRequired { - // The returned disposable needs to release all references once it was disposed. - let disposer = SinkDisposer() - let sinkAndSubscription = self.run(observer, cancel: disposer) - disposer.setSinkAndSubscription(sink: sinkAndSubscription.sink, subscription: sinkAndSubscription.subscription) - - return disposer - } - else { - return CurrentThreadScheduler.instance.schedule(()) { _ in - let disposer = SinkDisposer() - let sinkAndSubscription = self.run(observer, cancel: disposer) - disposer.setSinkAndSubscription(sink: sinkAndSubscription.sink, subscription: sinkAndSubscription.subscription) - - return disposer - } - } - } - - func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - rxAbstractMethod() - } -} - -fileprivate final class SinkDisposer: Cancelable { - fileprivate enum DisposeState: Int32 { - case disposed = 1 - case sinkAndSubscriptionSet = 2 - } - - private var _state = AtomicInt(0) - private var _sink: Disposable? - private var _subscription: Disposable? - - var isDisposed: Bool { - return isFlagSet(&self._state, DisposeState.disposed.rawValue) - } - - func setSinkAndSubscription(sink: Disposable, subscription: Disposable) { - self._sink = sink - self._subscription = subscription - - let previousState = fetchOr(&self._state, DisposeState.sinkAndSubscriptionSet.rawValue) - if (previousState & DisposeState.sinkAndSubscriptionSet.rawValue) != 0 { - rxFatalError("Sink and subscription were already set") - } - - if (previousState & DisposeState.disposed.rawValue) != 0 { - sink.dispose() - subscription.dispose() - self._sink = nil - self._subscription = nil - } - } - - func dispose() { - let previousState = fetchOr(&self._state, DisposeState.disposed.rawValue) - - if (previousState & DisposeState.disposed.rawValue) != 0 { - return - } - - if (previousState & DisposeState.sinkAndSubscriptionSet.rawValue) != 0 { - guard let sink = self._sink else { - rxFatalError("Sink not set") - } - guard let subscription = self._subscription else { - rxFatalError("Subscription not set") - } - - sink.dispose() - subscription.dispose() - - self._sink = nil - self._subscription = nil - } - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Range.swift b/Pods/RxSwift/RxSwift/Observables/Range.swift deleted file mode 100644 index 67a4412..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Range.swift +++ /dev/null @@ -1,73 +0,0 @@ -// -// Range.swift -// RxSwift -// -// Created by Krunoslav Zaher on 9/13/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType where E : RxAbstractInteger { - /** - Generates an observable sequence of integral numbers within a specified range, using the specified scheduler to generate and send out observer messages. - - - seealso: [range operator on reactivex.io](http://reactivex.io/documentation/operators/range.html) - - - parameter start: The value of the first integer in the sequence. - - parameter count: The number of sequential integers to generate. - - parameter scheduler: Scheduler to run the generator loop on. - - returns: An observable sequence that contains a range of sequential integral numbers. - */ - public static func range(start: E, count: E, scheduler: ImmediateSchedulerType = CurrentThreadScheduler.instance) -> Observable { - return RangeProducer(start: start, count: count, scheduler: scheduler) - } -} - -final private class RangeProducer: Producer { - fileprivate let _start: E - fileprivate let _count: E - fileprivate let _scheduler: ImmediateSchedulerType - - init(start: E, count: E, scheduler: ImmediateSchedulerType) { - guard count >= 0 else { - rxFatalError("count can't be negative") - } - - guard start &+ (count - 1) >= start || count == 0 else { - rxFatalError("overflow of count") - } - - self._start = start - self._count = count - self._scheduler = scheduler - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == E { - let sink = RangeSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} - -final private class RangeSink: Sink where O.E: RxAbstractInteger { - typealias Parent = RangeProducer - - private let _parent: Parent - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(observer: observer, cancel: cancel) - } - - func run() -> Disposable { - return self._parent._scheduler.scheduleRecursive(0 as O.E) { i, recurse in - if i < self._parent._count { - self.forwardOn(.next(self._parent._start + i)) - recurse(i + 1) - } - else { - self.forwardOn(.completed) - self.dispose() - } - } - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Reduce.swift b/Pods/RxSwift/RxSwift/Observables/Reduce.swift deleted file mode 100644 index 5b3efd8..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Reduce.swift +++ /dev/null @@ -1,109 +0,0 @@ -// -// Reduce.swift -// RxSwift -// -// Created by Krunoslav Zaher on 4/1/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - - -extension ObservableType { - /** - Applies an `accumulator` function over an observable sequence, returning the result of the aggregation as a single element in the result sequence. The specified `seed` value is used as the initial accumulator value. - - For aggregation behavior with incremental intermediate results, see `scan`. - - - seealso: [reduce operator on reactivex.io](http://reactivex.io/documentation/operators/reduce.html) - - - parameter seed: The initial accumulator value. - - parameter accumulator: A accumulator function to be invoked on each element. - - parameter mapResult: A function to transform the final accumulator value into the result value. - - returns: An observable sequence containing a single element with the final accumulator value. - */ - public func reduce(_ seed: A, accumulator: @escaping (A, E) throws -> A, mapResult: @escaping (A) throws -> R) - -> Observable { - return Reduce(source: self.asObservable(), seed: seed, accumulator: accumulator, mapResult: mapResult) - } - - /** - Applies an `accumulator` function over an observable sequence, returning the result of the aggregation as a single element in the result sequence. The specified `seed` value is used as the initial accumulator value. - - For aggregation behavior with incremental intermediate results, see `scan`. - - - seealso: [reduce operator on reactivex.io](http://reactivex.io/documentation/operators/reduce.html) - - - parameter seed: The initial accumulator value. - - parameter accumulator: A accumulator function to be invoked on each element. - - returns: An observable sequence containing a single element with the final accumulator value. - */ - public func reduce(_ seed: A, accumulator: @escaping (A, E) throws -> A) - -> Observable { - return Reduce(source: self.asObservable(), seed: seed, accumulator: accumulator, mapResult: { $0 }) - } -} - -final private class ReduceSink: Sink, ObserverType { - typealias ResultType = O.E - typealias Parent = Reduce - - private let _parent: Parent - private var _accumulation: AccumulateType - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - self._accumulation = parent._seed - - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - switch event { - case .next(let value): - do { - self._accumulation = try self._parent._accumulator(self._accumulation, value) - } - catch let e { - self.forwardOn(.error(e)) - self.dispose() - } - case .error(let e): - self.forwardOn(.error(e)) - self.dispose() - case .completed: - do { - let result = try self._parent._mapResult(self._accumulation) - self.forwardOn(.next(result)) - self.forwardOn(.completed) - self.dispose() - } - catch let e { - self.forwardOn(.error(e)) - self.dispose() - } - } - } -} - -final private class Reduce: Producer { - typealias AccumulatorType = (AccumulateType, SourceType) throws -> AccumulateType - typealias ResultSelectorType = (AccumulateType) throws -> ResultType - - fileprivate let _source: Observable - fileprivate let _seed: AccumulateType - fileprivate let _accumulator: AccumulatorType - fileprivate let _mapResult: ResultSelectorType - - init(source: Observable, seed: AccumulateType, accumulator: @escaping AccumulatorType, mapResult: @escaping ResultSelectorType) { - self._source = source - self._seed = seed - self._accumulator = accumulator - self._mapResult = mapResult - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == ResultType { - let sink = ReduceSink(parent: self, observer: observer, cancel: cancel) - let subscription = self._source.subscribe(sink) - return (sink: sink, subscription: subscription) - } -} - diff --git a/Pods/RxSwift/RxSwift/Observables/Repeat.swift b/Pods/RxSwift/RxSwift/Observables/Repeat.swift deleted file mode 100644 index f430c90..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Repeat.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// Repeat.swift -// RxSwift -// -// Created by Krunoslav Zaher on 9/13/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - /** - Generates an observable sequence that repeats the given element infinitely, using the specified scheduler to send out observer messages. - - - seealso: [repeat operator on reactivex.io](http://reactivex.io/documentation/operators/repeat.html) - - - parameter element: Element to repeat. - - parameter scheduler: Scheduler to run the producer loop on. - - returns: An observable sequence that repeats the given element infinitely. - */ - public static func repeatElement(_ element: E, scheduler: ImmediateSchedulerType = CurrentThreadScheduler.instance) -> Observable { - return RepeatElement(element: element, scheduler: scheduler) - } -} - -final private class RepeatElement: Producer { - fileprivate let _element: Element - fileprivate let _scheduler: ImmediateSchedulerType - - init(element: Element, scheduler: ImmediateSchedulerType) { - self._element = element - self._scheduler = scheduler - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = RepeatElementSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - - return (sink: sink, subscription: subscription) - } -} - -final private class RepeatElementSink: Sink { - typealias Parent = RepeatElement - - private let _parent: Parent - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(observer: observer, cancel: cancel) - } - - func run() -> Disposable { - return self._parent._scheduler.scheduleRecursive(self._parent._element) { e, recurse in - self.forwardOn(.next(e)) - recurse(e) - } - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift b/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift deleted file mode 100644 index ce82df9..0000000 --- a/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift +++ /dev/null @@ -1,182 +0,0 @@ -// -// RetryWhen.swift -// RxSwift -// -// Created by Junior B. on 06/10/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Repeats the source observable sequence on error when the notifier emits a next value. - If the source observable errors and the notifier completes, it will complete the source sequence. - - - seealso: [retry operator on reactivex.io](http://reactivex.io/documentation/operators/retry.html) - - - parameter notificationHandler: A handler that is passed an observable sequence of errors raised by the source observable and returns and observable that either continues, completes or errors. This behavior is then applied to the source observable. - - returns: An observable sequence producing the elements of the given sequence repeatedly until it terminates successfully or is notified to error or complete. - */ - public func retryWhen(_ notificationHandler: @escaping (Observable) -> TriggerObservable) - -> Observable { - return RetryWhenSequence(sources: InfiniteSequence(repeatedValue: self.asObservable()), notificationHandler: notificationHandler) - } - - /** - Repeats the source observable sequence on error when the notifier emits a next value. - If the source observable errors and the notifier completes, it will complete the source sequence. - - - seealso: [retry operator on reactivex.io](http://reactivex.io/documentation/operators/retry.html) - - - parameter notificationHandler: A handler that is passed an observable sequence of errors raised by the source observable and returns and observable that either continues, completes or errors. This behavior is then applied to the source observable. - - returns: An observable sequence producing the elements of the given sequence repeatedly until it terminates successfully or is notified to error or complete. - */ - public func retryWhen(_ notificationHandler: @escaping (Observable) -> TriggerObservable) - -> Observable { - return RetryWhenSequence(sources: InfiniteSequence(repeatedValue: self.asObservable()), notificationHandler: notificationHandler) - } -} - -final private class RetryTriggerSink - : ObserverType where S.Iterator.Element: ObservableType, S.Iterator.Element.E == O.E { - typealias E = TriggerObservable.E - - typealias Parent = RetryWhenSequenceSinkIter - - fileprivate let _parent: Parent - - init(parent: Parent) { - self._parent = parent - } - - func on(_ event: Event) { - switch event { - case .next: - self._parent._parent._lastError = nil - self._parent._parent.schedule(.moveNext) - case .error(let e): - self._parent._parent.forwardOn(.error(e)) - self._parent._parent.dispose() - case .completed: - self._parent._parent.forwardOn(.completed) - self._parent._parent.dispose() - } - } -} - -final private class RetryWhenSequenceSinkIter - : ObserverType - , Disposable where S.Iterator.Element: ObservableType, S.Iterator.Element.E == O.E { - typealias E = O.E - typealias Parent = RetryWhenSequenceSink - - fileprivate let _parent: Parent - fileprivate let _errorHandlerSubscription = SingleAssignmentDisposable() - fileprivate let _subscription: Disposable - - init(parent: Parent, subscription: Disposable) { - self._parent = parent - self._subscription = subscription - } - - func on(_ event: Event) { - switch event { - case .next: - self._parent.forwardOn(event) - case .error(let error): - self._parent._lastError = error - - if let failedWith = error as? Error { - // dispose current subscription - self._subscription.dispose() - - let errorHandlerSubscription = self._parent._notifier.subscribe(RetryTriggerSink(parent: self)) - self._errorHandlerSubscription.setDisposable(errorHandlerSubscription) - self._parent._errorSubject.on(.next(failedWith)) - } - else { - self._parent.forwardOn(.error(error)) - self._parent.dispose() - } - case .completed: - self._parent.forwardOn(event) - self._parent.dispose() - } - } - - final func dispose() { - self._subscription.dispose() - self._errorHandlerSubscription.dispose() - } -} - -final private class RetryWhenSequenceSink - : TailRecursiveSink where S.Iterator.Element: ObservableType, S.Iterator.Element.E == O.E { - typealias Element = O.E - typealias Parent = RetryWhenSequence - - let _lock = RecursiveLock() - - fileprivate let _parent: Parent - - fileprivate var _lastError: Swift.Error? - fileprivate let _errorSubject = PublishSubject() - fileprivate let _handler: Observable - fileprivate let _notifier = PublishSubject() - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - self._handler = parent._notificationHandler(self._errorSubject).asObservable() - super.init(observer: observer, cancel: cancel) - } - - override func done() { - if let lastError = self._lastError { - self.forwardOn(.error(lastError)) - self._lastError = nil - } - else { - self.forwardOn(.completed) - } - - self.dispose() - } - - override func extract(_ observable: Observable) -> SequenceGenerator? { - // It is important to always return `nil` here because there are sideffects in the `run` method - // that are dependant on particular `retryWhen` operator so single operator stack can't be reused in this - // case. - return nil - } - - override func subscribeToNext(_ source: Observable) -> Disposable { - let subscription = SingleAssignmentDisposable() - let iter = RetryWhenSequenceSinkIter(parent: self, subscription: subscription) - subscription.setDisposable(source.subscribe(iter)) - return iter - } - - override func run(_ sources: SequenceGenerator) -> Disposable { - let triggerSubscription = self._handler.subscribe(self._notifier.asObserver()) - let superSubscription = super.run(sources) - return Disposables.create(superSubscription, triggerSubscription) - } -} - -final private class RetryWhenSequence: Producer where S.Iterator.Element: ObservableType { - typealias Element = S.Iterator.Element.E - - fileprivate let _sources: S - fileprivate let _notificationHandler: (Observable) -> TriggerObservable - - init(sources: S, notificationHandler: @escaping (Observable) -> TriggerObservable) { - self._sources = sources - self._notificationHandler = notificationHandler - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = RetryWhenSequenceSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run((self._sources.makeIterator(), nil)) - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Sample.swift b/Pods/RxSwift/RxSwift/Observables/Sample.swift deleted file mode 100644 index a930f0d..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Sample.swift +++ /dev/null @@ -1,133 +0,0 @@ -// -// Sample.swift -// RxSwift -// -// Created by Krunoslav Zaher on 5/1/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Samples the source observable sequence using a sampler observable sequence producing sampling ticks. - - Upon each sampling tick, the latest element (if any) in the source sequence during the last sampling interval is sent to the resulting sequence. - - **In case there were no new elements between sampler ticks, no element is sent to the resulting sequence.** - - - seealso: [sample operator on reactivex.io](http://reactivex.io/documentation/operators/sample.html) - - - parameter sampler: Sampling tick sequence. - - returns: Sampled observable sequence. - */ - public func sample(_ sampler: O) - -> Observable { - return Sample(source: self.asObservable(), sampler: sampler.asObservable()) - } -} - -final private class SamplerSink - : ObserverType - , LockOwnerType - , SynchronizedOnType { - typealias E = SampleType - - typealias Parent = SampleSequenceSink - - fileprivate let _parent: Parent - - var _lock: RecursiveLock { - return self._parent._lock - } - - init(parent: Parent) { - self._parent = parent - } - - func on(_ event: Event) { - self.synchronizedOn(event) - } - - func _synchronized_on(_ event: Event) { - switch event { - case .next, .completed: - if let element = _parent._element { - self._parent._element = nil - self._parent.forwardOn(.next(element)) - } - - if self._parent._atEnd { - self._parent.forwardOn(.completed) - self._parent.dispose() - } - case .error(let e): - self._parent.forwardOn(.error(e)) - self._parent.dispose() - } - } -} - -final private class SampleSequenceSink - : Sink - , ObserverType - , LockOwnerType - , SynchronizedOnType { - typealias Element = O.E - typealias Parent = Sample - - fileprivate let _parent: Parent - - let _lock = RecursiveLock() - - // state - fileprivate var _element = nil as Element? - fileprivate var _atEnd = false - - fileprivate let _sourceSubscription = SingleAssignmentDisposable() - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(observer: observer, cancel: cancel) - } - - func run() -> Disposable { - self._sourceSubscription.setDisposable(self._parent._source.subscribe(self)) - let samplerSubscription = self._parent._sampler.subscribe(SamplerSink(parent: self)) - - return Disposables.create(_sourceSubscription, samplerSubscription) - } - - func on(_ event: Event) { - self.synchronizedOn(event) - } - - func _synchronized_on(_ event: Event) { - switch event { - case .next(let element): - self._element = element - case .error: - self.forwardOn(event) - self.dispose() - case .completed: - self._atEnd = true - self._sourceSubscription.dispose() - } - } - -} - -final private class Sample: Producer { - fileprivate let _source: Observable - fileprivate let _sampler: Observable - - init(source: Observable, sampler: Observable) { - self._source = source - self._sampler = sampler - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = SampleSequenceSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Scan.swift b/Pods/RxSwift/RxSwift/Observables/Scan.swift deleted file mode 100644 index c6df608..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Scan.swift +++ /dev/null @@ -1,101 +0,0 @@ -// -// Scan.swift -// RxSwift -// -// Created by Krunoslav Zaher on 6/14/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Applies an accumulator function over an observable sequence and returns each intermediate result. The specified seed value is used as the initial accumulator value. - - For aggregation behavior with no intermediate results, see `reduce`. - - - seealso: [scan operator on reactivex.io](http://reactivex.io/documentation/operators/scan.html) - - - parameter seed: The initial accumulator value. - - parameter accumulator: An accumulator function to be invoked on each element. - - returns: An observable sequence containing the accumulated values. - */ - public func scan(into seed: A, accumulator: @escaping (inout A, E) throws -> Void) - -> Observable { - return Scan(source: self.asObservable(), seed: seed, accumulator: accumulator) - } - - /** - Applies an accumulator function over an observable sequence and returns each intermediate result. The specified seed value is used as the initial accumulator value. - - For aggregation behavior with no intermediate results, see `reduce`. - - - seealso: [scan operator on reactivex.io](http://reactivex.io/documentation/operators/scan.html) - - - parameter seed: The initial accumulator value. - - parameter accumulator: An accumulator function to be invoked on each element. - - returns: An observable sequence containing the accumulated values. - */ - public func scan(_ seed: A, accumulator: @escaping (A, E) throws -> A) - -> Observable { - return Scan(source: self.asObservable(), seed: seed) { acc, element in - let currentAcc = acc - acc = try accumulator(currentAcc, element) - } - } -} - -final private class ScanSink: Sink, ObserverType { - typealias Accumulate = O.E - typealias Parent = Scan - typealias E = ElementType - - fileprivate let _parent: Parent - fileprivate var _accumulate: Accumulate - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - self._accumulate = parent._seed - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - switch event { - case .next(let element): - do { - try self._parent._accumulator(&self._accumulate, element) - self.forwardOn(.next(self._accumulate)) - } - catch let error { - self.forwardOn(.error(error)) - self.dispose() - } - case .error(let error): - self.forwardOn(.error(error)) - self.dispose() - case .completed: - self.forwardOn(.completed) - self.dispose() - } - } - -} - -final private class Scan: Producer { - typealias Accumulator = (inout Accumulate, Element) throws -> Void - - fileprivate let _source: Observable - fileprivate let _seed: Accumulate - fileprivate let _accumulator: Accumulator - - init(source: Observable, seed: Accumulate, accumulator: @escaping Accumulator) { - self._source = source - self._seed = seed - self._accumulator = accumulator - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Accumulate { - let sink = ScanSink(parent: self, observer: observer, cancel: cancel) - let subscription = self._source.subscribe(sink) - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Sequence.swift b/Pods/RxSwift/RxSwift/Observables/Sequence.swift deleted file mode 100644 index a7f6450..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Sequence.swift +++ /dev/null @@ -1,89 +0,0 @@ -// -// Sequence.swift -// RxSwift -// -// Created by Krunoslav Zaher on 11/14/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - // MARK: of - - /** - This method creates a new Observable instance with a variable number of elements. - - - seealso: [from operator on reactivex.io](http://reactivex.io/documentation/operators/from.html) - - - parameter elements: Elements to generate. - - parameter scheduler: Scheduler to send elements on. If `nil`, elements are sent immediately on subscription. - - returns: The observable sequence whose elements are pulled from the given arguments. - */ - public static func of(_ elements: E ..., scheduler: ImmediateSchedulerType = CurrentThreadScheduler.instance) -> Observable { - return ObservableSequence(elements: elements, scheduler: scheduler) - } -} - -extension ObservableType { - /** - Converts an array to an observable sequence. - - - seealso: [from operator on reactivex.io](http://reactivex.io/documentation/operators/from.html) - - - returns: The observable sequence whose elements are pulled from the given enumerable sequence. - */ - public static func from(_ array: [E], scheduler: ImmediateSchedulerType = CurrentThreadScheduler.instance) -> Observable { - return ObservableSequence(elements: array, scheduler: scheduler) - } - - /** - Converts a sequence to an observable sequence. - - - seealso: [from operator on reactivex.io](http://reactivex.io/documentation/operators/from.html) - - - returns: The observable sequence whose elements are pulled from the given enumerable sequence. - */ - public static func from(_ sequence: S, scheduler: ImmediateSchedulerType = CurrentThreadScheduler.instance) -> Observable where S.Iterator.Element == E { - return ObservableSequence(elements: sequence, scheduler: scheduler) - } -} - -final private class ObservableSequenceSink: Sink where S.Iterator.Element == O.E { - typealias Parent = ObservableSequence - - private let _parent: Parent - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(observer: observer, cancel: cancel) - } - - func run() -> Disposable { - return self._parent._scheduler.scheduleRecursive(self._parent._elements.makeIterator()) { iterator, recurse in - var mutableIterator = iterator - if let next = mutableIterator.next() { - self.forwardOn(.next(next)) - recurse(mutableIterator) - } - else { - self.forwardOn(.completed) - self.dispose() - } - } - } -} - -final private class ObservableSequence: Producer { - fileprivate let _elements: S - fileprivate let _scheduler: ImmediateSchedulerType - - init(elements: S, scheduler: ImmediateSchedulerType) { - self._elements = elements - self._scheduler = scheduler - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == E { - let sink = ObservableSequenceSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift b/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift deleted file mode 100644 index 44e37d9..0000000 --- a/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift +++ /dev/null @@ -1,458 +0,0 @@ -// -// ShareReplayScope.swift -// RxSwift -// -// Created by Krunoslav Zaher on 5/28/17. -// Copyright © 2017 Krunoslav Zaher. All rights reserved. -// - -/// Subject lifetime scope -public enum SubjectLifetimeScope { - /** - **Each connection will have it's own subject instance to store replay events.** - **Connections will be isolated from each another.** - - Configures the underlying implementation to behave equivalent to. - - ``` - source.multicast(makeSubject: { MySubject() }).refCount() - ``` - - **This is the recommended default.** - - This has the following consequences: - * `retry` or `concat` operators will function as expected because terminating the sequence will clear internal state. - * Each connection to source observable sequence will use it's own subject. - * When the number of subscribers drops from 1 to 0 and connection to source sequence is disposed, subject will be cleared. - - - ``` - let xs = Observable.deferred { () -> Observable in - print("Performing work ...") - return Observable.just(Date().timeIntervalSince1970) - } - .share(replay: 1, scope: .whileConnected) - - _ = xs.subscribe(onNext: { print("next \($0)") }, onCompleted: { print("completed\n") }) - _ = xs.subscribe(onNext: { print("next \($0)") }, onCompleted: { print("completed\n") }) - _ = xs.subscribe(onNext: { print("next \($0)") }, onCompleted: { print("completed\n") }) - - ``` - - Notice how time interval is different and `Performing work ...` is printed each time) - - ``` - Performing work ... - next 1495998900.82141 - completed - - Performing work ... - next 1495998900.82359 - completed - - Performing work ... - next 1495998900.82444 - completed - - - ``` - - */ - case whileConnected - - /** - **One subject will store replay events for all connections to source.** - **Connections won't be isolated from each another.** - - Configures the underlying implementation behave equivalent to. - - ``` - source.multicast(MySubject()).refCount() - ``` - - This has the following consequences: - * Using `retry` or `concat` operators after this operator usually isn't advised. - * Each connection to source observable sequence will share the same subject. - * After number of subscribers drops from 1 to 0 and connection to source observable sequence is dispose, this operator will - continue holding a reference to the same subject. - If at some later moment a new observer initiates a new connection to source it can potentially receive - some of the stale events received during previous connection. - * After source sequence terminates any new observer will always immediately receive replayed elements and terminal event. - No new subscriptions to source observable sequence will be attempted. - - ``` - let xs = Observable.deferred { () -> Observable in - print("Performing work ...") - return Observable.just(Date().timeIntervalSince1970) - } - .share(replay: 1, scope: .forever) - - _ = xs.subscribe(onNext: { print("next \($0)") }, onCompleted: { print("completed\n") }) - _ = xs.subscribe(onNext: { print("next \($0)") }, onCompleted: { print("completed\n") }) - _ = xs.subscribe(onNext: { print("next \($0)") }, onCompleted: { print("completed\n") }) - ``` - - Notice how time interval is the same, replayed, and `Performing work ...` is printed only once - - ``` - Performing work ... - next 1495999013.76356 - completed - - next 1495999013.76356 - completed - - next 1495999013.76356 - completed - ``` - - */ - case forever -} - -extension ObservableType { - - /** - Returns an observable sequence that **shares a single subscription to the underlying sequence**, and immediately upon subscription replays elements in buffer. - - This operator is equivalent to: - * `.whileConnected` - ``` - // Each connection will have it's own subject instance to store replay events. - // Connections will be isolated from each another. - source.multicast(makeSubject: { Replay.create(bufferSize: replay) }).refCount() - ``` - * `.forever` - ``` - // One subject will store replay events for all connections to source. - // Connections won't be isolated from each another. - source.multicast(Replay.create(bufferSize: replay)).refCount() - ``` - - It uses optimized versions of the operators for most common operations. - - - parameter replay: Maximum element count of the replay buffer. - - parameter scope: Lifetime scope of sharing subject. For more information see `SubjectLifetimeScope` enum. - - - seealso: [shareReplay operator on reactivex.io](http://reactivex.io/documentation/operators/replay.html) - - - returns: An observable sequence that contains the elements of a sequence produced by multicasting the source sequence. - */ - public func share(replay: Int = 0, scope: SubjectLifetimeScope = .whileConnected) - -> Observable { - switch scope { - case .forever: - switch replay { - case 0: return self.multicast(PublishSubject()).refCount() - default: return self.multicast(ReplaySubject.create(bufferSize: replay)).refCount() - } - case .whileConnected: - switch replay { - case 0: return ShareWhileConnected(source: self.asObservable()) - case 1: return ShareReplay1WhileConnected(source: self.asObservable()) - default: return self.multicast(makeSubject: { ReplaySubject.create(bufferSize: replay) }).refCount() - } - } - } -} - -fileprivate final class ShareReplay1WhileConnectedConnection - : ObserverType - , SynchronizedUnsubscribeType { - typealias E = Element - typealias Observers = AnyObserver.s - typealias DisposeKey = Observers.KeyType - - typealias Parent = ShareReplay1WhileConnected - private let _parent: Parent - private let _subscription = SingleAssignmentDisposable() - - private let _lock: RecursiveLock - private var _disposed: Bool = false - fileprivate var _observers = Observers() - fileprivate var _element: Element? - - init(parent: Parent, lock: RecursiveLock) { - self._parent = parent - self._lock = lock - - #if TRACE_RESOURCES - _ = Resources.incrementTotal() - #endif - } - - final func on(_ event: Event) { - self._lock.lock() - let observers = self._synchronized_on(event) - self._lock.unlock() - dispatch(observers, event) - } - - final private func _synchronized_on(_ event: Event) -> Observers { - if self._disposed { - return Observers() - } - - switch event { - case .next(let element): - self._element = element - return self._observers - case .error, .completed: - let observers = self._observers - self._synchronized_dispose() - return observers - } - } - - final func connect() { - self._subscription.setDisposable(self._parent._source.subscribe(self)) - } - - final func _synchronized_subscribe(_ observer: O) -> Disposable where O.E == Element { - self._lock.lock(); defer { self._lock.unlock() } - if let element = self._element { - observer.on(.next(element)) - } - - let disposeKey = self._observers.insert(observer.on) - - return SubscriptionDisposable(owner: self, key: disposeKey) - } - - final private func _synchronized_dispose() { - self._disposed = true - if self._parent._connection === self { - self._parent._connection = nil - } - self._observers = Observers() - } - - final func synchronizedUnsubscribe(_ disposeKey: DisposeKey) { - self._lock.lock() - let shouldDisconnect = self._synchronized_unsubscribe(disposeKey) - self._lock.unlock() - if shouldDisconnect { - self._subscription.dispose() - } - } - - @inline(__always) - final private func _synchronized_unsubscribe(_ disposeKey: DisposeKey) -> Bool { - // if already unsubscribed, just return - if self._observers.removeKey(disposeKey) == nil { - return false - } - - if self._observers.count == 0 { - self._synchronized_dispose() - return true - } - - return false - } - - #if TRACE_RESOURCES - deinit { - _ = Resources.decrementTotal() - } - #endif -} - -// optimized version of share replay for most common case -final private class ShareReplay1WhileConnected - : Observable { - - fileprivate typealias Connection = ShareReplay1WhileConnectedConnection - - fileprivate let _source: Observable - - fileprivate let _lock = RecursiveLock() - - fileprivate var _connection: Connection? - - init(source: Observable) { - self._source = source - } - - override func subscribe(_ observer: O) -> Disposable where O.E == E { - self._lock.lock() - - let connection = self._synchronized_subscribe(observer) - let count = connection._observers.count - - let disposable = connection._synchronized_subscribe(observer) - - self._lock.unlock() - - if count == 0 { - connection.connect() - } - - return disposable - } - - @inline(__always) - private func _synchronized_subscribe(_ observer: O) -> Connection where O.E == E { - let connection: Connection - - if let existingConnection = self._connection { - connection = existingConnection - } - else { - connection = ShareReplay1WhileConnectedConnection( - parent: self, - lock: self._lock) - self._connection = connection - } - - return connection - } -} - -fileprivate final class ShareWhileConnectedConnection - : ObserverType - , SynchronizedUnsubscribeType { - typealias E = Element - typealias Observers = AnyObserver.s - typealias DisposeKey = Observers.KeyType - - typealias Parent = ShareWhileConnected - private let _parent: Parent - private let _subscription = SingleAssignmentDisposable() - - private let _lock: RecursiveLock - private var _disposed: Bool = false - fileprivate var _observers = Observers() - - init(parent: Parent, lock: RecursiveLock) { - self._parent = parent - self._lock = lock - - #if TRACE_RESOURCES - _ = Resources.incrementTotal() - #endif - } - - final func on(_ event: Event) { - self._lock.lock() - let observers = self._synchronized_on(event) - self._lock.unlock() - dispatch(observers, event) - } - - final private func _synchronized_on(_ event: Event) -> Observers { - if self._disposed { - return Observers() - } - - switch event { - case .next: - return self._observers - case .error, .completed: - let observers = self._observers - self._synchronized_dispose() - return observers - } - } - - final func connect() { - self._subscription.setDisposable(self._parent._source.subscribe(self)) - } - - final func _synchronized_subscribe(_ observer: O) -> Disposable where O.E == Element { - self._lock.lock(); defer { self._lock.unlock() } - - let disposeKey = self._observers.insert(observer.on) - - return SubscriptionDisposable(owner: self, key: disposeKey) - } - - final private func _synchronized_dispose() { - self._disposed = true - if self._parent._connection === self { - self._parent._connection = nil - } - self._observers = Observers() - } - - final func synchronizedUnsubscribe(_ disposeKey: DisposeKey) { - self._lock.lock() - let shouldDisconnect = self._synchronized_unsubscribe(disposeKey) - self._lock.unlock() - if shouldDisconnect { - self._subscription.dispose() - } - } - - @inline(__always) - final private func _synchronized_unsubscribe(_ disposeKey: DisposeKey) -> Bool { - // if already unsubscribed, just return - if self._observers.removeKey(disposeKey) == nil { - return false - } - - if self._observers.count == 0 { - self._synchronized_dispose() - return true - } - - return false - } - - #if TRACE_RESOURCES - deinit { - _ = Resources.decrementTotal() - } - #endif -} - -// optimized version of share replay for most common case -final private class ShareWhileConnected - : Observable { - - fileprivate typealias Connection = ShareWhileConnectedConnection - - fileprivate let _source: Observable - - fileprivate let _lock = RecursiveLock() - - fileprivate var _connection: Connection? - - init(source: Observable) { - self._source = source - } - - override func subscribe(_ observer: O) -> Disposable where O.E == E { - self._lock.lock() - - let connection = self._synchronized_subscribe(observer) - let count = connection._observers.count - - let disposable = connection._synchronized_subscribe(observer) - - self._lock.unlock() - - if count == 0 { - connection.connect() - } - - return disposable - } - - @inline(__always) - private func _synchronized_subscribe(_ observer: O) -> Connection where O.E == E { - let connection: Connection - - if let existingConnection = self._connection { - connection = existingConnection - } - else { - connection = ShareWhileConnectedConnection( - parent: self, - lock: self._lock) - self._connection = connection - } - - return connection - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift b/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift deleted file mode 100644 index cf40b65..0000000 --- a/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift +++ /dev/null @@ -1,105 +0,0 @@ -// -// SingleAsync.swift -// RxSwift -// -// Created by Junior B. on 09/11/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - The single operator is similar to first, but throws a `RxError.noElements` or `RxError.moreThanOneElement` - if the source Observable does not emit exactly one element before successfully completing. - - - seealso: [single operator on reactivex.io](http://reactivex.io/documentation/operators/first.html) - - - returns: An observable sequence that emits a single element or throws an exception if more (or none) of them are emitted. - */ - public func single() - -> Observable { - return SingleAsync(source: self.asObservable()) - } - - /** - The single operator is similar to first, but throws a `RxError.NoElements` or `RxError.MoreThanOneElement` - if the source Observable does not emit exactly one element before successfully completing. - - - seealso: [single operator on reactivex.io](http://reactivex.io/documentation/operators/first.html) - - - parameter predicate: A function to test each source element for a condition. - - returns: An observable sequence that emits a single element or throws an exception if more (or none) of them are emitted. - */ - public func single(_ predicate: @escaping (E) throws -> Bool) - -> Observable { - return SingleAsync(source: self.asObservable(), predicate: predicate) - } -} - -fileprivate final class SingleAsyncSink : Sink, ObserverType { - typealias ElementType = O.E - typealias Parent = SingleAsync - typealias E = ElementType - - private let _parent: Parent - private var _seenValue: Bool = false - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - switch event { - case .next(let value): - do { - let forward = try self._parent._predicate?(value) ?? true - if !forward { - return - } - } - catch let error { - self.forwardOn(.error(error as Swift.Error)) - self.dispose() - return - } - - if self._seenValue { - self.forwardOn(.error(RxError.moreThanOneElement)) - self.dispose() - return - } - - self._seenValue = true - self.forwardOn(.next(value)) - case .error: - self.forwardOn(event) - self.dispose() - case .completed: - if self._seenValue { - self.forwardOn(.completed) - } else { - self.forwardOn(.error(RxError.noElements)) - } - self.dispose() - } - } -} - -final class SingleAsync: Producer { - typealias Predicate = (Element) throws -> Bool - - fileprivate let _source: Observable - fileprivate let _predicate: Predicate? - - init(source: Observable, predicate: Predicate? = nil) { - self._source = source - self._predicate = predicate - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = SingleAsyncSink(parent: self, observer: observer, cancel: cancel) - let subscription = self._source.subscribe(sink) - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Sink.swift b/Pods/RxSwift/RxSwift/Observables/Sink.swift deleted file mode 100644 index 6431da3..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Sink.swift +++ /dev/null @@ -1,75 +0,0 @@ -// -// Sink.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/19/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -class Sink : Disposable { - fileprivate let _observer: O - fileprivate let _cancel: Cancelable - fileprivate var _disposed = AtomicInt(0) - - #if DEBUG - fileprivate let _synchronizationTracker = SynchronizationTracker() - #endif - - init(observer: O, cancel: Cancelable) { -#if TRACE_RESOURCES - _ = Resources.incrementTotal() -#endif - self._observer = observer - self._cancel = cancel - } - - final func forwardOn(_ event: Event) { - #if DEBUG - self._synchronizationTracker.register(synchronizationErrorMessage: .default) - defer { self._synchronizationTracker.unregister() } - #endif - if isFlagSet(&self._disposed, 1) { - return - } - self._observer.on(event) - } - - final func forwarder() -> SinkForward { - return SinkForward(forward: self) - } - - final var disposed: Bool { - return isFlagSet(&self._disposed, 1) - } - - func dispose() { - fetchOr(&self._disposed, 1) - self._cancel.dispose() - } - - deinit { -#if TRACE_RESOURCES - _ = Resources.decrementTotal() -#endif - } -} - -final class SinkForward: ObserverType { - typealias E = O.E - - private let _forward: Sink - - init(forward: Sink) { - self._forward = forward - } - - final func on(_ event: Event) { - switch event { - case .next: - self._forward._observer.on(event) - case .error, .completed: - self._forward._observer.on(event) - self._forward._cancel.dispose() - } - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Skip.swift b/Pods/RxSwift/RxSwift/Observables/Skip.swift deleted file mode 100644 index bc49283..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Skip.swift +++ /dev/null @@ -1,159 +0,0 @@ -// -// Skip.swift -// RxSwift -// -// Created by Krunoslav Zaher on 6/25/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Bypasses a specified number of elements in an observable sequence and then returns the remaining elements. - - - seealso: [skip operator on reactivex.io](http://reactivex.io/documentation/operators/skip.html) - - - parameter count: The number of elements to skip before returning the remaining elements. - - returns: An observable sequence that contains the elements that occur after the specified index in the input sequence. - */ - public func skip(_ count: Int) - -> Observable { - return SkipCount(source: self.asObservable(), count: count) - } -} - -extension ObservableType { - - /** - Skips elements for the specified duration from the start of the observable source sequence, using the specified scheduler to run timers. - - - seealso: [skip operator on reactivex.io](http://reactivex.io/documentation/operators/skip.html) - - - parameter duration: Duration for skipping elements from the start of the sequence. - - parameter scheduler: Scheduler to run the timer on. - - returns: An observable sequence with the elements skipped during the specified duration from the start of the source sequence. - */ - public func skip(_ duration: RxTimeInterval, scheduler: SchedulerType) - -> Observable { - return SkipTime(source: self.asObservable(), duration: duration, scheduler: scheduler) - } -} - -// count version - -final private class SkipCountSink: Sink, ObserverType { - typealias Element = O.E - typealias Parent = SkipCount - - let parent: Parent - - var remaining: Int - - init(parent: Parent, observer: O, cancel: Cancelable) { - self.parent = parent - self.remaining = parent.count - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - switch event { - case .next(let value): - - if self.remaining <= 0 { - self.forwardOn(.next(value)) - } - else { - self.remaining -= 1 - } - case .error: - self.forwardOn(event) - self.dispose() - case .completed: - self.forwardOn(event) - self.dispose() - } - } - -} - -final private class SkipCount: Producer { - let source: Observable - let count: Int - - init(source: Observable, count: Int) { - self.source = source - self.count = count - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = SkipCountSink(parent: self, observer: observer, cancel: cancel) - let subscription = self.source.subscribe(sink) - - return (sink: sink, subscription: subscription) - } -} - -// time version - -final private class SkipTimeSink: Sink, ObserverType where O.E == ElementType { - typealias Parent = SkipTime - typealias Element = ElementType - - let parent: Parent - - // state - var open = false - - init(parent: Parent, observer: O, cancel: Cancelable) { - self.parent = parent - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - switch event { - case .next(let value): - if self.open { - self.forwardOn(.next(value)) - } - case .error: - self.forwardOn(event) - self.dispose() - case .completed: - self.forwardOn(event) - self.dispose() - } - } - - func tick() { - self.open = true - } - - func run() -> Disposable { - let disposeTimer = self.parent.scheduler.scheduleRelative((), dueTime: self.parent.duration) { _ in - self.tick() - return Disposables.create() - } - - let disposeSubscription = self.parent.source.subscribe(self) - - return Disposables.create(disposeTimer, disposeSubscription) - } -} - -final private class SkipTime: Producer { - let source: Observable - let duration: RxTimeInterval - let scheduler: SchedulerType - - init(source: Observable, duration: RxTimeInterval, scheduler: SchedulerType) { - self.source = source - self.scheduler = scheduler - self.duration = duration - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = SkipTimeSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift b/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift deleted file mode 100644 index 7681b14..0000000 --- a/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift +++ /dev/null @@ -1,139 +0,0 @@ -// -// SkipUntil.swift -// RxSwift -// -// Created by Yury Korolev on 10/3/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Returns the elements from the source observable sequence that are emitted after the other observable sequence produces an element. - - - seealso: [skipUntil operator on reactivex.io](http://reactivex.io/documentation/operators/skipuntil.html) - - - parameter other: Observable sequence that starts propagation of elements of the source sequence. - - returns: An observable sequence containing the elements of the source sequence that are emitted after the other sequence emits an item. - */ - public func skipUntil(_ other: O) - -> Observable { - return SkipUntil(source: self.asObservable(), other: other.asObservable()) - } -} - -final private class SkipUntilSinkOther - : ObserverType - , LockOwnerType - , SynchronizedOnType { - typealias Parent = SkipUntilSink - typealias E = Other - - fileprivate let _parent: Parent - - var _lock: RecursiveLock { - return self._parent._lock - } - - let _subscription = SingleAssignmentDisposable() - - init(parent: Parent) { - self._parent = parent - #if TRACE_RESOURCES - _ = Resources.incrementTotal() - #endif - } - - func on(_ event: Event) { - self.synchronizedOn(event) - } - - func _synchronized_on(_ event: Event) { - switch event { - case .next: - self._parent._forwardElements = true - self._subscription.dispose() - case .error(let e): - self._parent.forwardOn(.error(e)) - self._parent.dispose() - case .completed: - self._subscription.dispose() - } - } - - #if TRACE_RESOURCES - deinit { - _ = Resources.decrementTotal() - } - #endif - -} - - -final private class SkipUntilSink - : Sink - , ObserverType - , LockOwnerType - , SynchronizedOnType { - typealias E = O.E - typealias Parent = SkipUntil - - let _lock = RecursiveLock() - fileprivate let _parent: Parent - fileprivate var _forwardElements = false - - fileprivate let _sourceSubscription = SingleAssignmentDisposable() - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - self.synchronizedOn(event) - } - - func _synchronized_on(_ event: Event) { - switch event { - case .next: - if self._forwardElements { - self.forwardOn(event) - } - case .error: - self.forwardOn(event) - self.dispose() - case .completed: - if self._forwardElements { - self.forwardOn(event) - } - self.dispose() - } - } - - func run() -> Disposable { - let sourceSubscription = self._parent._source.subscribe(self) - let otherObserver = SkipUntilSinkOther(parent: self) - let otherSubscription = self._parent._other.subscribe(otherObserver) - self._sourceSubscription.setDisposable(sourceSubscription) - otherObserver._subscription.setDisposable(otherSubscription) - - return Disposables.create(_sourceSubscription, otherObserver._subscription) - } -} - -final private class SkipUntil: Producer { - - fileprivate let _source: Observable - fileprivate let _other: Observable - - init(source: Observable, other: Observable) { - self._source = source - self._other = other - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = SkipUntilSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift b/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift deleted file mode 100644 index a0fbdf5..0000000 --- a/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift +++ /dev/null @@ -1,75 +0,0 @@ -// -// SkipWhile.swift -// RxSwift -// -// Created by Yury Korolev on 10/9/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Bypasses elements in an observable sequence as long as a specified condition is true and then returns the remaining elements. - - - seealso: [skipWhile operator on reactivex.io](http://reactivex.io/documentation/operators/skipwhile.html) - - - parameter predicate: A function to test each element for a condition. - - returns: An observable sequence that contains the elements from the input sequence starting at the first element in the linear series that does not pass the test specified by predicate. - */ - public func skipWhile(_ predicate: @escaping (E) throws -> Bool) -> Observable { - return SkipWhile(source: self.asObservable(), predicate: predicate) - } -} - -final private class SkipWhileSink: Sink, ObserverType { - typealias Element = O.E - typealias Parent = SkipWhile - - fileprivate let _parent: Parent - fileprivate var _running = false - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - switch event { - case .next(let value): - if !self._running { - do { - self._running = try !self._parent._predicate(value) - } catch let e { - self.forwardOn(.error(e)) - self.dispose() - return - } - } - - if self._running { - self.forwardOn(.next(value)) - } - case .error, .completed: - self.forwardOn(event) - self.dispose() - } - } -} - -final private class SkipWhile: Producer { - typealias Predicate = (Element) throws -> Bool - - fileprivate let _source: Observable - fileprivate let _predicate: Predicate - - init(source: Observable, predicate: @escaping Predicate) { - self._source = source - self._predicate = predicate - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = SkipWhileSink(parent: self, observer: observer, cancel: cancel) - let subscription = self._source.subscribe(sink) - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/StartWith.swift b/Pods/RxSwift/RxSwift/Observables/StartWith.swift deleted file mode 100644 index 842f4af..0000000 --- a/Pods/RxSwift/RxSwift/Observables/StartWith.swift +++ /dev/null @@ -1,42 +0,0 @@ -// -// StartWith.swift -// RxSwift -// -// Created by Krunoslav Zaher on 4/6/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Prepends a sequence of values to an observable sequence. - - - seealso: [startWith operator on reactivex.io](http://reactivex.io/documentation/operators/startwith.html) - - - parameter elements: Elements to prepend to the specified sequence. - - returns: The source sequence prepended with the specified values. - */ - public func startWith(_ elements: E ...) - -> Observable { - return StartWith(source: self.asObservable(), elements: elements) - } -} - -final private class StartWith: Producer { - let elements: [Element] - let source: Observable - - init(source: Observable, elements: [Element]) { - self.source = source - self.elements = elements - super.init() - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - for e in self.elements { - observer.on(.next(e)) - } - - return (sink: Disposables.create(), subscription: self.source.subscribe(observer)) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift b/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift deleted file mode 100644 index 2d0d348..0000000 --- a/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift +++ /dev/null @@ -1,83 +0,0 @@ -// -// SubscribeOn.swift -// RxSwift -// -// Created by Krunoslav Zaher on 6/14/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Wraps the source sequence in order to run its subscription and unsubscription logic on the specified - scheduler. - - This operation is not commonly used. - - This only performs the side-effects of subscription and unsubscription on the specified scheduler. - - In order to invoke observer callbacks on a `scheduler`, use `observeOn`. - - - seealso: [subscribeOn operator on reactivex.io](http://reactivex.io/documentation/operators/subscribeon.html) - - - parameter scheduler: Scheduler to perform subscription and unsubscription actions on. - - returns: The source sequence whose subscriptions and unsubscriptions happen on the specified scheduler. - */ - public func subscribeOn(_ scheduler: ImmediateSchedulerType) - -> Observable { - return SubscribeOn(source: self, scheduler: scheduler) - } -} - -final private class SubscribeOnSink: Sink, ObserverType where Ob.E == O.E { - typealias Element = O.E - typealias Parent = SubscribeOn - - let parent: Parent - - init(parent: Parent, observer: O, cancel: Cancelable) { - self.parent = parent - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - self.forwardOn(event) - - if event.isStopEvent { - self.dispose() - } - } - - func run() -> Disposable { - let disposeEverything = SerialDisposable() - let cancelSchedule = SingleAssignmentDisposable() - - disposeEverything.disposable = cancelSchedule - - let disposeSchedule = self.parent.scheduler.schedule(()) { _ -> Disposable in - let subscription = self.parent.source.subscribe(self) - disposeEverything.disposable = ScheduledDisposable(scheduler: self.parent.scheduler, disposable: subscription) - return Disposables.create() - } - - cancelSchedule.setDisposable(disposeSchedule) - - return disposeEverything - } -} - -final private class SubscribeOn: Producer { - let source: Ob - let scheduler: ImmediateSchedulerType - - init(source: Ob, scheduler: ImmediateSchedulerType) { - self.source = source - self.scheduler = scheduler - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Ob.E { - let sink = SubscribeOnSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Switch.swift b/Pods/RxSwift/RxSwift/Observables/Switch.swift deleted file mode 100644 index 5139f0e..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Switch.swift +++ /dev/null @@ -1,233 +0,0 @@ -// -// Switch.swift -// RxSwift -// -// Created by Krunoslav Zaher on 3/12/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - /** - Projects each element of an observable sequence into a new sequence of observable sequences and then - transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence. - - It is a combination of `map` + `switchLatest` operator - - - seealso: [flatMapLatest operator on reactivex.io](http://reactivex.io/documentation/operators/flatmap.html) - - - parameter selector: A transform function to apply to each element. - - returns: An observable sequence whose elements are the result of invoking the transform function on each element of source producing an - Observable of Observable sequences and that at any point in time produces the elements of the most recent inner observable sequence that has been received. - */ - public func flatMapLatest(_ selector: @escaping (E) throws -> O) - -> Observable { - return FlatMapLatest(source: self.asObservable(), selector: selector) - } -} - -extension ObservableType where E : ObservableConvertibleType { - - /** - Transforms an observable sequence of observable sequences into an observable sequence - producing values only from the most recent observable sequence. - - Each time a new inner observable sequence is received, unsubscribe from the - previous inner observable sequence. - - - seealso: [switch operator on reactivex.io](http://reactivex.io/documentation/operators/switch.html) - - - returns: The observable sequence that at any point in time produces the elements of the most recent inner observable sequence that has been received. - */ - public func switchLatest() -> Observable { - return Switch(source: self.asObservable()) - } -} - -private class SwitchSink - : Sink - , ObserverType where S.E == O.E { - typealias E = SourceType - - fileprivate let _subscriptions: SingleAssignmentDisposable = SingleAssignmentDisposable() - fileprivate let _innerSubscription: SerialDisposable = SerialDisposable() - - let _lock = RecursiveLock() - - // state - fileprivate var _stopped = false - fileprivate var _latest = 0 - fileprivate var _hasLatest = false - - override init(observer: O, cancel: Cancelable) { - super.init(observer: observer, cancel: cancel) - } - - func run(_ source: Observable) -> Disposable { - let subscription = source.subscribe(self) - self._subscriptions.setDisposable(subscription) - return Disposables.create(_subscriptions, _innerSubscription) - } - - func performMap(_ element: SourceType) throws -> S { - rxAbstractMethod() - } - - @inline(__always) - final private func nextElementArrived(element: E) -> (Int, Observable)? { - self._lock.lock(); defer { self._lock.unlock() } // { - do { - let observable = try self.performMap(element).asObservable() - self._hasLatest = true - self._latest = self._latest &+ 1 - return (self._latest, observable) - } - catch let error { - self.forwardOn(.error(error)) - self.dispose() - } - - return nil - // } - } - - func on(_ event: Event) { - switch event { - case .next(let element): - if let (latest, observable) = self.nextElementArrived(element: element) { - let d = SingleAssignmentDisposable() - self._innerSubscription.disposable = d - - let observer = SwitchSinkIter(parent: self, id: latest, _self: d) - let disposable = observable.subscribe(observer) - d.setDisposable(disposable) - } - case .error(let error): - self._lock.lock(); defer { self._lock.unlock() } - self.forwardOn(.error(error)) - self.dispose() - case .completed: - self._lock.lock(); defer { self._lock.unlock() } - self._stopped = true - - self._subscriptions.dispose() - - if !self._hasLatest { - self.forwardOn(.completed) - self.dispose() - } - } - } -} - -final private class SwitchSinkIter - : ObserverType - , LockOwnerType - , SynchronizedOnType where S.E == O.E { - typealias E = S.E - typealias Parent = SwitchSink - - fileprivate let _parent: Parent - fileprivate let _id: Int - fileprivate let _self: Disposable - - var _lock: RecursiveLock { - return self._parent._lock - } - - init(parent: Parent, id: Int, _self: Disposable) { - self._parent = parent - self._id = id - self._self = _self - } - - func on(_ event: Event) { - self.synchronizedOn(event) - } - - func _synchronized_on(_ event: Event) { - switch event { - case .next: break - case .error, .completed: - self._self.dispose() - } - - if self._parent._latest != self._id { - return - } - - switch event { - case .next: - self._parent.forwardOn(event) - case .error: - self._parent.forwardOn(event) - self._parent.dispose() - case .completed: - self._parent._hasLatest = false - if self._parent._stopped { - self._parent.forwardOn(event) - self._parent.dispose() - } - } - } -} - -// MARK: Specializations - -final private class SwitchIdentitySink: SwitchSink where O.E == S.E { - override init(observer: O, cancel: Cancelable) { - super.init(observer: observer, cancel: cancel) - } - - override func performMap(_ element: S) throws -> S { - return element - } -} - -final private class MapSwitchSink: SwitchSink where O.E == S.E { - typealias Selector = (SourceType) throws -> S - - fileprivate let _selector: Selector - - init(selector: @escaping Selector, observer: O, cancel: Cancelable) { - self._selector = selector - super.init(observer: observer, cancel: cancel) - } - - override func performMap(_ element: SourceType) throws -> S { - return try self._selector(element) - } -} - -// MARK: Producers - -final private class Switch: Producer { - fileprivate let _source: Observable - - init(source: Observable) { - self._source = source - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == S.E { - let sink = SwitchIdentitySink(observer: observer, cancel: cancel) - let subscription = sink.run(self._source) - return (sink: sink, subscription: subscription) - } -} - -final private class FlatMapLatest: Producer { - typealias Selector = (SourceType) throws -> S - - fileprivate let _source: Observable - fileprivate let _selector: Selector - - init(source: Observable, selector: @escaping Selector) { - self._source = source - self._selector = selector - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == S.E { - let sink = MapSwitchSink(selector: self._selector, observer: observer, cancel: cancel) - let subscription = sink.run(self._source) - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift b/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift deleted file mode 100644 index 2ce6f24..0000000 --- a/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift +++ /dev/null @@ -1,104 +0,0 @@ -// -// SwitchIfEmpty.swift -// RxSwift -// -// Created by sergdort on 23/12/2016. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - /** - Returns the elements of the specified sequence or `switchTo` sequence if the sequence is empty. - - - seealso: [DefaultIfEmpty operator on reactivex.io](http://reactivex.io/documentation/operators/defaultifempty.html) - - - parameter switchTo: Observable sequence being returned when source sequence is empty. - - returns: Observable sequence that contains elements from switchTo sequence if source is empty, otherwise returns source sequence elements. - */ - public func ifEmpty(switchTo other: Observable) -> Observable { - return SwitchIfEmpty(source: self.asObservable(), ifEmpty: other) - } -} - -final private class SwitchIfEmpty: Producer { - - private let _source: Observable - private let _ifEmpty: Observable - - init(source: Observable, ifEmpty: Observable) { - self._source = source - self._ifEmpty = ifEmpty - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = SwitchIfEmptySink(ifEmpty: self._ifEmpty, - observer: observer, - cancel: cancel) - let subscription = sink.run(self._source.asObservable()) - - return (sink: sink, subscription: subscription) - } -} - -final private class SwitchIfEmptySink: Sink - , ObserverType { - typealias E = O.E - - private let _ifEmpty: Observable - private var _isEmpty = true - private let _ifEmptySubscription = SingleAssignmentDisposable() - - init(ifEmpty: Observable, observer: O, cancel: Cancelable) { - self._ifEmpty = ifEmpty - super.init(observer: observer, cancel: cancel) - } - - func run(_ source: Observable) -> Disposable { - let subscription = source.subscribe(self) - return Disposables.create(subscription, _ifEmptySubscription) - } - - func on(_ event: Event) { - switch event { - case .next: - self._isEmpty = false - self.forwardOn(event) - case .error: - self.forwardOn(event) - self.dispose() - case .completed: - guard self._isEmpty else { - self.forwardOn(.completed) - self.dispose() - return - } - let ifEmptySink = SwitchIfEmptySinkIter(parent: self) - self._ifEmptySubscription.setDisposable(self._ifEmpty.subscribe(ifEmptySink)) - } - } -} - -final private class SwitchIfEmptySinkIter - : ObserverType { - typealias E = O.E - typealias Parent = SwitchIfEmptySink - - private let _parent: Parent - - init(parent: Parent) { - self._parent = parent - } - - func on(_ event: Event) { - switch event { - case .next: - self._parent.forwardOn(event) - case .error: - self._parent.forwardOn(event) - self._parent.dispose() - case .completed: - self._parent.forwardOn(event) - self._parent.dispose() - } - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Take.swift b/Pods/RxSwift/RxSwift/Observables/Take.swift deleted file mode 100644 index cbfb57f..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Take.swift +++ /dev/null @@ -1,180 +0,0 @@ -// -// Take.swift -// RxSwift -// -// Created by Krunoslav Zaher on 6/12/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Returns a specified number of contiguous elements from the start of an observable sequence. - - - seealso: [take operator on reactivex.io](http://reactivex.io/documentation/operators/take.html) - - - parameter count: The number of elements to return. - - returns: An observable sequence that contains the specified number of elements from the start of the input sequence. - */ - public func take(_ count: Int) - -> Observable { - if count == 0 { - return Observable.empty() - } - else { - return TakeCount(source: self.asObservable(), count: count) - } - } -} - -extension ObservableType { - - /** - Takes elements for the specified duration from the start of the observable source sequence, using the specified scheduler to run timers. - - - seealso: [take operator on reactivex.io](http://reactivex.io/documentation/operators/take.html) - - - parameter duration: Duration for taking elements from the start of the sequence. - - parameter scheduler: Scheduler to run the timer on. - - returns: An observable sequence with the elements taken during the specified duration from the start of the source sequence. - */ - public func take(_ duration: RxTimeInterval, scheduler: SchedulerType) - -> Observable { - return TakeTime(source: self.asObservable(), duration: duration, scheduler: scheduler) - } -} - -// count version - -final private class TakeCountSink: Sink, ObserverType { - typealias E = O.E - typealias Parent = TakeCount - - private let _parent: Parent - - private var _remaining: Int - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - self._remaining = parent._count - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - switch event { - case .next(let value): - - if self._remaining > 0 { - self._remaining -= 1 - - self.forwardOn(.next(value)) - - if self._remaining == 0 { - self.forwardOn(.completed) - self.dispose() - } - } - case .error: - self.forwardOn(event) - self.dispose() - case .completed: - self.forwardOn(event) - self.dispose() - } - } - -} - -final private class TakeCount: Producer { - fileprivate let _source: Observable - fileprivate let _count: Int - - init(source: Observable, count: Int) { - if count < 0 { - rxFatalError("count can't be negative") - } - self._source = source - self._count = count - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = TakeCountSink(parent: self, observer: observer, cancel: cancel) - let subscription = self._source.subscribe(sink) - return (sink: sink, subscription: subscription) - } -} - -// time version - -final private class TakeTimeSink - : Sink - , LockOwnerType - , ObserverType - , SynchronizedOnType where O.E == ElementType { - typealias Parent = TakeTime - typealias E = ElementType - - fileprivate let _parent: Parent - - let _lock = RecursiveLock() - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - self.synchronizedOn(event) - } - - func _synchronized_on(_ event: Event) { - switch event { - case .next(let value): - self.forwardOn(.next(value)) - case .error: - self.forwardOn(event) - self.dispose() - case .completed: - self.forwardOn(event) - self.dispose() - } - } - - func tick() { - self._lock.lock(); defer { self._lock.unlock() } - - self.forwardOn(.completed) - self.dispose() - } - - func run() -> Disposable { - let disposeTimer = self._parent._scheduler.scheduleRelative((), dueTime: self._parent._duration) { _ in - self.tick() - return Disposables.create() - } - - let disposeSubscription = self._parent._source.subscribe(self) - - return Disposables.create(disposeTimer, disposeSubscription) - } -} - -final private class TakeTime: Producer { - typealias TimeInterval = RxTimeInterval - - fileprivate let _source: Observable - fileprivate let _duration: TimeInterval - fileprivate let _scheduler: SchedulerType - - init(source: Observable, duration: TimeInterval, scheduler: SchedulerType) { - self._source = source - self._scheduler = scheduler - self._duration = duration - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = TakeTimeSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/TakeLast.swift b/Pods/RxSwift/RxSwift/Observables/TakeLast.swift deleted file mode 100644 index 2267296..0000000 --- a/Pods/RxSwift/RxSwift/Observables/TakeLast.swift +++ /dev/null @@ -1,78 +0,0 @@ -// -// TakeLast.swift -// RxSwift -// -// Created by Tomi Koskinen on 25/10/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Returns a specified number of contiguous elements from the end of an observable sequence. - - This operator accumulates a buffer with a length enough to store elements count elements. Upon completion of the source sequence, this buffer is drained on the result sequence. This causes the elements to be delayed. - - - seealso: [takeLast operator on reactivex.io](http://reactivex.io/documentation/operators/takelast.html) - - - parameter count: Number of elements to take from the end of the source sequence. - - returns: An observable sequence containing the specified number of elements from the end of the source sequence. - */ - public func takeLast(_ count: Int) - -> Observable { - return TakeLast(source: self.asObservable(), count: count) - } -} - -final private class TakeLastSink: Sink, ObserverType { - typealias E = O.E - typealias Parent = TakeLast - - private let _parent: Parent - - private var _elements: Queue - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - self._elements = Queue(capacity: parent._count + 1) - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - switch event { - case .next(let value): - self._elements.enqueue(value) - if self._elements.count > self._parent._count { - _ = self._elements.dequeue() - } - case .error: - self.forwardOn(event) - self.dispose() - case .completed: - for e in self._elements { - self.forwardOn(.next(e)) - } - self.forwardOn(.completed) - self.dispose() - } - } -} - -final private class TakeLast: Producer { - fileprivate let _source: Observable - fileprivate let _count: Int - - init(source: Observable, count: Int) { - if count < 0 { - rxFatalError("count can't be negative") - } - self._source = source - self._count = count - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = TakeLastSink(parent: self, observer: observer, cancel: cancel) - let subscription = self._source.subscribe(sink) - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift b/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift deleted file mode 100644 index b0d6927..0000000 --- a/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift +++ /dev/null @@ -1,227 +0,0 @@ -// -// TakeUntil.swift -// RxSwift -// -// Created by Krunoslav Zaher on 6/7/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Returns the elements from the source observable sequence until the other observable sequence produces an element. - - - seealso: [takeUntil operator on reactivex.io](http://reactivex.io/documentation/operators/takeuntil.html) - - - parameter other: Observable sequence that terminates propagation of elements of the source sequence. - - returns: An observable sequence containing the elements of the source sequence up to the point the other sequence interrupted further propagation. - */ - public func takeUntil(_ other: O) - -> Observable { - return TakeUntil(source: self.asObservable(), other: other.asObservable()) - } - - /** - Returns elements from an observable sequence until the specified condition is true. - - - seealso: [takeUntil operator on reactivex.io](http://reactivex.io/documentation/operators/takeuntil.html) - - - parameter behavior: Whether or not to include the last element matching the predicate. - - parameter predicate: A function to test each element for a condition. - - returns: An observable sequence that contains the elements from the input sequence that occur before the element at which the test passes. - */ - public func takeUntil(_ behavior: TakeUntilBehavior, - predicate: @escaping (E) throws -> Bool) - -> Observable { - return TakeUntilPredicate(source: self.asObservable(), - behavior: behavior, - predicate: predicate) - } -} - -/// Behaviors for the `takeUntil(_ behavior:predicate:)` operator. -public enum TakeUntilBehavior { - /// Include the last element matching the predicate. - case inclusive - - /// Exclude the last element matching the predicate. - case exclusive -} - -// MARK: - TakeUntil Observable -final private class TakeUntilSinkOther - : ObserverType - , LockOwnerType - , SynchronizedOnType { - typealias Parent = TakeUntilSink - typealias E = Other - - fileprivate let _parent: Parent - - var _lock: RecursiveLock { - return self._parent._lock - } - - fileprivate let _subscription = SingleAssignmentDisposable() - - init(parent: Parent) { - self._parent = parent -#if TRACE_RESOURCES - _ = Resources.incrementTotal() -#endif - } - - func on(_ event: Event) { - self.synchronizedOn(event) - } - - func _synchronized_on(_ event: Event) { - switch event { - case .next: - self._parent.forwardOn(.completed) - self._parent.dispose() - case .error(let e): - self._parent.forwardOn(.error(e)) - self._parent.dispose() - case .completed: - self._subscription.dispose() - } - } - -#if TRACE_RESOURCES - deinit { - _ = Resources.decrementTotal() - } -#endif -} - -final private class TakeUntilSink - : Sink - , LockOwnerType - , ObserverType - , SynchronizedOnType { - typealias E = O.E - typealias Parent = TakeUntil - - fileprivate let _parent: Parent - - let _lock = RecursiveLock() - - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - self.synchronizedOn(event) - } - - func _synchronized_on(_ event: Event) { - switch event { - case .next: - self.forwardOn(event) - case .error: - self.forwardOn(event) - self.dispose() - case .completed: - self.forwardOn(event) - self.dispose() - } - } - - func run() -> Disposable { - let otherObserver = TakeUntilSinkOther(parent: self) - let otherSubscription = self._parent._other.subscribe(otherObserver) - otherObserver._subscription.setDisposable(otherSubscription) - let sourceSubscription = self._parent._source.subscribe(self) - - return Disposables.create(sourceSubscription, otherObserver._subscription) - } -} - -final private class TakeUntil: Producer { - - fileprivate let _source: Observable - fileprivate let _other: Observable - - init(source: Observable, other: Observable) { - self._source = source - self._other = other - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = TakeUntilSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} - -// MARK: - TakeUntil Predicate -final private class TakeUntilPredicateSink - : Sink, ObserverType { - typealias Element = O.E - typealias Parent = TakeUntilPredicate - - fileprivate let _parent: Parent - fileprivate var _running = true - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - switch event { - case .next(let value): - if !self._running { - return - } - - do { - self._running = try !self._parent._predicate(value) - } catch let e { - self.forwardOn(.error(e)) - self.dispose() - return - } - - if self._running { - self.forwardOn(.next(value)) - } else { - if self._parent._behavior == .inclusive { - self.forwardOn(.next(value)) - } - - self.forwardOn(.completed) - self.dispose() - } - case .error, .completed: - self.forwardOn(event) - self.dispose() - } - } - -} - -final private class TakeUntilPredicate: Producer { - typealias Predicate = (Element) throws -> Bool - - fileprivate let _source: Observable - fileprivate let _predicate: Predicate - fileprivate let _behavior: TakeUntilBehavior - - init(source: Observable, - behavior: TakeUntilBehavior, - predicate: @escaping Predicate) { - self._source = source - self._behavior = behavior - self._predicate = predicate - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = TakeUntilPredicateSink(parent: self, observer: observer, cancel: cancel) - let subscription = self._source.subscribe(sink) - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift b/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift deleted file mode 100644 index 1e866f8..0000000 --- a/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift +++ /dev/null @@ -1,85 +0,0 @@ -// -// TakeWhile.swift -// RxSwift -// -// Created by Krunoslav Zaher on 6/7/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Returns elements from an observable sequence as long as a specified condition is true. - - - seealso: [takeWhile operator on reactivex.io](http://reactivex.io/documentation/operators/takewhile.html) - - - parameter predicate: A function to test each element for a condition. - - returns: An observable sequence that contains the elements from the input sequence that occur before the element at which the test no longer passes. - */ - public func takeWhile(_ predicate: @escaping (E) throws -> Bool) - -> Observable { - return TakeWhile(source: self.asObservable(), predicate: predicate) - } -} - -final private class TakeWhileSink - : Sink - , ObserverType { - typealias Element = O.E - typealias Parent = TakeWhile - - fileprivate let _parent: Parent - - fileprivate var _running = true - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - switch event { - case .next(let value): - if !self._running { - return - } - - do { - self._running = try self._parent._predicate(value) - } catch let e { - self.forwardOn(.error(e)) - self.dispose() - return - } - - if self._running { - self.forwardOn(.next(value)) - } else { - self.forwardOn(.completed) - self.dispose() - } - case .error, .completed: - self.forwardOn(event) - self.dispose() - } - } - -} - -final private class TakeWhile: Producer { - typealias Predicate = (Element) throws -> Bool - - fileprivate let _source: Observable - fileprivate let _predicate: Predicate - - init(source: Observable, predicate: @escaping Predicate) { - self._source = source - self._predicate = predicate - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = TakeWhileSink(parent: self, observer: observer, cancel: cancel) - let subscription = self._source.subscribe(sink) - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Throttle.swift b/Pods/RxSwift/RxSwift/Observables/Throttle.swift deleted file mode 100644 index c31ae74..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Throttle.swift +++ /dev/null @@ -1,162 +0,0 @@ -// -// Throttle.swift -// RxSwift -// -// Created by Krunoslav Zaher on 3/22/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import struct Foundation.Date - -extension ObservableType { - - /** - Returns an Observable that emits the first and the latest item emitted by the source Observable during sequential time windows of a specified duration. - - This operator makes sure that no two elements are emitted in less then dueTime. - - - seealso: [debounce operator on reactivex.io](http://reactivex.io/documentation/operators/debounce.html) - - - parameter dueTime: Throttling duration for each element. - - parameter latest: Should latest element received in a dueTime wide time window since last element emission be emitted. - - parameter scheduler: Scheduler to run the throttle timers on. - - returns: The throttled sequence. - */ - public func throttle(_ dueTime: RxTimeInterval, latest: Bool = true, scheduler: SchedulerType) - -> Observable { - return Throttle(source: self.asObservable(), dueTime: dueTime, latest: latest, scheduler: scheduler) - } -} - -final private class ThrottleSink - : Sink - , ObserverType - , LockOwnerType - , SynchronizedOnType { - typealias Element = O.E - typealias ParentType = Throttle - - private let _parent: ParentType - - let _lock = RecursiveLock() - - // state - private var _lastUnsentElement: Element? - private var _lastSentTime: Date? - private var _completed: Bool = false - - let cancellable = SerialDisposable() - - init(parent: ParentType, observer: O, cancel: Cancelable) { - self._parent = parent - - super.init(observer: observer, cancel: cancel) - } - - func run() -> Disposable { - let subscription = self._parent._source.subscribe(self) - - return Disposables.create(subscription, cancellable) - } - - func on(_ event: Event) { - self.synchronizedOn(event) - } - - func _synchronized_on(_ event: Event) { - switch event { - case .next(let element): - let now = self._parent._scheduler.now - - let timeIntervalSinceLast: RxTimeInterval - - if let lastSendingTime = self._lastSentTime { - timeIntervalSinceLast = now.timeIntervalSince(lastSendingTime) - } - else { - timeIntervalSinceLast = self._parent._dueTime - } - - let couldSendNow = timeIntervalSinceLast >= self._parent._dueTime - - if couldSendNow { - self.sendNow(element: element) - return - } - - if !self._parent._latest { - return - } - - let isThereAlreadyInFlightRequest = self._lastUnsentElement != nil - - self._lastUnsentElement = element - - if isThereAlreadyInFlightRequest { - return - } - - let scheduler = self._parent._scheduler - let dueTime = self._parent._dueTime - - let d = SingleAssignmentDisposable() - self.cancellable.disposable = d - - d.setDisposable(scheduler.scheduleRelative(0, dueTime: dueTime - timeIntervalSinceLast, action: self.propagate)) - case .error: - self._lastUnsentElement = nil - self.forwardOn(event) - self.dispose() - case .completed: - if self._lastUnsentElement != nil { - self._completed = true - } - else { - self.forwardOn(.completed) - self.dispose() - } - } - } - - private func sendNow(element: Element) { - self._lastUnsentElement = nil - self.forwardOn(.next(element)) - // in case element processing takes a while, this should give some more room - self._lastSentTime = self._parent._scheduler.now - } - - func propagate(_: Int) -> Disposable { - self._lock.lock(); defer { self._lock.unlock() } // { - if let lastUnsentElement = self._lastUnsentElement { - self.sendNow(element: lastUnsentElement) - } - - if self._completed { - self.forwardOn(.completed) - self.dispose() - } - // } - return Disposables.create() - } -} - -final private class Throttle: Producer { - fileprivate let _source: Observable - fileprivate let _dueTime: RxTimeInterval - fileprivate let _latest: Bool - fileprivate let _scheduler: SchedulerType - - init(source: Observable, dueTime: RxTimeInterval, latest: Bool, scheduler: SchedulerType) { - self._source = source - self._dueTime = dueTime - self._latest = latest - self._scheduler = scheduler - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = ThrottleSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } - -} diff --git a/Pods/RxSwift/RxSwift/Observables/Timeout.swift b/Pods/RxSwift/RxSwift/Observables/Timeout.swift deleted file mode 100644 index f37bf76..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Timeout.swift +++ /dev/null @@ -1,151 +0,0 @@ -// -// Timeout.swift -// RxSwift -// -// Created by Tomi Koskinen on 13/11/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Applies a timeout policy for each element in the observable sequence. If the next element isn't received within the specified timeout duration starting from its predecessor, a TimeoutError is propagated to the observer. - - - seealso: [timeout operator on reactivex.io](http://reactivex.io/documentation/operators/timeout.html) - - - parameter dueTime: Maximum duration between values before a timeout occurs. - - parameter scheduler: Scheduler to run the timeout timer on. - - returns: An observable sequence with a `RxError.timeout` in case of a timeout. - */ - public func timeout(_ dueTime: RxTimeInterval, scheduler: SchedulerType) - -> Observable { - return Timeout(source: self.asObservable(), dueTime: dueTime, other: Observable.error(RxError.timeout), scheduler: scheduler) - } - - /** - Applies a timeout policy for each element in the observable sequence, using the specified scheduler to run timeout timers. If the next element isn't received within the specified timeout duration starting from its predecessor, the other observable sequence is used to produce future messages from that point on. - - - seealso: [timeout operator on reactivex.io](http://reactivex.io/documentation/operators/timeout.html) - - - parameter dueTime: Maximum duration between values before a timeout occurs. - - parameter other: Sequence to return in case of a timeout. - - parameter scheduler: Scheduler to run the timeout timer on. - - returns: The source sequence switching to the other sequence in case of a timeout. - */ - public func timeout(_ dueTime: RxTimeInterval, other: O, scheduler: SchedulerType) - -> Observable where E == O.E { - return Timeout(source: self.asObservable(), dueTime: dueTime, other: other.asObservable(), scheduler: scheduler) - } -} - -final private class TimeoutSink: Sink, LockOwnerType, ObserverType { - typealias E = O.E - typealias Parent = Timeout - - private let _parent: Parent - - let _lock = RecursiveLock() - - private let _timerD = SerialDisposable() - private let _subscription = SerialDisposable() - - private var _id = 0 - private var _switched = false - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(observer: observer, cancel: cancel) - } - - func run() -> Disposable { - let original = SingleAssignmentDisposable() - self._subscription.disposable = original - - self._createTimeoutTimer() - - original.setDisposable(self._parent._source.subscribe(self)) - - return Disposables.create(_subscription, _timerD) - } - - func on(_ event: Event) { - switch event { - case .next: - var onNextWins = false - - self._lock.performLocked { - onNextWins = !self._switched - if onNextWins { - self._id = self._id &+ 1 - } - } - - if onNextWins { - self.forwardOn(event) - self._createTimeoutTimer() - } - case .error, .completed: - var onEventWins = false - - self._lock.performLocked { - onEventWins = !self._switched - if onEventWins { - self._id = self._id &+ 1 - } - } - - if onEventWins { - self.forwardOn(event) - self.dispose() - } - } - } - - private func _createTimeoutTimer() { - if self._timerD.isDisposed { - return - } - - let nextTimer = SingleAssignmentDisposable() - self._timerD.disposable = nextTimer - - let disposeSchedule = self._parent._scheduler.scheduleRelative(self._id, dueTime: self._parent._dueTime) { state in - - var timerWins = false - - self._lock.performLocked { - self._switched = (state == self._id) - timerWins = self._switched - } - - if timerWins { - self._subscription.disposable = self._parent._other.subscribe(self.forwarder()) - } - - return Disposables.create() - } - - nextTimer.setDisposable(disposeSchedule) - } -} - - -final private class Timeout: Producer { - fileprivate let _source: Observable - fileprivate let _dueTime: RxTimeInterval - fileprivate let _other: Observable - fileprivate let _scheduler: SchedulerType - - init(source: Observable, dueTime: RxTimeInterval, other: Observable, scheduler: SchedulerType) { - self._source = source - self._dueTime = dueTime - self._other = other - self._scheduler = scheduler - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { - let sink = TimeoutSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Timer.swift b/Pods/RxSwift/RxSwift/Observables/Timer.swift deleted file mode 100644 index 1715e1e..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Timer.swift +++ /dev/null @@ -1,116 +0,0 @@ -// -// Timer.swift -// RxSwift -// -// Created by Krunoslav Zaher on 6/7/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType where E : RxAbstractInteger { - /** - Returns an observable sequence that produces a value after each period, using the specified scheduler to run timers and to send out observer messages. - - - seealso: [interval operator on reactivex.io](http://reactivex.io/documentation/operators/interval.html) - - - parameter period: Period for producing the values in the resulting sequence. - - parameter scheduler: Scheduler to run the timer on. - - returns: An observable sequence that produces a value after each period. - */ - public static func interval(_ period: RxTimeInterval, scheduler: SchedulerType) - -> Observable { - return Timer( - dueTime: period, - period: period, - scheduler: scheduler - ) - } -} - -extension ObservableType where E: RxAbstractInteger { - /** - Returns an observable sequence that periodically produces a value after the specified initial relative due time has elapsed, using the specified scheduler to run timers. - - - seealso: [timer operator on reactivex.io](http://reactivex.io/documentation/operators/timer.html) - - - parameter dueTime: Relative time at which to produce the first value. - - parameter period: Period to produce subsequent values. - - parameter scheduler: Scheduler to run timers on. - - returns: An observable sequence that produces a value after due time has elapsed and then each period. - */ - public static func timer(_ dueTime: RxTimeInterval, period: RxTimeInterval? = nil, scheduler: SchedulerType) - -> Observable { - return Timer( - dueTime: dueTime, - period: period, - scheduler: scheduler - ) - } -} - -import Foundation - -final private class TimerSink : Sink where O.E : RxAbstractInteger { - typealias Parent = Timer - - private let _parent: Parent - private let _lock = RecursiveLock() - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(observer: observer, cancel: cancel) - } - - func run() -> Disposable { - return self._parent._scheduler.schedulePeriodic(0 as O.E, startAfter: self._parent._dueTime, period: self._parent._period!) { state in - self._lock.lock(); defer { self._lock.unlock() } - self.forwardOn(.next(state)) - return state &+ 1 - } - } -} - -final private class TimerOneOffSink: Sink where O.E: RxAbstractInteger { - typealias Parent = Timer - - private let _parent: Parent - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(observer: observer, cancel: cancel) - } - - func run() -> Disposable { - return self._parent._scheduler.scheduleRelative(self, dueTime: self._parent._dueTime) { [unowned self] _ -> Disposable in - self.forwardOn(.next(0)) - self.forwardOn(.completed) - self.dispose() - - return Disposables.create() - } - } -} - -final private class Timer: Producer { - fileprivate let _scheduler: SchedulerType - fileprivate let _dueTime: RxTimeInterval - fileprivate let _period: RxTimeInterval? - - init(dueTime: RxTimeInterval, period: RxTimeInterval?, scheduler: SchedulerType) { - self._scheduler = scheduler - self._dueTime = dueTime - self._period = period - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == E { - if self._period != nil { - let sink = TimerSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } - else { - let sink = TimerOneOffSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/ToArray.swift b/Pods/RxSwift/RxSwift/Observables/ToArray.swift deleted file mode 100644 index 5cf1aa4..0000000 --- a/Pods/RxSwift/RxSwift/Observables/ToArray.swift +++ /dev/null @@ -1,66 +0,0 @@ -// -// ToArray.swift -// RxSwift -// -// Created by Junior B. on 20/10/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - - -extension ObservableType { - - /** - Converts an Observable into another Observable that emits the whole sequence as a single array and then terminates. - - For aggregation behavior see `reduce`. - - - seealso: [toArray operator on reactivex.io](http://reactivex.io/documentation/operators/to.html) - - - returns: An observable sequence containing all the emitted elements as array. - */ - public func toArray() - -> Observable<[E]> { - return ToArray(source: self.asObservable()) - } -} - -final private class ToArraySink: Sink, ObserverType where O.E == [SourceType] { - typealias Parent = ToArray - - let _parent: Parent - var _list = [SourceType]() - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event) { - switch event { - case .next(let value): - self._list.append(value) - case .error(let e): - self.forwardOn(.error(e)) - self.dispose() - case .completed: - self.forwardOn(.next(self._list)) - self.forwardOn(.completed) - self.dispose() - } - } -} - -final private class ToArray: Producer<[SourceType]> { - let _source: Observable - - init(source: Observable) { - self._source = source - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == [SourceType] { - let sink = ToArraySink(parent: self, observer: observer, cancel: cancel) - let subscription = self._source.subscribe(sink) - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Using.swift b/Pods/RxSwift/RxSwift/Observables/Using.swift deleted file mode 100644 index 3651dc9..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Using.swift +++ /dev/null @@ -1,90 +0,0 @@ -// -// Using.swift -// RxSwift -// -// Created by Yury Korolev on 10/15/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - /** - Constructs an observable sequence that depends on a resource object, whose lifetime is tied to the resulting observable sequence's lifetime. - - - seealso: [using operator on reactivex.io](http://reactivex.io/documentation/operators/using.html) - - - parameter resourceFactory: Factory function to obtain a resource object. - - parameter observableFactory: Factory function to obtain an observable sequence that depends on the obtained resource. - - returns: An observable sequence whose lifetime controls the lifetime of the dependent resource object. - */ - public static func using(_ resourceFactory: @escaping () throws -> Resource, observableFactory: @escaping (Resource) throws -> Observable) -> Observable { - return Using(resourceFactory: resourceFactory, observableFactory: observableFactory) - } -} - -final private class UsingSink: Sink, ObserverType { - typealias SourceType = O.E - typealias Parent = Using - - private let _parent: Parent - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(observer: observer, cancel: cancel) - } - - func run() -> Disposable { - var disposable = Disposables.create() - - do { - let resource = try self._parent._resourceFactory() - disposable = resource - let source = try self._parent._observableFactory(resource) - - return Disposables.create( - source.subscribe(self), - disposable - ) - } catch let error { - return Disposables.create( - Observable.error(error).subscribe(self), - disposable - ) - } - } - - func on(_ event: Event) { - switch event { - case let .next(value): - self.forwardOn(.next(value)) - case let .error(error): - self.forwardOn(.error(error)) - self.dispose() - case .completed: - self.forwardOn(.completed) - self.dispose() - } - } -} - -final private class Using: Producer { - - typealias E = SourceType - - typealias ResourceFactory = () throws -> ResourceType - typealias ObservableFactory = (ResourceType) throws -> Observable - - fileprivate let _resourceFactory: ResourceFactory - fileprivate let _observableFactory: ObservableFactory - - - init(resourceFactory: @escaping ResourceFactory, observableFactory: @escaping ObservableFactory) { - self._resourceFactory = resourceFactory - self._observableFactory = observableFactory - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == E { - let sink = UsingSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Window.swift b/Pods/RxSwift/RxSwift/Observables/Window.swift deleted file mode 100644 index 5de452c..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Window.swift +++ /dev/null @@ -1,169 +0,0 @@ -// -// Window.swift -// RxSwift -// -// Created by Junior B. on 29/10/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Projects each element of an observable sequence into a window that is completed when either it’s full or a given amount of time has elapsed. - - - seealso: [window operator on reactivex.io](http://reactivex.io/documentation/operators/window.html) - - - parameter timeSpan: Maximum time length of a window. - - parameter count: Maximum element count of a window. - - parameter scheduler: Scheduler to run windowing timers on. - - returns: An observable sequence of windows (instances of `Observable`). - */ - public func window(timeSpan: RxTimeInterval, count: Int, scheduler: SchedulerType) - -> Observable> { - return WindowTimeCount(source: self.asObservable(), timeSpan: timeSpan, count: count, scheduler: scheduler) - } -} - -final private class WindowTimeCountSink - : Sink - , ObserverType - , LockOwnerType - , SynchronizedOnType where O.E == Observable { - typealias Parent = WindowTimeCount - typealias E = Element - - private let _parent: Parent - - let _lock = RecursiveLock() - - private var _subject = PublishSubject() - private var _count = 0 - private var _windowId = 0 - - private let _timerD = SerialDisposable() - private let _refCountDisposable: RefCountDisposable - private let _groupDisposable = CompositeDisposable() - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - - _ = self._groupDisposable.insert(self._timerD) - - self._refCountDisposable = RefCountDisposable(disposable: self._groupDisposable) - super.init(observer: observer, cancel: cancel) - } - - func run() -> Disposable { - - self.forwardOn(.next(AddRef(source: self._subject, refCount: self._refCountDisposable).asObservable())) - self.createTimer(self._windowId) - - _ = self._groupDisposable.insert(self._parent._source.subscribe(self)) - return self._refCountDisposable - } - - func startNewWindowAndCompleteCurrentOne() { - self._subject.on(.completed) - self._subject = PublishSubject() - - self.forwardOn(.next(AddRef(source: self._subject, refCount: self._refCountDisposable).asObservable())) - } - - func on(_ event: Event) { - self.synchronizedOn(event) - } - - func _synchronized_on(_ event: Event) { - var newWindow = false - var newId = 0 - - switch event { - case .next(let element): - self._subject.on(.next(element)) - - do { - _ = try incrementChecked(&self._count) - } catch let e { - self._subject.on(.error(e as Swift.Error)) - self.dispose() - } - - if self._count == self._parent._count { - newWindow = true - self._count = 0 - self._windowId += 1 - newId = self._windowId - self.startNewWindowAndCompleteCurrentOne() - } - - case .error(let error): - self._subject.on(.error(error)) - self.forwardOn(.error(error)) - self.dispose() - case .completed: - self._subject.on(.completed) - self.forwardOn(.completed) - self.dispose() - } - - if newWindow { - self.createTimer(newId) - } - } - - func createTimer(_ windowId: Int) { - if self._timerD.isDisposed { - return - } - - if self._windowId != windowId { - return - } - - let nextTimer = SingleAssignmentDisposable() - - self._timerD.disposable = nextTimer - - let scheduledRelative = self._parent._scheduler.scheduleRelative(windowId, dueTime: self._parent._timeSpan) { previousWindowId in - - var newId = 0 - - self._lock.performLocked { - if previousWindowId != self._windowId { - return - } - - self._count = 0 - self._windowId = self._windowId &+ 1 - newId = self._windowId - self.startNewWindowAndCompleteCurrentOne() - } - - self.createTimer(newId) - - return Disposables.create() - } - - nextTimer.setDisposable(scheduledRelative) - } -} - -final private class WindowTimeCount: Producer> { - fileprivate let _timeSpan: RxTimeInterval - fileprivate let _count: Int - fileprivate let _scheduler: SchedulerType - fileprivate let _source: Observable - - init(source: Observable, timeSpan: RxTimeInterval, count: Int, scheduler: SchedulerType) { - self._source = source - self._timeSpan = timeSpan - self._count = count - self._scheduler = scheduler - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Observable { - let sink = WindowTimeCountSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift b/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift deleted file mode 100644 index 1a1b594..0000000 --- a/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift +++ /dev/null @@ -1,149 +0,0 @@ -// -// WithLatestFrom.swift -// RxSwift -// -// Created by Yury Korolev on 10/19/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - - /** - Merges two observable sequences into one observable sequence by combining each element from self with the latest element from the second source, if any. - - - seealso: [combineLatest operator on reactivex.io](http://reactivex.io/documentation/operators/combinelatest.html) - - - parameter second: Second observable source. - - parameter resultSelector: Function to invoke for each element from the self combined with the latest element from the second source, if any. - - returns: An observable sequence containing the result of combining each element of the self with the latest element from the second source, if any, using the specified result selector function. - */ - public func withLatestFrom(_ second: SecondO, resultSelector: @escaping (E, SecondO.E) throws -> ResultType) -> Observable { - return WithLatestFrom(first: self.asObservable(), second: second.asObservable(), resultSelector: resultSelector) - } - - /** - Merges two observable sequences into one observable sequence by using latest element from the second sequence every time when `self` emits an element. - - - seealso: [combineLatest operator on reactivex.io](http://reactivex.io/documentation/operators/combinelatest.html) - - - parameter second: Second observable source. - - returns: An observable sequence containing the result of combining each element of the self with the latest element from the second source, if any, using the specified result selector function. - */ - public func withLatestFrom(_ second: SecondO) -> Observable { - return WithLatestFrom(first: self.asObservable(), second: second.asObservable(), resultSelector: { $1 }) - } -} - -final private class WithLatestFromSink - : Sink - , ObserverType - , LockOwnerType - , SynchronizedOnType { - typealias ResultType = O.E - typealias Parent = WithLatestFrom - typealias E = FirstType - - fileprivate let _parent: Parent - - var _lock = RecursiveLock() - fileprivate var _latest: SecondType? - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - - super.init(observer: observer, cancel: cancel) - } - - func run() -> Disposable { - let sndSubscription = SingleAssignmentDisposable() - let sndO = WithLatestFromSecond(parent: self, disposable: sndSubscription) - - sndSubscription.setDisposable(self._parent._second.subscribe(sndO)) - let fstSubscription = self._parent._first.subscribe(self) - - return Disposables.create(fstSubscription, sndSubscription) - } - - func on(_ event: Event) { - self.synchronizedOn(event) - } - - func _synchronized_on(_ event: Event) { - switch event { - case let .next(value): - guard let latest = self._latest else { return } - do { - let res = try self._parent._resultSelector(value, latest) - - self.forwardOn(.next(res)) - } catch let e { - self.forwardOn(.error(e)) - self.dispose() - } - case .completed: - self.forwardOn(.completed) - self.dispose() - case let .error(error): - self.forwardOn(.error(error)) - self.dispose() - } - } -} - -final private class WithLatestFromSecond - : ObserverType - , LockOwnerType - , SynchronizedOnType { - - typealias ResultType = O.E - typealias Parent = WithLatestFromSink - typealias E = SecondType - - private let _parent: Parent - private let _disposable: Disposable - - var _lock: RecursiveLock { - return self._parent._lock - } - - init(parent: Parent, disposable: Disposable) { - self._parent = parent - self._disposable = disposable - } - - func on(_ event: Event) { - self.synchronizedOn(event) - } - - func _synchronized_on(_ event: Event) { - switch event { - case let .next(value): - self._parent._latest = value - case .completed: - self._disposable.dispose() - case let .error(error): - self._parent.forwardOn(.error(error)) - self._parent.dispose() - } - } -} - -final private class WithLatestFrom: Producer { - typealias ResultSelector = (FirstType, SecondType) throws -> ResultType - - fileprivate let _first: Observable - fileprivate let _second: Observable - fileprivate let _resultSelector: ResultSelector - - init(first: Observable, second: Observable, resultSelector: @escaping ResultSelector) { - self._first = first - self._second = second - self._resultSelector = resultSelector - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == ResultType { - let sink = WithLatestFromSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift b/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift deleted file mode 100644 index c2b5819..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift +++ /dev/null @@ -1,169 +0,0 @@ -// -// Zip+Collection.swift -// RxSwift -// -// Created by Krunoslav Zaher on 8/30/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -extension ObservableType { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences have produced an element at a corresponding index. - - - seealso: [zip operator on reactivex.io](http://reactivex.io/documentation/operators/zip.html) - - - parameter resultSelector: Function to invoke for each series of elements at corresponding indexes in the sources. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func zip(_ collection: C, _ resultSelector: @escaping ([C.Iterator.Element.E]) throws -> E) -> Observable - where C.Iterator.Element: ObservableType { - return ZipCollectionType(sources: collection, resultSelector: resultSelector) - } - - /** - Merges the specified observable sequences into one observable sequence whenever all of the observable sequences have produced an element at a corresponding index. - - - seealso: [zip operator on reactivex.io](http://reactivex.io/documentation/operators/zip.html) - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func zip(_ collection: C) -> Observable<[E]> - where C.Iterator.Element: ObservableType, C.Iterator.Element.E == E { - return ZipCollectionType(sources: collection, resultSelector: { $0 }) - } - -} - -final private class ZipCollectionTypeSink - : Sink where C.Iterator.Element: ObservableConvertibleType { - typealias R = O.E - typealias Parent = ZipCollectionType - typealias SourceElement = C.Iterator.Element.E - - private let _parent: Parent - - private let _lock = RecursiveLock() - - // state - private var _numberOfValues = 0 - private var _values: [Queue] - private var _isDone: [Bool] - private var _numberOfDone = 0 - private var _subscriptions: [SingleAssignmentDisposable] - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - self._values = [Queue](repeating: Queue(capacity: 4), count: parent.count) - self._isDone = [Bool](repeating: false, count: parent.count) - self._subscriptions = [SingleAssignmentDisposable]() - self._subscriptions.reserveCapacity(parent.count) - - for _ in 0 ..< parent.count { - self._subscriptions.append(SingleAssignmentDisposable()) - } - - super.init(observer: observer, cancel: cancel) - } - - func on(_ event: Event, atIndex: Int) { - self._lock.lock(); defer { self._lock.unlock() } // { - switch event { - case .next(let element): - self._values[atIndex].enqueue(element) - - if self._values[atIndex].count == 1 { - self._numberOfValues += 1 - } - - if self._numberOfValues < self._parent.count { - if self._numberOfDone == self._parent.count - 1 { - self.forwardOn(.completed) - self.dispose() - } - return - } - - do { - var arguments = [SourceElement]() - arguments.reserveCapacity(self._parent.count) - - // recalculate number of values - self._numberOfValues = 0 - - for i in 0 ..< self._values.count { - arguments.append(self._values[i].dequeue()!) - if !self._values[i].isEmpty { - self._numberOfValues += 1 - } - } - - let result = try self._parent.resultSelector(arguments) - self.forwardOn(.next(result)) - } - catch let error { - self.forwardOn(.error(error)) - self.dispose() - } - - case .error(let error): - self.forwardOn(.error(error)) - self.dispose() - case .completed: - if self._isDone[atIndex] { - return - } - - self._isDone[atIndex] = true - self._numberOfDone += 1 - - if self._numberOfDone == self._parent.count { - self.forwardOn(.completed) - self.dispose() - } - else { - self._subscriptions[atIndex].dispose() - } - } - // } - } - - func run() -> Disposable { - var j = 0 - for i in self._parent.sources { - let index = j - let source = i.asObservable() - - let disposable = source.subscribe(AnyObserver { event in - self.on(event, atIndex: index) - }) - self._subscriptions[j].setDisposable(disposable) - j += 1 - } - - if self._parent.sources.isEmpty { - self.forwardOn(.completed) - } - - return Disposables.create(_subscriptions) - } -} - -final private class ZipCollectionType: Producer where C.Iterator.Element: ObservableConvertibleType { - typealias ResultSelector = ([C.Iterator.Element.E]) throws -> R - - let sources: C - let resultSelector: ResultSelector - let count: Int - - init(sources: C, resultSelector: @escaping ResultSelector) { - self.sources = sources - self.resultSelector = resultSelector - self.count = Int(Int64(self.sources.count)) - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == R { - let sink = ZipCollectionTypeSink(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} diff --git a/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift b/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift deleted file mode 100644 index ee4736b..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift +++ /dev/null @@ -1,948 +0,0 @@ -// This file is autogenerated. Take a look at `Preprocessor` target in RxSwift project -// -// Zip+arity.swift -// RxSwift -// -// Created by Krunoslav Zaher on 5/23/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - - - -// 2 - -extension ObservableType { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences have produced an element at a corresponding index. - - - seealso: [zip operator on reactivex.io](http://reactivex.io/documentation/operators/zip.html) - - - parameter resultSelector: Function to invoke for each series of elements at corresponding indexes in the sources. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func zip - (_ source1: O1, _ source2: O2, resultSelector: @escaping (O1.E, O2.E) throws -> E) - -> Observable { - return Zip2( - source1: source1.asObservable(), source2: source2.asObservable(), - resultSelector: resultSelector - ) - } -} - -extension ObservableType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of tuples whenever all of the observable sequences have produced an element at a corresponding index. - - - seealso: [zip operator on reactivex.io](http://reactivex.io/documentation/operators/zip.html) - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func zip - (_ source1: O1, _ source2: O2) - -> Observable<(O1.E, O2.E)> { - return Zip2( - source1: source1.asObservable(), source2: source2.asObservable(), - resultSelector: { ($0, $1) } - ) - } -} - -final class ZipSink2_ : ZipSink { - typealias R = O.E - typealias Parent = Zip2 - - let _parent: Parent - - var _values1: Queue = Queue(capacity: 2) - var _values2: Queue = Queue(capacity: 2) - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(arity: 2, observer: observer, cancel: cancel) - } - - override func hasElements(_ index: Int) -> Bool { - switch index { - case 0: return !self._values1.isEmpty - case 1: return !self._values2.isEmpty - - default: - rxFatalError("Unhandled case (Function)") - } - - return false - } - - func run() -> Disposable { - let subscription1 = SingleAssignmentDisposable() - let subscription2 = SingleAssignmentDisposable() - - let observer1 = ZipObserver(lock: self._lock, parent: self, index: 0, setNextValue: { self._values1.enqueue($0) }, this: subscription1) - let observer2 = ZipObserver(lock: self._lock, parent: self, index: 1, setNextValue: { self._values2.enqueue($0) }, this: subscription2) - - subscription1.setDisposable(self._parent.source1.subscribe(observer1)) - subscription2.setDisposable(self._parent.source2.subscribe(observer2)) - - return Disposables.create([ - subscription1, - subscription2 - ]) - } - - override func getResult() throws -> R { - return try self._parent._resultSelector(self._values1.dequeue()!, self._values2.dequeue()!) - } -} - -final class Zip2 : Producer { - typealias ResultSelector = (E1, E2) throws -> R - - let source1: Observable - let source2: Observable - - let _resultSelector: ResultSelector - - init(source1: Observable, source2: Observable, resultSelector: @escaping ResultSelector) { - self.source1 = source1 - self.source2 = source2 - - self._resultSelector = resultSelector - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == R { - let sink = ZipSink2_(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} - - - -// 3 - -extension ObservableType { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences have produced an element at a corresponding index. - - - seealso: [zip operator on reactivex.io](http://reactivex.io/documentation/operators/zip.html) - - - parameter resultSelector: Function to invoke for each series of elements at corresponding indexes in the sources. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3, resultSelector: @escaping (O1.E, O2.E, O3.E) throws -> E) - -> Observable { - return Zip3( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), - resultSelector: resultSelector - ) - } -} - -extension ObservableType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of tuples whenever all of the observable sequences have produced an element at a corresponding index. - - - seealso: [zip operator on reactivex.io](http://reactivex.io/documentation/operators/zip.html) - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3) - -> Observable<(O1.E, O2.E, O3.E)> { - return Zip3( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), - resultSelector: { ($0, $1, $2) } - ) - } -} - -final class ZipSink3_ : ZipSink { - typealias R = O.E - typealias Parent = Zip3 - - let _parent: Parent - - var _values1: Queue = Queue(capacity: 2) - var _values2: Queue = Queue(capacity: 2) - var _values3: Queue = Queue(capacity: 2) - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(arity: 3, observer: observer, cancel: cancel) - } - - override func hasElements(_ index: Int) -> Bool { - switch index { - case 0: return !self._values1.isEmpty - case 1: return !self._values2.isEmpty - case 2: return !self._values3.isEmpty - - default: - rxFatalError("Unhandled case (Function)") - } - - return false - } - - func run() -> Disposable { - let subscription1 = SingleAssignmentDisposable() - let subscription2 = SingleAssignmentDisposable() - let subscription3 = SingleAssignmentDisposable() - - let observer1 = ZipObserver(lock: self._lock, parent: self, index: 0, setNextValue: { self._values1.enqueue($0) }, this: subscription1) - let observer2 = ZipObserver(lock: self._lock, parent: self, index: 1, setNextValue: { self._values2.enqueue($0) }, this: subscription2) - let observer3 = ZipObserver(lock: self._lock, parent: self, index: 2, setNextValue: { self._values3.enqueue($0) }, this: subscription3) - - subscription1.setDisposable(self._parent.source1.subscribe(observer1)) - subscription2.setDisposable(self._parent.source2.subscribe(observer2)) - subscription3.setDisposable(self._parent.source3.subscribe(observer3)) - - return Disposables.create([ - subscription1, - subscription2, - subscription3 - ]) - } - - override func getResult() throws -> R { - return try self._parent._resultSelector(self._values1.dequeue()!, self._values2.dequeue()!, self._values3.dequeue()!) - } -} - -final class Zip3 : Producer { - typealias ResultSelector = (E1, E2, E3) throws -> R - - let source1: Observable - let source2: Observable - let source3: Observable - - let _resultSelector: ResultSelector - - init(source1: Observable, source2: Observable, source3: Observable, resultSelector: @escaping ResultSelector) { - self.source1 = source1 - self.source2 = source2 - self.source3 = source3 - - self._resultSelector = resultSelector - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == R { - let sink = ZipSink3_(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} - - - -// 4 - -extension ObservableType { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences have produced an element at a corresponding index. - - - seealso: [zip operator on reactivex.io](http://reactivex.io/documentation/operators/zip.html) - - - parameter resultSelector: Function to invoke for each series of elements at corresponding indexes in the sources. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, resultSelector: @escaping (O1.E, O2.E, O3.E, O4.E) throws -> E) - -> Observable { - return Zip4( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), source4: source4.asObservable(), - resultSelector: resultSelector - ) - } -} - -extension ObservableType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of tuples whenever all of the observable sequences have produced an element at a corresponding index. - - - seealso: [zip operator on reactivex.io](http://reactivex.io/documentation/operators/zip.html) - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4) - -> Observable<(O1.E, O2.E, O3.E, O4.E)> { - return Zip4( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), source4: source4.asObservable(), - resultSelector: { ($0, $1, $2, $3) } - ) - } -} - -final class ZipSink4_ : ZipSink { - typealias R = O.E - typealias Parent = Zip4 - - let _parent: Parent - - var _values1: Queue = Queue(capacity: 2) - var _values2: Queue = Queue(capacity: 2) - var _values3: Queue = Queue(capacity: 2) - var _values4: Queue = Queue(capacity: 2) - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(arity: 4, observer: observer, cancel: cancel) - } - - override func hasElements(_ index: Int) -> Bool { - switch index { - case 0: return !self._values1.isEmpty - case 1: return !self._values2.isEmpty - case 2: return !self._values3.isEmpty - case 3: return !self._values4.isEmpty - - default: - rxFatalError("Unhandled case (Function)") - } - - return false - } - - func run() -> Disposable { - let subscription1 = SingleAssignmentDisposable() - let subscription2 = SingleAssignmentDisposable() - let subscription3 = SingleAssignmentDisposable() - let subscription4 = SingleAssignmentDisposable() - - let observer1 = ZipObserver(lock: self._lock, parent: self, index: 0, setNextValue: { self._values1.enqueue($0) }, this: subscription1) - let observer2 = ZipObserver(lock: self._lock, parent: self, index: 1, setNextValue: { self._values2.enqueue($0) }, this: subscription2) - let observer3 = ZipObserver(lock: self._lock, parent: self, index: 2, setNextValue: { self._values3.enqueue($0) }, this: subscription3) - let observer4 = ZipObserver(lock: self._lock, parent: self, index: 3, setNextValue: { self._values4.enqueue($0) }, this: subscription4) - - subscription1.setDisposable(self._parent.source1.subscribe(observer1)) - subscription2.setDisposable(self._parent.source2.subscribe(observer2)) - subscription3.setDisposable(self._parent.source3.subscribe(observer3)) - subscription4.setDisposable(self._parent.source4.subscribe(observer4)) - - return Disposables.create([ - subscription1, - subscription2, - subscription3, - subscription4 - ]) - } - - override func getResult() throws -> R { - return try self._parent._resultSelector(self._values1.dequeue()!, self._values2.dequeue()!, self._values3.dequeue()!, self._values4.dequeue()!) - } -} - -final class Zip4 : Producer { - typealias ResultSelector = (E1, E2, E3, E4) throws -> R - - let source1: Observable - let source2: Observable - let source3: Observable - let source4: Observable - - let _resultSelector: ResultSelector - - init(source1: Observable, source2: Observable, source3: Observable, source4: Observable, resultSelector: @escaping ResultSelector) { - self.source1 = source1 - self.source2 = source2 - self.source3 = source3 - self.source4 = source4 - - self._resultSelector = resultSelector - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == R { - let sink = ZipSink4_(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} - - - -// 5 - -extension ObservableType { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences have produced an element at a corresponding index. - - - seealso: [zip operator on reactivex.io](http://reactivex.io/documentation/operators/zip.html) - - - parameter resultSelector: Function to invoke for each series of elements at corresponding indexes in the sources. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, resultSelector: @escaping (O1.E, O2.E, O3.E, O4.E, O5.E) throws -> E) - -> Observable { - return Zip5( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), source4: source4.asObservable(), source5: source5.asObservable(), - resultSelector: resultSelector - ) - } -} - -extension ObservableType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of tuples whenever all of the observable sequences have produced an element at a corresponding index. - - - seealso: [zip operator on reactivex.io](http://reactivex.io/documentation/operators/zip.html) - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5) - -> Observable<(O1.E, O2.E, O3.E, O4.E, O5.E)> { - return Zip5( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), source4: source4.asObservable(), source5: source5.asObservable(), - resultSelector: { ($0, $1, $2, $3, $4) } - ) - } -} - -final class ZipSink5_ : ZipSink { - typealias R = O.E - typealias Parent = Zip5 - - let _parent: Parent - - var _values1: Queue = Queue(capacity: 2) - var _values2: Queue = Queue(capacity: 2) - var _values3: Queue = Queue(capacity: 2) - var _values4: Queue = Queue(capacity: 2) - var _values5: Queue = Queue(capacity: 2) - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(arity: 5, observer: observer, cancel: cancel) - } - - override func hasElements(_ index: Int) -> Bool { - switch index { - case 0: return !self._values1.isEmpty - case 1: return !self._values2.isEmpty - case 2: return !self._values3.isEmpty - case 3: return !self._values4.isEmpty - case 4: return !self._values5.isEmpty - - default: - rxFatalError("Unhandled case (Function)") - } - - return false - } - - func run() -> Disposable { - let subscription1 = SingleAssignmentDisposable() - let subscription2 = SingleAssignmentDisposable() - let subscription3 = SingleAssignmentDisposable() - let subscription4 = SingleAssignmentDisposable() - let subscription5 = SingleAssignmentDisposable() - - let observer1 = ZipObserver(lock: self._lock, parent: self, index: 0, setNextValue: { self._values1.enqueue($0) }, this: subscription1) - let observer2 = ZipObserver(lock: self._lock, parent: self, index: 1, setNextValue: { self._values2.enqueue($0) }, this: subscription2) - let observer3 = ZipObserver(lock: self._lock, parent: self, index: 2, setNextValue: { self._values3.enqueue($0) }, this: subscription3) - let observer4 = ZipObserver(lock: self._lock, parent: self, index: 3, setNextValue: { self._values4.enqueue($0) }, this: subscription4) - let observer5 = ZipObserver(lock: self._lock, parent: self, index: 4, setNextValue: { self._values5.enqueue($0) }, this: subscription5) - - subscription1.setDisposable(self._parent.source1.subscribe(observer1)) - subscription2.setDisposable(self._parent.source2.subscribe(observer2)) - subscription3.setDisposable(self._parent.source3.subscribe(observer3)) - subscription4.setDisposable(self._parent.source4.subscribe(observer4)) - subscription5.setDisposable(self._parent.source5.subscribe(observer5)) - - return Disposables.create([ - subscription1, - subscription2, - subscription3, - subscription4, - subscription5 - ]) - } - - override func getResult() throws -> R { - return try self._parent._resultSelector(self._values1.dequeue()!, self._values2.dequeue()!, self._values3.dequeue()!, self._values4.dequeue()!, self._values5.dequeue()!) - } -} - -final class Zip5 : Producer { - typealias ResultSelector = (E1, E2, E3, E4, E5) throws -> R - - let source1: Observable - let source2: Observable - let source3: Observable - let source4: Observable - let source5: Observable - - let _resultSelector: ResultSelector - - init(source1: Observable, source2: Observable, source3: Observable, source4: Observable, source5: Observable, resultSelector: @escaping ResultSelector) { - self.source1 = source1 - self.source2 = source2 - self.source3 = source3 - self.source4 = source4 - self.source5 = source5 - - self._resultSelector = resultSelector - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == R { - let sink = ZipSink5_(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} - - - -// 6 - -extension ObservableType { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences have produced an element at a corresponding index. - - - seealso: [zip operator on reactivex.io](http://reactivex.io/documentation/operators/zip.html) - - - parameter resultSelector: Function to invoke for each series of elements at corresponding indexes in the sources. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6, resultSelector: @escaping (O1.E, O2.E, O3.E, O4.E, O5.E, O6.E) throws -> E) - -> Observable { - return Zip6( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), source4: source4.asObservable(), source5: source5.asObservable(), source6: source6.asObservable(), - resultSelector: resultSelector - ) - } -} - -extension ObservableType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of tuples whenever all of the observable sequences have produced an element at a corresponding index. - - - seealso: [zip operator on reactivex.io](http://reactivex.io/documentation/operators/zip.html) - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6) - -> Observable<(O1.E, O2.E, O3.E, O4.E, O5.E, O6.E)> { - return Zip6( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), source4: source4.asObservable(), source5: source5.asObservable(), source6: source6.asObservable(), - resultSelector: { ($0, $1, $2, $3, $4, $5) } - ) - } -} - -final class ZipSink6_ : ZipSink { - typealias R = O.E - typealias Parent = Zip6 - - let _parent: Parent - - var _values1: Queue = Queue(capacity: 2) - var _values2: Queue = Queue(capacity: 2) - var _values3: Queue = Queue(capacity: 2) - var _values4: Queue = Queue(capacity: 2) - var _values5: Queue = Queue(capacity: 2) - var _values6: Queue = Queue(capacity: 2) - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(arity: 6, observer: observer, cancel: cancel) - } - - override func hasElements(_ index: Int) -> Bool { - switch index { - case 0: return !self._values1.isEmpty - case 1: return !self._values2.isEmpty - case 2: return !self._values3.isEmpty - case 3: return !self._values4.isEmpty - case 4: return !self._values5.isEmpty - case 5: return !self._values6.isEmpty - - default: - rxFatalError("Unhandled case (Function)") - } - - return false - } - - func run() -> Disposable { - let subscription1 = SingleAssignmentDisposable() - let subscription2 = SingleAssignmentDisposable() - let subscription3 = SingleAssignmentDisposable() - let subscription4 = SingleAssignmentDisposable() - let subscription5 = SingleAssignmentDisposable() - let subscription6 = SingleAssignmentDisposable() - - let observer1 = ZipObserver(lock: self._lock, parent: self, index: 0, setNextValue: { self._values1.enqueue($0) }, this: subscription1) - let observer2 = ZipObserver(lock: self._lock, parent: self, index: 1, setNextValue: { self._values2.enqueue($0) }, this: subscription2) - let observer3 = ZipObserver(lock: self._lock, parent: self, index: 2, setNextValue: { self._values3.enqueue($0) }, this: subscription3) - let observer4 = ZipObserver(lock: self._lock, parent: self, index: 3, setNextValue: { self._values4.enqueue($0) }, this: subscription4) - let observer5 = ZipObserver(lock: self._lock, parent: self, index: 4, setNextValue: { self._values5.enqueue($0) }, this: subscription5) - let observer6 = ZipObserver(lock: self._lock, parent: self, index: 5, setNextValue: { self._values6.enqueue($0) }, this: subscription6) - - subscription1.setDisposable(self._parent.source1.subscribe(observer1)) - subscription2.setDisposable(self._parent.source2.subscribe(observer2)) - subscription3.setDisposable(self._parent.source3.subscribe(observer3)) - subscription4.setDisposable(self._parent.source4.subscribe(observer4)) - subscription5.setDisposable(self._parent.source5.subscribe(observer5)) - subscription6.setDisposable(self._parent.source6.subscribe(observer6)) - - return Disposables.create([ - subscription1, - subscription2, - subscription3, - subscription4, - subscription5, - subscription6 - ]) - } - - override func getResult() throws -> R { - return try self._parent._resultSelector(self._values1.dequeue()!, self._values2.dequeue()!, self._values3.dequeue()!, self._values4.dequeue()!, self._values5.dequeue()!, self._values6.dequeue()!) - } -} - -final class Zip6 : Producer { - typealias ResultSelector = (E1, E2, E3, E4, E5, E6) throws -> R - - let source1: Observable - let source2: Observable - let source3: Observable - let source4: Observable - let source5: Observable - let source6: Observable - - let _resultSelector: ResultSelector - - init(source1: Observable, source2: Observable, source3: Observable, source4: Observable, source5: Observable, source6: Observable, resultSelector: @escaping ResultSelector) { - self.source1 = source1 - self.source2 = source2 - self.source3 = source3 - self.source4 = source4 - self.source5 = source5 - self.source6 = source6 - - self._resultSelector = resultSelector - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == R { - let sink = ZipSink6_(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} - - - -// 7 - -extension ObservableType { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences have produced an element at a corresponding index. - - - seealso: [zip operator on reactivex.io](http://reactivex.io/documentation/operators/zip.html) - - - parameter resultSelector: Function to invoke for each series of elements at corresponding indexes in the sources. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6, _ source7: O7, resultSelector: @escaping (O1.E, O2.E, O3.E, O4.E, O5.E, O6.E, O7.E) throws -> E) - -> Observable { - return Zip7( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), source4: source4.asObservable(), source5: source5.asObservable(), source6: source6.asObservable(), source7: source7.asObservable(), - resultSelector: resultSelector - ) - } -} - -extension ObservableType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of tuples whenever all of the observable sequences have produced an element at a corresponding index. - - - seealso: [zip operator on reactivex.io](http://reactivex.io/documentation/operators/zip.html) - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6, _ source7: O7) - -> Observable<(O1.E, O2.E, O3.E, O4.E, O5.E, O6.E, O7.E)> { - return Zip7( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), source4: source4.asObservable(), source5: source5.asObservable(), source6: source6.asObservable(), source7: source7.asObservable(), - resultSelector: { ($0, $1, $2, $3, $4, $5, $6) } - ) - } -} - -final class ZipSink7_ : ZipSink { - typealias R = O.E - typealias Parent = Zip7 - - let _parent: Parent - - var _values1: Queue = Queue(capacity: 2) - var _values2: Queue = Queue(capacity: 2) - var _values3: Queue = Queue(capacity: 2) - var _values4: Queue = Queue(capacity: 2) - var _values5: Queue = Queue(capacity: 2) - var _values6: Queue = Queue(capacity: 2) - var _values7: Queue = Queue(capacity: 2) - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(arity: 7, observer: observer, cancel: cancel) - } - - override func hasElements(_ index: Int) -> Bool { - switch index { - case 0: return !self._values1.isEmpty - case 1: return !self._values2.isEmpty - case 2: return !self._values3.isEmpty - case 3: return !self._values4.isEmpty - case 4: return !self._values5.isEmpty - case 5: return !self._values6.isEmpty - case 6: return !self._values7.isEmpty - - default: - rxFatalError("Unhandled case (Function)") - } - - return false - } - - func run() -> Disposable { - let subscription1 = SingleAssignmentDisposable() - let subscription2 = SingleAssignmentDisposable() - let subscription3 = SingleAssignmentDisposable() - let subscription4 = SingleAssignmentDisposable() - let subscription5 = SingleAssignmentDisposable() - let subscription6 = SingleAssignmentDisposable() - let subscription7 = SingleAssignmentDisposable() - - let observer1 = ZipObserver(lock: self._lock, parent: self, index: 0, setNextValue: { self._values1.enqueue($0) }, this: subscription1) - let observer2 = ZipObserver(lock: self._lock, parent: self, index: 1, setNextValue: { self._values2.enqueue($0) }, this: subscription2) - let observer3 = ZipObserver(lock: self._lock, parent: self, index: 2, setNextValue: { self._values3.enqueue($0) }, this: subscription3) - let observer4 = ZipObserver(lock: self._lock, parent: self, index: 3, setNextValue: { self._values4.enqueue($0) }, this: subscription4) - let observer5 = ZipObserver(lock: self._lock, parent: self, index: 4, setNextValue: { self._values5.enqueue($0) }, this: subscription5) - let observer6 = ZipObserver(lock: self._lock, parent: self, index: 5, setNextValue: { self._values6.enqueue($0) }, this: subscription6) - let observer7 = ZipObserver(lock: self._lock, parent: self, index: 6, setNextValue: { self._values7.enqueue($0) }, this: subscription7) - - subscription1.setDisposable(self._parent.source1.subscribe(observer1)) - subscription2.setDisposable(self._parent.source2.subscribe(observer2)) - subscription3.setDisposable(self._parent.source3.subscribe(observer3)) - subscription4.setDisposable(self._parent.source4.subscribe(observer4)) - subscription5.setDisposable(self._parent.source5.subscribe(observer5)) - subscription6.setDisposable(self._parent.source6.subscribe(observer6)) - subscription7.setDisposable(self._parent.source7.subscribe(observer7)) - - return Disposables.create([ - subscription1, - subscription2, - subscription3, - subscription4, - subscription5, - subscription6, - subscription7 - ]) - } - - override func getResult() throws -> R { - return try self._parent._resultSelector(self._values1.dequeue()!, self._values2.dequeue()!, self._values3.dequeue()!, self._values4.dequeue()!, self._values5.dequeue()!, self._values6.dequeue()!, self._values7.dequeue()!) - } -} - -final class Zip7 : Producer { - typealias ResultSelector = (E1, E2, E3, E4, E5, E6, E7) throws -> R - - let source1: Observable - let source2: Observable - let source3: Observable - let source4: Observable - let source5: Observable - let source6: Observable - let source7: Observable - - let _resultSelector: ResultSelector - - init(source1: Observable, source2: Observable, source3: Observable, source4: Observable, source5: Observable, source6: Observable, source7: Observable, resultSelector: @escaping ResultSelector) { - self.source1 = source1 - self.source2 = source2 - self.source3 = source3 - self.source4 = source4 - self.source5 = source5 - self.source6 = source6 - self.source7 = source7 - - self._resultSelector = resultSelector - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == R { - let sink = ZipSink7_(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} - - - -// 8 - -extension ObservableType { - /** - Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences have produced an element at a corresponding index. - - - seealso: [zip operator on reactivex.io](http://reactivex.io/documentation/operators/zip.html) - - - parameter resultSelector: Function to invoke for each series of elements at corresponding indexes in the sources. - - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6, _ source7: O7, _ source8: O8, resultSelector: @escaping (O1.E, O2.E, O3.E, O4.E, O5.E, O6.E, O7.E, O8.E) throws -> E) - -> Observable { - return Zip8( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), source4: source4.asObservable(), source5: source5.asObservable(), source6: source6.asObservable(), source7: source7.asObservable(), source8: source8.asObservable(), - resultSelector: resultSelector - ) - } -} - -extension ObservableType where E == Any { - /** - Merges the specified observable sequences into one observable sequence of tuples whenever all of the observable sequences have produced an element at a corresponding index. - - - seealso: [zip operator on reactivex.io](http://reactivex.io/documentation/operators/zip.html) - - - returns: An observable sequence containing the result of combining elements of the sources. - */ - public static func zip - (_ source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6, _ source7: O7, _ source8: O8) - -> Observable<(O1.E, O2.E, O3.E, O4.E, O5.E, O6.E, O7.E, O8.E)> { - return Zip8( - source1: source1.asObservable(), source2: source2.asObservable(), source3: source3.asObservable(), source4: source4.asObservable(), source5: source5.asObservable(), source6: source6.asObservable(), source7: source7.asObservable(), source8: source8.asObservable(), - resultSelector: { ($0, $1, $2, $3, $4, $5, $6, $7) } - ) - } -} - -final class ZipSink8_ : ZipSink { - typealias R = O.E - typealias Parent = Zip8 - - let _parent: Parent - - var _values1: Queue = Queue(capacity: 2) - var _values2: Queue = Queue(capacity: 2) - var _values3: Queue = Queue(capacity: 2) - var _values4: Queue = Queue(capacity: 2) - var _values5: Queue = Queue(capacity: 2) - var _values6: Queue = Queue(capacity: 2) - var _values7: Queue = Queue(capacity: 2) - var _values8: Queue = Queue(capacity: 2) - - init(parent: Parent, observer: O, cancel: Cancelable) { - self._parent = parent - super.init(arity: 8, observer: observer, cancel: cancel) - } - - override func hasElements(_ index: Int) -> Bool { - switch index { - case 0: return !self._values1.isEmpty - case 1: return !self._values2.isEmpty - case 2: return !self._values3.isEmpty - case 3: return !self._values4.isEmpty - case 4: return !self._values5.isEmpty - case 5: return !self._values6.isEmpty - case 6: return !self._values7.isEmpty - case 7: return !self._values8.isEmpty - - default: - rxFatalError("Unhandled case (Function)") - } - - return false - } - - func run() -> Disposable { - let subscription1 = SingleAssignmentDisposable() - let subscription2 = SingleAssignmentDisposable() - let subscription3 = SingleAssignmentDisposable() - let subscription4 = SingleAssignmentDisposable() - let subscription5 = SingleAssignmentDisposable() - let subscription6 = SingleAssignmentDisposable() - let subscription7 = SingleAssignmentDisposable() - let subscription8 = SingleAssignmentDisposable() - - let observer1 = ZipObserver(lock: self._lock, parent: self, index: 0, setNextValue: { self._values1.enqueue($0) }, this: subscription1) - let observer2 = ZipObserver(lock: self._lock, parent: self, index: 1, setNextValue: { self._values2.enqueue($0) }, this: subscription2) - let observer3 = ZipObserver(lock: self._lock, parent: self, index: 2, setNextValue: { self._values3.enqueue($0) }, this: subscription3) - let observer4 = ZipObserver(lock: self._lock, parent: self, index: 3, setNextValue: { self._values4.enqueue($0) }, this: subscription4) - let observer5 = ZipObserver(lock: self._lock, parent: self, index: 4, setNextValue: { self._values5.enqueue($0) }, this: subscription5) - let observer6 = ZipObserver(lock: self._lock, parent: self, index: 5, setNextValue: { self._values6.enqueue($0) }, this: subscription6) - let observer7 = ZipObserver(lock: self._lock, parent: self, index: 6, setNextValue: { self._values7.enqueue($0) }, this: subscription7) - let observer8 = ZipObserver(lock: self._lock, parent: self, index: 7, setNextValue: { self._values8.enqueue($0) }, this: subscription8) - - subscription1.setDisposable(self._parent.source1.subscribe(observer1)) - subscription2.setDisposable(self._parent.source2.subscribe(observer2)) - subscription3.setDisposable(self._parent.source3.subscribe(observer3)) - subscription4.setDisposable(self._parent.source4.subscribe(observer4)) - subscription5.setDisposable(self._parent.source5.subscribe(observer5)) - subscription6.setDisposable(self._parent.source6.subscribe(observer6)) - subscription7.setDisposable(self._parent.source7.subscribe(observer7)) - subscription8.setDisposable(self._parent.source8.subscribe(observer8)) - - return Disposables.create([ - subscription1, - subscription2, - subscription3, - subscription4, - subscription5, - subscription6, - subscription7, - subscription8 - ]) - } - - override func getResult() throws -> R { - return try self._parent._resultSelector(self._values1.dequeue()!, self._values2.dequeue()!, self._values3.dequeue()!, self._values4.dequeue()!, self._values5.dequeue()!, self._values6.dequeue()!, self._values7.dequeue()!, self._values8.dequeue()!) - } -} - -final class Zip8 : Producer { - typealias ResultSelector = (E1, E2, E3, E4, E5, E6, E7, E8) throws -> R - - let source1: Observable - let source2: Observable - let source3: Observable - let source4: Observable - let source5: Observable - let source6: Observable - let source7: Observable - let source8: Observable - - let _resultSelector: ResultSelector - - init(source1: Observable, source2: Observable, source3: Observable, source4: Observable, source5: Observable, source6: Observable, source7: Observable, source8: Observable, resultSelector: @escaping ResultSelector) { - self.source1 = source1 - self.source2 = source2 - self.source3 = source3 - self.source4 = source4 - self.source5 = source5 - self.source6 = source6 - self.source7 = source7 - self.source8 = source8 - - self._resultSelector = resultSelector - } - - override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == R { - let sink = ZipSink8_(parent: self, observer: observer, cancel: cancel) - let subscription = sink.run() - return (sink: sink, subscription: subscription) - } -} - - diff --git a/Pods/RxSwift/RxSwift/Observables/Zip.swift b/Pods/RxSwift/RxSwift/Observables/Zip.swift deleted file mode 100644 index 50edf84..0000000 --- a/Pods/RxSwift/RxSwift/Observables/Zip.swift +++ /dev/null @@ -1,153 +0,0 @@ -// -// Zip.swift -// RxSwift -// -// Created by Krunoslav Zaher on 5/23/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -protocol ZipSinkProtocol : class -{ - func next(_ index: Int) - func fail(_ error: Swift.Error) - func done(_ index: Int) -} - -class ZipSink : Sink, ZipSinkProtocol { - typealias Element = O.E - - let _arity: Int - - let _lock = RecursiveLock() - - // state - private var _isDone: [Bool] - - init(arity: Int, observer: O, cancel: Cancelable) { - self._isDone = [Bool](repeating: false, count: arity) - self._arity = arity - - super.init(observer: observer, cancel: cancel) - } - - func getResult() throws -> Element { - rxAbstractMethod() - } - - func hasElements(_ index: Int) -> Bool { - rxAbstractMethod() - } - - func next(_ index: Int) { - var hasValueAll = true - - for i in 0 ..< self._arity { - if !self.hasElements(i) { - hasValueAll = false - break - } - } - - if hasValueAll { - do { - let result = try self.getResult() - self.forwardOn(.next(result)) - } - catch let e { - self.forwardOn(.error(e)) - self.dispose() - } - } - else { - var allOthersDone = true - - let arity = self._isDone.count - for i in 0 ..< arity { - if i != index && !self._isDone[i] { - allOthersDone = false - break - } - } - - if allOthersDone { - self.forwardOn(.completed) - self.dispose() - } - } - } - - func fail(_ error: Swift.Error) { - self.forwardOn(.error(error)) - self.dispose() - } - - func done(_ index: Int) { - self._isDone[index] = true - - var allDone = true - - for done in self._isDone where !done { - allDone = false - break - } - - if allDone { - self.forwardOn(.completed) - self.dispose() - } - } -} - -final class ZipObserver - : ObserverType - , LockOwnerType - , SynchronizedOnType { - typealias E = ElementType - typealias ValueSetter = (ElementType) -> Void - - private var _parent: ZipSinkProtocol? - - let _lock: RecursiveLock - - // state - private let _index: Int - private let _this: Disposable - private let _setNextValue: ValueSetter - - init(lock: RecursiveLock, parent: ZipSinkProtocol, index: Int, setNextValue: @escaping ValueSetter, this: Disposable) { - self._lock = lock - self._parent = parent - self._index = index - self._this = this - self._setNextValue = setNextValue - } - - func on(_ event: Event) { - self.synchronizedOn(event) - } - - func _synchronized_on(_ event: Event) { - if self._parent != nil { - switch event { - case .next: - break - case .error: - self._this.dispose() - case .completed: - self._this.dispose() - } - } - - if let parent = self._parent { - switch event { - case .next(let value): - self._setNextValue(value) - parent.next(self._index) - case .error(let error): - parent.fail(error) - case .completed: - parent.done(self._index) - } - } - } -} diff --git a/Pods/RxSwift/RxSwift/ObserverType.swift b/Pods/RxSwift/RxSwift/ObserverType.swift deleted file mode 100644 index 908941f..0000000 --- a/Pods/RxSwift/RxSwift/ObserverType.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// ObserverType.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/8/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// Supports push-style iteration over an observable sequence. -public protocol ObserverType { - /// The type of elements in sequence that observer can observe. - associatedtype E - - /// Notify observer about sequence event. - /// - /// - parameter event: Event that occurred. - func on(_ event: Event) -} - -/// Convenience API extensions to provide alternate next, error, completed events -extension ObserverType { - - /// Convenience method equivalent to `on(.next(element: E))` - /// - /// - parameter element: Next element to send to observer(s) - public func onNext(_ element: E) { - self.on(.next(element)) - } - - /// Convenience method equivalent to `on(.completed)` - public func onCompleted() { - self.on(.completed) - } - - /// Convenience method equivalent to `on(.error(Swift.Error))` - /// - parameter error: Swift.Error to send to observer(s) - public func onError(_ error: Swift.Error) { - self.on(.error(error)) - } -} diff --git a/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift b/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift deleted file mode 100644 index 765cf11..0000000 --- a/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift +++ /dev/null @@ -1,32 +0,0 @@ -// -// AnonymousObserver.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/8/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -final class AnonymousObserver : ObserverBase { - typealias Element = ElementType - - typealias EventHandler = (Event) -> Void - - private let _eventHandler : EventHandler - - init(_ eventHandler: @escaping EventHandler) { -#if TRACE_RESOURCES - _ = Resources.incrementTotal() -#endif - self._eventHandler = eventHandler - } - - override func onCore(_ event: Event) { - return self._eventHandler(event) - } - -#if TRACE_RESOURCES - deinit { - _ = Resources.decrementTotal() - } -#endif -} diff --git a/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift b/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift deleted file mode 100644 index 7e2852e..0000000 --- a/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// ObserverBase.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/15/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -class ObserverBase : Disposable, ObserverType { - typealias E = ElementType - - private var _isStopped = AtomicInt(0) - - func on(_ event: Event) { - switch event { - case .next: - if load(&self._isStopped) == 0 { - self.onCore(event) - } - case .error, .completed: - if fetchOr(&self._isStopped, 1) == 0 { - self.onCore(event) - } - } - } - - func onCore(_ event: Event) { - rxAbstractMethod() - } - - func dispose() { - fetchOr(&self._isStopped, 1) - } -} diff --git a/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift b/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift deleted file mode 100644 index e75a380..0000000 --- a/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift +++ /dev/null @@ -1,151 +0,0 @@ -// -// TailRecursiveSink.swift -// RxSwift -// -// Created by Krunoslav Zaher on 3/21/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -enum TailRecursiveSinkCommand { - case moveNext - case dispose -} - -#if DEBUG || TRACE_RESOURCES - public var maxTailRecursiveSinkStackSize = 0 -#endif - -/// This class is usually used with `Generator` version of the operators. -class TailRecursiveSink - : Sink - , InvocableWithValueType where S.Iterator.Element: ObservableConvertibleType, S.Iterator.Element.E == O.E { - typealias Value = TailRecursiveSinkCommand - typealias E = O.E - typealias SequenceGenerator = (generator: S.Iterator, remaining: IntMax?) - - var _generators: [SequenceGenerator] = [] - var _isDisposed = false - var _subscription = SerialDisposable() - - // this is thread safe object - var _gate = AsyncLock>>() - - override init(observer: O, cancel: Cancelable) { - super.init(observer: observer, cancel: cancel) - } - - func run(_ sources: SequenceGenerator) -> Disposable { - self._generators.append(sources) - - self.schedule(.moveNext) - - return self._subscription - } - - func invoke(_ command: TailRecursiveSinkCommand) { - switch command { - case .dispose: - self.disposeCommand() - case .moveNext: - self.moveNextCommand() - } - } - - // simple implementation for now - func schedule(_ command: TailRecursiveSinkCommand) { - self._gate.invoke(InvocableScheduledItem(invocable: self, state: command)) - } - - func done() { - self.forwardOn(.completed) - self.dispose() - } - - func extract(_ observable: Observable) -> SequenceGenerator? { - rxAbstractMethod() - } - - // should be done on gate locked - - private func moveNextCommand() { - var next: Observable? - - repeat { - guard let (g, left) = self._generators.last else { - break - } - - if self._isDisposed { - return - } - - self._generators.removeLast() - - var e = g - - guard let nextCandidate = e.next()?.asObservable() else { - continue - } - - // `left` is a hint of how many elements are left in generator. - // In case this is the last element, then there is no need to push - // that generator on stack. - // - // This is an optimization used to make sure in tail recursive case - // there is no memory leak in case this operator is used to generate non terminating - // sequence. - - if let knownOriginalLeft = left { - // `- 1` because generator.next() has just been called - if knownOriginalLeft - 1 >= 1 { - self._generators.append((e, knownOriginalLeft - 1)) - } - } - else { - self._generators.append((e, nil)) - } - - let nextGenerator = self.extract(nextCandidate) - - if let nextGenerator = nextGenerator { - self._generators.append(nextGenerator) - #if DEBUG || TRACE_RESOURCES - if maxTailRecursiveSinkStackSize < self._generators.count { - maxTailRecursiveSinkStackSize = self._generators.count - } - #endif - } - else { - next = nextCandidate - } - } while next == nil - - guard let existingNext = next else { - self.done() - return - } - - let disposable = SingleAssignmentDisposable() - self._subscription.disposable = disposable - disposable.setDisposable(self.subscribeToNext(existingNext)) - } - - func subscribeToNext(_ source: Observable) -> Disposable { - rxAbstractMethod() - } - - func disposeCommand() { - self._isDisposed = true - self._generators.removeAll(keepingCapacity: false) - } - - override func dispose() { - super.dispose() - - self._subscription.dispose() - self._gate.dispose() - - self.schedule(.dispose) - } -} - diff --git a/Pods/RxSwift/RxSwift/Reactive.swift b/Pods/RxSwift/RxSwift/Reactive.swift deleted file mode 100644 index b873996..0000000 --- a/Pods/RxSwift/RxSwift/Reactive.swift +++ /dev/null @@ -1,74 +0,0 @@ -// -// Reactive.swift -// RxSwift -// -// Created by Yury Korolev on 5/2/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -/** - Use `Reactive` proxy as customization point for constrained protocol extensions. - - General pattern would be: - - // 1. Extend Reactive protocol with constrain on Base - // Read as: Reactive Extension where Base is a SomeType - extension Reactive where Base: SomeType { - // 2. Put any specific reactive extension for SomeType here - } - - With this approach we can have more specialized methods and properties using - `Base` and not just specialized on common base type. - - */ - -public struct Reactive { - /// Base object to extend. - public let base: Base - - /// Creates extensions with base object. - /// - /// - parameter base: Base object. - public init(_ base: Base) { - self.base = base - } -} - -/// A type that has reactive extensions. -public protocol ReactiveCompatible { - /// Extended type - associatedtype CompatibleType - - /// Reactive extensions. - static var rx: Reactive.Type { get set } - - /// Reactive extensions. - var rx: Reactive { get set } -} - -extension ReactiveCompatible { - /// Reactive extensions. - public static var rx: Reactive.Type { - get { - return Reactive.self - } - set { - // this enables using Reactive to "mutate" base type - } - } - - /// Reactive extensions. - public var rx: Reactive { - get { - return Reactive(self) - } - set { - // this enables using Reactive to "mutate" base object - } - } -} - -import class Foundation.NSObject - -/// Extend NSObject with `rx` proxy. -extension NSObject: ReactiveCompatible { } diff --git a/Pods/RxSwift/RxSwift/Rx.swift b/Pods/RxSwift/RxSwift/Rx.swift deleted file mode 100644 index e99bdd5..0000000 --- a/Pods/RxSwift/RxSwift/Rx.swift +++ /dev/null @@ -1,142 +0,0 @@ -// -// Rx.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/14/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -#if TRACE_RESOURCES - fileprivate var resourceCount = AtomicInt(0) - - /// Resource utilization information - public struct Resources { - /// Counts internal Rx resource allocations (Observables, Observers, Disposables, etc.). This provides a simple way to detect leaks during development. - public static var total: Int32 { - return load(&resourceCount) - } - - /// Increments `Resources.total` resource count. - /// - /// - returns: New resource count - public static func incrementTotal() -> Int32 { - return increment(&resourceCount) - } - - /// Decrements `Resources.total` resource count - /// - /// - returns: New resource count - public static func decrementTotal() -> Int32 { - return decrement(&resourceCount) - } - } -#endif - -/// Swift does not implement abstract methods. This method is used as a runtime check to ensure that methods which intended to be abstract (i.e., they should be implemented in subclasses) are not called directly on the superclass. -func rxAbstractMethod(file: StaticString = #file, line: UInt = #line) -> Swift.Never { - rxFatalError("Abstract method", file: file, line: line) -} - -func rxFatalError(_ lastMessage: @autoclosure () -> String, file: StaticString = #file, line: UInt = #line) -> Swift.Never { - // The temptation to comment this line is great, but please don't, it's for your own good. The choice is yours. - fatalError(lastMessage(), file: file, line: line) -} - -func rxFatalErrorInDebug(_ lastMessage: @autoclosure () -> String, file: StaticString = #file, line: UInt = #line) { - #if DEBUG - fatalError(lastMessage(), file: file, line: line) - #else - print("\(file):\(line): \(lastMessage())") - #endif -} - -func incrementChecked(_ i: inout Int) throws -> Int { - if i == Int.max { - throw RxError.overflow - } - defer { i += 1 } - return i -} - -func decrementChecked(_ i: inout Int) throws -> Int { - if i == Int.min { - throw RxError.overflow - } - defer { i -= 1 } - return i -} - -#if DEBUG - import class Foundation.Thread - final class SynchronizationTracker { - private let _lock = RecursiveLock() - - public enum SynchronizationErrorMessages: String { - case variable = "Two different threads are trying to assign the same `Variable.value` unsynchronized.\n This is undefined behavior because the end result (variable value) is nondeterministic and depends on the \n operating system thread scheduler. This will cause random behavior of your program.\n" - case `default` = "Two different unsynchronized threads are trying to send some event simultaneously.\n This is undefined behavior because the ordering of the effects caused by these events is nondeterministic and depends on the \n operating system thread scheduler. This will result in a random behavior of your program.\n" - } - - private var _threads = [UnsafeMutableRawPointer: Int]() - - private func synchronizationError(_ message: String) { - #if FATAL_SYNCHRONIZATION - rxFatalError(message) - #else - print(message) - #endif - } - - func register(synchronizationErrorMessage: SynchronizationErrorMessages) { - self._lock.lock(); defer { self._lock.unlock() } - let pointer = Unmanaged.passUnretained(Thread.current).toOpaque() - let count = (self._threads[pointer] ?? 0) + 1 - - if count > 1 { - self.synchronizationError( - "⚠️ Reentrancy anomaly was detected.\n" + - " > Debugging: To debug this issue you can set a breakpoint in \(#file):\(#line) and observe the call stack.\n" + - " > Problem: This behavior is breaking the observable sequence grammar. `next (error | completed)?`\n" + - " This behavior breaks the grammar because there is overlapping between sequence events.\n" + - " Observable sequence is trying to send an event before sending of previous event has finished.\n" + - " > Interpretation: This could mean that there is some kind of unexpected cyclic dependency in your code,\n" + - " or that the system is not behaving in the expected way.\n" + - " > Remedy: If this is the expected behavior this message can be suppressed by adding `.observeOn(MainScheduler.asyncInstance)`\n" + - " or by enqueuing sequence events in some other way.\n" - ) - } - - self._threads[pointer] = count - - if self._threads.count > 1 { - self.synchronizationError( - "⚠️ Synchronization anomaly was detected.\n" + - " > Debugging: To debug this issue you can set a breakpoint in \(#file):\(#line) and observe the call stack.\n" + - " > Problem: This behavior is breaking the observable sequence grammar. `next (error | completed)?`\n" + - " This behavior breaks the grammar because there is overlapping between sequence events.\n" + - " Observable sequence is trying to send an event before sending of previous event has finished.\n" + - " > Interpretation: " + synchronizationErrorMessage.rawValue + - " > Remedy: If this is the expected behavior this message can be suppressed by adding `.observeOn(MainScheduler.asyncInstance)`\n" + - " or by synchronizing sequence events in some other way.\n" - ) - } - } - - func unregister() { - self._lock.lock(); defer { self._lock.unlock() } - let pointer = Unmanaged.passUnretained(Thread.current).toOpaque() - self._threads[pointer] = (self._threads[pointer] ?? 1) - 1 - if self._threads[pointer] == 0 { - self._threads[pointer] = nil - } - } - } - -#endif - -/// RxSwift global hooks -public enum Hooks { - - // Should capture call stack - public static var recordCallStackOnError: Bool = false - -} diff --git a/Pods/RxSwift/RxSwift/RxMutableBox.swift b/Pods/RxSwift/RxSwift/RxMutableBox.swift deleted file mode 100644 index 7f3c333..0000000 --- a/Pods/RxSwift/RxSwift/RxMutableBox.swift +++ /dev/null @@ -1,27 +0,0 @@ -// -// RxMutableBox.swift -// RxSwift -// -// Created by Krunoslav Zaher on 5/22/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// Creates mutable reference wrapper for any type. -final class RxMutableBox : CustomDebugStringConvertible { - /// Wrapped value - var value : T - - /// Creates reference wrapper for `value`. - /// - /// - parameter value: Value to wrap. - init (_ value: T) { - self.value = value - } -} - -extension RxMutableBox { - /// - returns: Box description. - var debugDescription: String { - return "MutatingBox(\(self.value))" - } -} diff --git a/Pods/RxSwift/RxSwift/SchedulerType.swift b/Pods/RxSwift/RxSwift/SchedulerType.swift deleted file mode 100644 index e09c499..0000000 --- a/Pods/RxSwift/RxSwift/SchedulerType.swift +++ /dev/null @@ -1,71 +0,0 @@ -// -// SchedulerType.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/8/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import struct Foundation.TimeInterval -import struct Foundation.Date - -// Type that represents time interval in the context of RxSwift. -public typealias RxTimeInterval = TimeInterval - -/// Type that represents absolute time in the context of RxSwift. -public typealias RxTime = Date - -/// Represents an object that schedules units of work. -public protocol SchedulerType: ImmediateSchedulerType { - - /// - returns: Current time. - var now : RxTime { - get - } - - /** - Schedules an action to be executed. - - - parameter state: State passed to the action to be executed. - - parameter dueTime: Relative time after which to execute the action. - - parameter action: Action to be executed. - - returns: The disposable object used to cancel the scheduled action (best effort). - */ - func scheduleRelative(_ state: StateType, dueTime: RxTimeInterval, action: @escaping (StateType) -> Disposable) -> Disposable - - /** - Schedules a periodic piece of work. - - - parameter state: State passed to the action to be executed. - - parameter startAfter: Period after which initial work should be run. - - parameter period: Period for running the work periodically. - - parameter action: Action to be executed. - - returns: The disposable object used to cancel the scheduled action (best effort). - */ - func schedulePeriodic(_ state: StateType, startAfter: RxTimeInterval, period: RxTimeInterval, action: @escaping (StateType) -> StateType) -> Disposable -} - -extension SchedulerType { - - /** - Periodic task will be emulated using recursive scheduling. - - - parameter state: Initial state passed to the action upon the first iteration. - - parameter startAfter: Period after which initial work should be run. - - parameter period: Period for running the work periodically. - - returns: The disposable object used to cancel the scheduled recurring action (best effort). - */ - public func schedulePeriodic(_ state: StateType, startAfter: RxTimeInterval, period: RxTimeInterval, action: @escaping (StateType) -> StateType) -> Disposable { - let schedule = SchedulePeriodicRecursive(scheduler: self, startAfter: startAfter, period: period, action: action, state: state) - - return schedule.start() - } - - func scheduleRecursive(_ state: State, dueTime: RxTimeInterval, action: @escaping (State, AnyRecursiveScheduler) -> Void) -> Disposable { - let scheduler = AnyRecursiveScheduler(scheduler: self, action: action) - - scheduler.schedule(state, dueTime: dueTime) - - return Disposables.create(with: scheduler.dispose) - } -} diff --git a/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift b/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift deleted file mode 100644 index ed2efbb..0000000 --- a/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift +++ /dev/null @@ -1,84 +0,0 @@ -// -// ConcurrentDispatchQueueScheduler.swift -// RxSwift -// -// Created by Krunoslav Zaher on 7/5/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import struct Foundation.Date -import struct Foundation.TimeInterval -import Dispatch - -/// Abstracts the work that needs to be performed on a specific `dispatch_queue_t`. You can also pass a serial dispatch queue, it shouldn't cause any problems. -/// -/// This scheduler is suitable when some work needs to be performed in background. -public class ConcurrentDispatchQueueScheduler: SchedulerType { - public typealias TimeInterval = Foundation.TimeInterval - public typealias Time = Date - - public var now : Date { - return Date() - } - - let configuration: DispatchQueueConfiguration - - /// Constructs new `ConcurrentDispatchQueueScheduler` that wraps `queue`. - /// - /// - parameter queue: Target dispatch queue. - /// - parameter leeway: The amount of time, in nanoseconds, that the system will defer the timer. - public init(queue: DispatchQueue, leeway: DispatchTimeInterval = DispatchTimeInterval.nanoseconds(0)) { - self.configuration = DispatchQueueConfiguration(queue: queue, leeway: leeway) - } - - /// Convenience init for scheduler that wraps one of the global concurrent dispatch queues. - /// - /// - parameter qos: Target global dispatch queue, by quality of service class. - /// - parameter leeway: The amount of time, in nanoseconds, that the system will defer the timer. - @available(iOS 8, OSX 10.10, *) - public convenience init(qos: DispatchQoS, leeway: DispatchTimeInterval = DispatchTimeInterval.nanoseconds(0)) { - self.init(queue: DispatchQueue( - label: "rxswift.queue.\(qos)", - qos: qos, - attributes: [DispatchQueue.Attributes.concurrent], - target: nil), - leeway: leeway - ) - } - - /** - Schedules an action to be executed immediately. - - - parameter state: State passed to the action to be executed. - - parameter action: Action to be executed. - - returns: The disposable object used to cancel the scheduled action (best effort). - */ - public final func schedule(_ state: StateType, action: @escaping (StateType) -> Disposable) -> Disposable { - return self.configuration.schedule(state, action: action) - } - - /** - Schedules an action to be executed. - - - parameter state: State passed to the action to be executed. - - parameter dueTime: Relative time after which to execute the action. - - parameter action: Action to be executed. - - returns: The disposable object used to cancel the scheduled action (best effort). - */ - public final func scheduleRelative(_ state: StateType, dueTime: Foundation.TimeInterval, action: @escaping (StateType) -> Disposable) -> Disposable { - return self.configuration.scheduleRelative(state, dueTime: dueTime, action: action) - } - - /** - Schedules a periodic piece of work. - - - parameter state: State passed to the action to be executed. - - parameter startAfter: Period after which initial work should be run. - - parameter period: Period for running the work periodically. - - parameter action: Action to be executed. - - returns: The disposable object used to cancel the scheduled action (best effort). - */ - public func schedulePeriodic(_ state: StateType, startAfter: TimeInterval, period: TimeInterval, action: @escaping (StateType) -> StateType) -> Disposable { - return self.configuration.schedulePeriodic(state, startAfter: startAfter, period: period, action: action) - } -} diff --git a/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift b/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift deleted file mode 100644 index 0d65b6c..0000000 --- a/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift +++ /dev/null @@ -1,88 +0,0 @@ -// -// ConcurrentMainScheduler.swift -// RxSwift -// -// Created by Krunoslav Zaher on 10/17/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import struct Foundation.Date -import struct Foundation.TimeInterval -import Dispatch - -/** -Abstracts work that needs to be performed on `MainThread`. In case `schedule` methods are called from main thread, it will perform action immediately without scheduling. - -This scheduler is optimized for `subscribeOn` operator. If you want to observe observable sequence elements on main thread using `observeOn` operator, -`MainScheduler` is more suitable for that purpose. -*/ -public final class ConcurrentMainScheduler : SchedulerType { - public typealias TimeInterval = Foundation.TimeInterval - public typealias Time = Date - - private let _mainScheduler: MainScheduler - private let _mainQueue: DispatchQueue - - /// - returns: Current time. - public var now: Date { - return self._mainScheduler.now as Date - } - - private init(mainScheduler: MainScheduler) { - self._mainQueue = DispatchQueue.main - self._mainScheduler = mainScheduler - } - - /// Singleton instance of `ConcurrentMainScheduler` - public static let instance = ConcurrentMainScheduler(mainScheduler: MainScheduler.instance) - - /** - Schedules an action to be executed immediately. - - - parameter state: State passed to the action to be executed. - - parameter action: Action to be executed. - - returns: The disposable object used to cancel the scheduled action (best effort). - */ - public func schedule(_ state: StateType, action: @escaping (StateType) -> Disposable) -> Disposable { - if DispatchQueue.isMain { - return action(state) - } - - let cancel = SingleAssignmentDisposable() - - self._mainQueue.async { - if cancel.isDisposed { - return - } - - cancel.setDisposable(action(state)) - } - - return cancel - } - - /** - Schedules an action to be executed. - - - parameter state: State passed to the action to be executed. - - parameter dueTime: Relative time after which to execute the action. - - parameter action: Action to be executed. - - returns: The disposable object used to cancel the scheduled action (best effort). - */ - public final func scheduleRelative(_ state: StateType, dueTime: Foundation.TimeInterval, action: @escaping (StateType) -> Disposable) -> Disposable { - return self._mainScheduler.scheduleRelative(state, dueTime: dueTime, action: action) - } - - /** - Schedules a periodic piece of work. - - - parameter state: State passed to the action to be executed. - - parameter startAfter: Period after which initial work should be run. - - parameter period: Period for running the work periodically. - - parameter action: Action to be executed. - - returns: The disposable object used to cancel the scheduled action (best effort). - */ - public func schedulePeriodic(_ state: StateType, startAfter: TimeInterval, period: TimeInterval, action: @escaping (StateType) -> StateType) -> Disposable { - return self._mainScheduler.schedulePeriodic(state, startAfter: startAfter, period: period, action: action) - } -} diff --git a/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift b/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift deleted file mode 100644 index c7f6b17..0000000 --- a/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift +++ /dev/null @@ -1,144 +0,0 @@ -// -// CurrentThreadScheduler.swift -// RxSwift -// -// Created by Krunoslav Zaher on 8/30/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import class Foundation.NSObject -import protocol Foundation.NSCopying -import class Foundation.Thread -import Dispatch - -#if os(Linux) - import struct Foundation.pthread_key_t - import func Foundation.pthread_setspecific - import func Foundation.pthread_getspecific - import func Foundation.pthread_key_create - - fileprivate enum CurrentThreadSchedulerQueueKey { - fileprivate static let instance = "RxSwift.CurrentThreadScheduler.Queue" - } -#else - private class CurrentThreadSchedulerQueueKey: NSObject, NSCopying { - static let instance = CurrentThreadSchedulerQueueKey() - private override init() { - super.init() - } - - override var hash: Int { - return 0 - } - - public func copy(with zone: NSZone? = nil) -> Any { - return self - } - } -#endif - -/// Represents an object that schedules units of work on the current thread. -/// -/// This is the default scheduler for operators that generate elements. -/// -/// This scheduler is also sometimes called `trampoline scheduler`. -public class CurrentThreadScheduler : ImmediateSchedulerType { - typealias ScheduleQueue = RxMutableBox> - - /// The singleton instance of the current thread scheduler. - public static let instance = CurrentThreadScheduler() - - private static var isScheduleRequiredKey: pthread_key_t = { () -> pthread_key_t in - let key = UnsafeMutablePointer.allocate(capacity: 1) - defer { -#if swift(>=4.1) - key.deallocate() -#else - key.deallocate(capacity: 1) -#endif - } - - guard pthread_key_create(key, nil) == 0 else { - rxFatalError("isScheduleRequired key creation failed") - } - - return key.pointee - }() - - private static var scheduleInProgressSentinel: UnsafeRawPointer = { () -> UnsafeRawPointer in - return UnsafeRawPointer(UnsafeMutablePointer.allocate(capacity: 1)) - }() - - static var queue : ScheduleQueue? { - get { - return Thread.getThreadLocalStorageValueForKey(CurrentThreadSchedulerQueueKey.instance) - } - set { - Thread.setThreadLocalStorageValue(newValue, forKey: CurrentThreadSchedulerQueueKey.instance) - } - } - - /// Gets a value that indicates whether the caller must call a `schedule` method. - public static fileprivate(set) var isScheduleRequired: Bool { - get { - return pthread_getspecific(CurrentThreadScheduler.isScheduleRequiredKey) == nil - } - set(isScheduleRequired) { - if pthread_setspecific(CurrentThreadScheduler.isScheduleRequiredKey, isScheduleRequired ? nil : scheduleInProgressSentinel) != 0 { - rxFatalError("pthread_setspecific failed") - } - } - } - - /** - Schedules an action to be executed as soon as possible on current thread. - - If this method is called on some thread that doesn't have `CurrentThreadScheduler` installed, scheduler will be - automatically installed and uninstalled after all work is performed. - - - parameter state: State passed to the action to be executed. - - parameter action: Action to be executed. - - returns: The disposable object used to cancel the scheduled action (best effort). - */ - public func schedule(_ state: StateType, action: @escaping (StateType) -> Disposable) -> Disposable { - if CurrentThreadScheduler.isScheduleRequired { - CurrentThreadScheduler.isScheduleRequired = false - - let disposable = action(state) - - defer { - CurrentThreadScheduler.isScheduleRequired = true - CurrentThreadScheduler.queue = nil - } - - guard let queue = CurrentThreadScheduler.queue else { - return disposable - } - - while let latest = queue.value.dequeue() { - if latest.isDisposed { - continue - } - latest.invoke() - } - - return disposable - } - - let existingQueue = CurrentThreadScheduler.queue - - let queue: RxMutableBox> - if let existingQueue = existingQueue { - queue = existingQueue - } - else { - queue = RxMutableBox(Queue(capacity: 1)) - CurrentThreadScheduler.queue = queue - } - - let scheduledItem = ScheduledItem(action: action, state: state) - queue.value.enqueue(scheduledItem) - - return scheduledItem - } -} diff --git a/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift b/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift deleted file mode 100644 index 11af238..0000000 --- a/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift +++ /dev/null @@ -1,22 +0,0 @@ -// -// HistoricalScheduler.swift -// RxSwift -// -// Created by Krunoslav Zaher on 12/27/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import struct Foundation.Date - -/// Provides a virtual time scheduler that uses `Date` for absolute time and `NSTimeInterval` for relative time. -public class HistoricalScheduler : VirtualTimeScheduler { - - /** - Creates a new historical scheduler with initial clock value. - - - parameter initialClock: Initial value for virtual clock. - */ - public init(initialClock: RxTime = Date(timeIntervalSince1970: 0)) { - super.init(initialClock: initialClock, converter: HistoricalSchedulerTimeConverter()) - } -} diff --git a/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift b/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift deleted file mode 100644 index 930ca37..0000000 --- a/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift +++ /dev/null @@ -1,67 +0,0 @@ -// -// HistoricalSchedulerTimeConverter.swift -// RxSwift -// -// Created by Krunoslav Zaher on 12/27/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import struct Foundation.Date - -/// Converts historical virtual time into real time. -/// -/// Since historical virtual time is also measured in `Date`, this converter is identity function. -public struct HistoricalSchedulerTimeConverter : VirtualTimeConverterType { - /// Virtual time unit used that represents ticks of virtual clock. - public typealias VirtualTimeUnit = RxTime - - /// Virtual time unit used to represent differences of virtual times. - public typealias VirtualTimeIntervalUnit = RxTimeInterval - - /// Returns identical value of argument passed because historical virtual time is equal to real time, just - /// decoupled from local machine clock. - public func convertFromVirtualTime(_ virtualTime: VirtualTimeUnit) -> RxTime { - return virtualTime - } - - /// Returns identical value of argument passed because historical virtual time is equal to real time, just - /// decoupled from local machine clock. - public func convertToVirtualTime(_ time: RxTime) -> VirtualTimeUnit { - return time - } - - /// Returns identical value of argument passed because historical virtual time is equal to real time, just - /// decoupled from local machine clock. - public func convertFromVirtualTimeInterval(_ virtualTimeInterval: VirtualTimeIntervalUnit) -> RxTimeInterval { - return virtualTimeInterval - } - - /// Returns identical value of argument passed because historical virtual time is equal to real time, just - /// decoupled from local machine clock. - public func convertToVirtualTimeInterval(_ timeInterval: RxTimeInterval) -> VirtualTimeIntervalUnit { - return timeInterval - } - - /** - Offsets `Date` by time interval. - - - parameter time: Time. - - parameter timeInterval: Time interval offset. - - returns: Time offsetted by time interval. - */ - public func offsetVirtualTime(_ time: VirtualTimeUnit, offset: VirtualTimeIntervalUnit) -> VirtualTimeUnit { - return time.addingTimeInterval(offset) - } - - /// Compares two `Date`s. - public func compareVirtualTime(_ lhs: VirtualTimeUnit, _ rhs: VirtualTimeUnit) -> VirtualTimeComparison { - switch lhs.compare(rhs as Date) { - case .orderedAscending: - return .lessThan - case .orderedSame: - return .equal - case .orderedDescending: - return .greaterThan - } - } -} diff --git a/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift b/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift deleted file mode 100644 index 792a0be..0000000 --- a/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift +++ /dev/null @@ -1,104 +0,0 @@ -// -// DispatchQueueConfiguration.swift -// RxSwift -// -// Created by Krunoslav Zaher on 7/23/16. -// Copyright © 2016 Krunoslav Zaher. All rights reserved. -// - -import Dispatch -import struct Foundation.TimeInterval - -struct DispatchQueueConfiguration { - let queue: DispatchQueue - let leeway: DispatchTimeInterval -} - -private func dispatchInterval(_ interval: Foundation.TimeInterval) -> DispatchTimeInterval { - precondition(interval >= 0.0) - // TODO: Replace 1000 with something that actually works - // NSEC_PER_MSEC returns 1000000 - return DispatchTimeInterval.milliseconds(Int(interval * 1000.0)) -} - -extension DispatchQueueConfiguration { - func schedule(_ state: StateType, action: @escaping (StateType) -> Disposable) -> Disposable { - let cancel = SingleAssignmentDisposable() - - self.queue.async { - if cancel.isDisposed { - return - } - - - cancel.setDisposable(action(state)) - } - - return cancel - } - - func scheduleRelative(_ state: StateType, dueTime: Foundation.TimeInterval, action: @escaping (StateType) -> Disposable) -> Disposable { - let deadline = DispatchTime.now() + dispatchInterval(dueTime) - - let compositeDisposable = CompositeDisposable() - - let timer = DispatchSource.makeTimerSource(queue: self.queue) - timer.schedule(deadline: deadline, leeway: self.leeway) - - // TODO: - // This looks horrible, and yes, it is. - // It looks like Apple has made a conceputal change here, and I'm unsure why. - // Need more info on this. - // It looks like just setting timer to fire and not holding a reference to it - // until deadline causes timer cancellation. - var timerReference: DispatchSourceTimer? = timer - let cancelTimer = Disposables.create { - timerReference?.cancel() - timerReference = nil - } - - timer.setEventHandler(handler: { - if compositeDisposable.isDisposed { - return - } - _ = compositeDisposable.insert(action(state)) - cancelTimer.dispose() - }) - timer.resume() - - _ = compositeDisposable.insert(cancelTimer) - - return compositeDisposable - } - - func schedulePeriodic(_ state: StateType, startAfter: TimeInterval, period: TimeInterval, action: @escaping (StateType) -> StateType) -> Disposable { - let initial = DispatchTime.now() + dispatchInterval(startAfter) - - var timerState = state - - let timer = DispatchSource.makeTimerSource(queue: self.queue) - timer.schedule(deadline: initial, repeating: dispatchInterval(period), leeway: self.leeway) - - // TODO: - // This looks horrible, and yes, it is. - // It looks like Apple has made a conceputal change here, and I'm unsure why. - // Need more info on this. - // It looks like just setting timer to fire and not holding a reference to it - // until deadline causes timer cancellation. - var timerReference: DispatchSourceTimer? = timer - let cancelTimer = Disposables.create { - timerReference?.cancel() - timerReference = nil - } - - timer.setEventHandler(handler: { - if cancelTimer.isDisposed { - return - } - timerState = action(timerState) - }) - timer.resume() - - return cancelTimer - } -} diff --git a/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift b/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift deleted file mode 100644 index f31469e..0000000 --- a/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift +++ /dev/null @@ -1,22 +0,0 @@ -// -// InvocableScheduledItem.swift -// RxSwift -// -// Created by Krunoslav Zaher on 11/7/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -struct InvocableScheduledItem : InvocableType { - - let _invocable: I - let _state: I.Value - - init(invocable: I, state: I.Value) { - self._invocable = invocable - self._state = state - } - - func invoke() { - self._invocable.invoke(self._state) - } -} diff --git a/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift b/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift deleted file mode 100644 index 0dba433..0000000 --- a/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// InvocableType.swift -// RxSwift -// -// Created by Krunoslav Zaher on 11/7/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -protocol InvocableType { - func invoke() -} - -protocol InvocableWithValueType { - associatedtype Value - - func invoke(_ value: Value) -} diff --git a/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift b/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift deleted file mode 100644 index 6e7a0c1..0000000 --- a/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift +++ /dev/null @@ -1,35 +0,0 @@ -// -// ScheduledItem.swift -// RxSwift -// -// Created by Krunoslav Zaher on 9/2/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -struct ScheduledItem - : ScheduledItemType - , InvocableType { - typealias Action = (T) -> Disposable - - private let _action: Action - private let _state: T - - private let _disposable = SingleAssignmentDisposable() - - var isDisposed: Bool { - return self._disposable.isDisposed - } - - init(action: @escaping Action, state: T) { - self._action = action - self._state = state - } - - func invoke() { - self._disposable.setDisposable(self._action(self._state)) - } - - func dispose() { - self._disposable.dispose() - } -} diff --git a/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift b/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift deleted file mode 100644 index d2b16ca..0000000 --- a/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift +++ /dev/null @@ -1,13 +0,0 @@ -// -// ScheduledItemType.swift -// RxSwift -// -// Created by Krunoslav Zaher on 11/7/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -protocol ScheduledItemType - : Cancelable - , InvocableType { - func invoke() -} diff --git a/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift b/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift deleted file mode 100644 index 72595c0..0000000 --- a/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift +++ /dev/null @@ -1,80 +0,0 @@ -// -// MainScheduler.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/8/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import Dispatch -#if !os(Linux) - import Foundation -#endif - -/** -Abstracts work that needs to be performed on `DispatchQueue.main`. In case `schedule` methods are called from `DispatchQueue.main`, it will perform action immediately without scheduling. - -This scheduler is usually used to perform UI work. - -Main scheduler is a specialization of `SerialDispatchQueueScheduler`. - -This scheduler is optimized for `observeOn` operator. To ensure observable sequence is subscribed on main thread using `subscribeOn` -operator please use `ConcurrentMainScheduler` because it is more optimized for that purpose. -*/ -public final class MainScheduler : SerialDispatchQueueScheduler { - - private let _mainQueue: DispatchQueue - - var numberEnqueued = AtomicInt(0) - - /// Initializes new instance of `MainScheduler`. - public init() { - self._mainQueue = DispatchQueue.main - super.init(serialQueue: self._mainQueue) - } - - /// Singleton instance of `MainScheduler` - public static let instance = MainScheduler() - - /// Singleton instance of `MainScheduler` that always schedules work asynchronously - /// and doesn't perform optimizations for calls scheduled from main queue. - public static let asyncInstance = SerialDispatchQueueScheduler(serialQueue: DispatchQueue.main) - - /// In case this method is called on a background thread it will throw an exception. - public class func ensureExecutingOnScheduler(errorMessage: String? = nil) { - if !DispatchQueue.isMain { - rxFatalError(errorMessage ?? "Executing on background thread. Please use `MainScheduler.instance.schedule` to schedule work on main thread.") - } - } - - /// In case this method is running on a background thread it will throw an exception. - public class func ensureRunningOnMainThread(errorMessage: String? = nil) { - #if !os(Linux) // isMainThread is not implemented in Linux Foundation - guard Thread.isMainThread else { - rxFatalError(errorMessage ?? "Running on background thread.") - } - #endif - } - - override func scheduleInternal(_ state: StateType, action: @escaping (StateType) -> Disposable) -> Disposable { - let previousNumberEnqueued = increment(&self.numberEnqueued) - - if DispatchQueue.isMain && previousNumberEnqueued == 0 { - let disposable = action(state) - decrement(&self.numberEnqueued) - return disposable - } - - let cancel = SingleAssignmentDisposable() - - self._mainQueue.async { - if !cancel.isDisposed { - _ = action(state) - } - - decrement(&self.numberEnqueued) - } - - return cancel - } -} diff --git a/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift b/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift deleted file mode 100644 index 81ba59f..0000000 --- a/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift +++ /dev/null @@ -1,56 +0,0 @@ -// -// OperationQueueScheduler.swift -// RxSwift -// -// Created by Krunoslav Zaher on 4/4/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import class Foundation.Operation -import class Foundation.OperationQueue -import class Foundation.BlockOperation -import Dispatch - -/// Abstracts the work that needs to be performed on a specific `NSOperationQueue`. -/// -/// This scheduler is suitable for cases when there is some bigger chunk of work that needs to be performed in background and you want to fine tune concurrent processing using `maxConcurrentOperationCount`. -public class OperationQueueScheduler: ImmediateSchedulerType { - public let operationQueue: OperationQueue - public let queuePriority: Operation.QueuePriority - - /// Constructs new instance of `OperationQueueScheduler` that performs work on `operationQueue`. - /// - /// - parameter operationQueue: Operation queue targeted to perform work on. - /// - parameter queuePriority: Queue priority which will be assigned to new operations. - public init(operationQueue: OperationQueue, queuePriority: Operation.QueuePriority = .normal) { - self.operationQueue = operationQueue - self.queuePriority = queuePriority - } - - /** - Schedules an action to be executed recursively. - - - parameter state: State passed to the action to be executed. - - parameter action: Action to execute recursively. The last parameter passed to the action is used to trigger recursive scheduling of the action, passing in recursive invocation state. - - returns: The disposable object used to cancel the scheduled action (best effort). - */ - public func schedule(_ state: StateType, action: @escaping (StateType) -> Disposable) -> Disposable { - let cancel = SingleAssignmentDisposable() - - let operation = BlockOperation { - if cancel.isDisposed { - return - } - - - cancel.setDisposable(action(state)) - } - - operation.queuePriority = self.queuePriority - - self.operationQueue.addOperation(operation) - - return cancel - } - -} diff --git a/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift b/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift deleted file mode 100644 index 9e9b4ff..0000000 --- a/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift +++ /dev/null @@ -1,220 +0,0 @@ -// -// RecursiveScheduler.swift -// RxSwift -// -// Created by Krunoslav Zaher on 6/7/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -private enum ScheduleState { - case initial - case added(CompositeDisposable.DisposeKey) - case done -} - -/// Type erased recursive scheduler. -final class AnyRecursiveScheduler { - - typealias Action = (State, AnyRecursiveScheduler) -> Void - - private let _lock = RecursiveLock() - - // state - private let _group = CompositeDisposable() - - private var _scheduler: SchedulerType - private var _action: Action? - - init(scheduler: SchedulerType, action: @escaping Action) { - self._action = action - self._scheduler = scheduler - } - - /** - Schedules an action to be executed recursively. - - - parameter state: State passed to the action to be executed. - - parameter dueTime: Relative time after which to execute the recursive action. - */ - func schedule(_ state: State, dueTime: RxTimeInterval) { - var scheduleState: ScheduleState = .initial - - let d = self._scheduler.scheduleRelative(state, dueTime: dueTime) { state -> Disposable in - // best effort - if self._group.isDisposed { - return Disposables.create() - } - - let action = self._lock.calculateLocked { () -> Action? in - switch scheduleState { - case let .added(removeKey): - self._group.remove(for: removeKey) - case .initial: - break - case .done: - break - } - - scheduleState = .done - - return self._action - } - - if let action = action { - action(state, self) - } - - return Disposables.create() - } - - self._lock.performLocked { - switch scheduleState { - case .added: - rxFatalError("Invalid state") - case .initial: - if let removeKey = self._group.insert(d) { - scheduleState = .added(removeKey) - } - else { - scheduleState = .done - } - case .done: - break - } - } - } - - /// Schedules an action to be executed recursively. - /// - /// - parameter state: State passed to the action to be executed. - func schedule(_ state: State) { - var scheduleState: ScheduleState = .initial - - let d = self._scheduler.schedule(state) { state -> Disposable in - // best effort - if self._group.isDisposed { - return Disposables.create() - } - - let action = self._lock.calculateLocked { () -> Action? in - switch scheduleState { - case let .added(removeKey): - self._group.remove(for: removeKey) - case .initial: - break - case .done: - break - } - - scheduleState = .done - - return self._action - } - - if let action = action { - action(state, self) - } - - return Disposables.create() - } - - self._lock.performLocked { - switch scheduleState { - case .added: - rxFatalError("Invalid state") - case .initial: - if let removeKey = self._group.insert(d) { - scheduleState = .added(removeKey) - } - else { - scheduleState = .done - } - case .done: - break - } - } - } - - func dispose() { - self._lock.performLocked { - self._action = nil - } - self._group.dispose() - } -} - -/// Type erased recursive scheduler. -final class RecursiveImmediateScheduler { - typealias Action = (_ state: State, _ recurse: (State) -> Void) -> Void - - private var _lock = SpinLock() - private let _group = CompositeDisposable() - - private var _action: Action? - private let _scheduler: ImmediateSchedulerType - - init(action: @escaping Action, scheduler: ImmediateSchedulerType) { - self._action = action - self._scheduler = scheduler - } - - // immediate scheduling - - /// Schedules an action to be executed recursively. - /// - /// - parameter state: State passed to the action to be executed. - func schedule(_ state: State) { - var scheduleState: ScheduleState = .initial - - let d = self._scheduler.schedule(state) { state -> Disposable in - // best effort - if self._group.isDisposed { - return Disposables.create() - } - - let action = self._lock.calculateLocked { () -> Action? in - switch scheduleState { - case let .added(removeKey): - self._group.remove(for: removeKey) - case .initial: - break - case .done: - break - } - - scheduleState = .done - - return self._action - } - - if let action = action { - action(state, self.schedule) - } - - return Disposables.create() - } - - self._lock.performLocked { - switch scheduleState { - case .added: - rxFatalError("Invalid state") - case .initial: - if let removeKey = self._group.insert(d) { - scheduleState = .added(removeKey) - } - else { - scheduleState = .done - } - case .done: - break - } - } - } - - func dispose() { - self._lock.performLocked { - self._action = nil - } - self._group.dispose() - } -} diff --git a/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift b/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift deleted file mode 100644 index 371e4ad..0000000 --- a/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// SchedulerServices+Emulation.swift -// RxSwift -// -// Created by Krunoslav Zaher on 6/6/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -enum SchedulePeriodicRecursiveCommand { - case tick - case dispatchStart -} - -final class SchedulePeriodicRecursive { - typealias RecursiveAction = (State) -> State - typealias RecursiveScheduler = AnyRecursiveScheduler - - private let _scheduler: SchedulerType - private let _startAfter: RxTimeInterval - private let _period: RxTimeInterval - private let _action: RecursiveAction - - private var _state: State - private var _pendingTickCount = AtomicInt(0) - - init(scheduler: SchedulerType, startAfter: RxTimeInterval, period: RxTimeInterval, action: @escaping RecursiveAction, state: State) { - self._scheduler = scheduler - self._startAfter = startAfter - self._period = period - self._action = action - self._state = state - } - - func start() -> Disposable { - return self._scheduler.scheduleRecursive(SchedulePeriodicRecursiveCommand.tick, dueTime: self._startAfter, action: self.tick) - } - - func tick(_ command: SchedulePeriodicRecursiveCommand, scheduler: RecursiveScheduler) { - // Tries to emulate periodic scheduling as best as possible. - // The problem that could arise is if handling periodic ticks take too long, or - // tick interval is short. - switch command { - case .tick: - scheduler.schedule(.tick, dueTime: self._period) - - // The idea is that if on tick there wasn't any item enqueued, schedule to perform work immediately. - // Else work will be scheduled after previous enqueued work completes. - if increment(&self._pendingTickCount) == 0 { - self.tick(.dispatchStart, scheduler: scheduler) - } - - case .dispatchStart: - self._state = self._action(self._state) - // Start work and schedule check is this last batch of work - if decrement(&self._pendingTickCount) > 1 { - // This gives priority to scheduler emulation, it's not perfect, but helps - scheduler.schedule(SchedulePeriodicRecursiveCommand.dispatchStart) - } - } - } -} diff --git a/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift b/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift deleted file mode 100644 index 8adb57b..0000000 --- a/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift +++ /dev/null @@ -1,132 +0,0 @@ -// -// SerialDispatchQueueScheduler.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/8/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import struct Foundation.TimeInterval -import struct Foundation.Date -import Dispatch - -/** -Abstracts the work that needs to be performed on a specific `dispatch_queue_t`. It will make sure -that even if concurrent dispatch queue is passed, it's transformed into a serial one. - -It is extremely important that this scheduler is serial, because -certain operator perform optimizations that rely on that property. - -Because there is no way of detecting is passed dispatch queue serial or -concurrent, for every queue that is being passed, worst case (concurrent) -will be assumed, and internal serial proxy dispatch queue will be created. - -This scheduler can also be used with internal serial queue alone. - -In case some customization need to be made on it before usage, -internal serial queue can be customized using `serialQueueConfiguration` -callback. -*/ -public class SerialDispatchQueueScheduler : SchedulerType { - public typealias TimeInterval = Foundation.TimeInterval - public typealias Time = Date - - /// - returns: Current time. - public var now : Date { - return Date() - } - - let configuration: DispatchQueueConfiguration - - /** - Constructs new `SerialDispatchQueueScheduler` that wraps `serialQueue`. - - - parameter serialQueue: Target dispatch queue. - - parameter leeway: The amount of time, in nanoseconds, that the system will defer the timer. - */ - init(serialQueue: DispatchQueue, leeway: DispatchTimeInterval = DispatchTimeInterval.nanoseconds(0)) { - self.configuration = DispatchQueueConfiguration(queue: serialQueue, leeway: leeway) - } - - /** - Constructs new `SerialDispatchQueueScheduler` with internal serial queue named `internalSerialQueueName`. - - Additional dispatch queue properties can be set after dispatch queue is created using `serialQueueConfiguration`. - - - parameter internalSerialQueueName: Name of internal serial dispatch queue. - - parameter serialQueueConfiguration: Additional configuration of internal serial dispatch queue. - - parameter leeway: The amount of time, in nanoseconds, that the system will defer the timer. - */ - public convenience init(internalSerialQueueName: String, serialQueueConfiguration: ((DispatchQueue) -> Void)? = nil, leeway: DispatchTimeInterval = DispatchTimeInterval.nanoseconds(0)) { - let queue = DispatchQueue(label: internalSerialQueueName, attributes: []) - serialQueueConfiguration?(queue) - self.init(serialQueue: queue, leeway: leeway) - } - - /** - Constructs new `SerialDispatchQueueScheduler` named `internalSerialQueueName` that wraps `queue`. - - - parameter queue: Possibly concurrent dispatch queue used to perform work. - - parameter internalSerialQueueName: Name of internal serial dispatch queue proxy. - - parameter leeway: The amount of time, in nanoseconds, that the system will defer the timer. - */ - public convenience init(queue: DispatchQueue, internalSerialQueueName: String, leeway: DispatchTimeInterval = DispatchTimeInterval.nanoseconds(0)) { - // Swift 3.0 IUO - let serialQueue = DispatchQueue(label: internalSerialQueueName, - attributes: [], - target: queue) - self.init(serialQueue: serialQueue, leeway: leeway) - } - - /** - Constructs new `SerialDispatchQueueScheduler` that wraps on of the global concurrent dispatch queues. - - - parameter qos: Identifier for global dispatch queue with specified quality of service class. - - parameter internalSerialQueueName: Custom name for internal serial dispatch queue proxy. - - parameter leeway: The amount of time, in nanoseconds, that the system will defer the timer. - */ - @available(iOS 8, OSX 10.10, *) - public convenience init(qos: DispatchQoS, internalSerialQueueName: String = "rx.global_dispatch_queue.serial", leeway: DispatchTimeInterval = DispatchTimeInterval.nanoseconds(0)) { - self.init(queue: DispatchQueue.global(qos: qos.qosClass), internalSerialQueueName: internalSerialQueueName, leeway: leeway) - } - - /** - Schedules an action to be executed immediately. - - - parameter state: State passed to the action to be executed. - - parameter action: Action to be executed. - - returns: The disposable object used to cancel the scheduled action (best effort). - */ - public final func schedule(_ state: StateType, action: @escaping (StateType) -> Disposable) -> Disposable { - return self.scheduleInternal(state, action: action) - } - - func scheduleInternal(_ state: StateType, action: @escaping (StateType) -> Disposable) -> Disposable { - return self.configuration.schedule(state, action: action) - } - - /** - Schedules an action to be executed. - - - parameter state: State passed to the action to be executed. - - parameter dueTime: Relative time after which to execute the action. - - parameter action: Action to be executed. - - returns: The disposable object used to cancel the scheduled action (best effort). - */ - public final func scheduleRelative(_ state: StateType, dueTime: Foundation.TimeInterval, action: @escaping (StateType) -> Disposable) -> Disposable { - return self.configuration.scheduleRelative(state, dueTime: dueTime, action: action) - } - - /** - Schedules a periodic piece of work. - - - parameter state: State passed to the action to be executed. - - parameter startAfter: Period after which initial work should be run. - - parameter period: Period for running the work periodically. - - parameter action: Action to be executed. - - returns: The disposable object used to cancel the scheduled action (best effort). - */ - public func schedulePeriodic(_ state: StateType, startAfter: TimeInterval, period: TimeInterval, action: @escaping (StateType) -> StateType) -> Disposable { - return self.configuration.schedulePeriodic(state, startAfter: startAfter, period: period, action: action) - } -} diff --git a/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift b/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift deleted file mode 100644 index a17475a..0000000 --- a/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift +++ /dev/null @@ -1,95 +0,0 @@ -// -// VirtualTimeConverterType.swift -// RxSwift -// -// Created by Krunoslav Zaher on 12/23/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// Parametrization for virtual time used by `VirtualTimeScheduler`s. -public protocol VirtualTimeConverterType { - /// Virtual time unit used that represents ticks of virtual clock. - associatedtype VirtualTimeUnit - - /// Virtual time unit used to represent differences of virtual times. - associatedtype VirtualTimeIntervalUnit - - /** - Converts virtual time to real time. - - - parameter virtualTime: Virtual time to convert to `Date`. - - returns: `Date` corresponding to virtual time. - */ - func convertFromVirtualTime(_ virtualTime: VirtualTimeUnit) -> RxTime - - /** - Converts real time to virtual time. - - - parameter time: `Date` to convert to virtual time. - - returns: Virtual time corresponding to `Date`. - */ - func convertToVirtualTime(_ time: RxTime) -> VirtualTimeUnit - - /** - Converts from virtual time interval to `NSTimeInterval`. - - - parameter virtualTimeInterval: Virtual time interval to convert to `NSTimeInterval`. - - returns: `NSTimeInterval` corresponding to virtual time interval. - */ - func convertFromVirtualTimeInterval(_ virtualTimeInterval: VirtualTimeIntervalUnit) -> RxTimeInterval - - /** - Converts from `NSTimeInterval` to virtual time interval. - - - parameter timeInterval: `NSTimeInterval` to convert to virtual time interval. - - returns: Virtual time interval corresponding to time interval. - */ - func convertToVirtualTimeInterval(_ timeInterval: RxTimeInterval) -> VirtualTimeIntervalUnit - - /** - Offsets virtual time by virtual time interval. - - - parameter time: Virtual time. - - parameter offset: Virtual time interval. - - returns: Time corresponding to time offsetted by virtual time interval. - */ - func offsetVirtualTime(_ time: VirtualTimeUnit, offset: VirtualTimeIntervalUnit) -> VirtualTimeUnit - - /** - This is additional abstraction because `Date` is unfortunately not comparable. - Extending `Date` with `Comparable` would be too risky because of possible collisions with other libraries. - */ - func compareVirtualTime(_ lhs: VirtualTimeUnit, _ rhs: VirtualTimeUnit) -> VirtualTimeComparison -} - -/** - Virtual time comparison result. - - This is additional abstraction because `Date` is unfortunately not comparable. - Extending `Date` with `Comparable` would be too risky because of possible collisions with other libraries. -*/ -public enum VirtualTimeComparison { - /// lhs < rhs. - case lessThan - /// lhs == rhs. - case equal - /// lhs > rhs. - case greaterThan -} - -extension VirtualTimeComparison { - /// lhs < rhs. - var lessThen: Bool { - return self == .lessThan - } - - /// lhs > rhs - var greaterThan: Bool { - return self == .greaterThan - } - - /// lhs == rhs - var equal: Bool { - return self == .equal - } -} diff --git a/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift b/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift deleted file mode 100644 index 037df95..0000000 --- a/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift +++ /dev/null @@ -1,269 +0,0 @@ -// -// VirtualTimeScheduler.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/14/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -/// Base class for virtual time schedulers using a priority queue for scheduled items. -open class VirtualTimeScheduler - : SchedulerType { - - public typealias VirtualTime = Converter.VirtualTimeUnit - public typealias VirtualTimeInterval = Converter.VirtualTimeIntervalUnit - - private var _running : Bool - - private var _clock: VirtualTime - - fileprivate var _schedulerQueue : PriorityQueue> - private var _converter: Converter - - private var _nextId = 0 - - /// - returns: Current time. - public var now: RxTime { - return self._converter.convertFromVirtualTime(self.clock) - } - - /// - returns: Scheduler's absolute time clock value. - public var clock: VirtualTime { - return self._clock - } - - /// Creates a new virtual time scheduler. - /// - /// - parameter initialClock: Initial value for the clock. - public init(initialClock: VirtualTime, converter: Converter) { - self._clock = initialClock - self._running = false - self._converter = converter - self._schedulerQueue = PriorityQueue(hasHigherPriority: { - switch converter.compareVirtualTime($0.time, $1.time) { - case .lessThan: - return true - case .equal: - return $0.id < $1.id - case .greaterThan: - return false - } - }, isEqual: { $0 === $1 }) - #if TRACE_RESOURCES - _ = Resources.incrementTotal() - #endif - } - - /** - Schedules an action to be executed immediately. - - - parameter state: State passed to the action to be executed. - - parameter action: Action to be executed. - - returns: The disposable object used to cancel the scheduled action (best effort). - */ - public func schedule(_ state: StateType, action: @escaping (StateType) -> Disposable) -> Disposable { - return self.scheduleRelative(state, dueTime: 0.0) { a in - return action(a) - } - } - - /** - Schedules an action to be executed. - - - parameter state: State passed to the action to be executed. - - parameter dueTime: Relative time after which to execute the action. - - parameter action: Action to be executed. - - returns: The disposable object used to cancel the scheduled action (best effort). - */ - public func scheduleRelative(_ state: StateType, dueTime: RxTimeInterval, action: @escaping (StateType) -> Disposable) -> Disposable { - let time = self.now.addingTimeInterval(dueTime) - let absoluteTime = self._converter.convertToVirtualTime(time) - let adjustedTime = self.adjustScheduledTime(absoluteTime) - return self.scheduleAbsoluteVirtual(state, time: adjustedTime, action: action) - } - - /** - Schedules an action to be executed after relative time has passed. - - - parameter state: State passed to the action to be executed. - - parameter time: Absolute time when to execute the action. If this is less or equal then `now`, `now + 1` will be used. - - parameter action: Action to be executed. - - returns: The disposable object used to cancel the scheduled action (best effort). - */ - public func scheduleRelativeVirtual(_ state: StateType, dueTime: VirtualTimeInterval, action: @escaping (StateType) -> Disposable) -> Disposable { - let time = self._converter.offsetVirtualTime(self.clock, offset: dueTime) - return self.scheduleAbsoluteVirtual(state, time: time, action: action) - } - - /** - Schedules an action to be executed at absolute virtual time. - - - parameter state: State passed to the action to be executed. - - parameter time: Absolute time when to execute the action. - - parameter action: Action to be executed. - - returns: The disposable object used to cancel the scheduled action (best effort). - */ - public func scheduleAbsoluteVirtual(_ state: StateType, time: Converter.VirtualTimeUnit, action: @escaping (StateType) -> Disposable) -> Disposable { - MainScheduler.ensureExecutingOnScheduler() - - let compositeDisposable = CompositeDisposable() - - let item = VirtualSchedulerItem(action: { - let dispose = action(state) - return dispose - }, time: time, id: self._nextId) - - self._nextId += 1 - - self._schedulerQueue.enqueue(item) - - _ = compositeDisposable.insert(item) - - return compositeDisposable - } - - /// Adjusts time of scheduling before adding item to schedule queue. - open func adjustScheduledTime(_ time: Converter.VirtualTimeUnit) -> Converter.VirtualTimeUnit { - return time - } - - /// Starts the virtual time scheduler. - public func start() { - MainScheduler.ensureExecutingOnScheduler() - - if self._running { - return - } - - self._running = true - repeat { - guard let next = self.findNext() else { - break - } - - if self._converter.compareVirtualTime(next.time, self.clock).greaterThan { - self._clock = next.time - } - - next.invoke() - self._schedulerQueue.remove(next) - } while self._running - - self._running = false - } - - func findNext() -> VirtualSchedulerItem? { - while let front = self._schedulerQueue.peek() { - if front.isDisposed { - self._schedulerQueue.remove(front) - continue - } - - return front - } - - return nil - } - - /// Advances the scheduler's clock to the specified time, running all work till that point. - /// - /// - parameter virtualTime: Absolute time to advance the scheduler's clock to. - public func advanceTo(_ virtualTime: VirtualTime) { - MainScheduler.ensureExecutingOnScheduler() - - if self._running { - fatalError("Scheduler is already running") - } - - self._running = true - repeat { - guard let next = self.findNext() else { - break - } - - if self._converter.compareVirtualTime(next.time, virtualTime).greaterThan { - break - } - - if self._converter.compareVirtualTime(next.time, self.clock).greaterThan { - self._clock = next.time - } - - next.invoke() - self._schedulerQueue.remove(next) - } while self._running - - self._clock = virtualTime - self._running = false - } - - /// Advances the scheduler's clock by the specified relative time. - public func sleep(_ virtualInterval: VirtualTimeInterval) { - MainScheduler.ensureExecutingOnScheduler() - - let sleepTo = self._converter.offsetVirtualTime(self.clock, offset: virtualInterval) - if self._converter.compareVirtualTime(sleepTo, self.clock).lessThen { - fatalError("Can't sleep to past.") - } - - self._clock = sleepTo - } - - /// Stops the virtual time scheduler. - public func stop() { - MainScheduler.ensureExecutingOnScheduler() - - self._running = false - } - - #if TRACE_RESOURCES - deinit { - _ = Resources.decrementTotal() - } - #endif -} - -// MARK: description - -extension VirtualTimeScheduler: CustomDebugStringConvertible { - /// A textual representation of `self`, suitable for debugging. - public var debugDescription: String { - return self._schedulerQueue.debugDescription - } -} - -final class VirtualSchedulerItem