Scott Kyle
415b45be51
Use un-patched RN for Android by installing hook into JSC
...
This works by installing some assembly into JSGlobalContextCreateInGroup() that will immediately jump out into our own wrapper function so we always can inject the Realm constructor into the context.
2016-02-11 11:14:09 -08:00
Scott Kyle
5f02dc9f6d
Add copyright to JNI file
2016-02-08 15:56:08 -08:00
Scott Kyle
8e80733409
Cleanup platform.hpp
2016-02-08 15:55:52 -08:00
Nabil Hachicha
49a74e5646
Refactor & formatting code
2016-02-04 18:30:26 +00:00
Nabil Hachicha
e5ee6d8e9c
fixes #209 download core in gradle task
2016-01-30 18:26:27 +00:00
Nabil Hachicha
b92a281b5e
add missing refactored files
2016-01-28 15:11:33 +00:00
Nabil Hachicha
1e4c905cdc
Change package name fixes #204
2016-01-28 15:09:36 +00:00
Scott Kyle
a6715d210d
Ignore more things when publishing with NPM
...
Unfortunately some kind of NPM bug is making it ignore a top-level .npmignore file.
2016-01-22 16:43:53 -08:00
Ari Lazier
fe4abff106
delete files in the correct place
2016-01-21 12:37:03 -08:00
Nabil HACHICHA
bd379dd376
fixing crash on reload JS
2016-01-20 15:46:27 +00:00
Ari Lazier
b3530a43ff
use make_unique with gcc4.9
2016-01-19 13:12:24 -08:00
Ari Lazier
c4d5b9f5cc
merge latest object store
2016-01-19 10:51:43 -08:00
Ari Lazier
5f2a51727b
merge in build system improvements
2016-01-15 12:46:58 -08:00
Ari Lazier
c6e46b9856
remove unneded dependencies
2016-01-15 11:49:22 -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
1922125ab0
Improve clarity of schema parsing and serialization
2016-01-13 14:53:39 -08:00
Ari Lazier
63ffc760bd
merge latest from master
2016-01-13 12:46:07 -08:00
Ari Lazier
1ded2e661b
log levels
2016-01-13 11:50:19 -08:00
Ari Lazier
b45948eb9a
only start webserver in chrome debug mode
2016-01-13 11:32:29 -08:00
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