339 Commits

Author SHA1 Message Date
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
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
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
Nabil Hachicha
98cb634a36 using dynamic linker to expose s_globalContextRefToJSCExecutor 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
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
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
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
2974d87560 fix imports 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
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
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
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
Ari Lazier
4c402a7daf install from test script 2015-12-15 18:18:18 -08:00
Ari Lazier
2476c061c1 npm install react-native if out of date 2015-12-15 18:02:20 -08:00
Scott Kyle
1f2eabeb1a Update to use React Native 0.16
Outside of the ReactExample test, no backwards incompatible changes were needed.
2015-12-08 16:59:12 -08:00
Scott Kyle
1231a45780 Merge pull request #177 from realm/sk-code-sign-fix
Fixes for running apps on device
2015-12-08 12:57:46 -08:00
Scott Kyle
4109c86343 Make Realm object properties enumerable 2015-12-08 03:26:57 -08:00
Scott Kyle
7a54b0a256 Merge pull request #176 from realm/sk-rpc-list-fix
Fix RPC client error after deleting objects
2015-12-04 12:24:10 -08:00
Scott Kyle
25cfb68779 Remove use of explicit target dependencies
The target dependencies are discovered implicitly, and removing the use of explicitly defined dependencies actually resolved a very odd bug with Xcode when building ReactExample.app for a device.
2015-12-02 17:45:09 -08:00
Scott Kyle
e643fd9e3a No longer code sign RealmReact.framework on copy
Doing so causes its embedded frameworks to lose their code signatures, which in turns means the dynamic linker will refuse to load them on device.
2015-12-02 17:45:09 -08:00
Scott Kyle
be0c2a91ea Fix RPC client error after deleting objects
Specifically for objects with lists, since the mutation listener would fire on a list that no longer is attached. If during the mutation listener that error is thrown, then the listener will be removed and the error will not be propagated.
2015-12-01 14:05:33 -08:00
Scott Kyle
1f64573b4e Update to support React Native 0.15.0
Resolves #173
2015-11-30 18:08:51 -08:00
Ari Lazier
564181a887 clean up header search paths 2015-11-30 12:14:50 -08:00
Ari Lazier
5d1e9d4dd3 pr fixes 2015-11-30 11:47:32 -08:00
Ari Lazier
5f584f747f use underscore rather than dash 2015-11-30 11:23:29 -08:00
Ari Lazier
70edb99e5e update android test app 2015-11-30 11:23:29 -08:00
Ari Lazier
17b693877d add android test app 2015-11-30 11:23:29 -08:00
Ari Lazier
eb44b27633 move everything/rename to make room for android 2015-11-30 11:23:29 -08:00
Ari Lazier
cdb254ca44 tests for keypath queries 2015-11-29 18:56:50 -08:00
Ari Lazier
fbb1f42c6e don't merge predicate to negated and group 2015-11-25 18:32:13 -08:00
Ari Lazier
812930285e compount parser tests 2015-11-24 10:39:42 -08:00
Ari Lazier
dc62cbe52a fixes for packager and npm version for react tests 2015-11-23 19:07:50 -08:00
Ari Lazier
9ea8ab25c5 pr feedback 2015-11-23 08:47:09 -08:00