├── .gitignore ├── .swift-version ├── .travis.yml ├── Cartfile ├── Cartfile.resolved ├── LICENSE.md ├── README.md ├── RxCoreData.podspec ├── RxCoreData.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── xcshareddata │ └── xcschemes │ ├── RxCoreData iOS.xcscheme │ ├── RxCoreData macOS.xcscheme │ ├── RxCoreData tvOS.xcscheme │ └── RxCoreData watchOS.xcscheme ├── RxCoreData.xcworkspace ├── contents.xcworkspacedata └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── RxCoreData ├── Info.plist └── RxCoreData.h ├── RxCoreDataExample ├── Differentiator.framework │ ├── Differentiator │ ├── Headers │ │ ├── Differentiator-Swift.h │ │ └── Differentiator.h │ ├── Info.plist │ └── Modules │ │ ├── Differentiator.swiftmodule │ │ ├── arm.swiftdoc │ │ ├── arm.swiftmodule │ │ ├── arm64.swiftdoc │ │ ├── arm64.swiftmodule │ │ ├── armv7.swiftdoc │ │ ├── armv7.swiftmodule │ │ ├── i386.swiftdoc │ │ ├── i386.swiftmodule │ │ ├── x86_64.swiftdoc │ │ └── x86_64.swiftmodule │ │ └── module.modulemap ├── Podfile ├── Podfile.lock ├── RxCoreDateExample.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── RxCoreDateExample.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── RxCoreDateExample │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Event+Extensions.swift │ ├── Event.swift │ ├── Info.plist │ ├── Model.xcdatamodeld │ │ └── Model.xcdatamodel │ │ │ └── contents │ └── ViewController.swift ├── RxCoreDateExampleTests │ ├── Info.plist │ └── RxCoreDateExampleTests.swift ├── RxDataSources.framework │ ├── CHANGELOG.md │ ├── Differentiator.podspec │ ├── Headers │ │ ├── RxDataSources-Swift.h │ │ └── RxDataSources.h │ ├── Info.plist │ ├── Modules │ │ ├── RxDataSources.swiftmodule │ │ │ ├── arm.swiftdoc │ │ │ ├── arm.swiftmodule │ │ │ ├── arm64.swiftdoc │ │ │ ├── arm64.swiftmodule │ │ │ ├── armv7.swiftdoc │ │ │ ├── armv7.swiftmodule │ │ │ ├── i386.swiftdoc │ │ │ ├── i386.swiftmodule │ │ │ ├── x86_64.swiftdoc │ │ │ └── x86_64.swiftmodule │ │ └── module.modulemap │ └── RxDataSources └── RxRelay.framework │ ├── Headers │ └── RxRelay-Swift.h │ ├── Info.plist │ ├── Modules │ ├── RxRelay.swiftmodule │ │ ├── arm.swiftdoc │ │ ├── arm.swiftmodule │ │ ├── arm64.swiftdoc │ │ ├── arm64.swiftmodule │ │ ├── armv7.swiftdoc │ │ ├── armv7.swiftmodule │ │ ├── i386.swiftdoc │ │ ├── i386.swiftmodule │ │ ├── x86_64.swiftdoc │ │ └── x86_64.swiftmodule │ └── module.modulemap │ └── RxRelay └── Sources ├── .gitkeep ├── FetchedResultsControllerControllerEntityObserver.swift ├── FetchedResultsControllerSectionObserver.swift ├── NSManagedObjectContext+Rx.swift └── Persistable.swift /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | *.xcuserstate 22 | 23 | timeline.xctimeline 24 | 25 | # Bundler 26 | .bundle 27 | 28 | # CocoaPods 29 | # 30 | # We recommend against adding the Pods directory to your .gitignore. However 31 | # you should judge for yourself, the pros and cons are mentioned at: 32 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 33 | # 34 | Pods/ 35 | 36 | # Carthage 37 | # 38 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 39 | Carthage/Checkouts 40 | Carthage/Build 41 | 42 | # Swift Package Manager 43 | # 44 | .build/ 45 | Packages/ 46 | -------------------------------------------------------------------------------- /.swift-version: -------------------------------------------------------------------------------- 1 | 5.0 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | language: objective-c 6 | osx_image: xcode9 7 | before_install: 8 | - gem install cocoapods --no-rdoc --no-ri --no-document --quiet 9 | - pod repo update --silent 10 | - pod install --project-directory=Example --repo-update 11 | script: 12 | - set -o pipefail && xcodebuild test -workspace Example/RxCoreData.xcworkspace -scheme RxCoreData-Example -configuration 'Debug' -sdk iphonesimulator -destination platform='iOS Simulator',OS='11.0',name='iPhone 8' build test | xcpretty -c --test 13 | - pod lib lint 14 | -------------------------------------------------------------------------------- /Cartfile: -------------------------------------------------------------------------------- 1 | github "ReactiveX/RxSwift" ~> 5.0 2 | github "RxSwiftCommunity/RxDatasources" 3 | -------------------------------------------------------------------------------- /Cartfile.resolved: -------------------------------------------------------------------------------- 1 | github "ReactiveX/RxSwift" "5.0.1" 2 | github "RxSwiftCommunity/RxDatasources" "4.0.1" 3 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 Scott Gardner 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # RxCoreData 2 | 3 | [![CI Status](http://img.shields.io/travis/RxSwiftCommunity/RxCoreData.svg?style=flat)](https://travis-ci.org/RxSwiftCommunity/RxCoreData) 4 | [![Version](https://img.shields.io/cocoapods/v/RxCoreData.svg?style=flat)](http://cocoapods.org/pods/RxCoreData) 5 | [![License](https://img.shields.io/cocoapods/l/RxCoreData.svg?style=flat)](http://cocoapods.org/pods/RxCoreData) 6 | [![Platform](https://img.shields.io/cocoapods/p/RxCoreData.svg?style=flat)](http://cocoapods.org/pods/RxCoreData) 7 | 8 | ## Example 9 | 10 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 11 | 12 | ## Requirements 13 | 14 | * Xcode 9.0 15 | * Swift 4.0 16 | 17 | ## Installation 18 | 19 | RxCoreData is available via [Carthage](https://github.com/Carthage/Carthage) and [CocoaPods](http://cocoapods.org). 20 | 21 | ### Carthage 22 | 23 | To install RxCoreData via Carthage, simply add the following line to your Cartfile: 24 | 25 | ```ruby 26 | github "RxSwiftCommunity/RxCoreData" ~> 1.0.0 27 | ``` 28 | 29 | ### CocoaPods 30 | 31 | To install RxCoreData via CocoaPods, simply add the following line to your Podfile: 32 | 33 | ```ruby 34 | pod "RxCoreData", "~> 1.0.0" 35 | ``` 36 | 37 | ## Author 38 | 39 | Scott Gardner, scott.gardner@mac.com 40 | 41 | ## License 42 | 43 | RxCoreData is available under the MIT license. See the LICENSE file for more info. 44 | -------------------------------------------------------------------------------- /RxCoreData.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "RxCoreData" 3 | s.version = "1.0.1" 4 | s.summary = "RxSwift extensions for Core Data" 5 | s.description = <<-DESC 6 | Provides types and extensions for working with Core Data. For example, you can create and hook up a Core Data request to a table view with just a few lines of code: 7 | ```let fetchRequest = NSFetchRequest(entityName: "User") 8 | 9 | fetchRequest.predicate = NSPredicate(query: "username CONTAINS[cd] %@", searchTerm) 10 | 11 | fetchRequest.sortDescriptors = [NSSortDescriptor(key: "username", ascending: true)] 12 | 13 | managedObjectContext.rx_entities(fetchRequest) 14 | .bindTo(tableView.rx_itemsWithDataSource(animatedDataSource)) 15 | .addDisposableTo(disposeBag)``` 16 | DESC 17 | 18 | s.homepage = "https://github.com/RxSwiftCommunity/RxCoreData" 19 | s.license = { :type => "MIT", :file => "LICENSE.md" } 20 | s.authors = { "Scott Gardner" => "scott.gardner@mac.com", 21 | "RxSwift Community" => "community@rxswift.org" 22 | } 23 | s.source = { :git => "https://github.com/RxSwiftCommunity/RxCoreData.git", 24 | :tag => s.version.to_s 25 | } 26 | s.social_media_url = "https://twitter.com/scotteg" 27 | 28 | s.ios.deployment_target = '9.3' 29 | s.osx.deployment_target = '10.12' 30 | s.watchos.deployment_target = '3.0' 31 | s.tvos.deployment_target = '9.0' 32 | 33 | s.source_files = 'Sources/**/*.{swift}' 34 | s.exclude_files = 'Sources/*.{plist}', 'Sources/**/*.{plist}' 35 | s.frameworks = 'CoreData' 36 | s.swift_version = '5.0' 37 | s.dependency 'RxSwift', '~> 6.0' 38 | s.dependency 'RxCocoa', '~> 6.0' 39 | end 40 | -------------------------------------------------------------------------------- /RxCoreData.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /RxCoreData.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /RxCoreData.xcodeproj/xcshareddata/xcschemes/RxCoreData iOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 70 | 71 | 72 | 73 | 75 | 76 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /RxCoreData.xcodeproj/xcshareddata/xcschemes/RxCoreData macOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 70 | 71 | 72 | 73 | 75 | 76 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /RxCoreData.xcodeproj/xcshareddata/xcschemes/RxCoreData tvOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 70 | 71 | 72 | 73 | 75 | 76 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /RxCoreData.xcodeproj/xcshareddata/xcschemes/RxCoreData watchOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 70 | 71 | 72 | 73 | 75 | 76 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /RxCoreData.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /RxCoreData.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /RxCoreData/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /RxCoreData/RxCoreData.h: -------------------------------------------------------------------------------- 1 | // 2 | // RxCoreData.h 3 | // RxCoreData 4 | // 5 | // Created by Luca Serpico on 05/09/2016. 6 | // Copyright © 2016 RxSwiftCommunity. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for RxCoreData. 12 | FOUNDATION_EXPORT double RxCoreDataVersionNumber; 13 | 14 | //! Project version string for RxCoreData. 15 | FOUNDATION_EXPORT const unsigned char RxCoreDataVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /RxCoreDataExample/Differentiator.framework/Differentiator: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/Differentiator.framework/Differentiator -------------------------------------------------------------------------------- /RxCoreDataExample/Differentiator.framework/Headers/Differentiator-Swift.h: -------------------------------------------------------------------------------- 1 | #ifndef TARGET_OS_SIMULATOR 2 | #include 3 | #endif 4 | #if TARGET_OS_SIMULATOR 5 | #if 0 6 | #elif defined(__x86_64__) && __x86_64__ 7 | // Generated by Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5) 8 | #pragma clang diagnostic push 9 | #pragma clang diagnostic ignored "-Wgcc-compat" 10 | 11 | #if !defined(__has_include) 12 | # define __has_include(x) 0 13 | #endif 14 | #if !defined(__has_attribute) 15 | # define __has_attribute(x) 0 16 | #endif 17 | #if !defined(__has_feature) 18 | # define __has_feature(x) 0 19 | #endif 20 | #if !defined(__has_warning) 21 | # define __has_warning(x) 0 22 | #endif 23 | 24 | #if __has_include() 25 | # include 26 | #endif 27 | 28 | #pragma clang diagnostic ignored "-Wauto-import" 29 | #include 30 | #include 31 | #include 32 | #include 33 | 34 | #if !defined(SWIFT_TYPEDEFS) 35 | # define SWIFT_TYPEDEFS 1 36 | # if __has_include() 37 | # include 38 | # elif !defined(__cplusplus) 39 | typedef uint_least16_t char16_t; 40 | typedef uint_least32_t char32_t; 41 | # endif 42 | typedef float swift_float2 __attribute__((__ext_vector_type__(2))); 43 | typedef float swift_float3 __attribute__((__ext_vector_type__(3))); 44 | typedef float swift_float4 __attribute__((__ext_vector_type__(4))); 45 | typedef double swift_double2 __attribute__((__ext_vector_type__(2))); 46 | typedef double swift_double3 __attribute__((__ext_vector_type__(3))); 47 | typedef double swift_double4 __attribute__((__ext_vector_type__(4))); 48 | typedef int swift_int2 __attribute__((__ext_vector_type__(2))); 49 | typedef int swift_int3 __attribute__((__ext_vector_type__(3))); 50 | typedef int swift_int4 __attribute__((__ext_vector_type__(4))); 51 | typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); 52 | typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); 53 | typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); 54 | #endif 55 | 56 | #if !defined(SWIFT_PASTE) 57 | # define SWIFT_PASTE_HELPER(x, y) x##y 58 | # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) 59 | #endif 60 | #if !defined(SWIFT_METATYPE) 61 | # define SWIFT_METATYPE(X) Class 62 | #endif 63 | #if !defined(SWIFT_CLASS_PROPERTY) 64 | # if __has_feature(objc_class_property) 65 | # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ 66 | # else 67 | # define SWIFT_CLASS_PROPERTY(...) 68 | # endif 69 | #endif 70 | 71 | #if __has_attribute(objc_runtime_name) 72 | # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) 73 | #else 74 | # define SWIFT_RUNTIME_NAME(X) 75 | #endif 76 | #if __has_attribute(swift_name) 77 | # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) 78 | #else 79 | # define SWIFT_COMPILE_NAME(X) 80 | #endif 81 | #if __has_attribute(objc_method_family) 82 | # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) 83 | #else 84 | # define SWIFT_METHOD_FAMILY(X) 85 | #endif 86 | #if __has_attribute(noescape) 87 | # define SWIFT_NOESCAPE __attribute__((noescape)) 88 | #else 89 | # define SWIFT_NOESCAPE 90 | #endif 91 | #if __has_attribute(warn_unused_result) 92 | # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) 93 | #else 94 | # define SWIFT_WARN_UNUSED_RESULT 95 | #endif 96 | #if __has_attribute(noreturn) 97 | # define SWIFT_NORETURN __attribute__((noreturn)) 98 | #else 99 | # define SWIFT_NORETURN 100 | #endif 101 | #if !defined(SWIFT_CLASS_EXTRA) 102 | # define SWIFT_CLASS_EXTRA 103 | #endif 104 | #if !defined(SWIFT_PROTOCOL_EXTRA) 105 | # define SWIFT_PROTOCOL_EXTRA 106 | #endif 107 | #if !defined(SWIFT_ENUM_EXTRA) 108 | # define SWIFT_ENUM_EXTRA 109 | #endif 110 | #if !defined(SWIFT_CLASS) 111 | # if __has_attribute(objc_subclassing_restricted) 112 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA 113 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 114 | # else 115 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 116 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 117 | # endif 118 | #endif 119 | 120 | #if !defined(SWIFT_PROTOCOL) 121 | # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 122 | # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 123 | #endif 124 | 125 | #if !defined(SWIFT_EXTENSION) 126 | # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) 127 | #endif 128 | 129 | #if !defined(OBJC_DESIGNATED_INITIALIZER) 130 | # if __has_attribute(objc_designated_initializer) 131 | # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) 132 | # else 133 | # define OBJC_DESIGNATED_INITIALIZER 134 | # endif 135 | #endif 136 | #if !defined(SWIFT_ENUM_ATTR) 137 | # if defined(__has_attribute) && __has_attribute(enum_extensibility) 138 | # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) 139 | # else 140 | # define SWIFT_ENUM_ATTR(_extensibility) 141 | # endif 142 | #endif 143 | #if !defined(SWIFT_ENUM) 144 | # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 145 | # if __has_feature(generalized_swift_name) 146 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 147 | # else 148 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) 149 | # endif 150 | #endif 151 | #if !defined(SWIFT_UNAVAILABLE) 152 | # define SWIFT_UNAVAILABLE __attribute__((unavailable)) 153 | #endif 154 | #if !defined(SWIFT_UNAVAILABLE_MSG) 155 | # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) 156 | #endif 157 | #if !defined(SWIFT_AVAILABILITY) 158 | # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) 159 | #endif 160 | #if !defined(SWIFT_DEPRECATED) 161 | # define SWIFT_DEPRECATED __attribute__((deprecated)) 162 | #endif 163 | #if !defined(SWIFT_DEPRECATED_MSG) 164 | # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) 165 | #endif 166 | #if __has_feature(attribute_diagnose_if_objc) 167 | # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) 168 | #else 169 | # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) 170 | #endif 171 | #if __has_feature(modules) 172 | #if __has_warning("-Watimport-in-framework-header") 173 | #pragma clang diagnostic ignored "-Watimport-in-framework-header" 174 | #endif 175 | #endif 176 | 177 | #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" 178 | #pragma clang diagnostic ignored "-Wduplicate-method-arg" 179 | #if __has_warning("-Wpragma-clang-attribute") 180 | # pragma clang diagnostic ignored "-Wpragma-clang-attribute" 181 | #endif 182 | #pragma clang diagnostic ignored "-Wunknown-pragmas" 183 | #pragma clang diagnostic ignored "-Wnullability" 184 | 185 | #if __has_attribute(external_source_symbol) 186 | # pragma push_macro("any") 187 | # undef any 188 | # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="Differentiator",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) 189 | # pragma pop_macro("any") 190 | #endif 191 | 192 | #if __has_attribute(external_source_symbol) 193 | # pragma clang attribute pop 194 | #endif 195 | #pragma clang diagnostic pop 196 | 197 | #elif defined(__i386__) && __i386__ 198 | // Generated by Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5) 199 | #pragma clang diagnostic push 200 | #pragma clang diagnostic ignored "-Wgcc-compat" 201 | 202 | #if !defined(__has_include) 203 | # define __has_include(x) 0 204 | #endif 205 | #if !defined(__has_attribute) 206 | # define __has_attribute(x) 0 207 | #endif 208 | #if !defined(__has_feature) 209 | # define __has_feature(x) 0 210 | #endif 211 | #if !defined(__has_warning) 212 | # define __has_warning(x) 0 213 | #endif 214 | 215 | #if __has_include() 216 | # include 217 | #endif 218 | 219 | #pragma clang diagnostic ignored "-Wauto-import" 220 | #include 221 | #include 222 | #include 223 | #include 224 | 225 | #if !defined(SWIFT_TYPEDEFS) 226 | # define SWIFT_TYPEDEFS 1 227 | # if __has_include() 228 | # include 229 | # elif !defined(__cplusplus) 230 | typedef uint_least16_t char16_t; 231 | typedef uint_least32_t char32_t; 232 | # endif 233 | typedef float swift_float2 __attribute__((__ext_vector_type__(2))); 234 | typedef float swift_float3 __attribute__((__ext_vector_type__(3))); 235 | typedef float swift_float4 __attribute__((__ext_vector_type__(4))); 236 | typedef double swift_double2 __attribute__((__ext_vector_type__(2))); 237 | typedef double swift_double3 __attribute__((__ext_vector_type__(3))); 238 | typedef double swift_double4 __attribute__((__ext_vector_type__(4))); 239 | typedef int swift_int2 __attribute__((__ext_vector_type__(2))); 240 | typedef int swift_int3 __attribute__((__ext_vector_type__(3))); 241 | typedef int swift_int4 __attribute__((__ext_vector_type__(4))); 242 | typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); 243 | typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); 244 | typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); 245 | #endif 246 | 247 | #if !defined(SWIFT_PASTE) 248 | # define SWIFT_PASTE_HELPER(x, y) x##y 249 | # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) 250 | #endif 251 | #if !defined(SWIFT_METATYPE) 252 | # define SWIFT_METATYPE(X) Class 253 | #endif 254 | #if !defined(SWIFT_CLASS_PROPERTY) 255 | # if __has_feature(objc_class_property) 256 | # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ 257 | # else 258 | # define SWIFT_CLASS_PROPERTY(...) 259 | # endif 260 | #endif 261 | 262 | #if __has_attribute(objc_runtime_name) 263 | # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) 264 | #else 265 | # define SWIFT_RUNTIME_NAME(X) 266 | #endif 267 | #if __has_attribute(swift_name) 268 | # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) 269 | #else 270 | # define SWIFT_COMPILE_NAME(X) 271 | #endif 272 | #if __has_attribute(objc_method_family) 273 | # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) 274 | #else 275 | # define SWIFT_METHOD_FAMILY(X) 276 | #endif 277 | #if __has_attribute(noescape) 278 | # define SWIFT_NOESCAPE __attribute__((noescape)) 279 | #else 280 | # define SWIFT_NOESCAPE 281 | #endif 282 | #if __has_attribute(warn_unused_result) 283 | # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) 284 | #else 285 | # define SWIFT_WARN_UNUSED_RESULT 286 | #endif 287 | #if __has_attribute(noreturn) 288 | # define SWIFT_NORETURN __attribute__((noreturn)) 289 | #else 290 | # define SWIFT_NORETURN 291 | #endif 292 | #if !defined(SWIFT_CLASS_EXTRA) 293 | # define SWIFT_CLASS_EXTRA 294 | #endif 295 | #if !defined(SWIFT_PROTOCOL_EXTRA) 296 | # define SWIFT_PROTOCOL_EXTRA 297 | #endif 298 | #if !defined(SWIFT_ENUM_EXTRA) 299 | # define SWIFT_ENUM_EXTRA 300 | #endif 301 | #if !defined(SWIFT_CLASS) 302 | # if __has_attribute(objc_subclassing_restricted) 303 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA 304 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 305 | # else 306 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 307 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 308 | # endif 309 | #endif 310 | 311 | #if !defined(SWIFT_PROTOCOL) 312 | # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 313 | # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 314 | #endif 315 | 316 | #if !defined(SWIFT_EXTENSION) 317 | # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) 318 | #endif 319 | 320 | #if !defined(OBJC_DESIGNATED_INITIALIZER) 321 | # if __has_attribute(objc_designated_initializer) 322 | # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) 323 | # else 324 | # define OBJC_DESIGNATED_INITIALIZER 325 | # endif 326 | #endif 327 | #if !defined(SWIFT_ENUM_ATTR) 328 | # if defined(__has_attribute) && __has_attribute(enum_extensibility) 329 | # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) 330 | # else 331 | # define SWIFT_ENUM_ATTR(_extensibility) 332 | # endif 333 | #endif 334 | #if !defined(SWIFT_ENUM) 335 | # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 336 | # if __has_feature(generalized_swift_name) 337 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 338 | # else 339 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) 340 | # endif 341 | #endif 342 | #if !defined(SWIFT_UNAVAILABLE) 343 | # define SWIFT_UNAVAILABLE __attribute__((unavailable)) 344 | #endif 345 | #if !defined(SWIFT_UNAVAILABLE_MSG) 346 | # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) 347 | #endif 348 | #if !defined(SWIFT_AVAILABILITY) 349 | # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) 350 | #endif 351 | #if !defined(SWIFT_DEPRECATED) 352 | # define SWIFT_DEPRECATED __attribute__((deprecated)) 353 | #endif 354 | #if !defined(SWIFT_DEPRECATED_MSG) 355 | # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) 356 | #endif 357 | #if __has_feature(attribute_diagnose_if_objc) 358 | # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) 359 | #else 360 | # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) 361 | #endif 362 | #if __has_feature(modules) 363 | #if __has_warning("-Watimport-in-framework-header") 364 | #pragma clang diagnostic ignored "-Watimport-in-framework-header" 365 | #endif 366 | #endif 367 | 368 | #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" 369 | #pragma clang diagnostic ignored "-Wduplicate-method-arg" 370 | #if __has_warning("-Wpragma-clang-attribute") 371 | # pragma clang diagnostic ignored "-Wpragma-clang-attribute" 372 | #endif 373 | #pragma clang diagnostic ignored "-Wunknown-pragmas" 374 | #pragma clang diagnostic ignored "-Wnullability" 375 | 376 | #if __has_attribute(external_source_symbol) 377 | # pragma push_macro("any") 378 | # undef any 379 | # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="Differentiator",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) 380 | # pragma pop_macro("any") 381 | #endif 382 | 383 | #if __has_attribute(external_source_symbol) 384 | # pragma clang attribute pop 385 | #endif 386 | #pragma clang diagnostic pop 387 | 388 | #endif 389 | 390 | #else 391 | #if 0 392 | #elif defined(__arm64__) && __arm64__ 393 | // Generated by Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5) 394 | #pragma clang diagnostic push 395 | #pragma clang diagnostic ignored "-Wgcc-compat" 396 | 397 | #if !defined(__has_include) 398 | # define __has_include(x) 0 399 | #endif 400 | #if !defined(__has_attribute) 401 | # define __has_attribute(x) 0 402 | #endif 403 | #if !defined(__has_feature) 404 | # define __has_feature(x) 0 405 | #endif 406 | #if !defined(__has_warning) 407 | # define __has_warning(x) 0 408 | #endif 409 | 410 | #if __has_include() 411 | # include 412 | #endif 413 | 414 | #pragma clang diagnostic ignored "-Wauto-import" 415 | #include 416 | #include 417 | #include 418 | #include 419 | 420 | #if !defined(SWIFT_TYPEDEFS) 421 | # define SWIFT_TYPEDEFS 1 422 | # if __has_include() 423 | # include 424 | # elif !defined(__cplusplus) 425 | typedef uint_least16_t char16_t; 426 | typedef uint_least32_t char32_t; 427 | # endif 428 | typedef float swift_float2 __attribute__((__ext_vector_type__(2))); 429 | typedef float swift_float3 __attribute__((__ext_vector_type__(3))); 430 | typedef float swift_float4 __attribute__((__ext_vector_type__(4))); 431 | typedef double swift_double2 __attribute__((__ext_vector_type__(2))); 432 | typedef double swift_double3 __attribute__((__ext_vector_type__(3))); 433 | typedef double swift_double4 __attribute__((__ext_vector_type__(4))); 434 | typedef int swift_int2 __attribute__((__ext_vector_type__(2))); 435 | typedef int swift_int3 __attribute__((__ext_vector_type__(3))); 436 | typedef int swift_int4 __attribute__((__ext_vector_type__(4))); 437 | typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); 438 | typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); 439 | typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); 440 | #endif 441 | 442 | #if !defined(SWIFT_PASTE) 443 | # define SWIFT_PASTE_HELPER(x, y) x##y 444 | # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) 445 | #endif 446 | #if !defined(SWIFT_METATYPE) 447 | # define SWIFT_METATYPE(X) Class 448 | #endif 449 | #if !defined(SWIFT_CLASS_PROPERTY) 450 | # if __has_feature(objc_class_property) 451 | # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ 452 | # else 453 | # define SWIFT_CLASS_PROPERTY(...) 454 | # endif 455 | #endif 456 | 457 | #if __has_attribute(objc_runtime_name) 458 | # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) 459 | #else 460 | # define SWIFT_RUNTIME_NAME(X) 461 | #endif 462 | #if __has_attribute(swift_name) 463 | # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) 464 | #else 465 | # define SWIFT_COMPILE_NAME(X) 466 | #endif 467 | #if __has_attribute(objc_method_family) 468 | # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) 469 | #else 470 | # define SWIFT_METHOD_FAMILY(X) 471 | #endif 472 | #if __has_attribute(noescape) 473 | # define SWIFT_NOESCAPE __attribute__((noescape)) 474 | #else 475 | # define SWIFT_NOESCAPE 476 | #endif 477 | #if __has_attribute(warn_unused_result) 478 | # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) 479 | #else 480 | # define SWIFT_WARN_UNUSED_RESULT 481 | #endif 482 | #if __has_attribute(noreturn) 483 | # define SWIFT_NORETURN __attribute__((noreturn)) 484 | #else 485 | # define SWIFT_NORETURN 486 | #endif 487 | #if !defined(SWIFT_CLASS_EXTRA) 488 | # define SWIFT_CLASS_EXTRA 489 | #endif 490 | #if !defined(SWIFT_PROTOCOL_EXTRA) 491 | # define SWIFT_PROTOCOL_EXTRA 492 | #endif 493 | #if !defined(SWIFT_ENUM_EXTRA) 494 | # define SWIFT_ENUM_EXTRA 495 | #endif 496 | #if !defined(SWIFT_CLASS) 497 | # if __has_attribute(objc_subclassing_restricted) 498 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA 499 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 500 | # else 501 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 502 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 503 | # endif 504 | #endif 505 | 506 | #if !defined(SWIFT_PROTOCOL) 507 | # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 508 | # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 509 | #endif 510 | 511 | #if !defined(SWIFT_EXTENSION) 512 | # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) 513 | #endif 514 | 515 | #if !defined(OBJC_DESIGNATED_INITIALIZER) 516 | # if __has_attribute(objc_designated_initializer) 517 | # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) 518 | # else 519 | # define OBJC_DESIGNATED_INITIALIZER 520 | # endif 521 | #endif 522 | #if !defined(SWIFT_ENUM_ATTR) 523 | # if defined(__has_attribute) && __has_attribute(enum_extensibility) 524 | # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) 525 | # else 526 | # define SWIFT_ENUM_ATTR(_extensibility) 527 | # endif 528 | #endif 529 | #if !defined(SWIFT_ENUM) 530 | # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 531 | # if __has_feature(generalized_swift_name) 532 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 533 | # else 534 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) 535 | # endif 536 | #endif 537 | #if !defined(SWIFT_UNAVAILABLE) 538 | # define SWIFT_UNAVAILABLE __attribute__((unavailable)) 539 | #endif 540 | #if !defined(SWIFT_UNAVAILABLE_MSG) 541 | # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) 542 | #endif 543 | #if !defined(SWIFT_AVAILABILITY) 544 | # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) 545 | #endif 546 | #if !defined(SWIFT_DEPRECATED) 547 | # define SWIFT_DEPRECATED __attribute__((deprecated)) 548 | #endif 549 | #if !defined(SWIFT_DEPRECATED_MSG) 550 | # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) 551 | #endif 552 | #if __has_feature(attribute_diagnose_if_objc) 553 | # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) 554 | #else 555 | # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) 556 | #endif 557 | #if __has_feature(modules) 558 | #if __has_warning("-Watimport-in-framework-header") 559 | #pragma clang diagnostic ignored "-Watimport-in-framework-header" 560 | #endif 561 | #endif 562 | 563 | #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" 564 | #pragma clang diagnostic ignored "-Wduplicate-method-arg" 565 | #if __has_warning("-Wpragma-clang-attribute") 566 | # pragma clang diagnostic ignored "-Wpragma-clang-attribute" 567 | #endif 568 | #pragma clang diagnostic ignored "-Wunknown-pragmas" 569 | #pragma clang diagnostic ignored "-Wnullability" 570 | 571 | #if __has_attribute(external_source_symbol) 572 | # pragma push_macro("any") 573 | # undef any 574 | # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="Differentiator",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) 575 | # pragma pop_macro("any") 576 | #endif 577 | 578 | #if __has_attribute(external_source_symbol) 579 | # pragma clang attribute pop 580 | #endif 581 | #pragma clang diagnostic pop 582 | 583 | #elif defined(__ARM_ARCH_7A__) && __ARM_ARCH_7A__ 584 | // Generated by Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5) 585 | #pragma clang diagnostic push 586 | #pragma clang diagnostic ignored "-Wgcc-compat" 587 | 588 | #if !defined(__has_include) 589 | # define __has_include(x) 0 590 | #endif 591 | #if !defined(__has_attribute) 592 | # define __has_attribute(x) 0 593 | #endif 594 | #if !defined(__has_feature) 595 | # define __has_feature(x) 0 596 | #endif 597 | #if !defined(__has_warning) 598 | # define __has_warning(x) 0 599 | #endif 600 | 601 | #if __has_include() 602 | # include 603 | #endif 604 | 605 | #pragma clang diagnostic ignored "-Wauto-import" 606 | #include 607 | #include 608 | #include 609 | #include 610 | 611 | #if !defined(SWIFT_TYPEDEFS) 612 | # define SWIFT_TYPEDEFS 1 613 | # if __has_include() 614 | # include 615 | # elif !defined(__cplusplus) 616 | typedef uint_least16_t char16_t; 617 | typedef uint_least32_t char32_t; 618 | # endif 619 | typedef float swift_float2 __attribute__((__ext_vector_type__(2))); 620 | typedef float swift_float3 __attribute__((__ext_vector_type__(3))); 621 | typedef float swift_float4 __attribute__((__ext_vector_type__(4))); 622 | typedef double swift_double2 __attribute__((__ext_vector_type__(2))); 623 | typedef double swift_double3 __attribute__((__ext_vector_type__(3))); 624 | typedef double swift_double4 __attribute__((__ext_vector_type__(4))); 625 | typedef int swift_int2 __attribute__((__ext_vector_type__(2))); 626 | typedef int swift_int3 __attribute__((__ext_vector_type__(3))); 627 | typedef int swift_int4 __attribute__((__ext_vector_type__(4))); 628 | typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); 629 | typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); 630 | typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); 631 | #endif 632 | 633 | #if !defined(SWIFT_PASTE) 634 | # define SWIFT_PASTE_HELPER(x, y) x##y 635 | # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) 636 | #endif 637 | #if !defined(SWIFT_METATYPE) 638 | # define SWIFT_METATYPE(X) Class 639 | #endif 640 | #if !defined(SWIFT_CLASS_PROPERTY) 641 | # if __has_feature(objc_class_property) 642 | # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ 643 | # else 644 | # define SWIFT_CLASS_PROPERTY(...) 645 | # endif 646 | #endif 647 | 648 | #if __has_attribute(objc_runtime_name) 649 | # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) 650 | #else 651 | # define SWIFT_RUNTIME_NAME(X) 652 | #endif 653 | #if __has_attribute(swift_name) 654 | # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) 655 | #else 656 | # define SWIFT_COMPILE_NAME(X) 657 | #endif 658 | #if __has_attribute(objc_method_family) 659 | # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) 660 | #else 661 | # define SWIFT_METHOD_FAMILY(X) 662 | #endif 663 | #if __has_attribute(noescape) 664 | # define SWIFT_NOESCAPE __attribute__((noescape)) 665 | #else 666 | # define SWIFT_NOESCAPE 667 | #endif 668 | #if __has_attribute(warn_unused_result) 669 | # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) 670 | #else 671 | # define SWIFT_WARN_UNUSED_RESULT 672 | #endif 673 | #if __has_attribute(noreturn) 674 | # define SWIFT_NORETURN __attribute__((noreturn)) 675 | #else 676 | # define SWIFT_NORETURN 677 | #endif 678 | #if !defined(SWIFT_CLASS_EXTRA) 679 | # define SWIFT_CLASS_EXTRA 680 | #endif 681 | #if !defined(SWIFT_PROTOCOL_EXTRA) 682 | # define SWIFT_PROTOCOL_EXTRA 683 | #endif 684 | #if !defined(SWIFT_ENUM_EXTRA) 685 | # define SWIFT_ENUM_EXTRA 686 | #endif 687 | #if !defined(SWIFT_CLASS) 688 | # if __has_attribute(objc_subclassing_restricted) 689 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA 690 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 691 | # else 692 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 693 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 694 | # endif 695 | #endif 696 | 697 | #if !defined(SWIFT_PROTOCOL) 698 | # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 699 | # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 700 | #endif 701 | 702 | #if !defined(SWIFT_EXTENSION) 703 | # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) 704 | #endif 705 | 706 | #if !defined(OBJC_DESIGNATED_INITIALIZER) 707 | # if __has_attribute(objc_designated_initializer) 708 | # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) 709 | # else 710 | # define OBJC_DESIGNATED_INITIALIZER 711 | # endif 712 | #endif 713 | #if !defined(SWIFT_ENUM_ATTR) 714 | # if defined(__has_attribute) && __has_attribute(enum_extensibility) 715 | # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) 716 | # else 717 | # define SWIFT_ENUM_ATTR(_extensibility) 718 | # endif 719 | #endif 720 | #if !defined(SWIFT_ENUM) 721 | # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 722 | # if __has_feature(generalized_swift_name) 723 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 724 | # else 725 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) 726 | # endif 727 | #endif 728 | #if !defined(SWIFT_UNAVAILABLE) 729 | # define SWIFT_UNAVAILABLE __attribute__((unavailable)) 730 | #endif 731 | #if !defined(SWIFT_UNAVAILABLE_MSG) 732 | # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) 733 | #endif 734 | #if !defined(SWIFT_AVAILABILITY) 735 | # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) 736 | #endif 737 | #if !defined(SWIFT_DEPRECATED) 738 | # define SWIFT_DEPRECATED __attribute__((deprecated)) 739 | #endif 740 | #if !defined(SWIFT_DEPRECATED_MSG) 741 | # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) 742 | #endif 743 | #if __has_feature(attribute_diagnose_if_objc) 744 | # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) 745 | #else 746 | # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) 747 | #endif 748 | #if __has_feature(modules) 749 | #if __has_warning("-Watimport-in-framework-header") 750 | #pragma clang diagnostic ignored "-Watimport-in-framework-header" 751 | #endif 752 | #endif 753 | 754 | #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" 755 | #pragma clang diagnostic ignored "-Wduplicate-method-arg" 756 | #if __has_warning("-Wpragma-clang-attribute") 757 | # pragma clang diagnostic ignored "-Wpragma-clang-attribute" 758 | #endif 759 | #pragma clang diagnostic ignored "-Wunknown-pragmas" 760 | #pragma clang diagnostic ignored "-Wnullability" 761 | 762 | #if __has_attribute(external_source_symbol) 763 | # pragma push_macro("any") 764 | # undef any 765 | # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="Differentiator",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) 766 | # pragma pop_macro("any") 767 | #endif 768 | 769 | #if __has_attribute(external_source_symbol) 770 | # pragma clang attribute pop 771 | #endif 772 | #pragma clang diagnostic pop 773 | 774 | #endif 775 | 776 | #endif 777 | -------------------------------------------------------------------------------- /RxCoreDataExample/Differentiator.framework/Headers/Differentiator.h: -------------------------------------------------------------------------------- 1 | // 2 | // Differentiator.h 3 | // Differentiator 4 | // 5 | // Created by muukii on 7/26/17. 6 | // Copyright © 2017 kzaher. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for Differentiator. 12 | FOUNDATION_EXPORT double DifferentiatorVersionNumber; 13 | 14 | //! Project version string for Differentiator. 15 | FOUNDATION_EXPORT const unsigned char DifferentiatorVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /RxCoreDataExample/Differentiator.framework/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/Differentiator.framework/Info.plist -------------------------------------------------------------------------------- /RxCoreDataExample/Differentiator.framework/Modules/Differentiator.swiftmodule/arm.swiftdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/Differentiator.framework/Modules/Differentiator.swiftmodule/arm.swiftdoc -------------------------------------------------------------------------------- /RxCoreDataExample/Differentiator.framework/Modules/Differentiator.swiftmodule/arm.swiftmodule: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/Differentiator.framework/Modules/Differentiator.swiftmodule/arm.swiftmodule -------------------------------------------------------------------------------- /RxCoreDataExample/Differentiator.framework/Modules/Differentiator.swiftmodule/arm64.swiftdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/Differentiator.framework/Modules/Differentiator.swiftmodule/arm64.swiftdoc -------------------------------------------------------------------------------- /RxCoreDataExample/Differentiator.framework/Modules/Differentiator.swiftmodule/arm64.swiftmodule: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/Differentiator.framework/Modules/Differentiator.swiftmodule/arm64.swiftmodule -------------------------------------------------------------------------------- /RxCoreDataExample/Differentiator.framework/Modules/Differentiator.swiftmodule/armv7.swiftdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/Differentiator.framework/Modules/Differentiator.swiftmodule/armv7.swiftdoc -------------------------------------------------------------------------------- /RxCoreDataExample/Differentiator.framework/Modules/Differentiator.swiftmodule/armv7.swiftmodule: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/Differentiator.framework/Modules/Differentiator.swiftmodule/armv7.swiftmodule -------------------------------------------------------------------------------- /RxCoreDataExample/Differentiator.framework/Modules/Differentiator.swiftmodule/i386.swiftdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/Differentiator.framework/Modules/Differentiator.swiftmodule/i386.swiftdoc -------------------------------------------------------------------------------- /RxCoreDataExample/Differentiator.framework/Modules/Differentiator.swiftmodule/i386.swiftmodule: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/Differentiator.framework/Modules/Differentiator.swiftmodule/i386.swiftmodule -------------------------------------------------------------------------------- /RxCoreDataExample/Differentiator.framework/Modules/Differentiator.swiftmodule/x86_64.swiftdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/Differentiator.framework/Modules/Differentiator.swiftmodule/x86_64.swiftdoc -------------------------------------------------------------------------------- /RxCoreDataExample/Differentiator.framework/Modules/Differentiator.swiftmodule/x86_64.swiftmodule: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/Differentiator.framework/Modules/Differentiator.swiftmodule/x86_64.swiftmodule -------------------------------------------------------------------------------- /RxCoreDataExample/Differentiator.framework/Modules/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module Differentiator { 2 | umbrella header "Differentiator.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | 8 | module Differentiator.Swift { 9 | header "Differentiator-Swift.h" 10 | requires objc 11 | } 12 | -------------------------------------------------------------------------------- /RxCoreDataExample/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment the next line to define a global platform for your project 2 | platform :ios, '9.3' 3 | use_frameworks! 4 | 5 | target 'RxCoreDateExample' do 6 | # Comment the next line if you don't want to use dynamic frameworks 7 | 8 | # Pods for RxCoreDateExample 9 | pod 'RxCoreData', :path => '../' 10 | pod 'RxSwift', '~> 6.0' 11 | pod 'RxCocoa', '~> 6.0' 12 | pod 'RxDataSources', '~> 5.0' 13 | 14 | target 'RxCoreDateExampleTests' do 15 | inherit! :search_paths 16 | # Pods for testing 17 | end 18 | 19 | end 20 | -------------------------------------------------------------------------------- /RxCoreDataExample/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Differentiator (5.0.0) 3 | - RxCocoa (6.0.0): 4 | - RxRelay (= 6.0.0) 5 | - RxSwift (= 6.0.0) 6 | - RxCoreData (1.0.0): 7 | - RxCocoa (~> 6.0) 8 | - RxSwift (~> 6.0) 9 | - RxDataSources (5.0.0): 10 | - Differentiator (~> 5.0) 11 | - RxCocoa (~> 6.0) 12 | - RxSwift (~> 6.0) 13 | - RxRelay (6.0.0): 14 | - RxSwift (= 6.0.0) 15 | - RxSwift (6.0.0) 16 | 17 | DEPENDENCIES: 18 | - RxCocoa (~> 6.0) 19 | - RxCoreData (from `../`) 20 | - RxDataSources (~> 5.0) 21 | - RxSwift (~> 6.0) 22 | 23 | SPEC REPOS: 24 | trunk: 25 | - Differentiator 26 | - RxCocoa 27 | - RxDataSources 28 | - RxRelay 29 | - RxSwift 30 | 31 | EXTERNAL SOURCES: 32 | RxCoreData: 33 | :path: "../" 34 | 35 | SPEC CHECKSUMS: 36 | Differentiator: e8497ceab83c1b10ca233716d547b9af21b9344d 37 | RxCocoa: 3f79328fafa3645b34600f37c31e64c73ae3a80e 38 | RxCoreData: 4e7fa8482b3fae1e5141b1951eea2f47cab095e0 39 | RxDataSources: aa47cc1ed6c500fa0dfecac5c979b723542d79cf 40 | RxRelay: 8d593be109c06ea850df027351beba614b012ffb 41 | RxSwift: c14e798c59b9f6e9a2df8fd235602e85cc044295 42 | 43 | PODFILE CHECKSUM: fc5f513c6a95c75b12515b38ea3792daeafe8d01 44 | 45 | COCOAPODS: 1.10.0 46 | -------------------------------------------------------------------------------- /RxCoreDataExample/RxCoreDateExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 51; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 71F643367A87D33586EAA771 /* Pods_RxCoreDateExampleTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F95BF6EEA5A857B410440917 /* Pods_RxCoreDateExampleTests.framework */; }; 11 | A51DFB9D29BDCED7A77F3660 /* Pods_RxCoreDateExample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 45B70B03F6F82211DB982213 /* Pods_RxCoreDateExample.framework */; }; 12 | C4A50F10229591AE0037E608 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = C4A50F0F229591AE0037E608 /* AppDelegate.swift */; }; 13 | C4A50F12229591AE0037E608 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C4A50F11229591AE0037E608 /* ViewController.swift */; }; 14 | C4A50F15229591AE0037E608 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C4A50F13229591AE0037E608 /* Main.storyboard */; }; 15 | C4A50F17229591AF0037E608 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C4A50F16229591AF0037E608 /* Assets.xcassets */; }; 16 | C4A50F1A229591AF0037E608 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C4A50F18229591AF0037E608 /* LaunchScreen.storyboard */; }; 17 | C4A50F25229591B00037E608 /* RxCoreDateExampleTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C4A50F24229591B00037E608 /* RxCoreDateExampleTests.swift */; }; 18 | C4A50F3D22969BD00037E608 /* Model.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = C4A50F3B22969BD00037E608 /* Model.xcdatamodeld */; }; 19 | C4A50F4022969BE20037E608 /* Event+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = C4A50F3E22969BE20037E608 /* Event+Extensions.swift */; }; 20 | C4A50F4122969BE20037E608 /* Event.swift in Sources */ = {isa = PBXBuildFile; fileRef = C4A50F3F22969BE20037E608 /* Event.swift */; }; 21 | /* End PBXBuildFile section */ 22 | 23 | /* Begin PBXContainerItemProxy section */ 24 | C4A50F21229591B00037E608 /* PBXContainerItemProxy */ = { 25 | isa = PBXContainerItemProxy; 26 | containerPortal = C4A50F04229591AE0037E608 /* Project object */; 27 | proxyType = 1; 28 | remoteGlobalIDString = C4A50F0B229591AE0037E608; 29 | remoteInfo = RxCoreDateExample; 30 | }; 31 | /* End PBXContainerItemProxy section */ 32 | 33 | /* Begin PBXFileReference section */ 34 | 1CE3EBD72B27D17A8FA7E6D4 /* Pods-RxCoreDateExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RxCoreDateExample.debug.xcconfig"; path = "Target Support Files/Pods-RxCoreDateExample/Pods-RxCoreDateExample.debug.xcconfig"; sourceTree = ""; }; 35 | 2FCE8B1F3B228922FCA16128 /* Pods-RxCoreDateExampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RxCoreDateExampleTests.release.xcconfig"; path = "Target Support Files/Pods-RxCoreDateExampleTests/Pods-RxCoreDateExampleTests.release.xcconfig"; sourceTree = ""; }; 36 | 45B70B03F6F82211DB982213 /* Pods_RxCoreDateExample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RxCoreDateExample.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 37 | A65C71FF8389C3BB5EE16A14 /* Pods-RxCoreDateExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RxCoreDateExample.release.xcconfig"; path = "Target Support Files/Pods-RxCoreDateExample/Pods-RxCoreDateExample.release.xcconfig"; sourceTree = ""; }; 38 | BABCDFBC60F568538024AB9B /* Pods-RxCoreDateExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RxCoreDateExampleTests.debug.xcconfig"; path = "Target Support Files/Pods-RxCoreDateExampleTests/Pods-RxCoreDateExampleTests.debug.xcconfig"; sourceTree = ""; }; 39 | C4A50F0C229591AE0037E608 /* RxCoreDateExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RxCoreDateExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 40 | C4A50F0F229591AE0037E608 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 41 | C4A50F11229591AE0037E608 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 42 | C4A50F14229591AE0037E608 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 43 | C4A50F16229591AF0037E608 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 44 | C4A50F19229591AF0037E608 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 45 | C4A50F1B229591AF0037E608 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 46 | C4A50F20229591B00037E608 /* RxCoreDateExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RxCoreDateExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | C4A50F24229591B00037E608 /* RxCoreDateExampleTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RxCoreDateExampleTests.swift; sourceTree = ""; }; 48 | C4A50F26229591B00037E608 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 49 | C4A50F302295935A0037E608 /* RxCoreData.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = RxCoreData.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | C4A50F32229593750037E608 /* RxSwift.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = RxSwift.framework; path = ../Carthage/Build/iOS/RxSwift.framework; sourceTree = ""; }; 51 | C4A50F33229593750037E608 /* RxCocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = RxCocoa.framework; path = ../Carthage/Build/iOS/RxCocoa.framework; sourceTree = ""; }; 52 | C4A50F3C22969BD00037E608 /* Model.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = Model.xcdatamodel; sourceTree = ""; }; 53 | C4A50F3E22969BE20037E608 /* Event+Extensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Event+Extensions.swift"; sourceTree = ""; }; 54 | C4A50F3F22969BE20037E608 /* Event.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Event.swift; sourceTree = ""; }; 55 | C4A50F5D22969DB00037E608 /* RxRelay.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = RxRelay.framework; path = ../Carthage/Build/iOS/RxRelay.framework; sourceTree = ""; }; 56 | C4A50F5E22969DB00037E608 /* Differentiator.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Differentiator.framework; path = ../Carthage/Build/iOS/Differentiator.framework; sourceTree = ""; }; 57 | C4A50F5F22969DB00037E608 /* RxDataSources.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = RxDataSources.framework; path = ../Carthage/Build/iOS/RxDataSources.framework; sourceTree = ""; }; 58 | F95BF6EEA5A857B410440917 /* Pods_RxCoreDateExampleTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RxCoreDateExampleTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 59 | /* End PBXFileReference section */ 60 | 61 | /* Begin PBXFrameworksBuildPhase section */ 62 | C4A50F09229591AE0037E608 /* Frameworks */ = { 63 | isa = PBXFrameworksBuildPhase; 64 | buildActionMask = 2147483647; 65 | files = ( 66 | A51DFB9D29BDCED7A77F3660 /* Pods_RxCoreDateExample.framework in Frameworks */, 67 | ); 68 | runOnlyForDeploymentPostprocessing = 0; 69 | }; 70 | C4A50F1D229591B00037E608 /* Frameworks */ = { 71 | isa = PBXFrameworksBuildPhase; 72 | buildActionMask = 2147483647; 73 | files = ( 74 | 71F643367A87D33586EAA771 /* Pods_RxCoreDateExampleTests.framework in Frameworks */, 75 | ); 76 | runOnlyForDeploymentPostprocessing = 0; 77 | }; 78 | /* End PBXFrameworksBuildPhase section */ 79 | 80 | /* Begin PBXGroup section */ 81 | 71277D86D29AA8C1C327977C /* Pods */ = { 82 | isa = PBXGroup; 83 | children = ( 84 | 1CE3EBD72B27D17A8FA7E6D4 /* Pods-RxCoreDateExample.debug.xcconfig */, 85 | A65C71FF8389C3BB5EE16A14 /* Pods-RxCoreDateExample.release.xcconfig */, 86 | BABCDFBC60F568538024AB9B /* Pods-RxCoreDateExampleTests.debug.xcconfig */, 87 | 2FCE8B1F3B228922FCA16128 /* Pods-RxCoreDateExampleTests.release.xcconfig */, 88 | ); 89 | path = Pods; 90 | sourceTree = ""; 91 | }; 92 | C4A50F03229591AE0037E608 = { 93 | isa = PBXGroup; 94 | children = ( 95 | C4A50F0E229591AE0037E608 /* RxCoreDateExample */, 96 | C4A50F23229591B00037E608 /* RxCoreDateExampleTests */, 97 | C4A50F0D229591AE0037E608 /* Products */, 98 | C4A50F2F2295935A0037E608 /* Frameworks */, 99 | 71277D86D29AA8C1C327977C /* Pods */, 100 | ); 101 | sourceTree = ""; 102 | }; 103 | C4A50F0D229591AE0037E608 /* Products */ = { 104 | isa = PBXGroup; 105 | children = ( 106 | C4A50F0C229591AE0037E608 /* RxCoreDateExample.app */, 107 | C4A50F20229591B00037E608 /* RxCoreDateExampleTests.xctest */, 108 | ); 109 | name = Products; 110 | sourceTree = ""; 111 | }; 112 | C4A50F0E229591AE0037E608 /* RxCoreDateExample */ = { 113 | isa = PBXGroup; 114 | children = ( 115 | C4A50F0F229591AE0037E608 /* AppDelegate.swift */, 116 | C4A50F11229591AE0037E608 /* ViewController.swift */, 117 | C4A50F3F22969BE20037E608 /* Event.swift */, 118 | C4A50F3E22969BE20037E608 /* Event+Extensions.swift */, 119 | C4A50F13229591AE0037E608 /* Main.storyboard */, 120 | C4A50F16229591AF0037E608 /* Assets.xcassets */, 121 | C4A50F18229591AF0037E608 /* LaunchScreen.storyboard */, 122 | C4A50F1B229591AF0037E608 /* Info.plist */, 123 | C4A50F3B22969BD00037E608 /* Model.xcdatamodeld */, 124 | ); 125 | path = RxCoreDateExample; 126 | sourceTree = ""; 127 | }; 128 | C4A50F23229591B00037E608 /* RxCoreDateExampleTests */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | C4A50F24229591B00037E608 /* RxCoreDateExampleTests.swift */, 132 | C4A50F26229591B00037E608 /* Info.plist */, 133 | ); 134 | path = RxCoreDateExampleTests; 135 | sourceTree = ""; 136 | }; 137 | C4A50F2F2295935A0037E608 /* Frameworks */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | C4A50F33229593750037E608 /* RxCocoa.framework */, 141 | C4A50F32229593750037E608 /* RxSwift.framework */, 142 | C4A50F302295935A0037E608 /* RxCoreData.framework */, 143 | C4A50F5D22969DB00037E608 /* RxRelay.framework */, 144 | C4A50F5E22969DB00037E608 /* Differentiator.framework */, 145 | C4A50F5F22969DB00037E608 /* RxDataSources.framework */, 146 | 45B70B03F6F82211DB982213 /* Pods_RxCoreDateExample.framework */, 147 | F95BF6EEA5A857B410440917 /* Pods_RxCoreDateExampleTests.framework */, 148 | ); 149 | name = Frameworks; 150 | sourceTree = ""; 151 | }; 152 | /* End PBXGroup section */ 153 | 154 | /* Begin PBXNativeTarget section */ 155 | C4A50F0B229591AE0037E608 /* RxCoreDateExample */ = { 156 | isa = PBXNativeTarget; 157 | buildConfigurationList = C4A50F29229591B00037E608 /* Build configuration list for PBXNativeTarget "RxCoreDateExample" */; 158 | buildPhases = ( 159 | 7BA98F8C36E1948DA54A8695 /* [CP] Check Pods Manifest.lock */, 160 | C4A50F08229591AE0037E608 /* Sources */, 161 | C4A50F09229591AE0037E608 /* Frameworks */, 162 | C4A50F0A229591AE0037E608 /* Resources */, 163 | 91860C1DDEC3D6AA75FDFDE7 /* [CP] Embed Pods Frameworks */, 164 | ); 165 | buildRules = ( 166 | ); 167 | dependencies = ( 168 | ); 169 | name = RxCoreDateExample; 170 | productName = RxCoreDateExample; 171 | productReference = C4A50F0C229591AE0037E608 /* RxCoreDateExample.app */; 172 | productType = "com.apple.product-type.application"; 173 | }; 174 | C4A50F1F229591B00037E608 /* RxCoreDateExampleTests */ = { 175 | isa = PBXNativeTarget; 176 | buildConfigurationList = C4A50F2C229591B00037E608 /* Build configuration list for PBXNativeTarget "RxCoreDateExampleTests" */; 177 | buildPhases = ( 178 | E3E0570DE33C6651C42A0492 /* [CP] Check Pods Manifest.lock */, 179 | C4A50F1C229591B00037E608 /* Sources */, 180 | C4A50F1D229591B00037E608 /* Frameworks */, 181 | C4A50F1E229591B00037E608 /* Resources */, 182 | ); 183 | buildRules = ( 184 | ); 185 | dependencies = ( 186 | C4A50F22229591B00037E608 /* PBXTargetDependency */, 187 | ); 188 | name = RxCoreDateExampleTests; 189 | productName = RxCoreDateExampleTests; 190 | productReference = C4A50F20229591B00037E608 /* RxCoreDateExampleTests.xctest */; 191 | productType = "com.apple.product-type.bundle.unit-test"; 192 | }; 193 | /* End PBXNativeTarget section */ 194 | 195 | /* Begin PBXProject section */ 196 | C4A50F04229591AE0037E608 /* Project object */ = { 197 | isa = PBXProject; 198 | attributes = { 199 | LastSwiftUpdateCheck = 1020; 200 | LastUpgradeCheck = 1230; 201 | ORGANIZATIONNAME = "Bob Godwin Obi"; 202 | TargetAttributes = { 203 | C4A50F0B229591AE0037E608 = { 204 | CreatedOnToolsVersion = 10.2.1; 205 | }; 206 | C4A50F1F229591B00037E608 = { 207 | CreatedOnToolsVersion = 10.2.1; 208 | TestTargetID = C4A50F0B229591AE0037E608; 209 | }; 210 | }; 211 | }; 212 | buildConfigurationList = C4A50F07229591AE0037E608 /* Build configuration list for PBXProject "RxCoreDateExample" */; 213 | compatibilityVersion = "Xcode 9.3"; 214 | developmentRegion = en; 215 | hasScannedForEncodings = 0; 216 | knownRegions = ( 217 | en, 218 | Base, 219 | ); 220 | mainGroup = C4A50F03229591AE0037E608; 221 | productRefGroup = C4A50F0D229591AE0037E608 /* Products */; 222 | projectDirPath = ""; 223 | projectRoot = ""; 224 | targets = ( 225 | C4A50F0B229591AE0037E608 /* RxCoreDateExample */, 226 | C4A50F1F229591B00037E608 /* RxCoreDateExampleTests */, 227 | ); 228 | }; 229 | /* End PBXProject section */ 230 | 231 | /* Begin PBXResourcesBuildPhase section */ 232 | C4A50F0A229591AE0037E608 /* Resources */ = { 233 | isa = PBXResourcesBuildPhase; 234 | buildActionMask = 2147483647; 235 | files = ( 236 | C4A50F1A229591AF0037E608 /* LaunchScreen.storyboard in Resources */, 237 | C4A50F17229591AF0037E608 /* Assets.xcassets in Resources */, 238 | C4A50F15229591AE0037E608 /* Main.storyboard in Resources */, 239 | ); 240 | runOnlyForDeploymentPostprocessing = 0; 241 | }; 242 | C4A50F1E229591B00037E608 /* Resources */ = { 243 | isa = PBXResourcesBuildPhase; 244 | buildActionMask = 2147483647; 245 | files = ( 246 | ); 247 | runOnlyForDeploymentPostprocessing = 0; 248 | }; 249 | /* End PBXResourcesBuildPhase section */ 250 | 251 | /* Begin PBXShellScriptBuildPhase section */ 252 | 7BA98F8C36E1948DA54A8695 /* [CP] Check Pods Manifest.lock */ = { 253 | isa = PBXShellScriptBuildPhase; 254 | buildActionMask = 2147483647; 255 | files = ( 256 | ); 257 | inputFileListPaths = ( 258 | ); 259 | inputPaths = ( 260 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 261 | "${PODS_ROOT}/Manifest.lock", 262 | ); 263 | name = "[CP] Check Pods Manifest.lock"; 264 | outputFileListPaths = ( 265 | ); 266 | outputPaths = ( 267 | "$(DERIVED_FILE_DIR)/Pods-RxCoreDateExample-checkManifestLockResult.txt", 268 | ); 269 | runOnlyForDeploymentPostprocessing = 0; 270 | shellPath = /bin/sh; 271 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 272 | showEnvVarsInLog = 0; 273 | }; 274 | 91860C1DDEC3D6AA75FDFDE7 /* [CP] Embed Pods Frameworks */ = { 275 | isa = PBXShellScriptBuildPhase; 276 | buildActionMask = 2147483647; 277 | files = ( 278 | ); 279 | inputFileListPaths = ( 280 | "${PODS_ROOT}/Target Support Files/Pods-RxCoreDateExample/Pods-RxCoreDateExample-frameworks-${CONFIGURATION}-input-files.xcfilelist", 281 | ); 282 | name = "[CP] Embed Pods Frameworks"; 283 | outputFileListPaths = ( 284 | "${PODS_ROOT}/Target Support Files/Pods-RxCoreDateExample/Pods-RxCoreDateExample-frameworks-${CONFIGURATION}-output-files.xcfilelist", 285 | ); 286 | runOnlyForDeploymentPostprocessing = 0; 287 | shellPath = /bin/sh; 288 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RxCoreDateExample/Pods-RxCoreDateExample-frameworks.sh\"\n"; 289 | showEnvVarsInLog = 0; 290 | }; 291 | E3E0570DE33C6651C42A0492 /* [CP] Check Pods Manifest.lock */ = { 292 | isa = PBXShellScriptBuildPhase; 293 | buildActionMask = 2147483647; 294 | files = ( 295 | ); 296 | inputFileListPaths = ( 297 | ); 298 | inputPaths = ( 299 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 300 | "${PODS_ROOT}/Manifest.lock", 301 | ); 302 | name = "[CP] Check Pods Manifest.lock"; 303 | outputFileListPaths = ( 304 | ); 305 | outputPaths = ( 306 | "$(DERIVED_FILE_DIR)/Pods-RxCoreDateExampleTests-checkManifestLockResult.txt", 307 | ); 308 | runOnlyForDeploymentPostprocessing = 0; 309 | shellPath = /bin/sh; 310 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 311 | showEnvVarsInLog = 0; 312 | }; 313 | /* End PBXShellScriptBuildPhase section */ 314 | 315 | /* Begin PBXSourcesBuildPhase section */ 316 | C4A50F08229591AE0037E608 /* Sources */ = { 317 | isa = PBXSourcesBuildPhase; 318 | buildActionMask = 2147483647; 319 | files = ( 320 | C4A50F12229591AE0037E608 /* ViewController.swift in Sources */, 321 | C4A50F10229591AE0037E608 /* AppDelegate.swift in Sources */, 322 | C4A50F4022969BE20037E608 /* Event+Extensions.swift in Sources */, 323 | C4A50F3D22969BD00037E608 /* Model.xcdatamodeld in Sources */, 324 | C4A50F4122969BE20037E608 /* Event.swift in Sources */, 325 | ); 326 | runOnlyForDeploymentPostprocessing = 0; 327 | }; 328 | C4A50F1C229591B00037E608 /* Sources */ = { 329 | isa = PBXSourcesBuildPhase; 330 | buildActionMask = 2147483647; 331 | files = ( 332 | C4A50F25229591B00037E608 /* RxCoreDateExampleTests.swift in Sources */, 333 | ); 334 | runOnlyForDeploymentPostprocessing = 0; 335 | }; 336 | /* End PBXSourcesBuildPhase section */ 337 | 338 | /* Begin PBXTargetDependency section */ 339 | C4A50F22229591B00037E608 /* PBXTargetDependency */ = { 340 | isa = PBXTargetDependency; 341 | target = C4A50F0B229591AE0037E608 /* RxCoreDateExample */; 342 | targetProxy = C4A50F21229591B00037E608 /* PBXContainerItemProxy */; 343 | }; 344 | /* End PBXTargetDependency section */ 345 | 346 | /* Begin PBXVariantGroup section */ 347 | C4A50F13229591AE0037E608 /* Main.storyboard */ = { 348 | isa = PBXVariantGroup; 349 | children = ( 350 | C4A50F14229591AE0037E608 /* Base */, 351 | ); 352 | name = Main.storyboard; 353 | sourceTree = ""; 354 | }; 355 | C4A50F18229591AF0037E608 /* LaunchScreen.storyboard */ = { 356 | isa = PBXVariantGroup; 357 | children = ( 358 | C4A50F19229591AF0037E608 /* Base */, 359 | ); 360 | name = LaunchScreen.storyboard; 361 | sourceTree = ""; 362 | }; 363 | /* End PBXVariantGroup section */ 364 | 365 | /* Begin XCBuildConfiguration section */ 366 | C4A50F27229591B00037E608 /* Debug */ = { 367 | isa = XCBuildConfiguration; 368 | buildSettings = { 369 | ALWAYS_SEARCH_USER_PATHS = NO; 370 | CLANG_ANALYZER_NONNULL = YES; 371 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 372 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 373 | CLANG_CXX_LIBRARY = "libc++"; 374 | CLANG_ENABLE_MODULES = YES; 375 | CLANG_ENABLE_OBJC_ARC = YES; 376 | CLANG_ENABLE_OBJC_WEAK = YES; 377 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 378 | CLANG_WARN_BOOL_CONVERSION = YES; 379 | CLANG_WARN_COMMA = YES; 380 | CLANG_WARN_CONSTANT_CONVERSION = YES; 381 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 382 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 383 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 384 | CLANG_WARN_EMPTY_BODY = YES; 385 | CLANG_WARN_ENUM_CONVERSION = YES; 386 | CLANG_WARN_INFINITE_RECURSION = YES; 387 | CLANG_WARN_INT_CONVERSION = YES; 388 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 389 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 390 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 391 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 392 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 393 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 394 | CLANG_WARN_STRICT_PROTOTYPES = YES; 395 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 396 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 397 | CLANG_WARN_UNREACHABLE_CODE = YES; 398 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 399 | CODE_SIGN_IDENTITY = "iPhone Developer"; 400 | COPY_PHASE_STRIP = NO; 401 | DEBUG_INFORMATION_FORMAT = dwarf; 402 | ENABLE_STRICT_OBJC_MSGSEND = YES; 403 | ENABLE_TESTABILITY = YES; 404 | GCC_C_LANGUAGE_STANDARD = gnu11; 405 | GCC_DYNAMIC_NO_PIC = NO; 406 | GCC_NO_COMMON_BLOCKS = YES; 407 | GCC_OPTIMIZATION_LEVEL = 0; 408 | GCC_PREPROCESSOR_DEFINITIONS = ( 409 | "DEBUG=1", 410 | "$(inherited)", 411 | ); 412 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 413 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 414 | GCC_WARN_UNDECLARED_SELECTOR = YES; 415 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 416 | GCC_WARN_UNUSED_FUNCTION = YES; 417 | GCC_WARN_UNUSED_VARIABLE = YES; 418 | IPHONEOS_DEPLOYMENT_TARGET = 12.2; 419 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 420 | MTL_FAST_MATH = YES; 421 | ONLY_ACTIVE_ARCH = YES; 422 | SDKROOT = iphoneos; 423 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 424 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 425 | }; 426 | name = Debug; 427 | }; 428 | C4A50F28229591B00037E608 /* Release */ = { 429 | isa = XCBuildConfiguration; 430 | buildSettings = { 431 | ALWAYS_SEARCH_USER_PATHS = NO; 432 | CLANG_ANALYZER_NONNULL = YES; 433 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 434 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 435 | CLANG_CXX_LIBRARY = "libc++"; 436 | CLANG_ENABLE_MODULES = YES; 437 | CLANG_ENABLE_OBJC_ARC = YES; 438 | CLANG_ENABLE_OBJC_WEAK = YES; 439 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 440 | CLANG_WARN_BOOL_CONVERSION = YES; 441 | CLANG_WARN_COMMA = YES; 442 | CLANG_WARN_CONSTANT_CONVERSION = YES; 443 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 444 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 445 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 446 | CLANG_WARN_EMPTY_BODY = YES; 447 | CLANG_WARN_ENUM_CONVERSION = YES; 448 | CLANG_WARN_INFINITE_RECURSION = YES; 449 | CLANG_WARN_INT_CONVERSION = YES; 450 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 451 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 452 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 453 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 454 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 455 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 456 | CLANG_WARN_STRICT_PROTOTYPES = YES; 457 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 458 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 459 | CLANG_WARN_UNREACHABLE_CODE = YES; 460 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 461 | CODE_SIGN_IDENTITY = "iPhone Developer"; 462 | COPY_PHASE_STRIP = NO; 463 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 464 | ENABLE_NS_ASSERTIONS = NO; 465 | ENABLE_STRICT_OBJC_MSGSEND = YES; 466 | GCC_C_LANGUAGE_STANDARD = gnu11; 467 | GCC_NO_COMMON_BLOCKS = YES; 468 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 469 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 470 | GCC_WARN_UNDECLARED_SELECTOR = YES; 471 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 472 | GCC_WARN_UNUSED_FUNCTION = YES; 473 | GCC_WARN_UNUSED_VARIABLE = YES; 474 | IPHONEOS_DEPLOYMENT_TARGET = 12.2; 475 | MTL_ENABLE_DEBUG_INFO = NO; 476 | MTL_FAST_MATH = YES; 477 | SDKROOT = iphoneos; 478 | SWIFT_COMPILATION_MODE = wholemodule; 479 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 480 | VALIDATE_PRODUCT = YES; 481 | }; 482 | name = Release; 483 | }; 484 | C4A50F2A229591B00037E608 /* Debug */ = { 485 | isa = XCBuildConfiguration; 486 | baseConfigurationReference = 1CE3EBD72B27D17A8FA7E6D4 /* Pods-RxCoreDateExample.debug.xcconfig */; 487 | buildSettings = { 488 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 489 | CODE_SIGN_STYLE = Automatic; 490 | FRAMEWORK_SEARCH_PATHS = ( 491 | "$(inherited)", 492 | "$(SRCROOT)/../Carthage/Build/iOS", 493 | ); 494 | INFOPLIST_FILE = RxCoreDateExample/Info.plist; 495 | LD_RUNPATH_SEARCH_PATHS = ( 496 | "$(inherited)", 497 | "@executable_path/Frameworks", 498 | ); 499 | PRODUCT_BUNDLE_IDENTIFIER = bobgodwinx.RxCoreDateExample; 500 | PRODUCT_NAME = "$(TARGET_NAME)"; 501 | SWIFT_VERSION = 5.0; 502 | TARGETED_DEVICE_FAMILY = "1,2"; 503 | }; 504 | name = Debug; 505 | }; 506 | C4A50F2B229591B00037E608 /* Release */ = { 507 | isa = XCBuildConfiguration; 508 | baseConfigurationReference = A65C71FF8389C3BB5EE16A14 /* Pods-RxCoreDateExample.release.xcconfig */; 509 | buildSettings = { 510 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 511 | CODE_SIGN_STYLE = Automatic; 512 | FRAMEWORK_SEARCH_PATHS = ( 513 | "$(inherited)", 514 | "$(SRCROOT)/../Carthage/Build/iOS", 515 | ); 516 | INFOPLIST_FILE = RxCoreDateExample/Info.plist; 517 | LD_RUNPATH_SEARCH_PATHS = ( 518 | "$(inherited)", 519 | "@executable_path/Frameworks", 520 | ); 521 | PRODUCT_BUNDLE_IDENTIFIER = bobgodwinx.RxCoreDateExample; 522 | PRODUCT_NAME = "$(TARGET_NAME)"; 523 | SWIFT_VERSION = 5.0; 524 | TARGETED_DEVICE_FAMILY = "1,2"; 525 | }; 526 | name = Release; 527 | }; 528 | C4A50F2D229591B00037E608 /* Debug */ = { 529 | isa = XCBuildConfiguration; 530 | baseConfigurationReference = BABCDFBC60F568538024AB9B /* Pods-RxCoreDateExampleTests.debug.xcconfig */; 531 | buildSettings = { 532 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 533 | BUNDLE_LOADER = "$(TEST_HOST)"; 534 | CODE_SIGN_STYLE = Automatic; 535 | INFOPLIST_FILE = RxCoreDateExampleTests/Info.plist; 536 | LD_RUNPATH_SEARCH_PATHS = ( 537 | "$(inherited)", 538 | "@executable_path/Frameworks", 539 | "@loader_path/Frameworks", 540 | ); 541 | PRODUCT_BUNDLE_IDENTIFIER = bobgodwinx.RxCoreDateExampleTests; 542 | PRODUCT_NAME = "$(TARGET_NAME)"; 543 | SWIFT_VERSION = 5.0; 544 | TARGETED_DEVICE_FAMILY = "1,2"; 545 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RxCoreDateExample.app/RxCoreDateExample"; 546 | }; 547 | name = Debug; 548 | }; 549 | C4A50F2E229591B00037E608 /* Release */ = { 550 | isa = XCBuildConfiguration; 551 | baseConfigurationReference = 2FCE8B1F3B228922FCA16128 /* Pods-RxCoreDateExampleTests.release.xcconfig */; 552 | buildSettings = { 553 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 554 | BUNDLE_LOADER = "$(TEST_HOST)"; 555 | CODE_SIGN_STYLE = Automatic; 556 | INFOPLIST_FILE = RxCoreDateExampleTests/Info.plist; 557 | LD_RUNPATH_SEARCH_PATHS = ( 558 | "$(inherited)", 559 | "@executable_path/Frameworks", 560 | "@loader_path/Frameworks", 561 | ); 562 | PRODUCT_BUNDLE_IDENTIFIER = bobgodwinx.RxCoreDateExampleTests; 563 | PRODUCT_NAME = "$(TARGET_NAME)"; 564 | SWIFT_VERSION = 5.0; 565 | TARGETED_DEVICE_FAMILY = "1,2"; 566 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RxCoreDateExample.app/RxCoreDateExample"; 567 | }; 568 | name = Release; 569 | }; 570 | /* End XCBuildConfiguration section */ 571 | 572 | /* Begin XCConfigurationList section */ 573 | C4A50F07229591AE0037E608 /* Build configuration list for PBXProject "RxCoreDateExample" */ = { 574 | isa = XCConfigurationList; 575 | buildConfigurations = ( 576 | C4A50F27229591B00037E608 /* Debug */, 577 | C4A50F28229591B00037E608 /* Release */, 578 | ); 579 | defaultConfigurationIsVisible = 0; 580 | defaultConfigurationName = Release; 581 | }; 582 | C4A50F29229591B00037E608 /* Build configuration list for PBXNativeTarget "RxCoreDateExample" */ = { 583 | isa = XCConfigurationList; 584 | buildConfigurations = ( 585 | C4A50F2A229591B00037E608 /* Debug */, 586 | C4A50F2B229591B00037E608 /* Release */, 587 | ); 588 | defaultConfigurationIsVisible = 0; 589 | defaultConfigurationName = Release; 590 | }; 591 | C4A50F2C229591B00037E608 /* Build configuration list for PBXNativeTarget "RxCoreDateExampleTests" */ = { 592 | isa = XCConfigurationList; 593 | buildConfigurations = ( 594 | C4A50F2D229591B00037E608 /* Debug */, 595 | C4A50F2E229591B00037E608 /* Release */, 596 | ); 597 | defaultConfigurationIsVisible = 0; 598 | defaultConfigurationName = Release; 599 | }; 600 | /* End XCConfigurationList section */ 601 | 602 | /* Begin XCVersionGroup section */ 603 | C4A50F3B22969BD00037E608 /* Model.xcdatamodeld */ = { 604 | isa = XCVersionGroup; 605 | children = ( 606 | C4A50F3C22969BD00037E608 /* Model.xcdatamodel */, 607 | ); 608 | currentVersion = C4A50F3C22969BD00037E608 /* Model.xcdatamodel */; 609 | path = Model.xcdatamodeld; 610 | sourceTree = ""; 611 | versionGroupType = wrapper.xcdatamodel; 612 | }; 613 | /* End XCVersionGroup section */ 614 | }; 615 | rootObject = C4A50F04229591AE0037E608 /* Project object */; 616 | } 617 | -------------------------------------------------------------------------------- /RxCoreDataExample/RxCoreDateExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /RxCoreDataExample/RxCoreDateExample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /RxCoreDataExample/RxCoreDateExample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /RxCoreDataExample/RxCoreDateExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /RxCoreDataExample/RxCoreDateExample/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import CoreData 3 | 4 | @UIApplicationMain 5 | class AppDelegate: UIResponder, UIApplicationDelegate { 6 | 7 | var window: UIWindow? 8 | 9 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { 10 | ((window!.rootViewController as! UINavigationController).topViewController as! ViewController).managedObjectContext = self.managedObjectContext 11 | return true 12 | } 13 | 14 | func applicationWillResignActive(_ application: UIApplication) {} 15 | 16 | func applicationDidEnterBackground(_ application: UIApplication) {} 17 | 18 | func applicationWillEnterForeground(_ application: UIApplication) {} 19 | 20 | func applicationDidBecomeActive(_ application: UIApplication) {} 21 | 22 | func applicationWillTerminate(_ application: UIApplication) {} 23 | 24 | // MARK: - Core Data stack 25 | 26 | lazy var applicationDocumentsDirectory: URL = { 27 | let urls = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask) 28 | return urls.last! 29 | }() 30 | 31 | lazy var managedObjectModel: NSManagedObjectModel = { 32 | let modelURL = Bundle.main.url(forResource: "Model", withExtension: "momd")! 33 | return NSManagedObjectModel(contentsOf: modelURL)! 34 | }() 35 | 36 | lazy var persistentStoreCoordinator: NSPersistentStoreCoordinator = { 37 | let coordinator = NSPersistentStoreCoordinator(managedObjectModel: self.managedObjectModel) 38 | let url = self.applicationDocumentsDirectory.appendingPathComponent("RxCoreData.sqlite") 39 | var failureReason = "There was an error creating or loading the application's saved data." 40 | 41 | do { 42 | try coordinator.addPersistentStore(ofType: NSSQLiteStoreType, configurationName: nil, at: url, options: nil) 43 | } catch { 44 | var dict = [String: Any]() 45 | dict[NSLocalizedDescriptionKey] = "Failed to initialize the application's saved data" 46 | dict[NSLocalizedFailureReasonErrorKey] = failureReason 47 | 48 | dict[NSUnderlyingErrorKey] = error as NSError 49 | let wrappedError = NSError(domain: "YOUR_ERROR_DOMAIN", code: 9999, userInfo: dict) 50 | NSLog("Unresolved error \(wrappedError), \(wrappedError.userInfo)") 51 | abort() 52 | } 53 | 54 | return coordinator 55 | }() 56 | 57 | lazy var managedObjectContext: NSManagedObjectContext = { 58 | let coordinator = self.persistentStoreCoordinator 59 | var managedObjectContext = NSManagedObjectContext(concurrencyType: .mainQueueConcurrencyType) 60 | managedObjectContext.persistentStoreCoordinator = coordinator 61 | return managedObjectContext 62 | }() 63 | 64 | } 65 | -------------------------------------------------------------------------------- /RxCoreDataExample/RxCoreDateExample/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /RxCoreDataExample/RxCoreDateExample/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /RxCoreDataExample/RxCoreDateExample/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /RxCoreDataExample/RxCoreDateExample/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /RxCoreDataExample/RxCoreDateExample/Event+Extensions.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import CoreData 3 | import RxDataSources 4 | import RxCoreData 5 | 6 | func == (lhs: Event, rhs: Event) -> Bool { 7 | return lhs.id == rhs.id 8 | } 9 | 10 | extension Event : Equatable { } 11 | 12 | extension Event : IdentifiableType { 13 | typealias Identity = String 14 | 15 | var identity: Identity { return id } 16 | } 17 | 18 | extension Event : Persistable { 19 | typealias T = NSManagedObject 20 | 21 | static var entityName: String { 22 | return "Event" 23 | } 24 | 25 | static var primaryAttributeName: String { 26 | return "id" 27 | } 28 | 29 | init(entity: T) { 30 | id = entity.value(forKey: "id") as! String 31 | date = entity.value(forKey: "date") as! Date 32 | } 33 | 34 | func update(_ entity: T) { 35 | entity.setValue(id, forKey: "id") 36 | entity.setValue(date, forKey: "date") 37 | 38 | do { 39 | try entity.managedObjectContext?.save() 40 | } catch let e { 41 | print(e) 42 | } 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /RxCoreDataExample/RxCoreDateExample/Event.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | struct Event { 4 | var id: String 5 | var date: Date 6 | } 7 | -------------------------------------------------------------------------------- /RxCoreDataExample/RxCoreDateExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /RxCoreDataExample/RxCoreDateExample/Model.xcdatamodeld/Model.xcdatamodel/contents: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /RxCoreDataExample/RxCoreDateExample/ViewController.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import CoreData 3 | import RxSwift 4 | import RxCocoa 5 | import RxDataSources 6 | import RxCoreData 7 | 8 | class ViewController: UIViewController { 9 | 10 | @IBOutlet weak var tableView: UITableView! 11 | @IBOutlet weak var addBarButtonItem: UIBarButtonItem! 12 | 13 | var managedObjectContext: NSManagedObjectContext! 14 | let disposeBag = DisposeBag() 15 | 16 | override func viewDidLoad() { 17 | super.viewDidLoad() 18 | 19 | bindUI() 20 | configureTableView() 21 | } 22 | 23 | func bindUI() { 24 | addBarButtonItem.rx.tap 25 | .map { _ in 26 | Event(id: UUID().uuidString, date: Date()) 27 | }.subscribe(onNext: { [weak self] (event) in 28 | _ = try? self?.managedObjectContext.rx.update(event) 29 | }) 30 | .disposed(by: disposeBag) 31 | } 32 | 33 | func configureTableView() { 34 | tableView.isEditing = true 35 | 36 | /* 37 | // Non-animated 38 | 39 | managedObjectContext.rx.entities(Event.self, 40 | sortDescriptors: [NSSortDescriptor(key: "date", ascending: false)]) 41 | .bindTo(tableView.rx.items(cellIdentifier: "Cell")) { row, event, cell in 42 | cell.textLabel?.text = "\(event.date)" 43 | } 44 | .addDisposableTo(disposeBag) 45 | */ 46 | 47 | // Animated 48 | 49 | let animatedDataSource = RxTableViewSectionedAnimatedDataSource>(configureCell: { dateSource, tableView, indexPath, event in 50 | let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) 51 | cell.textLabel?.text = "\(event.date)" 52 | return cell 53 | }) 54 | 55 | managedObjectContext.rx.entities(Event.self, sortDescriptors: [NSSortDescriptor(key: "date", ascending: false)]) 56 | .map { events in 57 | [AnimatableSectionModel(model: "Section 1", items: events)] 58 | } 59 | .bind(to: tableView.rx.items(dataSource: animatedDataSource)) 60 | .disposed(by: disposeBag) 61 | 62 | self.tableView.rx.itemDeleted.map { [unowned self] ip -> Event in 63 | return try self.tableView.rx.model(at: ip) 64 | } 65 | .subscribe(onNext: { [unowned self] (event) in 66 | do { 67 | try self.managedObjectContext.rx.delete(event) 68 | } catch { 69 | print(error) 70 | } 71 | }) 72 | .disposed(by: disposeBag) 73 | 74 | animatedDataSource.canEditRowAtIndexPath = { _,_ in 75 | return true 76 | } 77 | animatedDataSource.canMoveRowAtIndexPath = { _,_ in 78 | return true 79 | } 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /RxCoreDataExample/RxCoreDateExampleTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /RxCoreDataExample/RxCoreDateExampleTests/RxCoreDateExampleTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RxCoreDateExampleTests.swift 3 | // RxCoreDateExampleTests 4 | // 5 | // Created by Bob Godwin Obi on 22.05.19. 6 | // Copyright © 2019 Bob Godwin Obi. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import RxCoreDateExample 11 | 12 | class RxCoreDateExampleTests: XCTestCase { 13 | 14 | override func setUp() { 15 | // Put setup code here. This method is called before the invocation of each test method in the class. 16 | } 17 | 18 | override func tearDown() { 19 | // Put teardown code here. This method is called after the invocation of each test method in the class. 20 | } 21 | 22 | func testExample() { 23 | // This is an example of a functional test case. 24 | // Use XCTAssert and related functions to verify your tests produce the correct results. 25 | } 26 | 27 | func testPerformanceExample() { 28 | // This is an example of a performance test case. 29 | self.measure { 30 | // Put the code you want to measure the time of here. 31 | } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /RxCoreDataExample/RxDataSources.framework/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | All notable changes to this project will be documented in this file. 3 | 4 | --- 5 | 6 | #### Master 7 | 8 | ## [4.0.1](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/4.0.1) 9 | 10 | * Fixes Carthage integration and reverts static frameworks to dynamic frameworks. 11 | 12 | ## [4.0.0](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/4.0.0) 13 | 14 | * Swift 5.0 15 | * Fixes problems with `UICollectionView` animation crashes. 16 | * Improves readability by renaming short generic names to more descriptive names. 17 | * Changes frameworks to be static libs. (Carthage integration) 18 | 19 | ## [3.1.0](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/3.1.0) 20 | 21 | * Xcode 10.0 compatibility. 22 | 23 | ## [3.0.2](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/3.0.2) 24 | 25 | * Makes `configureSupplementaryView` optional for reload data source. #186 26 | 27 | ## [3.0.1](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/3.0.1) 28 | 29 | * Adds custom logic to control should perform animated updates. 30 | * Fixes SPM integration. 31 | 32 | ## [3.0.0](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/3.0.0) 33 | 34 | * Adapted for RxSwift 4.0 35 | 36 | ## [3.0.0-rc.0](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/3.0.0-rc.0) 37 | 38 | * Cleans up public interface to use initializers vs nillable properties and deprecates nillable properties in favor of passing parameters 39 | through init. 40 | 41 | ## [2.0.2](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/2.0.2) 42 | 43 | * Adds Swift Package Manager support 44 | 45 | ## [2.0.1](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/2.0.1) 46 | 47 | * Fixes issue with CocoaPods and Carthage integration. 48 | 49 | ## [2.0.0](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/2.0.0) 50 | 51 | * Adds `UIPickerView` extensions. 52 | * Separates `Differentiator` from `RxDataSources`. 53 | 54 | ## [1.0.4](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/1.0.4) 55 | 56 | #### Anomalies 57 | * Fixed crash that happened when using a combination of `estimatedHeightForRow` and `tableFooterView`. #129 58 | 59 | ## [1.0.3](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/1.0.3) 60 | 61 | #### Anomalies 62 | 63 | * #84 Set data source sections even if view is not in view hierarchy. 64 | * #93 Silence optional debug print warning in swift 3.1 65 | * #96 Adds additional call to `invalidateLayout` after reloading data. 66 | 67 | ## [1.0.2](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/1.0.2) 68 | 69 | * Fixes issue with performing batch updates on view that is not in view hierarchy. 70 | 71 | ## [1.0.1](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/1.0.1) 72 | 73 | * Fixes invalid version in bundle id. 74 | * Update CFBundleShortVersionString to current release version number. 75 | 76 | ## [1.0.0](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/1.0.0) 77 | 78 | * Small polish of public interface. 79 | 80 | ## [1.0.0-rc.2](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/1.0.0-rc.2) 81 | 82 | #### Features 83 | 84 | * Makes rest of data source classes and methods open. 85 | * Small polish for UI. 86 | * Removes part of deprecated extensions. 87 | 88 | ## [1.0.0-rc.1](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/1.0.0-rc.1) 89 | 90 | #### Features 91 | 92 | * Makes data sources open. 93 | * Adaptations for RxSwift 3.0.0-rc.1 94 | 95 | ## [1.0.0-beta.2](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/1.0.0-beta.2) 96 | 97 | #### Features 98 | 99 | * Adaptations for Swift 3.0 100 | 101 | #### Fixes 102 | 103 | * Improves collection view animated updates behavior. 104 | 105 | ## [1.0.0.beta.1](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/1.0.0.beta.1) 106 | 107 | #### Features 108 | 109 | * Adaptations for Swift 3.0 110 | 111 | #### Fixes 112 | 113 | * Fixes `moveItem` 114 | 115 | ## [0.9](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/0.8.1) 116 | 117 | #### Possibly breaking changes 118 | 119 | * Adds default IdentifiableType extensions for: 120 | * String 121 | * Int 122 | * Float 123 | 124 | This can break your code if you've implemented those extensions locally. This can be easily solved by just removing local extensions. 125 | 126 | #### Features 127 | 128 | * Swift 2.3 compatible 129 | * Improves mutability checkes. If data source is being mutated after binding, warning assert is triggered. 130 | * Deprecates `cellFactory` in favor of `configureCell`. 131 | * Improves runtime checks in DEBUG mode for correct `SectionModelType.init` implementation. 132 | 133 | #### Fixes 134 | 135 | * Fixes default value for `canEditRowAtIndexPath` and sets it to `false`. 136 | * Changes DEBUG asserting behavior in case multiple items with same identity are found to printing warning message to terminal. Fallbacks as before to `reloadData`. 137 | 138 | ## [0.8.1](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/0.8.1) 139 | 140 | #### Anomalies 141 | 142 | * Fixes problem with `SectionModel.init`. 143 | 144 | ## [0.8](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/0.8) 145 | 146 | #### Features 147 | 148 | * Adds new example of how to present heterogeneous sections. 149 | 150 | #### Anomalies 151 | 152 | * Fixes old `AnimatableSectionModel` definition. 153 | * Fixes problem with `UICollectionView` iOS 9 reordering features. 154 | 155 | ## [0.7](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/0.7) 156 | 157 | #### Interface changes 158 | 159 | * Adds required initializer to `SectionModelType.init(original: Self, items: [Item])` to support moving of table rows with animation. 160 | * `rx_itemsAnimatedWithDataSource` deprecated in favor of just using `rx_itemsWithDataSource`. 161 | 162 | #### Features 163 | 164 | * Adds new example how to use delegates and reactive data sources to customize look. 165 | 166 | #### Anomalies 167 | 168 | * Fixes problems with moving rows and animated data source. 169 | 170 | ## [0.6.2](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/0.6.2) 171 | 172 | #### Features 173 | 174 | * Xcode 7.3 / Swift 2.2 support 175 | 176 | ## [0.6.1](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/0.6.1) 177 | 178 | #### Anomalies 179 | 180 | * Fixes compilation issues when `DEBUG` is defined. 181 | 182 | ## [0.6](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/0.6) 183 | 184 | #### Features 185 | 186 | * Adds `self` data source as first parameter to all closures. (**breaking change**) 187 | * Adds `AnimationConfiguration` to enable configuring animation. 188 | * Replaces binding error handling logic with `UIBindingObserver`. 189 | -------------------------------------------------------------------------------- /RxCoreDataExample/RxDataSources.framework/Differentiator.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "Differentiator" 3 | s.version = "4.0.1" 4 | s.summary = "Diff algorithm for UITableView and UICollectionView." 5 | s.description = <<-DESC 6 | Diff algorithm for UITableView and UICollectionView. 7 | RxDataSources is powered by Differentiator. 8 | DESC 9 | 10 | s.homepage = "https://github.com/RxSwiftCommunity/RxDataSources" 11 | s.license = 'MIT' 12 | s.author = { "Krunoslav Zaher" => "krunoslav.zaher@gmail.com" } 13 | s.source = { :git => "https://github.com/RxSwiftCommunity/RxDataSources.git", :tag => s.version.to_s } 14 | 15 | s.requires_arc = true 16 | s.swift_version = '5.0' 17 | 18 | s.source_files = 'Sources/Differentiator/**/*.swift' 19 | 20 | s.ios.deployment_target = '8.0' 21 | s.tvos.deployment_target = '9.0' 22 | 23 | end 24 | -------------------------------------------------------------------------------- /RxCoreDataExample/RxDataSources.framework/Headers/RxDataSources-Swift.h: -------------------------------------------------------------------------------- 1 | #ifndef TARGET_OS_SIMULATOR 2 | #include 3 | #endif 4 | #if TARGET_OS_SIMULATOR 5 | #if 0 6 | #elif defined(__x86_64__) && __x86_64__ 7 | // Generated by Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5) 8 | #pragma clang diagnostic push 9 | #pragma clang diagnostic ignored "-Wgcc-compat" 10 | 11 | #if !defined(__has_include) 12 | # define __has_include(x) 0 13 | #endif 14 | #if !defined(__has_attribute) 15 | # define __has_attribute(x) 0 16 | #endif 17 | #if !defined(__has_feature) 18 | # define __has_feature(x) 0 19 | #endif 20 | #if !defined(__has_warning) 21 | # define __has_warning(x) 0 22 | #endif 23 | 24 | #if __has_include() 25 | # include 26 | #endif 27 | 28 | #pragma clang diagnostic ignored "-Wauto-import" 29 | #include 30 | #include 31 | #include 32 | #include 33 | 34 | #if !defined(SWIFT_TYPEDEFS) 35 | # define SWIFT_TYPEDEFS 1 36 | # if __has_include() 37 | # include 38 | # elif !defined(__cplusplus) 39 | typedef uint_least16_t char16_t; 40 | typedef uint_least32_t char32_t; 41 | # endif 42 | typedef float swift_float2 __attribute__((__ext_vector_type__(2))); 43 | typedef float swift_float3 __attribute__((__ext_vector_type__(3))); 44 | typedef float swift_float4 __attribute__((__ext_vector_type__(4))); 45 | typedef double swift_double2 __attribute__((__ext_vector_type__(2))); 46 | typedef double swift_double3 __attribute__((__ext_vector_type__(3))); 47 | typedef double swift_double4 __attribute__((__ext_vector_type__(4))); 48 | typedef int swift_int2 __attribute__((__ext_vector_type__(2))); 49 | typedef int swift_int3 __attribute__((__ext_vector_type__(3))); 50 | typedef int swift_int4 __attribute__((__ext_vector_type__(4))); 51 | typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); 52 | typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); 53 | typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); 54 | #endif 55 | 56 | #if !defined(SWIFT_PASTE) 57 | # define SWIFT_PASTE_HELPER(x, y) x##y 58 | # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) 59 | #endif 60 | #if !defined(SWIFT_METATYPE) 61 | # define SWIFT_METATYPE(X) Class 62 | #endif 63 | #if !defined(SWIFT_CLASS_PROPERTY) 64 | # if __has_feature(objc_class_property) 65 | # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ 66 | # else 67 | # define SWIFT_CLASS_PROPERTY(...) 68 | # endif 69 | #endif 70 | 71 | #if __has_attribute(objc_runtime_name) 72 | # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) 73 | #else 74 | # define SWIFT_RUNTIME_NAME(X) 75 | #endif 76 | #if __has_attribute(swift_name) 77 | # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) 78 | #else 79 | # define SWIFT_COMPILE_NAME(X) 80 | #endif 81 | #if __has_attribute(objc_method_family) 82 | # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) 83 | #else 84 | # define SWIFT_METHOD_FAMILY(X) 85 | #endif 86 | #if __has_attribute(noescape) 87 | # define SWIFT_NOESCAPE __attribute__((noescape)) 88 | #else 89 | # define SWIFT_NOESCAPE 90 | #endif 91 | #if __has_attribute(warn_unused_result) 92 | # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) 93 | #else 94 | # define SWIFT_WARN_UNUSED_RESULT 95 | #endif 96 | #if __has_attribute(noreturn) 97 | # define SWIFT_NORETURN __attribute__((noreturn)) 98 | #else 99 | # define SWIFT_NORETURN 100 | #endif 101 | #if !defined(SWIFT_CLASS_EXTRA) 102 | # define SWIFT_CLASS_EXTRA 103 | #endif 104 | #if !defined(SWIFT_PROTOCOL_EXTRA) 105 | # define SWIFT_PROTOCOL_EXTRA 106 | #endif 107 | #if !defined(SWIFT_ENUM_EXTRA) 108 | # define SWIFT_ENUM_EXTRA 109 | #endif 110 | #if !defined(SWIFT_CLASS) 111 | # if __has_attribute(objc_subclassing_restricted) 112 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA 113 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 114 | # else 115 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 116 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 117 | # endif 118 | #endif 119 | 120 | #if !defined(SWIFT_PROTOCOL) 121 | # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 122 | # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 123 | #endif 124 | 125 | #if !defined(SWIFT_EXTENSION) 126 | # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) 127 | #endif 128 | 129 | #if !defined(OBJC_DESIGNATED_INITIALIZER) 130 | # if __has_attribute(objc_designated_initializer) 131 | # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) 132 | # else 133 | # define OBJC_DESIGNATED_INITIALIZER 134 | # endif 135 | #endif 136 | #if !defined(SWIFT_ENUM_ATTR) 137 | # if defined(__has_attribute) && __has_attribute(enum_extensibility) 138 | # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) 139 | # else 140 | # define SWIFT_ENUM_ATTR(_extensibility) 141 | # endif 142 | #endif 143 | #if !defined(SWIFT_ENUM) 144 | # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 145 | # if __has_feature(generalized_swift_name) 146 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 147 | # else 148 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) 149 | # endif 150 | #endif 151 | #if !defined(SWIFT_UNAVAILABLE) 152 | # define SWIFT_UNAVAILABLE __attribute__((unavailable)) 153 | #endif 154 | #if !defined(SWIFT_UNAVAILABLE_MSG) 155 | # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) 156 | #endif 157 | #if !defined(SWIFT_AVAILABILITY) 158 | # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) 159 | #endif 160 | #if !defined(SWIFT_DEPRECATED) 161 | # define SWIFT_DEPRECATED __attribute__((deprecated)) 162 | #endif 163 | #if !defined(SWIFT_DEPRECATED_MSG) 164 | # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) 165 | #endif 166 | #if __has_feature(attribute_diagnose_if_objc) 167 | # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) 168 | #else 169 | # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) 170 | #endif 171 | #if __has_feature(modules) 172 | #if __has_warning("-Watimport-in-framework-header") 173 | #pragma clang diagnostic ignored "-Watimport-in-framework-header" 174 | #endif 175 | @import UIKit; 176 | #endif 177 | 178 | #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" 179 | #pragma clang diagnostic ignored "-Wduplicate-method-arg" 180 | #if __has_warning("-Wpragma-clang-attribute") 181 | # pragma clang diagnostic ignored "-Wpragma-clang-attribute" 182 | #endif 183 | #pragma clang diagnostic ignored "-Wunknown-pragmas" 184 | #pragma clang diagnostic ignored "-Wnullability" 185 | 186 | #if __has_attribute(external_source_symbol) 187 | # pragma push_macro("any") 188 | # undef any 189 | # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="RxDataSources",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) 190 | # pragma pop_macro("any") 191 | #endif 192 | 193 | 194 | 195 | 196 | 197 | #if __has_attribute(external_source_symbol) 198 | # pragma clang attribute pop 199 | #endif 200 | #pragma clang diagnostic pop 201 | 202 | #elif defined(__i386__) && __i386__ 203 | // Generated by Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5) 204 | #pragma clang diagnostic push 205 | #pragma clang diagnostic ignored "-Wgcc-compat" 206 | 207 | #if !defined(__has_include) 208 | # define __has_include(x) 0 209 | #endif 210 | #if !defined(__has_attribute) 211 | # define __has_attribute(x) 0 212 | #endif 213 | #if !defined(__has_feature) 214 | # define __has_feature(x) 0 215 | #endif 216 | #if !defined(__has_warning) 217 | # define __has_warning(x) 0 218 | #endif 219 | 220 | #if __has_include() 221 | # include 222 | #endif 223 | 224 | #pragma clang diagnostic ignored "-Wauto-import" 225 | #include 226 | #include 227 | #include 228 | #include 229 | 230 | #if !defined(SWIFT_TYPEDEFS) 231 | # define SWIFT_TYPEDEFS 1 232 | # if __has_include() 233 | # include 234 | # elif !defined(__cplusplus) 235 | typedef uint_least16_t char16_t; 236 | typedef uint_least32_t char32_t; 237 | # endif 238 | typedef float swift_float2 __attribute__((__ext_vector_type__(2))); 239 | typedef float swift_float3 __attribute__((__ext_vector_type__(3))); 240 | typedef float swift_float4 __attribute__((__ext_vector_type__(4))); 241 | typedef double swift_double2 __attribute__((__ext_vector_type__(2))); 242 | typedef double swift_double3 __attribute__((__ext_vector_type__(3))); 243 | typedef double swift_double4 __attribute__((__ext_vector_type__(4))); 244 | typedef int swift_int2 __attribute__((__ext_vector_type__(2))); 245 | typedef int swift_int3 __attribute__((__ext_vector_type__(3))); 246 | typedef int swift_int4 __attribute__((__ext_vector_type__(4))); 247 | typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); 248 | typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); 249 | typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); 250 | #endif 251 | 252 | #if !defined(SWIFT_PASTE) 253 | # define SWIFT_PASTE_HELPER(x, y) x##y 254 | # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) 255 | #endif 256 | #if !defined(SWIFT_METATYPE) 257 | # define SWIFT_METATYPE(X) Class 258 | #endif 259 | #if !defined(SWIFT_CLASS_PROPERTY) 260 | # if __has_feature(objc_class_property) 261 | # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ 262 | # else 263 | # define SWIFT_CLASS_PROPERTY(...) 264 | # endif 265 | #endif 266 | 267 | #if __has_attribute(objc_runtime_name) 268 | # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) 269 | #else 270 | # define SWIFT_RUNTIME_NAME(X) 271 | #endif 272 | #if __has_attribute(swift_name) 273 | # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) 274 | #else 275 | # define SWIFT_COMPILE_NAME(X) 276 | #endif 277 | #if __has_attribute(objc_method_family) 278 | # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) 279 | #else 280 | # define SWIFT_METHOD_FAMILY(X) 281 | #endif 282 | #if __has_attribute(noescape) 283 | # define SWIFT_NOESCAPE __attribute__((noescape)) 284 | #else 285 | # define SWIFT_NOESCAPE 286 | #endif 287 | #if __has_attribute(warn_unused_result) 288 | # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) 289 | #else 290 | # define SWIFT_WARN_UNUSED_RESULT 291 | #endif 292 | #if __has_attribute(noreturn) 293 | # define SWIFT_NORETURN __attribute__((noreturn)) 294 | #else 295 | # define SWIFT_NORETURN 296 | #endif 297 | #if !defined(SWIFT_CLASS_EXTRA) 298 | # define SWIFT_CLASS_EXTRA 299 | #endif 300 | #if !defined(SWIFT_PROTOCOL_EXTRA) 301 | # define SWIFT_PROTOCOL_EXTRA 302 | #endif 303 | #if !defined(SWIFT_ENUM_EXTRA) 304 | # define SWIFT_ENUM_EXTRA 305 | #endif 306 | #if !defined(SWIFT_CLASS) 307 | # if __has_attribute(objc_subclassing_restricted) 308 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA 309 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 310 | # else 311 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 312 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 313 | # endif 314 | #endif 315 | 316 | #if !defined(SWIFT_PROTOCOL) 317 | # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 318 | # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 319 | #endif 320 | 321 | #if !defined(SWIFT_EXTENSION) 322 | # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) 323 | #endif 324 | 325 | #if !defined(OBJC_DESIGNATED_INITIALIZER) 326 | # if __has_attribute(objc_designated_initializer) 327 | # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) 328 | # else 329 | # define OBJC_DESIGNATED_INITIALIZER 330 | # endif 331 | #endif 332 | #if !defined(SWIFT_ENUM_ATTR) 333 | # if defined(__has_attribute) && __has_attribute(enum_extensibility) 334 | # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) 335 | # else 336 | # define SWIFT_ENUM_ATTR(_extensibility) 337 | # endif 338 | #endif 339 | #if !defined(SWIFT_ENUM) 340 | # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 341 | # if __has_feature(generalized_swift_name) 342 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 343 | # else 344 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) 345 | # endif 346 | #endif 347 | #if !defined(SWIFT_UNAVAILABLE) 348 | # define SWIFT_UNAVAILABLE __attribute__((unavailable)) 349 | #endif 350 | #if !defined(SWIFT_UNAVAILABLE_MSG) 351 | # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) 352 | #endif 353 | #if !defined(SWIFT_AVAILABILITY) 354 | # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) 355 | #endif 356 | #if !defined(SWIFT_DEPRECATED) 357 | # define SWIFT_DEPRECATED __attribute__((deprecated)) 358 | #endif 359 | #if !defined(SWIFT_DEPRECATED_MSG) 360 | # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) 361 | #endif 362 | #if __has_feature(attribute_diagnose_if_objc) 363 | # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) 364 | #else 365 | # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) 366 | #endif 367 | #if __has_feature(modules) 368 | #if __has_warning("-Watimport-in-framework-header") 369 | #pragma clang diagnostic ignored "-Watimport-in-framework-header" 370 | #endif 371 | @import UIKit; 372 | #endif 373 | 374 | #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" 375 | #pragma clang diagnostic ignored "-Wduplicate-method-arg" 376 | #if __has_warning("-Wpragma-clang-attribute") 377 | # pragma clang diagnostic ignored "-Wpragma-clang-attribute" 378 | #endif 379 | #pragma clang diagnostic ignored "-Wunknown-pragmas" 380 | #pragma clang diagnostic ignored "-Wnullability" 381 | 382 | #if __has_attribute(external_source_symbol) 383 | # pragma push_macro("any") 384 | # undef any 385 | # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="RxDataSources",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) 386 | # pragma pop_macro("any") 387 | #endif 388 | 389 | 390 | 391 | 392 | 393 | #if __has_attribute(external_source_symbol) 394 | # pragma clang attribute pop 395 | #endif 396 | #pragma clang diagnostic pop 397 | 398 | #endif 399 | 400 | #else 401 | #if 0 402 | #elif defined(__arm64__) && __arm64__ 403 | // Generated by Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5) 404 | #pragma clang diagnostic push 405 | #pragma clang diagnostic ignored "-Wgcc-compat" 406 | 407 | #if !defined(__has_include) 408 | # define __has_include(x) 0 409 | #endif 410 | #if !defined(__has_attribute) 411 | # define __has_attribute(x) 0 412 | #endif 413 | #if !defined(__has_feature) 414 | # define __has_feature(x) 0 415 | #endif 416 | #if !defined(__has_warning) 417 | # define __has_warning(x) 0 418 | #endif 419 | 420 | #if __has_include() 421 | # include 422 | #endif 423 | 424 | #pragma clang diagnostic ignored "-Wauto-import" 425 | #include 426 | #include 427 | #include 428 | #include 429 | 430 | #if !defined(SWIFT_TYPEDEFS) 431 | # define SWIFT_TYPEDEFS 1 432 | # if __has_include() 433 | # include 434 | # elif !defined(__cplusplus) 435 | typedef uint_least16_t char16_t; 436 | typedef uint_least32_t char32_t; 437 | # endif 438 | typedef float swift_float2 __attribute__((__ext_vector_type__(2))); 439 | typedef float swift_float3 __attribute__((__ext_vector_type__(3))); 440 | typedef float swift_float4 __attribute__((__ext_vector_type__(4))); 441 | typedef double swift_double2 __attribute__((__ext_vector_type__(2))); 442 | typedef double swift_double3 __attribute__((__ext_vector_type__(3))); 443 | typedef double swift_double4 __attribute__((__ext_vector_type__(4))); 444 | typedef int swift_int2 __attribute__((__ext_vector_type__(2))); 445 | typedef int swift_int3 __attribute__((__ext_vector_type__(3))); 446 | typedef int swift_int4 __attribute__((__ext_vector_type__(4))); 447 | typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); 448 | typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); 449 | typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); 450 | #endif 451 | 452 | #if !defined(SWIFT_PASTE) 453 | # define SWIFT_PASTE_HELPER(x, y) x##y 454 | # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) 455 | #endif 456 | #if !defined(SWIFT_METATYPE) 457 | # define SWIFT_METATYPE(X) Class 458 | #endif 459 | #if !defined(SWIFT_CLASS_PROPERTY) 460 | # if __has_feature(objc_class_property) 461 | # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ 462 | # else 463 | # define SWIFT_CLASS_PROPERTY(...) 464 | # endif 465 | #endif 466 | 467 | #if __has_attribute(objc_runtime_name) 468 | # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) 469 | #else 470 | # define SWIFT_RUNTIME_NAME(X) 471 | #endif 472 | #if __has_attribute(swift_name) 473 | # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) 474 | #else 475 | # define SWIFT_COMPILE_NAME(X) 476 | #endif 477 | #if __has_attribute(objc_method_family) 478 | # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) 479 | #else 480 | # define SWIFT_METHOD_FAMILY(X) 481 | #endif 482 | #if __has_attribute(noescape) 483 | # define SWIFT_NOESCAPE __attribute__((noescape)) 484 | #else 485 | # define SWIFT_NOESCAPE 486 | #endif 487 | #if __has_attribute(warn_unused_result) 488 | # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) 489 | #else 490 | # define SWIFT_WARN_UNUSED_RESULT 491 | #endif 492 | #if __has_attribute(noreturn) 493 | # define SWIFT_NORETURN __attribute__((noreturn)) 494 | #else 495 | # define SWIFT_NORETURN 496 | #endif 497 | #if !defined(SWIFT_CLASS_EXTRA) 498 | # define SWIFT_CLASS_EXTRA 499 | #endif 500 | #if !defined(SWIFT_PROTOCOL_EXTRA) 501 | # define SWIFT_PROTOCOL_EXTRA 502 | #endif 503 | #if !defined(SWIFT_ENUM_EXTRA) 504 | # define SWIFT_ENUM_EXTRA 505 | #endif 506 | #if !defined(SWIFT_CLASS) 507 | # if __has_attribute(objc_subclassing_restricted) 508 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA 509 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 510 | # else 511 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 512 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 513 | # endif 514 | #endif 515 | 516 | #if !defined(SWIFT_PROTOCOL) 517 | # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 518 | # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 519 | #endif 520 | 521 | #if !defined(SWIFT_EXTENSION) 522 | # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) 523 | #endif 524 | 525 | #if !defined(OBJC_DESIGNATED_INITIALIZER) 526 | # if __has_attribute(objc_designated_initializer) 527 | # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) 528 | # else 529 | # define OBJC_DESIGNATED_INITIALIZER 530 | # endif 531 | #endif 532 | #if !defined(SWIFT_ENUM_ATTR) 533 | # if defined(__has_attribute) && __has_attribute(enum_extensibility) 534 | # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) 535 | # else 536 | # define SWIFT_ENUM_ATTR(_extensibility) 537 | # endif 538 | #endif 539 | #if !defined(SWIFT_ENUM) 540 | # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 541 | # if __has_feature(generalized_swift_name) 542 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 543 | # else 544 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) 545 | # endif 546 | #endif 547 | #if !defined(SWIFT_UNAVAILABLE) 548 | # define SWIFT_UNAVAILABLE __attribute__((unavailable)) 549 | #endif 550 | #if !defined(SWIFT_UNAVAILABLE_MSG) 551 | # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) 552 | #endif 553 | #if !defined(SWIFT_AVAILABILITY) 554 | # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) 555 | #endif 556 | #if !defined(SWIFT_DEPRECATED) 557 | # define SWIFT_DEPRECATED __attribute__((deprecated)) 558 | #endif 559 | #if !defined(SWIFT_DEPRECATED_MSG) 560 | # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) 561 | #endif 562 | #if __has_feature(attribute_diagnose_if_objc) 563 | # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) 564 | #else 565 | # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) 566 | #endif 567 | #if __has_feature(modules) 568 | #if __has_warning("-Watimport-in-framework-header") 569 | #pragma clang diagnostic ignored "-Watimport-in-framework-header" 570 | #endif 571 | @import UIKit; 572 | #endif 573 | 574 | #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" 575 | #pragma clang diagnostic ignored "-Wduplicate-method-arg" 576 | #if __has_warning("-Wpragma-clang-attribute") 577 | # pragma clang diagnostic ignored "-Wpragma-clang-attribute" 578 | #endif 579 | #pragma clang diagnostic ignored "-Wunknown-pragmas" 580 | #pragma clang diagnostic ignored "-Wnullability" 581 | 582 | #if __has_attribute(external_source_symbol) 583 | # pragma push_macro("any") 584 | # undef any 585 | # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="RxDataSources",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) 586 | # pragma pop_macro("any") 587 | #endif 588 | 589 | 590 | 591 | 592 | 593 | #if __has_attribute(external_source_symbol) 594 | # pragma clang attribute pop 595 | #endif 596 | #pragma clang diagnostic pop 597 | 598 | #elif defined(__ARM_ARCH_7A__) && __ARM_ARCH_7A__ 599 | // Generated by Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5) 600 | #pragma clang diagnostic push 601 | #pragma clang diagnostic ignored "-Wgcc-compat" 602 | 603 | #if !defined(__has_include) 604 | # define __has_include(x) 0 605 | #endif 606 | #if !defined(__has_attribute) 607 | # define __has_attribute(x) 0 608 | #endif 609 | #if !defined(__has_feature) 610 | # define __has_feature(x) 0 611 | #endif 612 | #if !defined(__has_warning) 613 | # define __has_warning(x) 0 614 | #endif 615 | 616 | #if __has_include() 617 | # include 618 | #endif 619 | 620 | #pragma clang diagnostic ignored "-Wauto-import" 621 | #include 622 | #include 623 | #include 624 | #include 625 | 626 | #if !defined(SWIFT_TYPEDEFS) 627 | # define SWIFT_TYPEDEFS 1 628 | # if __has_include() 629 | # include 630 | # elif !defined(__cplusplus) 631 | typedef uint_least16_t char16_t; 632 | typedef uint_least32_t char32_t; 633 | # endif 634 | typedef float swift_float2 __attribute__((__ext_vector_type__(2))); 635 | typedef float swift_float3 __attribute__((__ext_vector_type__(3))); 636 | typedef float swift_float4 __attribute__((__ext_vector_type__(4))); 637 | typedef double swift_double2 __attribute__((__ext_vector_type__(2))); 638 | typedef double swift_double3 __attribute__((__ext_vector_type__(3))); 639 | typedef double swift_double4 __attribute__((__ext_vector_type__(4))); 640 | typedef int swift_int2 __attribute__((__ext_vector_type__(2))); 641 | typedef int swift_int3 __attribute__((__ext_vector_type__(3))); 642 | typedef int swift_int4 __attribute__((__ext_vector_type__(4))); 643 | typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); 644 | typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); 645 | typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); 646 | #endif 647 | 648 | #if !defined(SWIFT_PASTE) 649 | # define SWIFT_PASTE_HELPER(x, y) x##y 650 | # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) 651 | #endif 652 | #if !defined(SWIFT_METATYPE) 653 | # define SWIFT_METATYPE(X) Class 654 | #endif 655 | #if !defined(SWIFT_CLASS_PROPERTY) 656 | # if __has_feature(objc_class_property) 657 | # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ 658 | # else 659 | # define SWIFT_CLASS_PROPERTY(...) 660 | # endif 661 | #endif 662 | 663 | #if __has_attribute(objc_runtime_name) 664 | # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) 665 | #else 666 | # define SWIFT_RUNTIME_NAME(X) 667 | #endif 668 | #if __has_attribute(swift_name) 669 | # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) 670 | #else 671 | # define SWIFT_COMPILE_NAME(X) 672 | #endif 673 | #if __has_attribute(objc_method_family) 674 | # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) 675 | #else 676 | # define SWIFT_METHOD_FAMILY(X) 677 | #endif 678 | #if __has_attribute(noescape) 679 | # define SWIFT_NOESCAPE __attribute__((noescape)) 680 | #else 681 | # define SWIFT_NOESCAPE 682 | #endif 683 | #if __has_attribute(warn_unused_result) 684 | # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) 685 | #else 686 | # define SWIFT_WARN_UNUSED_RESULT 687 | #endif 688 | #if __has_attribute(noreturn) 689 | # define SWIFT_NORETURN __attribute__((noreturn)) 690 | #else 691 | # define SWIFT_NORETURN 692 | #endif 693 | #if !defined(SWIFT_CLASS_EXTRA) 694 | # define SWIFT_CLASS_EXTRA 695 | #endif 696 | #if !defined(SWIFT_PROTOCOL_EXTRA) 697 | # define SWIFT_PROTOCOL_EXTRA 698 | #endif 699 | #if !defined(SWIFT_ENUM_EXTRA) 700 | # define SWIFT_ENUM_EXTRA 701 | #endif 702 | #if !defined(SWIFT_CLASS) 703 | # if __has_attribute(objc_subclassing_restricted) 704 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA 705 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 706 | # else 707 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 708 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 709 | # endif 710 | #endif 711 | 712 | #if !defined(SWIFT_PROTOCOL) 713 | # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 714 | # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 715 | #endif 716 | 717 | #if !defined(SWIFT_EXTENSION) 718 | # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) 719 | #endif 720 | 721 | #if !defined(OBJC_DESIGNATED_INITIALIZER) 722 | # if __has_attribute(objc_designated_initializer) 723 | # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) 724 | # else 725 | # define OBJC_DESIGNATED_INITIALIZER 726 | # endif 727 | #endif 728 | #if !defined(SWIFT_ENUM_ATTR) 729 | # if defined(__has_attribute) && __has_attribute(enum_extensibility) 730 | # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) 731 | # else 732 | # define SWIFT_ENUM_ATTR(_extensibility) 733 | # endif 734 | #endif 735 | #if !defined(SWIFT_ENUM) 736 | # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 737 | # if __has_feature(generalized_swift_name) 738 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 739 | # else 740 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) 741 | # endif 742 | #endif 743 | #if !defined(SWIFT_UNAVAILABLE) 744 | # define SWIFT_UNAVAILABLE __attribute__((unavailable)) 745 | #endif 746 | #if !defined(SWIFT_UNAVAILABLE_MSG) 747 | # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) 748 | #endif 749 | #if !defined(SWIFT_AVAILABILITY) 750 | # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) 751 | #endif 752 | #if !defined(SWIFT_DEPRECATED) 753 | # define SWIFT_DEPRECATED __attribute__((deprecated)) 754 | #endif 755 | #if !defined(SWIFT_DEPRECATED_MSG) 756 | # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) 757 | #endif 758 | #if __has_feature(attribute_diagnose_if_objc) 759 | # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) 760 | #else 761 | # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) 762 | #endif 763 | #if __has_feature(modules) 764 | #if __has_warning("-Watimport-in-framework-header") 765 | #pragma clang diagnostic ignored "-Watimport-in-framework-header" 766 | #endif 767 | @import UIKit; 768 | #endif 769 | 770 | #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" 771 | #pragma clang diagnostic ignored "-Wduplicate-method-arg" 772 | #if __has_warning("-Wpragma-clang-attribute") 773 | # pragma clang diagnostic ignored "-Wpragma-clang-attribute" 774 | #endif 775 | #pragma clang diagnostic ignored "-Wunknown-pragmas" 776 | #pragma clang diagnostic ignored "-Wnullability" 777 | 778 | #if __has_attribute(external_source_symbol) 779 | # pragma push_macro("any") 780 | # undef any 781 | # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="RxDataSources",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) 782 | # pragma pop_macro("any") 783 | #endif 784 | 785 | 786 | 787 | 788 | 789 | #if __has_attribute(external_source_symbol) 790 | # pragma clang attribute pop 791 | #endif 792 | #pragma clang diagnostic pop 793 | 794 | #endif 795 | 796 | #endif 797 | -------------------------------------------------------------------------------- /RxCoreDataExample/RxDataSources.framework/Headers/RxDataSources.h: -------------------------------------------------------------------------------- 1 | // 2 | // RxDataSources.h 3 | // RxDataSources 4 | // 5 | // Created by Krunoslav Zaher on 1/1/16. 6 | // Copyright © 2016 kzaher. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for RxDataSources. 12 | FOUNDATION_EXPORT double RxDataSourcesVersionNumber; 13 | 14 | //! Project version string for RxDataSources. 15 | FOUNDATION_EXPORT const unsigned char RxDataSourcesVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /RxCoreDataExample/RxDataSources.framework/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxDataSources.framework/Info.plist -------------------------------------------------------------------------------- /RxCoreDataExample/RxDataSources.framework/Modules/RxDataSources.swiftmodule/arm.swiftdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxDataSources.framework/Modules/RxDataSources.swiftmodule/arm.swiftdoc -------------------------------------------------------------------------------- /RxCoreDataExample/RxDataSources.framework/Modules/RxDataSources.swiftmodule/arm.swiftmodule: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxDataSources.framework/Modules/RxDataSources.swiftmodule/arm.swiftmodule -------------------------------------------------------------------------------- /RxCoreDataExample/RxDataSources.framework/Modules/RxDataSources.swiftmodule/arm64.swiftdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxDataSources.framework/Modules/RxDataSources.swiftmodule/arm64.swiftdoc -------------------------------------------------------------------------------- /RxCoreDataExample/RxDataSources.framework/Modules/RxDataSources.swiftmodule/arm64.swiftmodule: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxDataSources.framework/Modules/RxDataSources.swiftmodule/arm64.swiftmodule -------------------------------------------------------------------------------- /RxCoreDataExample/RxDataSources.framework/Modules/RxDataSources.swiftmodule/armv7.swiftdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxDataSources.framework/Modules/RxDataSources.swiftmodule/armv7.swiftdoc -------------------------------------------------------------------------------- /RxCoreDataExample/RxDataSources.framework/Modules/RxDataSources.swiftmodule/armv7.swiftmodule: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxDataSources.framework/Modules/RxDataSources.swiftmodule/armv7.swiftmodule -------------------------------------------------------------------------------- /RxCoreDataExample/RxDataSources.framework/Modules/RxDataSources.swiftmodule/i386.swiftdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxDataSources.framework/Modules/RxDataSources.swiftmodule/i386.swiftdoc -------------------------------------------------------------------------------- /RxCoreDataExample/RxDataSources.framework/Modules/RxDataSources.swiftmodule/i386.swiftmodule: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxDataSources.framework/Modules/RxDataSources.swiftmodule/i386.swiftmodule -------------------------------------------------------------------------------- /RxCoreDataExample/RxDataSources.framework/Modules/RxDataSources.swiftmodule/x86_64.swiftdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxDataSources.framework/Modules/RxDataSources.swiftmodule/x86_64.swiftdoc -------------------------------------------------------------------------------- /RxCoreDataExample/RxDataSources.framework/Modules/RxDataSources.swiftmodule/x86_64.swiftmodule: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxDataSources.framework/Modules/RxDataSources.swiftmodule/x86_64.swiftmodule -------------------------------------------------------------------------------- /RxCoreDataExample/RxDataSources.framework/Modules/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module RxDataSources { 2 | umbrella header "RxDataSources.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | 8 | module RxDataSources.Swift { 9 | header "RxDataSources-Swift.h" 10 | requires objc 11 | } 12 | -------------------------------------------------------------------------------- /RxCoreDataExample/RxDataSources.framework/RxDataSources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxDataSources.framework/RxDataSources -------------------------------------------------------------------------------- /RxCoreDataExample/RxRelay.framework/Headers/RxRelay-Swift.h: -------------------------------------------------------------------------------- 1 | #ifndef TARGET_OS_SIMULATOR 2 | #include 3 | #endif 4 | #if TARGET_OS_SIMULATOR 5 | #if 0 6 | #elif defined(__x86_64__) && __x86_64__ 7 | // Generated by Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5) 8 | #pragma clang diagnostic push 9 | #pragma clang diagnostic ignored "-Wgcc-compat" 10 | 11 | #if !defined(__has_include) 12 | # define __has_include(x) 0 13 | #endif 14 | #if !defined(__has_attribute) 15 | # define __has_attribute(x) 0 16 | #endif 17 | #if !defined(__has_feature) 18 | # define __has_feature(x) 0 19 | #endif 20 | #if !defined(__has_warning) 21 | # define __has_warning(x) 0 22 | #endif 23 | 24 | #if __has_include() 25 | # include 26 | #endif 27 | 28 | #pragma clang diagnostic ignored "-Wauto-import" 29 | #include 30 | #include 31 | #include 32 | #include 33 | 34 | #if !defined(SWIFT_TYPEDEFS) 35 | # define SWIFT_TYPEDEFS 1 36 | # if __has_include() 37 | # include 38 | # elif !defined(__cplusplus) 39 | typedef uint_least16_t char16_t; 40 | typedef uint_least32_t char32_t; 41 | # endif 42 | typedef float swift_float2 __attribute__((__ext_vector_type__(2))); 43 | typedef float swift_float3 __attribute__((__ext_vector_type__(3))); 44 | typedef float swift_float4 __attribute__((__ext_vector_type__(4))); 45 | typedef double swift_double2 __attribute__((__ext_vector_type__(2))); 46 | typedef double swift_double3 __attribute__((__ext_vector_type__(3))); 47 | typedef double swift_double4 __attribute__((__ext_vector_type__(4))); 48 | typedef int swift_int2 __attribute__((__ext_vector_type__(2))); 49 | typedef int swift_int3 __attribute__((__ext_vector_type__(3))); 50 | typedef int swift_int4 __attribute__((__ext_vector_type__(4))); 51 | typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); 52 | typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); 53 | typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); 54 | #endif 55 | 56 | #if !defined(SWIFT_PASTE) 57 | # define SWIFT_PASTE_HELPER(x, y) x##y 58 | # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) 59 | #endif 60 | #if !defined(SWIFT_METATYPE) 61 | # define SWIFT_METATYPE(X) Class 62 | #endif 63 | #if !defined(SWIFT_CLASS_PROPERTY) 64 | # if __has_feature(objc_class_property) 65 | # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ 66 | # else 67 | # define SWIFT_CLASS_PROPERTY(...) 68 | # endif 69 | #endif 70 | 71 | #if __has_attribute(objc_runtime_name) 72 | # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) 73 | #else 74 | # define SWIFT_RUNTIME_NAME(X) 75 | #endif 76 | #if __has_attribute(swift_name) 77 | # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) 78 | #else 79 | # define SWIFT_COMPILE_NAME(X) 80 | #endif 81 | #if __has_attribute(objc_method_family) 82 | # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) 83 | #else 84 | # define SWIFT_METHOD_FAMILY(X) 85 | #endif 86 | #if __has_attribute(noescape) 87 | # define SWIFT_NOESCAPE __attribute__((noescape)) 88 | #else 89 | # define SWIFT_NOESCAPE 90 | #endif 91 | #if __has_attribute(warn_unused_result) 92 | # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) 93 | #else 94 | # define SWIFT_WARN_UNUSED_RESULT 95 | #endif 96 | #if __has_attribute(noreturn) 97 | # define SWIFT_NORETURN __attribute__((noreturn)) 98 | #else 99 | # define SWIFT_NORETURN 100 | #endif 101 | #if !defined(SWIFT_CLASS_EXTRA) 102 | # define SWIFT_CLASS_EXTRA 103 | #endif 104 | #if !defined(SWIFT_PROTOCOL_EXTRA) 105 | # define SWIFT_PROTOCOL_EXTRA 106 | #endif 107 | #if !defined(SWIFT_ENUM_EXTRA) 108 | # define SWIFT_ENUM_EXTRA 109 | #endif 110 | #if !defined(SWIFT_CLASS) 111 | # if __has_attribute(objc_subclassing_restricted) 112 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA 113 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 114 | # else 115 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 116 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 117 | # endif 118 | #endif 119 | 120 | #if !defined(SWIFT_PROTOCOL) 121 | # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 122 | # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 123 | #endif 124 | 125 | #if !defined(SWIFT_EXTENSION) 126 | # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) 127 | #endif 128 | 129 | #if !defined(OBJC_DESIGNATED_INITIALIZER) 130 | # if __has_attribute(objc_designated_initializer) 131 | # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) 132 | # else 133 | # define OBJC_DESIGNATED_INITIALIZER 134 | # endif 135 | #endif 136 | #if !defined(SWIFT_ENUM_ATTR) 137 | # if defined(__has_attribute) && __has_attribute(enum_extensibility) 138 | # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) 139 | # else 140 | # define SWIFT_ENUM_ATTR(_extensibility) 141 | # endif 142 | #endif 143 | #if !defined(SWIFT_ENUM) 144 | # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 145 | # if __has_feature(generalized_swift_name) 146 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 147 | # else 148 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) 149 | # endif 150 | #endif 151 | #if !defined(SWIFT_UNAVAILABLE) 152 | # define SWIFT_UNAVAILABLE __attribute__((unavailable)) 153 | #endif 154 | #if !defined(SWIFT_UNAVAILABLE_MSG) 155 | # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) 156 | #endif 157 | #if !defined(SWIFT_AVAILABILITY) 158 | # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) 159 | #endif 160 | #if !defined(SWIFT_DEPRECATED) 161 | # define SWIFT_DEPRECATED __attribute__((deprecated)) 162 | #endif 163 | #if !defined(SWIFT_DEPRECATED_MSG) 164 | # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) 165 | #endif 166 | #if __has_feature(attribute_diagnose_if_objc) 167 | # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) 168 | #else 169 | # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) 170 | #endif 171 | #if __has_feature(modules) 172 | #if __has_warning("-Watimport-in-framework-header") 173 | #pragma clang diagnostic ignored "-Watimport-in-framework-header" 174 | #endif 175 | #endif 176 | 177 | #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" 178 | #pragma clang diagnostic ignored "-Wduplicate-method-arg" 179 | #if __has_warning("-Wpragma-clang-attribute") 180 | # pragma clang diagnostic ignored "-Wpragma-clang-attribute" 181 | #endif 182 | #pragma clang diagnostic ignored "-Wunknown-pragmas" 183 | #pragma clang diagnostic ignored "-Wnullability" 184 | 185 | #if __has_attribute(external_source_symbol) 186 | # pragma push_macro("any") 187 | # undef any 188 | # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="RxRelay",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) 189 | # pragma pop_macro("any") 190 | #endif 191 | 192 | #if __has_attribute(external_source_symbol) 193 | # pragma clang attribute pop 194 | #endif 195 | #pragma clang diagnostic pop 196 | 197 | #elif defined(__i386__) && __i386__ 198 | // Generated by Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5) 199 | #pragma clang diagnostic push 200 | #pragma clang diagnostic ignored "-Wgcc-compat" 201 | 202 | #if !defined(__has_include) 203 | # define __has_include(x) 0 204 | #endif 205 | #if !defined(__has_attribute) 206 | # define __has_attribute(x) 0 207 | #endif 208 | #if !defined(__has_feature) 209 | # define __has_feature(x) 0 210 | #endif 211 | #if !defined(__has_warning) 212 | # define __has_warning(x) 0 213 | #endif 214 | 215 | #if __has_include() 216 | # include 217 | #endif 218 | 219 | #pragma clang diagnostic ignored "-Wauto-import" 220 | #include 221 | #include 222 | #include 223 | #include 224 | 225 | #if !defined(SWIFT_TYPEDEFS) 226 | # define SWIFT_TYPEDEFS 1 227 | # if __has_include() 228 | # include 229 | # elif !defined(__cplusplus) 230 | typedef uint_least16_t char16_t; 231 | typedef uint_least32_t char32_t; 232 | # endif 233 | typedef float swift_float2 __attribute__((__ext_vector_type__(2))); 234 | typedef float swift_float3 __attribute__((__ext_vector_type__(3))); 235 | typedef float swift_float4 __attribute__((__ext_vector_type__(4))); 236 | typedef double swift_double2 __attribute__((__ext_vector_type__(2))); 237 | typedef double swift_double3 __attribute__((__ext_vector_type__(3))); 238 | typedef double swift_double4 __attribute__((__ext_vector_type__(4))); 239 | typedef int swift_int2 __attribute__((__ext_vector_type__(2))); 240 | typedef int swift_int3 __attribute__((__ext_vector_type__(3))); 241 | typedef int swift_int4 __attribute__((__ext_vector_type__(4))); 242 | typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); 243 | typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); 244 | typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); 245 | #endif 246 | 247 | #if !defined(SWIFT_PASTE) 248 | # define SWIFT_PASTE_HELPER(x, y) x##y 249 | # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) 250 | #endif 251 | #if !defined(SWIFT_METATYPE) 252 | # define SWIFT_METATYPE(X) Class 253 | #endif 254 | #if !defined(SWIFT_CLASS_PROPERTY) 255 | # if __has_feature(objc_class_property) 256 | # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ 257 | # else 258 | # define SWIFT_CLASS_PROPERTY(...) 259 | # endif 260 | #endif 261 | 262 | #if __has_attribute(objc_runtime_name) 263 | # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) 264 | #else 265 | # define SWIFT_RUNTIME_NAME(X) 266 | #endif 267 | #if __has_attribute(swift_name) 268 | # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) 269 | #else 270 | # define SWIFT_COMPILE_NAME(X) 271 | #endif 272 | #if __has_attribute(objc_method_family) 273 | # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) 274 | #else 275 | # define SWIFT_METHOD_FAMILY(X) 276 | #endif 277 | #if __has_attribute(noescape) 278 | # define SWIFT_NOESCAPE __attribute__((noescape)) 279 | #else 280 | # define SWIFT_NOESCAPE 281 | #endif 282 | #if __has_attribute(warn_unused_result) 283 | # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) 284 | #else 285 | # define SWIFT_WARN_UNUSED_RESULT 286 | #endif 287 | #if __has_attribute(noreturn) 288 | # define SWIFT_NORETURN __attribute__((noreturn)) 289 | #else 290 | # define SWIFT_NORETURN 291 | #endif 292 | #if !defined(SWIFT_CLASS_EXTRA) 293 | # define SWIFT_CLASS_EXTRA 294 | #endif 295 | #if !defined(SWIFT_PROTOCOL_EXTRA) 296 | # define SWIFT_PROTOCOL_EXTRA 297 | #endif 298 | #if !defined(SWIFT_ENUM_EXTRA) 299 | # define SWIFT_ENUM_EXTRA 300 | #endif 301 | #if !defined(SWIFT_CLASS) 302 | # if __has_attribute(objc_subclassing_restricted) 303 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA 304 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 305 | # else 306 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 307 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 308 | # endif 309 | #endif 310 | 311 | #if !defined(SWIFT_PROTOCOL) 312 | # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 313 | # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 314 | #endif 315 | 316 | #if !defined(SWIFT_EXTENSION) 317 | # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) 318 | #endif 319 | 320 | #if !defined(OBJC_DESIGNATED_INITIALIZER) 321 | # if __has_attribute(objc_designated_initializer) 322 | # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) 323 | # else 324 | # define OBJC_DESIGNATED_INITIALIZER 325 | # endif 326 | #endif 327 | #if !defined(SWIFT_ENUM_ATTR) 328 | # if defined(__has_attribute) && __has_attribute(enum_extensibility) 329 | # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) 330 | # else 331 | # define SWIFT_ENUM_ATTR(_extensibility) 332 | # endif 333 | #endif 334 | #if !defined(SWIFT_ENUM) 335 | # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 336 | # if __has_feature(generalized_swift_name) 337 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 338 | # else 339 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) 340 | # endif 341 | #endif 342 | #if !defined(SWIFT_UNAVAILABLE) 343 | # define SWIFT_UNAVAILABLE __attribute__((unavailable)) 344 | #endif 345 | #if !defined(SWIFT_UNAVAILABLE_MSG) 346 | # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) 347 | #endif 348 | #if !defined(SWIFT_AVAILABILITY) 349 | # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) 350 | #endif 351 | #if !defined(SWIFT_DEPRECATED) 352 | # define SWIFT_DEPRECATED __attribute__((deprecated)) 353 | #endif 354 | #if !defined(SWIFT_DEPRECATED_MSG) 355 | # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) 356 | #endif 357 | #if __has_feature(attribute_diagnose_if_objc) 358 | # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) 359 | #else 360 | # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) 361 | #endif 362 | #if __has_feature(modules) 363 | #if __has_warning("-Watimport-in-framework-header") 364 | #pragma clang diagnostic ignored "-Watimport-in-framework-header" 365 | #endif 366 | #endif 367 | 368 | #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" 369 | #pragma clang diagnostic ignored "-Wduplicate-method-arg" 370 | #if __has_warning("-Wpragma-clang-attribute") 371 | # pragma clang diagnostic ignored "-Wpragma-clang-attribute" 372 | #endif 373 | #pragma clang diagnostic ignored "-Wunknown-pragmas" 374 | #pragma clang diagnostic ignored "-Wnullability" 375 | 376 | #if __has_attribute(external_source_symbol) 377 | # pragma push_macro("any") 378 | # undef any 379 | # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="RxRelay",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) 380 | # pragma pop_macro("any") 381 | #endif 382 | 383 | #if __has_attribute(external_source_symbol) 384 | # pragma clang attribute pop 385 | #endif 386 | #pragma clang diagnostic pop 387 | 388 | #endif 389 | 390 | #else 391 | #if 0 392 | #elif defined(__arm64__) && __arm64__ 393 | // Generated by Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5) 394 | #pragma clang diagnostic push 395 | #pragma clang diagnostic ignored "-Wgcc-compat" 396 | 397 | #if !defined(__has_include) 398 | # define __has_include(x) 0 399 | #endif 400 | #if !defined(__has_attribute) 401 | # define __has_attribute(x) 0 402 | #endif 403 | #if !defined(__has_feature) 404 | # define __has_feature(x) 0 405 | #endif 406 | #if !defined(__has_warning) 407 | # define __has_warning(x) 0 408 | #endif 409 | 410 | #if __has_include() 411 | # include 412 | #endif 413 | 414 | #pragma clang diagnostic ignored "-Wauto-import" 415 | #include 416 | #include 417 | #include 418 | #include 419 | 420 | #if !defined(SWIFT_TYPEDEFS) 421 | # define SWIFT_TYPEDEFS 1 422 | # if __has_include() 423 | # include 424 | # elif !defined(__cplusplus) 425 | typedef uint_least16_t char16_t; 426 | typedef uint_least32_t char32_t; 427 | # endif 428 | typedef float swift_float2 __attribute__((__ext_vector_type__(2))); 429 | typedef float swift_float3 __attribute__((__ext_vector_type__(3))); 430 | typedef float swift_float4 __attribute__((__ext_vector_type__(4))); 431 | typedef double swift_double2 __attribute__((__ext_vector_type__(2))); 432 | typedef double swift_double3 __attribute__((__ext_vector_type__(3))); 433 | typedef double swift_double4 __attribute__((__ext_vector_type__(4))); 434 | typedef int swift_int2 __attribute__((__ext_vector_type__(2))); 435 | typedef int swift_int3 __attribute__((__ext_vector_type__(3))); 436 | typedef int swift_int4 __attribute__((__ext_vector_type__(4))); 437 | typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); 438 | typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); 439 | typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); 440 | #endif 441 | 442 | #if !defined(SWIFT_PASTE) 443 | # define SWIFT_PASTE_HELPER(x, y) x##y 444 | # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) 445 | #endif 446 | #if !defined(SWIFT_METATYPE) 447 | # define SWIFT_METATYPE(X) Class 448 | #endif 449 | #if !defined(SWIFT_CLASS_PROPERTY) 450 | # if __has_feature(objc_class_property) 451 | # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ 452 | # else 453 | # define SWIFT_CLASS_PROPERTY(...) 454 | # endif 455 | #endif 456 | 457 | #if __has_attribute(objc_runtime_name) 458 | # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) 459 | #else 460 | # define SWIFT_RUNTIME_NAME(X) 461 | #endif 462 | #if __has_attribute(swift_name) 463 | # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) 464 | #else 465 | # define SWIFT_COMPILE_NAME(X) 466 | #endif 467 | #if __has_attribute(objc_method_family) 468 | # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) 469 | #else 470 | # define SWIFT_METHOD_FAMILY(X) 471 | #endif 472 | #if __has_attribute(noescape) 473 | # define SWIFT_NOESCAPE __attribute__((noescape)) 474 | #else 475 | # define SWIFT_NOESCAPE 476 | #endif 477 | #if __has_attribute(warn_unused_result) 478 | # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) 479 | #else 480 | # define SWIFT_WARN_UNUSED_RESULT 481 | #endif 482 | #if __has_attribute(noreturn) 483 | # define SWIFT_NORETURN __attribute__((noreturn)) 484 | #else 485 | # define SWIFT_NORETURN 486 | #endif 487 | #if !defined(SWIFT_CLASS_EXTRA) 488 | # define SWIFT_CLASS_EXTRA 489 | #endif 490 | #if !defined(SWIFT_PROTOCOL_EXTRA) 491 | # define SWIFT_PROTOCOL_EXTRA 492 | #endif 493 | #if !defined(SWIFT_ENUM_EXTRA) 494 | # define SWIFT_ENUM_EXTRA 495 | #endif 496 | #if !defined(SWIFT_CLASS) 497 | # if __has_attribute(objc_subclassing_restricted) 498 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA 499 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 500 | # else 501 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 502 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 503 | # endif 504 | #endif 505 | 506 | #if !defined(SWIFT_PROTOCOL) 507 | # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 508 | # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 509 | #endif 510 | 511 | #if !defined(SWIFT_EXTENSION) 512 | # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) 513 | #endif 514 | 515 | #if !defined(OBJC_DESIGNATED_INITIALIZER) 516 | # if __has_attribute(objc_designated_initializer) 517 | # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) 518 | # else 519 | # define OBJC_DESIGNATED_INITIALIZER 520 | # endif 521 | #endif 522 | #if !defined(SWIFT_ENUM_ATTR) 523 | # if defined(__has_attribute) && __has_attribute(enum_extensibility) 524 | # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) 525 | # else 526 | # define SWIFT_ENUM_ATTR(_extensibility) 527 | # endif 528 | #endif 529 | #if !defined(SWIFT_ENUM) 530 | # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 531 | # if __has_feature(generalized_swift_name) 532 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 533 | # else 534 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) 535 | # endif 536 | #endif 537 | #if !defined(SWIFT_UNAVAILABLE) 538 | # define SWIFT_UNAVAILABLE __attribute__((unavailable)) 539 | #endif 540 | #if !defined(SWIFT_UNAVAILABLE_MSG) 541 | # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) 542 | #endif 543 | #if !defined(SWIFT_AVAILABILITY) 544 | # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) 545 | #endif 546 | #if !defined(SWIFT_DEPRECATED) 547 | # define SWIFT_DEPRECATED __attribute__((deprecated)) 548 | #endif 549 | #if !defined(SWIFT_DEPRECATED_MSG) 550 | # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) 551 | #endif 552 | #if __has_feature(attribute_diagnose_if_objc) 553 | # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) 554 | #else 555 | # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) 556 | #endif 557 | #if __has_feature(modules) 558 | #if __has_warning("-Watimport-in-framework-header") 559 | #pragma clang diagnostic ignored "-Watimport-in-framework-header" 560 | #endif 561 | #endif 562 | 563 | #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" 564 | #pragma clang diagnostic ignored "-Wduplicate-method-arg" 565 | #if __has_warning("-Wpragma-clang-attribute") 566 | # pragma clang diagnostic ignored "-Wpragma-clang-attribute" 567 | #endif 568 | #pragma clang diagnostic ignored "-Wunknown-pragmas" 569 | #pragma clang diagnostic ignored "-Wnullability" 570 | 571 | #if __has_attribute(external_source_symbol) 572 | # pragma push_macro("any") 573 | # undef any 574 | # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="RxRelay",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) 575 | # pragma pop_macro("any") 576 | #endif 577 | 578 | #if __has_attribute(external_source_symbol) 579 | # pragma clang attribute pop 580 | #endif 581 | #pragma clang diagnostic pop 582 | 583 | #elif defined(__ARM_ARCH_7A__) && __ARM_ARCH_7A__ 584 | // Generated by Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5) 585 | #pragma clang diagnostic push 586 | #pragma clang diagnostic ignored "-Wgcc-compat" 587 | 588 | #if !defined(__has_include) 589 | # define __has_include(x) 0 590 | #endif 591 | #if !defined(__has_attribute) 592 | # define __has_attribute(x) 0 593 | #endif 594 | #if !defined(__has_feature) 595 | # define __has_feature(x) 0 596 | #endif 597 | #if !defined(__has_warning) 598 | # define __has_warning(x) 0 599 | #endif 600 | 601 | #if __has_include() 602 | # include 603 | #endif 604 | 605 | #pragma clang diagnostic ignored "-Wauto-import" 606 | #include 607 | #include 608 | #include 609 | #include 610 | 611 | #if !defined(SWIFT_TYPEDEFS) 612 | # define SWIFT_TYPEDEFS 1 613 | # if __has_include() 614 | # include 615 | # elif !defined(__cplusplus) 616 | typedef uint_least16_t char16_t; 617 | typedef uint_least32_t char32_t; 618 | # endif 619 | typedef float swift_float2 __attribute__((__ext_vector_type__(2))); 620 | typedef float swift_float3 __attribute__((__ext_vector_type__(3))); 621 | typedef float swift_float4 __attribute__((__ext_vector_type__(4))); 622 | typedef double swift_double2 __attribute__((__ext_vector_type__(2))); 623 | typedef double swift_double3 __attribute__((__ext_vector_type__(3))); 624 | typedef double swift_double4 __attribute__((__ext_vector_type__(4))); 625 | typedef int swift_int2 __attribute__((__ext_vector_type__(2))); 626 | typedef int swift_int3 __attribute__((__ext_vector_type__(3))); 627 | typedef int swift_int4 __attribute__((__ext_vector_type__(4))); 628 | typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); 629 | typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); 630 | typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); 631 | #endif 632 | 633 | #if !defined(SWIFT_PASTE) 634 | # define SWIFT_PASTE_HELPER(x, y) x##y 635 | # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) 636 | #endif 637 | #if !defined(SWIFT_METATYPE) 638 | # define SWIFT_METATYPE(X) Class 639 | #endif 640 | #if !defined(SWIFT_CLASS_PROPERTY) 641 | # if __has_feature(objc_class_property) 642 | # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ 643 | # else 644 | # define SWIFT_CLASS_PROPERTY(...) 645 | # endif 646 | #endif 647 | 648 | #if __has_attribute(objc_runtime_name) 649 | # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) 650 | #else 651 | # define SWIFT_RUNTIME_NAME(X) 652 | #endif 653 | #if __has_attribute(swift_name) 654 | # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) 655 | #else 656 | # define SWIFT_COMPILE_NAME(X) 657 | #endif 658 | #if __has_attribute(objc_method_family) 659 | # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) 660 | #else 661 | # define SWIFT_METHOD_FAMILY(X) 662 | #endif 663 | #if __has_attribute(noescape) 664 | # define SWIFT_NOESCAPE __attribute__((noescape)) 665 | #else 666 | # define SWIFT_NOESCAPE 667 | #endif 668 | #if __has_attribute(warn_unused_result) 669 | # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) 670 | #else 671 | # define SWIFT_WARN_UNUSED_RESULT 672 | #endif 673 | #if __has_attribute(noreturn) 674 | # define SWIFT_NORETURN __attribute__((noreturn)) 675 | #else 676 | # define SWIFT_NORETURN 677 | #endif 678 | #if !defined(SWIFT_CLASS_EXTRA) 679 | # define SWIFT_CLASS_EXTRA 680 | #endif 681 | #if !defined(SWIFT_PROTOCOL_EXTRA) 682 | # define SWIFT_PROTOCOL_EXTRA 683 | #endif 684 | #if !defined(SWIFT_ENUM_EXTRA) 685 | # define SWIFT_ENUM_EXTRA 686 | #endif 687 | #if !defined(SWIFT_CLASS) 688 | # if __has_attribute(objc_subclassing_restricted) 689 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA 690 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 691 | # else 692 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 693 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA 694 | # endif 695 | #endif 696 | 697 | #if !defined(SWIFT_PROTOCOL) 698 | # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 699 | # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA 700 | #endif 701 | 702 | #if !defined(SWIFT_EXTENSION) 703 | # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) 704 | #endif 705 | 706 | #if !defined(OBJC_DESIGNATED_INITIALIZER) 707 | # if __has_attribute(objc_designated_initializer) 708 | # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) 709 | # else 710 | # define OBJC_DESIGNATED_INITIALIZER 711 | # endif 712 | #endif 713 | #if !defined(SWIFT_ENUM_ATTR) 714 | # if defined(__has_attribute) && __has_attribute(enum_extensibility) 715 | # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) 716 | # else 717 | # define SWIFT_ENUM_ATTR(_extensibility) 718 | # endif 719 | #endif 720 | #if !defined(SWIFT_ENUM) 721 | # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 722 | # if __has_feature(generalized_swift_name) 723 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type 724 | # else 725 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) 726 | # endif 727 | #endif 728 | #if !defined(SWIFT_UNAVAILABLE) 729 | # define SWIFT_UNAVAILABLE __attribute__((unavailable)) 730 | #endif 731 | #if !defined(SWIFT_UNAVAILABLE_MSG) 732 | # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) 733 | #endif 734 | #if !defined(SWIFT_AVAILABILITY) 735 | # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) 736 | #endif 737 | #if !defined(SWIFT_DEPRECATED) 738 | # define SWIFT_DEPRECATED __attribute__((deprecated)) 739 | #endif 740 | #if !defined(SWIFT_DEPRECATED_MSG) 741 | # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) 742 | #endif 743 | #if __has_feature(attribute_diagnose_if_objc) 744 | # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) 745 | #else 746 | # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) 747 | #endif 748 | #if __has_feature(modules) 749 | #if __has_warning("-Watimport-in-framework-header") 750 | #pragma clang diagnostic ignored "-Watimport-in-framework-header" 751 | #endif 752 | #endif 753 | 754 | #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" 755 | #pragma clang diagnostic ignored "-Wduplicate-method-arg" 756 | #if __has_warning("-Wpragma-clang-attribute") 757 | # pragma clang diagnostic ignored "-Wpragma-clang-attribute" 758 | #endif 759 | #pragma clang diagnostic ignored "-Wunknown-pragmas" 760 | #pragma clang diagnostic ignored "-Wnullability" 761 | 762 | #if __has_attribute(external_source_symbol) 763 | # pragma push_macro("any") 764 | # undef any 765 | # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="RxRelay",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) 766 | # pragma pop_macro("any") 767 | #endif 768 | 769 | #if __has_attribute(external_source_symbol) 770 | # pragma clang attribute pop 771 | #endif 772 | #pragma clang diagnostic pop 773 | 774 | #endif 775 | 776 | #endif 777 | -------------------------------------------------------------------------------- /RxCoreDataExample/RxRelay.framework/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxRelay.framework/Info.plist -------------------------------------------------------------------------------- /RxCoreDataExample/RxRelay.framework/Modules/RxRelay.swiftmodule/arm.swiftdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxRelay.framework/Modules/RxRelay.swiftmodule/arm.swiftdoc -------------------------------------------------------------------------------- /RxCoreDataExample/RxRelay.framework/Modules/RxRelay.swiftmodule/arm.swiftmodule: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxRelay.framework/Modules/RxRelay.swiftmodule/arm.swiftmodule -------------------------------------------------------------------------------- /RxCoreDataExample/RxRelay.framework/Modules/RxRelay.swiftmodule/arm64.swiftdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxRelay.framework/Modules/RxRelay.swiftmodule/arm64.swiftdoc -------------------------------------------------------------------------------- /RxCoreDataExample/RxRelay.framework/Modules/RxRelay.swiftmodule/arm64.swiftmodule: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxRelay.framework/Modules/RxRelay.swiftmodule/arm64.swiftmodule -------------------------------------------------------------------------------- /RxCoreDataExample/RxRelay.framework/Modules/RxRelay.swiftmodule/armv7.swiftdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxRelay.framework/Modules/RxRelay.swiftmodule/armv7.swiftdoc -------------------------------------------------------------------------------- /RxCoreDataExample/RxRelay.framework/Modules/RxRelay.swiftmodule/armv7.swiftmodule: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxRelay.framework/Modules/RxRelay.swiftmodule/armv7.swiftmodule -------------------------------------------------------------------------------- /RxCoreDataExample/RxRelay.framework/Modules/RxRelay.swiftmodule/i386.swiftdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxRelay.framework/Modules/RxRelay.swiftmodule/i386.swiftdoc -------------------------------------------------------------------------------- /RxCoreDataExample/RxRelay.framework/Modules/RxRelay.swiftmodule/i386.swiftmodule: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxRelay.framework/Modules/RxRelay.swiftmodule/i386.swiftmodule -------------------------------------------------------------------------------- /RxCoreDataExample/RxRelay.framework/Modules/RxRelay.swiftmodule/x86_64.swiftdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxRelay.framework/Modules/RxRelay.swiftmodule/x86_64.swiftdoc -------------------------------------------------------------------------------- /RxCoreDataExample/RxRelay.framework/Modules/RxRelay.swiftmodule/x86_64.swiftmodule: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxRelay.framework/Modules/RxRelay.swiftmodule/x86_64.swiftmodule -------------------------------------------------------------------------------- /RxCoreDataExample/RxRelay.framework/Modules/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module RxRelay { 2 | header "RxRelay-Swift.h" 3 | requires objc 4 | } 5 | -------------------------------------------------------------------------------- /RxCoreDataExample/RxRelay.framework/RxRelay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/RxCoreDataExample/RxRelay.framework/RxRelay -------------------------------------------------------------------------------- /Sources/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RxSwiftCommunity/RxCoreData/50c1c061a2a5a6feec923575c00f7937e3ffc0be/Sources/.gitkeep -------------------------------------------------------------------------------- /Sources/FetchedResultsControllerControllerEntityObserver.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import CoreData 3 | import RxSwift 4 | 5 | public final class FetchedResultsControllerEntityObserver : NSObject, NSFetchedResultsControllerDelegate { 6 | 7 | typealias Observer = AnyObserver<[T]> 8 | 9 | private let observer: Observer 10 | private let frc: NSFetchedResultsController 11 | 12 | 13 | init(observer: Observer, fetchRequest: NSFetchRequest, managedObjectContext context: NSManagedObjectContext, sectionNameKeyPath: String?, cacheName: String?) { 14 | self.observer = observer 15 | 16 | 17 | self.frc = NSFetchedResultsController(fetchRequest: fetchRequest, managedObjectContext: context, sectionNameKeyPath: sectionNameKeyPath, cacheName: cacheName) 18 | super.init() 19 | 20 | context.perform { 21 | self.frc.delegate = self 22 | 23 | do { 24 | try self.frc.performFetch() 25 | } catch let e { 26 | observer.on(.error(e)) 27 | } 28 | 29 | self.sendNextElement() 30 | } 31 | } 32 | 33 | private func sendNextElement() { 34 | self.frc.managedObjectContext.perform { 35 | let entities = self.frc.fetchedObjects ?? [] 36 | self.observer.on(.next(entities)) 37 | } 38 | } 39 | 40 | public func controllerDidChangeContent(_ controller: NSFetchedResultsController) { 41 | sendNextElement() 42 | } 43 | /// Delegate implementation for `Disposable` 44 | /// required methods - This is kept in here 45 | /// to make `frc` private. 46 | public func dispose() { 47 | frc.delegate = nil 48 | } 49 | } 50 | 51 | extension FetchedResultsControllerEntityObserver : Disposable { } 52 | -------------------------------------------------------------------------------- /Sources/FetchedResultsControllerSectionObserver.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import CoreData 3 | import RxSwift 4 | 5 | public final class FetchedResultsControllerSectionObserver : NSObject, NSFetchedResultsControllerDelegate { 6 | 7 | typealias Observer = AnyObserver<[NSFetchedResultsSectionInfo]> 8 | 9 | private let observer: Observer 10 | private let frc: NSFetchedResultsController 11 | 12 | init(observer: Observer, frc: NSFetchedResultsController) { 13 | self.observer = observer 14 | self.frc = frc 15 | 16 | super.init() 17 | 18 | self.frc.delegate = self 19 | 20 | do { 21 | try self.frc.performFetch() 22 | } catch let e { 23 | observer.on(.error(e)) 24 | } 25 | 26 | sendNextElement() 27 | } 28 | 29 | private func sendNextElement() { 30 | let sections = self.frc.sections ?? [] 31 | observer.on(.next(sections)) 32 | } 33 | 34 | public func controllerDidChangeContent(_ controller: NSFetchedResultsController) { 35 | sendNextElement() 36 | } 37 | 38 | public func dispose() { 39 | frc.delegate = nil 40 | } 41 | } 42 | 43 | extension FetchedResultsControllerSectionObserver : Disposable { } 44 | -------------------------------------------------------------------------------- /Sources/NSManagedObjectContext+Rx.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import CoreData 3 | import RxSwift 4 | 5 | public extension Reactive where Base: NSManagedObjectContext { 6 | 7 | /** 8 | Executes a fetch request and returns the fetched objects as an `Observable` array of `NSManagedObjects`. 9 | - parameter fetchRequest: an instance of `NSFetchRequest` to describe the search criteria used to retrieve data from a persistent store 10 | - parameter sectionNameKeyPath: the key path on the fetched objects used to determine the section they belong to; defaults to `nil` 11 | - parameter cacheName: the name of the file used to cache section information; defaults to `nil` 12 | - returns: An `Observable` array of `NSManagedObjects` objects that can be bound to a table view. 13 | */ 14 | func entities(fetchRequest: NSFetchRequest, 15 | sectionNameKeyPath: String? = nil, 16 | cacheName: String? = nil) -> Observable<[T]> { 17 | 18 | return Observable.create { observer in 19 | let observerAdapter = FetchedResultsControllerEntityObserver(observer: observer, fetchRequest: fetchRequest, managedObjectContext: self.base, sectionNameKeyPath: sectionNameKeyPath, cacheName: cacheName) 20 | 21 | return Disposables.create { 22 | observerAdapter.dispose() 23 | } 24 | } 25 | } 26 | 27 | /** 28 | Executes a fetch request and returns the fetched section objects as an `Observable` array of `NSFetchedResultsSectionInfo`. 29 | - parameter fetchRequest: an instance of `NSFetchRequest` to describe the search criteria used to retrieve data from a persistent store 30 | - parameter sectionNameKeyPath: the key path on the fetched objects used to determine the section they belong to; defaults to `nil` 31 | - parameter cacheName: the name of the file used to cache section information; defaults to `nil` 32 | - returns: An `Observable` array of `NSFetchedResultsSectionInfo` objects that can be bound to a table view. 33 | */ 34 | func sections(fetchRequest: NSFetchRequest, 35 | sectionNameKeyPath: String? = nil, 36 | cacheName: String? = nil) -> Observable<[NSFetchedResultsSectionInfo]> { 37 | 38 | return Observable.create { observer in 39 | let frc = NSFetchedResultsController(fetchRequest: fetchRequest, 40 | managedObjectContext: self.base, 41 | sectionNameKeyPath: sectionNameKeyPath, 42 | cacheName: cacheName) 43 | 44 | let observerAdapter = FetchedResultsControllerSectionObserver(observer: observer, frc: frc) 45 | return Disposables.create { 46 | observerAdapter.dispose() 47 | } 48 | } 49 | } 50 | 51 | /** 52 | Performs transactional update, initiated on a separate managed object context, and propagating thrown errors. 53 | - parameter updateAction: a throwing update action 54 | */ 55 | func performUpdate(updateAction: (NSManagedObjectContext) throws -> Void) throws { 56 | 57 | let privateContext = NSManagedObjectContext(concurrencyType: .privateQueueConcurrencyType) 58 | privateContext.parent = self.base 59 | 60 | try updateAction(privateContext) 61 | guard privateContext.hasChanges else { return } 62 | try privateContext.save() 63 | try self.base.save() 64 | } 65 | } 66 | 67 | public extension Reactive where Base: NSManagedObjectContext { 68 | 69 | /** 70 | Creates, inserts, and returns a new `NSManagedObject` instance for the given `Persistable` concrete type (defaults to `Persistable`). 71 | */ 72 | private func create(_ type: E.Type = E.self) -> E.T { 73 | return NSEntityDescription.insertNewObject(forEntityName: E.entityName, into: self.base) as! E.T 74 | } 75 | 76 | private func get(_ persistable: P) throws -> P.T? { 77 | let fetchRequest: NSFetchRequest = NSFetchRequest(entityName: P.entityName) 78 | fetchRequest.predicate = persistable.predicate() 79 | let result = (try self.base.execute(fetchRequest)) as! NSAsynchronousFetchResult 80 | return result.finalResult?.first 81 | } 82 | 83 | /** 84 | Attempts to retrieve remove a `Persistable` object from a persistent store, and then attempts to commit that change or throws an error if unsuccessful. 85 | - seealso: `Persistable` 86 | - parameter persistable: a `Persistable` object 87 | */ 88 | func delete(_ persistable: P) throws { 89 | 90 | if let entity = try get(persistable) { 91 | self.base.delete(entity) 92 | 93 | do { 94 | try entity.managedObjectContext?.save() 95 | } catch let e { 96 | print(e) 97 | } 98 | } 99 | } 100 | 101 | /** 102 | Creates and executes a fetch request and returns the fetched objects as an `Observable` array of `Persistable`. 103 | - parameter type: the `Persistable` concrete type; defaults to `Persistable` 104 | - parameter format: the format string for the predicate; defaults to `""` 105 | - parameter arguments: the arguments to substitute into `format`, in the order provided; defaults to `nil` 106 | - parameter sortDescriptors: the sort descriptors for the fetch request; defaults to `nil` 107 | - returns: An `Observable` array of `Persistable` objects that can be bound to a table view. 108 | */ 109 | func entities(_ type: P.Type = P.self, 110 | predicate: NSPredicate? = nil, 111 | sortDescriptors: [NSSortDescriptor]? = nil) -> Observable<[P]> { 112 | 113 | let fetchRequest: NSFetchRequest = NSFetchRequest(entityName: P.entityName) 114 | fetchRequest.predicate = predicate 115 | fetchRequest.sortDescriptors = sortDescriptors ?? [NSSortDescriptor(key: P.primaryAttributeName, ascending: true)] 116 | 117 | return entities(fetchRequest: fetchRequest).map {$0.map(P.init)} 118 | } 119 | 120 | /** 121 | Attempts to fetch and update (or create if not found) a `Persistable` instance. Will throw error if fetch fails. 122 | - parameter persistable: a `Persistable` instance 123 | */ 124 | func update(_ persistable: P) throws { 125 | persistable.update(try get(persistable) ?? self.create(P.self)) 126 | } 127 | 128 | } 129 | -------------------------------------------------------------------------------- /Sources/Persistable.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import CoreData 3 | 4 | public protocol Persistable { 5 | associatedtype T: NSManagedObject 6 | 7 | static var entityName: String { get } 8 | 9 | /// The attribute name to be used to uniquely identify each instance. 10 | static var primaryAttributeName: String { get } 11 | 12 | var identity: String { get } 13 | 14 | init(entity: T) 15 | 16 | func update(_ entity: T) 17 | 18 | /* predicate to uniquely identify the record, such as: NSPredicate(format: "code == '\(code)'") */ 19 | func predicate() -> NSPredicate 20 | 21 | } 22 | 23 | public extension Persistable { 24 | 25 | func predicate() -> NSPredicate { 26 | return NSPredicate(format: "%K = %@", Self.primaryAttributeName, self.identity) 27 | } 28 | 29 | } 30 | --------------------------------------------------------------------------------