Skip to content

added RxSwfit namespace to Observable #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
"object": {
"pins": [
{
"package": "Realm",
"repositoryURL": "https://github.com/realm/realm-cocoa.git",
"package": "RealmDatabase",
"repositoryURL": "https://github.com/realm/realm-core",
"state": {
"branch": null,
"revision": "39177714b95bb5b1b29fffe28f1c7da77eef8e8b",
"version": "10.21.1"
"revision": "c04f5e401a1ec682e6b08b1ee157e19a0f834a5f",
"version": "13.17.1"
}
},
{
"package": "RealmDatabase",
"repositoryURL": "https://github.com/realm/realm-core",
"package": "Realm",
"repositoryURL": "https://github.com/realm/realm-swift.git",
"state": {
"branch": null,
"revision": "f1976f0d96d9b06fbe0afbd60090b1c3966b1e23",
"version": "11.8.0"
"revision": "933abaa8076966e237e66497def74df84c6adbb4",
"version": "10.42.0"
}
},
{
Expand Down
35 changes: 14 additions & 21 deletions RxRealm.xcodeproj/xcshareddata/xcschemes/RxRealm iOS.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EEE27013D976367AF376A874"
BuildableName = "RxRealm iOS.framework"
BuildableName = "RxRealm.framework"
BlueprintName = "RxRealm iOS"
ReferencedContainer = "container:RxRealm.xcodeproj">
</BuildableReference>
Expand All @@ -40,9 +40,17 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
codeCoverageEnabled = "YES"
onlyGenerateCoverageForSpecifiedTargets = "NO"
shouldUseLaunchSchemeArgsEnv = "YES">
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EEE27013D976367AF376A874"
BuildableName = "RxRealm.framework"
BlueprintName = "RxRealm iOS"
ReferencedContainer = "container:RxRealm.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO">
Expand All @@ -55,17 +63,6 @@
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EEE27013D976367AF376A874"
BuildableName = "RxRealm iOS.framework"
BlueprintName = "RxRealm iOS"
ReferencedContainer = "container:RxRealm.xcodeproj">
</BuildableReference>
</MacroExpansion>
<CommandLineArguments>
</CommandLineArguments>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -81,13 +78,11 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EEE27013D976367AF376A874"
BuildableName = "RxRealm iOS.framework"
BuildableName = "RxRealm.framework"
BlueprintName = "RxRealm iOS"
ReferencedContainer = "container:RxRealm.xcodeproj">
</BuildableReference>
</MacroExpansion>
<CommandLineArguments>
</CommandLineArguments>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand All @@ -100,13 +95,11 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EEE27013D976367AF376A874"
BuildableName = "RxRealm iOS.framework"
BuildableName = "RxRealm.framework"
BlueprintName = "RxRealm iOS"
ReferencedContainer = "container:RxRealm.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<CommandLineArguments>
</CommandLineArguments>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
Expand Down
35 changes: 14 additions & 21 deletions RxRealm.xcodeproj/xcshareddata/xcschemes/RxRealm macOS.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "563C797F5D0B85053BEECA0C"
BuildableName = "RxRealm macOS.framework"
BuildableName = "RxRealm.framework"
BlueprintName = "RxRealm macOS"
ReferencedContainer = "container:RxRealm.xcodeproj">
</BuildableReference>
Expand All @@ -40,9 +40,17 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
codeCoverageEnabled = "YES"
onlyGenerateCoverageForSpecifiedTargets = "NO"
shouldUseLaunchSchemeArgsEnv = "YES">
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "563C797F5D0B85053BEECA0C"
BuildableName = "RxRealm.framework"
BlueprintName = "RxRealm macOS"
ReferencedContainer = "container:RxRealm.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO">
Expand All @@ -55,17 +63,6 @@
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "563C797F5D0B85053BEECA0C"
BuildableName = "RxRealm macOS.framework"
BlueprintName = "RxRealm macOS"
ReferencedContainer = "container:RxRealm.xcodeproj">
</BuildableReference>
</MacroExpansion>
<CommandLineArguments>
</CommandLineArguments>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -81,13 +78,11 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "563C797F5D0B85053BEECA0C"
BuildableName = "RxRealm macOS.framework"
BuildableName = "RxRealm.framework"
BlueprintName = "RxRealm macOS"
ReferencedContainer = "container:RxRealm.xcodeproj">
</BuildableReference>
</MacroExpansion>
<CommandLineArguments>
</CommandLineArguments>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand All @@ -100,13 +95,11 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "563C797F5D0B85053BEECA0C"
BuildableName = "RxRealm macOS.framework"
BuildableName = "RxRealm.framework"
BlueprintName = "RxRealm macOS"
ReferencedContainer = "container:RxRealm.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<CommandLineArguments>
</CommandLineArguments>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
Expand Down
35 changes: 14 additions & 21 deletions RxRealm.xcodeproj/xcshareddata/xcschemes/RxRealm tvOS.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "26B52508DC9867614B34B3C5"
BuildableName = "RxRealm tvOS.framework"
BuildableName = "RxRealm.framework"
BlueprintName = "RxRealm tvOS"
ReferencedContainer = "container:RxRealm.xcodeproj">
</BuildableReference>
Expand All @@ -40,9 +40,17 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
codeCoverageEnabled = "YES"
onlyGenerateCoverageForSpecifiedTargets = "NO"
shouldUseLaunchSchemeArgsEnv = "YES">
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "26B52508DC9867614B34B3C5"
BuildableName = "RxRealm.framework"
BlueprintName = "RxRealm tvOS"
ReferencedContainer = "container:RxRealm.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO">
Expand All @@ -55,17 +63,6 @@
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "26B52508DC9867614B34B3C5"
BuildableName = "RxRealm tvOS.framework"
BlueprintName = "RxRealm tvOS"
ReferencedContainer = "container:RxRealm.xcodeproj">
</BuildableReference>
</MacroExpansion>
<CommandLineArguments>
</CommandLineArguments>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -81,13 +78,11 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "26B52508DC9867614B34B3C5"
BuildableName = "RxRealm tvOS.framework"
BuildableName = "RxRealm.framework"
BlueprintName = "RxRealm tvOS"
ReferencedContainer = "container:RxRealm.xcodeproj">
</BuildableReference>
</MacroExpansion>
<CommandLineArguments>
</CommandLineArguments>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand All @@ -100,13 +95,11 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "26B52508DC9867614B34B3C5"
BuildableName = "RxRealm tvOS.framework"
BuildableName = "RxRealm.framework"
BlueprintName = "RxRealm tvOS"
ReferencedContainer = "container:RxRealm.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<CommandLineArguments>
</CommandLineArguments>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
Expand Down
17 changes: 6 additions & 11 deletions RxRealm.xcodeproj/xcshareddata/xcschemes/RxRealm watchOS.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E4ACD8160538E2144FA53C11"
BuildableName = "RxRealm watchOS.framework"
BuildableName = "RxRealm.framework"
BlueprintName = "RxRealm watchOS"
ReferencedContainer = "container:RxRealm.xcodeproj">
</BuildableReference>
Expand All @@ -26,19 +26,18 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
onlyGenerateCoverageForSpecifiedTargets = "NO"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E4ACD8160538E2144FA53C11"
BuildableName = "RxRealm watchOS.framework"
BuildableName = "RxRealm.framework"
BlueprintName = "RxRealm watchOS"
ReferencedContainer = "container:RxRealm.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -54,13 +53,11 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E4ACD8160538E2144FA53C11"
BuildableName = "RxRealm watchOS.framework"
BuildableName = "RxRealm.framework"
BlueprintName = "RxRealm watchOS"
ReferencedContainer = "container:RxRealm.xcodeproj">
</BuildableReference>
</MacroExpansion>
<CommandLineArguments>
</CommandLineArguments>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand All @@ -73,13 +70,11 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E4ACD8160538E2144FA53C11"
BuildableName = "RxRealm watchOS.framework"
BuildableName = "RxRealm.framework"
BlueprintName = "RxRealm watchOS"
ReferencedContainer = "container:RxRealm.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<CommandLineArguments>
</CommandLineArguments>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
Expand Down
12 changes: 6 additions & 6 deletions Sources/RxRealm/RxRealm.swift
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ public extension Observable {
- parameter realm: A Realm instance
- returns: `Observable<(Realm, Realm.Notification)>`, which you can subscribe to
*/
static func from(realm: Realm) -> Observable<(Realm, Realm.Notification)> {
return Observable<(Realm, Realm.Notification)>.create { observer in
static func from(realm: Realm) -> RxSwift.Observable<(Realm, Realm.Notification)> {
return RxSwift.Observable<(Realm, Realm.Notification)>.create { observer in
let token = realm.observe { (notification: Realm.Notification, realm: Realm) in
observer.onNext((realm, notification))
}
Expand Down Expand Up @@ -511,8 +511,8 @@ public extension Observable where Element: Object {
*/

static func from(object: Element, emitInitialValue: Bool = true,
properties: [String]? = nil) -> Observable<Element> {
return Observable<Element>.create { observer in
properties: [String]? = nil) -> RxSwift.Observable<Element> {
return RxSwift.Observable<Element>.create { observer in
if emitInitialValue {
observer.onNext(object)
}
Expand Down Expand Up @@ -545,8 +545,8 @@ public extension Observable where Element: Object {
- returns: `Observable<PropertyChange>` will emit any time a change is detected on the object
*/

static func propertyChanges(object: Element) -> Observable<PropertyChange> {
return Observable<PropertyChange>.create { observer in
static func propertyChanges(object: Element) -> RxSwift.Observable<PropertyChange> {
return RxSwift.Observable<PropertyChange>.create { observer in
let token = object.observe { change in
switch change {
case let .change(_, changes):
Expand Down