Commit Graph

519 Commits

Author SHA1 Message Date
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 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 df15c5f722 integrate latest object store changes 2015-11-13 18:20:40 -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
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
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
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
Scott Kyle 7b9831c70a Add Getting Started section to README 2015-11-04 17:07:43 -08:00
Scott Kyle 5320df9a5f Merge pull request #116 from realm/sk-realmjs-api
Create API that returns constructor JSObjectRef
2015-11-03 16:39:08 -08:00
Scott Kyle 14f0b0e3de Merge pull request #117 from realm/sk-listener-fixes
Make sure Realm.addListener uniques on callbacks and doesn't leak memory
2015-11-03 16:38:50 -08:00
Scott Kyle 2f4bcee5ce Update test to ensure unique listener callback behavior 2015-11-03 14:45:06 -08:00
Scott Kyle 83869e2193 Prevent memory leaks when adding listeners
Check if the callback has already been added to the set before protecting it. Vice versa for unprotecting it when removing the listener.
2015-11-03 02:43:29 -08:00
Scott Kyle 7df2997ee7 Use a Set to store listener callbacks in JS 2015-11-03 02:41:52 -08:00
Scott Kyle aff11983f3 Create API that returns constructor JSObjectRef
Resolves #98
2015-11-02 22:51:33 -08:00
Scott Kyle 8cb7e43e2e Merge pull request #115 from realm/sk-fix-chrome-tests
Re-enable chrome tests
2015-11-02 17:00:11 -08:00
Scott Kyle 84b419c815 Fix to run RealmReactTests with release builds
In the case of a release build, React Native will not include the RCTWebSocketExecutor.
2015-11-02 15:20:49 -08:00
Ari Lazier 6c6931a97d enable chrome tests 2015-11-02 13:50:16 -08:00
Ari Lazier a84eecb17a Merge pull request #114 from realm/al-undefined
Allow setting nullable properties to undefined
2015-11-02 13:47:05 -08:00
Scott Kyle 7181a00f01 Fix to make RealmReact tests work in Chrome again
Left the RealmReactChromeTests commented out for now until it's confirmed to work in the CI environment.
2015-11-02 13:38:00 -08:00
Scott Kyle aa55b61b86 Update React Native to 0.13.2 2015-11-02 13:38:00 -08:00