Commit Graph

794 Commits

Author SHA1 Message Date
Scott Kyle 7b115a934b ArrayBufferView objects now fully supported
Previously we were not accounting for the byte offsets and misunderstood how the Uint8Array constructor worked. The tests now confirm everything works as expected with multiple different typed arrays and slices of the data.
2015-11-17 13:32:32 -08:00
Scott Kyle 7f32ab0b88 Improve JS test assertion failure messages
Only the first line is shown in Xcode, so we just a dash to separate the custom message from the helpful one provided by the assertion instead.
2015-11-17 13:32:32 -08:00
Scott Kyle 9d373e630a Update data properties to return ArrayBuffers
As a convenience, the setters will take typed Arrays (e.g. Uint8Array) since that is a common representation of data in JS (as they are "views" of ArrayBuffer objects).

The tests have been updated to reflect this new behavior.
2015-11-17 13:32:31 -08:00
Scott Kyle 616f78ea07 Add support for data properties in RPC layer
The data is base64 encoded before being sent via the RPC.
2015-11-17 13:32:31 -08:00
Scott Kyle 3bf84a1b6f Update data properties to return ArrayBuffers
As a convenience, the setters will take typed Arrays (e.g. Uint8Array) since that is a common representation of data in JS (as they are "views" of ArrayBuffer objects).

The tests have been updated to reflect this new behavior.
2015-11-17 13:32:31 -08:00
Ari Lazier bc7111bd2e Merge pull request #147 from realm/al-headers
Fix for wrong headers when building release
2015-11-17 13:10:41 -08:00
Ari Lazier 289da9d213 move header out of extern C 2015-11-17 12:46:22 -08:00
Ari Lazier 419982808b fix for wrong headers when building release 2015-11-17 12:44:17 -08:00
Ari Lazier fbd59381bb Merge pull request #143 from realm/al-thread-safe
Fix thread safety issues when refreshing the simulator
2015-11-16 17:58:32 -08:00
Ari Lazier 52fa3e8b1c no-op if module has been deallocated 2015-11-16 17:57:06 -08:00
Ari Lazier 159931e4ec pr fixes 2015-11-16 17:36:28 -08:00
Ari Lazier f046e4a8ac clear realm cache after refreshing simulator 2015-11-16 11:26:36 -08:00
Ari Lazier 85286b8807 block refresh until the last context has finished execution 2015-11-16 11:16:09 -08:00
Ari Lazier 53911fefb6 block refresh until the last context has finished execution 2015-11-16 11:16:09 -08:00
Ari Lazier c4203e80c4 Fix terminology 2015-11-16 06:46:07 -08:00
Ari Lazier e4732994b7 integrate latest object store changes 2015-11-13 18:20:40 -08:00
Ari Lazier df15c5f722 integrate latest object store changes 2015-11-13 18:20:40 -08:00
Ari Lazier 638ee4d3b4 integrate latest object store changes 2015-11-13 18:20:27 -08:00
Ari Lazier 52da420496 integrate latest object store changes 2015-11-13 18:20:27 -08:00
Ari Lazier b91c69a3b5 Squashed 'src/object-store/' changes from 043f5ff..7701ba1
7701ba1 Merge pull request #16 from realm/tg-close
883ef12 Add Realm::close() and call it in RealmCache::clear()
e9ca54e Merge pull request #12 from realm/tg-core-0.94.4
0823a62 Merge pull request #13 from realm/tg-is-empty
62f59d9 Merge pull request #15 from realm/tg-file-error-path
b93e5ce Include the path of the file which actually failed to open in exceptions
e1e9cd8 Add ObjectStore::is_empty()
52e7e61 Update for core 0.94.4
271432b Merge pull request #11 from realm/kd-rename-delegate-to-bindingcontext
db36ca5 Remove Realm suffix
70e1967 Rename realm delegate in transact_log_handler as well
4973827 Rename RealmDelegate to RealmBindingContext
347145b Merge pull request #8 from realm/mar-migrate-required-to-optional
0b45772 Add a test showing our behavior when migrating from an optional column to a required column.
9f1702a Support migrating required columns to optional, preserving their contents.
f5b790c Merge pull request #6 from realm/tg-impl
6dfeaf8 Move things which are not part of the API to an impl directory/namespace
513e483 Merge pull request #4 from realm/tg-realm
f646777 Send changes_available() even if autorefresh is enabled
21d32bf Add a bit of documentation for RealmDelegate
95c80c9 Fix error in cleanup after an error during a migration
b7936bb Simplify column shifting for removed properties a little
a0f1dab Add a Schema class, move lookup by name and internal-consistency checks there
b381437 Make Realm::compact() more robust
6133eeb Reduce the scope of a variable
0c111a2 Fix a comment
ba278c5 Fix checks for what types of columns can be optional
7de20ea USe more const refs to avoid copies
dbac77f Make a bunch of things const
1400450 Remove an unused function
06e0ff8 Share ExternalCommitHelpers between Realm instances for a single path
f79dec9 Allow more nullable property types when supported
0eb0bd1 Honor is_nullable when creating columns
ea5c475 Refactor schema initialization a bit
e4f29fe Move the interprocess notification functionality to the object store
b129ebe Shuffle stuff around and clean some things up
eeb2ddd Improve array KVO performance a bit
c3649fb Skip PK uniqueness checking when first creating a Realm file
0a41c85 Improve performance of realm_requires_update() and make more things const
efdfa08 Port some of the KVO support functionality to the object store
65e1eb5 Add the ability to bypass the Realm cache entirely
3f226cf Rework change notifications
045c7b2 Add Realm::get_schema_version()
e4377bb Change realm::Schema to a vector rather than a map
cae4cf2 Remove property.hpp include from object_schema.hpp
55e6cca Convert RLMRealmConfiguration to a wrapper around Realm::Config
563a837 Use NSDMIs for realm::Property
0ae1bb1 Don't cache dynamic realms in the ObjectStore cache either
25a6734 Eliminate some copies
45890f2 Use NSDMIs for Realm
348f4a7 Reduce s_init_mutex's scope
b4f856b Use NSDMIs for Realm::Config and make it moveable
a91839b Store a copy of the encryption key
0700428 Merge pull request #3 from realm/al-bugfixes
b084335 clear Realm cache between tests
cb8364c property copy schema from cached realms
8712c8b fixes for latest object store changes
453e4d8 Fix crash when adding a property to a model without updating the schema version.

