986 Commits

Author SHA1 Message Date
Ari Lazier
a9ef54d65d chrome debugging 2016-01-13 11:18:10 -08:00
Ari Lazier
570607fa86 instantiate and make calls to rpc server 2016-01-13 11:07:54 -08:00
Nabil Hachicha
55bde66ef8 adding NanoHTTP server for chrome debug 2016-01-13 17:56:38 +00:00
Nabil Hachicha
27bae32361 Merge branch 'al-android-aar' of https://github.com/realm/realm-js into al-android-aar 2016-01-12 19:41:24 +00:00
Ari Lazier
ced472b47e fix for last test 2016-01-12 08:16:13 -08:00
Nabil Hachicha
8c80b42748 Merge branch 'al-android-aar' of https://github.com/realm/realm-js into al-android-aar 2016-01-12 10:27:16 +00:00
Nabil Hachicha
2d8dddabee revert getConstants to avoid initialising Realm too late 2016-01-12 10:25:53 +00:00
Ari Lazier
469121429a implementation for remove files 2016-01-11 19:27:00 -08:00
Nabil Hachicha
b246f017e9 fix crash in using s_default_realm_directory 2016-01-12 03:01:06 +00:00
Ari Lazier
b562338b0e code cleanup, build script 2016-01-11 09:42:26 -08:00
Nabil Hachicha
6426d48d57 defining default_realm_file_directory using application context 2016-01-11 16:18:15 +00:00
Ari Lazier
4735a91f8c run tests 2016-01-08 16:33:53 -08:00
Ari Lazier
9a15ef4c87 initialize the context when the module is initialized 2016-01-05 20:34:50 -08:00
Ari Lazier
e90d2c514b rebase from master 2016-01-05 19:33:56 -08:00
Scott Kyle
676849a338 Cleanup some code and comments to make it consistent 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
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
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
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
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
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
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
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
5fe90c9904 Move RealmJS.mm to correct location 2015-12-29 14:55:20 -08:00