Commit Graph

1251 Commits

Author SHA1 Message Date
Scott Kyle 632f9d737e Add methods to create snapshot of List and Results
The Results class was updated to match the style of List and include a flag (m_live) that determines if it should sync updates. If an object in the static Results is deleted, then it will return null.
2015-12-30 16:53:26 -08:00
Scott Kyle f32de945ad Update to Realm Core 0.95.5 2015-12-30 16:53:26 -08:00
Scott Kyle 602613b992 Update to Realm Core 0.95.5 2015-12-30 16:53:26 -08:00
Scott Kyle 3739fab57f Fix for failing React tests
Since the JS test modules have been renamed to have consistent naming, we add a method to actually run the test methods to use our existing abstraction.
2015-12-30 16:47:16 -08:00
Scott Kyle b3a0627a51 Rename JS test files to be consistent 2015-12-29 14:56:38 -08:00
Scott Kyle 6776eef6c0 Cleanup and fix resolving JS test files
The whole lib folder is now copied into the test bundle and the correct path to where a failure occurred is now properly resolved.
2015-12-29 14:55:20 -08:00
Scott Kyle 2f39e73e77 Cleanup source groups in Xcode project 2015-12-29 14:55:20 -08:00
Scott Kyle 5fe90c9904 Move RealmJS.mm to correct location 2015-12-29 14:55:20 -08:00
Scott Kyle 3da6b54df6 Add ability to publish NPM module to git
The top-level package.json explicitly includes the directories it needs (vendor/.npmignore cuts down the cruft). The publish-beta.sh script essentially uses `npm pack` to package up the NPM module and then push it into an orphaned `beta` branch.
2015-12-28 22:01:17 -08:00
Scott Kyle a6549a0cc2 Move RealmJS.mm to correct location 2015-12-28 22:00:29 -08:00
Thomas Goyne e8a26aa533 Fix compilation errors 2015-12-22 11:08:05 -08:00
Thomas Goyne a3058c6e97 Merge pull request #28 from realm/tg/set-unique
Add set_*_unique handlers to TransactLogHandler
2015-12-22 11:08:00 -08:00
Thomas Goyne 6199fba9f9 Add set_*_unique handlers to TransactLogHandler 2015-12-22 08:30:54 -08:00
Ari Lazier 1bf643f38a Merge pull request #191 from realm/al-chrome
Hopeful fix for ci issues/chrome timeout
2015-12-21 16:34:51 -08:00
Ari Lazier 5fe5554d70 open chrome with 2015-12-18 15:54:02 -08:00
Ari Lazier a8b9394b74 output packager to stdout, launch chrome manually 2015-12-18 15:11:23 -08:00
Ari Lazier 8f8d8d46b4 Merge pull request #189 from realm/al-const
Schema stored in Realm::Config should be const
2015-12-18 15:02:03 -08:00
Ari Lazier e78e33cd98 pr feedback 2015-12-18 14:37:41 -08:00
Ari Lazier a73229758d pr feedback 2015-12-18 14:37:41 -08:00
Ari Lazier 480f4effb2 fix for copy assignment 2015-12-17 18:40:26 -08:00
Ari Lazier df9468f8d0 fix for copy assignment 2015-12-17 18:40:26 -08:00
Ari Lazier 143564d0b9 results should store const ObjectSchema 2015-12-17 17:32:51 -08:00
Ari Lazier 9b907b336a results should store const ObjectSchema 2015-12-17 17:32:51 -08:00
Ari Lazier dc67be30fc Schema stored in Realm::Config should be const 2015-12-17 16:18:16 -08:00
Ari Lazier 86e95fb9b1 Schema stored in Realm::Config should be const 2015-12-17 16:18:16 -08:00
Ari Lazier 5860225273 Merge pull request #187 from realm/al-scripts
Move ci commands to scripts - support cached npm modules
2015-12-17 13:19:55 -08:00
Ari Lazier 8f14d053f3 pr feedback 2015-12-17 12:42:02 -08:00
Ari Lazier fc81a6c17b launch packager directly 2015-12-17 11:55:29 -08:00
Ari Lazier 899497cdd0 wait for packager at startup 2015-12-17 10:56:08 -08:00
Ari Lazier de227cff28 pr feedback 2015-12-16 18:14:14 -08:00
Scott Kyle 253a572ca7 Fix crash caused by accessing invalid ObjectSchema
These references would eventually become invalid. The quickest fix is for them to no longer be references. The longer-term fix might be to only store the object type and dynamically retrieve the ObjectSchema only when necessary.

Fixes #181
2015-12-16 13:04:53 -08:00
Scott Kyle 41ef7c41a6 Fix crash caused by accessing invalid ObjectSchema
These references would eventually become invalid. The quickest fix is for them to no longer be references. The longer-term fix might be to only store the object type and dynamically retrieve the ObjectSchema only when necessary.

Fixes #181
2015-12-16 13:04:53 -08:00
Ari Lazier 4c402a7daf install from test script 2015-12-15 18:18:18 -08:00
Ari Lazier 2476c061c1 npm install react-native if out of date 2015-12-15 18:02:20 -08:00
Thomas Goyne 324818f277 Merge pull request #14 from realm/tg-end-read
End the read transaction after schema init
2015-12-09 16:25:56 -08:00
Thomas Goyne 6a2457cf2c Merge pull request #26 from realm/tg-unordered-clear
Call TableView::clear() with RemoveMode::unordered
2015-12-09 16:25:34 -08:00
Thomas Goyne 87003ae6ac Call TableView::clear() with RemoveMode::unordered 2015-12-09 16:25:20 -08:00
Thomas Goyne e897b31b7e Merge pull request #19 from realm/tg-file-upgrade-checker
Added support for suppressing file format upgrades.
2015-12-09 16:23:17 -08:00
Thomas Goyne c480eb6184 Merge pull request #23 from realm/tg-results-firstlast
Update existing TableViews in first() and last()
2015-12-09 16:19:52 -08:00
Scott Kyle 1f2eabeb1a Update to use React Native 0.16
Outside of the ReactExample test, no backwards incompatible changes were needed.
2015-12-08 16:59:12 -08:00
Scott Kyle cf687ffca0 Fix for correctly locating GCDWebServer headers
This issue appeared when doing a fully clean build since we no longer use the GCDWebServers framework.
2015-12-08 16:58:29 -08:00
Scott Kyle 1231a45780 Merge pull request #177 from realm/sk-code-sign-fix
Fixes for running apps on device
2015-12-08 12:57:46 -08:00
Scott Kyle 4109c86343 Make Realm object properties enumerable 2015-12-08 03:26:57 -08:00
Scott Kyle 3cc0250da9 No longer embed frameworks into RealmReact.framework
Instead we build RealmJS and GCDWebServers as static libraries and link those instead.
2015-12-07 14:57:19 -08:00
Thomas Goyne 7a0d96e1c7 Merge pull request #21 from realm/tg-gcc49
Fix compilation with GCC 4.9
2015-12-04 14:30:55 -08:00
Scott Kyle 7a54b0a256 Merge pull request #176 from realm/sk-rpc-list-fix
Fix RPC client error after deleting objects
2015-12-04 12:24:10 -08:00
Thomas Goyne 635bafe90f Update existing TableViews in first() and last()
The call to update_tableview() was in the wrong place, resulting in it creating
the table view, but not updating an existing one.
2015-12-03 15:08:56 -08:00
Thomas Goyne 5028c4a582 Fix some warnings when building with GCC 4.9 2015-12-03 09:11:28 -08:00
Thomas Goyne 473028c153 Add some missing header inclusions 2015-12-03 09:07:37 -08:00
Thomas Goyne 853658b3fc Change #import to #include 2015-12-03 09:03:31 -08:00