git-subtree-dir: src/object-store
git-subtree-split: 7701ba173d
2015-11-13 17:34:33 -08:00
Ari Lazier c064a0f1ca lock should be global 2015-11-13 17:32:29 -08:00
Ari Lazier c40faba20f make rpc shutdown thread safe 2015-11-13 17:32:29 -08:00
Ari Lazier 6a60a997ef lock should be global 2015-11-13 17:32:06 -08:00
Ari Lazier 271c02c2c1 make rpc shutdown thread safe 2015-11-13 17:32:06 -08:00
Thomas Goyne 7701ba173d Merge pull request #16 from realm/tg-close
Add Realm::close() and call it in RealmCache::clear()
2015-11-13 11:54:42 -08:00
Ari Lazier 8e9a14e1c0 Merge pull request #136 from realm/al-version
Support RectNative version 0.14
2015-11-13 11:30:22 -08:00
Scott Kyle 5ab7bd96a3 Added comment about React Native version support 2015-11-13 11:21:55 -08:00
Scott Kyle 79540d7cba Add backwards compatibility for React Native 0.13.x 2015-11-13 11:15:44 -08:00
Scott Kyle f3db7a5a56 Update ReactExample to use React Native 0.14.2 2015-11-13 11:14:27 -08:00
Ari Lazier 283826e687 support latest version 2015-11-13 10:13:33 -08:00
Ari Lazier 935b72bdac Merge pull request #133 from realm/al-no-gdcwebservers
Don't require any GCDWebServers dependency when building Release
2015-11-12 13:14:05 -08:00
Ari Lazier 1c155fe136 schema config 2015-11-12 12:31:57 -08:00
Scott Kyle 89820339ba Remove Cordova example 2015-11-12 12:13:49 -08:00
Ari Lazier 92a94d3dcb move embedded frameworks around 2015-11-12 11:50:42 -08:00
Ari Lazier bcd8c2a3d3 pr fixes 2015-11-12 11:32:16 -08:00
Ari Lazier 5b29f09e7a don't require any GCDWebServers dependency when building Release 2015-11-11 15:37:03 -08:00
Thomas Goyne 883ef12c7f Add Realm::close() and call it in RealmCache::clear()
This is needed for the Swift tests due to that throwing an exception over Swift
code unavoidably results in objects being leaked.
2015-11-10 14:54:15 -08:00
Scott Kyle 4205ba5611 Fix README.md 2015-11-05 17:12:06 -08:00
Scott Kyle 6bf7466ecb Merge pull request #125 from realm/sk-react-native-minify
Remove uses of for-of loops in RPC modules
2015-11-05 16:54:59 -08:00
Scott Kyle 336ef55c1f Remove uses of for-of loops in RPC modules
The React Native packager does not transform for-of loops, and minification step uses UglifyJS, which does not yet support ES6 syntax.

Fixes #120
2015-11-05 16:10:52 -08:00
Thomas Goyne e9ca54e169 Merge pull request #12 from realm/tg-core-0.94.4
Update for core 0.94.4
2015-11-05 09:44:08 -08:00
Thomas Goyne 0823a62df6 Merge pull request #13 from realm/tg-is-empty
Add ObjectStore::is_empty()
2015-11-05 09:35:48 -08:00
Thomas Goyne 62f59d9ae8 Merge pull request #15 from realm/tg-file-error-path
Include the path of the file which actually failed to open in exceptions
2015-11-05 09:35:36 -08:00
Scott Kyle 54b94b6afa Update README.md 2015-11-04 22:37:41 -08:00
Ari Lazier e44ecf1ce6 Merge pull request #124 from realm/sk-readme-docs
Add docs to the readme
2015-11-04 21:42:44 -08:00
Ari Lazier ad23a4b886 Update README.md 2015-11-04 21:41:49 -08:00
Ari Lazier dc7ff590a0 Update README.md 2015-11-04 21:39:15 -08:00
Ari Lazier 28ccf799f4 Update README.md 2015-11-04 21:32:27 -08:00
Ari Lazier 22c4dc904c Update README.md 2015-11-04 21:30:14 -08:00
Scott Kyle cdabc628be Document most methods and options in README 2015-11-04 18:06:37 -08:00