Skip to content

Commit

Permalink
RealmSwift 5.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
arturdev committed Jun 11, 2020
1 parent dccdefd commit 5a86465
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<a href="https://cocoapods.org/pods/Unrealm">
<img src="https://img.shields.io/cocoapods/p/Unrealm.svg?style=flat" alt="Platform">
</a>
<a href="https://github.com/realm/realm-cocoa/releases/tag/v4.4.1">
<img src="https://img.shields.io/badge/RealmCocoa-v4.4.1-green?style=flat" alt="Platform">
<a href="https://github.com/realm/realm-cocoa/releases/tag/v5.0.3">
<img src="https://img.shields.io/badge/RealmCocoa-v5.0.3-green?style=flat" alt="Platform">
</a>
</p>

Expand Down
4 changes: 2 additions & 2 deletions Unrealm.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Pod::Spec.new do |s|
s.name = 'Unrealm'
s.swift_version = '5.1'
s.version = '1.3.2'
s.version = '1.3.5'
s.summary = 'Unrealm is an extension on RealmCocoa, which enables Swift native types to be saved in Realm.'
s.description = <<-DESC
Unrealm enables you to easily store Swift native Classes, Structs and Enums into Realm.
Expand All @@ -34,6 +34,6 @@ Works perfect with Codables and Optionals!

s.source_files = 'Unrealm/Classes/**/*.{h,m,swift}'

s.dependency 'RealmSwift', '4.4.1'
s.dependency 'RealmSwift', '5.0.3'
s.dependency 'RuntimeNew', '2.1.5'
end
2 changes: 1 addition & 1 deletion Unrealm/Classes/Swift/Unrealm.swift
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public extension RealmableBase {
- parameter block: The block to call with information about changes to the object.
- returns: A token which must be held for as long as you want updates to be delivered.
*/
func observe(_ block: @escaping (ObjectChange) -> Void) -> NotificationToken {
func observe(_ block: @escaping (ObjectChange<Object>) -> Void) -> NotificationToken {
guard let info = try? typeInfo(of: type(of: self)), info.kind == .class else {
fatalError("Unrealm: Only class instances can observe for changes")
}
Expand Down

0 comments on commit 5a86465

Please sign in to comment.