Commit Graph

2579 Commits

Author SHA1 Message Date
Thomas Goyne 432c4323dd Remove the sha_win32.lib import
Core bundles this library into the main Realm library.
2017-09-20 10:59:06 -07:00
Thomas Goyne 84b0264920 Add the js files to the ReactExample xcode project 2017-09-20 10:59:06 -07:00
Thomas Goyne 434870bb70 Define minimum supported Windows version as Vista
Libuv makes this default to XP if it's not explicitly set, which makes
the condition variable functionality that core now uses unavailable.
2017-09-20 10:59:06 -07:00
blagoev 40f2b92890 trying with latest ROS build 2017-09-20 10:59:06 -07:00
Thomas Goyne 12f4b0a314 Update to core 3.1/sync rc18 2017-09-20 10:59:06 -07:00
Thomas Goyne 4fbb27842d Use the static runtime on Windows 2017-09-20 10:59:05 -07:00
Thomas Goyne c7fd01a58f Bump objectstore version again 2017-09-20 10:59:05 -07:00
Thomas Goyne 7ba9d86ffd Disambiguate some uses of PropertyType for msvc 2017-09-20 10:59:05 -07:00
Thomas Goyne 4961643f8c Remove incorrect include paths 2017-09-20 10:59:05 -07:00
Thomas Goyne 20685c9941 Improve error reporting on test failures a little 2017-09-20 10:59:05 -07:00
Thomas Goyne 0ca0e60863 Add missing files to the xcode project 2017-09-20 10:59:05 -07:00
Thomas Goyne e07d007ee2 Fix downloading the prebuilt core for ios 2017-09-20 10:59:05 -07:00
Thomas Goyne 4b3483ece0 Fix creating admin token users 2017-09-20 10:59:04 -07:00
Thomas Goyne 0c4430d234 Report what went wrong when refreshAccessToken fails 2017-09-20 10:58:36 -07:00
Thomas Goyne 6d5fec23e2 Fix unhandled promise rejection warnings when access token refreshing fails 2017-09-20 10:58:33 -07:00
Thomas Goyne 9e4313c416 Fix error reporting from admin-user-helper.js
In some cases errors were not being bubbled out correctly.
2017-09-20 10:56:55 -07:00
Thomas Goyne 3e87ef33ce Restore old list property validation logic 2017-09-20 10:56:13 -07:00
Thomas Goyne e0a439e6eb Fix property type conversions to ObjectStore types 2017-09-20 10:54:06 -07:00
Thomas Goyne 4a926278ad Update to latest objectstore master and core/sync 2017-09-20 10:54:06 -07:00
Thomas Goyne a012f84cca Fix some incorrect checks for Array property types 2017-09-20 10:54:06 -07:00
blagoev a0d3eb4466 Fix admin-user-helper 2017-09-20 10:54:06 -07:00
blagoev ea0d92c205 fix property type checking 2017-09-20 10:54:06 -07:00
blagoev 640079f50a Remove not needed casts 2017-09-20 10:54:06 -07:00
blagoev cffc416e2d address code review for property type checks 2017-09-20 10:54:03 -07:00
blagoev 672859e9b6 Update object store 2017-09-20 10:52:39 -07:00
Thomas Goyne e42db5aba2 Merge pull request #1325 from realm/tg/merge-master-to-next-major
Merge latest master to next-major
2017-09-20 07:55:24 -07:00
Thomas Goyne efbd21110c Link against static core/sync for node
The CMake packaging added shared libraries to the node release package, but the
build system isn't set up to work with them so just go back to using the static
libraries.
2017-09-19 18:52:47 -07:00
Thomas Goyne 3a8ee98f72 Merge remote-tracking branch 'origin/master' into next-major
* origin/master: (87 commits)
  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
  Documenting sync.config properties (#1312)
  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
  Add the invalid value to the type error exception message
  Improve the errors thrown for invalid schema definitions
  Throw a more appropriate error for some operations on closed Realms
  ...
2017-09-19 16:36:49 -07:00
Thomas Goyne 936dc15c2a Merge pull request #1314 from realm/tg/listener-test
Fix race conditions in testAddListener
2017-09-19 16:32:33 -07:00
Thomas Goyne c3afa0c301 Disable testAddListener when running in chrome 2017-09-19 16:06:45 -07:00
Thomas Goyne 41440125cb Ensure RN has an event loop running for async tests 2017-09-19 15:45:07 -07:00
Thomas Goyne e8e23bbee7 Make permission tests better handle server delays
Retry a few times if the request hasn't been processed yet rather than hoping
that a 100ms sleep will suffice.
2017-09-19 13:14:49 -07:00
Thomas Goyne 8ad5c36cca Fix race conditions in testAddListener
The test was resolving the promise long before it actually finished running,
leading to it not testing what it was trying to test and sometimes crashing.
2017-09-19 10:57:01 -07:00
Thomas Goyne c0db1a6eff Merge pull request #1315 from realm/tg/test-realm-errors
Check the exception message in all Realm tests which assert an exception is thrown
2017-09-19 07:40:48 -07:00
Thomas Goyne f3f51ece76 Separate build and test steps in xcode to reduce chance of hitting "Early unexpected exit" 2017-09-18 22:32:41 -07:00
Thomas Goyne d04a45b8d1 Ignore errors when sourcing nvm.sh
It fails spuriously if it fails to understand the version of system node.
2017-09-18 21:34:34 -07:00
Thomas Goyne e1f3cd638f Don't forward arguments to nvh.sh 2017-09-18 21:34:34 -07:00
Thomas Goyne 5189915980 Skip sourcing nvm.sh if it's already available 2017-09-18 16:23:35 -07:00
Thomas Goyne ada601354c Fix some shellcheck warnings 2017-09-18 16:07:07 -07:00
Thomas Goyne 604968a987 Ensure node 6.5.0 is installed on CI 2017-09-18 12:20:09 -07:00
Thomas Goyne 70739d632b Build realm from source for each test-runner test
Without this node-pre-gyp will instead download the prebuilt binary and test
that, and I couldn't find a way to persuade node-pre-gyp to "download" the
locally built copy.
2017-09-18 11:58:37 -07:00
Thomas Goyne 0c9d7ca54e Improve error reporting for incorrect argument counts for Realm methods
Report the expected and actual arg counts for too many arguments, and behave
more like normal JS when too few are supplied (i.e. complain about the next
argument being undefined rather than just saying 'Invalid arguments').
2017-09-15 15:00:13 -07:00
Thomas Goyne 742ff99003 Use the same error messages in the RPC code as the regular code 2017-09-15 15:00:13 -07:00
Thomas Goyne e697ae3d5c Silence an unused variable warning when building with sync disabled 2017-09-15 13:12:44 -07:00
Kenneth Geisshirt b3ff7ada62 Documenting sync.config properties (#1312)
* Documenting sync.config properties
* Updating TypeScript definitions
2017-09-15 15:22:44 +02:00
Thomas Goyne 53ca09839e Check the exception message in all Realm tests which assert an exception is thrown 2017-09-14 16:40:58 -07:00
Thomas Goyne 4ad75c9546 Don't discard the actual error message in validated_get_X 2017-09-14 16:25:33 -07:00
Thomas Goyne b8fd4fb861 Add the invalid value to the type error exception message 2017-09-14 16:25:33 -07:00
Thomas Goyne e564ad1de8 Improve the errors thrown for invalid schema definitions 2017-09-14 16:25:33 -07:00
Thomas Goyne aac7d1498a Throw a more appropriate error for some operations on closed Realms 2017-09-14 16:25:33 -07:00