-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement indexOf using realm_list_find (#911)
* Update realm-core to v12.7.0 Includes: 4d21f9a87 Expose `list_find` in the c api (#5848) * Update bindings * Add indexOf tests * Implement UnmanagedRealmList using DelegatingList from collection This both simplifies and optimize the implementation of UnmanagedRealmList, as it delegates all operation to the backing list. * Implement indexOf using newly exposed realm_list_find function on C-api * Tweak indexOf tests. Realm lists throws, if type don't match * Update CHANGELOG * Error to call indexOf on a managed list with an unmanaged object * More precise comment * Refactor handling of state error in indexOf * Revive dead test code * Fail hard if trying to use unmanaged object as managed * Just throw _CastError..
- Loading branch information
Showing
6 changed files
with
79 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters