Commit Graph

164 Commits

Author SHA1 Message Date
Kenneth Geisshirt 270604a347 RN Android uses OpenSSL package (#1405) 2017-10-11 21:58:27 +02:00
blagoev 2b8caaa95d Include correct headers to fix build when RN is installed with cocoapods (#1390)
* Pods headers
2017-10-09 16:37:24 +02:00
blagoev 1fb5d65e94 Merge pull request #1373 from realm/fix-RN-debugging-android
Fix rn debugging android
2017-10-03 00:55:46 +03:00
blagoev 7a039d5407 fix RN debugging on Android 2017-10-03 00:23:31 +03:00
Kenneth Geisshirt feb59ae859 Partial sync (#1361) 2017-10-02 20:29:36 +02:00
Kenneth Geisshirt 51a4f524a9 Updating to core 4.0.0 and sync 2.0.0-rc25 (#1360)
* Updating to core 4.0.0 and sync 2.0.0-rc25
* Adding file to React Native projects
* Move sync_config.cpp to the correct target in the Xcode project.
2017-09-29 00:31:22 +02:00
Thomas Goyne 2298609ce5 Merge remote-tracking branch 'origin/master' into tg/merge-master-to-2.0.x
* origin/master: (23 commits)
  Fix api doc error
  fix progress notifications registrations
  Fix typo in Github issue template
  Fix port conflict between RN >= 0.48 and RPC server (#1294)
  Disable testAddListener when running in chrome
  Ensure RN has an event loop running for async tests
  Make permission tests better handle server delays
  Fix race conditions in testAddListener
  Separate build and test steps in xcode to reduce chance of hitting "Early unexpected exit"
  Ignore errors when sourcing nvm.sh
  Don't forward arguments to nvh.sh
  Skip sourcing nvm.sh if it's already available
  Fix some shellcheck warnings
  Ensure node 6.5.0 is installed on CI
  Build realm from source for each test-runner test
  Improve error reporting for incorrect argument counts for Realm methods
  Use the same error messages in the RPC code as the regular code
  Silence an unused variable warning when building with sync disabled
  Check the exception message in all Realm tests which assert an exception is thrown
  Don't discard the actual error message in validated_get_X
  ...
2017-09-25 09:40:56 -07:00
Ashwin Phatak 17759c5ce9 Fix port conflict between RN >= 0.48 and RPC server (#1294) 2017-09-20 13:05:32 +05:30
Kenneth Geisshirt 356033a8c4 Merge branch 'tg/update-object-store' of github.com:realm/realm-js into 2.0.x 2017-09-08 14:56:01 +02:00
Kenneth Geisshirt fa0016ba6b Merge branch 'master' of github.com:realm/realm-js into 2.0.x 2017-09-08 14:54:56 +02:00
Thomas Goyne ce0ce3d299 Update to latest objectstore master and core/sync 2017-08-31 13:49:45 -07:00
agerson a407b43944 Fixing #1191 - prop-types depreciation warning (#1250)
Added prop-types package modified listview.js to use it to remove depreciation warning.
2017-08-29 10:51:36 +02:00
Ashwin Phatak 7062b48063 Merge pull request #1240 from realm/ap/ubuntu_android_fix
Fix 'jni_md.h: No such file or directory' error when building on Ubun…
2017-08-28 14:47:06 +05:30
Ashwin Phatak 5547df3329 Check that Android NDK version 10e is being used for the build 2017-08-24 16:07:10 +05:30
Ashwin Phatak 15f60284de Fix 'jni_md.h: No such file or directory' error when building on Ubuntu 16.04 LTS
When building Android on Ubuntu 16.04 LTS, this fixes an error for a missing header file:
In file included from ./src/android/io_realm_react_RealmReactModule.cpp:19:0:
/usr/lib/jvm/java-8-oracle/include/jni.h:45:20: fatal error: jni_md.h: No such file or directory
                   ^
compilation terminated.
make: *** [/home/ashwinp/projects/realm-js/react-native/android/build/tmp/buildReactNdkLib/local/armeabi-v7a/objs-debug/realmreact/src/android/io_realm_react_RealmReactModule.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/ashwinp/projects/realm-js/react-native/android/src/main/jni'
:buildReactNdkLib FAILED

FAILURE: Build failed with an exception.
2017-08-23 13:06:22 +05:30
Yavor Georgiev c78f82ac0c Update download script for the new core build system 2017-08-17 13:01:41 +02:00
Jagdeep Nagpal ee3b855efb Remove override annotation (#1178) 2017-08-09 11:09:31 +02:00
Yavor Georgiev b7775ad9ab
Partially revert #1122 2017-07-06 17:36:09 +02:00
Dmitry Patsura 13cd978a87 [iOS] Support RN 0.46+, #1121 (#1122)
* [iOS] Support RN 0.46+, #1121

* [iOS] Use bridge dispatchBlock, thank @javache, refs #1121

* [iOS] Drop unneeded expose of private methods for RCTBridge, refs #1121
2017-07-06 16:13:03 +02:00
blagoev a6edc69131 Merge pull request #992 from ovr/patch-1
[React-Native] Android - buildToolsVersion to 25.0.2
2017-06-22 12:30:17 +03:00
Mark Rowe 30e58022cf Include property names in type error exceptions thrown by Realm.create (#1069)
* Add and adopt `Value::is_binary` / `Value::to_binary` / `Value::from_binary`.

These methods allow conversions between `BinaryData` and the equivalent
JavaScript types without using `NativeAccessor`. Instead,
`NativeAccessor` now itself delegates to these methods.

* Have `NativeAccessor::value_for_property` and `RealmObjectClass::set_property`
verify that values are valid for the property in question.

If not, we throw an exception that includes the name and type of the
property in question.

`NativeAccessor` is changed to always hold a reference to a `Realm` and
an `ObjectSchema` in order to make this validation possible.

* Fix the Windows build.

* Remove an unused, incorrect forward declaration of a template class
  named `Realm` that caused ambiguity with object store's `Realm` class.
* Disambiguate between `realm::js::PropertyType` and
  `realm::PropertyType`.

* Update CHANGELOG.md
2017-06-20 14:40:01 +02:00
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
Dmitry Patsura ded541a759 [React-Native] Android - buildToolsVersion to 25.0.2 2017-05-02 10:56:03 +09: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