Skip to content

Commit

Permalink
RealmSwift v4.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
arturdev committed Apr 17, 2020
1 parent b567aa2 commit 5ec37b8
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.0">
<img src="https://img.shields.io/badge/RealmCocoa-v4.4.0-green?style=flat" alt="Platform">
<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>
</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.2.2'
s.version = '1.3.2'
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.0'
s.dependency 'RealmSwift', '4.4.1'
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 @@ -372,7 +372,7 @@ public extension Object {

func toRealmable() -> RealmableBase? {
let objTypeString = self.typeString() ?? ""
if let type = objectsAndRealmables.filter({objTypeString.contains($0.key)}).map{($0, $1)}.sorted(by: {$0.0 > $1.0}).first?.1 {
if let type = objectsAndRealmables.filter({objTypeString.contains($0.key)}).map({($0, $1)}).sorted(by: {$0.0 > $1.0}).first?.1 {
let convertedObj = self.toRealmable(of: type)
return convertedObj as? RealmableBase
}
Expand Down

0 comments on commit 5ec37b8

Please sign in to comment.