1714 Commits

Author SHA1 Message Date
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
b5fb267e11 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
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
Nabil Hachicha
98cb634a36 using dynamic linker to expose s_globalContextRefToJSCExecutor 2016-01-05 11:08:42 -08:00
Ari Lazier
4270bc2b0f try to initialize JSContexts 2016-01-05 11:08:42 -08:00
Nabil Hachicha
8965aa80f7 fixed example, add Relinker to load JNI lib 2016-01-05 11:08:42 -08:00
Ari Lazier
ac32f97f8d check in core 2016-01-05 11:08:42 -08:00
Ari Lazier
3a72bb3ade finish rename 2016-01-05 11:08:42 -08:00
Ari Lazier
eea8658627 put our react module in our aar 2016-01-05 11:08:42 -08:00
Ari Lazier
15ad6a12ac remove duplicate project 2016-01-05 11:08:42 -08:00
Ari Lazier
8cb8b0729a move library to separate project 2016-01-05 11:08:42 -08:00
Ari Lazier
66fd4ce2f7 use gcc 2016-01-05 11:07:21 -08:00
Nabil Hachicha
28d1f92a7e add Demo project based on the built realmreact lib 2016-01-05 11:07:21 -08:00
Ari Lazier
1fa0098158 empty implementations for platform methods 2016-01-05 11:07:21 -08:00
Ari Lazier
8104738e1a use gcc 2016-01-05 11:07:21 -08:00
Ari Lazier
468337263c link static library 2016-01-05 11:05:56 -08:00
Emanuele Zattin
b37d0093b3 Some small random fixes.
Now it gets stuck not being able to find pegtl.hh,
which is nowhere to be seen in the repo.
2016-01-05 11:05:56 -08:00
Ari Lazier
5e7a952f48 just use one symlink to the binding source, make more stuff compile 2016-01-05 11:05:44 -08:00
Ari Lazier
ee341c4fe7 try to use realm core so's (which don't exist yet) 2016-01-05 11:05:44 -08:00
Ari Lazier
3c5a35640c try to download core 2016-01-05 11:05:44 -08:00
Ari Lazier
d76b77111a fix for demangle missing 2016-01-05 11:05:44 -08:00
Ari Lazier
50ecaa3b22 just use one symlink to the binding source, make more stuff compile 2016-01-05 11:05:44 -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
Nabil Hachicha
5b06c41163 adding module deps + fixing gradle 2016-01-05 11:04:06 -08:00
Ari Lazier
d7ca354a27 add makefile 2016-01-05 11:04:06 -08:00
Ari Lazier
3cd60002ba add symlinks to binding source 2016-01-05 11:04:06 -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
ff532b47c4 bdash pr fixes 2016-01-04 18:13:09 -08:00
Ari Lazier
518133e769 bdash pr fixes 2016-01-04 18:13:09 -08:00
Ari Lazier
60b3b5d2fb remove unnedded constructors/destructor 2016-01-04 16:51:51 -08:00
Ari Lazier
24be3ab825 remove unnedded constructors/destructor 2016-01-04 16:51:51 -08:00
Ari Lazier
7c116c0629 pr fixes 2016-01-04 16:37:07 -08:00