diff --git a/.bundle/config b/.bundle/config new file mode 100644 index 0000000..c225721 --- /dev/null +++ b/.bundle/config @@ -0,0 +1,2 @@ +--- +BUNDLE_PATH: "vender/bundle" diff --git a/.gitignore b/.gitignore index b2194c8..cb224d7 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,7 @@ xcuserdata *.xcworkspace/contents.xcworkspacedata /*.gcno **/xcshareddata/WorkspaceSettings.xcsettings +vender/bundle +*.xcworkspace +Pods/ +build/ diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..8c4e32b --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +source "https://rubygems.org" + +gem "cocoapods" + diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..83ca0ef --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,130 @@ +GEM + remote: https://rubygems.org/ + specs: + CFPropertyList (3.0.7) + base64 + nkf + rexml + activesupport (7.2.1.2) + base64 + bigdecimal + concurrent-ruby (~> 1.0, >= 1.3.1) + connection_pool (>= 2.2.5) + drb + i18n (>= 1.6, < 2) + logger (>= 1.4.2) + minitest (>= 5.1) + securerandom (>= 0.3) + tzinfo (~> 2.0, >= 2.0.5) + addressable (2.8.7) + public_suffix (>= 2.0.2, < 7.0) + algoliasearch (1.27.5) + httpclient (~> 2.8, >= 2.8.3) + json (>= 1.5.1) + atomos (0.1.3) + base64 (0.2.0) + bigdecimal (3.1.8) + claide (1.1.0) + cocoapods (1.15.2) + addressable (~> 2.8) + claide (>= 1.0.2, < 2.0) + cocoapods-core (= 1.15.2) + cocoapods-deintegrate (>= 1.0.3, < 2.0) + cocoapods-downloader (>= 2.1, < 3.0) + cocoapods-plugins (>= 1.0.0, < 2.0) + cocoapods-search (>= 1.0.0, < 2.0) + cocoapods-trunk (>= 1.6.0, < 2.0) + cocoapods-try (>= 1.1.0, < 2.0) + colored2 (~> 3.1) + escape (~> 0.0.4) + fourflusher (>= 2.3.0, < 3.0) + gh_inspector (~> 1.0) + molinillo (~> 0.8.0) + nap (~> 1.0) + ruby-macho (>= 2.3.0, < 3.0) + xcodeproj (>= 1.23.0, < 2.0) + cocoapods-core (1.15.2) + activesupport (>= 5.0, < 8) + addressable (~> 2.8) + algoliasearch (~> 1.0) + concurrent-ruby (~> 1.1) + fuzzy_match (~> 2.0.4) + nap (~> 1.0) + netrc (~> 0.11) + public_suffix (~> 4.0) + typhoeus (~> 1.0) + cocoapods-deintegrate (1.0.5) + cocoapods-downloader (2.1) + cocoapods-plugins (1.0.0) + nap + cocoapods-search (1.0.1) + cocoapods-trunk (1.6.0) + nap (>= 0.8, < 2.0) + netrc (~> 0.11) + cocoapods-try (1.2.0) + colored2 (3.1.2) + concurrent-ruby (1.3.4) + connection_pool (2.4.1) + drb (2.2.1) + escape (0.0.4) + ethon (0.16.0) + ffi (>= 1.15.0) + ffi (1.17.0) + ffi (1.17.0-aarch64-linux-gnu) + ffi (1.17.0-aarch64-linux-musl) + ffi (1.17.0-arm-linux-gnu) + ffi (1.17.0-arm-linux-musl) + ffi (1.17.0-arm64-darwin) + ffi (1.17.0-x86-linux-gnu) + ffi (1.17.0-x86-linux-musl) + ffi (1.17.0-x86_64-darwin) + ffi (1.17.0-x86_64-linux-gnu) + ffi (1.17.0-x86_64-linux-musl) + fourflusher (2.3.1) + fuzzy_match (2.0.4) + gh_inspector (1.1.3) + httpclient (2.8.3) + i18n (1.14.6) + concurrent-ruby (~> 1.0) + json (2.7.4) + logger (1.6.1) + minitest (5.25.1) + molinillo (0.8.0) + nanaimo (0.3.0) + nap (1.1.0) + netrc (0.11.0) + nkf (0.2.0) + public_suffix (4.0.7) + rexml (3.3.9) + ruby-macho (2.5.1) + securerandom (0.3.1) + typhoeus (1.4.1) + ethon (>= 0.9.0) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + xcodeproj (1.25.1) + CFPropertyList (>= 2.3.3, < 4.0) + atomos (~> 0.1.3) + claide (>= 1.0.2, < 2.0) + colored2 (~> 3.1) + nanaimo (~> 0.3.0) + rexml (>= 3.3.6, < 4.0) + +PLATFORMS + aarch64-linux-gnu + aarch64-linux-musl + arm-linux-gnu + arm-linux-musl + arm64-darwin + ruby + x86-linux-gnu + x86-linux-musl + x86_64-darwin + x86_64-linux-gnu + x86_64-linux-musl + +DEPENDENCIES + cocoapods + +BUNDLED WITH + 2.5.18 diff --git a/Podfile b/Podfile index 8fb0ce8..15a119c 100644 --- a/Podfile +++ b/Podfile @@ -1,23 +1,16 @@ -# Uncomment this line to define a global platform for your project -# platform :ios, '8.0' -# Uncomment this line if you're using Swift +platform :ios, '12.0' use_frameworks! - target 'RxMarbles' do - -pod 'RxSwift', '~> 4.0' -pod 'RxCocoa', '~> 4.0' -pod 'Device' -pod 'Fabric' -pod 'Crashlytics' -pod 'RazzleDazzle', :git => 'https://github.com/carlosypunto/RazzleDazzle.git', :tag => '0.2.0' - + pod 'RxSwift' + pod 'RxCocoa' + pod 'Device' + pod 'RazzleDazzle', :git => 'https://github.com/wangzhizhou/RazzleDazzle.git', :branch => 'master' end post_install do |installer| installer.pods_project.targets.each do |target| - target.build_configurations.each do |configuration| - configuration.build_settings['SWIFT_VERSION'] = "4.0" + target.build_configurations.each do |config|g + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0' end end end diff --git a/Podfile.lock b/Podfile.lock index bf5aec8..74a2157 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -1,51 +1,43 @@ PODS: - - Crashlytics (3.12.0): - - Fabric (~> 1.9.0) - - Device (3.1.2) - - Fabric (1.9.0) - - RazzleDazzle (0.2.0) - - RxAtomic (4.4.1) - - RxCocoa (4.4.1): - - RxSwift (~> 4.0) - - RxSwift (4.4.1): - - RxAtomic (~> 4.4) + - Device (3.7.0) + - RazzleDazzle (0.3.0) + - RxCocoa (6.8.0): + - RxRelay (= 6.8.0) + - RxSwift (= 6.8.0) + - RxRelay (6.8.0): + - RxSwift (= 6.8.0) + - RxSwift (6.8.0) DEPENDENCIES: - - Crashlytics - Device - - Fabric - - RazzleDazzle (from `https://github.com/carlosypunto/RazzleDazzle.git`, tag `0.2.0`) - - RxCocoa (~> 4.0) - - RxSwift (~> 4.0) + - RazzleDazzle (from `https://github.com/wangzhizhou/RazzleDazzle.git`, branch `master`) + - RxCocoa + - RxSwift SPEC REPOS: - https://github.com/cocoapods/specs.git: - - Crashlytics + trunk: - Device - - Fabric - - RxAtomic - RxCocoa + - RxRelay - RxSwift EXTERNAL SOURCES: RazzleDazzle: - :git: https://github.com/carlosypunto/RazzleDazzle.git - :tag: 0.2.0 + :branch: master + :git: https://github.com/wangzhizhou/RazzleDazzle.git CHECKOUT OPTIONS: RazzleDazzle: - :git: https://github.com/carlosypunto/RazzleDazzle.git - :tag: 0.2.0 + :commit: 6d11b9cb4b821887dafac005f31f9c93637618b2 + :git: https://github.com/wangzhizhou/RazzleDazzle.git SPEC CHECKSUMS: - Crashlytics: 07fb167b1694128c1c9a5a5cc319b0e9c3ca0933 - Device: 62242076214c30fb5760174b3601cefafa70a481 - Fabric: f988e33c97f08930a413e08123064d2e5f68d655 - RazzleDazzle: 6ab76b0790cafc13e3acee9ef7c863bd63f472a4 - RxAtomic: f8d6adc1ccb87a767811269e4875887bc74dbf19 - RxCocoa: 2f35a76bf8887872e28a1914112395b11b8e0e64 - RxSwift: 92fcf68dfef21f3e2ab1965363d9e7b3d787597e + Device: acf18785fd7359aca095040e9c4745caf33b9cf1 + RazzleDazzle: 62dfe268473c14a9b38138f5b2003a2c8e729180 + RxCocoa: 2d33c1e1e5d66492052ad46b11024ae287572880 + RxRelay: 335c78b926a2aea8d863a6d25f1ed3b5ad8e8705 + RxSwift: 4e28be97cbcfeee614af26d83415febbf2bf6f45 -PODFILE CHECKSUM: 176a9ad81388cfc1a7ed586168641a851a009841 +PODFILE CHECKSUM: ea4eb0730defa73730b23a750c2748fe5448a881 -COCOAPODS: 1.6.0 +COCOAPODS: 1.15.2 diff --git a/Pods/Crashlytics/Crashlytics.framework/README b/Pods/Crashlytics/Crashlytics.framework/README deleted file mode 100644 index 3ebf767..0000000 --- a/Pods/Crashlytics/Crashlytics.framework/README +++ /dev/null @@ -1 +0,0 @@ -We've now combined all our supported platforms into a single podspec. As a result, we moved our submit script to a new location for Cocoapods projects: ${PODS_ROOT}/Crashlytics/submit. To avoid breaking functionality that references the old location of the submit, we've placed this dummy script that calls to the correct location, while providing a helpful warning if it is invoked. This bridge for backwards compatibility will be removed in a future release, so please heed the warning! diff --git a/Pods/Crashlytics/Crashlytics.framework/submit b/Pods/Crashlytics/Crashlytics.framework/submit deleted file mode 100755 index b7de4e3..0000000 --- a/Pods/Crashlytics/Crashlytics.framework/submit +++ /dev/null @@ -1,6 +0,0 @@ -if [[ -z $PODS_ROOT ]]; then -echo "error: The submit binary delivered by cocoapods is in a new location, under '$"{"PODS_ROOT"}"/Crashlytics/submit'. This script was put in place for backwards compatibility, but it relies on PODS_ROOT, which does not have a value in your current setup. Please update the path to the submit binary to fix this issue." -else -echo "warning: The submit script is now located at '$"{"PODS_ROOT"}"/Crashlytics/submit'. To remove this warning, update your path to point to this new location." -sh "${PODS_ROOT}/Crashlytics/submit" "$@" -fi diff --git a/Pods/Crashlytics/README.md b/Pods/Crashlytics/README.md deleted file mode 100644 index 2715a06..0000000 --- a/Pods/Crashlytics/README.md +++ /dev/null @@ -1,39 +0,0 @@ -![Crashlytics Header](https://docs.fabric.io/ios/cocoapod-readmes/cocoapods-crashlytics-header.png) - -Part of [Google Fabric](https://get.fabric.io), [Crashlytics](http://try.crashlytics.com/) offers the most powerful, yet lightest weight crash reporting solution for iOS. Crashlytics also provides real-time analytics through [Answers](https://answers.io/) and app distributions to testers using [Beta](http://try.crashlytics.com/beta/). - -## Setup - -1. Visit [https://fabric.io/sign_up](https://fabric.io/sign_up) to create your Fabric account and to download Fabric.app. - -1. Open Fabric.app, login and select the Crashlytics SDK. - - ![Fabric Plugin](https://docs.fabric.io/ios/cocoapod-readmes/cocoapods-fabric-plugin.png) - -1. The Fabric app automatically detects when a project uses CocoaPods and gives you the option to install via the Podfile or Xcode. - - ![Fabric Installation Options](https://docs.fabric.io/ios/cocoapod-readmes/cocoapods-pod-installation-option.png) - -1. Select the Podfile option and follow the installation instructions to update your Podfile. **Note:** the Crashlytics Pod includes Answers. If you have Answers included as a separate Pod it should be removed from your Podfile to avoid duplicate symbol errors. - - ``` - pod 'Fabric' - pod 'Crashlytics' - ``` - -1. Run `pod install` - -1. Add a Run Script Build Phase and build your app. - - ![Fabric Run Script Build Phase](https://docs.fabric.io/ios/cocoapod-readmes/cocoapods-rsbp.png) - -1. Initialize the SDK by inserting code outlined in the Fabric.app. - -1. Run your app to finish the installation. - -## Resources - -* [Documentation](https://docs.fabric.io/apple/crashlytics/overview.html) -* [Forums](https://stackoverflow.com/questions/tagged/google-fabric) -* [Website](http://try.crashlytics.com/) -* Follow us on Twitter: [@fabric](https://twitter.com/fabric) and [@crashlytics](https://twitter.com/crashlytics) diff --git a/Pods/Crashlytics/iOS/Crashlytics.framework/Crashlytics b/Pods/Crashlytics/iOS/Crashlytics.framework/Crashlytics deleted file mode 100755 index e5a85e3..0000000 Binary files a/Pods/Crashlytics/iOS/Crashlytics.framework/Crashlytics and /dev/null differ diff --git a/Pods/Crashlytics/iOS/Crashlytics.framework/Headers/ANSCompatibility.h b/Pods/Crashlytics/iOS/Crashlytics.framework/Headers/ANSCompatibility.h deleted file mode 100644 index 6ec011d..0000000 --- a/Pods/Crashlytics/iOS/Crashlytics.framework/Headers/ANSCompatibility.h +++ /dev/null @@ -1,31 +0,0 @@ -// -// ANSCompatibility.h -// AnswersKit -// -// Copyright (c) 2015 Crashlytics, Inc. All rights reserved. -// - -#pragma once - -#if !__has_feature(nullability) -#define nonnull -#define nullable -#define _Nullable -#define _Nonnull -#endif - -#ifndef NS_ASSUME_NONNULL_BEGIN -#define NS_ASSUME_NONNULL_BEGIN -#endif - -#ifndef NS_ASSUME_NONNULL_END -#define NS_ASSUME_NONNULL_END -#endif - -#if __has_feature(objc_generics) -#define ANS_GENERIC_NSARRAY(type) NSArray -#define ANS_GENERIC_NSDICTIONARY(key_type,object_key) NSDictionary -#else -#define ANS_GENERIC_NSARRAY(type) NSArray -#define ANS_GENERIC_NSDICTIONARY(key_type,object_key) NSDictionary -#endif diff --git a/Pods/Crashlytics/iOS/Crashlytics.framework/Headers/Answers.h b/Pods/Crashlytics/iOS/Crashlytics.framework/Headers/Answers.h deleted file mode 100644 index 8deacbe..0000000 --- a/Pods/Crashlytics/iOS/Crashlytics.framework/Headers/Answers.h +++ /dev/null @@ -1,210 +0,0 @@ -// -// Answers.h -// Crashlytics -// -// Copyright (c) 2015 Crashlytics, Inc. All rights reserved. -// - -#import -#import "ANSCompatibility.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - * This class exposes the Answers Events API, allowing you to track key - * user user actions and metrics in your app. - */ -@interface Answers : NSObject - -/** - * Log a Sign Up event to see users signing up for your app in real-time, understand how - * many users are signing up with different methods and their success rate signing up. - * - * @param signUpMethodOrNil The method by which a user logged in, e.g. Twitter or Digits. - * @param signUpSucceededOrNil The ultimate success or failure of the login - * @param customAttributesOrNil A dictionary of custom attributes to associate with this event. - */ -+ (void)logSignUpWithMethod:(nullable NSString *)signUpMethodOrNil - success:(nullable NSNumber *)signUpSucceededOrNil - customAttributes:(nullable ANS_GENERIC_NSDICTIONARY(NSString *, id) *)customAttributesOrNil; - -/** - * Log an Log In event to see users logging into your app in real-time, understand how many - * users are logging in with different methods and their success rate logging into your app. - * - * @param loginMethodOrNil The method by which a user logged in, e.g. email, Twitter or Digits. - * @param loginSucceededOrNil The ultimate success or failure of the login - * @param customAttributesOrNil A dictionary of custom attributes to associate with this event. - */ -+ (void)logLoginWithMethod:(nullable NSString *)loginMethodOrNil - success:(nullable NSNumber *)loginSucceededOrNil - customAttributes:(nullable ANS_GENERIC_NSDICTIONARY(NSString *, id) *)customAttributesOrNil; - -/** - * Log a Share event to see users sharing from your app in real-time, letting you - * understand what content they're sharing from the type or genre down to the specific id. - * - * @param shareMethodOrNil The method by which a user shared, e.g. email, Twitter, SMS. - * @param contentNameOrNil The human readable name for this piece of content. - * @param contentTypeOrNil The type of content shared. - * @param contentIdOrNil The unique identifier for this piece of content. Useful for finding the top shared item. - * @param customAttributesOrNil A dictionary of custom attributes to associate with this event. - */ -+ (void)logShareWithMethod:(nullable NSString *)shareMethodOrNil - contentName:(nullable NSString *)contentNameOrNil - contentType:(nullable NSString *)contentTypeOrNil - contentId:(nullable NSString *)contentIdOrNil - customAttributes:(nullable ANS_GENERIC_NSDICTIONARY(NSString *, id) *)customAttributesOrNil; - -/** - * Log an Invite Event to track how users are inviting other users into - * your application. - * - * @param inviteMethodOrNil The method of invitation, e.g. GameCenter, Twitter, email. - * @param customAttributesOrNil A dictionary of custom attributes to associate with this event. - */ -+ (void)logInviteWithMethod:(nullable NSString *)inviteMethodOrNil - customAttributes:(nullable ANS_GENERIC_NSDICTIONARY(NSString *, id) *)customAttributesOrNil; - -/** - * Log a Purchase event to see your revenue in real-time, understand how many users are making purchases, see which - * items are most popular, and track plenty of other important purchase-related metrics. - * - * @param itemPriceOrNil The purchased item's price. - * @param currencyOrNil The ISO4217 currency code. Example: USD - * @param purchaseSucceededOrNil Was the purchase successful or unsuccessful - * @param itemNameOrNil The human-readable form of the item's name. Example: - * @param itemTypeOrNil The type, or genre of the item. Example: Song - * @param itemIdOrNil The machine-readable, unique item identifier Example: SKU - * @param customAttributesOrNil A dictionary of custom attributes to associate with this purchase. - */ -+ (void)logPurchaseWithPrice:(nullable NSDecimalNumber *)itemPriceOrNil - currency:(nullable NSString *)currencyOrNil - success:(nullable NSNumber *)purchaseSucceededOrNil - itemName:(nullable NSString *)itemNameOrNil - itemType:(nullable NSString *)itemTypeOrNil - itemId:(nullable NSString *)itemIdOrNil - customAttributes:(nullable ANS_GENERIC_NSDICTIONARY(NSString *, id) *)customAttributesOrNil; - -/** - * Log a Level Start Event to track where users are in your game. - * - * @param levelNameOrNil The level name - * @param customAttributesOrNil A dictionary of custom attributes to associate with this level start event. - */ -+ (void)logLevelStart:(nullable NSString *)levelNameOrNil - customAttributes:(nullable ANS_GENERIC_NSDICTIONARY(NSString *, id) *)customAttributesOrNil; - -/** - * Log a Level End event to track how users are completing levels in your game. - * - * @param levelNameOrNil The name of the level completed, E.G. "1" or "Training" - * @param scoreOrNil The score the user completed the level with. - * @param levelCompletedSuccesfullyOrNil A boolean representing whether or not the level was completed successfully. - * @param customAttributesOrNil A dictionary of custom attributes to associate with this event. - */ -+ (void)logLevelEnd:(nullable NSString *)levelNameOrNil - score:(nullable NSNumber *)scoreOrNil - success:(nullable NSNumber *)levelCompletedSuccesfullyOrNil - customAttributes:(nullable ANS_GENERIC_NSDICTIONARY(NSString *, id) *)customAttributesOrNil; - -/** - * Log an Add to Cart event to see users adding items to a shopping cart in real-time, understand how - * many users start the purchase flow, see which items are most popular, and track plenty of other important - * purchase-related metrics. - * - * @param itemPriceOrNil The purchased item's price. - * @param currencyOrNil The ISO4217 currency code. Example: USD - * @param itemNameOrNil The human-readable form of the item's name. Example: - * @param itemTypeOrNil The type, or genre of the item. Example: Song - * @param itemIdOrNil The machine-readable, unique item identifier Example: SKU - * @param customAttributesOrNil A dictionary of custom attributes to associate with this event. - */ -+ (void)logAddToCartWithPrice:(nullable NSDecimalNumber *)itemPriceOrNil - currency:(nullable NSString *)currencyOrNil - itemName:(nullable NSString *)itemNameOrNil - itemType:(nullable NSString *)itemTypeOrNil - itemId:(nullable NSString *)itemIdOrNil - customAttributes:(nullable ANS_GENERIC_NSDICTIONARY(NSString *, id) *)customAttributesOrNil; - -/** - * Log a Start Checkout event to see users moving through the purchase funnel in real-time, understand how many - * users are doing this and how much they're spending per checkout, and see how it related to other important - * purchase-related metrics. - * - * @param totalPriceOrNil The total price of the cart. - * @param currencyOrNil The ISO4217 currency code. Example: USD - * @param itemCountOrNil The number of items in the cart. - * @param customAttributesOrNil A dictionary of custom attributes to associate with this event. - */ -+ (void)logStartCheckoutWithPrice:(nullable NSDecimalNumber *)totalPriceOrNil - currency:(nullable NSString *)currencyOrNil - itemCount:(nullable NSNumber *)itemCountOrNil - customAttributes:(nullable ANS_GENERIC_NSDICTIONARY(NSString *, id) *)customAttributesOrNil; - -/** - * Log a Rating event to see users rating content within your app in real-time and understand what - * content is most engaging, from the type or genre down to the specific id. - * - * @param ratingOrNil The integer rating given by the user. - * @param contentNameOrNil The human readable name for this piece of content. - * @param contentTypeOrNil The type of content shared. - * @param contentIdOrNil The unique identifier for this piece of content. Useful for finding the top shared item. - * @param customAttributesOrNil A dictionary of custom attributes to associate with this event. - */ -+ (void)logRating:(nullable NSNumber *)ratingOrNil - contentName:(nullable NSString *)contentNameOrNil - contentType:(nullable NSString *)contentTypeOrNil - contentId:(nullable NSString *)contentIdOrNil - customAttributes:(nullable ANS_GENERIC_NSDICTIONARY(NSString *, id) *)customAttributesOrNil; - -/** - * Log a Content View event to see users viewing content within your app in real-time and - * understand what content is most engaging, from the type or genre down to the specific id. - * - * @param contentNameOrNil The human readable name for this piece of content. - * @param contentTypeOrNil The type of content shared. - * @param contentIdOrNil The unique identifier for this piece of content. Useful for finding the top shared item. - * @param customAttributesOrNil A dictionary of custom attributes to associate with this event. - */ -+ (void)logContentViewWithName:(nullable NSString *)contentNameOrNil - contentType:(nullable NSString *)contentTypeOrNil - contentId:(nullable NSString *)contentIdOrNil - customAttributes:(nullable ANS_GENERIC_NSDICTIONARY(NSString *, id) *)customAttributesOrNil; - -/** - * Log a Search event allows you to see users searching within your app in real-time and understand - * exactly what they're searching for. - * - * @param queryOrNil The user's query. - * @param customAttributesOrNil A dictionary of custom attributes to associate with this event. - */ -+ (void)logSearchWithQuery:(nullable NSString *)queryOrNil - customAttributes:(nullable ANS_GENERIC_NSDICTIONARY(NSString *, id) *)customAttributesOrNil; - -/** - * Log a Custom Event to see user actions that are uniquely important for your app in real-time, to see how often - * they're performing these actions with breakdowns by different categories you add. Use a human-readable name for - * the name of the event, since this is how the event will appear in Answers. - * - * @param eventName The human-readable name for the event. - * @param customAttributesOrNil A dictionary of custom attributes to associate with this event. Attribute keys - * must be NSString and values must be NSNumber or NSString. - * @discussion How we treat NSNumbers: - * We will provide information about the distribution of values over time. - * - * How we treat NSStrings: - * NSStrings are used as categorical data, allowing comparison across different category values. - * Strings are limited to a maximum length of 100 characters, attributes over this length will be - * truncated. - * - * When tracking the Tweet views to better understand user engagement, sending the tweet's length - * and the type of media present in the tweet allows you to track how tweet length and the type of media influence - * engagement. - */ -+ (void)logCustomEventWithName:(NSString *)eventName - customAttributes:(nullable ANS_GENERIC_NSDICTIONARY(NSString *, id) *)customAttributesOrNil; - -@end - -NS_ASSUME_NONNULL_END diff --git a/Pods/Crashlytics/iOS/Crashlytics.framework/Headers/CLSAttributes.h b/Pods/Crashlytics/iOS/Crashlytics.framework/Headers/CLSAttributes.h deleted file mode 100644 index 1526b0d..0000000 --- a/Pods/Crashlytics/iOS/Crashlytics.framework/Headers/CLSAttributes.h +++ /dev/null @@ -1,33 +0,0 @@ -// -// CLSAttributes.h -// Crashlytics -// -// Copyright (c) 2015 Crashlytics, Inc. All rights reserved. -// - -#pragma once - -#define CLS_DEPRECATED(x) __attribute__ ((deprecated(x))) - -#if !__has_feature(nullability) - #define nonnull - #define nullable - #define _Nullable - #define _Nonnull -#endif - -#ifndef NS_ASSUME_NONNULL_BEGIN - #define NS_ASSUME_NONNULL_BEGIN -#endif - -#ifndef NS_ASSUME_NONNULL_END - #define NS_ASSUME_NONNULL_END -#endif - -#if __has_feature(objc_generics) - #define CLS_GENERIC_NSARRAY(type) NSArray - #define CLS_GENERIC_NSDICTIONARY(key_type,object_key) NSDictionary -#else - #define CLS_GENERIC_NSARRAY(type) NSArray - #define CLS_GENERIC_NSDICTIONARY(key_type,object_key) NSDictionary -#endif diff --git a/Pods/Crashlytics/iOS/Crashlytics.framework/Headers/CLSLogging.h b/Pods/Crashlytics/iOS/Crashlytics.framework/Headers/CLSLogging.h deleted file mode 100644 index 59590d5..0000000 --- a/Pods/Crashlytics/iOS/Crashlytics.framework/Headers/CLSLogging.h +++ /dev/null @@ -1,64 +0,0 @@ -// -// CLSLogging.h -// Crashlytics -// -// Copyright (c) 2015 Crashlytics, Inc. All rights reserved. -// -#ifdef __OBJC__ -#import "CLSAttributes.h" -#import - -NS_ASSUME_NONNULL_BEGIN -#endif - - - -/** - * - * The CLS_LOG macro provides as easy way to gather more information in your log messages that are - * sent with your crash data. CLS_LOG prepends your custom log message with the function name and - * line number where the macro was used. If your app was built with the DEBUG preprocessor macro - * defined CLS_LOG uses the CLSNSLog function which forwards your log message to NSLog and CLSLog. - * If the DEBUG preprocessor macro is not defined CLS_LOG uses CLSLog only. - * - * Example output: - * -[AppDelegate login:] line 134 $ login start - * - * If you would like to change this macro, create a new header file, unset our define and then define - * your own version. Make sure this new header file is imported after the Crashlytics header file. - * - * #undef CLS_LOG - * #define CLS_LOG(__FORMAT__, ...) CLSNSLog... - * - **/ -#ifdef __OBJC__ -#ifdef DEBUG -#define CLS_LOG(__FORMAT__, ...) CLSNSLog((@"%s line %d $ " __FORMAT__), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) -#else -#define CLS_LOG(__FORMAT__, ...) CLSLog((@"%s line %d $ " __FORMAT__), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) -#endif -#endif - -/** - * - * Add logging that will be sent with your crash data. This logging will not show up in the system.log - * and will only be visible in your Crashlytics dashboard. - * - **/ - -#ifdef __OBJC__ -OBJC_EXTERN void CLSLog(NSString *format, ...) NS_FORMAT_FUNCTION(1,2); -OBJC_EXTERN void CLSLogv(NSString *format, va_list ap) NS_FORMAT_FUNCTION(1,0); - -/** - * - * Add logging that will be sent with your crash data. This logging will show up in the system.log - * and your Crashlytics dashboard. It is not recommended for Release builds. - * - **/ -OBJC_EXTERN void CLSNSLog(NSString *format, ...) NS_FORMAT_FUNCTION(1,2); -OBJC_EXTERN void CLSNSLogv(NSString *format, va_list ap) NS_FORMAT_FUNCTION(1,0); - - -NS_ASSUME_NONNULL_END -#endif diff --git a/Pods/Crashlytics/iOS/Crashlytics.framework/Headers/CLSReport.h b/Pods/Crashlytics/iOS/Crashlytics.framework/Headers/CLSReport.h deleted file mode 100644 index a8ff3b0..0000000 --- a/Pods/Crashlytics/iOS/Crashlytics.framework/Headers/CLSReport.h +++ /dev/null @@ -1,103 +0,0 @@ -// -// CLSReport.h -// Crashlytics -// -// Copyright (c) 2015 Crashlytics, Inc. All rights reserved. -// - -#import -#import "CLSAttributes.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - * The CLSCrashReport protocol is deprecated. See the CLSReport class and the CrashyticsDelegate changes for details. - **/ -@protocol CLSCrashReport - -@property (nonatomic, copy, readonly) NSString *identifier; -@property (nonatomic, copy, readonly) NSDictionary *customKeys; -@property (nonatomic, copy, readonly) NSString *bundleVersion; -@property (nonatomic, copy, readonly) NSString *bundleShortVersionString; -@property (nonatomic, readonly, nullable) NSDate *crashedOnDate; -@property (nonatomic, copy, readonly) NSString *OSVersion; -@property (nonatomic, copy, readonly) NSString *OSBuildVersion; - -@end - -/** - * The CLSReport exposes an interface to the phsyical report that Crashlytics has created. You can - * use this class to get information about the event, and can also set some values after the - * event has occurred. - **/ -@interface CLSReport : NSObject - -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)new NS_UNAVAILABLE; - -/** - * Returns the session identifier for the report. - **/ -@property (nonatomic, copy, readonly) NSString *identifier; - -/** - * Returns the custom key value data for the report. - **/ -@property (nonatomic, copy, readonly) NSDictionary *customKeys; - -/** - * Returns the CFBundleVersion of the application that generated the report. - **/ -@property (nonatomic, copy, readonly) NSString *bundleVersion; - -/** - * Returns the CFBundleShortVersionString of the application that generated the report. - **/ -@property (nonatomic, copy, readonly) NSString *bundleShortVersionString; - -/** - * Returns the date that the report was created. - **/ -@property (nonatomic, copy, readonly) NSDate *dateCreated; - -/** - * Returns the os version that the application crashed on. - **/ -@property (nonatomic, copy, readonly) NSString *OSVersion; - -/** - * Returns the os build version that the application crashed on. - **/ -@property (nonatomic, copy, readonly) NSString *OSBuildVersion; - -/** - * Returns YES if the report contains any crash information, otherwise returns NO. - **/ -@property (nonatomic, assign, readonly) BOOL isCrash; - -/** - * You can use this method to set, after the event, additional custom keys. The rules - * and semantics for this method are the same as those documented in Crashlytics.h. Be aware - * that the maximum size and count of custom keys is still enforced, and you can overwrite keys - * and/or cause excess keys to be deleted by using this method. - **/ -- (void)setObjectValue:(nullable id)value forKey:(NSString *)key; - -/** - * Record an application-specific user identifier. See Crashlytics.h for details. - **/ -@property (nonatomic, copy, nullable) NSString * userIdentifier; - -/** - * Record a user name. See Crashlytics.h for details. - **/ -@property (nonatomic, copy, nullable) NSString * userName; - -/** - * Record a user email. See Crashlytics.h for details. - **/ -@property (nonatomic, copy, nullable) NSString * userEmail; - -@end - -NS_ASSUME_NONNULL_END diff --git a/Pods/Crashlytics/iOS/Crashlytics.framework/Headers/CLSStackFrame.h b/Pods/Crashlytics/iOS/Crashlytics.framework/Headers/CLSStackFrame.h deleted file mode 100644 index cdb5596..0000000 --- a/Pods/Crashlytics/iOS/Crashlytics.framework/Headers/CLSStackFrame.h +++ /dev/null @@ -1,38 +0,0 @@ -// -// CLSStackFrame.h -// Crashlytics -// -// Copyright 2015 Crashlytics, Inc. All rights reserved. -// - -#import -#import "CLSAttributes.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - * - * This class is used in conjunction with -[Crashlytics recordCustomExceptionName:reason:frameArray:] to - * record information about non-ObjC/C++ exceptions. All information included here will be displayed - * in the Crashlytics UI, and can influence crash grouping. Be particularly careful with the use of the - * address property. If set, Crashlytics will attempt symbolication and could overwrite other properities - * in the process. - * - **/ -@interface CLSStackFrame : NSObject - -+ (instancetype)stackFrame; -+ (instancetype)stackFrameWithAddress:(NSUInteger)address; -+ (instancetype)stackFrameWithSymbol:(NSString *)symbol; - -@property (nonatomic, copy, nullable) NSString *symbol; -@property (nonatomic, copy, nullable) NSString *rawSymbol; -@property (nonatomic, copy, nullable) NSString *library; -@property (nonatomic, copy, nullable) NSString *fileName; -@property (nonatomic, assign) uint32_t lineNumber; -@property (nonatomic, assign) uint64_t offset; -@property (nonatomic, assign) uint64_t address; - -@end - -NS_ASSUME_NONNULL_END diff --git a/Pods/Crashlytics/iOS/Crashlytics.framework/Headers/Crashlytics.h b/Pods/Crashlytics/iOS/Crashlytics.framework/Headers/Crashlytics.h deleted file mode 100644 index 7104ca8..0000000 --- a/Pods/Crashlytics/iOS/Crashlytics.framework/Headers/Crashlytics.h +++ /dev/null @@ -1,288 +0,0 @@ -// -// Crashlytics.h -// Crashlytics -// -// Copyright (c) 2015 Crashlytics, Inc. All rights reserved. -// - -#import - -#import "CLSAttributes.h" -#import "CLSLogging.h" -#import "CLSReport.h" -#import "CLSStackFrame.h" -#import "Answers.h" - -NS_ASSUME_NONNULL_BEGIN - -@protocol CrashlyticsDelegate; - -/** - * Crashlytics. Handles configuration and initialization of Crashlytics. - * - * Note: The Crashlytics class cannot be subclassed. If this is causing you pain for - * testing, we suggest using either a wrapper class or a protocol extension. - */ -@interface Crashlytics : NSObject - -@property (nonatomic, readonly, copy) NSString *APIKey; -@property (nonatomic, readonly, copy) NSString *version; -@property (nonatomic, assign) BOOL debugMode; - -/** - * - * The delegate can be used to influence decisions on reporting and behavior, as well as reacting - * to previous crashes. - * - * Make certain that the delegate is setup before starting Crashlytics with startWithAPIKey:... or - * via +[Fabric with:...]. Failure to do will result in missing any delegate callbacks that occur - * synchronously during start. - * - **/ -@property (nonatomic, assign, nullable) id delegate; - -/** - * The recommended way to install Crashlytics into your application is to place a call to +startWithAPIKey: - * in your -application:didFinishLaunchingWithOptions: or -applicationDidFinishLaunching: - * method. - * - * Note: Starting with 3.0, the submission process has been significantly improved. The delay parameter - * is no longer required to throttle submissions on launch, performance will be great without it. - * - * @param apiKey The Crashlytics API Key for this app - * - * @return The singleton Crashlytics instance - */ -+ (Crashlytics *)startWithAPIKey:(NSString *)apiKey; -+ (Crashlytics *)startWithAPIKey:(NSString *)apiKey afterDelay:(NSTimeInterval)delay CLS_DEPRECATED("Crashlytics no longer needs or uses the delay parameter. Please use +startWithAPIKey: instead."); - -/** - * If you need the functionality provided by the CrashlyticsDelegate protocol, you can use - * these convenience methods to activate the framework and set the delegate in one call. - * - * @param apiKey The Crashlytics API Key for this app - * @param delegate A delegate object which conforms to CrashlyticsDelegate. - * - * @return The singleton Crashlytics instance - */ -+ (Crashlytics *)startWithAPIKey:(NSString *)apiKey delegate:(nullable id)delegate; -+ (Crashlytics *)startWithAPIKey:(NSString *)apiKey delegate:(nullable id)delegate afterDelay:(NSTimeInterval)delay CLS_DEPRECATED("Crashlytics no longer needs or uses the delay parameter. Please use +startWithAPIKey:delegate: instead."); - -/** - * Access the singleton Crashlytics instance. - * - * @return The singleton Crashlytics instance - */ -+ (Crashlytics *)sharedInstance; - -/** - * The easiest way to cause a crash - great for testing! - */ -- (void)crash; - -/** - * The easiest way to cause a crash with an exception - great for testing. - */ -- (void)throwException; - -/** - * Specify a user identifier which will be visible in the Crashlytics UI. - * - * Many of our customers have requested the ability to tie crashes to specific end-users of their - * application in order to facilitate responses to support requests or permit the ability to reach - * out for more information. We allow you to specify up to three separate values for display within - * the Crashlytics UI - but please be mindful of your end-user's privacy. - * - * We recommend specifying a user identifier - an arbitrary string that ties an end-user to a record - * in your system. This could be a database id, hash, or other value that is meaningless to a - * third-party observer but can be indexed and queried by you. - * - * Optionally, you may also specify the end-user's name or username, as well as email address if you - * do not have a system that works well with obscured identifiers. - * - * Pursuant to our EULA, this data is transferred securely throughout our system and we will not - * disseminate end-user data unless required to by law. That said, if you choose to provide end-user - * contact information, we strongly recommend that you disclose this in your application's privacy - * policy. Data privacy is of our utmost concern. - * - * @param identifier An arbitrary user identifier string which ties an end-user to a record in your system. - */ -- (void)setUserIdentifier:(nullable NSString *)identifier; - -/** - * Specify a user name which will be visible in the Crashlytics UI. - * Please be mindful of your end-user's privacy and see if setUserIdentifier: can fulfil your needs. - * @see setUserIdentifier: - * - * @param name An end user's name. - */ -- (void)setUserName:(nullable NSString *)name; - -/** - * Specify a user email which will be visible in the Crashlytics UI. - * Please be mindful of your end-user's privacy and see if setUserIdentifier: can fulfil your needs. - * - * @see setUserIdentifier: - * - * @param email An end user's email address. - */ -- (void)setUserEmail:(nullable NSString *)email; - -+ (void)setUserIdentifier:(nullable NSString *)identifier CLS_DEPRECATED("Please access this method via +sharedInstance"); -+ (void)setUserName:(nullable NSString *)name CLS_DEPRECATED("Please access this method via +sharedInstance"); -+ (void)setUserEmail:(nullable NSString *)email CLS_DEPRECATED("Please access this method via +sharedInstance"); - -/** - * Set a value for a for a key to be associated with your crash data which will be visible in the Crashlytics UI. - * When setting an object value, the object is converted to a string. This is typically done by calling - * -[NSObject description]. - * - * @param value The object to be associated with the key - * @param key The key with which to associate the value - */ -- (void)setObjectValue:(nullable id)value forKey:(NSString *)key; - -/** - * Set an int value for a key to be associated with your crash data which will be visible in the Crashlytics UI. - * - * @param value The integer value to be set - * @param key The key with which to associate the value - */ -- (void)setIntValue:(int)value forKey:(NSString *)key; - -/** - * Set an BOOL value for a key to be associated with your crash data which will be visible in the Crashlytics UI. - * - * @param value The BOOL value to be set - * @param key The key with which to associate the value - */ -- (void)setBoolValue:(BOOL)value forKey:(NSString *)key; - -/** - * Set an float value for a key to be associated with your crash data which will be visible in the Crashlytics UI. - * - * @param value The float value to be set - * @param key The key with which to associate the value - */ -- (void)setFloatValue:(float)value forKey:(NSString *)key; - -+ (void)setObjectValue:(nullable id)value forKey:(NSString *)key CLS_DEPRECATED("Please access this method via +sharedInstance"); -+ (void)setIntValue:(int)value forKey:(NSString *)key CLS_DEPRECATED("Please access this method via +sharedInstance"); -+ (void)setBoolValue:(BOOL)value forKey:(NSString *)key CLS_DEPRECATED("Please access this method via +sharedInstance"); -+ (void)setFloatValue:(float)value forKey:(NSString *)key CLS_DEPRECATED("Please access this method via +sharedInstance"); - -/** - * This method can be used to record a single exception structure in a report. This is particularly useful - * when your code interacts with non-native languages like Lua, C#, or Javascript. This call can be - * expensive and should only be used shortly before process termination. This API is not intended be to used - * to log NSException objects. All safely-reportable NSExceptions are automatically captured by - * Crashlytics. - * - * @param name The name of the custom exception - * @param reason The reason this exception occurred - * @param frameArray An array of CLSStackFrame objects - */ -- (void)recordCustomExceptionName:(NSString *)name reason:(nullable NSString *)reason frameArray:(CLS_GENERIC_NSARRAY(CLSStackFrame *) *)frameArray; - -/** - * - * This allows you to record a non-fatal event, described by an NSError object. These events will be grouped and - * displayed similarly to crashes. Keep in mind that this method can be expensive. Also, the total number of - * NSErrors that can be recorded during your app's life-cycle is limited by a fixed-size circular buffer. If the - * buffer is overrun, the oldest data is dropped. Errors are relayed to Crashlytics on a subsequent launch - * of your application. - * - * You can also use the -recordError:withAdditionalUserInfo: to include additional context not represented - * by the NSError instance itself. - * - **/ -- (void)recordError:(NSError *)error; -- (void)recordError:(NSError *)error withAdditionalUserInfo:(nullable CLS_GENERIC_NSDICTIONARY(NSString *, id) *)userInfo; - -- (void)logEvent:(NSString *)eventName CLS_DEPRECATED("Please refer to Answers +logCustomEventWithName:"); -- (void)logEvent:(NSString *)eventName attributes:(nullable NSDictionary *) attributes CLS_DEPRECATED("Please refer to Answers +logCustomEventWithName:"); -+ (void)logEvent:(NSString *)eventName CLS_DEPRECATED("Please refer to Answers +logCustomEventWithName:"); -+ (void)logEvent:(NSString *)eventName attributes:(nullable NSDictionary *) attributes CLS_DEPRECATED("Please refer to Answers +logCustomEventWithName:"); - -@end - -/** - * - * The CrashlyticsDelegate protocol provides a mechanism for your application to take - * action on events that occur in the Crashlytics crash reporting system. You can make - * use of these calls by assigning an object to the Crashlytics' delegate property directly, - * or through the convenience +startWithAPIKey:delegate: method. - * - */ -@protocol CrashlyticsDelegate -@optional - - -- (void)crashlyticsDidDetectCrashDuringPreviousExecution:(Crashlytics *)crashlytics CLS_DEPRECATED("Please refer to -crashlyticsDidDetectReportForLastExecution:"); -- (void)crashlytics:(Crashlytics *)crashlytics didDetectCrashDuringPreviousExecution:(id )crash CLS_DEPRECATED("Please refer to -crashlyticsDidDetectReportForLastExecution:"); - -/** - * - * Called when a Crashlytics instance has determined that the last execution of the - * application resulted in a saved report. This is called synchronously on Crashlytics - * initialization. Your delegate must invoke the completionHandler, but does not need to do so - * synchronously, or even on the main thread. Invoking completionHandler with NO will cause the - * detected report to be deleted and not submitted to Crashlytics. This is useful for - * implementing permission prompts, or other more-complex forms of logic around submitting crashes. - * - * Instead of using this method, you should try to make use of -crashlyticsDidDetectReportForLastExecution: - * if you can. - * - * @warning Failure to invoke the completionHandler will prevent submissions from being reported. Watch out. - * - * @warning Just implementing this delegate method will disable all forms of synchronous report submission. This can - * impact the reliability of reporting crashes very early in application launch. - * - * @param report The CLSReport object representing the last detected report - * @param completionHandler The completion handler to call when your logic has completed. - * - */ -- (void)crashlyticsDidDetectReportForLastExecution:(CLSReport *)report completionHandler:(void (^)(BOOL submit))completionHandler; - -/** - * - * Called when a Crashlytics instance has determined that the last execution of the - * application resulted in a saved report. This method differs from - * -crashlyticsDidDetectReportForLastExecution:completionHandler: in three important ways: - * - * - it is not called synchronously during initialization - * - it does not give you the ability to prevent the report from being submitted - * - the report object itself is immutable - * - * Thanks to these limitations, making use of this method does not impact reporting - * reliabilty in any way. - * - * @param report The read-only CLSReport object representing the last detected report - * - */ - -- (void)crashlyticsDidDetectReportForLastExecution:(CLSReport *)report; - -/** - * If your app is running on an OS that supports it (OS X 10.9+, iOS 7.0+), Crashlytics will submit - * most reports using out-of-process background networking operations. This results in a significant - * improvement in reliability of reporting, as well as power and performance wins for your users. - * If you don't want this functionality, you can disable by returning NO from this method. - * - * @warning Background submission is not supported for extensions on iOS or OS X. - * - * @param crashlytics The Crashlytics singleton instance - * - * @return Return NO if you don't want out-of-process background network operations. - * - */ -- (BOOL)crashlyticsCanUseBackgroundSessions:(Crashlytics *)crashlytics; - -@end - -/** - * `CrashlyticsKit` can be used as a parameter to `[Fabric with:@[CrashlyticsKit]];` in Objective-C. In Swift, use Crashlytics.sharedInstance() - */ -#define CrashlyticsKit [Crashlytics sharedInstance] - -NS_ASSUME_NONNULL_END diff --git a/Pods/Crashlytics/iOS/Crashlytics.framework/Info.plist b/Pods/Crashlytics/iOS/Crashlytics.framework/Info.plist deleted file mode 100644 index ab886b6..0000000 Binary files a/Pods/Crashlytics/iOS/Crashlytics.framework/Info.plist and /dev/null differ diff --git a/Pods/Crashlytics/iOS/Crashlytics.framework/Modules/module.modulemap b/Pods/Crashlytics/iOS/Crashlytics.framework/Modules/module.modulemap deleted file mode 100644 index da0845e..0000000 --- a/Pods/Crashlytics/iOS/Crashlytics.framework/Modules/module.modulemap +++ /dev/null @@ -1,14 +0,0 @@ -framework module Crashlytics { - header "Crashlytics.h" - header "Answers.h" - header "ANSCompatibility.h" - header "CLSLogging.h" - header "CLSReport.h" - header "CLSStackFrame.h" - header "CLSAttributes.h" - - export * - - link "z" - link "c++" -} diff --git a/Pods/Crashlytics/iOS/Crashlytics.framework/run b/Pods/Crashlytics/iOS/Crashlytics.framework/run deleted file mode 100755 index 9058ea6..0000000 --- a/Pods/Crashlytics/iOS/Crashlytics.framework/run +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -# run -# -# Copyright (c) 2015 Crashlytics. All rights reserved. - -# Figure out where we're being called from -DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) - -# Quote path in case of spaces or special chars -DIR="\"${DIR}" - -PATH_SEP="/" -VALIDATE_COMMAND="uploadDSYM\" $@ validate run-script" -UPLOAD_COMMAND="uploadDSYM\" $@ run-script" - -# Ensure params are as expected, run in sync mode to validate -eval $DIR$PATH_SEP$VALIDATE_COMMAND -return_code=$? - -if [[ $return_code != 0 ]]; then - exit $return_code -fi - -# Verification passed, upload dSYM in background to prevent Xcode from waiting -# Note: Validation is performed again before upload. -# Output can still be found in Console.app -eval $DIR$PATH_SEP$UPLOAD_COMMAND > /dev/null 2>&1 & diff --git a/Pods/Crashlytics/iOS/Crashlytics.framework/submit b/Pods/Crashlytics/iOS/Crashlytics.framework/submit deleted file mode 100755 index 3fda5cf..0000000 Binary files a/Pods/Crashlytics/iOS/Crashlytics.framework/submit and /dev/null differ diff --git a/Pods/Crashlytics/iOS/Crashlytics.framework/uploadDSYM b/Pods/Crashlytics/iOS/Crashlytics.framework/uploadDSYM deleted file mode 100755 index 6586420..0000000 Binary files a/Pods/Crashlytics/iOS/Crashlytics.framework/uploadDSYM and /dev/null differ diff --git a/Pods/Crashlytics/submit b/Pods/Crashlytics/submit deleted file mode 100755 index 3fda5cf..0000000 Binary files a/Pods/Crashlytics/submit and /dev/null differ diff --git a/Pods/Device/LICENSE b/Pods/Device/LICENSE deleted file mode 100644 index fed42a3..0000000 --- a/Pods/Device/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015 Lucas Ortis - -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/Device/README.md b/Pods/Device/README.md deleted file mode 100644 index f6adb1a..0000000 --- a/Pods/Device/README.md +++ /dev/null @@ -1,234 +0,0 @@ -![Device](https://github.com/Ekhoo/Device/blob/master/Source/Asset/device.png) - -[![Version](https://img.shields.io/cocoapods/v/Device.svg?style=flat)](http://cocoapods.org/pods/Device) -[![License](https://img.shields.io/cocoapods/l/Device.svg?style=flat)](http://cocoapods.org/pods/Device) -[![Platform](https://img.shields.io/cocoapods/p/Device.svg?style=flat)](http://cocoapods.org/pods/Device) -![](https://img.shields.io/badge/Supported-iOS8%20%7C%20OSX%2010.10-4BC51D.svg?style=flat-square) -[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) -![](https://img.shields.io/badge/Swift-4.0-orange.svg?style=flat) -[![Twitter](https://img.shields.io/badge/Twitter-@LucasEkhoo-blue.svg?style=flat)](http://twitter.com/LucasEkhoo) - -Device detect the current  device model and screen size. - -# Installation -## CocoaPods -Device is available through [CocoaPods](http://cocoapods.org). To install -it, simply add the following line to your Podfile: - -```ruby -pod "Device", '~> 3.1.2' -``` - -## Carthage - -[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. - -You can install Carthage with [Homebrew](http://brew.sh/) using the following command: - -```bash -$ brew update -$ brew install carthage -``` - -To integrate Device into your Xcode project using Carthage, specify it in your `Cartfile`: - -```ogdl -github "Ekhoo/Device" ~> 3.1.2 -``` - -Run `carthage update` to build the framework and drag the built `Device.framework` into your Xcode project. - -# Usage -## iOS -### Device version -```swift -func myFunc() { - /*** Display the device version ***/ - switch Device.version() { - /*** iPhone ***/ - case .iPhone4: print("It's an iPhone 4") - case .iPhone4S: print("It's an iPhone 4S") - case .iPhone5: print("It's an iPhone 5") - case .iPhone5C: print("It's an iPhone 5C") - case .iPhone5S: print("It's an iPhone 5S") - case .iPhone6: print("It's an iPhone 6") - case .iPhone6S: print("It's an iPhone 6S") - case .iPhone6Plus: print("It's an iPhone 6 Plus") - case .iPhone6SPlus: print("It's an iPhone 6 S Plus") - case .iPhoneSE: print("It's an iPhone SE") - case .iPhone7: print("It's an iPhone 7") - case .iPhone7Plus: print("It's an iPhone 7 Plus") - case .iPhone8: print("It's an iPhone 8") - case .iPhone8Plus: print("It's an iPhone 8 Plus") - case .iPhoneX: print("It's an iPhone X") - case .iPhoneXS: print("It's an iPhone Xs") - case .iPhoneXS_Max: print("It's an iPhone Xs Max") - case .iPhoneXR: print("It's an iPhone Xr") - - /*** iPad ***/ - case .iPad1: print("It's an iPad 1") - case .iPad2: print("It's an iPad 2") - case .iPad3: print("It's an iPad 3") - case .iPad4: print("It's an iPad 4") - case .iPad5: print("It's an iPad 5") - case .iPad6: print("It's an iPad 6") - case .iPadAir: print("It's an iPad Air") - case .iPadAir2: print("It's an iPad Air 2") - case .iPadMini: print("It's an iPad Mini") - case .iPadMini2: print("It's an iPad Mini 2") - case .iPadMini3: print("It's an iPad Mini 3") - case .iPadMini4: print("It's an iPad Mini 4") - case .iPadPro9_7Inch: print("It's an iPad Pro 9.7 Inch") - case .iPadPro10_5Inch: print("It's an iPad Pro 10.5 Inch") - case .iPadPro12_9Inch: print("It's an iPad Pro 12.9 Inch") - - /*** iPod ***/ - case .iPodTouch1Gen: print("It's a iPod touch generation 1") - case .iPodTouch2Gen: print("It's a iPod touch generation 2") - case .iPodTouch3Gen: print("It's a iPod touch generation 3") - case .iPodTouch4Gen: print("It's a iPod touch generation 4") - case .iPodTouch5Gen: print("It's a iPod touch generation 5") - case .iPodTouch6Gen: print("It's a iPod touch generation 6") - - /*** Simulator ***/ - case .Simulator: print("It's a Simulator") - - /*** Unknown ***/ - default: print("It's an unknown device") - } - } -``` - -## Device screen size -```swift -func myFunc() { - /*** Display the device screen size ***/ - switch Device.size() { - case .screen3_5Inch: print("It's a 3.5 inch screen") - case .screen4Inch: print("It's a 4 inch screen") - case .screen4_7Inch: print("It's a 4.7 inch screen") - case .screen5_5Inch: print("It's a 5.5 inch screen") - case .screen5_8Inch: print("It's a 5.8 inch screen") - case .screen6_1Inch: print("It's a 6.1 inch screen") - case .screen6_5Inch: print("It's a 6.8 inch screen") - case .screen7_9Inch: print("It's a 7.9 inch screen") - case .screen9_7Inch: print("It's a 9.7 inch screen") - case .screen10_5Inch: print("It's a 10.5 inch screen") - case .screen12_9Inch: print("It's a 12.9 inch screen") - default: print("Unknown size") - } -} -``` - -## Device type -```swift -func myFunc() { - /*** Display the device type ***/ - switch Device.type() { - case .iPod: print("It's an iPod") - case .iPhone: print("It's an iPhone") - case .iPad: print("It's an iPad") - case .Simulator: print("It's a Simulated device") - default: print("Unknown device type") - } -} - -``` - -or - -```swift -func myFunc() { - /*** Display the device type ***/ - if (Device.isPad()){ - print("It's an iPad") - } - else if (Device.isPhone()){ - print("It's an iPhone") - } - else if (Device.isPod()){ - print("It's an iPod") - } - else if (Device.isSimulator()){ - print("It's a Simulated device") - } -} - -``` - -## Mac -### Mac version -```swift -func myFunc() { - /*** Display the mac version ***/ - switch Device.type() { - case .iMac: print("It's an iMac") - case .macBook: print("It's a MacBook") - case .macBookAir: print("It's a MacBook Air") - case .macBookPro: print("It's a MacBook Pro") - default: print("Unknown device type") - } - } -``` - -## Mac screen size -```swift -func myFunc() { - /*** Display the mac screen size ***/ - switch Device.size() { - case .screen11Inch: print("It's a 11 inch screen") - case .screen12Inch: print("It's a 12 inch screen") - case .screen13Inch: print("It's a 13 inch screen") - case .screen15Inch: print("It's a 15 inch screen") - case .screen17Inch: print("It's a 17 inch screen") - case .screen21_5Inch: print("It's a 21.5 inch screen") - case .screen27Inch: print("It's a 27 inch screen") - default: print("Unknown size") - } -} -``` - -## Helpers -```swift -func myFunc() { - /*** Helpers ***/ - if Device.size() == Size.screen4Inch { - print("It's a 4 inch screen") - } - - if Device.size() > Size.screen4_7Inch { - print("Your device screen is larger than 4.7 inch") - } - - if Device.size() < Size.screen4_7Inch { - print("Your device screen is smaller than 4.7 inch") - } - - if Device.size() == Size.screen27Inch { - print("It's a 27 inch screen") - } - - if Device.size() > Size.screen15Inch { - print("Your mac screen is larger than 15 inch") - } - - if Device.size() < Size.screen15Inch { - print("Your mac screen is smaller than 15 inch") - } - - if Device.isRetina() { - print("It's a retina display") - } - -} -``` - -# Author -Lucas Ortis: -- me@lucas-ortis.com -- [@LucasEkhoo](https://twitter.com/LucasEkhoo) -- [Linkedin](https://fr.linkedin.com/in/lucasortis) - -# License - -Device is available under the MIT license. See the LICENSE file for more info. diff --git a/Pods/Device/Source/Size.swift b/Pods/Device/Source/Size.swift deleted file mode 100644 index c9e53f3..0000000 --- a/Pods/Device/Source/Size.swift +++ /dev/null @@ -1,53 +0,0 @@ -// -// Size.swift -// Device -// -// Created by Lucas Ortis on 30/10/2015. -// Copyright © 2015 Ekhoo. All rights reserved. -// - -public enum Size: Int, Comparable { - case unknownSize = 0 - #if os(iOS) - /// iPhone 4, 4s, iPod Touch 4th gen. - case screen3_5Inch - /// iPhone 5, 5s, 5c, SE, iPod Touch 5-6th gen. - case screen4Inch - /// iPhone 6, 6s, 7, 8 - case screen4_7Inch - /// iPhone 6+, 6s+, 7+, 8+ - case screen5_5Inch - /// iPhone X, Xs - case screen5_8Inch - /// iPhone Xr - case screen6_1Inch - /// iPhone Xs Max - case screen6_5Inch - /// iPad Mini - case screen7_9Inch - /// iPad - case screen9_7Inch - /// iPad Pro (10.5-inch) - case screen10_5Inch - /// iPad Pro (12.9-inch) - case screen12_9Inch - #elseif os(OSX) - case screen11Inch - case screen12Inch - case screen13Inch - case screen15Inch - case screen17Inch - case screen20Inch - case screen21_5Inch - case screen24Inch - case screen27Inch - #endif -} - -public func <(lhs: Size, rhs: Size) -> Bool { - return lhs.rawValue < rhs.rawValue -} - -public func ==(lhs: Size, rhs: Size) -> Bool { - return lhs.rawValue == rhs.rawValue -} diff --git a/Pods/Device/Source/Type.swift b/Pods/Device/Source/Type.swift deleted file mode 100644 index fa6f3f9..0000000 --- a/Pods/Device/Source/Type.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// Type.swift -// Device -// -// Created by Stefan Jansen on 08-12-15. -// Copyright © 2015 Ekhoo. All rights reserved. -// - -public enum Type: String { - #if os(iOS) - case iPhone - case iPad - case iPod - case simulator - #elseif os(OSX) - case iMac - case macMini - case macPro - case macBook - case macBookAir - case macBookPro - case xserve - #endif - case unknown -} diff --git a/Pods/Device/Source/Version.swift b/Pods/Device/Source/Version.swift deleted file mode 100644 index ff07c77..0000000 --- a/Pods/Device/Source/Version.swift +++ /dev/null @@ -1,60 +0,0 @@ -// -// Version.swift -// Device -// -// Created by Lucas Ortis on 30/10/2015. -// Copyright © 2015 Ekhoo. All rights reserved. -// - -public enum Version: String { - /*** iPhone ***/ - case iPhone4 - case iPhone4S - case iPhone5 - case iPhone5C - case iPhone5S - case iPhone6 - case iPhone6Plus - case iPhone6S - case iPhone6SPlus - case iPhoneSE - case iPhone7 - case iPhone7Plus - case iPhone8 - case iPhone8Plus - case iPhoneX - case iPhoneXS - case iPhoneXS_Max - case iPhoneXR - - /*** iPad ***/ - case iPad1 - case iPad2 - case iPad3 - case iPad4 - case iPad5 - case iPad6 - case iPadAir - case iPadAir2 - case iPadMini - case iPadMini2 - case iPadMini3 - case iPadMini4 - case iPadPro9_7Inch - case iPadPro10_5Inch - case iPadPro12_9Inch - - /*** iPod ***/ - case iPodTouch1Gen - case iPodTouch2Gen - case iPodTouch3Gen - case iPodTouch4Gen - case iPodTouch5Gen - case iPodTouch6Gen - - /*** simulator ***/ - case simulator - - /*** unknown ***/ - case unknown -} diff --git a/Pods/Device/Source/iOS/Device.swift b/Pods/Device/Source/iOS/Device.swift deleted file mode 100644 index ebb67c2..0000000 --- a/Pods/Device/Source/iOS/Device.swift +++ /dev/null @@ -1,171 +0,0 @@ -// -// Device.swift -// Device -// -// Created by Lucas Ortis on 30/10/2015. -// Copyright © 2015 Ekhoo. All rights reserved. -// - -import UIKit - -open class Device { - static fileprivate func getVersionCode() -> String { - var systemInfo = utsname() - uname(&systemInfo) - - let versionCode: String = String(validatingUTF8: NSString(bytes: &systemInfo.machine, length: Int(_SYS_NAMELEN), encoding: String.Encoding.ascii.rawValue)!.utf8String!)! - - return versionCode - } - - static fileprivate func getVersion(code: String) -> Version { - switch code { - /*** iPhone ***/ - case "iPhone3,1", "iPhone3,2", "iPhone3,3": return .iPhone4 - case "iPhone4,1", "iPhone4,2", "iPhone4,3": return .iPhone4S - case "iPhone5,1", "iPhone5,2": return .iPhone5 - case "iPhone5,3", "iPhone5,4": return .iPhone5C - case "iPhone6,1", "iPhone6,2": return .iPhone5S - case "iPhone7,2": return .iPhone6 - case "iPhone7,1": return .iPhone6Plus - case "iPhone8,1": return .iPhone6S - case "iPhone8,2": return .iPhone6SPlus - case "iPhone8,3", "iPhone8,4": return .iPhoneSE - case "iPhone9,1", "iPhone9,3": return .iPhone7 - case "iPhone9,2", "iPhone9,4": return .iPhone7Plus - case "iPhone10,1", "iPhone10,4": return .iPhone8 - case "iPhone10,2", "iPhone10,5": return .iPhone8Plus - case "iPhone10,3", "iPhone10,6": return .iPhoneX - case "iPhone11,2": return .iPhoneXS - case "iPhone11,4", "iPhone11,6": return .iPhoneXS_Max - case "iPhone11,8": return .iPhoneXR - - - /*** iPad ***/ - case "iPad1,1", "iPad1,2": return Version.iPad1 - case "iPad2,1", "iPad2,2", "iPad2,3", "iPad2,4": return Version.iPad2 - case "iPad3,1", "iPad3,2", "iPad3,3": return Version.iPad3 - case "iPad3,4", "iPad3,5", "iPad3,6": return Version.iPad4 - case "iPad6,11", "iPad6,12": return Version.iPad5 - case "iPad7,5", "iPad 7,6": return Version.iPad6 - case "iPad4,1", "iPad4,2", "iPad4,3": return Version.iPadAir - case "iPad5,3", "iPad5,4": return Version.iPadAir2 - case "iPad2,5", "iPad2,6", "iPad2,7": return Version.iPadMini - case "iPad4,4", "iPad4,5", "iPad4,6": return Version.iPadMini2 - case "iPad4,7", "iPad4,8", "iPad4,9": return Version.iPadMini3 - case "iPad5,1", "iPad5,2": return Version.iPadMini4 - case "iPad6,7", "iPad6,8", "iPad7,1", "iPad7,2": return Version.iPadPro12_9Inch - case "iPad7,3", "iPad7,4": return Version.iPadPro10_5Inch - case "iPad6,3", "iPad6,4": return Version.iPadPro9_7Inch - - /*** iPod ***/ - case "iPod1,1": return .iPodTouch1Gen - case "iPod2,1": return .iPodTouch2Gen - case "iPod3,1": return .iPodTouch3Gen - case "iPod4,1": return .iPodTouch4Gen - case "iPod5,1": return .iPodTouch5Gen - case "iPod7,1": return .iPodTouch6Gen - - /*** Simulator ***/ - case "i386", "x86_64": return .simulator - - default: return .unknown - } - } - - static fileprivate func getType(code: String) -> Type { - let versionCode = getVersionCode() - - if versionCode.contains("iPhone") { - return .iPhone - } else if versionCode.contains("iPad") { - return .iPad - } else if versionCode.contains("iPod") { - return .iPod - } else if versionCode == "i386" || versionCode == "x86_64" { - return .simulator - } else { - return .unknown - } - } - - static public func version() -> Version { - return getVersion(code: getVersionCode()) - } - - static public func size() -> Size { - let w: Double = Double(UIScreen.main.bounds.width) - let h: Double = Double(UIScreen.main.bounds.height) - let screenHeight: Double = max(w, h) - - switch screenHeight { - case 480: - return .screen3_5Inch - case 568: - return .screen4Inch - case 667: - return UIScreen.main.scale == 3.0 ? .screen5_5Inch : .screen4_7Inch - case 736: - return .screen5_5Inch - case 812: - return .screen5_8Inch - case 896: - return UIScreen.main.scale == 3.0 ? .screen6_5Inch : .screen6_1Inch - case 1024: - switch version() { - case .iPadMini,.iPadMini2,.iPadMini3,.iPadMini4: - return .screen7_9Inch - case .iPadPro10_5Inch: - return .screen10_5Inch - default: - return .screen9_7Inch - } - case 1112: - return .screen10_5Inch - case 1366: - return .screen12_9Inch - default: - return .unknownSize - } - } - - static public func type() -> Type { - return getType(code: getVersionCode()) - } - - @available(*, deprecated, message: "use == operator instead") - static public func isEqualToScreenSize(_ size: Size) -> Bool { - return size == self.size() ? true : false; - } - - @available(*, deprecated, message: "use > operator instead") - static public func isLargerThanScreenSize(_ size: Size) -> Bool { - return size.rawValue < self.size().rawValue ? true : false; - } - - @available(*, deprecated, message: "use < operator instead") - static public func isSmallerThanScreenSize(_ size: Size) -> Bool { - return size.rawValue > self.size().rawValue ? true : false; - } - - static public func isRetina() -> Bool { - return UIScreen.main.scale > 1.0 - } - - static public func isPad() -> Bool { - return type() == .iPad - } - - static public func isPhone() -> Bool { - return type() == .iPhone - } - - static public func isPod() -> Bool { - return type() == .iPod - } - - static public func isSimulator() -> Bool { - return type() == .simulator - } - -} diff --git a/Pods/Fabric/Fabric.framework/README b/Pods/Fabric/Fabric.framework/README deleted file mode 100644 index 3b1fbe2..0000000 --- a/Pods/Fabric/Fabric.framework/README +++ /dev/null @@ -1 +0,0 @@ -We've now combined all our supported platforms into a single podspec. As a result, we moved our run script to a new location for Cocoapods projects: ${PODS_ROOT}/Fabric/run. To avoid breaking builds that reference the old location of the run script, we've placed this dummy script that calls to the correct location, while providing a helpful warning in Xcode if it is invoked. This bridge for backwards compatibility will be removed in a future release, so please heed the warning! diff --git a/Pods/Fabric/Fabric.framework/run b/Pods/Fabric/Fabric.framework/run deleted file mode 100755 index b9edd17..0000000 --- a/Pods/Fabric/Fabric.framework/run +++ /dev/null @@ -1,6 +0,0 @@ -if [[ -z $PODS_ROOT ]]; then - echo "error: The run binary delivered by cocoapods is in a new location, under '$"{"PODS_ROOT"}"/Fabric/run'. This script was put in place for backwards compatibility, but it relies on PODS_ROOT, which does not have a value in your current setup. Please update the path to the run binary to fix this issue." -else - echo "warning: The run script is now located at '$"{"PODS_ROOT"}"/Fabric/run'. To remove this warning, update your Run Script Build Phase to point to this new location." - sh "${PODS_ROOT}/Fabric/run" "$@" -fi diff --git a/Pods/Fabric/README.md b/Pods/Fabric/README.md deleted file mode 100644 index 9eca610..0000000 --- a/Pods/Fabric/README.md +++ /dev/null @@ -1,42 +0,0 @@ -![Fabric Header](https://docs.fabric.io/ios/cocoapod-readmes/cocoapods-fabric-header.png) - -# Fabric - -## Overview - -[Fabric](https://get.fabric.io) provides developers with the tools they need to build the best apps. Developed and maintained by Google and the team that built Crashlytics, Fabric provides an easy way to manage all your SDKs so that you’ll never have to worry about tedious configurations or juggling different accounts. We let you get right into coding and building the next big app. - -For a full list of SDK provided through Fabric visit [https://fabric.io/kits](https://fabric.io/kits). - -## Setup - -The Fabric Pod is a dependency for all Fabric SDKs and is included when installing any Fabric related Pods. General setup instructions are shown below; however, these vary depending on the selected SDK. - -1. Visit [https://fabric.io/sign_up](https://fabric.io/sign_up) to create your Fabric account and to download Fabric.app. - -1. Open Fabric.app, login and select an SDK to install. - - ![Fabric Plugin](https://docs.fabric.io/ios/cocoapod-readmes/cocoapods-fabric-plugin.png) - -1. The Fabric app automatically detects when a project uses CocoaPods and gives you the option to install via the Podfile or Xcode. - - ![Fabric Installation Options](https://docs.fabric.io/ios/cocoapod-readmes/cocoapods-pod-installation-option.png) - -1. Select the Podfile option and follow the installation instructions to update your Podfile. Note: the example below is for the Crashlytics SDK. The instructions will vary based on the selected SDK. - - ![Fabric Podfile Instructions](https://docs.fabric.io/ios/cocoapod-readmes/cocoapods-podfile-instructions.png) - -1. Add a Run Script Build Phase and build your app. - - ![Fabric Run Script Build Phase](https://docs.fabric.io/ios/cocoapod-readmes/cocoapods-rsbp.png) - -1. Initialize the SDK by inserting code outlined in Fabric.app. - -1. Run your app to finish the installation. - -## Resources - -* [Documentation](https://docs.fabric.io/) -* [Forums](https://stackoverflow.com/questions/tagged/google-fabric) -* [Website](https://get.fabric.io) -* Follow us on Twitter: [@fabric](https://twitter.com/fabric) diff --git a/Pods/Fabric/iOS/Fabric.framework/Fabric b/Pods/Fabric/iOS/Fabric.framework/Fabric deleted file mode 100755 index ffaceb6..0000000 Binary files a/Pods/Fabric/iOS/Fabric.framework/Fabric and /dev/null differ diff --git a/Pods/Fabric/iOS/Fabric.framework/Headers/FABAttributes.h b/Pods/Fabric/iOS/Fabric.framework/Headers/FABAttributes.h deleted file mode 100644 index 3a9355a..0000000 --- a/Pods/Fabric/iOS/Fabric.framework/Headers/FABAttributes.h +++ /dev/null @@ -1,51 +0,0 @@ -// -// FABAttributes.h -// Fabric -// -// Copyright (C) 2015 Twitter, Inc. -// -// 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. -// - -#pragma once - -#define FAB_UNAVAILABLE(x) __attribute__((unavailable(x))) - -#if !__has_feature(nullability) - #define nonnull - #define nullable - #define _Nullable - #define _Nonnull -#endif - -#ifndef NS_ASSUME_NONNULL_BEGIN - #define NS_ASSUME_NONNULL_BEGIN -#endif - -#ifndef NS_ASSUME_NONNULL_END - #define NS_ASSUME_NONNULL_END -#endif - - -/** - * The following macros are defined here to provide - * backwards compatability. If you are still using - * them you should migrate to the native nullability - * macros. - */ -#define fab_nullable nullable -#define fab_nonnull nonnull -#define FAB_NONNULL __fab_nonnull -#define FAB_NULLABLE __fab_nullable -#define FAB_START_NONNULL NS_ASSUME_NONNULL_BEGIN -#define FAB_END_NONNULL NS_ASSUME_NONNULL_END diff --git a/Pods/Fabric/iOS/Fabric.framework/Headers/Fabric.h b/Pods/Fabric/iOS/Fabric.framework/Headers/Fabric.h deleted file mode 100644 index ecbdb53..0000000 --- a/Pods/Fabric/iOS/Fabric.framework/Headers/Fabric.h +++ /dev/null @@ -1,82 +0,0 @@ -// -// Fabric.h -// Fabric -// -// Copyright (C) 2015 Twitter, Inc. -// -// 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. -// - -#import -#import "FABAttributes.h" - -NS_ASSUME_NONNULL_BEGIN - -#if TARGET_OS_IPHONE -#if __IPHONE_OS_VERSION_MIN_REQUIRED < 60000 - #error "Fabric's minimum iOS version is 6.0" -#endif -#else -#if __MAC_OS_X_VERSION_MIN_REQUIRED < 1070 - #error "Fabric's minimum OS X version is 10.7" -#endif -#endif - -/** - * Fabric Base. Coordinates configuration and starts all provided kits. - */ -@interface Fabric : NSObject - -/** - * Initialize Fabric and all provided kits. Call this method within your App Delegate's `application:didFinishLaunchingWithOptions:` and provide the kits you wish to use. - * - * For example, in Objective-C: - * - * `[Fabric with:@[[Crashlytics class], [Twitter class], [Digits class], [MoPub class]]];` - * - * Swift: - * - * `Fabric.with([Crashlytics.self(), Twitter.self(), Digits.self(), MoPub.self()])` - * - * Only the first call to this method is honored. Subsequent calls are no-ops. - * - * @param kitClasses An array of kit Class objects - * - * @return Returns the shared Fabric instance. In most cases this can be ignored. - */ -+ (instancetype)with:(NSArray *)kitClasses; - -/** - * Returns the Fabric singleton object. - */ -+ (instancetype)sharedSDK; - -/** - * This BOOL enables or disables debug logging, such as kit version information. The default value is NO. - */ -@property (nonatomic, assign) BOOL debug; - -/** - * Unavailable. Use `+sharedSDK` to retrieve the shared Fabric instance. - */ -- (id)init FAB_UNAVAILABLE("Use +sharedSDK to retrieve the shared Fabric instance."); - -/** - * Unavailable. Use `+sharedSDK` to retrieve the shared Fabric instance. - */ -+ (instancetype)new FAB_UNAVAILABLE("Use +sharedSDK to retrieve the shared Fabric instance."); - -@end - -NS_ASSUME_NONNULL_END - diff --git a/Pods/Fabric/iOS/Fabric.framework/Info.plist b/Pods/Fabric/iOS/Fabric.framework/Info.plist deleted file mode 100644 index 2b862ba..0000000 Binary files a/Pods/Fabric/iOS/Fabric.framework/Info.plist and /dev/null differ diff --git a/Pods/Fabric/iOS/Fabric.framework/Modules/module.modulemap b/Pods/Fabric/iOS/Fabric.framework/Modules/module.modulemap deleted file mode 100644 index 2a31223..0000000 --- a/Pods/Fabric/iOS/Fabric.framework/Modules/module.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module Fabric { - umbrella header "Fabric.h" - - export * - module * { export * } -} \ No newline at end of file diff --git a/Pods/Fabric/iOS/Fabric.framework/run b/Pods/Fabric/iOS/Fabric.framework/run deleted file mode 100755 index 9058ea6..0000000 --- a/Pods/Fabric/iOS/Fabric.framework/run +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -# run -# -# Copyright (c) 2015 Crashlytics. All rights reserved. - -# Figure out where we're being called from -DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) - -# Quote path in case of spaces or special chars -DIR="\"${DIR}" - -PATH_SEP="/" -VALIDATE_COMMAND="uploadDSYM\" $@ validate run-script" -UPLOAD_COMMAND="uploadDSYM\" $@ run-script" - -# Ensure params are as expected, run in sync mode to validate -eval $DIR$PATH_SEP$VALIDATE_COMMAND -return_code=$? - -if [[ $return_code != 0 ]]; then - exit $return_code -fi - -# Verification passed, upload dSYM in background to prevent Xcode from waiting -# Note: Validation is performed again before upload. -# Output can still be found in Console.app -eval $DIR$PATH_SEP$UPLOAD_COMMAND > /dev/null 2>&1 & diff --git a/Pods/Fabric/iOS/Fabric.framework/uploadDSYM b/Pods/Fabric/iOS/Fabric.framework/uploadDSYM deleted file mode 100755 index 57114f5..0000000 Binary files a/Pods/Fabric/iOS/Fabric.framework/uploadDSYM and /dev/null differ diff --git a/Pods/Fabric/run b/Pods/Fabric/run deleted file mode 100755 index 9058ea6..0000000 --- a/Pods/Fabric/run +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -# run -# -# Copyright (c) 2015 Crashlytics. All rights reserved. - -# Figure out where we're being called from -DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) - -# Quote path in case of spaces or special chars -DIR="\"${DIR}" - -PATH_SEP="/" -VALIDATE_COMMAND="uploadDSYM\" $@ validate run-script" -UPLOAD_COMMAND="uploadDSYM\" $@ run-script" - -# Ensure params are as expected, run in sync mode to validate -eval $DIR$PATH_SEP$VALIDATE_COMMAND -return_code=$? - -if [[ $return_code != 0 ]]; then - exit $return_code -fi - -# Verification passed, upload dSYM in background to prevent Xcode from waiting -# Note: Validation is performed again before upload. -# Output can still be found in Console.app -eval $DIR$PATH_SEP$UPLOAD_COMMAND > /dev/null 2>&1 & diff --git a/Pods/Fabric/upload-symbols b/Pods/Fabric/upload-symbols deleted file mode 100755 index a9f011b..0000000 Binary files a/Pods/Fabric/upload-symbols and /dev/null differ diff --git a/Pods/Fabric/uploadDSYM b/Pods/Fabric/uploadDSYM deleted file mode 100755 index 57114f5..0000000 Binary files a/Pods/Fabric/uploadDSYM and /dev/null differ diff --git a/Pods/Local Podspecs/RazzleDazzle.podspec.json b/Pods/Local Podspecs/RazzleDazzle.podspec.json deleted file mode 100644 index ba2028e..0000000 --- a/Pods/Local Podspecs/RazzleDazzle.podspec.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "RazzleDazzle", - "version": "0.2.0", - "summary": "Simple Swift keyframe animations for scrolling intros", - "homepage": "https://github.com/IFTTT/RazzleDazzle", - "license": "MIT", - "authors": { - "Laura Skelton": "laura@ifttt.com", - "Max Meyers": "max@ifttt.com", - "Devin Foley": "devin@ifttt.com" - }, - "source": { - "git": "https://github.com/IFTTT/RazzleDazzle.git", - "tag": "0.2.0" - }, - "social_media_url": "https://twitter.com/IFTTT", - "platforms": { - "ios": "8.0" - }, - "requires_arc": true, - "compiler_flags": "-fmodules", - "frameworks": "UIKit", - "description": "Razzle Dazzle is a Swift keyframe animation framework by IFTTT, based on Jazz Hands. Move UIViews around the screen based on UIScrollView input, KVO, or anything really. Works well with AutoLayout.", - "source_files": "Source/*.{h,swift}" -} diff --git a/Pods/Manifest.lock b/Pods/Manifest.lock deleted file mode 100644 index bf5aec8..0000000 --- a/Pods/Manifest.lock +++ /dev/null @@ -1,51 +0,0 @@ -PODS: - - Crashlytics (3.12.0): - - Fabric (~> 1.9.0) - - Device (3.1.2) - - Fabric (1.9.0) - - RazzleDazzle (0.2.0) - - RxAtomic (4.4.1) - - RxCocoa (4.4.1): - - RxSwift (~> 4.0) - - RxSwift (4.4.1): - - RxAtomic (~> 4.4) - -DEPENDENCIES: - - Crashlytics - - Device - - Fabric - - RazzleDazzle (from `https://github.com/carlosypunto/RazzleDazzle.git`, tag `0.2.0`) - - RxCocoa (~> 4.0) - - RxSwift (~> 4.0) - -SPEC REPOS: - https://github.com/cocoapods/specs.git: - - Crashlytics - - Device - - Fabric - - RxAtomic - - RxCocoa - - RxSwift - -EXTERNAL SOURCES: - RazzleDazzle: - :git: https://github.com/carlosypunto/RazzleDazzle.git - :tag: 0.2.0 - -CHECKOUT OPTIONS: - RazzleDazzle: - :git: https://github.com/carlosypunto/RazzleDazzle.git - :tag: 0.2.0 - -SPEC CHECKSUMS: - Crashlytics: 07fb167b1694128c1c9a5a5cc319b0e9c3ca0933 - Device: 62242076214c30fb5760174b3601cefafa70a481 - Fabric: f988e33c97f08930a413e08123064d2e5f68d655 - RazzleDazzle: 6ab76b0790cafc13e3acee9ef7c863bd63f472a4 - RxAtomic: f8d6adc1ccb87a767811269e4875887bc74dbf19 - RxCocoa: 2f35a76bf8887872e28a1914112395b11b8e0e64 - RxSwift: 92fcf68dfef21f3e2ab1965363d9e7b3d787597e - -PODFILE CHECKSUM: 176a9ad81388cfc1a7ed586168641a851a009841 - -COCOAPODS: 1.6.0 diff --git a/Pods/Pods.xcodeproj/project.pbxproj b/Pods/Pods.xcodeproj/project.pbxproj deleted file mode 100644 index 9e67225..0000000 --- a/Pods/Pods.xcodeproj/project.pbxproj +++ /dev/null @@ -1,2755 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXAggregateTarget section */ - ABA9A411BB5A359862E5F1AA6238278E /* Crashlytics */ = { - isa = PBXAggregateTarget; - buildConfigurationList = A084C0089544D8EEE7DA4C6D8EEEF9ED /* Build configuration list for PBXAggregateTarget "Crashlytics" */; - buildPhases = ( - ); - dependencies = ( - C9CEFEFAAAEDB8CD947737FA56C849D4 /* PBXTargetDependency */, - ); - name = Crashlytics; - productName = Crashlytics; - }; - D35E9EC86D36A4C8BC1704199FDB3552 /* Fabric */ = { - isa = PBXAggregateTarget; - buildConfigurationList = 13B185864087F75D556AC109B2D70BF7 /* Build configuration list for PBXAggregateTarget "Fabric" */; - buildPhases = ( - ); - dependencies = ( - ); - name = Fabric; - productName = Fabric; - }; -/* End PBXAggregateTarget section */ - -/* Begin PBXBuildFile section */ - 00214B29102311B628EBF37D221E8931 /* Observable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7637CFDDD1CF6C009627F4EF662FDA92 /* Observable.swift */; }; - 007537AEDDAF7F5EF396CAE954BFD997 /* LayerFillColorAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA29E78D0AAB1C31FF771C68B657EF9A /* LayerFillColorAnimation.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - 00F3ED5746B7AE11785F2C0E8F6A5038 /* UIGestureRecognizer+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A761F73E5D5A6818383F8C40B17D36C /* UIGestureRecognizer+Rx.swift */; }; - 017EB3601795F5FBA95FC24A05582C2A /* ElementAt.swift in Sources */ = {isa = PBXBuildFile; fileRef = AB6DDD221F6F9B6C2CD257359DF76C72 /* ElementAt.swift */; }; - 01C25234B97DB164BAE12C4D9AE6C79E /* Deprecated.swift in Sources */ = {isa = PBXBuildFile; fileRef = F746777F4282B5BD785771D6E90420F7 /* Deprecated.swift */; }; - 01E7B9A9411549F00616A0C7F11D1902 /* UIStepper+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = B90AAD908D7AE565B99267820AC0A4B2 /* UIStepper+Rx.swift */; }; - 03247AB523CCFA0C91DDE7E377F120A1 /* NSObject+Rx+RawRepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 471D0B2B4624AF2AB271689EB877543F /* NSObject+Rx+RawRepresentable.swift */; }; - 0371CEBA96930021223FD08628E969AE /* RxAtomic-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 7A800E335A652437228A68BD9E74EDE8 /* RxAtomic-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 03F3FF918CD6EF1C8F93A2D06ACB1003 /* RxCollectionViewDataSourcePrefetchingProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6461322BF366BC4E11DD6096CC11F40F /* RxCollectionViewDataSourcePrefetchingProxy.swift */; }; - 0433F24B6A24B4244A7CEBAE83FEE7D6 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1BE9B28F05C2938E3DE46CE07CB230A6 /* Foundation.framework */; }; - 0679F5AEDC804F0B99E0BEFAC3949459 /* SkipUntil.swift in Sources */ = {isa = PBXBuildFile; fileRef = 348E1CEBFB5FE626B70502FD61E735C0 /* SkipUntil.swift */; }; - 09BAE023E40E0FCDC26058CDC755E72F /* Observable+Bind.swift in Sources */ = {isa = PBXBuildFile; fileRef = B169A8F35C4B65ABB53FA9D20A73FD2E /* Observable+Bind.swift */; }; - 0A8A0DF77A42D6E91DD9E31E82397993 /* LayerStrokeStartAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4970F2DCF9C5BFF9F8238645AFEB8106 /* LayerStrokeStartAnimation.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - 0C33C525D207F9AF849015D5FD62133A /* RxSwift-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 6FAC6954B88485F9B361380F3DAD76FA /* RxSwift-dummy.m */; }; - 0D9FC84690392333F3C073CF2263D212 /* RxAtomic.h in Headers */ = {isa = PBXBuildFile; fileRef = 3132DE9CF645E9408F34E258B3AA5E00 /* RxAtomic.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0DE3E771DFB47B5F374EBF232BBE9687 /* Deprecated.swift in Sources */ = {isa = PBXBuildFile; fileRef = E18B7D005597EBC146E9F1219E608449 /* Deprecated.swift */; }; - 0F18A44516814495F2CC048FE79DF945 /* UITableView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C52E3B7C56E39082F21FA19CC8537EC /* UITableView+Rx.swift */; }; - 0FFF5EAA1894E843607FA0093F6E65F6 /* RxCollectionViewDataSourceType.swift in Sources */ = {isa = PBXBuildFile; fileRef = EBB9FF3CA414A7E1742A8C10A9E56CF2 /* RxCollectionViewDataSourceType.swift */; }; - 10C7AAD533705369D41C7FAFD7B7381F /* Pods-RxMarbles-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = CF1795E92D83C9DEB888AA6E21629FEB /* Pods-RxMarbles-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 12F4EEFF70E9048960BDBBA176F868CF /* UIView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE84AEF2F5F4DCA245C787AED3B7E254 /* UIView+Rx.swift */; }; - 13266DDB6DA2414A621F5D0FD818B67F /* Producer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99D62FE6E51D8501EDEC55F990AD1C74 /* Producer.swift */; }; - 1725FF0CEB52758C2A1147125DBF7120 /* Single.swift in Sources */ = {isa = PBXBuildFile; fileRef = E61C301333D975D870F9A2B5E2ECF350 /* Single.swift */; }; - 17603EBD42A5935CC7E6BC456930B61B /* Completable+AndThen.swift in Sources */ = {isa = PBXBuildFile; fileRef = C86FC0B5A941C44043FE6871A917FE2D /* Completable+AndThen.swift */; }; - 1799B9A78CF1886A33EA1D9054B7FBBD /* Never.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1067BEDB5889799D7D2ADED5AB8E43E7 /* Never.swift */; }; - 1834350EF7CABCFAED10555DD91AFCFF /* Scan.swift in Sources */ = {isa = PBXBuildFile; fileRef = 920401343A195EAE5F02452149165158 /* Scan.swift */; }; - 19559AD6443589D66E8C69CAE87ED92B /* UISegmentedControl+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E5C1A9C5AAC15AE2BEE126F18660F25 /* UISegmentedControl+Rx.swift */; }; - 1A5E71E6E0B1CFF30A42CEB17B2EE976 /* UIPickerView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 98CE806672EFF46D6D41DBA3F58AAC8D /* UIPickerView+Rx.swift */; }; - 1A77548363D24E702760D2F2DE83D9E8 /* PublishSubject.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F275F59E22257AA787BFAC6C9EDC914 /* PublishSubject.swift */; }; - 1BEACECBBD52D7B7D22D939042F2BE84 /* Throttle.swift in Sources */ = {isa = PBXBuildFile; fileRef = ED92855243C5EC43971A2A2F80A2446D /* Throttle.swift */; }; - 1C97D6890491A7E374E1CB2A85C0DD87 /* RxSearchControllerDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E302224222610254BE5697C06906C92 /* RxSearchControllerDelegateProxy.swift */; }; - 1E7D89BF0681235C14E8AE106D98299E /* LockOwnerType.swift in Sources */ = {isa = PBXBuildFile; fileRef = A693F986101905011E3C753BA7D85333 /* LockOwnerType.swift */; }; - 1F4A7CE40A8984CD0A58D55A16EAEE5A /* TextInput.swift in Sources */ = {isa = PBXBuildFile; fileRef = D54F1C75FC8DE46238B4A94BAE5E34DD /* TextInput.swift */; }; - 1FE6CD5406C118A817B7660AE96D525B /* UICollectionView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 97484130F1EA0A3FEFCC8CA97B2F49C8 /* UICollectionView+Rx.swift */; }; - 2017098FBC2670C4BFB5359F1CA06896 /* LayerStrokeColorAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 731C309602E931A02B76AF007544B15E /* LayerStrokeColorAnimation.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - 20242F3FBB8B6F97CDE6505300A1A28B /* Timer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C2D61AD3F450BEA15A909C467FAB74D /* Timer.swift */; }; - 233544AAB24600FC2E7D664D5ECB9113 /* VirtualTimeScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = F76D0E77501A2D6949B808AAF21BC3D8 /* VirtualTimeScheduler.swift */; }; - 236002B8B9A25B5984EE3888FCCA246F /* Bag.swift in Sources */ = {isa = PBXBuildFile; fileRef = 72B23EDE3937A355A7BDB3443711E394 /* Bag.swift */; }; - 242F5E2444CC656226C08DDC19E19874 /* InvocableType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 98E19E29204E2AAB359B4783A10BDF70 /* InvocableType.swift */; }; - 2465D605AF800687294C5530858D16C2 /* UIScrollView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 865992923F7442440E737260E88BA7B1 /* UIScrollView+Rx.swift */; }; - 24CFAF92E05B422409A91FCFAA958FEA /* Platform.Linux.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2824479CAD832ACE51CC3C538F936342 /* Platform.Linux.swift */; }; - 25906F9196C04D5EF986C1D318FDE77F /* Disposable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08BBA0DA0EE48981B23D31C214141E3A /* Disposable.swift */; }; - 26024ED882963ABF624A2CE510DBDED5 /* ControlTarget.swift in Sources */ = {isa = PBXBuildFile; fileRef = 41D0AA5B1C32E9636D06444DE10D7ABB /* ControlTarget.swift */; }; - 26371A9B8AD759B0012B33D59032E7B6 /* PrimitiveSequence+Zip+arity.swift in Sources */ = {isa = PBXBuildFile; fileRef = 118E6E14635ADEDC33022ABBF37901F7 /* PrimitiveSequence+Zip+arity.swift */; }; - 2705430AF90CE6D9CB473EB3691E10EF /* SchedulerServices+Emulation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 02E2D6CE20378188930B3574994B9189 /* SchedulerServices+Emulation.swift */; }; - 27BA06A664FD3C6F30983638CA5C599C /* Empty.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A71C3681328FFEA048B9AB2DCB44EAA /* Empty.swift */; }; - 2802430D2F536295F57CAFC8D90928E8 /* DisposeBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 199C6EDE975DC5011935E4ACCBE3EDC9 /* DisposeBase.swift */; }; - 2812AB96FF566726327B0E0A26DD9D12 /* BooleanDisposable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8B0BF330D0DCB0C600B0202F29CBAB84 /* BooleanDisposable.swift */; }; - 28DB3C3F6FD74D19936F8E5072AFF05B /* GroupedObservable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2DB470D6354EB4EA25A62201E1C77C8A /* GroupedObservable.swift */; }; - 2910CCBC8FA7AF22E9922A4976CF9EE1 /* RecursiveLock.swift in Sources */ = {isa = PBXBuildFile; fileRef = 196701C893FDDCA102DB4D29D25E5E23 /* RecursiveLock.swift */; }; - 2B2B5BE1342B27506436179E62406D61 /* ConstraintConstantAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = B561C3BC903A70ECD592D81286515EEE /* ConstraintConstantAnimation.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - 2B51213D5896DCC6CCA23F6445DD30D1 /* Skip.swift in Sources */ = {isa = PBXBuildFile; fileRef = 42B2AA401AAD75F82272C1C07CCB2044 /* Skip.swift */; }; - 2B83FF422D0CBC049793D751C0CEC9C2 /* PriorityQueue.swift in Sources */ = {isa = PBXBuildFile; fileRef = 755AE0F416B9B035C99E3EA06F84EC11 /* PriorityQueue.swift */; }; - 2BDC498802076C2F3D031DA6C4F1D8B5 /* UITabBarController+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = CCA8DBA8DC9B85C4BF0C30B6FDF91E2E /* UITabBarController+Rx.swift */; }; - 2BE1444F5AE35953C3A50E28CA518447 /* _RXObjCRuntime.h in Headers */ = {isa = PBXBuildFile; fileRef = 3777A66226885A1FF9D6A2D5220FBFD0 /* _RXObjCRuntime.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 2BEA14B675D4EB5E155CC0E1A7C06B49 /* WithLatestFrom.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C4805EAD11879770A7793E8C208FDC3 /* WithLatestFrom.swift */; }; - 2C0EC938FF590C120D4FFF7FDE0E95B4 /* Dematerialize.swift in Sources */ = {isa = PBXBuildFile; fileRef = D72FE66824E59854DAE6A96F626A0D52 /* Dematerialize.swift */; }; - 2C6EC59E301736D37F6A3A7AA55CFA02 /* Multicast.swift in Sources */ = {isa = PBXBuildFile; fileRef = DBC8A27D6800B727095E45A449265EC6 /* Multicast.swift */; }; - 2DD28AE484A754CFB77CA4BB571969E6 /* UINavigationItem+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = B90CFB619225FFD11A1EEB4D6AD8A589 /* UINavigationItem+Rx.swift */; }; - 2E345F0CA619223BEF520A7546C07138 /* Animation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7A036009FF5AA1E3CF187BC09CA47892 /* Animation.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - 2F81796F8EED83C15E6C9EFD80410A7B /* PrimitiveSequence.swift in Sources */ = {isa = PBXBuildFile; fileRef = E179A3D7CBA0748258E738E3A0A04D6D /* PrimitiveSequence.swift */; }; - 300857CBF6D3D9F68E1D803FFC418F52 /* _RXDelegateProxy.m in Sources */ = {isa = PBXBuildFile; fileRef = B75F0CE8E66CB9C24AF39ECB81A7869A /* _RXDelegateProxy.m */; }; - 303B16BE123C02642E765246C83969F0 /* First.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13100EE9423FCCCCEA2DC6CA49805728 /* First.swift */; }; - 3075EA4CE6E7188AA16FC33F5477F466 /* NSLayoutConstraint+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7776001B59529886F3351D8712307B64 /* NSLayoutConstraint+Rx.swift */; }; - 311704F1B783B5A8698505AB4492A81B /* ObservableConvertibleType+Driver.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C35335E2B2D45FE20C4DD87C6F815C6 /* ObservableConvertibleType+Driver.swift */; }; - 32B9C0FAD4974839A4DB7F120835C2E2 /* KVORepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57A65C4D3AE3B332B5321D9DCC6D1792 /* KVORepresentable.swift */; }; - 33A4B1A2476AB50CE2DA1487F9B949B7 /* Deferred.swift in Sources */ = {isa = PBXBuildFile; fileRef = D26263970C19524126239A5C594FA059 /* Deferred.swift */; }; - 34C3427EAD75CE25F69ECE813E428069 /* BehaviorRelay+Driver.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88EBEFBAE57FCE0A13FA25AFFD9DDB1E /* BehaviorRelay+Driver.swift */; }; - 34CBF54240CF7E134BB709179E9437D2 /* SwiftSupport.swift in Sources */ = {isa = PBXBuildFile; fileRef = DCE60D42FCF20F4A6BD5BD855379A7ED /* SwiftSupport.swift */; }; - 351A73A78B9615283AD1425BF8C5B43A /* Version.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9B46F0FD5099394A54CC0B782A3174A2 /* Version.swift */; }; - 3532EF54E229A4C0F702B97CB9AAD8EC /* Zip.swift in Sources */ = {isa = PBXBuildFile; fileRef = 77D4756634966997741E1F6E0F23A09F /* Zip.swift */; }; - 35B9D9C2AE72F6EC79B5019EFFA744D6 /* TakeLast.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4DD5E15541C089FFC26195E13519E1C4 /* TakeLast.swift */; }; - 37130658F8BD1F416A05668AB5C1D2B5 /* ControlProperty+Driver.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A5D8FA0381E3404CB2BE260A8BFDD51 /* ControlProperty+Driver.swift */; }; - 374DACE62F27867FB838C2D4F3F8B795 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1BE9B28F05C2938E3DE46CE07CB230A6 /* Foundation.framework */; }; - 376D901C13ED4FD3751CF5CDA9B3D829 /* AlphaAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = A802605644399423ADE44C7E05A0E569 /* AlphaAnimation.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - 37E3C2CE94EB9B343CD9A14FA23E937C /* RxCocoa.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA0D6DF9FAC731C8F640C07FFB3FDB8B /* RxCocoa.swift */; }; - 3A572BE7A55DBA4E1E779EC8317B3E45 /* Event.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99A7D49E68D60CFB4DAE2F9A4A5FC849 /* Event.swift */; }; - 3A723414BF7EE46A61280AFD63B212F2 /* RxTableViewDataSourceType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A306300795CBBBCA6CA91CE3A6845BD /* RxTableViewDataSourceType.swift */; }; - 3B358B58349A43CCB44BF830FEBEF3A6 /* Maybe.swift in Sources */ = {isa = PBXBuildFile; fileRef = 90DFDB771C4A2A5DFBFC43C2DBBA7806 /* Maybe.swift */; }; - 3C4A760517D1A9A3136F93C20977C019 /* Generate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D128B5FB818C7BB157E985DF138E9F3 /* Generate.swift */; }; - 3DAE0D5DC9687A78DF167BBF5B32F1DB /* Platform.Darwin.swift in Sources */ = {isa = PBXBuildFile; fileRef = CC64D8B5B9A9713FBB2F4483A3E42A59 /* Platform.Darwin.swift */; }; - 3E455303819CEB4ED161000307B17176 /* Delay.swift in Sources */ = {isa = PBXBuildFile; fileRef = C2742AEB475770D3B81B8C446BAC4487 /* Delay.swift */; }; - 3ED0814A00A951A8DFF4501F7D12C432 /* Map.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD75F7D8B0AF7D73B21BE14907BA147B /* Map.swift */; }; - 3FC3E52857DA3BAB6E550D1BC8AF3B8E /* DistinctUntilChanged.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0283FBF8B2B9371A5BCB81A9B1B211A8 /* DistinctUntilChanged.swift */; }; - 4021AE54B1052D80D62F68D1CD6EA794 /* NSButton+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40893D141453378E88C67E887D1349DD /* NSButton+Rx.swift */; }; - 417D413E1EF8D38033DCEE08F9880654 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1BE9B28F05C2938E3DE46CE07CB230A6 /* Foundation.framework */; }; - 41AFB4BE3D3A415F4EBB0458D7B5C703 /* AtomicInt.swift in Sources */ = {isa = PBXBuildFile; fileRef = 005BC714A4F6FA7D28179FB87D3665AB /* AtomicInt.swift */; }; - 428A6102576FE6C6F66C869E796D3122 /* ConstraintMultiplierAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76305C79124B58CFC751BD88347319AB /* ConstraintMultiplierAnimation.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - 438FDF731AF2052CC8368165CCBDF3A5 /* Take.swift in Sources */ = {isa = PBXBuildFile; fileRef = FFF1B987DC8565EAB8B146D4E36205D0 /* Take.swift */; }; - 43C45269E2BC15B613A0DCBC326810FE /* ObservableConvertibleType+Signal.swift in Sources */ = {isa = PBXBuildFile; fileRef = 748752B7F7538CBD597AD7A5638352DB /* ObservableConvertibleType+Signal.swift */; }; - 44CFB42E712E6D7A5ABE0F95DC5F7C2E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1BE9B28F05C2938E3DE46CE07CB230A6 /* Foundation.framework */; }; - 44E95577734FB971CE12111C201B7722 /* RxSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 210E83450526D7112A3C88C88896A0E9 /* RxSwift.framework */; }; - 45C5D759104075FF1C12B697F788E4F5 /* NSTextStorage+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = A789567B0FA25406FE49474A6AEA808F /* NSTextStorage+Rx.swift */; }; - 46CAB374B9CAFD413C4185AB6ED8FB57 /* TakeUntil.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0392C0FE496E6F52B6816874E8B1D305 /* TakeUntil.swift */; }; - 47B3E59440B786A73A2464EFCCD5C0E0 /* RxMutableBox.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7C59C5B081E3379ECD346A692BD1BDE3 /* RxMutableBox.swift */; }; - 48198298991B46ED60DBA1380FAB68F4 /* Device.swift in Sources */ = {isa = PBXBuildFile; fileRef = CAF98612BBA42E33D6E6DC3CD7A4121C /* Device.swift */; }; - 48E67D43A128232405095B1FE86D0FD9 /* _RX.h in Headers */ = {isa = PBXBuildFile; fileRef = 5044F52B5D04A814087B30A1381BBD60 /* _RX.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 4925870F062E705F3F2668D600F6C150 /* DisposeBag.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9F967CBB59DF8C255D7AF1E26694BAD /* DisposeBag.swift */; }; - 492C9A0F64BEA074354EEC0E4AA87CA8 /* UIControl+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = D81A756F503B7024BA1F75DFDA24DC73 /* UIControl+Rx.swift */; }; - 4B08C3CA7AF58AA9EF1EF5F0DA954FD3 /* PathPositionAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE28D63DDBC1F0FABB6D2CCBED7294A6 /* PathPositionAnimation.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - 4D68BDE063175C4B278725D1D372BCCD /* Type.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3DD4440A313C1549571DFFD90CC80816 /* Type.swift */; }; - 4F17D6F02F7E229338DE33EAEF134BF9 /* SingleAssignmentDisposable.swift in Sources */ = {isa = PBXBuildFile; fileRef = C2677A188D745D02AE3A8E69C2647E52 /* SingleAssignmentDisposable.swift */; }; - 4FD0FC068C431A602529DC3EEC7778D5 /* Repeat.swift in Sources */ = {isa = PBXBuildFile; fileRef = D6F67001F4CEC2C837CF6B3172FEE0BB /* Repeat.swift */; }; - 50BDF802A692247A39407ACDD28C9493 /* NSView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 851FB8467EA27F9454BD7D8740CFA954 /* NSView+Rx.swift */; }; - 50C995C0D53F558B0F0D10E40ED5046F /* NSControl+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1416835114B99651ED5A54DDA449B7B7 /* NSControl+Rx.swift */; }; - 50F60C8B888BEE61BF46FAF4D0217F4B /* SynchronizedOnType.swift in Sources */ = {isa = PBXBuildFile; fileRef = BA95FF6784FA43C6B84FE4AE363CC914 /* SynchronizedOnType.swift */; }; - 533005D9ED0D5C0515F45999D6421FDB /* KVORepresentable+Swift.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71C38CCFE21232E4F4BA7A0D9A058368 /* KVORepresentable+Swift.swift */; }; - 53D09602CB96DC3AA2242F0546E1434F /* Just.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A7DFE373249F55475E0A73895EF60BC /* Just.swift */; }; - 55899504187581571B3E763C855CB719 /* ScaleAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FB52552197EFC9D6F84479A406693F4 /* ScaleAnimation.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - 55C39CD1F82E16980CBA66D7FF2B0C40 /* UIPageControl+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6CE50CE5D6C77F37A1897C65CB63441B /* UIPageControl+Rx.swift */; }; - 56496D20189B91B3112C6C1635688EF6 /* Lock.swift in Sources */ = {isa = PBXBuildFile; fileRef = F573318077C6901EE4E408A9E5F2A12A /* Lock.swift */; }; - 57994526AC2F93B8EAC1CB19962A87B5 /* SerialDispatchQueueScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC93C27D3FAD477F752E8E2FCCE029A7 /* SerialDispatchQueueScheduler.swift */; }; - 58D6771FF85EAE12474DA0B5564DA563 /* KeyPathBinder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57EC94400CB9230C637283FA6726004E /* KeyPathBinder.swift */; }; - 58E6AC98E445231D31D2ED8B63DA5353 /* AnyObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E4DBFFA151F3ADA53C06525236E7F32 /* AnyObserver.swift */; }; - 5A0079A73311DD29FFE4DCA50F6ED95F /* Debug.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BD90C15A9C981B400F76D11BAA63061 /* Debug.swift */; }; - 5A973C87308529F3C18747E4E5B47BF8 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1BE9B28F05C2938E3DE46CE07CB230A6 /* Foundation.framework */; }; - 5ABC1AEF4CD2C36CB6643C9D087C8153 /* _RX.m in Sources */ = {isa = PBXBuildFile; fileRef = 37ADE74943E691FA5B93F15F902159FD /* _RX.m */; }; - 5B4E9CE9262E47D2898E96ADE5EE6C4C /* Filmstrip.swift in Sources */ = {isa = PBXBuildFile; fileRef = B95247ACC995B53C3BA6E7CA6E712701 /* Filmstrip.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - 5B54481310CFC5848464577E164B43C3 /* VirtualTimeConverterType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 42F919DD1C33EF5B2F68662A9334E533 /* VirtualTimeConverterType.swift */; }; - 5B58A8576E069CBA9AE4F61E47AE70A5 /* Driver+Subscription.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEF5F0B0E948446A608305DD841F36F2 /* Driver+Subscription.swift */; }; - 5C278DB2DD50881ECE13ADCA077FB462 /* ObservableType+PrimitiveSequence.swift in Sources */ = {isa = PBXBuildFile; fileRef = B459D266B51CAF52B259E7DCA8ABB248 /* ObservableType+PrimitiveSequence.swift */; }; - 5E464B10FA689F4AE97C294D50B0B4BD /* Size.swift in Sources */ = {isa = PBXBuildFile; fileRef = 233AD7AFD9931A4CD1D15F2D3A876D86 /* Size.swift */; }; - 5EDE7C270C9B2C202C6DB4D9350D492F /* AnonymousDisposable.swift in Sources */ = {isa = PBXBuildFile; fileRef = C2136713323B867CFD71CDD9EE06DA97 /* AnonymousDisposable.swift */; }; - 5FC767597AA3E648EC2005E09765B13D /* UIBarButtonItem+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = C2A5E3A7021A47B6F3BEA50AC7D57FF9 /* UIBarButtonItem+Rx.swift */; }; - 6126FF35F0B807E152953CDC8CBC5219 /* Reactive.swift in Sources */ = {isa = PBXBuildFile; fileRef = BA9323A3E2FA64AE7A5EE3C53CAD7BC8 /* Reactive.swift */; }; - 62638714CD180621F402CBDAD3BA775D /* LayerStrokeEndAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2039CF588DE894B82AAD543648C47718 /* LayerStrokeEndAnimation.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - 63E223F4F3AAA624E3D911DCC536CC99 /* Device-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 0C39E99C74BADFE018AD1071AC449F29 /* Device-dummy.m */; }; - 64F62CCA1C1BAF697544FC5EC6498D73 /* UILabel+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2952EA37A6BF7A10777DF0E0E7455017 /* UILabel+Rx.swift */; }; - 6608C53229B9D05FD6AE8155F10D41EC /* CombineLatest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5E9B9DAD3DB6D6241BF23D03C4D28C23 /* CombineLatest.swift */; }; - 66C5260DF81DF5204302EAE0E8532AFF /* DelaySubscription.swift in Sources */ = {isa = PBXBuildFile; fileRef = C2EA6DD6EFEA94F2175D434B3E4C1B26 /* DelaySubscription.swift */; }; - 67506CDC6FADF6E09D0B561EF893D7BA /* RazzleDazzle-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = A38E8E92A3280AF37ADAC53F72D0089E /* RazzleDazzle-dummy.m */; }; - 675B621EC591140F7005E329352823C5 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1BE9B28F05C2938E3DE46CE07CB230A6 /* Foundation.framework */; }; - 675E5AEA27C079940A9C9C1617520FA0 /* String+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5E0718722A5BD4C9775BC4004CFD5CE8 /* String+Rx.swift */; }; - 67D41C2A958F5BC53FDA826C75593896 /* RazzleDazzle.h in Headers */ = {isa = PBXBuildFile; fileRef = 11A35D78E7049333407692A6BC0B55BC /* RazzleDazzle.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 68AE01543A830DEB23EBD4572D63C384 /* EasingFunction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1136EDF905D639E6B90F1D6058946C77 /* EasingFunction.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - 696AE519B155555782AEBFD6410EF43C /* Platform.Linux.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0DE8882B66B95CF40750CD350847E522 /* Platform.Linux.swift */; }; - 69878F2410A32FCC166F903B6BE5226F /* RxSearchBarDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 90CEA42C24FDD48ED20234DF2B1C8214 /* RxSearchBarDelegateProxy.swift */; }; - 69F46CF2F0FD645FCBEA7BCC922CCA4C /* Debounce.swift in Sources */ = {isa = PBXBuildFile; fileRef = 627AD7B9292214390F0716DBACB6A1C5 /* Debounce.swift */; }; - 6A0AACD5C2050FAB7799BE3B76FC40F7 /* RxSwift-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = B9C2302BB236D7B559CAE55AA5D35DA5 /* RxSwift-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 6A9DCBDB5C88197AC137448E9FEFB496 /* InvocableScheduledItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F30CD1DBC7C373591A6FBD48221EF36 /* InvocableScheduledItem.swift */; }; - 6B014FE55FE74DA55B9DAE13AB9AD785 /* Bag+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAB6E76DD33EAAB68CD69A0A57847044 /* Bag+Rx.swift */; }; - 6B4C2D6A5FEC98D39C676E2118C6818D /* SharedSequence+Operators+arity.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5F8E0DF5F174AA2F4354DF9A12B7866C /* SharedSequence+Operators+arity.swift */; }; - 6C1F42246EF6CE0AD14C5DC8FAE0F4F2 /* Window.swift in Sources */ = {isa = PBXBuildFile; fileRef = 836AFF21E2BA674450E81142AC24FEF9 /* Window.swift */; }; - 6C85BA96583EB9D7F44EB9B9AD17A26A /* UIButton+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1CA882AD004F24BEBBBB5271DCDD1941 /* UIButton+Rx.swift */; }; - 6CA2E5C29628A076078AA5FB976A9431 /* SwitchIfEmpty.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56ACB4FCD4784DF482B6F51EC2162610 /* SwitchIfEmpty.swift */; }; - 6CFDCA9A327C94649889D17B514DA2B1 /* Disposables.swift in Sources */ = {isa = PBXBuildFile; fileRef = D25275AD37E8174E1D7DF9717A7C3CAB /* Disposables.swift */; }; - 6DAF84B2E916ADFB52151C01221F991E /* Switch.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE18DAA04CD6B699306D9065A5E58CFF /* Switch.swift */; }; - 6DFA8B0E2F54BDD080A1E03CEB77F7F3 /* RxTableViewDataSourcePrefetchingProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE26D9E2504A009561F3CB3688930B39 /* RxTableViewDataSourcePrefetchingProxy.swift */; }; - 6E79CAEF218C802E887C83B436C3919A /* Reduce.swift in Sources */ = {isa = PBXBuildFile; fileRef = 688B13A755DC49065B2A7D988B091FDF /* Reduce.swift */; }; - 6EE71ED1F99A13C9F3AE5B7BF202C8D3 /* SkipWhile.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1F4728998851493EDD309A9DA57DE57C /* SkipWhile.swift */; }; - 714C456FAC04256DF34F0CF656D78C39 /* RxCollectionViewReactiveArrayDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = 072B136D8275D4D676925AC5268371E8 /* RxCollectionViewReactiveArrayDataSource.swift */; }; - 71A91263A1E8F034C576BAA11129FDC8 /* ScheduledItemType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3FBE1694691597B4989A788E46E9E269 /* ScheduledItemType.swift */; }; - 71EBDE9527F962A697043C95100CD793 /* UIDatePicker+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = E740D322623AFAA208B62D9B4EA69337 /* UIDatePicker+Rx.swift */; }; - 72B5EEAD97EF22EB9053AE0A5EA026D5 /* RazzleDazzle-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = F9DB2016B81D4AF91379C77C2C544F51 /* RazzleDazzle-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 73625D342A26E4E6254A191C754172CE /* ScheduledItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D31FE6F75749BEE34B7FDC44CADA3B0 /* ScheduledItem.swift */; }; - 763B5FA8982B6A417371C186900BE00D /* AsyncLock.swift in Sources */ = {isa = PBXBuildFile; fileRef = A6B46C31ECDC6160CAEB560087043EC2 /* AsyncLock.swift */; }; - 76C23EB8550CDA1F715497EB51F08741 /* Create.swift in Sources */ = {isa = PBXBuildFile; fileRef = 14629E7FDBD22844F834FA2E43818D59 /* Create.swift */; }; - 77C3B6F88F6C287E78FD46646D1E6245 /* PublishRelay.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2395D732095EBF2530576D082BC9A074 /* PublishRelay.swift */; }; - 79FB1AC1FC3E856AE97EE107F2B77D52 /* RxWebViewDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA1D03C4A0B72389FC4A0E1BCCAA85BC /* RxWebViewDelegateProxy.swift */; }; - 7BF63F143C81190CBE6F5CE3DE17C0D5 /* Logging.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB93B70D6A565ED3F045D842111FA486 /* Logging.swift */; }; - 7C538A9B05C49147B8F1B5C9F85CCFE1 /* SchedulerType+SharedSequence.swift in Sources */ = {isa = PBXBuildFile; fileRef = B095AA9255123290D41EF1E7CD5C52D9 /* SchedulerType+SharedSequence.swift */; }; - 7C53BF471A54F6786B6840BEAB59726B /* InfiniteSequence.swift in Sources */ = {isa = PBXBuildFile; fileRef = 44EE0F1D3B0D253A8E659566E961E4B0 /* InfiniteSequence.swift */; }; - 7D737455457AC04ADCFAFA34B7388F8A /* Error.swift in Sources */ = {isa = PBXBuildFile; fileRef = CC9EDF36DEDAE34DF062686C86783F58 /* Error.swift */; }; - 7E7D12CA17C841687685CDD6068BFEF5 /* Sequence.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7C75FDB0B0AB9439F7BBFAA056020416 /* Sequence.swift */; }; - 7F32E764EF8278BACB80D9D733778F86 /* RxCocoaObjCRuntimeError+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E57DA91E276839E3DB9A0514E962FBA /* RxCocoaObjCRuntimeError+Extensions.swift */; }; - 7FD2B81A91D7379523F9F582BE05BC75 /* Queue.swift in Sources */ = {isa = PBXBuildFile; fileRef = D2D4010CDDE76D31AE266B9E27A401A5 /* Queue.swift */; }; - 7FF36BE329E9D0CE6198360037816871 /* SynchronizedUnsubscribeType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 030EC1A40BEF287DF8AAE535E0AFE3FF /* SynchronizedUnsubscribeType.swift */; }; - 80A1E01B80BD9E31427F42DEDB6DE466 /* Filter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 60DB8601259BF6D13E2BDE1E385CD072 /* Filter.swift */; }; - 8108AFD56DAF2F6F748498B61D40D0F9 /* UITabBar+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0FB296A0DFF1DE1665F5D6F8300807A /* UITabBar+Rx.swift */; }; - 81E7674E3DA08F321047459724470B86 /* UIViewController+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7260CCA1F5DB3D3557506A93A6ED3E6E /* UIViewController+Rx.swift */; }; - 824BCEC3CACE1439F9A4DFC352C88490 /* RetryWhen.swift in Sources */ = {isa = PBXBuildFile; fileRef = D806AF8E68443F52F558F01852703D58 /* RetryWhen.swift */; }; - 829B7B1D92DAC21430CB5C7A97560027 /* ControlEvent+Signal.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9AD9780CB0378AEECA3FF8C5D99497B9 /* ControlEvent+Signal.swift */; }; - 8310552C30EF213BE4CEFA08A7C75451 /* NSTextField+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6190125FD9C7F9D729DA119E455A5CCE /* NSTextField+Rx.swift */; }; - 8414B77D778F5C33DED5784970D5A6AF /* SubscriptionDisposable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8FFFFD35E30CA9F6B11BA6D39F87890B /* SubscriptionDisposable.swift */; }; - 847C41CFB92361B5173B4F2C633BEDCF /* SubscribeOn.swift in Sources */ = {isa = PBXBuildFile; fileRef = 033D96F8CB184B7FCD248A8A3167DF86 /* SubscribeOn.swift */; }; - 849C5FFC50D0D33C0597E6F5245979B5 /* RxPickerViewAdapter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09465A5DB43A878555E01C9DF2CB7A74 /* RxPickerViewAdapter.swift */; }; - 86B684E46194594AE284BC478612B1C5 /* UIWebView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = EBB7F761838ED112C7DC49B035AEC4B4 /* UIWebView+Rx.swift */; }; - 879D951D5C5105B0B8787A900A0DC035 /* TakeWhile.swift in Sources */ = {isa = PBXBuildFile; fileRef = F22AFDD1CD0056F7E108E8AB4D82F2E2 /* TakeWhile.swift */; }; - 87B4C6934D0572A6395B41B3D2E28AE0 /* RxCollectionViewDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82E386CB547ADE122C9DBF4F6C146EF6 /* RxCollectionViewDelegateProxy.swift */; }; - 87BA998362CA9A91E50AE5CEEBD2CFEC /* RxTabBarControllerDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65320A7EF8EF0E1650170C84EC00EA6B /* RxTabBarControllerDelegateProxy.swift */; }; - 88DC5DFF846C0438298306918DE6C7FC /* HideAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = B11036255BF83F2062E3115BBF011906 /* HideAnimation.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - 891931E25F8D2FDBF60640A1A9032F9F /* Do.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5F516CC40A72A8E271549C9A708DE717 /* Do.swift */; }; - 8A9748F4ABDB59F104DF62E273A63BA2 /* Cancelable.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9D9B651376E4506B8F481C05582117B /* Cancelable.swift */; }; - 8BAB289A637C6DA5FFD61663FDDF6289 /* RxTableViewDataSourceProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CE6D1C2977823FDDB8B0DD5817A0B9D /* RxTableViewDataSourceProxy.swift */; }; - 8C50452FB613E3B65FEE5EFF6D46FC53 /* UIAlertAction+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = B4B8833EC8FA2CCBA605F0B6413A0F24 /* UIAlertAction+Rx.swift */; }; - 8CA7DBD380E0BD5CD6103A059017DE50 /* SingleAsync.swift in Sources */ = {isa = PBXBuildFile; fileRef = D094060619F37142A6D64CBEBE88F757 /* SingleAsync.swift */; }; - 8D0068E28740357A895EDDF95246B06B /* UISearchController+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = B07499B848422DAE24FE35AC388999FE /* UISearchController+Rx.swift */; }; - 8DA1CC993EF98BE8BCA0E7E6FD69B50B /* RxTextStorageDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD7FD9C2427C82183EE014F95F58F94D /* RxTextStorageDelegateProxy.swift */; }; - 8E1791B7020D313A230E9DD5423673DB /* SharedSequence.swift in Sources */ = {isa = PBXBuildFile; fileRef = CF6D9830CF23CC0082409786DE617D75 /* SharedSequence.swift */; }; - 8E45CFBA3B8DBD27848253C72D5F956A /* ControlProperty.swift in Sources */ = {isa = PBXBuildFile; fileRef = 714FEE3E7137A3D6B06B083F4298CB33 /* ControlProperty.swift */; }; - 8FF0B35F36201D7FD2053831A2098D59 /* BinaryDisposable.swift in Sources */ = {isa = PBXBuildFile; fileRef = FABD168ED9560C339334B4A885AEF217 /* BinaryDisposable.swift */; }; - 919E69C3EEEBE316B1549BC6D4D0589A /* ConnectableObservableType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2524DE69A80DACE4B4D8B20D0AAC997A /* ConnectableObservableType.swift */; }; - 91E0A6145C1CA3E0993ADFC61BB7AAF3 /* GroupBy.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA239C3A97C0B63C070969902C06442C /* GroupBy.swift */; }; - 92C5B04849E9A74109265C555767BAF3 /* BehaviorSubject.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7E3F56DC5E5C300E2B053A28DBEA448 /* BehaviorSubject.swift */; }; - 9300DE93BE6DDC7787B8197E9A8262D6 /* RxCocoa.h in Headers */ = {isa = PBXBuildFile; fileRef = A1CCDFD2798852529E201DACB849FA39 /* RxCocoa.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 93323816AECF23917D7085AA66720B85 /* Binder.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF9B8F2BB78DCC11EC0FE83834E3B521 /* Binder.swift */; }; - 93FAA277EE5B451DCA13E133EEB7995A /* RxAtomic.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D6326E97846847436854F4DA6B3603E2 /* RxAtomic.framework */; }; - 94280D9552043E037B48D61197D034A1 /* AddRef.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46857D4DE63DB7FC73DF4C7CEA1E40BC /* AddRef.swift */; }; - 9429ABC76C6B43E9488948783182396C /* HistoricalSchedulerTimeConverter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 537471E3A6F10E472074357C787EAF58 /* HistoricalSchedulerTimeConverter.swift */; }; - 94FE3EDBBAB489A1C8F087529EAF26A2 /* TailRecursiveSink.swift in Sources */ = {isa = PBXBuildFile; fileRef = 73E1D31669E7A29337CFDA5E00C38AF9 /* TailRecursiveSink.swift */; }; - 959B36A6B60A0AF7EF1CA5586303CBC4 /* ConcurrentMainScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9F5BB9E3BFEB6BBE37573A70837E5909 /* ConcurrentMainScheduler.swift */; }; - 9668318FD1127781061C4DF9F3A56AD0 /* OperationQueueScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E66CD4C819857BB60B83107EBA7BFD3 /* OperationQueueScheduler.swift */; }; - 96999C35361D9E695991F0C487D4FDA1 /* Timeout.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6DBDDDF41DA221A01D285E20A6ED822C /* Timeout.swift */; }; - 97A2776553D4A7915FD1ED9C0A0AB583 /* ObservableConvertibleType+SharedSequence.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8FC6F1B5414B75DBDFEA02EB86F984C /* ObservableConvertibleType+SharedSequence.swift */; }; - 97BB8A455CE043B1BB6506E0572F8099 /* TranslationAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = C28617354D02B7330688A236DA2BA6DF /* TranslationAnimation.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - 98B46BA39EB3675D184437256C7DCAFC /* SubjectType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7809D5F54E6C312C113F9AC249CCB727 /* SubjectType.swift */; }; - 99E906A89E960BC3758309666CD28356 /* CurrentThreadScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6784DF839AF5D9E730B38AE391C51C07 /* CurrentThreadScheduler.swift */; }; - 99F50DD59C761A31E420B51EF1F9930B /* Catch.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6B375FE0493D78218B36A26C830CDFEA /* Catch.swift */; }; - 9A160EF082DA20307D55DC804521E229 /* _RXKVOObserver.m in Sources */ = {isa = PBXBuildFile; fileRef = 20DE32C24D473BB4FC6E61DC65DF3839 /* _RXKVOObserver.m */; }; - 9B5C3EC036D696F25963F4347F8B459B /* RxTextViewDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 89292F6F1704AA87FCFD115382E80C21 /* RxTextViewDelegateProxy.swift */; }; - 9B604B33415E7B8B696B92FE42866534 /* NSObject+Rx+KVORepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 54BC1A142E15EBB9A72F508703E8E5C8 /* NSObject+Rx+KVORepresentable.swift */; }; - 9B8B3B4DEDBA5778BCD1FE4BC2FB5C23 /* Zip+arity.swift in Sources */ = {isa = PBXBuildFile; fileRef = B26781A23478FCA9C8095F33B9169DC9 /* Zip+arity.swift */; }; - 9C2F821498814E6CE37FD3A55F69EC1B /* AnimatedPagingScrollViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 17584F332FDCF7C029C149E24C3DB32A /* AnimatedPagingScrollViewController.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - 9CB6A8B7D0982CA8A9B4B211A9BF7AF3 /* ObserverBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 35902AC8B9F608B8A53718A71C95921D /* ObserverBase.swift */; }; - 9CFB2909EA3F7930D443A90AFB24E2EB /* RxTarget.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1C5FC9527F0BBB4956C6FE63A7881E90 /* RxTarget.swift */; }; - 9DCC8FEE3C6A632F918425578DD123B6 /* RxPickerViewDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 074E9C3246D72A5F977D2618EC7FA9D3 /* RxPickerViewDelegateProxy.swift */; }; - 9DDA6AF9523D51E2D1766218B7804BDB /* CornerRadiusAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8E1F54087199695D45CA4820F20061AC /* CornerRadiusAnimation.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - 9E0DE9D9E2867CB003D14439B32FCD18 /* BackgroundColorAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46E805276E5D0BEF8B0F6B2D9C008322 /* BackgroundColorAnimation.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - 9EA45ED230E66AD50E1DBE07877C4EAC /* RxAtomic.c in Sources */ = {isa = PBXBuildFile; fileRef = 6767A2CA4CF780848BBC0D3386C21026 /* RxAtomic.c */; }; - 9F939291EFEB01609B2E44E2C76CFA10 /* ObserveOn.swift in Sources */ = {isa = PBXBuildFile; fileRef = C739FEE49A1F2563BC57CF07392EEDA1 /* ObserveOn.swift */; }; - 9FA07AD4E11BA20B5A12512A2990F410 /* InfiniteSequence.swift in Sources */ = {isa = PBXBuildFile; fileRef = D59DF2AA2C1F6672F2DCE73C514A5F17 /* InfiniteSequence.swift */; }; - A0EA723267FE1DA6E43FC81DA13FC616 /* NSSlider+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 883B26A224580B823F189308029B4EE1 /* NSSlider+Rx.swift */; }; - A23EB3DE7B96BADC8C70ED5C91216234 /* UIView+Transform.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4E627B0CE9ECDF683D071BBC5DB2193 /* UIView+Transform.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - A2AB298396BBF767EDEE4DF9790D6C57 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CD51C735F85F7CCE1846934F6C435C05 /* UIKit.framework */; }; - A2C5C161588F17B5F1592EBAD0F1891D /* ReplaySubject.swift in Sources */ = {isa = PBXBuildFile; fileRef = 027C6BF63045E5D286A4A1ABEC4D9A6C /* ReplaySubject.swift */; }; - A419AC41B4951965A63B3C292130EE63 /* MainScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A77C15E443A69F472B32837BD5A8B6A /* MainScheduler.swift */; }; - A4213B529852E688927EE4B6C149212D /* _RXKVOObserver.h in Headers */ = {isa = PBXBuildFile; fileRef = D8B27F7619D25B430883A94468866374 /* _RXKVOObserver.h */; settings = {ATTRIBUTES = (Public, ); }; }; - A501CBA9CF44748288CB4BAD148D588A /* SharedSequence+Operators.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA944F0EB722D186851045218D1DE8F3 /* SharedSequence+Operators.swift */; }; - A50D1D842C0A6E905D21E0526DAF63D6 /* CombineLatest+arity.swift in Sources */ = {isa = PBXBuildFile; fileRef = 182AE135DCC5EE3459F153CBC34D714A /* CombineLatest+arity.swift */; }; - A5F9C61E39C1955773EB6FCF8FDBA6BD /* RxTabBarDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EDC40850064057CB51790E198A5AE87 /* RxTabBarDelegateProxy.swift */; }; - A6206BCC37683FCCC3135B876BD773F1 /* Signal+Subscription.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7CA2207FDF25B9134F189B2BFEDD52B /* Signal+Subscription.swift */; }; - A656CB057133EBE94294DA168F92C053 /* Sample.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9544C7C064032E328950536A02676186 /* Sample.swift */; }; - A852EF382BD0BBAE3D249061C31C78A0 /* StartWith.swift in Sources */ = {isa = PBXBuildFile; fileRef = F2688914161408B4D752F2B12CAFDA5F /* StartWith.swift */; }; - AA7E926BF97AFAB48662BB6ACE12F375 /* HistoricalScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80F88E2C0585A8785C671318872E8889 /* HistoricalScheduler.swift */; }; - AA90D7DF1966D79E23106F1F326FAA23 /* ShareReplayScope.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5AAF7274B2E78E6313939B8C08437DAB /* ShareReplayScope.swift */; }; - AAD4F384E82A57014E927D40CA85F973 /* UIProgressView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = B5C8C8EF1A8E41A208CDD6EDAE7BD2AA /* UIProgressView+Rx.swift */; }; - AB63865381CFF2722338EBF5C8958F90 /* DispatchQueue+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = AFB8C2A92BABC9C930730227C33746D7 /* DispatchQueue+Extensions.swift */; }; - AB891500DF280B5C7B52345084943596 /* UITextView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FA6CF686DD0DC0AA064346A54EC2133 /* UITextView+Rx.swift */; }; - AD78A00D023078CFFD496D9444BA2F09 /* RxCollectionViewDataSourceProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E09D4867BF3492CAE00B8A2BD176484 /* RxCollectionViewDataSourceProxy.swift */; }; - AD959FD428E34B258140530283652E8A /* RxCocoa-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = ADEF28EF72FA5EADBCA73E10133C9A5C /* RxCocoa-dummy.m */; }; - AFDE5D9190F5B394C712B2929578C52D /* AsSingle.swift in Sources */ = {isa = PBXBuildFile; fileRef = F885C12F1C3A04D4544401C4A113C1A3 /* AsSingle.swift */; }; - AFFF401447C246111AA439ADE60915CC /* UISlider+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC7D59990B158F0BCDF2A4EB74127FA7 /* UISlider+Rx.swift */; }; - B0F76E1EF3E2A342D0F692116A431C30 /* ControlEvent.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA706F2B9F335F69BE04056DB1AEA3EE /* ControlEvent.swift */; }; - B0FB0B7111D1FEF7F9D7DD161ADDB453 /* ObservableType.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0F99512B362525E0A0C1D5C3ED980F4 /* ObservableType.swift */; }; - B17318FB4B49C9F78D6685B4F476DE52 /* Platform.Darwin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 89AAD9BCC42332AA44B0CA435D487C78 /* Platform.Darwin.swift */; }; - B191ECC98F59047E283E40434254DCF1 /* Sink.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FB6FFEFE03BDE3296279D1999EB385E /* Sink.swift */; }; - B2E12882DBA2D3DCFA778C47B3AE891E /* ScrollViewPageConstraintAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84446C679FFCF8098FC8F1E67F53E3D4 /* ScrollViewPageConstraintAnimation.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - B305766D0DC630B64F1AB3931CA550CF /* Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = D799C60CDB8A8FA665D294EB5F0A5B54 /* Rx.swift */; }; - B30C90BC67CD9A8037C26D0231FA9FAB /* SectionedViewDataSourceType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5F64D79EBC0BB27701A8D9F031DE5E7E /* SectionedViewDataSourceType.swift */; }; - B6D58BB2F18E50314FD3EA68E66ED4E8 /* CompositeDisposable.swift in Sources */ = {isa = PBXBuildFile; fileRef = E449318A9A4C416F93D8461C5C4BAC7D /* CompositeDisposable.swift */; }; - B7D9C26906E102F482AB429F377EA905 /* _RXDelegateProxy.h in Headers */ = {isa = PBXBuildFile; fileRef = B60BC18910D8FBBBFB9F4CAB40A6B79C /* _RXDelegateProxy.h */; settings = {ATTRIBUTES = (Public, ); }; }; - BBC770F8487282913B9698E373101EE0 /* ConcurrentDispatchQueueScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 60F321C3FF9B6E97D77AA04FDB718140 /* ConcurrentDispatchQueueScheduler.swift */; }; - BCCCB066F7ED01F74D5D9314F14489CF /* UISearchBar+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 87BB4F97DB69CC52E0FEC218C862D890 /* UISearchBar+Rx.swift */; }; - BCE4679DB5F38737E23D0A1FD373151B /* NSTextView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0112AB5EB24FB05A430BB92034CD56D6 /* NSTextView+Rx.swift */; }; - BD59009A35A4BACEBED325F459C379BB /* AsMaybe.swift in Sources */ = {isa = PBXBuildFile; fileRef = E284F70F8B0E5100DDC0288D8C624EB1 /* AsMaybe.swift */; }; - BD9D0E14EDB86D26E6DF3872C9B51262 /* Pods-RxMarbles-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 8030661F911469BF694D515D1C1FAD13 /* Pods-RxMarbles-dummy.m */; }; - BE233732D336FA48EC2FC38F30546389 /* UIImageView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5CDD6F462B1D1E217536C24EC2C3C198 /* UIImageView+Rx.swift */; }; - BF05A5E9A0C8A21D437A8753199A1C75 /* NotificationCenter+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0CF62317A38FB9CBB7C470BE50F6C0E2 /* NotificationCenter+Rx.swift */; }; - BF21E6C386E0F8AA19BF219BFCB899A7 /* UINavigationController+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 646175F9897EB10A8527F6A1EDFA0257 /* UINavigationController+Rx.swift */; }; - C0726A32451E279C68DC158A9D38C634 /* Completable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 336DD76935D9C53C4D8EAA5F9E86DC83 /* Completable.swift */; }; - C084672BA37CD1168700C1E0B6EF91C6 /* DispatchQueue+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07FDCAD130005F392D6433135D00B685 /* DispatchQueue+Extensions.swift */; }; - C269363FDA309481824F9ECDF05872B3 /* RxCocoaRuntime.h in Headers */ = {isa = PBXBuildFile; fileRef = 672574026D4851425F5061BAE7BD6E96 /* RxCocoaRuntime.h */; settings = {ATTRIBUTES = (Public, ); }; }; - C4F3F412FD75E9C4038736DD193B5DC5 /* ScheduledDisposable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 06220AB464B7B42175813CC49F8A19DA /* ScheduledDisposable.swift */; }; - C6D4B0C9E7BB7C834AE4FBA36A269844 /* DispatchQueueConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = D281694934C33BE668343AC957D89F26 /* DispatchQueueConfiguration.swift */; }; - C82BC53F3934931EEA8977455F528028 /* Zip+Collection.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3EAAF59EBA7C995E5F54BA0470A150D6 /* Zip+Collection.swift */; }; - C8BC1B80095CA0438E5A0592C91E93C2 /* Concat.swift in Sources */ = {isa = PBXBuildFile; fileRef = BAC818DA36375CB7B1AC66228CAFD552 /* Concat.swift */; }; - C8CED70F1AEBEDB19BBBAD787B531C1A /* Errors.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EC36CAE104D86CD8157501E8EB64BF8 /* Errors.swift */; }; - C94CA85AA79A86CDB6410E9F72D9FB15 /* NSImageView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 319F24244D1D3D76156084CDE767F52C /* NSImageView+Rx.swift */; }; - C9D3F5991544C83FEA2CF22831608555 /* UIRefreshControl+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = DFBB9C8550ABFB3D0D46C43ACC712DEA /* UIRefreshControl+Rx.swift */; }; - CA41E3C8B9D0ADBDBFF93423B9EF6CF9 /* Queue.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9A5C9F1F93360140AD8123BBAC2ACBF7 /* Queue.swift */; }; - CDA1E3BA9D60054462A9B6587F1A9956 /* _RXObjCRuntime.m in Sources */ = {isa = PBXBuildFile; fileRef = 0DD45AB2A6EC364DE6724B2DB34F24C2 /* _RXObjCRuntime.m */; }; - CE2272B6EF798514F8AE6B1D42DCB7CC /* UITabBarItem+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF8D8B58603FA8C7690BEA4C0AC96F69 /* UITabBarItem+Rx.swift */; }; - D1B8DB513E4EB9BD00E7088966C71121 /* RxPickerViewDataSourceType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 964E580433D098135AE6AF7268ABE401 /* RxPickerViewDataSourceType.swift */; }; - D1BC85C316BCEE885FC626604901B664 /* Buffer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92FCB48915173EA1E84E118EB81EEC13 /* Buffer.swift */; }; - D236557B16637316D735FDAD0F65934D /* ItemEvents.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0BEC743077AB78F1FA6C3FEFEED1D07 /* ItemEvents.swift */; }; - D41E3D796F62B8B5EDF5A6BB606DFEAE /* Using.swift in Sources */ = {isa = PBXBuildFile; fileRef = C8C9CC7C8A38AA898C767541C21E4674 /* Using.swift */; }; - D4B9184FAC09B6AE25DF5DCF8136C6ED /* SynchronizedDisposeType.swift in Sources */ = {isa = PBXBuildFile; fileRef = DBB3424DC5C6751C36CD23B54D01358F /* SynchronizedDisposeType.swift */; }; - D56486832E57A7B1D553E54681218D01 /* AnonymousObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1808D97070F742AE72A7761C9AABA708 /* AnonymousObserver.swift */; }; - D74AE2542E235F3A3D3FDF20A7970B6D /* AsyncSubject.swift in Sources */ = {isa = PBXBuildFile; fileRef = ACA0FD1D3C8D2D6CD31CC4250AF13F78 /* AsyncSubject.swift */; }; - D816BAFFBDCAE4CDA6CA2802061E905E /* DeprecationWarner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0154CCF68730B76BAFB6850AB1A16EAE /* DeprecationWarner.swift */; }; - D8B69801FB8E89DC5BDFB8EEA02BCC73 /* PriorityQueue.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9879BBDF425E57DEF46AC3A12C2EE1B /* PriorityQueue.swift */; }; - DA0FD7B8736FB494B6BF3DFA23B83D11 /* UIApplication+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = E9092D8BA61F885C6D7E41C3D8C81326 /* UIApplication+Rx.swift */; }; - DAE5724EE915BB9C43CB6ACE6566FAE5 /* Enumerated.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C92DEAF621B9ED5F39EDA1460727F35 /* Enumerated.swift */; }; - DBE2725351A34942E6EDF1D7C242A191 /* Range.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7ACF4DE9797D2E25AE60A7FC71503887 /* Range.swift */; }; - DC0E7CBC4ED86C15380652479BDC7A3D /* UITextField+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83626A82F70A0C11DF715A93D0F4E91B /* UITextField+Rx.swift */; }; - DC73836E2D7FD039FC317992C9F01C95 /* NSObject+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EABB80C24936AC11FC9647790749C1F /* NSObject+Rx.swift */; }; - DE15C7BE84511012CA0E50B59BC217FD /* Signal.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3D49DE4F2765C060F76FC450F81DDD69 /* Signal.swift */; }; - DE19FDB975711088A2722E163CA25069 /* RxNavigationControllerDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EE239A17E6BC69454653085E4A89AB7 /* RxNavigationControllerDelegateProxy.swift */; }; - DEAF3DCF09273227D03D5862C1A7975F /* RefCountDisposable.swift in Sources */ = {isa = PBXBuildFile; fileRef = DFD0789B52105F6EE5397FB08D581642 /* RefCountDisposable.swift */; }; - DF1451985A464DA14974273F8A7C0032 /* RxCocoa-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 06BE10A3B57CAC048B0BC8707F6DC5A6 /* RxCocoa-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - DF2F571280440C56EDD02B9573003A9D /* ObserverType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2231D483F7F0FF1D362ED0470988AF21 /* ObserverType.swift */; }; - E052D5DCE6316232A6BBBA96BF342932 /* KVORepresentable+CoreGraphics.swift in Sources */ = {isa = PBXBuildFile; fileRef = 86C3AA46C36FB94C57FFAE02D4CE2184 /* KVORepresentable+CoreGraphics.swift */; }; - E0AFCEDA55ED40F80FE311A33B3CE3E0 /* DelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6DFF94A48CD3F1F09FB70024C443F31C /* DelegateProxy.swift */; }; - E0F8C6673F4A44E3916863928F072BED /* DefaultIfEmpty.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8F3C781C164CABF4C5D1EC61D6622CCA /* DefaultIfEmpty.swift */; }; - E1A8F34B3D84FF2C8F1AD375857DF67E /* URLSession+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 903EE6B944E1248CFDC309BCE9400B77 /* URLSession+Rx.swift */; }; - E204E3B953B58D79A19833D3EC5871E1 /* NopDisposable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 36EA4B31F646695C07E8E24B01EC8A74 /* NopDisposable.swift */; }; - E3B099D3482204867AA29E1D9916AE3D /* RxTableViewReactiveArrayDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4D9F41B3B6F8D049C2092C7724C4A93C /* RxTableViewReactiveArrayDataSource.swift */; }; - E3C2AC0D963C309AE86D05279B13838F /* RotationAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = A0A507209DC0F96733203ACF556C8F36 /* RotationAnimation.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - E3C8E0501DAB569C089E61CBB9157CE7 /* Animator.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9B917FE4D4E3DCCE1A7627F240DB8F8 /* Animator.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - E47F51502276BB0CDDB662817F29CF8A /* RxScrollViewDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7AEFA8DE0F659B1AD19747F34D588738 /* RxScrollViewDelegateProxy.swift */; }; - E6258C2F0A15956DC676885774ECCFB3 /* ToArray.swift in Sources */ = {isa = PBXBuildFile; fileRef = 188071BD330B47C7DE7A2D694DB9E22B /* ToArray.swift */; }; - E6AE2E272A7255FA820DCB55A2095027 /* CombineLatest+Collection.swift in Sources */ = {isa = PBXBuildFile; fileRef = E236A84BFA064EDA48A5153004CBABF9 /* CombineLatest+Collection.swift */; }; - E72EA5EBE69C57108C5D26ACAA9778EB /* UISwitch+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 35F9EBEF28C0185A9AB54DBCB149626E /* UISwitch+Rx.swift */; }; - E7925AF526BAEB2646E855665384CFF6 /* ImmediateSchedulerType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1452C0246BB4A90187EF61EB8807A4C5 /* ImmediateSchedulerType.swift */; }; - E7F12662E20E8E94DE30260B8F22E6EC /* SerialDisposable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 55267B05B5C4C2C3A4B48C3E9DD2C2B0 /* SerialDisposable.swift */; }; - E87D049A220E961A45698584F30B2E0F /* ObservableType+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = D01AB6AF91C3B1A11157752AC90D6D04 /* ObservableType+Extensions.swift */; }; - E90141E122E740D46D06015C91F5CD6B /* RxPickerViewDataSourceProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = D6FC2CAAFEAD74100C50805AD6B2772A /* RxPickerViewDataSourceProxy.swift */; }; - E9B5CB518869B3BDA056D2E9ED739C78 /* UIActivityIndicatorView+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1937565F7767B276AB6421AB3F102ECA /* UIActivityIndicatorView+Rx.swift */; }; - E9C6BB0971B449660BF25AC2807B920E /* ObservableConvertibleType.swift in Sources */ = {isa = PBXBuildFile; fileRef = C98088E0EFAFD9B83A037163FC661B00 /* ObservableConvertibleType.swift */; }; - E9D659596863B8C8739E1F84B3984FA2 /* RxTableViewDelegateProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 54542C6623304ECEFBBA254945E11FED /* RxTableViewDelegateProxy.swift */; }; - EA7F5A4DCDA1A8A5C19E680E99267CE6 /* BehaviorRelay.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65D1120A26DDAF64F0A88B6E974E20F9 /* BehaviorRelay.swift */; }; - EB123699B03807324F75F8E0E4322ACC /* Driver.swift in Sources */ = {isa = PBXBuildFile; fileRef = 442041F330974213D1C38937D9219837 /* Driver.swift */; }; - EC9B91457CA7E8E49393E930946E5B67 /* Optional.swift in Sources */ = {isa = PBXBuildFile; fileRef = B3FA3F7A113994EEAE5D4B01FFC15115 /* Optional.swift */; }; - EDE1496447B5646A464AC1C954F38F57 /* ControlEvent+Driver.swift in Sources */ = {isa = PBXBuildFile; fileRef = F587009CBA6861414A9EDE262ADF049C /* ControlEvent+Driver.swift */; }; - EE68B0DF4CB1CAE539E2D1B238AE812D /* SchedulerType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F80AD9CE513BFAB38B5587185CFE681 /* SchedulerType.swift */; }; - EE9F71B3DFEE851EF7D404EE47D92D35 /* Device-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 7D883038B0BD4E2FA5E6EC9A79B5F3B8 /* Device-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - EF7D763DB2FCC944DBDB27E315A4F54A /* Animatable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEFA4FE79D3B86A2428E4889BDBA7C28 /* Animatable.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - F01F3D828BFFDE75B63B594474AB46A2 /* RecursiveLock.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2D85565EBE97493197C9F92A8CD89EF7 /* RecursiveLock.swift */; }; - F092C69264A5B3539B312464B523D4DA /* RxAtomic-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 6BEFC8CC3E364CF0434BEEC8B8705ED1 /* RxAtomic-dummy.m */; }; - F445F168C1FE2F47E1AC4E783ACE2B32 /* DelegateProxyType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 22A489B9AB8A5DBFA353A01FF8C8A01F /* DelegateProxyType.swift */; }; - F5100E6DDEBB613B3D6F24A9D7F009B6 /* Interpolatable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 031552DA9252D395A26E1278661DF165 /* Interpolatable.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - F966A74EBC622357CC8CE9AF60CB8B45 /* DeprecationWarner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00CD8AD24E5CBC9BB980881E633B6877 /* DeprecationWarner.swift */; }; - FB5E83CB28DF6D736ED502D31A4771E0 /* PublishRelay+Signal.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3969E8118539E8B39A43E3EC98A5AB9B /* PublishRelay+Signal.swift */; }; - FD09A8DE6E2CFF4DEE5792F1835A26A1 /* CubicBezier.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13629AE581CB1D694C844CDE46848A17 /* CubicBezier.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; - FD44973662475DD2E7577D9B74EB5F16 /* Amb.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5443E9ACEEAA26C48EBEB7FBFC5A0508 /* Amb.swift */; }; - FE694D24A7601B3113C148A30DBEC094 /* Bag.swift in Sources */ = {isa = PBXBuildFile; fileRef = 041654355F73C56A9846BCE924973D4D /* Bag.swift */; }; - FE8942A3775545AB205A6589F7B9F01B /* Merge.swift in Sources */ = {isa = PBXBuildFile; fileRef = B3B54231752821F01AC27A3F7171CBC5 /* Merge.swift */; }; - FECEE1A6D1817189C1EB10F4851E83A6 /* Materialize.swift in Sources */ = {isa = PBXBuildFile; fileRef = AF3BFA798C76323C8321E95B3B8AA8A5 /* Materialize.swift */; }; - FED3C410E41D090783F8E7C8885E454F /* RecursiveScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = AF39289A005DCE3C02CC65722865636F /* RecursiveScheduler.swift */; }; - FFB2FB52D6DBF3B38E6F806070EA13E9 /* LabelTextColorAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B66BEEAE8BCCBE2427DD828F311C2CE /* LabelTextColorAnimation.swift */; settings = {COMPILER_FLAGS = "-fmodules"; }; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 205AC11F322B533D695C7879BD731C06 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = BCF6D3EE963C187778AD383FCAF7F509; - remoteInfo = RxSwift; - }; - 46CCCE3246D72019EC69CF13B3E702D3 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = ABA9A411BB5A359862E5F1AA6238278E; - remoteInfo = Crashlytics; - }; - 68C315137D504C523A8BF1306E44185F /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 165E505CDDBAE0DD59C2BA848C3F9CE5; - remoteInfo = RxAtomic; - }; - ADA1FCA3ED37199A2A992F6D8F5A0DD8 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = D35E9EC86D36A4C8BC1704199FDB3552; - remoteInfo = Fabric; - }; - D465047540D12FD9D95291AE82A76DB9 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = D35E9EC86D36A4C8BC1704199FDB3552; - remoteInfo = Fabric; - }; - D6A0FBFEAFEEA5F288A6AACB3E56B539 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = BCF6D3EE963C187778AD383FCAF7F509; - remoteInfo = RxSwift; - }; - E1CDCCA35E3A26E7C5438871C5795D26 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 300B49FE225AB2C832961F10F7BFBC05; - remoteInfo = Device; - }; - EBF766FAFA098124B452C9BF83179EF6 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 165E505CDDBAE0DD59C2BA848C3F9CE5; - remoteInfo = RxAtomic; - }; - F00EEED9F5389179867EE4EA5C493EDE /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 11DAE99304EBBD9730EEFE17217F05A6; - remoteInfo = RxCocoa; - }; - FE98DE3101160E0AE7C8C415B480DE13 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 4DE8BB30584186A121C8E4FB166B454F; - remoteInfo = RazzleDazzle; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 005BC714A4F6FA7D28179FB87D3665AB /* AtomicInt.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AtomicInt.swift; path = Platform/AtomicInt.swift; sourceTree = ""; }; - 00CD8AD24E5CBC9BB980881E633B6877 /* DeprecationWarner.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DeprecationWarner.swift; path = Platform/DeprecationWarner.swift; sourceTree = ""; }; - 0112AB5EB24FB05A430BB92034CD56D6 /* NSTextView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSTextView+Rx.swift"; path = "RxCocoa/macOS/NSTextView+Rx.swift"; sourceTree = ""; }; - 0154CCF68730B76BAFB6850AB1A16EAE /* DeprecationWarner.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DeprecationWarner.swift; path = Platform/DeprecationWarner.swift; sourceTree = ""; }; - 0165C357B543182C7473B2A94C940515 /* RazzleDazzle-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "RazzleDazzle-Info.plist"; sourceTree = ""; }; - 027C6BF63045E5D286A4A1ABEC4D9A6C /* ReplaySubject.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ReplaySubject.swift; path = RxSwift/Subjects/ReplaySubject.swift; sourceTree = ""; }; - 0283FBF8B2B9371A5BCB81A9B1B211A8 /* DistinctUntilChanged.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DistinctUntilChanged.swift; path = RxSwift/Observables/DistinctUntilChanged.swift; sourceTree = ""; }; - 02E2D6CE20378188930B3574994B9189 /* SchedulerServices+Emulation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "SchedulerServices+Emulation.swift"; path = "RxSwift/Schedulers/SchedulerServices+Emulation.swift"; sourceTree = ""; }; - 030EC1A40BEF287DF8AAE535E0AFE3FF /* SynchronizedUnsubscribeType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SynchronizedUnsubscribeType.swift; path = RxSwift/Concurrency/SynchronizedUnsubscribeType.swift; sourceTree = ""; }; - 031552DA9252D395A26E1278661DF165 /* Interpolatable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Interpolatable.swift; path = Source/Interpolatable.swift; sourceTree = ""; }; - 033D96F8CB184B7FCD248A8A3167DF86 /* SubscribeOn.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SubscribeOn.swift; path = RxSwift/Observables/SubscribeOn.swift; sourceTree = ""; }; - 0388BAC18257BA89D87C3B142D2AAE0F /* RxAtomic.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = RxAtomic.modulemap; sourceTree = ""; }; - 0392C0FE496E6F52B6816874E8B1D305 /* TakeUntil.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = TakeUntil.swift; path = RxSwift/Observables/TakeUntil.swift; sourceTree = ""; }; - 041654355F73C56A9846BCE924973D4D /* Bag.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Bag.swift; path = Platform/DataStructures/Bag.swift; sourceTree = ""; }; - 06220AB464B7B42175813CC49F8A19DA /* ScheduledDisposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ScheduledDisposable.swift; path = RxSwift/Disposables/ScheduledDisposable.swift; sourceTree = ""; }; - 06BE10A3B57CAC048B0BC8707F6DC5A6 /* RxCocoa-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxCocoa-umbrella.h"; sourceTree = ""; }; - 072B136D8275D4D676925AC5268371E8 /* RxCollectionViewReactiveArrayDataSource.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxCollectionViewReactiveArrayDataSource.swift; path = RxCocoa/iOS/DataSources/RxCollectionViewReactiveArrayDataSource.swift; sourceTree = ""; }; - 074E9C3246D72A5F977D2618EC7FA9D3 /* RxPickerViewDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxPickerViewDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxPickerViewDelegateProxy.swift; sourceTree = ""; }; - 07FDCAD130005F392D6433135D00B685 /* DispatchQueue+Extensions.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "DispatchQueue+Extensions.swift"; path = "Platform/DispatchQueue+Extensions.swift"; sourceTree = ""; }; - 08BBA0DA0EE48981B23D31C214141E3A /* Disposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Disposable.swift; path = RxSwift/Disposable.swift; sourceTree = ""; }; - 09465A5DB43A878555E01C9DF2CB7A74 /* RxPickerViewAdapter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxPickerViewAdapter.swift; path = RxCocoa/iOS/DataSources/RxPickerViewAdapter.swift; sourceTree = ""; }; - 0A77C15E443A69F472B32837BD5A8B6A /* MainScheduler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = MainScheduler.swift; path = RxSwift/Schedulers/MainScheduler.swift; sourceTree = ""; }; - 0AAAA5FAE2DB57DF06B7BFE5F37B19D6 /* Device.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = Device.modulemap; sourceTree = ""; }; - 0C2D61AD3F450BEA15A909C467FAB74D /* Timer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Timer.swift; path = RxSwift/Observables/Timer.swift; sourceTree = ""; }; - 0C35335E2B2D45FE20C4DD87C6F815C6 /* ObservableConvertibleType+Driver.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ObservableConvertibleType+Driver.swift"; path = "RxCocoa/Traits/Driver/ObservableConvertibleType+Driver.swift"; sourceTree = ""; }; - 0C39E99C74BADFE018AD1071AC449F29 /* Device-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Device-dummy.m"; sourceTree = ""; }; - 0C4805EAD11879770A7793E8C208FDC3 /* WithLatestFrom.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = WithLatestFrom.swift; path = RxSwift/Observables/WithLatestFrom.swift; sourceTree = ""; }; - 0C52E3B7C56E39082F21FA19CC8537EC /* UITableView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UITableView+Rx.swift"; path = "RxCocoa/iOS/UITableView+Rx.swift"; sourceTree = ""; }; - 0CF62317A38FB9CBB7C470BE50F6C0E2 /* NotificationCenter+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NotificationCenter+Rx.swift"; path = "RxCocoa/Foundation/NotificationCenter+Rx.swift"; sourceTree = ""; }; - 0D7A46CBBC5A521C332FA34A5F797818 /* Pods-RxMarbles-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-RxMarbles-frameworks.sh"; sourceTree = ""; }; - 0DD45AB2A6EC364DE6724B2DB34F24C2 /* _RXObjCRuntime.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = _RXObjCRuntime.m; path = RxCocoa/Runtime/_RXObjCRuntime.m; sourceTree = ""; }; - 0DE8882B66B95CF40750CD350847E522 /* Platform.Linux.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Platform.Linux.swift; path = Platform/Platform.Linux.swift; sourceTree = ""; }; - 0E1A4C952A04A0384A6407D303300F41 /* Pods-RxMarbles.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-RxMarbles.release.xcconfig"; sourceTree = ""; }; - 101E3492F87C0EAC7EAB3146EC7DCCFD /* CLSReport.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = CLSReport.h; path = iOS/Crashlytics.framework/Headers/CLSReport.h; sourceTree = ""; }; - 1067BEDB5889799D7D2ADED5AB8E43E7 /* Never.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Never.swift; path = RxSwift/Observables/Never.swift; sourceTree = ""; }; - 1136EDF905D639E6B90F1D6058946C77 /* EasingFunction.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = EasingFunction.swift; path = Source/EasingFunction.swift; sourceTree = ""; }; - 118E6E14635ADEDC33022ABBF37901F7 /* PrimitiveSequence+Zip+arity.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "PrimitiveSequence+Zip+arity.swift"; path = "RxSwift/Traits/PrimitiveSequence+Zip+arity.swift"; sourceTree = ""; }; - 11A35D78E7049333407692A6BC0B55BC /* RazzleDazzle.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = RazzleDazzle.h; path = Source/RazzleDazzle.h; sourceTree = ""; }; - 13100EE9423FCCCCEA2DC6CA49805728 /* First.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = First.swift; path = RxSwift/Observables/First.swift; sourceTree = ""; }; - 13629AE581CB1D694C844CDE46848A17 /* CubicBezier.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CubicBezier.swift; path = Source/CubicBezier.swift; sourceTree = ""; }; - 1416835114B99651ED5A54DDA449B7B7 /* NSControl+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSControl+Rx.swift"; path = "RxCocoa/macOS/NSControl+Rx.swift"; sourceTree = ""; }; - 1452C0246BB4A90187EF61EB8807A4C5 /* ImmediateSchedulerType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ImmediateSchedulerType.swift; path = RxSwift/ImmediateSchedulerType.swift; sourceTree = ""; }; - 14629E7FDBD22844F834FA2E43818D59 /* Create.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Create.swift; path = RxSwift/Observables/Create.swift; sourceTree = ""; }; - 17584F332FDCF7C029C149E24C3DB32A /* AnimatedPagingScrollViewController.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AnimatedPagingScrollViewController.swift; path = Source/AnimatedPagingScrollViewController.swift; sourceTree = ""; }; - 1808D97070F742AE72A7761C9AABA708 /* AnonymousObserver.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AnonymousObserver.swift; path = RxSwift/Observers/AnonymousObserver.swift; sourceTree = ""; }; - 182AE135DCC5EE3459F153CBC34D714A /* CombineLatest+arity.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "CombineLatest+arity.swift"; path = "RxSwift/Observables/CombineLatest+arity.swift"; sourceTree = ""; }; - 188071BD330B47C7DE7A2D694DB9E22B /* ToArray.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ToArray.swift; path = RxSwift/Observables/ToArray.swift; sourceTree = ""; }; - 1937565F7767B276AB6421AB3F102ECA /* UIActivityIndicatorView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIActivityIndicatorView+Rx.swift"; path = "RxCocoa/iOS/UIActivityIndicatorView+Rx.swift"; sourceTree = ""; }; - 196701C893FDDCA102DB4D29D25E5E23 /* RecursiveLock.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RecursiveLock.swift; path = Platform/RecursiveLock.swift; sourceTree = ""; }; - 199C6EDE975DC5011935E4ACCBE3EDC9 /* DisposeBase.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DisposeBase.swift; path = RxSwift/Disposables/DisposeBase.swift; sourceTree = ""; }; - 1A306300795CBBBCA6CA91CE3A6845BD /* RxTableViewDataSourceType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxTableViewDataSourceType.swift; path = RxCocoa/iOS/Protocols/RxTableViewDataSourceType.swift; sourceTree = ""; }; - 1BE9B28F05C2938E3DE46CE07CB230A6 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; - 1C5FC9527F0BBB4956C6FE63A7881E90 /* RxTarget.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxTarget.swift; path = RxCocoa/Common/RxTarget.swift; sourceTree = ""; }; - 1CA882AD004F24BEBBBB5271DCDD1941 /* UIButton+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIButton+Rx.swift"; path = "RxCocoa/iOS/UIButton+Rx.swift"; sourceTree = ""; }; - 1EC36CAE104D86CD8157501E8EB64BF8 /* Errors.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Errors.swift; path = RxSwift/Errors.swift; sourceTree = ""; }; - 1EE239A17E6BC69454653085E4A89AB7 /* RxNavigationControllerDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxNavigationControllerDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxNavigationControllerDelegateProxy.swift; sourceTree = ""; }; - 1F4728998851493EDD309A9DA57DE57C /* SkipWhile.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SkipWhile.swift; path = RxSwift/Observables/SkipWhile.swift; sourceTree = ""; }; - 2039CF588DE894B82AAD543648C47718 /* LayerStrokeEndAnimation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = LayerStrokeEndAnimation.swift; path = Source/LayerStrokeEndAnimation.swift; sourceTree = ""; }; - 20DE32C24D473BB4FC6E61DC65DF3839 /* _RXKVOObserver.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = _RXKVOObserver.m; path = RxCocoa/Runtime/_RXKVOObserver.m; sourceTree = ""; }; - 210E83450526D7112A3C88C88896A0E9 /* RxSwift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RxSwift.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 2231D483F7F0FF1D362ED0470988AF21 /* ObserverType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ObserverType.swift; path = RxSwift/ObserverType.swift; sourceTree = ""; }; - 22A489B9AB8A5DBFA353A01FF8C8A01F /* DelegateProxyType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DelegateProxyType.swift; path = RxCocoa/Common/DelegateProxyType.swift; sourceTree = ""; }; - 22A9FD8063B1D9D111691983AF13CEA3 /* RxAtomic.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RxAtomic.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 233AD7AFD9931A4CD1D15F2D3A876D86 /* Size.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Size.swift; path = Source/Size.swift; sourceTree = ""; }; - 2395D732095EBF2530576D082BC9A074 /* PublishRelay.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PublishRelay.swift; path = RxCocoa/Traits/PublishRelay.swift; sourceTree = ""; }; - 2524DE69A80DACE4B4D8B20D0AAC997A /* ConnectableObservableType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConnectableObservableType.swift; path = RxSwift/ConnectableObservableType.swift; sourceTree = ""; }; - 2824479CAD832ACE51CC3C538F936342 /* Platform.Linux.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Platform.Linux.swift; path = Platform/Platform.Linux.swift; sourceTree = ""; }; - 2952EA37A6BF7A10777DF0E0E7455017 /* UILabel+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UILabel+Rx.swift"; path = "RxCocoa/iOS/UILabel+Rx.swift"; sourceTree = ""; }; - 2B235072D0BF63277C71D57AFA1F30CB /* Answers.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = Answers.h; path = iOS/Crashlytics.framework/Headers/Answers.h; sourceTree = ""; }; - 2D85565EBE97493197C9F92A8CD89EF7 /* RecursiveLock.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RecursiveLock.swift; path = Platform/RecursiveLock.swift; sourceTree = ""; }; - 2DB470D6354EB4EA25A62201E1C77C8A /* GroupedObservable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = GroupedObservable.swift; path = RxSwift/GroupedObservable.swift; sourceTree = ""; }; - 2E302224222610254BE5697C06906C92 /* RxSearchControllerDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxSearchControllerDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxSearchControllerDelegateProxy.swift; sourceTree = ""; }; - 2F275F59E22257AA787BFAC6C9EDC914 /* PublishSubject.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PublishSubject.swift; path = RxSwift/Subjects/PublishSubject.swift; sourceTree = ""; }; - 2F4C762DAEB7107750438AEFC5220505 /* RxAtomic-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxAtomic-prefix.pch"; sourceTree = ""; }; - 2FB52552197EFC9D6F84479A406693F4 /* ScaleAnimation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ScaleAnimation.swift; path = Source/ScaleAnimation.swift; sourceTree = ""; }; - 3132DE9CF645E9408F34E258B3AA5E00 /* RxAtomic.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = RxAtomic.h; path = RxAtomic/include/RxAtomic.h; sourceTree = ""; }; - 317854D44B181431DE7850F6A696822D /* RxSwift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RxSwift.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 319F24244D1D3D76156084CDE767F52C /* NSImageView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSImageView+Rx.swift"; path = "RxCocoa/macOS/NSImageView+Rx.swift"; sourceTree = ""; }; - 336DD76935D9C53C4D8EAA5F9E86DC83 /* Completable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Completable.swift; path = RxSwift/Traits/Completable.swift; sourceTree = ""; }; - 348E1CEBFB5FE626B70502FD61E735C0 /* SkipUntil.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SkipUntil.swift; path = RxSwift/Observables/SkipUntil.swift; sourceTree = ""; }; - 35902AC8B9F608B8A53718A71C95921D /* ObserverBase.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ObserverBase.swift; path = RxSwift/Observers/ObserverBase.swift; sourceTree = ""; }; - 35F9EBEF28C0185A9AB54DBCB149626E /* UISwitch+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UISwitch+Rx.swift"; path = "RxCocoa/iOS/UISwitch+Rx.swift"; sourceTree = ""; }; - 36EA4B31F646695C07E8E24B01EC8A74 /* NopDisposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = NopDisposable.swift; path = RxSwift/Disposables/NopDisposable.swift; sourceTree = ""; }; - 3777A66226885A1FF9D6A2D5220FBFD0 /* _RXObjCRuntime.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = _RXObjCRuntime.h; path = RxCocoa/Runtime/include/_RXObjCRuntime.h; sourceTree = ""; }; - 37ADE74943E691FA5B93F15F902159FD /* _RX.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = _RX.m; path = RxCocoa/Runtime/_RX.m; sourceTree = ""; }; - 3969E8118539E8B39A43E3EC98A5AB9B /* PublishRelay+Signal.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "PublishRelay+Signal.swift"; path = "RxCocoa/Traits/Signal/PublishRelay+Signal.swift"; sourceTree = ""; }; - 3A7DFE373249F55475E0A73895EF60BC /* Just.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Just.swift; path = RxSwift/Observables/Just.swift; sourceTree = ""; }; - 3D49DE4F2765C060F76FC450F81DDD69 /* Signal.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Signal.swift; path = RxCocoa/Traits/Signal/Signal.swift; sourceTree = ""; }; - 3DD4440A313C1549571DFFD90CC80816 /* Type.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Type.swift; path = Source/Type.swift; sourceTree = ""; }; - 3EAAF59EBA7C995E5F54BA0470A150D6 /* Zip+Collection.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Zip+Collection.swift"; path = "RxSwift/Observables/Zip+Collection.swift"; sourceTree = ""; }; - 3F6D33E35C36F4F299D99F59CBB37C4C /* Fabric.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = Fabric.h; path = iOS/Fabric.framework/Headers/Fabric.h; sourceTree = ""; }; - 3FBE1694691597B4989A788E46E9E269 /* ScheduledItemType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ScheduledItemType.swift; path = RxSwift/Schedulers/Internal/ScheduledItemType.swift; sourceTree = ""; }; - 40893D141453378E88C67E887D1349DD /* NSButton+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSButton+Rx.swift"; path = "RxCocoa/macOS/NSButton+Rx.swift"; sourceTree = ""; }; - 41D0AA5B1C32E9636D06444DE10D7ABB /* ControlTarget.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ControlTarget.swift; path = RxCocoa/Common/ControlTarget.swift; sourceTree = ""; }; - 42B2AA401AAD75F82272C1C07CCB2044 /* Skip.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Skip.swift; path = RxSwift/Observables/Skip.swift; sourceTree = ""; }; - 42F919DD1C33EF5B2F68662A9334E533 /* VirtualTimeConverterType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = VirtualTimeConverterType.swift; path = RxSwift/Schedulers/VirtualTimeConverterType.swift; sourceTree = ""; }; - 43A6BB1E01CC5C310AADDAF8FBA142B1 /* RxCocoa.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RxCocoa.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 442041F330974213D1C38937D9219837 /* Driver.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Driver.swift; path = RxCocoa/Traits/Driver/Driver.swift; sourceTree = ""; }; - 44EE0F1D3B0D253A8E659566E961E4B0 /* InfiniteSequence.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = InfiniteSequence.swift; path = Platform/DataStructures/InfiniteSequence.swift; sourceTree = ""; }; - 458F088F3D0343F6CEBF99AC12597AD7 /* Device-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Device-prefix.pch"; sourceTree = ""; }; - 46857D4DE63DB7FC73DF4C7CEA1E40BC /* AddRef.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AddRef.swift; path = RxSwift/Observables/AddRef.swift; sourceTree = ""; }; - 46A65ADC9BF0E1238E17A1E35D268CCE /* Fabric.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Fabric.xcconfig; sourceTree = ""; }; - 46E805276E5D0BEF8B0F6B2D9C008322 /* BackgroundColorAnimation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BackgroundColorAnimation.swift; path = Source/BackgroundColorAnimation.swift; sourceTree = ""; }; - 471D0B2B4624AF2AB271689EB877543F /* NSObject+Rx+RawRepresentable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSObject+Rx+RawRepresentable.swift"; path = "RxCocoa/Foundation/NSObject+Rx+RawRepresentable.swift"; sourceTree = ""; }; - 4970F2DCF9C5BFF9F8238645AFEB8106 /* LayerStrokeStartAnimation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = LayerStrokeStartAnimation.swift; path = Source/LayerStrokeStartAnimation.swift; sourceTree = ""; }; - 4A761F73E5D5A6818383F8C40B17D36C /* UIGestureRecognizer+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIGestureRecognizer+Rx.swift"; path = "RxCocoa/iOS/UIGestureRecognizer+Rx.swift"; sourceTree = ""; }; - 4C92DEAF621B9ED5F39EDA1460727F35 /* Enumerated.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Enumerated.swift; path = RxSwift/Observables/Enumerated.swift; sourceTree = ""; }; - 4CE6D1C2977823FDDB8B0DD5817A0B9D /* RxTableViewDataSourceProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxTableViewDataSourceProxy.swift; path = RxCocoa/iOS/Proxies/RxTableViewDataSourceProxy.swift; sourceTree = ""; }; - 4D9F41B3B6F8D049C2092C7724C4A93C /* RxTableViewReactiveArrayDataSource.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxTableViewReactiveArrayDataSource.swift; path = RxCocoa/iOS/DataSources/RxTableViewReactiveArrayDataSource.swift; sourceTree = ""; }; - 4DD5E15541C089FFC26195E13519E1C4 /* TakeLast.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = TakeLast.swift; path = RxSwift/Observables/TakeLast.swift; sourceTree = ""; }; - 4E4DBFFA151F3ADA53C06525236E7F32 /* AnyObserver.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AnyObserver.swift; path = RxSwift/AnyObserver.swift; sourceTree = ""; }; - 4E57DA91E276839E3DB9A0514E962FBA /* RxCocoaObjCRuntimeError+Extensions.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "RxCocoaObjCRuntimeError+Extensions.swift"; path = "RxCocoa/Common/RxCocoaObjCRuntimeError+Extensions.swift"; sourceTree = ""; }; - 4E5C1A9C5AAC15AE2BEE126F18660F25 /* UISegmentedControl+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UISegmentedControl+Rx.swift"; path = "RxCocoa/iOS/UISegmentedControl+Rx.swift"; sourceTree = ""; }; - 4E66CD4C819857BB60B83107EBA7BFD3 /* OperationQueueScheduler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = OperationQueueScheduler.swift; path = RxSwift/Schedulers/OperationQueueScheduler.swift; sourceTree = ""; }; - 4F30CD1DBC7C373591A6FBD48221EF36 /* InvocableScheduledItem.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = InvocableScheduledItem.swift; path = RxSwift/Schedulers/Internal/InvocableScheduledItem.swift; sourceTree = ""; }; - 5044F52B5D04A814087B30A1381BBD60 /* _RX.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = _RX.h; path = RxCocoa/Runtime/include/_RX.h; sourceTree = ""; }; - 513D1E6C60C45083F34FAB956BB8B5D0 /* CLSAttributes.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = CLSAttributes.h; path = iOS/Crashlytics.framework/Headers/CLSAttributes.h; sourceTree = ""; }; - 52FE60501AAE1A7B3916373D64B2EC97 /* Pods-RxMarbles.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-RxMarbles.debug.xcconfig"; sourceTree = ""; }; - 537471E3A6F10E472074357C787EAF58 /* HistoricalSchedulerTimeConverter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = HistoricalSchedulerTimeConverter.swift; path = RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift; sourceTree = ""; }; - 5443E9ACEEAA26C48EBEB7FBFC5A0508 /* Amb.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Amb.swift; path = RxSwift/Observables/Amb.swift; sourceTree = ""; }; - 54542C6623304ECEFBBA254945E11FED /* RxTableViewDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxTableViewDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxTableViewDelegateProxy.swift; sourceTree = ""; }; - 54BC1A142E15EBB9A72F508703E8E5C8 /* NSObject+Rx+KVORepresentable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSObject+Rx+KVORepresentable.swift"; path = "RxCocoa/Foundation/NSObject+Rx+KVORepresentable.swift"; sourceTree = ""; }; - 54E1D22374FC0337074F26C49AC24D75 /* CLSStackFrame.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = CLSStackFrame.h; path = iOS/Crashlytics.framework/Headers/CLSStackFrame.h; sourceTree = ""; }; - 55267B05B5C4C2C3A4B48C3E9DD2C2B0 /* SerialDisposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SerialDisposable.swift; path = RxSwift/Disposables/SerialDisposable.swift; sourceTree = ""; }; - 56ACB4FCD4784DF482B6F51EC2162610 /* SwitchIfEmpty.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SwitchIfEmpty.swift; path = RxSwift/Observables/SwitchIfEmpty.swift; sourceTree = ""; }; - 57A65C4D3AE3B332B5321D9DCC6D1792 /* KVORepresentable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = KVORepresentable.swift; path = RxCocoa/Foundation/KVORepresentable.swift; sourceTree = ""; }; - 57EC94400CB9230C637283FA6726004E /* KeyPathBinder.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = KeyPathBinder.swift; path = RxCocoa/Common/KeyPathBinder.swift; sourceTree = ""; }; - 5AAF7274B2E78E6313939B8C08437DAB /* ShareReplayScope.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ShareReplayScope.swift; path = RxSwift/Observables/ShareReplayScope.swift; sourceTree = ""; }; - 5CDD6F462B1D1E217536C24EC2C3C198 /* UIImageView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIImageView+Rx.swift"; path = "RxCocoa/iOS/UIImageView+Rx.swift"; sourceTree = ""; }; - 5E0718722A5BD4C9775BC4004CFD5CE8 /* String+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "String+Rx.swift"; path = "RxSwift/Extensions/String+Rx.swift"; sourceTree = ""; }; - 5E9B9DAD3DB6D6241BF23D03C4D28C23 /* CombineLatest.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CombineLatest.swift; path = RxSwift/Observables/CombineLatest.swift; sourceTree = ""; }; - 5EABB80C24936AC11FC9647790749C1F /* NSObject+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSObject+Rx.swift"; path = "RxCocoa/Foundation/NSObject+Rx.swift"; sourceTree = ""; }; - 5EDC40850064057CB51790E198A5AE87 /* RxTabBarDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxTabBarDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxTabBarDelegateProxy.swift; sourceTree = ""; }; - 5F516CC40A72A8E271549C9A708DE717 /* Do.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Do.swift; path = RxSwift/Observables/Do.swift; sourceTree = ""; }; - 5F64D79EBC0BB27701A8D9F031DE5E7E /* SectionedViewDataSourceType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SectionedViewDataSourceType.swift; path = RxCocoa/Common/SectionedViewDataSourceType.swift; sourceTree = ""; }; - 5F8E0DF5F174AA2F4354DF9A12B7866C /* 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 = ""; }; - 5FA6CF686DD0DC0AA064346A54EC2133 /* UITextView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UITextView+Rx.swift"; path = "RxCocoa/iOS/UITextView+Rx.swift"; sourceTree = ""; }; - 5FB6FFEFE03BDE3296279D1999EB385E /* Sink.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Sink.swift; path = RxSwift/Observables/Sink.swift; sourceTree = ""; }; - 60DB8601259BF6D13E2BDE1E385CD072 /* Filter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Filter.swift; path = RxSwift/Observables/Filter.swift; sourceTree = ""; }; - 60F321C3FF9B6E97D77AA04FDB718140 /* ConcurrentDispatchQueueScheduler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConcurrentDispatchQueueScheduler.swift; path = RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift; sourceTree = ""; }; - 6190125FD9C7F9D729DA119E455A5CCE /* NSTextField+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSTextField+Rx.swift"; path = "RxCocoa/macOS/NSTextField+Rx.swift"; sourceTree = ""; }; - 627AD7B9292214390F0716DBACB6A1C5 /* Debounce.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Debounce.swift; path = RxSwift/Observables/Debounce.swift; sourceTree = ""; }; - 6461322BF366BC4E11DD6096CC11F40F /* RxCollectionViewDataSourcePrefetchingProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxCollectionViewDataSourcePrefetchingProxy.swift; path = RxCocoa/iOS/Proxies/RxCollectionViewDataSourcePrefetchingProxy.swift; sourceTree = ""; }; - 646175F9897EB10A8527F6A1EDFA0257 /* UINavigationController+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UINavigationController+Rx.swift"; path = "RxCocoa/iOS/UINavigationController+Rx.swift"; sourceTree = ""; }; - 65320A7EF8EF0E1650170C84EC00EA6B /* RxTabBarControllerDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxTabBarControllerDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxTabBarControllerDelegateProxy.swift; sourceTree = ""; }; - 65D1120A26DDAF64F0A88B6E974E20F9 /* BehaviorRelay.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BehaviorRelay.swift; path = RxCocoa/Traits/BehaviorRelay.swift; sourceTree = ""; }; - 672574026D4851425F5061BAE7BD6E96 /* RxCocoaRuntime.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = RxCocoaRuntime.h; path = RxCocoa/Runtime/include/RxCocoaRuntime.h; sourceTree = ""; }; - 6767A2CA4CF780848BBC0D3386C21026 /* RxAtomic.c */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.c; name = RxAtomic.c; path = RxAtomic/RxAtomic.c; sourceTree = ""; }; - 6784DF839AF5D9E730B38AE391C51C07 /* CurrentThreadScheduler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CurrentThreadScheduler.swift; path = RxSwift/Schedulers/CurrentThreadScheduler.swift; sourceTree = ""; }; - 688B13A755DC49065B2A7D988B091FDF /* Reduce.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Reduce.swift; path = RxSwift/Observables/Reduce.swift; sourceTree = ""; }; - 6B375FE0493D78218B36A26C830CDFEA /* Catch.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Catch.swift; path = RxSwift/Observables/Catch.swift; sourceTree = ""; }; - 6BEFC8CC3E364CF0434BEEC8B8705ED1 /* RxAtomic-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "RxAtomic-dummy.m"; sourceTree = ""; }; - 6CE50CE5D6C77F37A1897C65CB63441B /* UIPageControl+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIPageControl+Rx.swift"; path = "RxCocoa/iOS/UIPageControl+Rx.swift"; sourceTree = ""; }; - 6DBDDDF41DA221A01D285E20A6ED822C /* Timeout.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Timeout.swift; path = RxSwift/Observables/Timeout.swift; sourceTree = ""; }; - 6DFF94A48CD3F1F09FB70024C443F31C /* DelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DelegateProxy.swift; path = RxCocoa/Common/DelegateProxy.swift; sourceTree = ""; }; - 6FAC6954B88485F9B361380F3DAD76FA /* RxSwift-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "RxSwift-dummy.m"; sourceTree = ""; }; - 70F836C066E7AD472093EB46F624AD23 /* RxSwift.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = RxSwift.xcconfig; sourceTree = ""; }; - 714FEE3E7137A3D6B06B083F4298CB33 /* ControlProperty.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ControlProperty.swift; path = RxCocoa/Traits/ControlProperty.swift; sourceTree = ""; }; - 71C38CCFE21232E4F4BA7A0D9A058368 /* KVORepresentable+Swift.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "KVORepresentable+Swift.swift"; path = "RxCocoa/Foundation/KVORepresentable+Swift.swift"; sourceTree = ""; }; - 7260CCA1F5DB3D3557506A93A6ED3E6E /* UIViewController+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIViewController+Rx.swift"; path = "RxCocoa/iOS/UIViewController+Rx.swift"; sourceTree = ""; }; - 72B23EDE3937A355A7BDB3443711E394 /* Bag.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Bag.swift; path = Platform/DataStructures/Bag.swift; sourceTree = ""; }; - 731C309602E931A02B76AF007544B15E /* LayerStrokeColorAnimation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = LayerStrokeColorAnimation.swift; path = Source/LayerStrokeColorAnimation.swift; sourceTree = ""; }; - 7340427056BDED84C2252861F6B9EABC /* RxAtomic.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = RxAtomic.xcconfig; sourceTree = ""; }; - 73B3EDAB4CE8DBC95389257B864F91CA /* RazzleDazzle.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = RazzleDazzle.xcconfig; sourceTree = ""; }; - 73E1D31669E7A29337CFDA5E00C38AF9 /* TailRecursiveSink.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = TailRecursiveSink.swift; path = RxSwift/Observers/TailRecursiveSink.swift; sourceTree = ""; }; - 748752B7F7538CBD597AD7A5638352DB /* ObservableConvertibleType+Signal.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ObservableConvertibleType+Signal.swift"; path = "RxCocoa/Traits/Signal/ObservableConvertibleType+Signal.swift"; sourceTree = ""; }; - 74C46F1B3D823290F9C6EF24D6D8DBB4 /* RxCocoa-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "RxCocoa-Info.plist"; sourceTree = ""; }; - 755AE0F416B9B035C99E3EA06F84EC11 /* PriorityQueue.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PriorityQueue.swift; path = Platform/DataStructures/PriorityQueue.swift; sourceTree = ""; }; - 76305C79124B58CFC751BD88347319AB /* ConstraintMultiplierAnimation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintMultiplierAnimation.swift; path = Source/ConstraintMultiplierAnimation.swift; sourceTree = ""; }; - 7637CFDDD1CF6C009627F4EF662FDA92 /* Observable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Observable.swift; path = RxSwift/Observable.swift; sourceTree = ""; }; - 7776001B59529886F3351D8712307B64 /* NSLayoutConstraint+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSLayoutConstraint+Rx.swift"; path = "RxCocoa/Common/NSLayoutConstraint+Rx.swift"; sourceTree = ""; }; - 77D4756634966997741E1F6E0F23A09F /* Zip.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Zip.swift; path = RxSwift/Observables/Zip.swift; sourceTree = ""; }; - 7809D5F54E6C312C113F9AC249CCB727 /* SubjectType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SubjectType.swift; path = RxSwift/Subjects/SubjectType.swift; sourceTree = ""; }; - 7A036009FF5AA1E3CF187BC09CA47892 /* Animation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Animation.swift; path = Source/Animation.swift; sourceTree = ""; }; - 7A800E335A652437228A68BD9E74EDE8 /* RxAtomic-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxAtomic-umbrella.h"; sourceTree = ""; }; - 7AC495DC61B8A5578813D9377ECA6331 /* RazzleDazzle.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RazzleDazzle.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 7ACF4DE9797D2E25AE60A7FC71503887 /* Range.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Range.swift; path = RxSwift/Observables/Range.swift; sourceTree = ""; }; - 7AEFA8DE0F659B1AD19747F34D588738 /* RxScrollViewDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxScrollViewDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxScrollViewDelegateProxy.swift; sourceTree = ""; }; - 7B66BEEAE8BCCBE2427DD828F311C2CE /* LabelTextColorAnimation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = LabelTextColorAnimation.swift; path = Source/LabelTextColorAnimation.swift; sourceTree = ""; }; - 7BD90C15A9C981B400F76D11BAA63061 /* Debug.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Debug.swift; path = RxSwift/Observables/Debug.swift; sourceTree = ""; }; - 7C59C5B081E3379ECD346A692BD1BDE3 /* RxMutableBox.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxMutableBox.swift; path = RxSwift/RxMutableBox.swift; sourceTree = ""; }; - 7C75FDB0B0AB9439F7BBFAA056020416 /* Sequence.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Sequence.swift; path = RxSwift/Observables/Sequence.swift; sourceTree = ""; }; - 7D883038B0BD4E2FA5E6EC9A79B5F3B8 /* Device-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Device-umbrella.h"; sourceTree = ""; }; - 7F80AD9CE513BFAB38B5587185CFE681 /* SchedulerType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SchedulerType.swift; path = RxSwift/SchedulerType.swift; sourceTree = ""; }; - 8030661F911469BF694D515D1C1FAD13 /* Pods-RxMarbles-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-RxMarbles-dummy.m"; sourceTree = ""; }; - 80F88E2C0585A8785C671318872E8889 /* HistoricalScheduler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = HistoricalScheduler.swift; path = RxSwift/Schedulers/HistoricalScheduler.swift; sourceTree = ""; }; - 82E386CB547ADE122C9DBF4F6C146EF6 /* RxCollectionViewDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxCollectionViewDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxCollectionViewDelegateProxy.swift; sourceTree = ""; }; - 83626A82F70A0C11DF715A93D0F4E91B /* UITextField+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UITextField+Rx.swift"; path = "RxCocoa/iOS/UITextField+Rx.swift"; sourceTree = ""; }; - 836AFF21E2BA674450E81142AC24FEF9 /* Window.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Window.swift; path = RxSwift/Observables/Window.swift; sourceTree = ""; }; - 84446C679FFCF8098FC8F1E67F53E3D4 /* ScrollViewPageConstraintAnimation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ScrollViewPageConstraintAnimation.swift; path = Source/ScrollViewPageConstraintAnimation.swift; sourceTree = ""; }; - 851FB8467EA27F9454BD7D8740CFA954 /* NSView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSView+Rx.swift"; path = "RxCocoa/macOS/NSView+Rx.swift"; sourceTree = ""; }; - 865992923F7442440E737260E88BA7B1 /* UIScrollView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIScrollView+Rx.swift"; path = "RxCocoa/iOS/UIScrollView+Rx.swift"; sourceTree = ""; }; - 86C3AA46C36FB94C57FFAE02D4CE2184 /* KVORepresentable+CoreGraphics.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "KVORepresentable+CoreGraphics.swift"; path = "RxCocoa/Foundation/KVORepresentable+CoreGraphics.swift"; sourceTree = ""; }; - 87BB4F97DB69CC52E0FEC218C862D890 /* UISearchBar+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UISearchBar+Rx.swift"; path = "RxCocoa/iOS/UISearchBar+Rx.swift"; sourceTree = ""; }; - 882735C111DB6C435C041F2BA9DFD201 /* RxCocoa-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxCocoa-prefix.pch"; sourceTree = ""; }; - 883B26A224580B823F189308029B4EE1 /* NSSlider+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSSlider+Rx.swift"; path = "RxCocoa/macOS/NSSlider+Rx.swift"; sourceTree = ""; }; - 88EBEFBAE57FCE0A13FA25AFFD9DDB1E /* BehaviorRelay+Driver.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "BehaviorRelay+Driver.swift"; path = "RxCocoa/Traits/Driver/BehaviorRelay+Driver.swift"; sourceTree = ""; }; - 89292F6F1704AA87FCFD115382E80C21 /* RxTextViewDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxTextViewDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxTextViewDelegateProxy.swift; sourceTree = ""; }; - 89AAD9BCC42332AA44B0CA435D487C78 /* Platform.Darwin.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Platform.Darwin.swift; path = Platform/Platform.Darwin.swift; sourceTree = ""; }; - 8A4B44B5324C12D73225F07EC2B73C2F /* Device-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Device-Info.plist"; sourceTree = ""; }; - 8A5D8FA0381E3404CB2BE260A8BFDD51 /* ControlProperty+Driver.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ControlProperty+Driver.swift"; path = "RxCocoa/Traits/Driver/ControlProperty+Driver.swift"; sourceTree = ""; }; - 8A71C3681328FFEA048B9AB2DCB44EAA /* Empty.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Empty.swift; path = RxSwift/Observables/Empty.swift; sourceTree = ""; }; - 8B0BF330D0DCB0C600B0202F29CBAB84 /* BooleanDisposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BooleanDisposable.swift; path = RxSwift/Disposables/BooleanDisposable.swift; sourceTree = ""; }; - 8D128B5FB818C7BB157E985DF138E9F3 /* Generate.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Generate.swift; path = RxSwift/Observables/Generate.swift; sourceTree = ""; }; - 8D31FE6F75749BEE34B7FDC44CADA3B0 /* ScheduledItem.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ScheduledItem.swift; path = RxSwift/Schedulers/Internal/ScheduledItem.swift; sourceTree = ""; }; - 8E1F54087199695D45CA4820F20061AC /* CornerRadiusAnimation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CornerRadiusAnimation.swift; path = Source/CornerRadiusAnimation.swift; sourceTree = ""; }; - 8F3C781C164CABF4C5D1EC61D6622CCA /* DefaultIfEmpty.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DefaultIfEmpty.swift; path = RxSwift/Observables/DefaultIfEmpty.swift; sourceTree = ""; }; - 8FFFFD35E30CA9F6B11BA6D39F87890B /* SubscriptionDisposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SubscriptionDisposable.swift; path = RxSwift/Disposables/SubscriptionDisposable.swift; sourceTree = ""; }; - 903EE6B944E1248CFDC309BCE9400B77 /* URLSession+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "URLSession+Rx.swift"; path = "RxCocoa/Foundation/URLSession+Rx.swift"; sourceTree = ""; }; - 90CEA42C24FDD48ED20234DF2B1C8214 /* RxSearchBarDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxSearchBarDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxSearchBarDelegateProxy.swift; sourceTree = ""; }; - 90DFDB771C4A2A5DFBFC43C2DBBA7806 /* Maybe.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Maybe.swift; path = RxSwift/Traits/Maybe.swift; sourceTree = ""; }; - 91316719893F1D37C091D2AAFF244172 /* Device.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Device.xcconfig; sourceTree = ""; }; - 920401343A195EAE5F02452149165158 /* Scan.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Scan.swift; path = RxSwift/Observables/Scan.swift; sourceTree = ""; }; - 92FCB48915173EA1E84E118EB81EEC13 /* Buffer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Buffer.swift; path = RxSwift/Observables/Buffer.swift; sourceTree = ""; }; - 9544C7C064032E328950536A02676186 /* Sample.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Sample.swift; path = RxSwift/Observables/Sample.swift; sourceTree = ""; }; - 964E580433D098135AE6AF7268ABE401 /* RxPickerViewDataSourceType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxPickerViewDataSourceType.swift; path = RxCocoa/iOS/Protocols/RxPickerViewDataSourceType.swift; sourceTree = ""; }; - 97484130F1EA0A3FEFCC8CA97B2F49C8 /* UICollectionView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UICollectionView+Rx.swift"; path = "RxCocoa/iOS/UICollectionView+Rx.swift"; sourceTree = ""; }; - 98772D395BCD8E3CC61F726D347146A0 /* RxAtomic-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "RxAtomic-Info.plist"; sourceTree = ""; }; - 98CE806672EFF46D6D41DBA3F58AAC8D /* UIPickerView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIPickerView+Rx.swift"; path = "RxCocoa/iOS/UIPickerView+Rx.swift"; sourceTree = ""; }; - 98E19E29204E2AAB359B4783A10BDF70 /* InvocableType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = InvocableType.swift; path = RxSwift/Schedulers/Internal/InvocableType.swift; sourceTree = ""; }; - 99A7D49E68D60CFB4DAE2F9A4A5FC849 /* Event.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Event.swift; path = RxSwift/Event.swift; sourceTree = ""; }; - 99D62FE6E51D8501EDEC55F990AD1C74 /* Producer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Producer.swift; path = RxSwift/Observables/Producer.swift; sourceTree = ""; }; - 9A5C9F1F93360140AD8123BBAC2ACBF7 /* Queue.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Queue.swift; path = Platform/DataStructures/Queue.swift; sourceTree = ""; }; - 9AD9780CB0378AEECA3FF8C5D99497B9 /* ControlEvent+Signal.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ControlEvent+Signal.swift"; path = "RxCocoa/Traits/Signal/ControlEvent+Signal.swift"; sourceTree = ""; }; - 9B46F0FD5099394A54CC0B782A3174A2 /* Version.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Version.swift; path = Source/Version.swift; sourceTree = ""; }; - 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; - 9E09D4867BF3492CAE00B8A2BD176484 /* RxCollectionViewDataSourceProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxCollectionViewDataSourceProxy.swift; path = RxCocoa/iOS/Proxies/RxCollectionViewDataSourceProxy.swift; sourceTree = ""; }; - 9F5BB9E3BFEB6BBE37573A70837E5909 /* ConcurrentMainScheduler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConcurrentMainScheduler.swift; path = RxSwift/Schedulers/ConcurrentMainScheduler.swift; sourceTree = ""; }; - A0A507209DC0F96733203ACF556C8F36 /* RotationAnimation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RotationAnimation.swift; path = Source/RotationAnimation.swift; sourceTree = ""; }; - A1CCDFD2798852529E201DACB849FA39 /* RxCocoa.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = RxCocoa.h; path = RxCocoa/RxCocoa.h; sourceTree = ""; }; - A38E8E92A3280AF37ADAC53F72D0089E /* RazzleDazzle-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "RazzleDazzle-dummy.m"; sourceTree = ""; }; - A693F986101905011E3C753BA7D85333 /* LockOwnerType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = LockOwnerType.swift; path = RxSwift/Concurrency/LockOwnerType.swift; sourceTree = ""; }; - A6B46C31ECDC6160CAEB560087043EC2 /* AsyncLock.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AsyncLock.swift; path = RxSwift/Concurrency/AsyncLock.swift; sourceTree = ""; }; - A789567B0FA25406FE49474A6AEA808F /* NSTextStorage+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSTextStorage+Rx.swift"; path = "RxCocoa/iOS/NSTextStorage+Rx.swift"; sourceTree = ""; }; - A7D5A70E874FC87FD1E15E41A31526A6 /* ANSCompatibility.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ANSCompatibility.h; path = iOS/Crashlytics.framework/Headers/ANSCompatibility.h; sourceTree = ""; }; - A802605644399423ADE44C7E05A0E569 /* AlphaAnimation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AlphaAnimation.swift; path = Source/AlphaAnimation.swift; sourceTree = ""; }; - A91816A53FCF7990A9D4EBC61EB61A8B /* Device.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Device.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - A952D444D68F63C3CB4D91E2E1A217AE /* Crashlytics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Crashlytics.framework; path = iOS/Crashlytics.framework; sourceTree = ""; }; - A9879BBDF425E57DEF46AC3A12C2EE1B /* PriorityQueue.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PriorityQueue.swift; path = Platform/DataStructures/PriorityQueue.swift; sourceTree = ""; }; - AA706F2B9F335F69BE04056DB1AEA3EE /* ControlEvent.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ControlEvent.swift; path = RxCocoa/Traits/ControlEvent.swift; sourceTree = ""; }; - AA944F0EB722D186851045218D1DE8F3 /* SharedSequence+Operators.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "SharedSequence+Operators.swift"; path = "RxCocoa/Traits/SharedSequence/SharedSequence+Operators.swift"; sourceTree = ""; }; - AADBF1E3B66CDE0572B6E101E3680A09 /* RxCocoa.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = RxCocoa.modulemap; sourceTree = ""; }; - AB6DDD221F6F9B6C2CD257359DF76C72 /* ElementAt.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ElementAt.swift; path = RxSwift/Observables/ElementAt.swift; sourceTree = ""; }; - AC49A9B9C69AB35D91521853DF9D68E8 /* Pods_RxMarbles.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RxMarbles.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - ACA0FD1D3C8D2D6CD31CC4250AF13F78 /* AsyncSubject.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AsyncSubject.swift; path = RxSwift/Subjects/AsyncSubject.swift; sourceTree = ""; }; - AD5691BECC40A4DF48254849D02B66F0 /* Crashlytics.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = Crashlytics.h; path = iOS/Crashlytics.framework/Headers/Crashlytics.h; sourceTree = ""; }; - ADEF28EF72FA5EADBCA73E10133C9A5C /* RxCocoa-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "RxCocoa-dummy.m"; sourceTree = ""; }; - AE26D9E2504A009561F3CB3688930B39 /* RxTableViewDataSourcePrefetchingProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxTableViewDataSourcePrefetchingProxy.swift; path = RxCocoa/iOS/Proxies/RxTableViewDataSourcePrefetchingProxy.swift; sourceTree = ""; }; - AE84AEF2F5F4DCA245C787AED3B7E254 /* UIView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+Rx.swift"; path = "RxCocoa/iOS/UIView+Rx.swift"; sourceTree = ""; }; - AF39289A005DCE3C02CC65722865636F /* RecursiveScheduler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RecursiveScheduler.swift; path = RxSwift/Schedulers/RecursiveScheduler.swift; sourceTree = ""; }; - AF3BFA798C76323C8321E95B3B8AA8A5 /* Materialize.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Materialize.swift; path = RxSwift/Observables/Materialize.swift; sourceTree = ""; }; - AFB8C2A92BABC9C930730227C33746D7 /* DispatchQueue+Extensions.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "DispatchQueue+Extensions.swift"; path = "Platform/DispatchQueue+Extensions.swift"; sourceTree = ""; }; - B07499B848422DAE24FE35AC388999FE /* UISearchController+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UISearchController+Rx.swift"; path = "RxCocoa/iOS/UISearchController+Rx.swift"; sourceTree = ""; }; - B095AA9255123290D41EF1E7CD5C52D9 /* SchedulerType+SharedSequence.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "SchedulerType+SharedSequence.swift"; path = "RxCocoa/Traits/SharedSequence/SchedulerType+SharedSequence.swift"; sourceTree = ""; }; - B0FB296A0DFF1DE1665F5D6F8300807A /* UITabBar+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UITabBar+Rx.swift"; path = "RxCocoa/iOS/UITabBar+Rx.swift"; sourceTree = ""; }; - B11036255BF83F2062E3115BBF011906 /* HideAnimation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = HideAnimation.swift; path = Source/HideAnimation.swift; sourceTree = ""; }; - B169A8F35C4B65ABB53FA9D20A73FD2E /* Observable+Bind.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Observable+Bind.swift"; path = "RxCocoa/Common/Observable+Bind.swift"; sourceTree = ""; }; - B183F15C16F53920BD0A6E1FAE3EE781 /* Pods-RxMarbles.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-RxMarbles.modulemap"; sourceTree = ""; }; - B26781A23478FCA9C8095F33B9169DC9 /* Zip+arity.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Zip+arity.swift"; path = "RxSwift/Observables/Zip+arity.swift"; sourceTree = ""; }; - B3B54231752821F01AC27A3F7171CBC5 /* Merge.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Merge.swift; path = RxSwift/Observables/Merge.swift; sourceTree = ""; }; - B3FA3F7A113994EEAE5D4B01FFC15115 /* Optional.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Optional.swift; path = RxSwift/Observables/Optional.swift; sourceTree = ""; }; - B459D266B51CAF52B259E7DCA8ABB248 /* ObservableType+PrimitiveSequence.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ObservableType+PrimitiveSequence.swift"; path = "RxSwift/Traits/ObservableType+PrimitiveSequence.swift"; sourceTree = ""; }; - B4B8833EC8FA2CCBA605F0B6413A0F24 /* UIAlertAction+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIAlertAction+Rx.swift"; path = "RxCocoa/iOS/UIAlertAction+Rx.swift"; sourceTree = ""; }; - B561C3BC903A70ECD592D81286515EEE /* ConstraintConstantAnimation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConstraintConstantAnimation.swift; path = Source/ConstraintConstantAnimation.swift; sourceTree = ""; }; - B5C8C8EF1A8E41A208CDD6EDAE7BD2AA /* UIProgressView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIProgressView+Rx.swift"; path = "RxCocoa/iOS/UIProgressView+Rx.swift"; sourceTree = ""; }; - B60BC18910D8FBBBFB9F4CAB40A6B79C /* _RXDelegateProxy.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = _RXDelegateProxy.h; path = RxCocoa/Runtime/include/_RXDelegateProxy.h; sourceTree = ""; }; - B75F0CE8E66CB9C24AF39ECB81A7869A /* _RXDelegateProxy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = _RXDelegateProxy.m; path = RxCocoa/Runtime/_RXDelegateProxy.m; sourceTree = ""; }; - B909C07507046E2BC1D06FADED3561CF /* CLSLogging.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = CLSLogging.h; path = iOS/Crashlytics.framework/Headers/CLSLogging.h; sourceTree = ""; }; - B90AAD908D7AE565B99267820AC0A4B2 /* UIStepper+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIStepper+Rx.swift"; path = "RxCocoa/iOS/UIStepper+Rx.swift"; sourceTree = ""; }; - B90CFB619225FFD11A1EEB4D6AD8A589 /* UINavigationItem+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UINavigationItem+Rx.swift"; path = "RxCocoa/iOS/UINavigationItem+Rx.swift"; sourceTree = ""; }; - B95247ACC995B53C3BA6E7CA6E712701 /* Filmstrip.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Filmstrip.swift; path = Source/Filmstrip.swift; sourceTree = ""; }; - B9C2302BB236D7B559CAE55AA5D35DA5 /* RxSwift-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxSwift-umbrella.h"; sourceTree = ""; }; - B9D9B651376E4506B8F481C05582117B /* Cancelable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Cancelable.swift; path = RxSwift/Cancelable.swift; sourceTree = ""; }; - B9F967CBB59DF8C255D7AF1E26694BAD /* DisposeBag.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DisposeBag.swift; path = RxSwift/Disposables/DisposeBag.swift; sourceTree = ""; }; - BA574E5095B52B39BE2038B03C855ADA /* RxSwift.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = RxSwift.modulemap; sourceTree = ""; }; - BA9323A3E2FA64AE7A5EE3C53CAD7BC8 /* Reactive.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Reactive.swift; path = RxSwift/Reactive.swift; sourceTree = ""; }; - BA95FF6784FA43C6B84FE4AE363CC914 /* SynchronizedOnType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SynchronizedOnType.swift; path = RxSwift/Concurrency/SynchronizedOnType.swift; sourceTree = ""; }; - BAC818DA36375CB7B1AC66228CAFD552 /* Concat.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Concat.swift; path = RxSwift/Observables/Concat.swift; sourceTree = ""; }; - BAF20CA6CF83E2895943F307D1691861 /* FABAttributes.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FABAttributes.h; path = iOS/Fabric.framework/Headers/FABAttributes.h; sourceTree = ""; }; - BB93B70D6A565ED3F045D842111FA486 /* Logging.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Logging.swift; path = RxCocoa/Foundation/Logging.swift; sourceTree = ""; }; - BBFDD9950FCD236A952CBE7B49A2769C /* RazzleDazzle.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = RazzleDazzle.modulemap; sourceTree = ""; }; - BC9C4AF429CF47015D5BF135000F465B /* Pods-RxMarbles-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-RxMarbles-acknowledgements.plist"; sourceTree = ""; }; - BD7FD9C2427C82183EE014F95F58F94D /* RxTextStorageDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxTextStorageDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxTextStorageDelegateProxy.swift; sourceTree = ""; }; - BF9B8F2BB78DCC11EC0FE83834E3B521 /* Binder.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Binder.swift; path = RxCocoa/Common/Binder.swift; sourceTree = ""; }; - C14B49D5D37DA615837BA418DBE84538 /* RxCocoa.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = RxCocoa.xcconfig; sourceTree = ""; }; - C2136713323B867CFD71CDD9EE06DA97 /* AnonymousDisposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AnonymousDisposable.swift; path = RxSwift/Disposables/AnonymousDisposable.swift; sourceTree = ""; }; - C2677A188D745D02AE3A8E69C2647E52 /* SingleAssignmentDisposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SingleAssignmentDisposable.swift; path = RxSwift/Disposables/SingleAssignmentDisposable.swift; sourceTree = ""; }; - C2742AEB475770D3B81B8C446BAC4487 /* Delay.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Delay.swift; path = RxSwift/Observables/Delay.swift; sourceTree = ""; }; - C28617354D02B7330688A236DA2BA6DF /* TranslationAnimation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = TranslationAnimation.swift; path = Source/TranslationAnimation.swift; sourceTree = ""; }; - C2A5E3A7021A47B6F3BEA50AC7D57FF9 /* UIBarButtonItem+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIBarButtonItem+Rx.swift"; path = "RxCocoa/iOS/UIBarButtonItem+Rx.swift"; sourceTree = ""; }; - C2EA6DD6EFEA94F2175D434B3E4C1B26 /* DelaySubscription.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DelaySubscription.swift; path = RxSwift/Observables/DelaySubscription.swift; sourceTree = ""; }; - C739FEE49A1F2563BC57CF07392EEDA1 /* ObserveOn.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ObserveOn.swift; path = RxSwift/Observables/ObserveOn.swift; sourceTree = ""; }; - C86FC0B5A941C44043FE6871A917FE2D /* Completable+AndThen.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Completable+AndThen.swift"; path = "RxSwift/Traits/Completable+AndThen.swift"; sourceTree = ""; }; - C8C9CC7C8A38AA898C767541C21E4674 /* Using.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Using.swift; path = RxSwift/Observables/Using.swift; sourceTree = ""; }; - C98088E0EFAFD9B83A037163FC661B00 /* ObservableConvertibleType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ObservableConvertibleType.swift; path = RxSwift/ObservableConvertibleType.swift; sourceTree = ""; }; - CAF98612BBA42E33D6E6DC3CD7A4121C /* Device.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Device.swift; path = Source/iOS/Device.swift; sourceTree = ""; }; - CC64D8B5B9A9713FBB2F4483A3E42A59 /* Platform.Darwin.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Platform.Darwin.swift; path = Platform/Platform.Darwin.swift; sourceTree = ""; }; - CC9EDF36DEDAE34DF062686C86783F58 /* Error.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Error.swift; path = RxSwift/Observables/Error.swift; sourceTree = ""; }; - CCA8DBA8DC9B85C4BF0C30B6FDF91E2E /* UITabBarController+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UITabBarController+Rx.swift"; path = "RxCocoa/iOS/UITabBarController+Rx.swift"; sourceTree = ""; }; - CD51C735F85F7CCE1846934F6C435C05 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; - CE18DAA04CD6B699306D9065A5E58CFF /* Switch.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Switch.swift; path = RxSwift/Observables/Switch.swift; sourceTree = ""; }; - CF1795E92D83C9DEB888AA6E21629FEB /* Pods-RxMarbles-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-RxMarbles-umbrella.h"; sourceTree = ""; }; - CF6D9830CF23CC0082409786DE617D75 /* SharedSequence.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SharedSequence.swift; path = RxCocoa/Traits/SharedSequence/SharedSequence.swift; sourceTree = ""; }; - D01AB6AF91C3B1A11157752AC90D6D04 /* ObservableType+Extensions.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ObservableType+Extensions.swift"; path = "RxSwift/ObservableType+Extensions.swift"; sourceTree = ""; }; - D094060619F37142A6D64CBEBE88F757 /* SingleAsync.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SingleAsync.swift; path = RxSwift/Observables/SingleAsync.swift; sourceTree = ""; }; - D0BEC743077AB78F1FA6C3FEFEED1D07 /* ItemEvents.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ItemEvents.swift; path = RxCocoa/iOS/Events/ItemEvents.swift; sourceTree = ""; }; - D1A3B4FA79031C384A84D0111FF4AF3A /* Pods-RxMarbles-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-RxMarbles-Info.plist"; sourceTree = ""; }; - D25275AD37E8174E1D7DF9717A7C3CAB /* Disposables.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Disposables.swift; path = RxSwift/Disposables/Disposables.swift; sourceTree = ""; }; - D26263970C19524126239A5C594FA059 /* Deferred.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Deferred.swift; path = RxSwift/Observables/Deferred.swift; sourceTree = ""; }; - D281694934C33BE668343AC957D89F26 /* DispatchQueueConfiguration.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DispatchQueueConfiguration.swift; path = RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift; sourceTree = ""; }; - D2D4010CDDE76D31AE266B9E27A401A5 /* Queue.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Queue.swift; path = Platform/DataStructures/Queue.swift; sourceTree = ""; }; - D30391CE96DB65F196B0DC6DB17E7DEE /* RxSwift-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RxSwift-prefix.pch"; sourceTree = ""; }; - D4B1F7AD909B1AF74462C5F58053CCAD /* Pods-RxMarbles-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-RxMarbles-acknowledgements.markdown"; sourceTree = ""; }; - D54F1C75FC8DE46238B4A94BAE5E34DD /* TextInput.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = TextInput.swift; path = RxCocoa/Common/TextInput.swift; sourceTree = ""; }; - D59DF2AA2C1F6672F2DCE73C514A5F17 /* InfiniteSequence.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = InfiniteSequence.swift; path = Platform/DataStructures/InfiniteSequence.swift; sourceTree = ""; }; - D6326E97846847436854F4DA6B3603E2 /* RxAtomic.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RxAtomic.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - D669BF6DDC4FA2418FBBF33823438E8D /* Fabric.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Fabric.framework; path = iOS/Fabric.framework; sourceTree = ""; }; - D6F67001F4CEC2C837CF6B3172FEE0BB /* Repeat.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Repeat.swift; path = RxSwift/Observables/Repeat.swift; sourceTree = ""; }; - D6FC2CAAFEAD74100C50805AD6B2772A /* RxPickerViewDataSourceProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxPickerViewDataSourceProxy.swift; path = RxCocoa/iOS/Proxies/RxPickerViewDataSourceProxy.swift; sourceTree = ""; }; - D72FE66824E59854DAE6A96F626A0D52 /* Dematerialize.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Dematerialize.swift; path = RxSwift/Observables/Dematerialize.swift; sourceTree = ""; }; - D799C60CDB8A8FA665D294EB5F0A5B54 /* Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Rx.swift; path = RxSwift/Rx.swift; sourceTree = ""; }; - D806AF8E68443F52F558F01852703D58 /* RetryWhen.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RetryWhen.swift; path = RxSwift/Observables/RetryWhen.swift; sourceTree = ""; }; - D81A756F503B7024BA1F75DFDA24DC73 /* UIControl+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIControl+Rx.swift"; path = "RxCocoa/iOS/UIControl+Rx.swift"; sourceTree = ""; }; - D8B27F7619D25B430883A94468866374 /* _RXKVOObserver.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = _RXKVOObserver.h; path = RxCocoa/Runtime/include/_RXKVOObserver.h; sourceTree = ""; }; - D8FC6F1B5414B75DBDFEA02EB86F984C /* ObservableConvertibleType+SharedSequence.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ObservableConvertibleType+SharedSequence.swift"; path = "RxCocoa/Traits/SharedSequence/ObservableConvertibleType+SharedSequence.swift"; sourceTree = ""; }; - D9D63520C396F74C1CD1E1A85076C83F /* RazzleDazzle-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RazzleDazzle-prefix.pch"; sourceTree = ""; }; - DA29E78D0AAB1C31FF771C68B657EF9A /* LayerFillColorAnimation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = LayerFillColorAnimation.swift; path = Source/LayerFillColorAnimation.swift; sourceTree = ""; }; - DAB5D8B1731B0CB350F13792447E0342 /* Crashlytics.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Crashlytics.xcconfig; sourceTree = ""; }; - DBB3424DC5C6751C36CD23B54D01358F /* SynchronizedDisposeType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SynchronizedDisposeType.swift; path = RxSwift/Concurrency/SynchronizedDisposeType.swift; sourceTree = ""; }; - DBC8A27D6800B727095E45A449265EC6 /* Multicast.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Multicast.swift; path = RxSwift/Observables/Multicast.swift; sourceTree = ""; }; - DCE60D42FCF20F4A6BD5BD855379A7ED /* SwiftSupport.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SwiftSupport.swift; path = RxSwift/SwiftSupport/SwiftSupport.swift; sourceTree = ""; }; - DFBB9C8550ABFB3D0D46C43ACC712DEA /* UIRefreshControl+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIRefreshControl+Rx.swift"; path = "RxCocoa/iOS/UIRefreshControl+Rx.swift"; sourceTree = ""; }; - DFD0789B52105F6EE5397FB08D581642 /* RefCountDisposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RefCountDisposable.swift; path = RxSwift/Disposables/RefCountDisposable.swift; sourceTree = ""; }; - E179A3D7CBA0748258E738E3A0A04D6D /* PrimitiveSequence.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PrimitiveSequence.swift; path = RxSwift/Traits/PrimitiveSequence.swift; sourceTree = ""; }; - E18B7D005597EBC146E9F1219E608449 /* Deprecated.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Deprecated.swift; path = RxCocoa/Deprecated.swift; sourceTree = ""; }; - E236A84BFA064EDA48A5153004CBABF9 /* CombineLatest+Collection.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "CombineLatest+Collection.swift"; path = "RxSwift/Observables/CombineLatest+Collection.swift"; sourceTree = ""; }; - E284F70F8B0E5100DDC0288D8C624EB1 /* AsMaybe.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AsMaybe.swift; path = RxSwift/Observables/AsMaybe.swift; sourceTree = ""; }; - E449318A9A4C416F93D8461C5C4BAC7D /* CompositeDisposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CompositeDisposable.swift; path = RxSwift/Disposables/CompositeDisposable.swift; sourceTree = ""; }; - E61C301333D975D870F9A2B5E2ECF350 /* Single.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Single.swift; path = RxSwift/Traits/Single.swift; sourceTree = ""; }; - E740D322623AFAA208B62D9B4EA69337 /* UIDatePicker+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIDatePicker+Rx.swift"; path = "RxCocoa/iOS/UIDatePicker+Rx.swift"; sourceTree = ""; }; - E7E3F56DC5E5C300E2B053A28DBEA448 /* BehaviorSubject.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BehaviorSubject.swift; path = RxSwift/Subjects/BehaviorSubject.swift; sourceTree = ""; }; - E9092D8BA61F885C6D7E41C3D8C81326 /* UIApplication+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIApplication+Rx.swift"; path = "RxCocoa/iOS/UIApplication+Rx.swift"; sourceTree = ""; }; - EA0D6DF9FAC731C8F640C07FFB3FDB8B /* RxCocoa.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxCocoa.swift; path = RxCocoa/RxCocoa.swift; sourceTree = ""; }; - EA239C3A97C0B63C070969902C06442C /* GroupBy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = GroupBy.swift; path = RxSwift/Observables/GroupBy.swift; sourceTree = ""; }; - EBB7F761838ED112C7DC49B035AEC4B4 /* UIWebView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIWebView+Rx.swift"; path = "RxCocoa/iOS/UIWebView+Rx.swift"; sourceTree = ""; }; - EBB9FF3CA414A7E1742A8C10A9E56CF2 /* RxCollectionViewDataSourceType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxCollectionViewDataSourceType.swift; path = RxCocoa/iOS/Protocols/RxCollectionViewDataSourceType.swift; sourceTree = ""; }; - EC7D59990B158F0BCDF2A4EB74127FA7 /* UISlider+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UISlider+Rx.swift"; path = "RxCocoa/iOS/UISlider+Rx.swift"; sourceTree = ""; }; - EC93C27D3FAD477F752E8E2FCCE029A7 /* SerialDispatchQueueScheduler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SerialDispatchQueueScheduler.swift; path = RxSwift/Schedulers/SerialDispatchQueueScheduler.swift; sourceTree = ""; }; - ED92855243C5EC43971A2A2F80A2446D /* Throttle.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Throttle.swift; path = RxSwift/Observables/Throttle.swift; sourceTree = ""; }; - EE28D63DDBC1F0FABB6D2CCBED7294A6 /* PathPositionAnimation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PathPositionAnimation.swift; path = Source/PathPositionAnimation.swift; sourceTree = ""; }; - EEF5F0B0E948446A608305DD841F36F2 /* Driver+Subscription.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Driver+Subscription.swift"; path = "RxCocoa/Traits/Driver/Driver+Subscription.swift"; sourceTree = ""; }; - EEFA4FE79D3B86A2428E4889BDBA7C28 /* Animatable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Animatable.swift; path = Source/Animatable.swift; sourceTree = ""; }; - F0F99512B362525E0A0C1D5C3ED980F4 /* ObservableType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ObservableType.swift; path = RxSwift/ObservableType.swift; sourceTree = ""; }; - F22AFDD1CD0056F7E108E8AB4D82F2E2 /* TakeWhile.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = TakeWhile.swift; path = RxSwift/Observables/TakeWhile.swift; sourceTree = ""; }; - F2688914161408B4D752F2B12CAFDA5F /* StartWith.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = StartWith.swift; path = RxSwift/Observables/StartWith.swift; sourceTree = ""; }; - F4E627B0CE9ECDF683D071BBC5DB2193 /* UIView+Transform.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+Transform.swift"; path = "Source/UIView+Transform.swift"; sourceTree = ""; }; - F573318077C6901EE4E408A9E5F2A12A /* Lock.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Lock.swift; path = RxSwift/Concurrency/Lock.swift; sourceTree = ""; }; - F587009CBA6861414A9EDE262ADF049C /* ControlEvent+Driver.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ControlEvent+Driver.swift"; path = "RxCocoa/Traits/Driver/ControlEvent+Driver.swift"; sourceTree = ""; }; - F746777F4282B5BD785771D6E90420F7 /* Deprecated.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Deprecated.swift; path = RxSwift/Deprecated.swift; sourceTree = ""; }; - F76D0E77501A2D6949B808AAF21BC3D8 /* VirtualTimeScheduler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = VirtualTimeScheduler.swift; path = RxSwift/Schedulers/VirtualTimeScheduler.swift; sourceTree = ""; }; - F7CA2207FDF25B9134F189B2BFEDD52B /* Signal+Subscription.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Signal+Subscription.swift"; path = "RxCocoa/Traits/Signal/Signal+Subscription.swift"; sourceTree = ""; }; - F885C12F1C3A04D4544401C4A113C1A3 /* AsSingle.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AsSingle.swift; path = RxSwift/Observables/AsSingle.swift; sourceTree = ""; }; - F923C7FE7672AD3EC1DEF0691070610F /* RxSwift-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "RxSwift-Info.plist"; sourceTree = ""; }; - F9B917FE4D4E3DCCE1A7627F240DB8F8 /* Animator.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Animator.swift; path = Source/Animator.swift; sourceTree = ""; }; - F9DB2016B81D4AF91379C77C2C544F51 /* RazzleDazzle-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "RazzleDazzle-umbrella.h"; sourceTree = ""; }; - FA1D03C4A0B72389FC4A0E1BCCAA85BC /* RxWebViewDelegateProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxWebViewDelegateProxy.swift; path = RxCocoa/iOS/Proxies/RxWebViewDelegateProxy.swift; sourceTree = ""; }; - FAB6E76DD33EAAB68CD69A0A57847044 /* Bag+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Bag+Rx.swift"; path = "RxSwift/Extensions/Bag+Rx.swift"; sourceTree = ""; }; - FABD168ED9560C339334B4A885AEF217 /* BinaryDisposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BinaryDisposable.swift; path = RxSwift/Disposables/BinaryDisposable.swift; sourceTree = ""; }; - FD75F7D8B0AF7D73B21BE14907BA147B /* Map.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Map.swift; path = RxSwift/Observables/Map.swift; sourceTree = ""; }; - FF8D8B58603FA8C7690BEA4C0AC96F69 /* UITabBarItem+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UITabBarItem+Rx.swift"; path = "RxCocoa/iOS/UITabBarItem+Rx.swift"; sourceTree = ""; }; - FFF1B987DC8565EAB8B146D4E36205D0 /* Take.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Take.swift; path = RxSwift/Observables/Take.swift; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 1B1197038D9D4CD3F76FF0305D37F1EC /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 675B621EC591140F7005E329352823C5 /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 29B2DEDDEC9BBB7500B5181816FE8CB0 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 0433F24B6A24B4244A7CEBAE83FEE7D6 /* Foundation.framework in Frameworks */, - 93FAA277EE5B451DCA13E133EEB7995A /* RxAtomic.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 416EB50B4FE303D96007797BBDFF1BC6 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 417D413E1EF8D38033DCEE08F9880654 /* Foundation.framework in Frameworks */, - A2AB298396BBF767EDEE4DF9790D6C57 /* UIKit.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 8849A35C840A9EF6BB34AC3B6B781E15 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 374DACE62F27867FB838C2D4F3F8B795 /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - B1641843140DFD26FABAE0F668884122 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 44CFB42E712E6D7A5ABE0F95DC5F7C2E /* Foundation.framework in Frameworks */, - 44E95577734FB971CE12111C201B7722 /* RxSwift.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - E08436FFC7F98639D43A158BEA5364AB /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 5A973C87308529F3C18747E4E5B47BF8 /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 19DF836C3CB0EF0A435787696882D845 /* Fabric */ = { - isa = PBXGroup; - children = ( - BAF20CA6CF83E2895943F307D1691861 /* FABAttributes.h */, - 3F6D33E35C36F4F299D99F59CBB37C4C /* Fabric.h */, - C08820A75BF0B808F63B88F8F08326CC /* Frameworks */, - 9EAF63472E85E55FAE01CDC68F8E4C48 /* Support Files */, - ); - path = Fabric; - sourceTree = ""; - }; - 1C8789940CD139F9538B37087A2F5562 /* Support Files */ = { - isa = PBXGroup; - children = ( - 0AAAA5FAE2DB57DF06B7BFE5F37B19D6 /* Device.modulemap */, - 91316719893F1D37C091D2AAFF244172 /* Device.xcconfig */, - 0C39E99C74BADFE018AD1071AC449F29 /* Device-dummy.m */, - 8A4B44B5324C12D73225F07EC2B73C2F /* Device-Info.plist */, - 458F088F3D0343F6CEBF99AC12597AD7 /* Device-prefix.pch */, - 7D883038B0BD4E2FA5E6EC9A79B5F3B8 /* Device-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/Device"; - sourceTree = ""; - }; - 20208E7DC99665BB77756239DBE60387 /* Device */ = { - isa = PBXGroup; - children = ( - CAF98612BBA42E33D6E6DC3CD7A4121C /* Device.swift */, - 233AD7AFD9931A4CD1D15F2D3A876D86 /* Size.swift */, - 3DD4440A313C1549571DFFD90CC80816 /* Type.swift */, - 9B46F0FD5099394A54CC0B782A3174A2 /* Version.swift */, - 1C8789940CD139F9538B37087A2F5562 /* Support Files */, - ); - path = Device; - sourceTree = ""; - }; - 2FCA2B844D768D254C3C60CAF85C761C /* Products */ = { - isa = PBXGroup; - children = ( - A91816A53FCF7990A9D4EBC61EB61A8B /* Device.framework */, - AC49A9B9C69AB35D91521853DF9D68E8 /* Pods_RxMarbles.framework */, - 7AC495DC61B8A5578813D9377ECA6331 /* RazzleDazzle.framework */, - 22A9FD8063B1D9D111691983AF13CEA3 /* RxAtomic.framework */, - 43A6BB1E01CC5C310AADDAF8FBA142B1 /* RxCocoa.framework */, - 317854D44B181431DE7850F6A696822D /* RxSwift.framework */, - ); - name = Products; - sourceTree = ""; - }; - 3AEE5328B8A7F4DD2D36E5948A851BE2 /* Support Files */ = { - isa = PBXGroup; - children = ( - AADBF1E3B66CDE0572B6E101E3680A09 /* RxCocoa.modulemap */, - C14B49D5D37DA615837BA418DBE84538 /* RxCocoa.xcconfig */, - ADEF28EF72FA5EADBCA73E10133C9A5C /* RxCocoa-dummy.m */, - 74C46F1B3D823290F9C6EF24D6D8DBB4 /* RxCocoa-Info.plist */, - 882735C111DB6C435C041F2BA9DFD201 /* RxCocoa-prefix.pch */, - 06BE10A3B57CAC048B0BC8707F6DC5A6 /* RxCocoa-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/RxCocoa"; - sourceTree = ""; - }; - 4DFFADB6D5575412AF4242B011AD8022 /* iOS */ = { - isa = PBXGroup; - children = ( - 1BE9B28F05C2938E3DE46CE07CB230A6 /* Foundation.framework */, - CD51C735F85F7CCE1846934F6C435C05 /* UIKit.framework */, - ); - name = iOS; - sourceTree = ""; - }; - 53FF71AB861A89BC687F8B75F1B523EC /* RxCocoa */ = { - isa = PBXGroup; - children = ( - 5044F52B5D04A814087B30A1381BBD60 /* _RX.h */, - 37ADE74943E691FA5B93F15F902159FD /* _RX.m */, - B60BC18910D8FBBBFB9F4CAB40A6B79C /* _RXDelegateProxy.h */, - B75F0CE8E66CB9C24AF39ECB81A7869A /* _RXDelegateProxy.m */, - D8B27F7619D25B430883A94468866374 /* _RXKVOObserver.h */, - 20DE32C24D473BB4FC6E61DC65DF3839 /* _RXKVOObserver.m */, - 3777A66226885A1FF9D6A2D5220FBFD0 /* _RXObjCRuntime.h */, - 0DD45AB2A6EC364DE6724B2DB34F24C2 /* _RXObjCRuntime.m */, - 041654355F73C56A9846BCE924973D4D /* Bag.swift */, - 65D1120A26DDAF64F0A88B6E974E20F9 /* BehaviorRelay.swift */, - 88EBEFBAE57FCE0A13FA25AFFD9DDB1E /* BehaviorRelay+Driver.swift */, - BF9B8F2BB78DCC11EC0FE83834E3B521 /* Binder.swift */, - AA706F2B9F335F69BE04056DB1AEA3EE /* ControlEvent.swift */, - F587009CBA6861414A9EDE262ADF049C /* ControlEvent+Driver.swift */, - 9AD9780CB0378AEECA3FF8C5D99497B9 /* ControlEvent+Signal.swift */, - 714FEE3E7137A3D6B06B083F4298CB33 /* ControlProperty.swift */, - 8A5D8FA0381E3404CB2BE260A8BFDD51 /* ControlProperty+Driver.swift */, - 41D0AA5B1C32E9636D06444DE10D7ABB /* ControlTarget.swift */, - 6DFF94A48CD3F1F09FB70024C443F31C /* DelegateProxy.swift */, - 22A489B9AB8A5DBFA353A01FF8C8A01F /* DelegateProxyType.swift */, - E18B7D005597EBC146E9F1219E608449 /* Deprecated.swift */, - 0154CCF68730B76BAFB6850AB1A16EAE /* DeprecationWarner.swift */, - 07FDCAD130005F392D6433135D00B685 /* DispatchQueue+Extensions.swift */, - 442041F330974213D1C38937D9219837 /* Driver.swift */, - EEF5F0B0E948446A608305DD841F36F2 /* Driver+Subscription.swift */, - 44EE0F1D3B0D253A8E659566E961E4B0 /* InfiniteSequence.swift */, - D0BEC743077AB78F1FA6C3FEFEED1D07 /* ItemEvents.swift */, - 57EC94400CB9230C637283FA6726004E /* KeyPathBinder.swift */, - 57A65C4D3AE3B332B5321D9DCC6D1792 /* KVORepresentable.swift */, - 86C3AA46C36FB94C57FFAE02D4CE2184 /* KVORepresentable+CoreGraphics.swift */, - 71C38CCFE21232E4F4BA7A0D9A058368 /* KVORepresentable+Swift.swift */, - BB93B70D6A565ED3F045D842111FA486 /* Logging.swift */, - 0CF62317A38FB9CBB7C470BE50F6C0E2 /* NotificationCenter+Rx.swift */, - 40893D141453378E88C67E887D1349DD /* NSButton+Rx.swift */, - 1416835114B99651ED5A54DDA449B7B7 /* NSControl+Rx.swift */, - 319F24244D1D3D76156084CDE767F52C /* NSImageView+Rx.swift */, - 7776001B59529886F3351D8712307B64 /* NSLayoutConstraint+Rx.swift */, - 5EABB80C24936AC11FC9647790749C1F /* NSObject+Rx.swift */, - 54BC1A142E15EBB9A72F508703E8E5C8 /* NSObject+Rx+KVORepresentable.swift */, - 471D0B2B4624AF2AB271689EB877543F /* NSObject+Rx+RawRepresentable.swift */, - 883B26A224580B823F189308029B4EE1 /* NSSlider+Rx.swift */, - 6190125FD9C7F9D729DA119E455A5CCE /* NSTextField+Rx.swift */, - A789567B0FA25406FE49474A6AEA808F /* NSTextStorage+Rx.swift */, - 0112AB5EB24FB05A430BB92034CD56D6 /* NSTextView+Rx.swift */, - 851FB8467EA27F9454BD7D8740CFA954 /* NSView+Rx.swift */, - B169A8F35C4B65ABB53FA9D20A73FD2E /* Observable+Bind.swift */, - 0C35335E2B2D45FE20C4DD87C6F815C6 /* ObservableConvertibleType+Driver.swift */, - D8FC6F1B5414B75DBDFEA02EB86F984C /* ObservableConvertibleType+SharedSequence.swift */, - 748752B7F7538CBD597AD7A5638352DB /* ObservableConvertibleType+Signal.swift */, - 89AAD9BCC42332AA44B0CA435D487C78 /* Platform.Darwin.swift */, - 2824479CAD832ACE51CC3C538F936342 /* Platform.Linux.swift */, - 755AE0F416B9B035C99E3EA06F84EC11 /* PriorityQueue.swift */, - 2395D732095EBF2530576D082BC9A074 /* PublishRelay.swift */, - 3969E8118539E8B39A43E3EC98A5AB9B /* PublishRelay+Signal.swift */, - D2D4010CDDE76D31AE266B9E27A401A5 /* Queue.swift */, - 2D85565EBE97493197C9F92A8CD89EF7 /* RecursiveLock.swift */, - A1CCDFD2798852529E201DACB849FA39 /* RxCocoa.h */, - EA0D6DF9FAC731C8F640C07FFB3FDB8B /* RxCocoa.swift */, - 4E57DA91E276839E3DB9A0514E962FBA /* RxCocoaObjCRuntimeError+Extensions.swift */, - 672574026D4851425F5061BAE7BD6E96 /* RxCocoaRuntime.h */, - 6461322BF366BC4E11DD6096CC11F40F /* RxCollectionViewDataSourcePrefetchingProxy.swift */, - 9E09D4867BF3492CAE00B8A2BD176484 /* RxCollectionViewDataSourceProxy.swift */, - EBB9FF3CA414A7E1742A8C10A9E56CF2 /* RxCollectionViewDataSourceType.swift */, - 82E386CB547ADE122C9DBF4F6C146EF6 /* RxCollectionViewDelegateProxy.swift */, - 072B136D8275D4D676925AC5268371E8 /* RxCollectionViewReactiveArrayDataSource.swift */, - 1EE239A17E6BC69454653085E4A89AB7 /* RxNavigationControllerDelegateProxy.swift */, - 09465A5DB43A878555E01C9DF2CB7A74 /* RxPickerViewAdapter.swift */, - D6FC2CAAFEAD74100C50805AD6B2772A /* RxPickerViewDataSourceProxy.swift */, - 964E580433D098135AE6AF7268ABE401 /* RxPickerViewDataSourceType.swift */, - 074E9C3246D72A5F977D2618EC7FA9D3 /* RxPickerViewDelegateProxy.swift */, - 7AEFA8DE0F659B1AD19747F34D588738 /* RxScrollViewDelegateProxy.swift */, - 90CEA42C24FDD48ED20234DF2B1C8214 /* RxSearchBarDelegateProxy.swift */, - 2E302224222610254BE5697C06906C92 /* RxSearchControllerDelegateProxy.swift */, - 65320A7EF8EF0E1650170C84EC00EA6B /* RxTabBarControllerDelegateProxy.swift */, - 5EDC40850064057CB51790E198A5AE87 /* RxTabBarDelegateProxy.swift */, - AE26D9E2504A009561F3CB3688930B39 /* RxTableViewDataSourcePrefetchingProxy.swift */, - 4CE6D1C2977823FDDB8B0DD5817A0B9D /* RxTableViewDataSourceProxy.swift */, - 1A306300795CBBBCA6CA91CE3A6845BD /* RxTableViewDataSourceType.swift */, - 54542C6623304ECEFBBA254945E11FED /* RxTableViewDelegateProxy.swift */, - 4D9F41B3B6F8D049C2092C7724C4A93C /* RxTableViewReactiveArrayDataSource.swift */, - 1C5FC9527F0BBB4956C6FE63A7881E90 /* RxTarget.swift */, - BD7FD9C2427C82183EE014F95F58F94D /* RxTextStorageDelegateProxy.swift */, - 89292F6F1704AA87FCFD115382E80C21 /* RxTextViewDelegateProxy.swift */, - FA1D03C4A0B72389FC4A0E1BCCAA85BC /* RxWebViewDelegateProxy.swift */, - B095AA9255123290D41EF1E7CD5C52D9 /* SchedulerType+SharedSequence.swift */, - 5F64D79EBC0BB27701A8D9F031DE5E7E /* SectionedViewDataSourceType.swift */, - CF6D9830CF23CC0082409786DE617D75 /* SharedSequence.swift */, - AA944F0EB722D186851045218D1DE8F3 /* SharedSequence+Operators.swift */, - 5F8E0DF5F174AA2F4354DF9A12B7866C /* SharedSequence+Operators+arity.swift */, - 3D49DE4F2765C060F76FC450F81DDD69 /* Signal.swift */, - F7CA2207FDF25B9134F189B2BFEDD52B /* Signal+Subscription.swift */, - D54F1C75FC8DE46238B4A94BAE5E34DD /* TextInput.swift */, - 1937565F7767B276AB6421AB3F102ECA /* UIActivityIndicatorView+Rx.swift */, - B4B8833EC8FA2CCBA605F0B6413A0F24 /* UIAlertAction+Rx.swift */, - E9092D8BA61F885C6D7E41C3D8C81326 /* UIApplication+Rx.swift */, - C2A5E3A7021A47B6F3BEA50AC7D57FF9 /* UIBarButtonItem+Rx.swift */, - 1CA882AD004F24BEBBBB5271DCDD1941 /* UIButton+Rx.swift */, - 97484130F1EA0A3FEFCC8CA97B2F49C8 /* UICollectionView+Rx.swift */, - D81A756F503B7024BA1F75DFDA24DC73 /* UIControl+Rx.swift */, - E740D322623AFAA208B62D9B4EA69337 /* UIDatePicker+Rx.swift */, - 4A761F73E5D5A6818383F8C40B17D36C /* UIGestureRecognizer+Rx.swift */, - 5CDD6F462B1D1E217536C24EC2C3C198 /* UIImageView+Rx.swift */, - 2952EA37A6BF7A10777DF0E0E7455017 /* UILabel+Rx.swift */, - 646175F9897EB10A8527F6A1EDFA0257 /* UINavigationController+Rx.swift */, - B90CFB619225FFD11A1EEB4D6AD8A589 /* UINavigationItem+Rx.swift */, - 6CE50CE5D6C77F37A1897C65CB63441B /* UIPageControl+Rx.swift */, - 98CE806672EFF46D6D41DBA3F58AAC8D /* UIPickerView+Rx.swift */, - B5C8C8EF1A8E41A208CDD6EDAE7BD2AA /* UIProgressView+Rx.swift */, - DFBB9C8550ABFB3D0D46C43ACC712DEA /* UIRefreshControl+Rx.swift */, - 865992923F7442440E737260E88BA7B1 /* UIScrollView+Rx.swift */, - 87BB4F97DB69CC52E0FEC218C862D890 /* UISearchBar+Rx.swift */, - B07499B848422DAE24FE35AC388999FE /* UISearchController+Rx.swift */, - 4E5C1A9C5AAC15AE2BEE126F18660F25 /* UISegmentedControl+Rx.swift */, - EC7D59990B158F0BCDF2A4EB74127FA7 /* UISlider+Rx.swift */, - B90AAD908D7AE565B99267820AC0A4B2 /* UIStepper+Rx.swift */, - 35F9EBEF28C0185A9AB54DBCB149626E /* UISwitch+Rx.swift */, - B0FB296A0DFF1DE1665F5D6F8300807A /* UITabBar+Rx.swift */, - CCA8DBA8DC9B85C4BF0C30B6FDF91E2E /* UITabBarController+Rx.swift */, - FF8D8B58603FA8C7690BEA4C0AC96F69 /* UITabBarItem+Rx.swift */, - 0C52E3B7C56E39082F21FA19CC8537EC /* UITableView+Rx.swift */, - 83626A82F70A0C11DF715A93D0F4E91B /* UITextField+Rx.swift */, - 5FA6CF686DD0DC0AA064346A54EC2133 /* UITextView+Rx.swift */, - AE84AEF2F5F4DCA245C787AED3B7E254 /* UIView+Rx.swift */, - 7260CCA1F5DB3D3557506A93A6ED3E6E /* UIViewController+Rx.swift */, - EBB7F761838ED112C7DC49B035AEC4B4 /* UIWebView+Rx.swift */, - 903EE6B944E1248CFDC309BCE9400B77 /* URLSession+Rx.swift */, - 3AEE5328B8A7F4DD2D36E5948A851BE2 /* Support Files */, - ); - path = RxCocoa; - sourceTree = ""; - }; - 571179050160FC927BB4CD536B9AB489 /* Frameworks */ = { - isa = PBXGroup; - children = ( - A952D444D68F63C3CB4D91E2E1A217AE /* Crashlytics.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - 5836E6610990491AEB5531EDFF61D1FC /* Crashlytics */ = { - isa = PBXGroup; - children = ( - A7D5A70E874FC87FD1E15E41A31526A6 /* ANSCompatibility.h */, - 2B235072D0BF63277C71D57AFA1F30CB /* Answers.h */, - 513D1E6C60C45083F34FAB956BB8B5D0 /* CLSAttributes.h */, - B909C07507046E2BC1D06FADED3561CF /* CLSLogging.h */, - 101E3492F87C0EAC7EAB3146EC7DCCFD /* CLSReport.h */, - 54E1D22374FC0337074F26C49AC24D75 /* CLSStackFrame.h */, - AD5691BECC40A4DF48254849D02B66F0 /* Crashlytics.h */, - 571179050160FC927BB4CD536B9AB489 /* Frameworks */, - CF7E0C5B17E0BB7B2C55D40B8F0CA39B /* Support Files */, - ); - path = Crashlytics; - sourceTree = ""; - }; - 6382537F66B2AA92E079DC981C43BC0C /* Targets Support Files */ = { - isa = PBXGroup; - children = ( - A4B78AA340D692C21C04E4919162B0D8 /* Pods-RxMarbles */, - ); - name = "Targets Support Files"; - sourceTree = ""; - }; - 88B378E34C5F9199D53D8FE421E826E2 /* Pods */ = { - isa = PBXGroup; - children = ( - 5836E6610990491AEB5531EDFF61D1FC /* Crashlytics */, - 20208E7DC99665BB77756239DBE60387 /* Device */, - 19DF836C3CB0EF0A435787696882D845 /* Fabric */, - 8A9C88D1A9409FE238BCCCEEE359DA59 /* RazzleDazzle */, - D4F182E8627A59FBD862B23AA7B8B521 /* RxAtomic */, - 53FF71AB861A89BC687F8B75F1B523EC /* RxCocoa */, - DD26AD5867922E3B6AAD9735CE3ABECE /* RxSwift */, - ); - name = Pods; - sourceTree = ""; - }; - 8A9C88D1A9409FE238BCCCEEE359DA59 /* RazzleDazzle */ = { - isa = PBXGroup; - children = ( - A802605644399423ADE44C7E05A0E569 /* AlphaAnimation.swift */, - EEFA4FE79D3B86A2428E4889BDBA7C28 /* Animatable.swift */, - 17584F332FDCF7C029C149E24C3DB32A /* AnimatedPagingScrollViewController.swift */, - 7A036009FF5AA1E3CF187BC09CA47892 /* Animation.swift */, - F9B917FE4D4E3DCCE1A7627F240DB8F8 /* Animator.swift */, - 46E805276E5D0BEF8B0F6B2D9C008322 /* BackgroundColorAnimation.swift */, - B561C3BC903A70ECD592D81286515EEE /* ConstraintConstantAnimation.swift */, - 76305C79124B58CFC751BD88347319AB /* ConstraintMultiplierAnimation.swift */, - 8E1F54087199695D45CA4820F20061AC /* CornerRadiusAnimation.swift */, - 13629AE581CB1D694C844CDE46848A17 /* CubicBezier.swift */, - 1136EDF905D639E6B90F1D6058946C77 /* EasingFunction.swift */, - B95247ACC995B53C3BA6E7CA6E712701 /* Filmstrip.swift */, - B11036255BF83F2062E3115BBF011906 /* HideAnimation.swift */, - 031552DA9252D395A26E1278661DF165 /* Interpolatable.swift */, - 7B66BEEAE8BCCBE2427DD828F311C2CE /* LabelTextColorAnimation.swift */, - DA29E78D0AAB1C31FF771C68B657EF9A /* LayerFillColorAnimation.swift */, - 731C309602E931A02B76AF007544B15E /* LayerStrokeColorAnimation.swift */, - 2039CF588DE894B82AAD543648C47718 /* LayerStrokeEndAnimation.swift */, - 4970F2DCF9C5BFF9F8238645AFEB8106 /* LayerStrokeStartAnimation.swift */, - EE28D63DDBC1F0FABB6D2CCBED7294A6 /* PathPositionAnimation.swift */, - 11A35D78E7049333407692A6BC0B55BC /* RazzleDazzle.h */, - A0A507209DC0F96733203ACF556C8F36 /* RotationAnimation.swift */, - 2FB52552197EFC9D6F84479A406693F4 /* ScaleAnimation.swift */, - 84446C679FFCF8098FC8F1E67F53E3D4 /* ScrollViewPageConstraintAnimation.swift */, - C28617354D02B7330688A236DA2BA6DF /* TranslationAnimation.swift */, - F4E627B0CE9ECDF683D071BBC5DB2193 /* UIView+Transform.swift */, - E62D9D0BAF5A560B530D91214E56D22B /* Support Files */, - ); - path = RazzleDazzle; - sourceTree = ""; - }; - 9143AC4AA5477F920FF71B4163557519 /* Support Files */ = { - isa = PBXGroup; - children = ( - 0388BAC18257BA89D87C3B142D2AAE0F /* RxAtomic.modulemap */, - 7340427056BDED84C2252861F6B9EABC /* RxAtomic.xcconfig */, - 6BEFC8CC3E364CF0434BEEC8B8705ED1 /* RxAtomic-dummy.m */, - 98772D395BCD8E3CC61F726D347146A0 /* RxAtomic-Info.plist */, - 2F4C762DAEB7107750438AEFC5220505 /* RxAtomic-prefix.pch */, - 7A800E335A652437228A68BD9E74EDE8 /* RxAtomic-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/RxAtomic"; - sourceTree = ""; - }; - 9EAF63472E85E55FAE01CDC68F8E4C48 /* Support Files */ = { - isa = PBXGroup; - children = ( - 46A65ADC9BF0E1238E17A1E35D268CCE /* Fabric.xcconfig */, - ); - name = "Support Files"; - path = "../Target Support Files/Fabric"; - sourceTree = ""; - }; - A4B78AA340D692C21C04E4919162B0D8 /* Pods-RxMarbles */ = { - isa = PBXGroup; - children = ( - B183F15C16F53920BD0A6E1FAE3EE781 /* Pods-RxMarbles.modulemap */, - D4B1F7AD909B1AF74462C5F58053CCAD /* Pods-RxMarbles-acknowledgements.markdown */, - BC9C4AF429CF47015D5BF135000F465B /* Pods-RxMarbles-acknowledgements.plist */, - 8030661F911469BF694D515D1C1FAD13 /* Pods-RxMarbles-dummy.m */, - 0D7A46CBBC5A521C332FA34A5F797818 /* Pods-RxMarbles-frameworks.sh */, - D1A3B4FA79031C384A84D0111FF4AF3A /* Pods-RxMarbles-Info.plist */, - CF1795E92D83C9DEB888AA6E21629FEB /* Pods-RxMarbles-umbrella.h */, - 52FE60501AAE1A7B3916373D64B2EC97 /* Pods-RxMarbles.debug.xcconfig */, - 0E1A4C952A04A0384A6407D303300F41 /* Pods-RxMarbles.release.xcconfig */, - ); - name = "Pods-RxMarbles"; - path = "Target Support Files/Pods-RxMarbles"; - sourceTree = ""; - }; - C08820A75BF0B808F63B88F8F08326CC /* Frameworks */ = { - isa = PBXGroup; - children = ( - D669BF6DDC4FA2418FBBF33823438E8D /* Fabric.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - CF1408CF629C7361332E53B88F7BD30C = { - isa = PBXGroup; - children = ( - 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, - D9FF836EA1081CD0C032A757887A3551 /* Frameworks */, - 88B378E34C5F9199D53D8FE421E826E2 /* Pods */, - 2FCA2B844D768D254C3C60CAF85C761C /* Products */, - 6382537F66B2AA92E079DC981C43BC0C /* Targets Support Files */, - ); - sourceTree = ""; - }; - CF7E0C5B17E0BB7B2C55D40B8F0CA39B /* Support Files */ = { - isa = PBXGroup; - children = ( - DAB5D8B1731B0CB350F13792447E0342 /* Crashlytics.xcconfig */, - ); - name = "Support Files"; - path = "../Target Support Files/Crashlytics"; - sourceTree = ""; - }; - D4F182E8627A59FBD862B23AA7B8B521 /* RxAtomic */ = { - isa = PBXGroup; - children = ( - 6767A2CA4CF780848BBC0D3386C21026 /* RxAtomic.c */, - 3132DE9CF645E9408F34E258B3AA5E00 /* RxAtomic.h */, - 9143AC4AA5477F920FF71B4163557519 /* Support Files */, - ); - path = RxAtomic; - sourceTree = ""; - }; - D9FF836EA1081CD0C032A757887A3551 /* Frameworks */ = { - isa = PBXGroup; - children = ( - D6326E97846847436854F4DA6B3603E2 /* RxAtomic.framework */, - 210E83450526D7112A3C88C88896A0E9 /* RxSwift.framework */, - 4DFFADB6D5575412AF4242B011AD8022 /* iOS */, - ); - name = Frameworks; - sourceTree = ""; - }; - DD26AD5867922E3B6AAD9735CE3ABECE /* RxSwift */ = { - isa = PBXGroup; - children = ( - 46857D4DE63DB7FC73DF4C7CEA1E40BC /* AddRef.swift */, - 5443E9ACEEAA26C48EBEB7FBFC5A0508 /* Amb.swift */, - C2136713323B867CFD71CDD9EE06DA97 /* AnonymousDisposable.swift */, - 1808D97070F742AE72A7761C9AABA708 /* AnonymousObserver.swift */, - 4E4DBFFA151F3ADA53C06525236E7F32 /* AnyObserver.swift */, - E284F70F8B0E5100DDC0288D8C624EB1 /* AsMaybe.swift */, - F885C12F1C3A04D4544401C4A113C1A3 /* AsSingle.swift */, - A6B46C31ECDC6160CAEB560087043EC2 /* AsyncLock.swift */, - ACA0FD1D3C8D2D6CD31CC4250AF13F78 /* AsyncSubject.swift */, - 005BC714A4F6FA7D28179FB87D3665AB /* AtomicInt.swift */, - 72B23EDE3937A355A7BDB3443711E394 /* Bag.swift */, - FAB6E76DD33EAAB68CD69A0A57847044 /* Bag+Rx.swift */, - E7E3F56DC5E5C300E2B053A28DBEA448 /* BehaviorSubject.swift */, - FABD168ED9560C339334B4A885AEF217 /* BinaryDisposable.swift */, - 8B0BF330D0DCB0C600B0202F29CBAB84 /* BooleanDisposable.swift */, - 92FCB48915173EA1E84E118EB81EEC13 /* Buffer.swift */, - B9D9B651376E4506B8F481C05582117B /* Cancelable.swift */, - 6B375FE0493D78218B36A26C830CDFEA /* Catch.swift */, - 5E9B9DAD3DB6D6241BF23D03C4D28C23 /* CombineLatest.swift */, - 182AE135DCC5EE3459F153CBC34D714A /* CombineLatest+arity.swift */, - E236A84BFA064EDA48A5153004CBABF9 /* CombineLatest+Collection.swift */, - 336DD76935D9C53C4D8EAA5F9E86DC83 /* Completable.swift */, - C86FC0B5A941C44043FE6871A917FE2D /* Completable+AndThen.swift */, - E449318A9A4C416F93D8461C5C4BAC7D /* CompositeDisposable.swift */, - BAC818DA36375CB7B1AC66228CAFD552 /* Concat.swift */, - 60F321C3FF9B6E97D77AA04FDB718140 /* ConcurrentDispatchQueueScheduler.swift */, - 9F5BB9E3BFEB6BBE37573A70837E5909 /* ConcurrentMainScheduler.swift */, - 2524DE69A80DACE4B4D8B20D0AAC997A /* ConnectableObservableType.swift */, - 14629E7FDBD22844F834FA2E43818D59 /* Create.swift */, - 6784DF839AF5D9E730B38AE391C51C07 /* CurrentThreadScheduler.swift */, - 627AD7B9292214390F0716DBACB6A1C5 /* Debounce.swift */, - 7BD90C15A9C981B400F76D11BAA63061 /* Debug.swift */, - 8F3C781C164CABF4C5D1EC61D6622CCA /* DefaultIfEmpty.swift */, - D26263970C19524126239A5C594FA059 /* Deferred.swift */, - C2742AEB475770D3B81B8C446BAC4487 /* Delay.swift */, - C2EA6DD6EFEA94F2175D434B3E4C1B26 /* DelaySubscription.swift */, - D72FE66824E59854DAE6A96F626A0D52 /* Dematerialize.swift */, - F746777F4282B5BD785771D6E90420F7 /* Deprecated.swift */, - 00CD8AD24E5CBC9BB980881E633B6877 /* DeprecationWarner.swift */, - AFB8C2A92BABC9C930730227C33746D7 /* DispatchQueue+Extensions.swift */, - D281694934C33BE668343AC957D89F26 /* DispatchQueueConfiguration.swift */, - 08BBA0DA0EE48981B23D31C214141E3A /* Disposable.swift */, - D25275AD37E8174E1D7DF9717A7C3CAB /* Disposables.swift */, - B9F967CBB59DF8C255D7AF1E26694BAD /* DisposeBag.swift */, - 199C6EDE975DC5011935E4ACCBE3EDC9 /* DisposeBase.swift */, - 0283FBF8B2B9371A5BCB81A9B1B211A8 /* DistinctUntilChanged.swift */, - 5F516CC40A72A8E271549C9A708DE717 /* Do.swift */, - AB6DDD221F6F9B6C2CD257359DF76C72 /* ElementAt.swift */, - 8A71C3681328FFEA048B9AB2DCB44EAA /* Empty.swift */, - 4C92DEAF621B9ED5F39EDA1460727F35 /* Enumerated.swift */, - CC9EDF36DEDAE34DF062686C86783F58 /* Error.swift */, - 1EC36CAE104D86CD8157501E8EB64BF8 /* Errors.swift */, - 99A7D49E68D60CFB4DAE2F9A4A5FC849 /* Event.swift */, - 60DB8601259BF6D13E2BDE1E385CD072 /* Filter.swift */, - 13100EE9423FCCCCEA2DC6CA49805728 /* First.swift */, - 8D128B5FB818C7BB157E985DF138E9F3 /* Generate.swift */, - EA239C3A97C0B63C070969902C06442C /* GroupBy.swift */, - 2DB470D6354EB4EA25A62201E1C77C8A /* GroupedObservable.swift */, - 80F88E2C0585A8785C671318872E8889 /* HistoricalScheduler.swift */, - 537471E3A6F10E472074357C787EAF58 /* HistoricalSchedulerTimeConverter.swift */, - 1452C0246BB4A90187EF61EB8807A4C5 /* ImmediateSchedulerType.swift */, - D59DF2AA2C1F6672F2DCE73C514A5F17 /* InfiniteSequence.swift */, - 4F30CD1DBC7C373591A6FBD48221EF36 /* InvocableScheduledItem.swift */, - 98E19E29204E2AAB359B4783A10BDF70 /* InvocableType.swift */, - 3A7DFE373249F55475E0A73895EF60BC /* Just.swift */, - F573318077C6901EE4E408A9E5F2A12A /* Lock.swift */, - A693F986101905011E3C753BA7D85333 /* LockOwnerType.swift */, - 0A77C15E443A69F472B32837BD5A8B6A /* MainScheduler.swift */, - FD75F7D8B0AF7D73B21BE14907BA147B /* Map.swift */, - AF3BFA798C76323C8321E95B3B8AA8A5 /* Materialize.swift */, - 90DFDB771C4A2A5DFBFC43C2DBBA7806 /* Maybe.swift */, - B3B54231752821F01AC27A3F7171CBC5 /* Merge.swift */, - DBC8A27D6800B727095E45A449265EC6 /* Multicast.swift */, - 1067BEDB5889799D7D2ADED5AB8E43E7 /* Never.swift */, - 36EA4B31F646695C07E8E24B01EC8A74 /* NopDisposable.swift */, - 7637CFDDD1CF6C009627F4EF662FDA92 /* Observable.swift */, - C98088E0EFAFD9B83A037163FC661B00 /* ObservableConvertibleType.swift */, - F0F99512B362525E0A0C1D5C3ED980F4 /* ObservableType.swift */, - D01AB6AF91C3B1A11157752AC90D6D04 /* ObservableType+Extensions.swift */, - B459D266B51CAF52B259E7DCA8ABB248 /* ObservableType+PrimitiveSequence.swift */, - C739FEE49A1F2563BC57CF07392EEDA1 /* ObserveOn.swift */, - 35902AC8B9F608B8A53718A71C95921D /* ObserverBase.swift */, - 2231D483F7F0FF1D362ED0470988AF21 /* ObserverType.swift */, - 4E66CD4C819857BB60B83107EBA7BFD3 /* OperationQueueScheduler.swift */, - B3FA3F7A113994EEAE5D4B01FFC15115 /* Optional.swift */, - CC64D8B5B9A9713FBB2F4483A3E42A59 /* Platform.Darwin.swift */, - 0DE8882B66B95CF40750CD350847E522 /* Platform.Linux.swift */, - E179A3D7CBA0748258E738E3A0A04D6D /* PrimitiveSequence.swift */, - 118E6E14635ADEDC33022ABBF37901F7 /* PrimitiveSequence+Zip+arity.swift */, - A9879BBDF425E57DEF46AC3A12C2EE1B /* PriorityQueue.swift */, - 99D62FE6E51D8501EDEC55F990AD1C74 /* Producer.swift */, - 2F275F59E22257AA787BFAC6C9EDC914 /* PublishSubject.swift */, - 9A5C9F1F93360140AD8123BBAC2ACBF7 /* Queue.swift */, - 7ACF4DE9797D2E25AE60A7FC71503887 /* Range.swift */, - BA9323A3E2FA64AE7A5EE3C53CAD7BC8 /* Reactive.swift */, - 196701C893FDDCA102DB4D29D25E5E23 /* RecursiveLock.swift */, - AF39289A005DCE3C02CC65722865636F /* RecursiveScheduler.swift */, - 688B13A755DC49065B2A7D988B091FDF /* Reduce.swift */, - DFD0789B52105F6EE5397FB08D581642 /* RefCountDisposable.swift */, - D6F67001F4CEC2C837CF6B3172FEE0BB /* Repeat.swift */, - 027C6BF63045E5D286A4A1ABEC4D9A6C /* ReplaySubject.swift */, - D806AF8E68443F52F558F01852703D58 /* RetryWhen.swift */, - D799C60CDB8A8FA665D294EB5F0A5B54 /* Rx.swift */, - 7C59C5B081E3379ECD346A692BD1BDE3 /* RxMutableBox.swift */, - 9544C7C064032E328950536A02676186 /* Sample.swift */, - 920401343A195EAE5F02452149165158 /* Scan.swift */, - 06220AB464B7B42175813CC49F8A19DA /* ScheduledDisposable.swift */, - 8D31FE6F75749BEE34B7FDC44CADA3B0 /* ScheduledItem.swift */, - 3FBE1694691597B4989A788E46E9E269 /* ScheduledItemType.swift */, - 02E2D6CE20378188930B3574994B9189 /* SchedulerServices+Emulation.swift */, - 7F80AD9CE513BFAB38B5587185CFE681 /* SchedulerType.swift */, - 7C75FDB0B0AB9439F7BBFAA056020416 /* Sequence.swift */, - EC93C27D3FAD477F752E8E2FCCE029A7 /* SerialDispatchQueueScheduler.swift */, - 55267B05B5C4C2C3A4B48C3E9DD2C2B0 /* SerialDisposable.swift */, - 5AAF7274B2E78E6313939B8C08437DAB /* ShareReplayScope.swift */, - E61C301333D975D870F9A2B5E2ECF350 /* Single.swift */, - C2677A188D745D02AE3A8E69C2647E52 /* SingleAssignmentDisposable.swift */, - D094060619F37142A6D64CBEBE88F757 /* SingleAsync.swift */, - 5FB6FFEFE03BDE3296279D1999EB385E /* Sink.swift */, - 42B2AA401AAD75F82272C1C07CCB2044 /* Skip.swift */, - 348E1CEBFB5FE626B70502FD61E735C0 /* SkipUntil.swift */, - 1F4728998851493EDD309A9DA57DE57C /* SkipWhile.swift */, - F2688914161408B4D752F2B12CAFDA5F /* StartWith.swift */, - 5E0718722A5BD4C9775BC4004CFD5CE8 /* String+Rx.swift */, - 7809D5F54E6C312C113F9AC249CCB727 /* SubjectType.swift */, - 033D96F8CB184B7FCD248A8A3167DF86 /* SubscribeOn.swift */, - 8FFFFD35E30CA9F6B11BA6D39F87890B /* SubscriptionDisposable.swift */, - DCE60D42FCF20F4A6BD5BD855379A7ED /* SwiftSupport.swift */, - CE18DAA04CD6B699306D9065A5E58CFF /* Switch.swift */, - 56ACB4FCD4784DF482B6F51EC2162610 /* SwitchIfEmpty.swift */, - DBB3424DC5C6751C36CD23B54D01358F /* SynchronizedDisposeType.swift */, - BA95FF6784FA43C6B84FE4AE363CC914 /* SynchronizedOnType.swift */, - 030EC1A40BEF287DF8AAE535E0AFE3FF /* SynchronizedUnsubscribeType.swift */, - 73E1D31669E7A29337CFDA5E00C38AF9 /* TailRecursiveSink.swift */, - FFF1B987DC8565EAB8B146D4E36205D0 /* Take.swift */, - 4DD5E15541C089FFC26195E13519E1C4 /* TakeLast.swift */, - 0392C0FE496E6F52B6816874E8B1D305 /* TakeUntil.swift */, - F22AFDD1CD0056F7E108E8AB4D82F2E2 /* TakeWhile.swift */, - ED92855243C5EC43971A2A2F80A2446D /* Throttle.swift */, - 6DBDDDF41DA221A01D285E20A6ED822C /* Timeout.swift */, - 0C2D61AD3F450BEA15A909C467FAB74D /* Timer.swift */, - 188071BD330B47C7DE7A2D694DB9E22B /* ToArray.swift */, - C8C9CC7C8A38AA898C767541C21E4674 /* Using.swift */, - 42F919DD1C33EF5B2F68662A9334E533 /* VirtualTimeConverterType.swift */, - F76D0E77501A2D6949B808AAF21BC3D8 /* VirtualTimeScheduler.swift */, - 836AFF21E2BA674450E81142AC24FEF9 /* Window.swift */, - 0C4805EAD11879770A7793E8C208FDC3 /* WithLatestFrom.swift */, - 77D4756634966997741E1F6E0F23A09F /* Zip.swift */, - B26781A23478FCA9C8095F33B9169DC9 /* Zip+arity.swift */, - 3EAAF59EBA7C995E5F54BA0470A150D6 /* Zip+Collection.swift */, - EAC54C794A029813588E85B49C48ED09 /* Support Files */, - ); - path = RxSwift; - sourceTree = ""; - }; - E62D9D0BAF5A560B530D91214E56D22B /* Support Files */ = { - isa = PBXGroup; - children = ( - BBFDD9950FCD236A952CBE7B49A2769C /* RazzleDazzle.modulemap */, - 73B3EDAB4CE8DBC95389257B864F91CA /* RazzleDazzle.xcconfig */, - A38E8E92A3280AF37ADAC53F72D0089E /* RazzleDazzle-dummy.m */, - 0165C357B543182C7473B2A94C940515 /* RazzleDazzle-Info.plist */, - D9D63520C396F74C1CD1E1A85076C83F /* RazzleDazzle-prefix.pch */, - F9DB2016B81D4AF91379C77C2C544F51 /* RazzleDazzle-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/RazzleDazzle"; - sourceTree = ""; - }; - EAC54C794A029813588E85B49C48ED09 /* Support Files */ = { - isa = PBXGroup; - children = ( - BA574E5095B52B39BE2038B03C855ADA /* RxSwift.modulemap */, - 70F836C066E7AD472093EB46F624AD23 /* RxSwift.xcconfig */, - 6FAC6954B88485F9B361380F3DAD76FA /* RxSwift-dummy.m */, - F923C7FE7672AD3EC1DEF0691070610F /* RxSwift-Info.plist */, - D30391CE96DB65F196B0DC6DB17E7DEE /* RxSwift-prefix.pch */, - B9C2302BB236D7B559CAE55AA5D35DA5 /* RxSwift-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/RxSwift"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - 19B88DA7D2BD3017FE9CA9D47676009B /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 72B5EEAD97EF22EB9053AE0A5EA026D5 /* RazzleDazzle-umbrella.h in Headers */, - 67D41C2A958F5BC53FDA826C75593896 /* RazzleDazzle.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 20BBC559C432AA111816AD2854A416FF /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 6A0AACD5C2050FAB7799BE3B76FC40F7 /* RxSwift-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 77BCAA34AFF5A4E924EB9D5C76F4D7FA /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 0371CEBA96930021223FD08628E969AE /* RxAtomic-umbrella.h in Headers */, - 0D9FC84690392333F3C073CF2263D212 /* RxAtomic.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E2E3471171E17B5EAC26A76DAE54580 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 48E67D43A128232405095B1FE86D0FD9 /* _RX.h in Headers */, - B7D9C26906E102F482AB429F377EA905 /* _RXDelegateProxy.h in Headers */, - A4213B529852E688927EE4B6C149212D /* _RXKVOObserver.h in Headers */, - 2BE1444F5AE35953C3A50E28CA518447 /* _RXObjCRuntime.h in Headers */, - DF1451985A464DA14974273F8A7C0032 /* RxCocoa-umbrella.h in Headers */, - 9300DE93BE6DDC7787B8197E9A8262D6 /* RxCocoa.h in Headers */, - C269363FDA309481824F9ECDF05872B3 /* RxCocoaRuntime.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - B46982DD4B4C8CEE5DE478C672514CC5 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 10C7AAD533705369D41C7FAFD7B7381F /* Pods-RxMarbles-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - BCAC3B8B5D0E611D6F323502388DC2FA /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - EE9F71B3DFEE851EF7D404EE47D92D35 /* Device-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - 11DAE99304EBBD9730EEFE17217F05A6 /* RxCocoa */ = { - isa = PBXNativeTarget; - buildConfigurationList = 07E113A7E36084CBD6C8AF608F265903 /* Build configuration list for PBXNativeTarget "RxCocoa" */; - buildPhases = ( - 7E2E3471171E17B5EAC26A76DAE54580 /* Headers */, - 6822EF6691AB8B36315D12FD2971D8A0 /* Sources */, - B1641843140DFD26FABAE0F668884122 /* Frameworks */, - C21919708B50E5AFC7B66396CD7D22C4 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 7E16887521D32802508E058878041D69 /* PBXTargetDependency */, - ); - name = RxCocoa; - productName = RxCocoa; - productReference = 43A6BB1E01CC5C310AADDAF8FBA142B1 /* RxCocoa.framework */; - productType = "com.apple.product-type.framework"; - }; - 165E505CDDBAE0DD59C2BA848C3F9CE5 /* RxAtomic */ = { - isa = PBXNativeTarget; - buildConfigurationList = 110A63084CC4BF3D36FF006004719E72 /* Build configuration list for PBXNativeTarget "RxAtomic" */; - buildPhases = ( - 77BCAA34AFF5A4E924EB9D5C76F4D7FA /* Headers */, - 9CEA28137641FDB581DD5A7655BBEE32 /* Sources */, - E08436FFC7F98639D43A158BEA5364AB /* Frameworks */, - 019248A5485D8D0BC84C59FD5D2B27A8 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = RxAtomic; - productName = RxAtomic; - productReference = 22A9FD8063B1D9D111691983AF13CEA3 /* RxAtomic.framework */; - productType = "com.apple.product-type.framework"; - }; - 300B49FE225AB2C832961F10F7BFBC05 /* Device */ = { - isa = PBXNativeTarget; - buildConfigurationList = 739F475ED9722ABB6F768A07C44BFF14 /* Build configuration list for PBXNativeTarget "Device" */; - buildPhases = ( - BCAC3B8B5D0E611D6F323502388DC2FA /* Headers */, - 5C981C1C8D7927D6E107ED1191EC48A5 /* Sources */, - 1B1197038D9D4CD3F76FF0305D37F1EC /* Frameworks */, - 19D2BE6B083C659F0D732E4C2B86FA22 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = Device; - productName = Device; - productReference = A91816A53FCF7990A9D4EBC61EB61A8B /* Device.framework */; - productType = "com.apple.product-type.framework"; - }; - 4DE8BB30584186A121C8E4FB166B454F /* RazzleDazzle */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7D1ACEB417C4F90D44592A706FA17065 /* Build configuration list for PBXNativeTarget "RazzleDazzle" */; - buildPhases = ( - 19B88DA7D2BD3017FE9CA9D47676009B /* Headers */, - 840B0973A210B5BEB242D924D4B438ED /* Sources */, - 416EB50B4FE303D96007797BBDFF1BC6 /* Frameworks */, - C8ECBAED16BCBD6C7BBEFA8E2930C434 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = RazzleDazzle; - productName = RazzleDazzle; - productReference = 7AC495DC61B8A5578813D9377ECA6331 /* RazzleDazzle.framework */; - productType = "com.apple.product-type.framework"; - }; - 74D5D701EE11B4B525B37377584FF49B /* Pods-RxMarbles */ = { - isa = PBXNativeTarget; - buildConfigurationList = 19F2AFA78AB66D2152BB39A93129FF40 /* Build configuration list for PBXNativeTarget "Pods-RxMarbles" */; - buildPhases = ( - B46982DD4B4C8CEE5DE478C672514CC5 /* Headers */, - 14FB513C2FA9FF7D4EF8F0F45BCEF2D5 /* Sources */, - 8849A35C840A9EF6BB34AC3B6B781E15 /* Frameworks */, - 1E91772AA6ECBB1D92863B910B44A0FC /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 1D965C9B78617F33212D9C76D824A10B /* PBXTargetDependency */, - EA73C2861BA2137905E4C4B39F04F67E /* PBXTargetDependency */, - E46C704A85A831D837A9B10E53666AE5 /* PBXTargetDependency */, - 8190BC39CBAC51127FF75EEE3C8C9E1A /* PBXTargetDependency */, - 8B499AE3EA12F59857E3F79AE112991D /* PBXTargetDependency */, - 528C8A0ECC4A314D09AC437C6A97B594 /* PBXTargetDependency */, - 665CADB173EFF96FE04DA43EE141F183 /* PBXTargetDependency */, - ); - name = "Pods-RxMarbles"; - productName = "Pods-RxMarbles"; - productReference = AC49A9B9C69AB35D91521853DF9D68E8 /* Pods_RxMarbles.framework */; - productType = "com.apple.product-type.framework"; - }; - BCF6D3EE963C187778AD383FCAF7F509 /* RxSwift */ = { - isa = PBXNativeTarget; - buildConfigurationList = AEA4177A34A3C9A54E84C9E09F945CDC /* Build configuration list for PBXNativeTarget "RxSwift" */; - buildPhases = ( - 20BBC559C432AA111816AD2854A416FF /* Headers */, - A8F4EEE87524D2449F5182D98AE1B763 /* Sources */, - 29B2DEDDEC9BBB7500B5181816FE8CB0 /* Frameworks */, - 07778055F37946DCF7262015C93698C7 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - B40E6BCAB3E277D996657EB748C3580F /* PBXTargetDependency */, - ); - name = RxSwift; - productName = RxSwift; - productReference = 317854D44B181431DE7850F6A696822D /* RxSwift.framework */; - productType = "com.apple.product-type.framework"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - BFDFE7DC352907FC980B868725387E98 /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0930; - LastUpgradeCheck = 1100; - }; - buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = CF1408CF629C7361332E53B88F7BD30C; - productRefGroup = 2FCA2B844D768D254C3C60CAF85C761C /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - ABA9A411BB5A359862E5F1AA6238278E /* Crashlytics */, - 300B49FE225AB2C832961F10F7BFBC05 /* Device */, - D35E9EC86D36A4C8BC1704199FDB3552 /* Fabric */, - 74D5D701EE11B4B525B37377584FF49B /* Pods-RxMarbles */, - 4DE8BB30584186A121C8E4FB166B454F /* RazzleDazzle */, - 165E505CDDBAE0DD59C2BA848C3F9CE5 /* RxAtomic */, - 11DAE99304EBBD9730EEFE17217F05A6 /* RxCocoa */, - BCF6D3EE963C187778AD383FCAF7F509 /* RxSwift */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 019248A5485D8D0BC84C59FD5D2B27A8 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 07778055F37946DCF7262015C93698C7 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 19D2BE6B083C659F0D732E4C2B86FA22 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 1E91772AA6ECBB1D92863B910B44A0FC /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - C21919708B50E5AFC7B66396CD7D22C4 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - C8ECBAED16BCBD6C7BBEFA8E2930C434 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 14FB513C2FA9FF7D4EF8F0F45BCEF2D5 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - BD9D0E14EDB86D26E6DF3872C9B51262 /* Pods-RxMarbles-dummy.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5C981C1C8D7927D6E107ED1191EC48A5 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 63E223F4F3AAA624E3D911DCC536CC99 /* Device-dummy.m in Sources */, - 48198298991B46ED60DBA1380FAB68F4 /* Device.swift in Sources */, - 5E464B10FA689F4AE97C294D50B0B4BD /* Size.swift in Sources */, - 4D68BDE063175C4B278725D1D372BCCD /* Type.swift in Sources */, - 351A73A78B9615283AD1425BF8C5B43A /* Version.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 6822EF6691AB8B36315D12FD2971D8A0 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 5ABC1AEF4CD2C36CB6643C9D087C8153 /* _RX.m in Sources */, - 300857CBF6D3D9F68E1D803FFC418F52 /* _RXDelegateProxy.m in Sources */, - 9A160EF082DA20307D55DC804521E229 /* _RXKVOObserver.m in Sources */, - CDA1E3BA9D60054462A9B6587F1A9956 /* _RXObjCRuntime.m in Sources */, - FE694D24A7601B3113C148A30DBEC094 /* Bag.swift in Sources */, - 34C3427EAD75CE25F69ECE813E428069 /* BehaviorRelay+Driver.swift in Sources */, - EA7F5A4DCDA1A8A5C19E680E99267CE6 /* BehaviorRelay.swift in Sources */, - 93323816AECF23917D7085AA66720B85 /* Binder.swift in Sources */, - EDE1496447B5646A464AC1C954F38F57 /* ControlEvent+Driver.swift in Sources */, - 829B7B1D92DAC21430CB5C7A97560027 /* ControlEvent+Signal.swift in Sources */, - B0F76E1EF3E2A342D0F692116A431C30 /* ControlEvent.swift in Sources */, - 37130658F8BD1F416A05668AB5C1D2B5 /* ControlProperty+Driver.swift in Sources */, - 8E45CFBA3B8DBD27848253C72D5F956A /* ControlProperty.swift in Sources */, - 26024ED882963ABF624A2CE510DBDED5 /* ControlTarget.swift in Sources */, - E0AFCEDA55ED40F80FE311A33B3CE3E0 /* DelegateProxy.swift in Sources */, - F445F168C1FE2F47E1AC4E783ACE2B32 /* DelegateProxyType.swift in Sources */, - 0DE3E771DFB47B5F374EBF232BBE9687 /* Deprecated.swift in Sources */, - D816BAFFBDCAE4CDA6CA2802061E905E /* DeprecationWarner.swift in Sources */, - C084672BA37CD1168700C1E0B6EF91C6 /* DispatchQueue+Extensions.swift in Sources */, - 5B58A8576E069CBA9AE4F61E47AE70A5 /* Driver+Subscription.swift in Sources */, - EB123699B03807324F75F8E0E4322ACC /* Driver.swift in Sources */, - 7C53BF471A54F6786B6840BEAB59726B /* InfiniteSequence.swift in Sources */, - D236557B16637316D735FDAD0F65934D /* ItemEvents.swift in Sources */, - 58D6771FF85EAE12474DA0B5564DA563 /* KeyPathBinder.swift in Sources */, - E052D5DCE6316232A6BBBA96BF342932 /* KVORepresentable+CoreGraphics.swift in Sources */, - 533005D9ED0D5C0515F45999D6421FDB /* KVORepresentable+Swift.swift in Sources */, - 32B9C0FAD4974839A4DB7F120835C2E2 /* KVORepresentable.swift in Sources */, - 7BF63F143C81190CBE6F5CE3DE17C0D5 /* Logging.swift in Sources */, - BF05A5E9A0C8A21D437A8753199A1C75 /* NotificationCenter+Rx.swift in Sources */, - 4021AE54B1052D80D62F68D1CD6EA794 /* NSButton+Rx.swift in Sources */, - 50C995C0D53F558B0F0D10E40ED5046F /* NSControl+Rx.swift in Sources */, - C94CA85AA79A86CDB6410E9F72D9FB15 /* NSImageView+Rx.swift in Sources */, - 3075EA4CE6E7188AA16FC33F5477F466 /* NSLayoutConstraint+Rx.swift in Sources */, - 9B604B33415E7B8B696B92FE42866534 /* NSObject+Rx+KVORepresentable.swift in Sources */, - 03247AB523CCFA0C91DDE7E377F120A1 /* NSObject+Rx+RawRepresentable.swift in Sources */, - DC73836E2D7FD039FC317992C9F01C95 /* NSObject+Rx.swift in Sources */, - A0EA723267FE1DA6E43FC81DA13FC616 /* NSSlider+Rx.swift in Sources */, - 8310552C30EF213BE4CEFA08A7C75451 /* NSTextField+Rx.swift in Sources */, - 45C5D759104075FF1C12B697F788E4F5 /* NSTextStorage+Rx.swift in Sources */, - BCE4679DB5F38737E23D0A1FD373151B /* NSTextView+Rx.swift in Sources */, - 50BDF802A692247A39407ACDD28C9493 /* NSView+Rx.swift in Sources */, - 09BAE023E40E0FCDC26058CDC755E72F /* Observable+Bind.swift in Sources */, - 311704F1B783B5A8698505AB4492A81B /* ObservableConvertibleType+Driver.swift in Sources */, - 97A2776553D4A7915FD1ED9C0A0AB583 /* ObservableConvertibleType+SharedSequence.swift in Sources */, - 43C45269E2BC15B613A0DCBC326810FE /* ObservableConvertibleType+Signal.swift in Sources */, - B17318FB4B49C9F78D6685B4F476DE52 /* Platform.Darwin.swift in Sources */, - 24CFAF92E05B422409A91FCFAA958FEA /* Platform.Linux.swift in Sources */, - 2B83FF422D0CBC049793D751C0CEC9C2 /* PriorityQueue.swift in Sources */, - FB5E83CB28DF6D736ED502D31A4771E0 /* PublishRelay+Signal.swift in Sources */, - 77C3B6F88F6C287E78FD46646D1E6245 /* PublishRelay.swift in Sources */, - 7FD2B81A91D7379523F9F582BE05BC75 /* Queue.swift in Sources */, - F01F3D828BFFDE75B63B594474AB46A2 /* RecursiveLock.swift in Sources */, - AD959FD428E34B258140530283652E8A /* RxCocoa-dummy.m in Sources */, - 37E3C2CE94EB9B343CD9A14FA23E937C /* RxCocoa.swift in Sources */, - 7F32E764EF8278BACB80D9D733778F86 /* RxCocoaObjCRuntimeError+Extensions.swift in Sources */, - 03F3FF918CD6EF1C8F93A2D06ACB1003 /* RxCollectionViewDataSourcePrefetchingProxy.swift in Sources */, - AD78A00D023078CFFD496D9444BA2F09 /* RxCollectionViewDataSourceProxy.swift in Sources */, - 0FFF5EAA1894E843607FA0093F6E65F6 /* RxCollectionViewDataSourceType.swift in Sources */, - 87B4C6934D0572A6395B41B3D2E28AE0 /* RxCollectionViewDelegateProxy.swift in Sources */, - 714C456FAC04256DF34F0CF656D78C39 /* RxCollectionViewReactiveArrayDataSource.swift in Sources */, - DE19FDB975711088A2722E163CA25069 /* RxNavigationControllerDelegateProxy.swift in Sources */, - 849C5FFC50D0D33C0597E6F5245979B5 /* RxPickerViewAdapter.swift in Sources */, - E90141E122E740D46D06015C91F5CD6B /* RxPickerViewDataSourceProxy.swift in Sources */, - D1B8DB513E4EB9BD00E7088966C71121 /* RxPickerViewDataSourceType.swift in Sources */, - 9DCC8FEE3C6A632F918425578DD123B6 /* RxPickerViewDelegateProxy.swift in Sources */, - E47F51502276BB0CDDB662817F29CF8A /* RxScrollViewDelegateProxy.swift in Sources */, - 69878F2410A32FCC166F903B6BE5226F /* RxSearchBarDelegateProxy.swift in Sources */, - 1C97D6890491A7E374E1CB2A85C0DD87 /* RxSearchControllerDelegateProxy.swift in Sources */, - 87BA998362CA9A91E50AE5CEEBD2CFEC /* RxTabBarControllerDelegateProxy.swift in Sources */, - A5F9C61E39C1955773EB6FCF8FDBA6BD /* RxTabBarDelegateProxy.swift in Sources */, - 6DFA8B0E2F54BDD080A1E03CEB77F7F3 /* RxTableViewDataSourcePrefetchingProxy.swift in Sources */, - 8BAB289A637C6DA5FFD61663FDDF6289 /* RxTableViewDataSourceProxy.swift in Sources */, - 3A723414BF7EE46A61280AFD63B212F2 /* RxTableViewDataSourceType.swift in Sources */, - E9D659596863B8C8739E1F84B3984FA2 /* RxTableViewDelegateProxy.swift in Sources */, - E3B099D3482204867AA29E1D9916AE3D /* RxTableViewReactiveArrayDataSource.swift in Sources */, - 9CFB2909EA3F7930D443A90AFB24E2EB /* RxTarget.swift in Sources */, - 8DA1CC993EF98BE8BCA0E7E6FD69B50B /* RxTextStorageDelegateProxy.swift in Sources */, - 9B5C3EC036D696F25963F4347F8B459B /* RxTextViewDelegateProxy.swift in Sources */, - 79FB1AC1FC3E856AE97EE107F2B77D52 /* RxWebViewDelegateProxy.swift in Sources */, - 7C538A9B05C49147B8F1B5C9F85CCFE1 /* SchedulerType+SharedSequence.swift in Sources */, - B30C90BC67CD9A8037C26D0231FA9FAB /* SectionedViewDataSourceType.swift in Sources */, - 6B4C2D6A5FEC98D39C676E2118C6818D /* SharedSequence+Operators+arity.swift in Sources */, - A501CBA9CF44748288CB4BAD148D588A /* SharedSequence+Operators.swift in Sources */, - 8E1791B7020D313A230E9DD5423673DB /* SharedSequence.swift in Sources */, - A6206BCC37683FCCC3135B876BD773F1 /* Signal+Subscription.swift in Sources */, - DE15C7BE84511012CA0E50B59BC217FD /* Signal.swift in Sources */, - 1F4A7CE40A8984CD0A58D55A16EAEE5A /* TextInput.swift in Sources */, - E9B5CB518869B3BDA056D2E9ED739C78 /* UIActivityIndicatorView+Rx.swift in Sources */, - 8C50452FB613E3B65FEE5EFF6D46FC53 /* UIAlertAction+Rx.swift in Sources */, - DA0FD7B8736FB494B6BF3DFA23B83D11 /* UIApplication+Rx.swift in Sources */, - 5FC767597AA3E648EC2005E09765B13D /* UIBarButtonItem+Rx.swift in Sources */, - 6C85BA96583EB9D7F44EB9B9AD17A26A /* UIButton+Rx.swift in Sources */, - 1FE6CD5406C118A817B7660AE96D525B /* UICollectionView+Rx.swift in Sources */, - 492C9A0F64BEA074354EEC0E4AA87CA8 /* UIControl+Rx.swift in Sources */, - 71EBDE9527F962A697043C95100CD793 /* UIDatePicker+Rx.swift in Sources */, - 00F3ED5746B7AE11785F2C0E8F6A5038 /* UIGestureRecognizer+Rx.swift in Sources */, - BE233732D336FA48EC2FC38F30546389 /* UIImageView+Rx.swift in Sources */, - 64F62CCA1C1BAF697544FC5EC6498D73 /* UILabel+Rx.swift in Sources */, - BF21E6C386E0F8AA19BF219BFCB899A7 /* UINavigationController+Rx.swift in Sources */, - 2DD28AE484A754CFB77CA4BB571969E6 /* UINavigationItem+Rx.swift in Sources */, - 55C39CD1F82E16980CBA66D7FF2B0C40 /* UIPageControl+Rx.swift in Sources */, - 1A5E71E6E0B1CFF30A42CEB17B2EE976 /* UIPickerView+Rx.swift in Sources */, - AAD4F384E82A57014E927D40CA85F973 /* UIProgressView+Rx.swift in Sources */, - C9D3F5991544C83FEA2CF22831608555 /* UIRefreshControl+Rx.swift in Sources */, - 2465D605AF800687294C5530858D16C2 /* UIScrollView+Rx.swift in Sources */, - BCCCB066F7ED01F74D5D9314F14489CF /* UISearchBar+Rx.swift in Sources */, - 8D0068E28740357A895EDDF95246B06B /* UISearchController+Rx.swift in Sources */, - 19559AD6443589D66E8C69CAE87ED92B /* UISegmentedControl+Rx.swift in Sources */, - AFFF401447C246111AA439ADE60915CC /* UISlider+Rx.swift in Sources */, - 01E7B9A9411549F00616A0C7F11D1902 /* UIStepper+Rx.swift in Sources */, - E72EA5EBE69C57108C5D26ACAA9778EB /* UISwitch+Rx.swift in Sources */, - 8108AFD56DAF2F6F748498B61D40D0F9 /* UITabBar+Rx.swift in Sources */, - 2BDC498802076C2F3D031DA6C4F1D8B5 /* UITabBarController+Rx.swift in Sources */, - CE2272B6EF798514F8AE6B1D42DCB7CC /* UITabBarItem+Rx.swift in Sources */, - 0F18A44516814495F2CC048FE79DF945 /* UITableView+Rx.swift in Sources */, - DC0E7CBC4ED86C15380652479BDC7A3D /* UITextField+Rx.swift in Sources */, - AB891500DF280B5C7B52345084943596 /* UITextView+Rx.swift in Sources */, - 12F4EEFF70E9048960BDBBA176F868CF /* UIView+Rx.swift in Sources */, - 81E7674E3DA08F321047459724470B86 /* UIViewController+Rx.swift in Sources */, - 86B684E46194594AE284BC478612B1C5 /* UIWebView+Rx.swift in Sources */, - E1A8F34B3D84FF2C8F1AD375857DF67E /* URLSession+Rx.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 840B0973A210B5BEB242D924D4B438ED /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 376D901C13ED4FD3751CF5CDA9B3D829 /* AlphaAnimation.swift in Sources */, - EF7D763DB2FCC944DBDB27E315A4F54A /* Animatable.swift in Sources */, - 9C2F821498814E6CE37FD3A55F69EC1B /* AnimatedPagingScrollViewController.swift in Sources */, - 2E345F0CA619223BEF520A7546C07138 /* Animation.swift in Sources */, - E3C8E0501DAB569C089E61CBB9157CE7 /* Animator.swift in Sources */, - 9E0DE9D9E2867CB003D14439B32FCD18 /* BackgroundColorAnimation.swift in Sources */, - 2B2B5BE1342B27506436179E62406D61 /* ConstraintConstantAnimation.swift in Sources */, - 428A6102576FE6C6F66C869E796D3122 /* ConstraintMultiplierAnimation.swift in Sources */, - 9DDA6AF9523D51E2D1766218B7804BDB /* CornerRadiusAnimation.swift in Sources */, - FD09A8DE6E2CFF4DEE5792F1835A26A1 /* CubicBezier.swift in Sources */, - 68AE01543A830DEB23EBD4572D63C384 /* EasingFunction.swift in Sources */, - 5B4E9CE9262E47D2898E96ADE5EE6C4C /* Filmstrip.swift in Sources */, - 88DC5DFF846C0438298306918DE6C7FC /* HideAnimation.swift in Sources */, - F5100E6DDEBB613B3D6F24A9D7F009B6 /* Interpolatable.swift in Sources */, - FFB2FB52D6DBF3B38E6F806070EA13E9 /* LabelTextColorAnimation.swift in Sources */, - 007537AEDDAF7F5EF396CAE954BFD997 /* LayerFillColorAnimation.swift in Sources */, - 2017098FBC2670C4BFB5359F1CA06896 /* LayerStrokeColorAnimation.swift in Sources */, - 62638714CD180621F402CBDAD3BA775D /* LayerStrokeEndAnimation.swift in Sources */, - 0A8A0DF77A42D6E91DD9E31E82397993 /* LayerStrokeStartAnimation.swift in Sources */, - 4B08C3CA7AF58AA9EF1EF5F0DA954FD3 /* PathPositionAnimation.swift in Sources */, - 67506CDC6FADF6E09D0B561EF893D7BA /* RazzleDazzle-dummy.m in Sources */, - E3C2AC0D963C309AE86D05279B13838F /* RotationAnimation.swift in Sources */, - 55899504187581571B3E763C855CB719 /* ScaleAnimation.swift in Sources */, - B2E12882DBA2D3DCFA778C47B3AE891E /* ScrollViewPageConstraintAnimation.swift in Sources */, - 97BB8A455CE043B1BB6506E0572F8099 /* TranslationAnimation.swift in Sources */, - A23EB3DE7B96BADC8C70ED5C91216234 /* UIView+Transform.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 9CEA28137641FDB581DD5A7655BBEE32 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - F092C69264A5B3539B312464B523D4DA /* RxAtomic-dummy.m in Sources */, - 9EA45ED230E66AD50E1DBE07877C4EAC /* RxAtomic.c in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - A8F4EEE87524D2449F5182D98AE1B763 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 94280D9552043E037B48D61197D034A1 /* AddRef.swift in Sources */, - FD44973662475DD2E7577D9B74EB5F16 /* Amb.swift in Sources */, - 5EDE7C270C9B2C202C6DB4D9350D492F /* AnonymousDisposable.swift in Sources */, - D56486832E57A7B1D553E54681218D01 /* AnonymousObserver.swift in Sources */, - 58E6AC98E445231D31D2ED8B63DA5353 /* AnyObserver.swift in Sources */, - BD59009A35A4BACEBED325F459C379BB /* AsMaybe.swift in Sources */, - AFDE5D9190F5B394C712B2929578C52D /* AsSingle.swift in Sources */, - 763B5FA8982B6A417371C186900BE00D /* AsyncLock.swift in Sources */, - D74AE2542E235F3A3D3FDF20A7970B6D /* AsyncSubject.swift in Sources */, - 41AFB4BE3D3A415F4EBB0458D7B5C703 /* AtomicInt.swift in Sources */, - 6B014FE55FE74DA55B9DAE13AB9AD785 /* Bag+Rx.swift in Sources */, - 236002B8B9A25B5984EE3888FCCA246F /* Bag.swift in Sources */, - 92C5B04849E9A74109265C555767BAF3 /* BehaviorSubject.swift in Sources */, - 8FF0B35F36201D7FD2053831A2098D59 /* BinaryDisposable.swift in Sources */, - 2812AB96FF566726327B0E0A26DD9D12 /* BooleanDisposable.swift in Sources */, - D1BC85C316BCEE885FC626604901B664 /* Buffer.swift in Sources */, - 8A9748F4ABDB59F104DF62E273A63BA2 /* Cancelable.swift in Sources */, - 99F50DD59C761A31E420B51EF1F9930B /* Catch.swift in Sources */, - A50D1D842C0A6E905D21E0526DAF63D6 /* CombineLatest+arity.swift in Sources */, - E6AE2E272A7255FA820DCB55A2095027 /* CombineLatest+Collection.swift in Sources */, - 6608C53229B9D05FD6AE8155F10D41EC /* CombineLatest.swift in Sources */, - 17603EBD42A5935CC7E6BC456930B61B /* Completable+AndThen.swift in Sources */, - C0726A32451E279C68DC158A9D38C634 /* Completable.swift in Sources */, - B6D58BB2F18E50314FD3EA68E66ED4E8 /* CompositeDisposable.swift in Sources */, - C8BC1B80095CA0438E5A0592C91E93C2 /* Concat.swift in Sources */, - BBC770F8487282913B9698E373101EE0 /* ConcurrentDispatchQueueScheduler.swift in Sources */, - 959B36A6B60A0AF7EF1CA5586303CBC4 /* ConcurrentMainScheduler.swift in Sources */, - 919E69C3EEEBE316B1549BC6D4D0589A /* ConnectableObservableType.swift in Sources */, - 76C23EB8550CDA1F715497EB51F08741 /* Create.swift in Sources */, - 99E906A89E960BC3758309666CD28356 /* CurrentThreadScheduler.swift in Sources */, - 69F46CF2F0FD645FCBEA7BCC922CCA4C /* Debounce.swift in Sources */, - 5A0079A73311DD29FFE4DCA50F6ED95F /* Debug.swift in Sources */, - E0F8C6673F4A44E3916863928F072BED /* DefaultIfEmpty.swift in Sources */, - 33A4B1A2476AB50CE2DA1487F9B949B7 /* Deferred.swift in Sources */, - 3E455303819CEB4ED161000307B17176 /* Delay.swift in Sources */, - 66C5260DF81DF5204302EAE0E8532AFF /* DelaySubscription.swift in Sources */, - 2C0EC938FF590C120D4FFF7FDE0E95B4 /* Dematerialize.swift in Sources */, - 01C25234B97DB164BAE12C4D9AE6C79E /* Deprecated.swift in Sources */, - F966A74EBC622357CC8CE9AF60CB8B45 /* DeprecationWarner.swift in Sources */, - AB63865381CFF2722338EBF5C8958F90 /* DispatchQueue+Extensions.swift in Sources */, - C6D4B0C9E7BB7C834AE4FBA36A269844 /* DispatchQueueConfiguration.swift in Sources */, - 25906F9196C04D5EF986C1D318FDE77F /* Disposable.swift in Sources */, - 6CFDCA9A327C94649889D17B514DA2B1 /* Disposables.swift in Sources */, - 4925870F062E705F3F2668D600F6C150 /* DisposeBag.swift in Sources */, - 2802430D2F536295F57CAFC8D90928E8 /* DisposeBase.swift in Sources */, - 3FC3E52857DA3BAB6E550D1BC8AF3B8E /* DistinctUntilChanged.swift in Sources */, - 891931E25F8D2FDBF60640A1A9032F9F /* Do.swift in Sources */, - 017EB3601795F5FBA95FC24A05582C2A /* ElementAt.swift in Sources */, - 27BA06A664FD3C6F30983638CA5C599C /* Empty.swift in Sources */, - DAE5724EE915BB9C43CB6ACE6566FAE5 /* Enumerated.swift in Sources */, - 7D737455457AC04ADCFAFA34B7388F8A /* Error.swift in Sources */, - C8CED70F1AEBEDB19BBBAD787B531C1A /* Errors.swift in Sources */, - 3A572BE7A55DBA4E1E779EC8317B3E45 /* Event.swift in Sources */, - 80A1E01B80BD9E31427F42DEDB6DE466 /* Filter.swift in Sources */, - 303B16BE123C02642E765246C83969F0 /* First.swift in Sources */, - 3C4A760517D1A9A3136F93C20977C019 /* Generate.swift in Sources */, - 91E0A6145C1CA3E0993ADFC61BB7AAF3 /* GroupBy.swift in Sources */, - 28DB3C3F6FD74D19936F8E5072AFF05B /* GroupedObservable.swift in Sources */, - AA7E926BF97AFAB48662BB6ACE12F375 /* HistoricalScheduler.swift in Sources */, - 9429ABC76C6B43E9488948783182396C /* HistoricalSchedulerTimeConverter.swift in Sources */, - E7925AF526BAEB2646E855665384CFF6 /* ImmediateSchedulerType.swift in Sources */, - 9FA07AD4E11BA20B5A12512A2990F410 /* InfiniteSequence.swift in Sources */, - 6A9DCBDB5C88197AC137448E9FEFB496 /* InvocableScheduledItem.swift in Sources */, - 242F5E2444CC656226C08DDC19E19874 /* InvocableType.swift in Sources */, - 53D09602CB96DC3AA2242F0546E1434F /* Just.swift in Sources */, - 56496D20189B91B3112C6C1635688EF6 /* Lock.swift in Sources */, - 1E7D89BF0681235C14E8AE106D98299E /* LockOwnerType.swift in Sources */, - A419AC41B4951965A63B3C292130EE63 /* MainScheduler.swift in Sources */, - 3ED0814A00A951A8DFF4501F7D12C432 /* Map.swift in Sources */, - FECEE1A6D1817189C1EB10F4851E83A6 /* Materialize.swift in Sources */, - 3B358B58349A43CCB44BF830FEBEF3A6 /* Maybe.swift in Sources */, - FE8942A3775545AB205A6589F7B9F01B /* Merge.swift in Sources */, - 2C6EC59E301736D37F6A3A7AA55CFA02 /* Multicast.swift in Sources */, - 1799B9A78CF1886A33EA1D9054B7FBBD /* Never.swift in Sources */, - E204E3B953B58D79A19833D3EC5871E1 /* NopDisposable.swift in Sources */, - 00214B29102311B628EBF37D221E8931 /* Observable.swift in Sources */, - E9C6BB0971B449660BF25AC2807B920E /* ObservableConvertibleType.swift in Sources */, - E87D049A220E961A45698584F30B2E0F /* ObservableType+Extensions.swift in Sources */, - 5C278DB2DD50881ECE13ADCA077FB462 /* ObservableType+PrimitiveSequence.swift in Sources */, - B0FB0B7111D1FEF7F9D7DD161ADDB453 /* ObservableType.swift in Sources */, - 9F939291EFEB01609B2E44E2C76CFA10 /* ObserveOn.swift in Sources */, - 9CB6A8B7D0982CA8A9B4B211A9BF7AF3 /* ObserverBase.swift in Sources */, - DF2F571280440C56EDD02B9573003A9D /* ObserverType.swift in Sources */, - 9668318FD1127781061C4DF9F3A56AD0 /* OperationQueueScheduler.swift in Sources */, - EC9B91457CA7E8E49393E930946E5B67 /* Optional.swift in Sources */, - 3DAE0D5DC9687A78DF167BBF5B32F1DB /* Platform.Darwin.swift in Sources */, - 696AE519B155555782AEBFD6410EF43C /* Platform.Linux.swift in Sources */, - 26371A9B8AD759B0012B33D59032E7B6 /* PrimitiveSequence+Zip+arity.swift in Sources */, - 2F81796F8EED83C15E6C9EFD80410A7B /* PrimitiveSequence.swift in Sources */, - D8B69801FB8E89DC5BDFB8EEA02BCC73 /* PriorityQueue.swift in Sources */, - 13266DDB6DA2414A621F5D0FD818B67F /* Producer.swift in Sources */, - 1A77548363D24E702760D2F2DE83D9E8 /* PublishSubject.swift in Sources */, - CA41E3C8B9D0ADBDBFF93423B9EF6CF9 /* Queue.swift in Sources */, - DBE2725351A34942E6EDF1D7C242A191 /* Range.swift in Sources */, - 6126FF35F0B807E152953CDC8CBC5219 /* Reactive.swift in Sources */, - 2910CCBC8FA7AF22E9922A4976CF9EE1 /* RecursiveLock.swift in Sources */, - FED3C410E41D090783F8E7C8885E454F /* RecursiveScheduler.swift in Sources */, - 6E79CAEF218C802E887C83B436C3919A /* Reduce.swift in Sources */, - DEAF3DCF09273227D03D5862C1A7975F /* RefCountDisposable.swift in Sources */, - 4FD0FC068C431A602529DC3EEC7778D5 /* Repeat.swift in Sources */, - A2C5C161588F17B5F1592EBAD0F1891D /* ReplaySubject.swift in Sources */, - 824BCEC3CACE1439F9A4DFC352C88490 /* RetryWhen.swift in Sources */, - B305766D0DC630B64F1AB3931CA550CF /* Rx.swift in Sources */, - 47B3E59440B786A73A2464EFCCD5C0E0 /* RxMutableBox.swift in Sources */, - 0C33C525D207F9AF849015D5FD62133A /* RxSwift-dummy.m in Sources */, - A656CB057133EBE94294DA168F92C053 /* Sample.swift in Sources */, - 1834350EF7CABCFAED10555DD91AFCFF /* Scan.swift in Sources */, - C4F3F412FD75E9C4038736DD193B5DC5 /* ScheduledDisposable.swift in Sources */, - 73625D342A26E4E6254A191C754172CE /* ScheduledItem.swift in Sources */, - 71A91263A1E8F034C576BAA11129FDC8 /* ScheduledItemType.swift in Sources */, - 2705430AF90CE6D9CB473EB3691E10EF /* SchedulerServices+Emulation.swift in Sources */, - EE68B0DF4CB1CAE539E2D1B238AE812D /* SchedulerType.swift in Sources */, - 7E7D12CA17C841687685CDD6068BFEF5 /* Sequence.swift in Sources */, - 57994526AC2F93B8EAC1CB19962A87B5 /* SerialDispatchQueueScheduler.swift in Sources */, - E7F12662E20E8E94DE30260B8F22E6EC /* SerialDisposable.swift in Sources */, - AA90D7DF1966D79E23106F1F326FAA23 /* ShareReplayScope.swift in Sources */, - 1725FF0CEB52758C2A1147125DBF7120 /* Single.swift in Sources */, - 4F17D6F02F7E229338DE33EAEF134BF9 /* SingleAssignmentDisposable.swift in Sources */, - 8CA7DBD380E0BD5CD6103A059017DE50 /* SingleAsync.swift in Sources */, - B191ECC98F59047E283E40434254DCF1 /* Sink.swift in Sources */, - 2B51213D5896DCC6CCA23F6445DD30D1 /* Skip.swift in Sources */, - 0679F5AEDC804F0B99E0BEFAC3949459 /* SkipUntil.swift in Sources */, - 6EE71ED1F99A13C9F3AE5B7BF202C8D3 /* SkipWhile.swift in Sources */, - A852EF382BD0BBAE3D249061C31C78A0 /* StartWith.swift in Sources */, - 675E5AEA27C079940A9C9C1617520FA0 /* String+Rx.swift in Sources */, - 98B46BA39EB3675D184437256C7DCAFC /* SubjectType.swift in Sources */, - 847C41CFB92361B5173B4F2C633BEDCF /* SubscribeOn.swift in Sources */, - 8414B77D778F5C33DED5784970D5A6AF /* SubscriptionDisposable.swift in Sources */, - 34CBF54240CF7E134BB709179E9437D2 /* SwiftSupport.swift in Sources */, - 6DAF84B2E916ADFB52151C01221F991E /* Switch.swift in Sources */, - 6CA2E5C29628A076078AA5FB976A9431 /* SwitchIfEmpty.swift in Sources */, - D4B9184FAC09B6AE25DF5DCF8136C6ED /* SynchronizedDisposeType.swift in Sources */, - 50F60C8B888BEE61BF46FAF4D0217F4B /* SynchronizedOnType.swift in Sources */, - 7FF36BE329E9D0CE6198360037816871 /* SynchronizedUnsubscribeType.swift in Sources */, - 94FE3EDBBAB489A1C8F087529EAF26A2 /* TailRecursiveSink.swift in Sources */, - 438FDF731AF2052CC8368165CCBDF3A5 /* Take.swift in Sources */, - 35B9D9C2AE72F6EC79B5019EFFA744D6 /* TakeLast.swift in Sources */, - 46CAB374B9CAFD413C4185AB6ED8FB57 /* TakeUntil.swift in Sources */, - 879D951D5C5105B0B8787A900A0DC035 /* TakeWhile.swift in Sources */, - 1BEACECBBD52D7B7D22D939042F2BE84 /* Throttle.swift in Sources */, - 96999C35361D9E695991F0C487D4FDA1 /* Timeout.swift in Sources */, - 20242F3FBB8B6F97CDE6505300A1A28B /* Timer.swift in Sources */, - E6258C2F0A15956DC676885774ECCFB3 /* ToArray.swift in Sources */, - D41E3D796F62B8B5EDF5A6BB606DFEAE /* Using.swift in Sources */, - 5B54481310CFC5848464577E164B43C3 /* VirtualTimeConverterType.swift in Sources */, - 233544AAB24600FC2E7D664D5ECB9113 /* VirtualTimeScheduler.swift in Sources */, - 6C1F42246EF6CE0AD14C5DC8FAE0F4F2 /* Window.swift in Sources */, - 2BEA14B675D4EB5E155CC0E1A7C06B49 /* WithLatestFrom.swift in Sources */, - 9B8B3B4DEDBA5778BCD1FE4BC2FB5C23 /* Zip+arity.swift in Sources */, - C82BC53F3934931EEA8977455F528028 /* Zip+Collection.swift in Sources */, - 3532EF54E229A4C0F702B97CB9AAD8EC /* Zip.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 1D965C9B78617F33212D9C76D824A10B /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = Crashlytics; - target = ABA9A411BB5A359862E5F1AA6238278E /* Crashlytics */; - targetProxy = 46CCCE3246D72019EC69CF13B3E702D3 /* PBXContainerItemProxy */; - }; - 528C8A0ECC4A314D09AC437C6A97B594 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxCocoa; - target = 11DAE99304EBBD9730EEFE17217F05A6 /* RxCocoa */; - targetProxy = F00EEED9F5389179867EE4EA5C493EDE /* PBXContainerItemProxy */; - }; - 665CADB173EFF96FE04DA43EE141F183 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxSwift; - target = BCF6D3EE963C187778AD383FCAF7F509 /* RxSwift */; - targetProxy = D6A0FBFEAFEEA5F288A6AACB3E56B539 /* PBXContainerItemProxy */; - }; - 7E16887521D32802508E058878041D69 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxSwift; - target = BCF6D3EE963C187778AD383FCAF7F509 /* RxSwift */; - targetProxy = 205AC11F322B533D695C7879BD731C06 /* PBXContainerItemProxy */; - }; - 8190BC39CBAC51127FF75EEE3C8C9E1A /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RazzleDazzle; - target = 4DE8BB30584186A121C8E4FB166B454F /* RazzleDazzle */; - targetProxy = FE98DE3101160E0AE7C8C415B480DE13 /* PBXContainerItemProxy */; - }; - 8B499AE3EA12F59857E3F79AE112991D /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxAtomic; - target = 165E505CDDBAE0DD59C2BA848C3F9CE5 /* RxAtomic */; - targetProxy = 68C315137D504C523A8BF1306E44185F /* PBXContainerItemProxy */; - }; - B40E6BCAB3E277D996657EB748C3580F /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RxAtomic; - target = 165E505CDDBAE0DD59C2BA848C3F9CE5 /* RxAtomic */; - targetProxy = EBF766FAFA098124B452C9BF83179EF6 /* PBXContainerItemProxy */; - }; - C9CEFEFAAAEDB8CD947737FA56C849D4 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = Fabric; - target = D35E9EC86D36A4C8BC1704199FDB3552 /* Fabric */; - targetProxy = D465047540D12FD9D95291AE82A76DB9 /* PBXContainerItemProxy */; - }; - E46C704A85A831D837A9B10E53666AE5 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = Fabric; - target = D35E9EC86D36A4C8BC1704199FDB3552 /* Fabric */; - targetProxy = ADA1FCA3ED37199A2A992F6D8F5A0DD8 /* PBXContainerItemProxy */; - }; - EA73C2861BA2137905E4C4B39F04F67E /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = Device; - target = 300B49FE225AB2C832961F10F7BFBC05 /* Device */; - targetProxy = E1CDCCA35E3A26E7C5438871C5795D26 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - 03A02C7D998777F63B0A6C81B43C7659 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 91316719893F1D37C091D2AAFF244172 /* Device.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/Device/Device-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Device/Device-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/Device/Device.modulemap"; - PRODUCT_MODULE_NAME = Device; - PRODUCT_NAME = Device; - 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; - }; - 0F9DE41FC108FC05B463FCAC96ED8EF9 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; - 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 = 9.2; - 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 = 4.2; - SYMROOT = "${SRCROOT}/../build"; - }; - name = Debug; - }; - 29D7133258D5FE6C103D3173CD893ABD /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 0E1A4C952A04A0384A6407D303300F41 /* Pods-RxMarbles.release.xcconfig */; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; - CODE_SIGN_IDENTITY = ""; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = "Target Support Files/Pods-RxMarbles/Pods-RxMarbles-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 9.2; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MACH_O_TYPE = staticlib; - MODULEMAP_FILE = "Target Support Files/Pods-RxMarbles/Pods-RxMarbles.modulemap"; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PODS_ROOT = "$(SRCROOT)"; - PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 2DA055BC5FC11C002A8DEE61BE9C1490 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 91316719893F1D37C091D2AAFF244172 /* Device.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/Device/Device-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Device/Device-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/Device/Device.modulemap"; - PRODUCT_MODULE_NAME = Device; - PRODUCT_NAME = Device; - 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; - }; - 43BB214B5364415392603275F1403F80 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = C14B49D5D37DA615837BA418DBE84538 /* 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; - }; - 5703654C35A3778F810744479F39EAAE /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 46A65ADC9BF0E1238E17A1E35D268CCE /* Fabric.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_IDENTITY = "iPhone Developer"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - SDKROOT = iphoneos; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 5853A48FBDA32542A69CD923EC258CA6 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7340427056BDED84C2252861F6B9EABC /* 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; - DEFINES_MODULE = YES; - 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; - }; - 91F87D0D0070194E6040C63DB50DD407 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 46A65ADC9BF0E1238E17A1E35D268CCE /* Fabric.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_IDENTITY = "iPhone Developer"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - SDKROOT = iphoneos; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 94B07268471D9281AFB1D6C9448E1BE7 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 73B3EDAB4CE8DBC95389257B864F91CA /* RazzleDazzle.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/RazzleDazzle/RazzleDazzle-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/RazzleDazzle/RazzleDazzle-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/RazzleDazzle/RazzleDazzle.modulemap"; - PRODUCT_MODULE_NAME = RazzleDazzle; - PRODUCT_NAME = RazzleDazzle; - 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; - }; - 961D57945D6C2DEBED97B2E5F36EF008 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = DAB5D8B1731B0CB350F13792447E0342 /* Crashlytics.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_IDENTITY = "iPhone Developer"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - SDKROOT = iphoneos; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - A70B3EDC9818C17B4B0AC7E01D588FFC /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = C14B49D5D37DA615837BA418DBE84538 /* 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; - }; - B758FBEC27C09CD6E60596DDF8B1CDBB /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; - 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 = 9.2; - MTL_ENABLE_DEBUG_INFO = NO; - MTL_FAST_MATH = YES; - PRODUCT_NAME = "$(TARGET_NAME)"; - STRIP_INSTALLED_PRODUCT = NO; - SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - SWIFT_VERSION = 4.2; - SYMROOT = "${SRCROOT}/../build"; - }; - name = Release; - }; - C53E5B91DC9EBBA681C3E1228200A53B /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 52FE60501AAE1A7B3916373D64B2EC97 /* Pods-RxMarbles.debug.xcconfig */; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; - CODE_SIGN_IDENTITY = ""; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = "Target Support Files/Pods-RxMarbles/Pods-RxMarbles-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 9.2; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MACH_O_TYPE = staticlib; - MODULEMAP_FILE = "Target Support Files/Pods-RxMarbles/Pods-RxMarbles.modulemap"; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PODS_ROOT = "$(SRCROOT)"; - PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - D2F6CC0254B98CFC7729C1315E1E2724 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7340427056BDED84C2252861F6B9EABC /* 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; - DEFINES_MODULE = YES; - 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; - }; - EC8A48AD5D3C421E75C7978759031B8C /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 73B3EDAB4CE8DBC95389257B864F91CA /* RazzleDazzle.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/RazzleDazzle/RazzleDazzle-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/RazzleDazzle/RazzleDazzle-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/RazzleDazzle/RazzleDazzle.modulemap"; - PRODUCT_MODULE_NAME = RazzleDazzle; - PRODUCT_NAME = RazzleDazzle; - 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; - }; - F050EEFEF0D324A72DE685B6A545796F /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 70F836C066E7AD472093EB46F624AD23 /* 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; - }; - F3F21A4B5BE922C604F8C64830EEE427 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 70F836C066E7AD472093EB46F624AD23 /* 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; - }; - FF7CDF6EC3FDCADCF87AF96625FFC08A /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = DAB5D8B1731B0CB350F13792447E0342 /* Crashlytics.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_IDENTITY = "iPhone Developer"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - SDKROOT = iphoneos; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 07E113A7E36084CBD6C8AF608F265903 /* Build configuration list for PBXNativeTarget "RxCocoa" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 43BB214B5364415392603275F1403F80 /* Debug */, - A70B3EDC9818C17B4B0AC7E01D588FFC /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 110A63084CC4BF3D36FF006004719E72 /* Build configuration list for PBXNativeTarget "RxAtomic" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 5853A48FBDA32542A69CD923EC258CA6 /* Debug */, - D2F6CC0254B98CFC7729C1315E1E2724 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 13B185864087F75D556AC109B2D70BF7 /* Build configuration list for PBXAggregateTarget "Fabric" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 91F87D0D0070194E6040C63DB50DD407 /* Debug */, - 5703654C35A3778F810744479F39EAAE /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 19F2AFA78AB66D2152BB39A93129FF40 /* Build configuration list for PBXNativeTarget "Pods-RxMarbles" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - C53E5B91DC9EBBA681C3E1228200A53B /* Debug */, - 29D7133258D5FE6C103D3173CD893ABD /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 0F9DE41FC108FC05B463FCAC96ED8EF9 /* Debug */, - B758FBEC27C09CD6E60596DDF8B1CDBB /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 739F475ED9722ABB6F768A07C44BFF14 /* Build configuration list for PBXNativeTarget "Device" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2DA055BC5FC11C002A8DEE61BE9C1490 /* Debug */, - 03A02C7D998777F63B0A6C81B43C7659 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 7D1ACEB417C4F90D44592A706FA17065 /* Build configuration list for PBXNativeTarget "RazzleDazzle" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 94B07268471D9281AFB1D6C9448E1BE7 /* Debug */, - EC8A48AD5D3C421E75C7978759031B8C /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - A084C0089544D8EEE7DA4C6D8EEEF9ED /* Build configuration list for PBXAggregateTarget "Crashlytics" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 961D57945D6C2DEBED97B2E5F36EF008 /* Debug */, - FF7CDF6EC3FDCADCF87AF96625FFC08A /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - AEA4177A34A3C9A54E84C9E09F945CDC /* Build configuration list for PBXNativeTarget "RxSwift" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - F3F21A4B5BE922C604F8C64830EEE427 /* Debug */, - F050EEFEF0D324A72DE685B6A545796F /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; -} diff --git a/Pods/RazzleDazzle/LICENSE b/Pods/RazzleDazzle/LICENSE deleted file mode 100644 index 5e9e9e1..0000000 --- a/Pods/RazzleDazzle/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2015 IFTTT Inc - -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/RazzleDazzle/README.md b/Pods/RazzleDazzle/README.md deleted file mode 100644 index 4e24993..0000000 --- a/Pods/RazzleDazzle/README.md +++ /dev/null @@ -1,262 +0,0 @@ -[![Open Source at IFTTT](http://ifttt.github.io/images/open-source-ifttt.svg)](http://ifttt.github.io) - -![RazzleDazzle](./Example/Docs/razzledazzlebanner.jpg) - -[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![CocoaPods Version](https://img.shields.io/cocoapods/v/RazzleDazzle.svg)](http://cocoadocs.org/docsets/RazzleDazzle) - -`RazzleDazzle` is a simple AutoLayout-friendly keyframe animation framework for iOS, written in Swift. Perfect for scrolling app intros. - -![RazzleDazzle](./Example/Docs/razzledazzle-demo.gif) - -`RazzleDazzle ` grew from [`JazzHands`](https://github.com/IFTTT/JazzHands), an Objective-C scrolling keyframe animations library by IFTTT. - -[`JazzHands`](https://github.com/IFTTT/JazzHands) is used extensively in [IF and DO for iPhone and iPad](https://ifttt.com/products), most famously in the app intro. - -## What's `RazzleDazzle` for? -### Scrolling App Intro Animations -`RazzleDazzle` is the easiest way to add scrollview-powered animations to the app intro of your Swift app. If you're adding a scrolling intro to your Objective-C app, check out [`JazzHands`](https://github.com/IFTTT/JazzHands)! - -For some examples of how [`JazzHands`](https://github.com/IFTTT/JazzHands) and `RazzleDazzle` can be used in practice, check out the intros of both [IF and DO for iPhone and iPad](https://ifttt.com/products), as well as the scrolling animations of the buttons in the DO apps by IFTTT. - -### Easy Paging Scrollview Layouts in an AutoLayout World -`RazzleDazzle`'s `keep(view: onPage:)` function of the `AnimatedPagingScrollViewController` is a super easy way to lay out a paging scroll view that does what you expect it to when your app is rotated or used in the new split-screen iPad views of iOS9, a notoriously tricky aspect of getting your apps fully AutoLayout-ready. `RazzleDazzle` sets up an AutoLayout-friendly paging scroll view controller for you, and all you need to do to make your layout respond properly to any view size changes is tell `RazzleDazzle` which page you'd like things on. - -As a bonus, because it's built on top of the animations library, you can even tell `RazzleDazzle` that you'd like one of your views to show up on multiple pages while other views scroll past, with a single call to `keep(view: onPages:)`. - -## Installation - -### Carthage - -`RazzleDazzle` is available through [Carthage](https://github.com/Carthage/Carthage). To install -it, simply add the following line to your `Cartfile`: - -``` -github "IFTTT/RazzleDazzle" -``` - -### CocoaPods - -`RazzleDazzle` is also available through [CocoaPods](http://cocoapods.org). To install -it, simply add the following line to your `Podfile`: - -```ruby -pod "RazzleDazzle" -``` -Because `RazzleDazzle` is written in Swift, be sure to add `use_frameworks!` at the top of your Podfile. - -```ruby -source 'https://github.com/CocoaPods/Specs.git' -platform :ios, '8.0' -use_frameworks! - -pod 'RazzleDazzle' -``` - -## Demo App - -Open `Example/RazzleDazzle.xcworkspace` and run `RazzleDazzleDemo` to see a simple demonstration of moving, scaling, fading, and transforming views in a scrolling app intro. - -## Usage - -### Animated Paging Scroll Views -First, import `RazzleDazzle` into your view controller, and subclass `AnimatedPagingScrollViewController`. - -```swift -import RazzleDazzle - -class ViewController: AnimatedPagingScrollViewController { -``` - -Tell the paging scroll view controller how many pages it should have. - -```swift -override func numberOfPages() -> Int { - return 4 -} -``` - -Add any views you want to animate to the scrollview's `contentView` on `viewDidLoad`. - -```swift -override func viewDidLoad() { - super.viewDidLoad() - contentView.addSubview(firstLabel) -} -``` - -Add your desired vertical position and size constraints to your views. - -```swift -contentView.addConstraint(NSLayoutConstraint(item: firstLabel, attribute: .CenterY, relatedBy: .Equal, toItem: contentView, attribute: .CenterY, multiplier: 1, constant: 0)) -``` - -Tell the animated paging scroll view controller to keep the view on the page you want it to stay on. - -```swift -keepView(firstLabel, onPage: 1) -``` - -You can even tell the animated paging scroll view controller to keep the view still on more than one page, while other views scroll past it. - -```swift -keepView(firstLabel, onPages: [1,2]) -``` - -Or offset the view's center from the page's center: - -```swift -keepView(firstLabel, onPage: 1.25) -``` - -Just make sure that if you're using any of the `keepView` functions that you don't set an x-position `NSLayoutConstraint` on the view, as it will conflict with the animated x-position constraints generated by `RazzleDazzle`. - -### RazzleDazzle Animations -Generally, creating animations in `RazzleDazzle` works similarly to creating animations in `JazzHands`. First, import `RazzleDazzle` into your view controller. - -```swift -import RazzleDazzle -``` - -Then, create an Animator to manage all of the animations in this `UIViewController`. - -```swift -var animator = Animator() -``` - -Create an animation for a view that you want to animate. There are multiple types of animation that can be applied to a view. For this example, we'll use `AlphaAnimation`, which fades a view in and out. - -```swift -let alphaAnimation = AlphaAnimation(view: viewThatYouWantToAnimate) -``` - -Register the animation with the animator. - -```swift -animator.addAnimation(alphaAnimation) -``` - -Add some keyframes to the animation. Let's fade this view out between times 30 and 60. - -```swift -alphaAnimation[30] = 1 -alphaAnimation[60] = 0 -``` - -Now, to animate the view, tell the animator what time it is. For example, to tie this animation to a UIScrollView, notify the animator of time in the scroller's delegate method. - -```swift -func scrollViewDidScroll(scrollView: UIScrollView) { - animator.animate(scrollView.contentOffset.x) -} -``` - -This will produce an effect where the view will be fully faded in and visible for scroll positions 0 to 30. Between scroll positions 30 and 60, the view will fade out to be invisible, and it will stay faded out for scroll positions greater than 60. - -## Animation Types - -`RazzleDazzle` supports several types of animations: - -* **AlphaAnimation** animates the `alpha` property _(creates fade effects)_. -* **BackgroundColorAnimation** animates the `backgroundColor` property. -* **RotationAnimation** animates a rotation transform _(for rotation effects)_. -* **ScaleAnimation** applies a scaling transform _(to scale view sizes)_. -* **TranslationAnimation** applies a translation transform _(to translate view position)_. -* **CornerRadiusAnimation** animates the `layer.cornerRadius` property. -* **HideAnimation** animates the `hidden` property _(hides and shows views)_. -* **LayerStrokeStartAnimation** animates the `strokeStart` property of a `CAShapeLayer` _(does not work with LayerStrokeEndAnimation)_. -* **LayerStrokeEndAnimation** animates the `strokeEnd` property of a `CAShapeLayer` _(does not work with LayerStrokeStartAnimation)_. -* **LayerFillColorAnimation** animates the `fillColor` property of a `CAShapeLayer`. -* **LayerStrokeColorAnimation** animates the `strokeColor` property of a `CAShapeLayer`. -* **PathPositionAnimation** animates the `layer.position` property of a `UIView` along a path. -* **LabelTextColorAnimation** animates the `textColor` property of a `UILabel`. -* **ConstraintConstantAnimation** animates an `AutoLayout` constraint constant. -* **ConstraintMultiplierAnimation** animates an `AutoLayout` constraint constant as a multiple of an attribute of another view _(to offset or resize views based on another view's size)_ -* **ScrollViewPageConstraintAnimation** animates an `AutoLayout` constraint constant to place a view on a scroll view page _(to position views on a scrollView using AutoLayout)_. This is the animation doing the heavy lifting for `AnimatedPagingScrollViewController`'s `keepView(view: onPage:)` function. - -## Creating Custom Animation Types - -`RazzleDazzle` is easy to extend by creating your own custom animation types! - -### Custom Animation Types - -To create your own custom animation type, your type needs to conform to the `Animatable` protocol. All this requires is that you implement an `animate(time:)` function that takes a `CGFloat` time value and does something with it. - -For most custom animations, you'll want to subclass `Animation` with the specific type of the property you want to interpolate for each keyframe. - -```swift -public class BorderWidthAnimation : Animation, Animatable { -``` - -Create a property to store whatever view (or other object) you are applying the animations to, and create an initializer that takes a view as input. - -```swift -private let view : UIView - -public init(view: UIView) { - self.view = view -} -``` - -Optionally, you can add a function to validate any input values that will be checked each time a keyframe is added, such as for Alpha values that must range from 0 to 1. - -```swift -public override func validateValue(value: CGFloat) -> Bool { - return (value >= 0) && (value <= 1) -} -``` - -Then, all you need to do is to make the appropriate changes to your view when the `animate(time:)` function is called. - -```swift -public func animate(time: CGFloat) { - if !hasKeyframes() {return} - view.layer.borderWidth = self[time] -} -``` - -You can then create an instance of your new Animation in your `UIViewController`, give it the view you'd like to animate, add it to your Animator and set some keyframes as above, and it will animate your custom property when the Animator is told to animate. - -### Interpolatable Types - -`RazzleDazzle` can animate any type that conforms to the `Interpolatable` protocol. It comes pre-cooked to support animating `CGFloats`, `CGPoints`, `CGSizes`, `CGRects`, and `UIColors`. - -If the property you'd like to animate is of a different type, just extend that type to conform to `Interpolatable` by adding a static function `interpolateFrom(fromValue: toValue: withProgress:)` that returns an instance of that type between two other instances of the same type. - -```swift -extension CGPoint : Interpolatable { - public static func interpolateFrom(fromValue: CGPoint, to toValue: CGPoint, withProgress progress: CGFloat) -> CGPoint { - assert((0 <= progress) && (progress <= 1), "Progress must be between 0 and 1") - let interpolatedX = CGFloat.interpolateFrom(fromValue.x, to: toValue.x, withProgress: progress) - let interpolatedY = CGFloat.interpolateFrom(fromValue.y, to: toValue.y, withProgress: progress) - return CGPointMake(interpolatedX, interpolatedY) - } -} -``` - -If your property is a `CGFloat` or one of the other built-in interpolatable types, you only need to create an animation type that tells `RazzleDazzle` how to apply the keyframe values to your view, as above. - -## Notes - -An animator can only handle one animation per type per view. If you want multiple animations of the same type on a view, use keyframes of a single animation instead of two separate animations. - -`RazzleDazzle` is written in Swift 2.0, so it will only compile in Xcode 7 and up. If you want to use a library like this that will integrate with an older version of Swift, you can use [`JazzHands`](https://github.com/IFTTT/JazzHands), which is written in Objective-C, and use a bridging header to access the methods from your Swift 1.2 classes. - -Looking for libraries to build awesome keyframe animations like RazzleDazzle on Android? Check out [`SparkleMotion`](https://github.com/IFTTT/SparkleMotion). - -## Contributors - -* [Laura Skelton](https://github.com/lauraskelton), creator. - -## Contributing - -1. Fork it ( https://github.com/[my-github-username]/RazzleDazzle/fork ) -2. Create your feature branch (`git checkout -b my-new-feature`) -3. Commit your changes (`git commit -am 'Add some feature'`) -4. Push to the branch (`git push origin my-new-feature`) -5. Create a new Pull Request - -## License - -`RazzleDazzle` is available under the MIT license. See the LICENSE file for more info. - -Copyright 2015 IFTTT Inc. diff --git a/Pods/RazzleDazzle/Source/AlphaAnimation.swift b/Pods/RazzleDazzle/Source/AlphaAnimation.swift deleted file mode 100644 index 6beb9d0..0000000 --- a/Pods/RazzleDazzle/Source/AlphaAnimation.swift +++ /dev/null @@ -1,29 +0,0 @@ -// -// AlphaAnimation.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/13/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -import UIKit - -/** -Animates the `alpha` property of a `UIView`. -*/ -open class AlphaAnimation : Animation, Animatable { - fileprivate let view : UIView - - public init(view: UIView) { - self.view = view - } - - open func animate(_ time: CGFloat) { - if !hasKeyframes() {return} - view.alpha = self[time] - } - - open override func validateValue(_ value: CGFloat) -> Bool { - return (value >= 0) && (value <= 1) - } -} diff --git a/Pods/RazzleDazzle/Source/Animatable.swift b/Pods/RazzleDazzle/Source/Animatable.swift deleted file mode 100644 index 8112ec0..0000000 --- a/Pods/RazzleDazzle/Source/Animatable.swift +++ /dev/null @@ -1,21 +0,0 @@ -// -// Animatable.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/14/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -import UIKit - -/** -Protocol for types that can animate a view for a given time. -*/ -public protocol Animatable { - /** - Animate the view for a certain point in time. - - - parameter time: The point in time for which to animate the view - */ - func animate(_ time: CGFloat) -} diff --git a/Pods/RazzleDazzle/Source/AnimatedPagingScrollViewController.swift b/Pods/RazzleDazzle/Source/AnimatedPagingScrollViewController.swift deleted file mode 100644 index 3f8abe7..0000000 --- a/Pods/RazzleDazzle/Source/AnimatedPagingScrollViewController.swift +++ /dev/null @@ -1,165 +0,0 @@ -// -// AnimatedPagingScrollViewController.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/16/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -import UIKit - -/** -View controller for creating scrolling app intros. Set animation times based on the page number, and this view controller handles calling `animate:` on the `animator`. -*/ -open class AnimatedPagingScrollViewController : UIViewController, UIScrollViewDelegate { - open let scrollView = UIScrollView() - open let contentView = UIView() - open var animator = Animator() - fileprivate var scrollViewPageConstraintAnimations = [ScrollViewPageConstraintAnimation]() - open var pageWidth : CGFloat { - get { - return scrollView.frame.width - } - } - open var pageOffset : CGFloat { - get { - var currentOffset = scrollView.contentOffset.x - if pageWidth > 0 { - currentOffset = currentOffset / pageWidth - } - return currentOffset - } - } - - open func numberOfPages() -> Int { - return 2 - } - - open override func viewDidLoad() { - super.viewDidLoad() - scrollView.delegate = self - scrollView.isPagingEnabled = true - scrollView.showsHorizontalScrollIndicator = false - scrollView.contentSize = CGSize(width: CGFloat(numberOfPages()) * view.frame.width, height: view.frame.height) - view.addSubview(scrollView) - scrollView.frame = view.bounds - scrollView.addSubview(contentView) - scrollView.translatesAutoresizingMaskIntoConstraints = false - contentView.translatesAutoresizingMaskIntoConstraints = false - - NSLayoutConstraint.activate(NSLayoutConstraint.constraints(withVisualFormat: "H:|[scrollView]|", options: [], metrics: nil, views: ["scrollView" : scrollView])) - NSLayoutConstraint.activate(NSLayoutConstraint.constraints(withVisualFormat: "V:|[scrollView]|", options: [], metrics: nil, views: ["scrollView" : scrollView])) - - let scrollViewLeft = NSLayoutConstraint(item: scrollView, attribute: .left, relatedBy: .equal, toItem: contentView, attribute: .left, multiplier: 1, constant: 0) - let scrollViewRight = NSLayoutConstraint(item: scrollView, attribute: .right, relatedBy: .equal, toItem: contentView, attribute: .right, multiplier: 1, constant: 0) - let scrollViewTop = NSLayoutConstraint(item: scrollView, attribute: .top, relatedBy: .equal, toItem: contentView, attribute: .top, multiplier: 1, constant: 0) - let scrollViewBottom = NSLayoutConstraint(item: scrollView, attribute: .bottom, relatedBy: .equal, toItem: contentView, attribute: .bottom, multiplier: 1, constant: 0) - - NSLayoutConstraint.activate([scrollViewLeft, scrollViewRight, scrollViewTop, scrollViewBottom]) - - let contentViewWidth = NSLayoutConstraint(item: contentView, attribute: .width, relatedBy: .equal, toItem: view, attribute: .width, multiplier: CGFloat(numberOfPages()), constant: 0) - let contentViewHeight = NSLayoutConstraint(item: contentView, attribute: .height, relatedBy: .equal, toItem: view, attribute: .height, multiplier: 1, constant: 0) - - NSLayoutConstraint.activate([contentViewWidth, contentViewHeight]) - } - - open override func viewDidAppear(_ animated: Bool) { - super.viewDidAppear(animated) - animateCurrentFrame() - } - - open override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) { - super.viewWillTransition(to: size, with: coordinator) - let newPageWidth = size.width - for animation in scrollViewPageConstraintAnimations { - animation.pageWidth = newPageWidth - } - let futurePixelOffset = pageOffset * newPageWidth - coordinator.animate(alongsideTransition: {context in - self.animateCurrentFrame() - self.scrollView.contentOffset.x = futurePixelOffset - }, completion: nil) - } - - open func scrollViewDidScroll(_ scrollView: UIScrollView) { - animateCurrentFrame() - } - - open func animateCurrentFrame () { - animator.animate(pageOffset) - } - - open func keepView(_ view: UIView, onPage page: CGFloat) { - keepView(view, onPage: page, withAttribute: .centerX) - } - - open func keepView(_ view: UIView, onPage page: CGFloat, withAttribute attribute: HorizontalPositionAttribute) { - view.translatesAutoresizingMaskIntoConstraints = false - NSLayoutConstraint(item: view, attribute: layoutAttributeFromRazAttribute(attribute), relatedBy: .equal, toItem: contentView, attribute: .centerX, multiplier: multiplierForPage(page, attribute: attribute), constant: 0).isActive = true - } - - open func keepView(_ view: UIView, onPages pages: [CGFloat]) { - keepView(view, onPages: pages, atTimes: pages) - } - - open func keepView(_ view: UIView, onPages pages: [CGFloat], withAttribute attribute: HorizontalPositionAttribute) { - keepView(view, onPages: pages, atTimes: pages, withAttribute: attribute) - } - - open func keepView(_ view: UIView, onPages pages: [CGFloat], atTimes times: [CGFloat]) { - keepView(view, onPages: pages, atTimes: times, withAttribute: .centerX) - } - - open func keepView(_ view: UIView, onPages pages: [CGFloat], atTimes times: [CGFloat], withAttribute attribute: HorizontalPositionAttribute) { - assert(pages.count == times.count, "Make sure you set a time for each position.") - view.translatesAutoresizingMaskIntoConstraints = false - - let xPositionConstraint = NSLayoutConstraint(item: view, attribute: layoutAttributeFromRazAttribute(attribute), relatedBy: .equal, toItem: contentView, attribute: .left, multiplier: 1, constant: 0) - xPositionConstraint.isActive = true - let xPositionAnimation = ScrollViewPageConstraintAnimation(superview: contentView, constraint: xPositionConstraint, pageWidth: pageWidth, attribute: attribute) - for (index, page) in pages.enumerated() { - xPositionAnimation[times[index]] = page - } - animator.addAnimation(xPositionAnimation) - scrollViewPageConstraintAnimations.append(xPositionAnimation) - } - - open func centerXMultiplierForPage(_ page: CGFloat) -> CGFloat { - return multiplierForPage(page, attribute: .centerX) - } - - open func leftMultiplierForPage(_ page: CGFloat) -> CGFloat { - return multiplierForPage(page, attribute: .left) - } - - open func rightMultiplierForPage(_ page: CGFloat) -> CGFloat { - return multiplierForPage(page, attribute: .right) - } - - open func multiplierForPage(_ page: CGFloat, attribute: HorizontalPositionAttribute) -> CGFloat { - var offset : CGFloat - switch attribute { - case .centerX: - offset = 0.5 - case .left: - offset = 0 - case .right: - offset = 1 - } - return 2.0 * (offset + page) / CGFloat(numberOfPages()) - } - - open func layoutAttributeFromRazAttribute(_ razAttribute: HorizontalPositionAttribute) -> NSLayoutAttribute { - var attribute : NSLayoutAttribute - switch razAttribute { - case .centerX: - attribute = .centerX - case .left: - attribute = .left - case .right: - attribute = .right - } - return attribute - } -} - diff --git a/Pods/RazzleDazzle/Source/Animation.swift b/Pods/RazzleDazzle/Source/Animation.swift deleted file mode 100644 index d17f7ad..0000000 --- a/Pods/RazzleDazzle/Source/Animation.swift +++ /dev/null @@ -1,48 +0,0 @@ -// -// Animation.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/24/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -import UIKit - -open class Animation where T.ValueType == T { - fileprivate let filmstrip = Filmstrip() - - public init() {} - - open subscript(time: CGFloat) -> T { - get { - return filmstrip[time] - } - set { - addKeyframe(time, value: newValue) - } - } - - open func addKeyframe(_ time: CGFloat, value: T) { - if !checkValidity(value) {return} - filmstrip[time] = value - } - - open func addKeyframe(_ time: CGFloat, value: T, easing: @escaping EasingFunction) { - if !checkValidity(value) {return} - filmstrip.setValue(value, atTime: time, easing: easing) - } - - open func hasKeyframes() -> Bool { - return !filmstrip.isEmpty - } - - open func validateValue(_ value: T) -> Bool { - return true - } - - fileprivate func checkValidity(_ value: T) -> Bool { - let valid = validateValue(value) - assert(valid, "The keyframe value is invalid for this type of animation.") - return valid - } -} diff --git a/Pods/RazzleDazzle/Source/Animator.swift b/Pods/RazzleDazzle/Source/Animator.swift deleted file mode 100644 index 98f0a6e..0000000 --- a/Pods/RazzleDazzle/Source/Animator.swift +++ /dev/null @@ -1,28 +0,0 @@ -// -// Animator.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/11/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -import Foundation - -/** -Keeps an array of all of the animations being controlled, and calls the `animate:` function on each. -*/ -open class Animator { - open var animations = [Animatable]() - - public init() { } - - open func animate(_ time: CGFloat) { - for animation in animations { - animation.animate(time) - } - } - - open func addAnimation(_ animation: Animatable) { - animations.append(animation) - } -} diff --git a/Pods/RazzleDazzle/Source/BackgroundColorAnimation.swift b/Pods/RazzleDazzle/Source/BackgroundColorAnimation.swift deleted file mode 100644 index 3b17576..0000000 --- a/Pods/RazzleDazzle/Source/BackgroundColorAnimation.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// ColorAnimation.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/13/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -import UIKit - -/** -Animates the `backgroundColor` property of a `UIView`. -*/ -open class BackgroundColorAnimation : Animation, Animatable { - fileprivate let view : UIView - - public init(view: UIView) { - self.view = view - } - - open func animate(_ time: CGFloat) { - if !hasKeyframes() {return} - view.backgroundColor = self[time] - } -} diff --git a/Pods/RazzleDazzle/Source/ConstraintConstantAnimation.swift b/Pods/RazzleDazzle/Source/ConstraintConstantAnimation.swift deleted file mode 100644 index 9d51242..0000000 --- a/Pods/RazzleDazzle/Source/ConstraintConstantAnimation.swift +++ /dev/null @@ -1,28 +0,0 @@ -// -// ConstraintAnimation.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/15/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -import UIKit - -/** -Animates the `constant` of an `NSLayoutConstraint` and lays out the given `superview`. -*/ -open class ConstraintConstantAnimation : Animation, Animatable { - fileprivate let superview : UIView - fileprivate let constraint : NSLayoutConstraint - - public init(superview: UIView, constraint: NSLayoutConstraint) { - self.superview = superview - self.constraint = constraint - } - - open func animate(_ time: CGFloat) { - if !hasKeyframes() {return} - constraint.constant = self[time] - superview.layoutIfNeeded() - } -} diff --git a/Pods/RazzleDazzle/Source/ConstraintMultiplierAnimation.swift b/Pods/RazzleDazzle/Source/ConstraintMultiplierAnimation.swift deleted file mode 100644 index 73b5c33..0000000 --- a/Pods/RazzleDazzle/Source/ConstraintMultiplierAnimation.swift +++ /dev/null @@ -1,63 +0,0 @@ -// -// ConstraintMultiplierAnimation.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/15/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -import UIKit - -public enum LayoutAttribute { - case originX - case originY - case centerX - case centerY - case width - case height -} - -/** -Animates the `constant` of an `NSLayoutConstraint` to a multiple of an attribute of another view, and lays out the given `superview`. -*/ -open class ConstraintMultiplierAnimation : Animation, Animatable { - fileprivate let superview : UIView - fileprivate let constraint : NSLayoutConstraint - fileprivate let referenceView : UIView - fileprivate let attribute : LayoutAttribute - fileprivate let constant : CGFloat - - public convenience init(superview: UIView, constraint: NSLayoutConstraint, attribute: LayoutAttribute, referenceView: UIView) { - self.init(superview: superview, constraint: constraint, attribute: attribute, referenceView: referenceView, constant: 0) - } - - public init(superview: UIView, constraint: NSLayoutConstraint, attribute: LayoutAttribute, referenceView: UIView, constant: CGFloat) { - self.superview = superview - self.constraint = constraint - self.referenceView = referenceView - self.attribute = attribute - self.constant = constant - } - - open func animate(_ time: CGFloat) { - if !hasKeyframes() {return} - let multiplier = self[time] - var referenceAttributeValue : CGFloat - switch attribute { - case .originX: - referenceAttributeValue = referenceView.frame.minX - case .originY: - referenceAttributeValue = referenceView.frame.minY - case .centerX: - referenceAttributeValue = referenceView.frame.minX + (referenceView.frame.width / 2.0) - case .centerY: - referenceAttributeValue = referenceView.frame.minY + (referenceView.frame.height / 2.0) - case .width: - referenceAttributeValue = referenceView.frame.width - case .height: - referenceAttributeValue = referenceView.frame.height - } - constraint.constant = (multiplier * referenceAttributeValue) + constant - superview.layoutIfNeeded() - } -} diff --git a/Pods/RazzleDazzle/Source/CornerRadiusAnimation.swift b/Pods/RazzleDazzle/Source/CornerRadiusAnimation.swift deleted file mode 100644 index dba9807..0000000 --- a/Pods/RazzleDazzle/Source/CornerRadiusAnimation.swift +++ /dev/null @@ -1,29 +0,0 @@ -// -// CornerRadiusAnimation.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/15/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -import UIKit - -/** -Animates the `cornerRadius` property of a `UIView's` `layer`. -*/ -open class CornerRadiusAnimation : Animation, Animatable { - fileprivate let view : UIView - - public init(view: UIView) { - self.view = view - } - - open func animate(_ time: CGFloat) { - if !hasKeyframes() {return} - view.layer.cornerRadius = self[time] - } - - open override func validateValue(_ value: CGFloat) -> Bool { - return (value >= 0) - } -} diff --git a/Pods/RazzleDazzle/Source/CubicBezier.swift b/Pods/RazzleDazzle/Source/CubicBezier.swift deleted file mode 100644 index c2e7f4e..0000000 --- a/Pods/RazzleDazzle/Source/CubicBezier.swift +++ /dev/null @@ -1,66 +0,0 @@ -// -// CubicBezier.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/15/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -// Ported to Swift from Robert Böhnke's RBBAnimation, original available here: -// - -import Foundation - -public func CubicBezier(_ x1: CGFloat, _ y1: CGFloat, _ x2: CGFloat, _ y2: CGFloat) -> EasingFunction { - if (x1 == y1) && (x2 == y2) { return EasingFunctionLinear } - return { x in - let t = CubicBezierBinarySubdivide(x, x1: x1, x2: x2) - return CubicBezierCalculate(t, a1: y1, a2: y2) - } -} - -private func A(_ a1: CGFloat, a2: CGFloat) -> CGFloat { - return 1.0 - (3.0 * a2) + (3.0 * a1) -} - -private func B(_ a1: CGFloat, a2: CGFloat) -> CGFloat { - return (3.0 * a2) - (6.0 * a1) -} - -private func C(_ a1: CGFloat) -> CGFloat { - return (3.0 * a1) -} - -private func CubicBezierCalculate(_ t: CGFloat, a1: CGFloat, a2: CGFloat) -> CGFloat { - return ((((A(a1, a2: a2) * t) + B(a1, a2: a2)) * t) + C(a1)) * t -} - -private func CubicBezierSlope(_ t: CGFloat, a1: CGFloat, a2: CGFloat) -> CGFloat { - return (3.0 * A(a1, a2: a2) * t * t) + (2.0 * B(a1, a2: a2) * t) + C(a1) -} - -private func CubicBezierBinarySubdivide(_ x: CGFloat, x1: CGFloat, x2: CGFloat) -> CGFloat { - let epsilon : CGFloat = 0.0000001 - let maxIterations = 10 - - var start : CGFloat = 0 - var end : CGFloat = 1 - - var currentX : CGFloat - var currentT : CGFloat - - var i = 0 - repeat { - currentT = start + (end - start) / 2.0 - currentX = CubicBezierCalculate(currentT, a1: x1, a2: x2) - x - - if (currentX > 0) { - end = currentT - } else { - start = currentT - } - i += 1 - } while (fabs(currentX) > epsilon && i < maxIterations) - - return currentT -} diff --git a/Pods/RazzleDazzle/Source/EasingFunction.swift b/Pods/RazzleDazzle/Source/EasingFunction.swift deleted file mode 100644 index ea6fd7e..0000000 --- a/Pods/RazzleDazzle/Source/EasingFunction.swift +++ /dev/null @@ -1,64 +0,0 @@ -// -// EasingFunction.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/15/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -// Ported to Swift from Robert Böhnke's RBBAnimation, original available here: -// - -import Foundation - -public typealias EasingFunction = (CGFloat) -> (CGFloat) - -public let EasingFunctionLinear: EasingFunction = { t in - return t -} - -public let EasingFunctionEaseInQuad: EasingFunction = { t in - return t * t -} - -public let EasingFunctionEaseOutQuad: EasingFunction = { t in - return t * (2 - t) -} - -public let EasingFunctionEaseInOutQuad: EasingFunction = { t in - if (t < 0.5) { return 2 * t * t } - return -1 + ((4 - (2 * t)) * t) -} - -public let EasingFunctionEaseInCubic: EasingFunction = { t in - return t * t * t -} - -public let EasingFunctionEaseOutCubic: EasingFunction = { t in - return pow(t - 1, 3) + 1 -} - -public let EasingFunctionEaseInOutCubic: EasingFunction = { t in - if (t < 0.5) { return 4 * pow(t, 3) } - return ((t - 1) * pow((2 * t) - 2, 2)) + 1 -} - -public let EasingFunctionEaseInBounce: EasingFunction = { t in - return 1 - EasingFunctionEaseOutBounce(1 - t) -} - -public let EasingFunctionEaseOutBounce: EasingFunction = { t in - if (t < (4.0 / 11.0)) { - return pow((11.0 / 4.0), 2) * pow(t, 2) - } - - if (t < (8.0 / 11.0)) { - return (3.0 / 4.0) + (pow((11.0 / 4.0), 2) * pow(t - (6.0 / 11.0), 2)) - } - - if (t < (10.0 / 11.0)) { - return (15.0 / 16.0) + (pow((11.0 / 4.0), 2) * pow(t - (9.0 / 11.0), 2)) - } - - return (63.0 / 64.0) + (pow((11.0 / 4.0), 2) * pow(t - (21.0 / 22.0), 2)) -} diff --git a/Pods/RazzleDazzle/Source/Filmstrip.swift b/Pods/RazzleDazzle/Source/Filmstrip.swift deleted file mode 100644 index ff2f0b1..0000000 --- a/Pods/RazzleDazzle/Source/Filmstrip.swift +++ /dev/null @@ -1,96 +0,0 @@ -// -// Filmstrip.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/14/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -import Foundation - -private class Keyframe where T.ValueType == T { - let time : CGFloat - let value : T - let easing : EasingFunction - - fileprivate convenience init(time: CGFloat, value: T) { - self.init(time: time, value: value, easing: EasingFunctionLinear) - } - - fileprivate init(time: CGFloat, value: T, easing: @escaping EasingFunction) { - self.time = time - self.value = value - self.easing = easing - } -} - -/** -Keeps track of the keyframes set, and lazily generates interpolated values between them for the requested time as needed. -*/ -open class Filmstrip where T.ValueType == T { - - fileprivate var keyframes = [Keyframe]() - - public init() { } - - open var isEmpty: Bool { - get { - return keyframes.isEmpty - } - } - - open subscript(time: CGFloat) -> T { - get { - return valueAtTime(time) - } - set { - setValue(newValue, atTime: time) - } - } - - open func setValue(_ value: T, atTime time: CGFloat) { - let index = indexOfKeyframeAfterTime(time) ?? keyframes.count - keyframes.insert(Keyframe(time: time, value: value), at: index) - } - - open func setValue(_ value: T, atTime time: CGFloat, easing: @escaping EasingFunction) { - let index = indexOfKeyframeAfterTime(time) ?? keyframes.count - keyframes.insert(Keyframe(time: time, value: value, easing: easing), at: index) - } - - open func valueAtTime(_ time: CGFloat) -> T { - assert(!self.isEmpty, "At least one KeyFrame must be set before animation begins.") - var value : T - let indexAfter = (indexOfKeyframeAfterTime(time) ?? keyframes.count) - switch indexAfter { - case 0: - value = keyframes[0].value - case 1.. Int? { - var indexAfter : Int? - for (index, keyframe) in keyframes.enumerated() { - if time < keyframe.time { - indexAfter = index - break - } - } - return indexAfter - } - - fileprivate func progressFromTime(_ fromTime: CGFloat, toTime: CGFloat, atTime: CGFloat, easing: EasingFunction) -> CGFloat { - let duration = toTime - fromTime - if duration == 0 {return 0} - let timeElapsed = atTime - fromTime - return easing(timeElapsed / duration) - } -} diff --git a/Pods/RazzleDazzle/Source/HideAnimation.swift b/Pods/RazzleDazzle/Source/HideAnimation.swift deleted file mode 100644 index 13baf91..0000000 --- a/Pods/RazzleDazzle/Source/HideAnimation.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// HideAnimation.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/27/15. -// Copyright © 2015 IFTTT. All rights reserved. -// - -import UIKit - -/** -Animates the `hidden` property of a `UIView`. -*/ -open class HideAnimation : Animatable { - fileprivate let filmstrip = Filmstrip() - fileprivate let view : UIView - - public init(view: UIView, hideAt: CGFloat) { - self.view = view - filmstrip[hideAt] = false - filmstrip[hideAt + 0.00001] = true - } - - public init(view: UIView, showAt: CGFloat) { - self.view = view - filmstrip[showAt] = true - filmstrip[showAt + 0.00001] = false - } - - open func animate(_ time: CGFloat) { - if filmstrip.isEmpty {return} - view.isHidden = filmstrip[time] - } -} diff --git a/Pods/RazzleDazzle/Source/Interpolatable.swift b/Pods/RazzleDazzle/Source/Interpolatable.swift deleted file mode 100644 index 8b87b81..0000000 --- a/Pods/RazzleDazzle/Source/Interpolatable.swift +++ /dev/null @@ -1,155 +0,0 @@ -// -// Interpolatable.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/14/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -import UIKit - -/** -Protocol for types that can return smoothly incremented values between two given values. -*/ -public protocol Interpolatable { - associatedtype ValueType - /** - Find a value at a certain progress point (from 0 to 1) between two values of the same type. - - - parameter toValue: The ending value - - parameter progress: The progress (from 0 to 1) from the starting value to the end value for this value - - - returns: The value at the given progress point between the given starting and ending values - */ - static func interpolateFrom(_ fromValue: ValueType, to toValue: ValueType, withProgress progress: CGFloat) -> ValueType -} - -extension CGFloat : Interpolatable { - /** - Find a CGFloat at a certain progress point (from 0 to 1) between two other CGFloats. - - - parameter fromValue: The starting CGFloat - - parameter toValue: The ending CGFloat - - parameter progress: The progress (from 0 to 1) from the starting CGFloat to the end CGFloat for this CGFloat - - - returns: The CGFloat at the given progress point between the given starting and ending CGFloats - */ - public static func interpolateFrom(_ fromValue: CGFloat, to toValue: CGFloat, withProgress progress: CGFloat) -> CGFloat { - assert((0 <= progress) && (progress <= 1), "Progress must be between 0 and 1") - let totalChange = toValue - fromValue - let currentChange = totalChange * progress - return fromValue + currentChange - } -} - -extension CGPoint : Interpolatable { - /** - Find a CGPoint at a certain progress point (from 0 to 1) between two other CGPoints. - - - parameter fromValue: The starting CGPoint - - parameter toValue: The ending CGPoint - - parameter progress: The progress (from 0 to 1) from the starting CGPoint to the end CGPoint for this CGPoint - - - returns: The CGPoint at the given progress point between the given starting and ending CGPoints - */ - public static func interpolateFrom(_ fromValue: CGPoint, to toValue: CGPoint, withProgress progress: CGFloat) -> CGPoint { - assert((0 <= progress) && (progress <= 1), "Progress must be between 0 and 1") - let interpolatedX = CGFloat.interpolateFrom(fromValue.x, to: toValue.x, withProgress: progress) - let interpolatedY = CGFloat.interpolateFrom(fromValue.y, to: toValue.y, withProgress: progress) - return CGPoint(x: interpolatedX, y: interpolatedY) - } -} - -extension CGSize : Interpolatable { - /** - Find a CGSize at a certain progress point (from 0 to 1) between two other CGSizes. - - - parameter fromValue: The starting CGSize - - parameter toValue: The ending CGSize - - parameter progress: The progress (from 0 to 1) from the starting CGSize to the end CGSize for this CGSize - - - returns: The CGSize at the given progress point between the given starting and ending CGSizes - */ - public static func interpolateFrom(_ fromValue: CGSize, to toValue: CGSize, withProgress progress: CGFloat) -> CGSize { - assert((0 <= progress) && (progress <= 1), "Progress must be between 0 and 1") - let interpolatedWidth = CGFloat.interpolateFrom(fromValue.width, to: toValue.width, withProgress: progress) - let interpolatedHeight = CGFloat.interpolateFrom(fromValue.height, to: toValue.height, withProgress: progress) - return CGSize(width: interpolatedWidth, height: interpolatedHeight) - } -} - -extension CGRect : Interpolatable { - /** - Find a CGRect at a certain progress point (from 0 to 1) between two other CGRects. - - - parameter fromValue: The starting CGRect - - parameter toValue: The ending CGRect - - parameter progress: The progress (from 0 to 1) from the starting CGRect to the end CGRect for this CGRect - - - returns: The CGRect at the given progress point between the given starting and ending CGRects - */ - public static func interpolateFrom(_ fromValue: CGRect, to toValue: CGRect, withProgress progress: CGFloat) -> CGRect { - assert((0 <= progress) && (progress <= 1), "Progress must be between 0 and 1") - let interpolatedOrigin = CGPoint.interpolateFrom(fromValue.origin, to: toValue.origin, withProgress: progress) - let interpolatedSize = CGSize.interpolateFrom(fromValue.size, to: toValue.size, withProgress: progress) - return CGRect(x: interpolatedOrigin.x, y: interpolatedOrigin.y, width: interpolatedSize.width, height: interpolatedSize.height) - } -} - -extension UIColor : Interpolatable { - /** - Find a UIColor at a certain progress point (from 0 to 1) between two other UIColors. - - - parameter fromValue: The starting UIColor - - parameter toValue: The ending UIColor - - parameter progress: The progress (from 0 to 1) from the starting UIColor to the end UIColor for this UIColor - - - returns: The UIColor at the given progress point between the given starting and ending UIColors - */ - public static func interpolateFrom(_ fromValue: UIColor, to toValue: UIColor, withProgress progress: CGFloat) -> UIColor { - assert((0 <= progress) && (progress <= 1), "Progress must be between 0 and 1") - var fromRed : CGFloat = 0 - var fromGreen : CGFloat = 0 - var fromBlue : CGFloat = 0 - var fromAlpha : CGFloat = 0 - - var toRed : CGFloat = 0 - var toGreen : CGFloat = 0 - var toBlue : CGFloat = 0 - var toAlpha : CGFloat = 0 - - let hasStartColor = razGetRed(&fromRed, green: &fromGreen, blue: &fromBlue, alpha: &fromAlpha, fromColor: fromValue) - let hasEndColor = razGetRed(&toRed, green: &toGreen, blue: &toBlue, alpha: &toAlpha, fromColor: toValue) - - if hasStartColor && hasEndColor { - let red = CGFloat.interpolateFrom(fromRed, to: toRed, withProgress: progress) - let green = CGFloat.interpolateFrom(fromGreen, to: toGreen, withProgress: progress) - let blue = CGFloat.interpolateFrom(fromBlue, to: toBlue, withProgress: progress) - let alpha = CGFloat.interpolateFrom(fromAlpha, to: toAlpha, withProgress: progress) - return UIColor(red: red, green: green, blue: blue, alpha: alpha) - } - return fromValue - } - - fileprivate static func razGetRed(_ red: UnsafeMutablePointer, green: UnsafeMutablePointer, blue: UnsafeMutablePointer, alpha: UnsafeMutablePointer, fromColor color: UIColor) -> Bool { - if color.getRed(red, green: green, blue: blue, alpha: alpha) {return true} - var white : CGFloat = 0.0 - if color.getWhite(&white, alpha: alpha) { - red.pointee = white - green.pointee = white - blue.pointee = white - return true - } - return false - } -} - -extension Bool : Interpolatable { - public static func interpolateFrom(_ fromValue: Bool, to toValue: Bool, withProgress progress: CGFloat) -> Bool { - assert((0 <= progress) && (progress <= 1), "Progress must be between 0 and 1") - if progress == 0 { - return fromValue - } - return toValue - } -} diff --git a/Pods/RazzleDazzle/Source/LabelTextColorAnimation.swift b/Pods/RazzleDazzle/Source/LabelTextColorAnimation.swift deleted file mode 100644 index 4abe7e2..0000000 --- a/Pods/RazzleDazzle/Source/LabelTextColorAnimation.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// LabelTextColorAnimation.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/24/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -import UIKit - -/** -Animates the `textColor` property of a `UILabel`. -*/ -open class LabelTextColorAnimation: Animation, Animatable { - fileprivate let label : UILabel - - public init(label : UILabel) { - self.label = label - } - - open func animate(_ time: CGFloat) { - if !hasKeyframes() {return} - label.textColor = self[time] - } -} diff --git a/Pods/RazzleDazzle/Source/LayerFillColorAnimation.swift b/Pods/RazzleDazzle/Source/LayerFillColorAnimation.swift deleted file mode 100644 index 5ad4931..0000000 --- a/Pods/RazzleDazzle/Source/LayerFillColorAnimation.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// LayerFillColorAnimation.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/24/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -import UIKit - -/** -Animates the `fillColor` property of a `CAShapeLayer`. -*/ -open class LayerFillColorAnimation : Animation, Animatable { - fileprivate let layer : CAShapeLayer - - public init(layer: CAShapeLayer) { - self.layer = layer - } - - open func animate(_ time: CGFloat) { - if !hasKeyframes() {return} - layer.fillColor = self[time].cgColor - } -} diff --git a/Pods/RazzleDazzle/Source/LayerStrokeColorAnimation.swift b/Pods/RazzleDazzle/Source/LayerStrokeColorAnimation.swift deleted file mode 100644 index 7fd224a..0000000 --- a/Pods/RazzleDazzle/Source/LayerStrokeColorAnimation.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// LayerStrokeColorAnimation.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/24/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -import UIKit - -/** -Animates the `strokeColor` property of a `CAShapeLayer`. -*/ -open class LayerStrokeColorAnimation : Animation, Animatable { - fileprivate let layer : CAShapeLayer - - public init(layer: CAShapeLayer) { - self.layer = layer - } - - open func animate(_ time: CGFloat) { - if !hasKeyframes() {return} - layer.strokeColor = self[time].cgColor - } -} diff --git a/Pods/RazzleDazzle/Source/LayerStrokeEndAnimation.swift b/Pods/RazzleDazzle/Source/LayerStrokeEndAnimation.swift deleted file mode 100644 index 95f6032..0000000 --- a/Pods/RazzleDazzle/Source/LayerStrokeEndAnimation.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// LayerStrokeEndAnimation.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/24/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -import UIKit - -/** -Animates the `strokeEnd` property of a `CAShapeLayer`. -*/ -open class LayerStrokeEndAnimation : Animation, Animatable { - fileprivate let layer : CAShapeLayer - fileprivate let animationKey = "StrokeEnd" - - public init(layer: CAShapeLayer) { - self.layer = layer - self.layer.speed = 0 - super.init() - createStrokeEndAnimation() - - // CAAnimations are lost when application enters the background, so re-add them - NotificationCenter.default.addObserver( - self, - selector: #selector(LayerStrokeEndAnimation.createStrokeEndAnimation), - name: NSNotification.Name.UIApplicationDidBecomeActive, - object: nil) - } - - deinit { - NotificationCenter.default.removeObserver(self) - } - - open func animate(_ time: CGFloat) { - if !hasKeyframes() {return} - layer.timeOffset = CFTimeInterval(self[time]) - } - - open override func validateValue(_ value: CGFloat) -> Bool { - return (value >= 0) && (value <= 1) - } - - @objc fileprivate func createStrokeEndAnimation() { - // Set up a CABasicAnimation to change the stroke end - layer.add(strokeEndAnimation(), forKey: animationKey) - layer.speed = 0 - layer.timeOffset = 0 - } - - fileprivate func strokeEndAnimation() -> CABasicAnimation { - let animation = CABasicAnimation(keyPath: "strokeEnd") - animation.duration = 1 - animation.fromValue = 0 - animation.toValue = 1 - animation.fillMode = kCAFillModeBoth - animation.isRemovedOnCompletion = false - return animation - } -} diff --git a/Pods/RazzleDazzle/Source/LayerStrokeStartAnimation.swift b/Pods/RazzleDazzle/Source/LayerStrokeStartAnimation.swift deleted file mode 100644 index bef4b46..0000000 --- a/Pods/RazzleDazzle/Source/LayerStrokeStartAnimation.swift +++ /dev/null @@ -1,60 +0,0 @@ -// -// LayerStrokeStartAnimation.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/24/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -import UIKit - -/** -Animates the `strokeStart` property of a `CAShapeLayer`. -*/ -open class LayerStrokeStartAnimation : Animation, Animatable { - fileprivate let layer : CAShapeLayer - fileprivate let animationKey = "StrokeStart" - - public init(layer: CAShapeLayer) { - self.layer = layer - super.init() - createStrokeStartAnimation() - - // CAAnimations are lost when application enters the background, so re-add them - NotificationCenter.default.addObserver( - self, - selector: #selector(LayerStrokeStartAnimation.createStrokeStartAnimation), - name: NSNotification.Name.UIApplicationDidBecomeActive, - object: nil) - } - - deinit { - NotificationCenter.default.removeObserver(self) - } - - open func animate(_ time: CGFloat) { - if !hasKeyframes() {return} - layer.timeOffset = CFTimeInterval(self[time]) - } - - open override func validateValue(_ value: CGFloat) -> Bool { - return (value >= 0) && (value <= 1) - } - - @objc fileprivate func createStrokeStartAnimation() { - // Set up a CABasicAnimation to change the stroke start - layer.add(strokeStartAnimation(), forKey: animationKey) - layer.speed = 0 - layer.timeOffset = 0 - } - - fileprivate func strokeStartAnimation() -> CABasicAnimation { - let animation = CABasicAnimation(keyPath: "strokeStart") - animation.duration = 1 - animation.fromValue = 0 - animation.toValue = 1 - animation.fillMode = kCAFillModeBoth - animation.isRemovedOnCompletion = false - return animation - } -} diff --git a/Pods/RazzleDazzle/Source/PathPositionAnimation.swift b/Pods/RazzleDazzle/Source/PathPositionAnimation.swift deleted file mode 100644 index bb71116..0000000 --- a/Pods/RazzleDazzle/Source/PathPositionAnimation.swift +++ /dev/null @@ -1,75 +0,0 @@ -// -// PathPositionAnimation.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/30/15. -// Copyright © 2015 IFTTT. All rights reserved. -// - -import UIKit - -/** -Animates the view's position along the given path. -*/ -open class PathPositionAnimation : Animation, Animatable { - fileprivate let view : UIView - open var path : CGPath? { - didSet { - createKeyframeAnimation() - } - } - fileprivate let animationKey = "PathPosition" - open var rotationMode : String? = kCAAnimationRotateAuto { - didSet { - createKeyframeAnimation() - } - } - - public init(view: UIView, path: CGPath?) { - self.view = view - self.path = path - super.init() - createKeyframeAnimation() - - // CAAnimations are lost when application enters the background, so re-add them - NotificationCenter.default.addObserver( - self, - selector: #selector(PathPositionAnimation.createKeyframeAnimation), - name: NSNotification.Name.UIApplicationDidBecomeActive, - object: nil) - } - - deinit { - NotificationCenter.default.removeObserver(self) - } - - open func animate(_ time: CGFloat) { - if !hasKeyframes() {return} - view.layer.timeOffset = CFTimeInterval(self[time]) - } - - open override func validateValue(_ value: CGFloat) -> Bool { - return (value >= 0) && (value <= 1) - } - - @objc fileprivate func createKeyframeAnimation() { - // Set up a CAKeyframeAnimation to move the view along the path - view.layer.add(pathAnimation(), forKey: animationKey) - view.layer.speed = 0 - view.layer.timeOffset = 0 - } - - fileprivate func pathAnimation() -> CAKeyframeAnimation { - let animation = CAKeyframeAnimation() - animation.keyPath = "position" - animation.path = path - animation.duration = 1 - animation.isAdditive = true - animation.repeatCount = Float.infinity - animation.calculationMode = kCAAnimationPaced - animation.rotationMode = rotationMode - animation.fillMode = kCAFillModeBoth - animation.isRemovedOnCompletion = false - return animation - } -} diff --git a/Pods/RazzleDazzle/Source/RazzleDazzle.h b/Pods/RazzleDazzle/Source/RazzleDazzle.h deleted file mode 100644 index 7574347..0000000 --- a/Pods/RazzleDazzle/Source/RazzleDazzle.h +++ /dev/null @@ -1,15 +0,0 @@ -// -// RazzleDazzle.h -// RazzleDazzle -// -// Created by Laura Skelton on 6/11/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -#import - -//! Project version number for RazzleDazzle. -FOUNDATION_EXPORT double RazzleDazzleVersionNumber; - -//! Project version string for RazzleDazzle. -FOUNDATION_EXPORT const unsigned char RazzleDazzleVersionString[]; diff --git a/Pods/RazzleDazzle/Source/RotationAnimation.swift b/Pods/RazzleDazzle/Source/RotationAnimation.swift deleted file mode 100644 index ac446de..0000000 --- a/Pods/RazzleDazzle/Source/RotationAnimation.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RotationAnimation.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/13/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -import UIKit - -/** -Animates the rotation of the `transform` of a `UIView`. -*/ -open class RotationAnimation : Animation, Animatable { - fileprivate let view : UIView - - public init(view: UIView) { - self.view = view - } - - open func animate(_ time: CGFloat) { - if !hasKeyframes() {return} - let degrees = self[time] - let radians = degrees * CGFloat(M_PI / -180.0) - let rotationTransform = CGAffineTransform(rotationAngle: radians) - view.rotationTransform = rotationTransform - var newTransform = rotationTransform - if let scaleTransform = view.scaleTransform { - newTransform = newTransform.concatenating(scaleTransform) - } - if let translationTransform = view.translationTransform { - newTransform = newTransform.concatenating(translationTransform) - } - view.transform = newTransform - } -} diff --git a/Pods/RazzleDazzle/Source/ScaleAnimation.swift b/Pods/RazzleDazzle/Source/ScaleAnimation.swift deleted file mode 100644 index 88d5318..0000000 --- a/Pods/RazzleDazzle/Source/ScaleAnimation.swift +++ /dev/null @@ -1,39 +0,0 @@ -// -// ScaleAnimation.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/13/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -import UIKit - -/** -Animates the scale of the `transform` of a `UIView`. -*/ -open class ScaleAnimation : Animation, Animatable { - fileprivate let view : UIView - - public init(view: UIView) { - self.view = view - } - - open func animate(_ time: CGFloat) { - if !hasKeyframes() {return} - let scale = self[time] - let scaleTransform = CGAffineTransform(scaleX: scale, y: scale) - view.scaleTransform = scaleTransform - var newTransform = scaleTransform - if let rotationTransform = view.rotationTransform { - newTransform = newTransform.concatenating(rotationTransform) - } - if let translationTransform = view.translationTransform { - newTransform = newTransform.concatenating(translationTransform) - } - view.transform = newTransform - } - - open override func validateValue(_ value: CGFloat) -> Bool { - return (value >= 0) - } -} diff --git a/Pods/RazzleDazzle/Source/ScrollViewPageConstraintAnimation.swift b/Pods/RazzleDazzle/Source/ScrollViewPageConstraintAnimation.swift deleted file mode 100644 index cb769d5..0000000 --- a/Pods/RazzleDazzle/Source/ScrollViewPageConstraintAnimation.swift +++ /dev/null @@ -1,50 +0,0 @@ -// -// ScrollViewPageConstraintAnimation.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/16/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -import UIKit - -public enum HorizontalPositionAttribute { - case left - case right - case centerX -} - -/** -Animates the `constant` of an `NSLayoutConstraint` to keep the view on a certain page given the `pageWidth` of the scroll view. -*/ -open class ScrollViewPageConstraintAnimation : Animation, Animatable { - fileprivate let superview : UIView - fileprivate let constraint : NSLayoutConstraint - fileprivate let attribute : HorizontalPositionAttribute - open var pageWidth : CGFloat - - public init(superview: UIView, constraint: NSLayoutConstraint, pageWidth: CGFloat, attribute: HorizontalPositionAttribute) { - self.superview = superview - self.constraint = constraint - self.attribute = attribute - self.pageWidth = pageWidth - } - - open func animate(_ time: CGFloat) { - if !hasKeyframes() {return} - let page = self[time] - - var offset : CGFloat - switch attribute { - case .centerX: - offset = 0.5 - case .left: - offset = 0 - case .right: - offset = 1 - } - - constraint.constant = (offset + page) * pageWidth - superview.layoutIfNeeded() - } -} diff --git a/Pods/RazzleDazzle/Source/TranslationAnimation.swift b/Pods/RazzleDazzle/Source/TranslationAnimation.swift deleted file mode 100644 index e114b59..0000000 --- a/Pods/RazzleDazzle/Source/TranslationAnimation.swift +++ /dev/null @@ -1,35 +0,0 @@ -// -// TranslationAnimation.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/14/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -import UIKit - -/** -Animates the translation of the `transform` of a `UIView`. -*/ -open class TranslationAnimation : Animation, Animatable { - fileprivate let view : UIView - - public init(view: UIView) { - self.view = view - } - - open func animate(_ time: CGFloat) { - if !hasKeyframes() {return} - let translation = self[time] - let translationTransform = CGAffineTransform(translationX: translation.x, y: translation.y) - view.translationTransform = translationTransform - var newTransform = translationTransform - if let scaleTransform = view.scaleTransform { - newTransform = newTransform.concatenating(scaleTransform) - } - if let rotationTransform = view.rotationTransform { - newTransform = newTransform.concatenating(rotationTransform) - } - view.transform = newTransform - } -} diff --git a/Pods/RazzleDazzle/Source/UIView+Transform.swift b/Pods/RazzleDazzle/Source/UIView+Transform.swift deleted file mode 100644 index a6ea948..0000000 --- a/Pods/RazzleDazzle/Source/UIView+Transform.swift +++ /dev/null @@ -1,89 +0,0 @@ -// -// UIView+Transform.swift -// RazzleDazzle -// -// Created by Laura Skelton on 6/13/15. -// Copyright (c) 2015 IFTTT. All rights reserved. -// - -import ObjectiveC - -internal extension UIView { - - fileprivate struct RotationTransformAssociatedKey { - static var viewExtension = "ViewRotationExtension" - } - - fileprivate struct ScaleTransformAssociatedKey { - static var viewExtension = "ViewScaleExtension" - } - - fileprivate struct TranslationTransformAssociatedKey { - static var viewExtension = "ViewTranslationExtension" - } - - internal var rotationTransform: CGAffineTransform? { - get { - return getAssociatedObject(self, associativeKey: &RotationTransformAssociatedKey.viewExtension) - } - - set { - if let value = newValue { - setAssociatedObject(self, value: value, associativeKey: &RotationTransformAssociatedKey.viewExtension, policy: objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN_NONATOMIC) - } - } - } - - internal var scaleTransform: CGAffineTransform? { - get { - return getAssociatedObject(self, associativeKey: &ScaleTransformAssociatedKey.viewExtension) - } - - set { - if let value = newValue { - setAssociatedObject(self, value: value, associativeKey: &ScaleTransformAssociatedKey.viewExtension, policy: objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN_NONATOMIC) - } - } - } - - internal var translationTransform: CGAffineTransform? { - get { - return getAssociatedObject(self, associativeKey: &TranslationTransformAssociatedKey.viewExtension) - } - - set { - if let value = newValue { - setAssociatedObject(self, value: value, associativeKey: &TranslationTransformAssociatedKey.viewExtension, policy: objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN_NONATOMIC) - } - } - } -} - -private final class Lifted { - let value: T - init(_ x: T) { - value = x - } -} - -/* -private func lift(_ x: T) -> Lifted { - return Lifted(x) -} -*/ - -private func setAssociatedObject(_ object: AnyObject, value: T, associativeKey: UnsafeRawPointer, policy: objc_AssociationPolicy) { - objc_setAssociatedObject(object, associativeKey, Lifted(value), policy) -} - -private func getAssociatedObject(_ object: AnyObject, associativeKey: UnsafeRawPointer) -> T? { - if let v = objc_getAssociatedObject(object, associativeKey) as? T { - return v - } - else if let v = objc_getAssociatedObject(object, associativeKey) as? Lifted { - return v.value - } - else { - return nil - } -} 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/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 4831de9..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.ensureExecutingOnScheduler() - - 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.ensureExecutingOnScheduler() - - 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 aead41b..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.ensureExecutingOnScheduler() - #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.ensureExecutingOnScheduler() - - 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.ensureExecutingOnScheduler() - - 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.ensureExecutingOnScheduler() - - 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.ensureExecutingOnScheduler() - #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 fd4e599..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.ensureExecutingOnScheduler() - - 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.ensureExecutingOnScheduler() - - 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.ensureExecutingOnScheduler() - 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.ensureExecutingOnScheduler() - 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.ensureExecutingOnScheduler() - 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 94cc1a1..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.ensureExecutingOnScheduler() -#endif - } - - func dispose() { -#if DEBUG - MainScheduler.ensureExecutingOnScheduler() -#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 bd6493b..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.ensureExecutingOnScheduler(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.ensureExecutingOnScheduler(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 849ae4d..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.ensureExecutingOnScheduler(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.ensureExecutingOnScheduler(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.ensureExecutingOnScheduler(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.ensureExecutingOnScheduler(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.ensureExecutingOnScheduler(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.ensureExecutingOnScheduler(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.ensureExecutingOnScheduler(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 d4076e4..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.ensureExecutingOnScheduler() -#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 8338654..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.ensureExecutingOnScheduler() - - 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 8d938bb..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.ensureExecutingOnScheduler() - - 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 b52575a..0000000 --- a/Pods/RxCocoa/RxCocoa/iOS/UIView+Rx.swift +++ /dev/null @@ -1,38 +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 `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 c93be44..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.ensureExecutingOnScheduler() - - let source = self.lazyInstanceObservable(&rx_control_events_key) { () -> Observable in - Observable.create { [weak control = self.base] observer in - MainScheduler.ensureExecutingOnScheduler() - - 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.ensureExecutingOnScheduler() - - 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/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 4e13eae..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 !isFlagSet(&self._isDisposed, 1) { - 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 d6bcae3..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 enqueing 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 1e42177..0000000 --- a/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift +++ /dev/null @@ -1,68 +0,0 @@ -// -// MainScheduler.swift -// RxSwift -// -// Created by Krunoslav Zaher on 2/8/15. -// Copyright © 2015 Krunoslav Zaher. All rights reserved. -// - -import Dispatch - -/** -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.") - } - } - - 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