Commit Graph

727 Commits

Author SHA1 Message Date
Scott Kyle b82997efc0 Fix typo in README 2016-01-14 15:23:17 -08:00
Scott Kyle bc77077b13 Merge branch 'sk-schema-api'
* sk-schema-api:
  Improve clarity of schema parsing and serialization
  Add test that checks schema validation
  Update README with new Schema API
  Cleanup some code and comments to make it consistent
  Convert tests to create objects with property objects
  Update example apps with new schema API
  Remove confusion between propTypes and objectTypes
  Simplify object schema info returned from RPC
  RPC now keeps object keys in the same order
  Change schema API to take properties as an object
  Add method to clear mutation listeners in RPC client
  Plug small leak from not releasing a JSStringRef
  Make RJSStringForValue use consistent exception style
  Improve error messages inside RJSUtil
2016-01-14 15:13:33 -08:00
Scott Kyle 1922125ab0 Improve clarity of schema parsing and serialization 2016-01-13 14:53:39 -08:00
Scott Kyle 04efd77940 Merge pull request #198 from realm/sk-error-message
Error message when RealmReact framework is missing
2016-01-12 17:08:43 -08:00
Karson Miller e499e58b37 Merge pull request #200 from realm/km-md-conduct
Add Contributor Code of Conduct to all repos
2016-01-12 14:45:49 -08:00
Karson Miller 43d3eccb36 Add code of conduct 2016-01-12 12:06:01 -08:00
Scott Kyle 7202994482 Add comments to explain checking for userAgent 2016-01-08 15:54:30 -08:00
Scott Kyle 334e646d7b Error message when RealmReact framework is missing
Fixes #190
2016-01-07 15:18:27 -08:00
Scott Kyle c34990759d Add test that checks schema validation 2016-01-05 13:54:03 -08:00
Scott Kyle 2a7c336ba9 Update README with new Schema API 2016-01-05 13:54:03 -08:00
Scott Kyle 676849a338 Cleanup some code and comments to make it consistent 2016-01-05 13:54:03 -08:00
Scott Kyle 9be1331dbf Convert tests to create objects with property objects
This makes it more readable and will be the preferred syntax in the documentation (and is much less likely to be deprecated in the future!).
2016-01-05 13:54:03 -08:00
Scott Kyle 09752846e5 Update example apps with new schema API 2016-01-05 13:54:03 -08:00
Scott Kyle 15052985f1 Remove confusion between propTypes and objectTypes
The RPC layer now only speaks in objectTypes, since they don't always equate to propTypes. We were overloading the use of propTypes for no good purpose.
2016-01-05 13:53:54 -08:00
Scott Kyle 36ffc6c77c Simplify object schema info returned from RPC
Only the property names are needed.
2016-01-05 13:40:57 -08:00
Scott Kyle c928ab716e RPC now keeps object keys in the same order
Maintaining insertion order when passing objects through the RPC is essential to make the new schema API work.
2016-01-05 13:40:57 -08:00
Scott Kyle 43e14093cc Change schema API to take properties as an object
The keys are names of the properties, which is more natural in JS, but will cause issues with ability to create objects where arrays of values. This feature will be removed in a subsequent commit.
2016-01-05 13:40:57 -08:00
Scott Kyle 358e5dacf3 Add method to clear mutation listeners in RPC client 2016-01-05 13:40:53 -08:00
Scott Kyle e86dc94ee9 Plug small leak from not releasing a JSStringRef 2016-01-05 13:30:27 -08:00
Scott Kyle 213c3d832f Make RJSStringForValue use consistent exception style 2016-01-05 13:30:27 -08:00
Scott Kyle f5047af3bc Improve error messages inside RJSUtil 2016-01-05 13:30:27 -08:00
Scott Kyle 381dbbe7ba Merge branch 'sk-npm'
* sk-npm:
  Add ability to publish NPM module to git
  Move RealmJS.mm to correct location
2016-01-05 13:25:20 -08:00
Scott Kyle 2bfedc5d8a Merge branch 'sk-project-cleanup'
* sk-project-cleanup:
  Fix for failing React tests
  Rename JS test files to be consistent
  Cleanup and fix resolving JS test files
  Cleanup source groups in Xcode project
  Move RealmJS.mm to correct location
2016-01-05 13:19:02 -08:00
Scott Kyle 51f9bbcda4 Merge branch 'sk-snapshot-results'
* sk-snapshot-results:
  Explicitly check if row is attached
  Add methods to create snapshot of List and Results
  Update to Realm Core 0.95.5
2016-01-05 13:16:27 -08:00
Ari Lazier 5b113d23b8 Merge pull request #194 from realm/al-os
Merge latest object store changes
2016-01-05 08:04:29 -08:00
Ari Lazier 518133e769 bdash pr fixes 2016-01-04 18:13:09 -08:00
Ari Lazier 24be3ab825 remove unnedded constructors/destructor 2016-01-04 16:51:51 -08:00
Ari Lazier 3e45625748 pr fixes 2016-01-04 16:37:07 -08:00
Ari Lazier 4c7d6d8b2f remove unnecessary const cast 2016-01-04 16:27:37 -08:00
Ari Lazier d964c77d2d store ObjectSchema as a pointer rather than a reference 2016-01-04 16:21:28 -08:00
Scott Kyle a9b9e479cf Explicitly check if row is attached 2016-01-04 16:17:28 -08:00
Ari Lazier df901c636f store ObjectSchema as a pointer rather than a reference 2016-01-04 16:04:01 -08:00
Ari Lazier aa5e1bef7d remove invalid usage of const Schema 2016-01-04 15:54:03 -08:00
Ari Lazier 148abd4b7b merge latest object store changes 2016-01-04 15:42:32 -08:00
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 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