142 Commits

Author SHA1 Message Date
Yavor Georgiev
237e1ba158 Support the new React Native C++ bridge (#1065)
* Support the new React Native C++ bridge

Fixes #1049

* address code review comments

* handle the case when the websocket executor does not exist
2017-06-14 14:44:28 +02:00
blagoev
bb9d3d5e2e Merge branch 'master' into gradle-use-dependencies-list 2017-04-20 23:58:16 +03:00
blagoev
8b1bec1123 enable android build on windows 2017-04-20 14:03:54 +03:00
David Howell
7702c3ec67 Move helper function out of the way 2017-04-19 14:01:22 +09:30
David Howell
be06e7d529 Avoid the use of npm, instead read versions from dependencies.list 2017-04-19 13:58:42 +09:30
Yavor Georgiev
92c10c469c
Add missing Android JNI lib 2017-03-28 16:21:06 +02:00
blagoev
ca265dca93 Make sync build by default (unless turned off w/ buildWithSync) 2017-03-17 15:37:35 +01:00
David Howell
84ad9f7283 remove the find command and use gradle's replace method (#900) 2017-03-10 19:37:42 +00:00
Nabil Hachicha
33c2f7cefc Nh/fixes 866 (#867) 2017-02-15 13:56:21 +01:00
David Howell
9eb575252f Replace npm run get-version with JSON parser gradle function (#849)
* Replace npm run get-version with JSON parser from groovy
2017-02-15 11:35:20 +00:00
Yavor Georgiev
41869a3f94 Define REALM_ENABLE_SYNC when building for Android (#803) 2017-01-18 15:36:32 +01:00
Radu Tutueanu
fa8088348d Update Object Store Submodule (#797)
* Update OS

* Use the latest sync

* Update objectstore

* Use realm-sync 7.2

* Add files to project

* Use OS submodule with fix

* Fix object store includes in xcode project

* add missing object store file to binding.gyp

* Update OS with fix for the GlobalNotifier

* Add OS files to Android jni

* Use master@ObjectStore
2017-01-18 12:39:56 +01:00
Mark Rowe
c4b22a160a Update to sync v1.0.0-BETA-6.3 (#776)
* Update to sync v1.0.0-BETA-6.3.

This requires updating to current object store master to accommodate the
changes to sync error reporting.

* Add some include folder search paths

* Add thread_safe_reference to the RealmJS target
2017-01-04 15:07:25 +01:00
Mark Rowe
d8e13bc7bb Switch to using object store's master branch (#748)
* Switch to using object store's master branch.

* Switch to caching Realm instances per JavaScript execution context.
2016-12-28 17:28:44 +01:00
Kristian Dupont
5c0bd7a97b Update android external commit helper 2016-12-07 16:33:11 +01:00
Nabil Hachicha
fdf88c2f78 Adding a build type to switch between Core & Core+Sync 2016-11-14 13:26:33 +00:00
Nabil Hachicha
f764032ef5 fixing Android example 2016-11-12 10:47:36 +00:00
Ari Lazier
d229cd6130 throw exception when trying to open a realm with an invalid user 2016-11-11 00:14:52 -08:00
Ari Lazier
08ffc3bf15 ccache support 2016-11-10 23:55:26 -08:00
Ari Lazier
857369f5a4 download core and sync and get the test app running on sync 2016-10-04 17:27:09 -07:00
Ari Lazier
d1be354392 get the JSContext using working apis 2016-08-08 10:16:43 -07:00
Ari Lazier
9c8a1ed8ae fixes for RN 0.31.0 2016-08-07 09:33:36 -07:00
Ari Lazier
e5344035bf pr feedback 2016-08-02 09:49:08 -07:00
Ari Lazier
67cdae387e revert to creating the context manullay for all react-native versions 2016-07-31 14:25:13 -07:00
Ari Lazier
3b75de4554 test app and compile fixes for RN android 0.29.0+ 2016-07-31 14:25:13 -07:00
Ari Lazier
c73075c0e6 create JSContext by calling for RN versions which support this 2016-07-31 14:23:12 -07:00
Scott Kyle
b06ee441bd Aligning mixpanel implementation with Java & Cocoa (#513)
Aligning mixpanel implementation with Java & Cocoa
2016-06-30 13:26:36 +01:00
Scott Kyle
6109675749 Disable "Strip Linked Product" on our static libs
There seems to a bug inside the `strip` command (or its `ld64` library) that is being triggered by some users who get this message: `Assertion failed: (0 && "need to handle arm64 -r reloc")`

It is reported that disabling this setting side-steps the issue, and we don't need any stripping done on the static library itself.

Fixes #503
2016-06-28 12:13:58 -07:00
Scott Kyle
e8ea8e493e Fix for linker error when building for iOS 7
By default, React Native projects target a minimum of iOS 7, but our projects were set to iOS 8 because previously we used a dynamic framework.

When building for an iOS 7 minimum target version, the linker would complain about thread local variables not working on iOS 7. So it was necessary to add even more checks (iOS >= 8 or OS X >= 10.7) before using native thread local variables rather than our shim.

This also changes our projects to target iOS 7 so we can catch these issues quicker in the future.
2016-06-27 12:16:35 -07:00
Scott Kyle
13ab8f8111 Refactor thread_id.hpp into cpp and thread_local.hpp 2016-06-16 17:02:53 -07:00
Scott Kyle
af52e9f437 Make stuff build for Node and Android 2016-06-14 17:22:04 -07:00
Scott Kyle
d86e3b642e Add new files to Android.mk 2016-06-01 10:14:59 -07:00
Scott Kyle
858d67125d Consolidate RealmNode.xcodeproj into RealmJS.xcodeproj
Moved it up one level since it references the whole source tree inside the src/ directory. Added the functionality to run Node tests from Xcode on the existing RealmNode target.
2016-05-19 14:50:27 -07:00
Ari Lazier
5fc79d4e99 apply latest changes from master 2016-05-16 15:37:40 -07:00
Scott Kyle
9370eba229 Merge pull request #436 from realm/sk-react-native-25
Updates for React Native 0.25
2016-05-16 14:22:59 -07:00
Scott Kyle
51b7a43c40 Fix ListView imports for React Native 0.25
Fixes #433
2016-05-16 13:23:19 -07:00
Ari Lazier
3d0af084bb fix for android compilation 2016-05-13 18:45:42 -07:00
Ari Lazier
0c1fdaadda update object store 2016-05-13 18:04:05 -07:00
Nabil Hachicha
895c6a3056 Copying embedded Realm files using AssetManager from JNI 2016-05-11 19:56:59 +01:00
Nabil Hachicha
57701db8f4 copy Realm file from assets into default storage folder 2016-05-11 03:30:37 +01:00
Scott Kyle
db1283255f Make React reloads and testing more reliable
Changed where we wait on the previous JS thread, which ultimately makes it more reliable and no longer leak memory on reloads.

Resolves #397
2016-05-02 16:19:29 -07:00
Scott Kyle
32a8a2ed72 Make migration tests work in Chrome debug mode
All realm operations for the RPC are now done in their own thread so it can be allowed to block on waiting for callback results. The recursive and multi-threaded nature of this makes it pretty tricky, but it works!
2016-04-29 13:55:49 -07:00
Ari Lazier
9af26fb603 remove references to dead projects 2016-04-29 13:41:37 -07:00
Ari Lazier
0c05259558 remove old umbrella header 2016-04-29 12:58:25 -07:00
Ari Lazier
c493a8070b add workspace and clean up xcproject layout 2016-04-29 12:00:40 -07:00
Scott Kyle
650950fe02 Only use rpc namespace in debug mode 2016-04-19 10:49:08 -07:00
Scott Kyle
8ff23b5411 Fix build issues on Android
GCC was more strict with how we handled some types.
2016-04-18 18:30:55 -07:00
Scott Kyle
4731610a58 Merge branch 'master' into sk-node
* master:
  add keypath tests
  pr feedback, changelog
  typo
  bug fix
  tests
  support keypath comparisons for types that support it
  support for null queries
  don't require optional or link properties when creating objects
  [0.11.1] Bump version
  Update CHANGELOG with 0.11.1 fixes
  Update changelog script
  Remove changes_available implementation that asserts
  Get correct path to adb from Android Studio
  add some simple tests for Realm.write
  Update apps to use React Native 0.22
2016-04-18 14:19:06 -07:00
Scott Kyle
c0c65ad620 Make all JSC tests pass again 2016-04-13 03:21:18 -07:00
Scott Kyle
34ece60e69 Merge pull request #335 from realm/sk-react-native-22
Update to use React Native 0.22
2016-03-29 16:08:33 -07:00