Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Issue [#94] migrate to realm #95

Merged
merged 5 commits into from
Jul 12, 2016

Conversation

tarigancana
Copy link
Contributor

Migrate from coredata to Realm and keep range startOffset and endOffset of original document to prepare migration to Rangy

@hebertialmeida hebertialmeida self-assigned this Jul 12, 2016
@hebertialmeida hebertialmeida added this to the 1.0 milestone Jul 12, 2016
} catch let error as NSError {
completion?(error: error)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to call the completion here, because the function is waiting for that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just thinking to remove the completion as for now no method call that give parameter for completion

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May we can leave it as optional, because I think we can use later, what do you think?

@@ -50,6 +50,7 @@ class Highlight: Object {
try! realm.commitWrite()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs call completion on success write too completion?(error: nil)

@hebertialmeida hebertialmeida merged commit 1b22d5a into FolioReader:master Jul 12, 2016
@tarigancana tarigancana deleted the #94_migrate_to_realm branch July 12, 2016 20:59
@tarigancana tarigancana restored the #94_migrate_to_realm branch July 12, 2016 20:59
@tarigancana tarigancana deleted the #94_migrate_to_realm branch July 12, 2016 21:07
@tarigancana tarigancana restored the #94_migrate_to_realm branch July 12, 2016 21:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants