Commit Graph

464 Commits

Author SHA1 Message Date
kishikawa katsumi 23d9c1c6e8 Split SchemaValidationException into SchemaValidationException and SchemaMismatchException
Because SchemaValidationException is thrown both case that a schema definition is incorrect and case that two schema definitions are mismatched.
In the former case, the migration does not solve the problem. But the exception message shows "Migration is required..."

Therefore the latter as MismatchException, to distinguish between the two cases.
2016-05-10 11:53:58 -07:00
kishikawa katsumi 8e24d4331f Watch changes for tvOS without named pipes 2016-05-10 11:47:37 -07:00
Thomas Goyne e4ace9ca20 Merge pull request #45 from realm/tg/coverage
Add cmake target to generate a code coverage report
2016-05-06 16:15:48 -07:00
Thomas Goyne fafc4232ad Rewrite the code coverage generation
Make lcov/gcovr an optional dependency that's only needed for Coverage
configurations, remove some pointless noisy messages when not generating
coverage, and generally simplify the whole thing.
2016-05-06 15:23:30 -07:00
Thomas Goyne 7ab91ea75e Add cmake target to generate a code coverage report 2016-05-06 12:37:59 -07:00
Thomas Goyne 56def7daa0 Merge pull request #65 from realm/tg/timestamp
Update to core 0.100.0
2016-05-05 10:25:06 -07:00
Thomas Goyne 507882d663 Update to core 0.100.1 2016-05-05 10:19:48 -07:00
Thomas Goyne 399b6d88dc Merge pull request #66 from realm/tg/unregister-realm
Use erase-remove_if in RealmCoordinator::unregister_realm()
2016-05-04 12:36:28 -07:00
Thomas Goyne 25d245deda Use erase-remove_if in RealmCoordinator::unregister_realm() 2016-05-04 10:21:44 -07:00
Ari Lazier 449c4e6519 Merge pull request #63 from realm/al-nullable-default
Optional property bug fixe/case insensitive queries
2016-04-21 11:18:48 -07:00
Thomas Goyne 273db05605 Fix the initial ref count for WeakRealmNotifier
Adding the run loop source to the run loop retains it, so the initial refcount
should be 0, not 1.
2016-04-20 15:41:05 -07:00
Ari Lazier 805fdc63a7 don't require optional or link properties when creating objects 2016-04-01 11:00:53 -07:00
Thomas Goyne d0763d541e Merge pull request #62 from realm/tg/cmake-version
Move cmake_minimum_required() to the correct place
2016-03-28 15:29:16 -07:00
Thomas Goyne c98f192879 Move cmake_minimum_required() to the correct place
It has to be before the call to project() or it doesn't do anything.
2016-03-28 14:10:15 -07:00
Ari Lazier f41d137f71 Merge pull request #60 from realm/al-latest-fixes
Latest fixes for react-native/android
2016-03-22 17:19:57 -07:00
Thomas Goyne b69dd4bd3e Merge pull request #55 from realm/tg/sanitizer
Add support for building with the various sanitizers
2016-03-22 17:17:44 -07:00
Ari Lazier c32dff40a2 case insensitive searches 2016-03-21 13:32:03 -07:00
Ari Lazier 7ef25e9e14 its a struct 2016-03-18 20:04:30 -07:00
Ari Lazier f186c3d1b7 android fixes for latests object store 2016-03-18 19:58:45 -07:00
Ari Lazier 7fe2f69b8c latest object store 2016-03-18 16:14:11 -07:00
Thomas Goyne aaccb8992f Merge pull request #51 from realm/tg/indexable
Bool and NSDate properties can be indexed.
2016-03-18 15:33:56 -07:00
Ari Lazier d79a2e66aa Merge pull request #58 from realm/nh/bug/fixes_coordinator_path
Passing the correct config.path to the RealmCoordinator
2016-03-17 15:26:24 -07:00
Nabil Hachicha 53c28dca16 fixes gcc optimisation causing RealmCoordinator to use a empty/default path
fix indentation
2016-03-14 16:42:52 -07:00
Nabil Hachicha 48d8b6a2e7 fixes #329 2016-03-14 16:09:22 -07:00
Ari Lazier 991c25865a fix for reload in example 2016-03-13 10:09:53 -07:00
Thomas Goyne c394e33a7a Add support for building with the various sanitizers
When building with ASan, core is also built with ASan enabled (and thus
using a local build is required). The other two sanitizers aren't also
forwarded on to core's settings since they don't need to be.
2016-03-10 10:35:29 -08:00
Thomas Goyne 3244f441fc Merge pull request #54 from realm/tg/in-transaction
Remove Realm::m_in_transaction and use the value from the SharedGroup
2016-03-08 18:43:27 -08:00
Mark Rowe 905ff8ac74 Fix link to the CMake download page. 2016-03-08 09:40:05 -08:00
Thomas Goyne c65d536573 Remove Realm::m_in_transaction and use the value from the SharedGroup
There were a bunch of places where m_in_transaction was not being updated
correctly when exceptions were thrown, and this eliminates that as a possible
problem entirely.
2016-03-07 13:18:20 -08:00
Thomas Goyne b7283be7d1 Merge pull request #52 from realm/tg/core-0.97.0
Update to core 0.97.0
2016-03-07 13:13:59 -08:00
Thomas Goyne c65f79ae2a Merge pull request #53 from realm/tg/whitespace
Strip all trailing whitespace from files
2016-03-07 13:13:31 -08:00
Thomas Goyne af0db71187 Strip all trailing whitespace from files 2016-03-07 12:47:02 -08:00
Thomas Goyne c94770be81 Update to core 0.97.0 2016-03-07 12:46:36 -08:00
Ari Lazier d163d68b83 Merge pull request #34 from realm/al-android
Support compilation for android with gcc/remove apple specific code
2016-03-04 10:33:20 -08:00
Ari Lazier 6b523bab09 forward declare property 2016-03-04 07:28:10 -08:00
Ari Lazier f7927f189c use core to_string 2016-03-04 07:09:49 -08:00
Ari Lazier eb7f213c93 pr fixes 2016-03-03 16:49:06 -08:00
Ari Lazier d07f82b3ec fixes for android 2016-03-03 14:56:18 -08:00
Scott Kyle 89fd01705d submodule fixes 2016-03-03 14:48:41 -08:00
Ari Lazier 4923d7d953 object store fixes for js binding 2016-03-03 14:45:44 -08:00
Ari Lazier 7802a9e976 merge latest object store 2016-03-03 14:15:54 -08:00
Mark Rowe c7f4133414 Merge pull request #50 from realm/mar/cmake-linux-and-local-core
Support building on Linux and with local builds of core
2016-03-02 16:39:07 -08:00
Thomas Goyne d73c7dba88 Merge pull request #42 from realm/tg/async-query
Add support for async queries
2016-03-02 15:13:18 -08:00
kishikawa katsumi 9045d79453 Bool and NSDate properties can be indexed.
Core supports indexing Bool and NSDate properties.
realm-java also supports indexing Bool and NSDate properties.
It is better to align the specification with realm-java.
2016-03-02 13:20:29 -08:00
Mark Rowe 3602cf7588 Factor duplicated logic out into a macro. 2016-03-02 01:16:11 -08:00
Mark Rowe ccdc3b0754 Add info to the README about using a local build of core. 2016-03-02 01:02:11 -08:00
Mark Rowe 8c56d13382 Support building on Linux.
By default, Linux uses a locally-built version of core that is prepared
in an independent working copy of the realm-core git repository.

Support is also added for using an existing local build of core on both
OS X and Linux . This can be done by running
`cmake -DREALM_CORE_VERSION=/path/to/realm-core`. The generated build
system will invoke `sh build.sh build` within the given directory prior
to building the object store.
2016-03-02 01:02:11 -08:00
Ari Lazier 062db0e95d Merge pull request #43 from realm/al/contains-test
Test contains can be used as a property name in the parser
2016-03-01 13:45:43 -08:00
Ari Lazier 00d2c2a74a add encryption support 2016-02-26 11:08:59 -08:00
Thomas Goyne 086192f8d3 Add minimal Results notification tests 2016-02-26 10:24:46 -08:00