26 Commits

Author SHA1 Message Date
Scott Kyle
05c432deb1 WIP Node support
The JS engine details are mostly abstracted away. This breaks JSC support until the rest of the pieces are in place. The Node version builds and runs, but crashes when creating a Realm object.
2016-04-12 11:53:30 -07:00
Ari Lazier
f80bcd882d convert schema parsing 2016-03-30 16:14:48 -07:00
Ari Lazier
29213f1d87 wrap list properties 2016-03-30 14:18:44 -07:00
Ari Lazier
c249eea505 wrap realm properties 2016-03-30 13:48:24 -07:00
Ari Lazier
2baec5bec6 move static methods and constructor 2016-03-30 13:09:05 -07:00
Ari Lazier
0282e98232 move exception handling to method wrapper 2016-03-30 11:55:13 -07:00
Ari Lazier
5b2a59d5c6 converted BindingContext 2016-03-29 16:17:57 -07:00
Ari Lazier
e7d954a727 wrap all types in a single type and use static class methods 2016-03-29 14:12:27 -07:00
Ari Lazier
b4990fbbff convert more of Realm 2016-03-29 13:36:01 -07:00
Ari Lazier
9626842f8e start refactoring realm 2016-03-28 13:21:36 -07:00
Scott Kyle
b5ce02c0ce Make List and Results inherit from Collection
This will allow for easier type checking, documentation, etc.
2016-03-20 11:51:16 -07:00
Scott Kyle
3858ede7c7 Rename RJSObjectSetProperty to RJSValidatedSetProperty 2016-02-29 12:37:28 -08:00
Scott Kyle
44a29d8dd4 Expose List and Results constructors into JS 2016-02-29 03:24:58 -08:00
Karson Miller
5e9333b699 no message 2016-02-18 15:30:44 -08:00
Scott Kyle
bd766297ef Improve error message in sorted() method 2016-02-18 12:50:44 -08:00
Scott Kyle
76865d0da4 Allow sortedBy to accept array of properties
It now optionally accepts an array of properties for both parameters and the tests have been updated to reflect new capabilities.
2016-02-18 11:58:39 -08:00
Scott Kyle
2f1eca4a9c Merge branch 'master' into al-android-example
* master:
  Fix typo in README
  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:39:45 -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
f5047af3bc Improve error messages inside RJSUtil 2016-01-05 13:30:27 -08:00
Ari Lazier
8104738e1a use gcc 2016-01-05 11:07:21 -08:00
Ari Lazier
3aaf988953 fixes 2016-01-05 11:05:27 -08:00
Nabil Hachicha
c3d5fd4e09 add Core include + fix c++14 issue 2016-01-05 11:04:06 -08:00
Ari Lazier
fb1d6b6a93 more import fixes 2016-01-05 11:04:06 -08:00
Ari Lazier
2974d87560 fix imports 2016-01-05 11:04:06 -08:00
Ari Lazier
62ae41327d include JSBase 2016-01-05 11:04:06 -08:00
Ari Lazier
5f584f747f use underscore rather than dash 2015-11-30 11:23:29 -08:00