-
Notifications
You must be signed in to change notification settings - Fork 166
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
Use delete_files from core when deleting a Realm. #2401
Conversation
Update on the status here: Core PR is merged, waiting for the |
One thing I noticed as I was working on #2423 is that It might be a good idea to do the check and perhaps do nothing if the Realm doesn't exist. |
This is what happens at the moment. Delete on an empty folder will therefore return Would that suffice your intention? @nirinchev |
* Make sure we don't accumulate test resources endlessly * fix usings
@nirinchev Added with 3dc9251. It does not fail locally for me though. Let's see what CI thinks about it. 💪 |
Summary of the Android crash analysis so far: The
It is then used in https://github.com/realm/realm-core/blob/master/src/realm/db.cpp#L1774 and https://github.com/realm/realm-core/blob/master/src/realm/db.cpp#L2046. It's unclear what exactly causes the crash. It does seem to only happen in this PR which is based on realm/realm-core#4701. |
@nirinchev Jenkins is finally happy. 👍 Ready for review again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, mostly nits from me.
Co-authored-by: Nikola Irinchev <irinchev@me.com>
…alm/realm-dotnet into df/use-delete-realm-from-core
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once the File.Exists check is moved to OS, this should be good to go.
Co-authored-by: Nikola Irinchev <irinchev@me.com>
Co-authored-by: Nikola Irinchev <irinchev@me.com>
* master: Update the AppConfiguration.Logger obsolete message (#2495) Add more serializer types to the preserved ones (#2489) Update changelog from Core (#2488) Build an xcframework for iOS (#2475) Prepare for vNext (#2487) Prepare for 10.2.1 (#2484) Fix TableKey / ObjKey conversion on Android x86 (#2477) Update the build manager locations (#2474) Clean up native resources on Unity application exit (#2467) Fix some native warnings (#2483) Don't try to get the app from a removed user (#2480) Use delete_files from core when deleting a Realm. (#2401) Fixes for the sync datatype tests (#2461) Clean up the package.json and add some docs (#2452) Run iOS tests on CI (#2405) Verify that objects do not belong to different realm when added to collection (#2465) Updated README instructions (#2459)
Description
This moves the
DeleteRealm
function into our Core since it's a shared functionality.The Core PR enables all SDKs to use the same
DeleteRealm
instead of having duplicated and/or differing implementations of it across the SDKs.Fixes #386
Fixes #2455
TODO
Both not really necessary because the point of moving this does include not changing anything on the user API level.
The expectation would be to have all tests still pass even after deleting the function and just calling it's Core equivalent.