Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
Update realm, fix inability to clear cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrama committed Oct 20, 2020
1 parent 88ed2c4 commit fe0a235
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Slide for Reddit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3292,8 +3292,8 @@
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/realm/realm-cocoa.git";
requirement = {
kind = upToNextMinorVersion;
minimumVersion = 4.4.0;
kind = upToNextMajorVersion;
minimumVersion = 5.0.0;
};
};
B4F333DF251273AF0032BB64 /* XCRemoteSwiftPackageReference "SDWebImage" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@
"repositoryURL": "https://github.com/realm/realm-cocoa.git",
"state": {
"branch": null,
"revision": "fa43b8e2909334c79f233ce472332c136ca108da",
"version": "4.4.1"
"revision": "11ac74e1cc1faec1cad0e6a9a41652ef1432d4c1",
"version": "5.5.0"
}
},
{
"package": "RealmCore",
"repositoryURL": "https://github.com/realm/realm-core",
"state": {
"branch": null,
"revision": "35662ff940e340bf630ad1d1d88acfc7af18bee6",
"version": "5.23.8"
"revision": "612057010f5521d41559970306054f4c5b12632a",
"version": "6.1.4"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Slide for Reddit/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
colorsFile = documentDirectory.appending("/subcolors.plist")

let config = Realm.Configuration(
schemaVersion: 29,
schemaVersion: 30,
migrationBlock: migrationBlock,
deleteRealmIfMigrationNeeded: true)

Expand Down
2 changes: 1 addition & 1 deletion Slide for Reddit/SettingsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ class SettingsViewController: MediaTableViewController, MFMailComposeViewControl
try! realm.write {
realm.deleteAll()
}
if let path = realm.configuration.fileURL?.absoluteString {
if let path = Realm.Configuration.defaultConfiguration.fileURL?.relativePath {
do {
try FileManager().removeItem(atPath: path)
} catch {
Expand Down

0 comments on commit fe0a235

Please sign in to comment.