Scott Kyle
ece554e58f
Exit with an error code for failures of node tests
2016-04-19 16:53:49 -07:00
Scott Kyle
a05f7e2261
Fix some eslint errors
2016-04-19 01:38:46 -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
133289ad85
All tests now pass on Node
2016-04-15 16:06:44 -07:00
Ari Lazier
b542fe8c7b
tests
2016-04-11 16:01:51 -07:00
Ari Lazier
4ac022ecc9
don't require optional or link properties when creating objects
2016-04-01 11:00:53 -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
Ari Lazier
9d0b890923
add some simple tests for Realm.write
2016-03-29 09:02:36 -07:00
Scott Kyle
c9c941aac9
Update apps to use React Native 0.22
...
React is now a peer dependency, which means we need to add it to our package.json for npm v3 to work properly.
2016-03-24 17:35:46 -07:00
Scott Kyle
02b81ac056
Convert RealmReact to be a static library
...
We needed to do this due to the way React Native modules work. Our hacky solution for using a framework ended up falling apart due to it relying on symbols not getting stripped from the main application.
This static library is in its own Xcode project because rnpm links in *all* static libraries from a given Xcode project.
2016-03-23 10:50:19 -07:00
Scott Kyle
88f6191a61
Fix disabling of RCTDevMenu for tests on iOS 9.3
...
After upgrading to Xcode 7.3, the test bundle is being loaded before the rest of the app. We need to ensure +[RCTDevMenu load] is called before we remove it from the set of native modules.
2016-03-22 09:54:06 -07:00
Scott Kyle
0e74362e4c
Merge pull request #340 from realm/sk-collection
...
Make List and Results inherit from Collection
2016-03-21 15:27:18 -07:00
Ari Lazier
f13cd0a245
Merge pull request #342 from realm/al-fix-throws
...
fix for test bug in test harness for queries that should throw
2016-03-21 14:04:22 -07:00
Ari Lazier
e84b1eb145
fix for test bug in test harness for queries that should throw
2016-03-21 13:41:00 -07:00
Ari Lazier
4b2e47a861
support encrypted realm when getting schemaVersion
2016-03-21 13:34:12 -07:00
Ari Lazier
836cfc1c6b
add chrome debugging, use -1 for not versioned
2016-03-21 13:34:12 -07:00
Ari Lazier
5de63ac401
add tests
2016-03-21 13:34:12 -07:00
Ari Lazier
b9475ad772
pr feedback
2016-03-21 11:46:34 -07:00
Scott Kyle
8c66bab8aa
Make collection iterators actually iterable
...
The ES6 spec calls for this so these iterators are usable in for-of loops, with spread operators, etc.
2016-03-20 11:51:16 -07:00
Scott Kyle
b5ce02c0ce
Make List and Results inherit from Collection
...
This will allow for easier type checking, documentation, etc.
2016-03-20 11:51:16 -07:00
Ari Lazier
b2e4d93732
support for indexed properties
2016-03-18 16:50:55 -07:00
Scott Kyle
92461f2598
Update API docs with encryptionKey
2016-03-17 15:14:56 -07:00
Scott Kyle
9ba477762a
Update splice tests to test added behavior
2016-03-17 14:53:42 -07:00
Scott Kyle
7d21e56471
Git ignore Android test XML output
...
Other rules were redundant
2016-03-16 13:33:59 -07:00
Scott Kyle
401b501aab
Explicitly opt-in to building Android module
...
Fixes #277
2016-03-16 13:01:38 -07:00
Scott Kyle
27073a9e66
Properly configure ESLint for syntax checking
...
Added a test case to run on CI as well.
2016-03-16 13:01:38 -07:00
Ari Lazier
aa08d25ed0
Merge pull request #305 from realm/al-object-store
...
Latest object store changes and core
2016-03-10 16:03:12 -08:00
Ari Lazier
f3c15ff339
Merge pull request #308 from realm/sk-react-native-21
...
Update projects to use React Native 0.21
2016-03-10 08:34:23 -08:00
Scott Kyle
1a127b425b
Merge pull request #289 from realm/sk-accept-constructor
...
Accept constructor in create() and objects() methods
2016-03-07 12:23:26 -08:00
Scott Kyle
cb4002e25c
Update ReactTests to React Native 0.21
2016-03-04 13:31:14 -08:00
Ari Lazier
079b09ddeb
Merge pull request #307 from realm/al-test-sort
...
Test sorting all property types
2016-03-04 13:22:30 -08:00
Ari Lazier
c42834d052
test strings too
2016-03-04 07:58:25 -08:00
Ari Lazier
621ee36fad
test sorting all properties
2016-03-04 07:55:05 -08:00
Ari Lazier
87ee697f53
react native test app fixes
2016-03-03 15:34:56 -08:00
Ari Lazier
386740a459
copy correct test file
2016-03-03 15:09:23 -08:00
Ari Lazier
548d700ffe
object store fixes for js binding
2016-03-03 14:45:44 -08:00
Ari Lazier
5f61fd970c
support relative paths when opening realms
2016-03-03 13:33:49 -08:00
Scott Kyle
85832f0f02
Rename some functions according to PR feedback
2016-03-03 02:49:37 -08:00
Scott Kyle
37b2c35169
Add Symbol.iterator method to List and Results
...
Resolves #235
2016-03-02 23:00:53 -08:00
Scott Kyle
1cba02c34d
Fix broken iterator methods on Android
...
Turns out the JSC included with React Native on Android includes a buggy implementation of ArrayIterator that is missing an exposed next() method, so we implement it ourselves instead.
2016-03-02 22:57:36 -08:00
Scott Kyle
4a81b091cb
Accept constructor in create() and objects() methods
...
This will help the linter prevent spelling mistakes and make some code more easily readable.
Resolves #233
2016-03-01 00:46:03 -08:00
Scott Kyle
72bf66e57e
Check for some iterator methods before testing them
...
Some JS engines (like Chrome) are skipping over values() due to a web compatibility reason for right now.
2016-03-01 00:14:18 -08:00
Scott Kyle
bceef3c340
Move encryption-tests to right directory
...
This wasn't caught in a rebase, oops!
2016-02-29 12:39:00 -08:00
Scott Kyle
4ea2e729b4
Support many Array methods on List and Results
...
Resolves #18
2016-02-29 03:24:58 -08:00
Scott Kyle
236d0a5eed
Ensure List and Results constructors throw exception
...
This was already done from native code, but needed to happen for the browser shim and be tested.
2016-02-29 03:24:58 -08:00
Scott Kyle
44a29d8dd4
Expose List and Results constructors into JS
2016-02-29 03:24:58 -08:00
Scott Kyle
a5ec799a7c
Copy whole lib module into JS test bundle
...
This meant we needed to rename tests/lib to tests/js so they folder names would not conflict.
2016-02-29 03:24:58 -08:00
Scott Kyle
154422a3d1
Make realm instances pass instanceof check
2016-02-29 03:24:58 -08:00
Ari Lazier
4177b0fb40
fix for test naming
2016-02-26 11:18:47 -08:00
Ari Lazier
e495cc4685
add encryption support
2016-02-26 11:08:59 -08:00
Tim Anglade
7cc2f69736
Merge pull request #264 from realm/km-js-fixlicense
...
License update
2016-02-21 18:56:59 -08:00
Scott Kyle
52a1fa9196
Automatically forward port 8082 for Android
...
Fixes #249
2016-02-21 16:57:05 -08:00
Scott Kyle
1ab3a8a985
No longer delete before npm installing local modules
...
This doesn't appear to have been necessary and seems to sometimes cause an issue because the packager will start and look for a JS file that was just deleted.
2016-02-19 02:03:54 -08:00
Scott Kyle
2e3a3b5db8
Merge pull request #257 from realm/sk-schema-prop
...
The schema property should be directly on constructor
2016-02-18 16:27:47 -08:00
Karson Miller
84b06fd8e0
missed a couple
2016-02-18 15:30:44 -08:00
Karson Miller
5e9333b699
no message
2016-02-18 15:30:44 -08:00
Scott Kyle
a661350e59
Merge branch 'sk-sorted-results'
...
* sk-sorted-results:
Add sorted() method to List
Further improve argument checking for sorted()
Improve error message in sorted() method
Change sortedBy API as discussed
Allow sortedBy to accept array of properties
Change sortByProperty to return new Results
2016-02-18 15:21:35 -08:00
Scott Kyle
5b2e7b37af
Add script to update version in package.json and iOS
...
This uses agvtool to update the CURRENT_PROJECT_VERSION and DYLIB_CURRENT_VERSION project variables. The Info.plist files have been updated to propagate this value.
2016-02-18 13:58:12 -08:00
Scott Kyle
d322d5dd9c
Add property test for objects with constructor
2016-02-18 13:50:45 -08:00
Scott Kyle
5332131c14
Add sorted() method to List
2016-02-18 13:41:11 -08:00
Scott Kyle
d847fbceb1
Further improve argument checking for sorted()
2016-02-18 12:55:54 -08:00
Scott Kyle
05d84b23a2
Change sortedBy API as discussed
...
If provided an array, then each member can optionally be an array of [propName, reverse]
2016-02-18 12:47:18 -08:00
Scott Kyle
76865d0da4
Allow sortedBy to accept array of properties
...
It now optionally accepts an array of properties for both parameters and the tests have been updated to reflect new capabilities.
2016-02-18 11:58:39 -08:00
Scott Kyle
249bcd8f3f
Change sortByProperty to return new Results
...
The method name changed to sortedBy to reflect that it returns a new Results object and to be more succinct. Also, the second optional argument instead reflects descending (or rather, reverse) since it's an anti-pattern to have an optional argument default to true in JS, and this also follows precedences set by other JS libraries and by Python's sorted function.
2016-02-18 11:58:39 -08:00
Scott Kyle
b34e52b290
The schema property should be directly on constructor
...
The constructor is now also called with `this` set as the constructed object.
Fixes #232
2016-02-18 11:10:02 -08:00
Ari Lazier
d70de00923
Merge pull request #254 from realm/al-filtered
...
Add filtered method to List and Results
2016-02-17 21:32:28 -08:00
Ari Lazier
b3486c0d0e
final fixes
2016-02-17 20:51:03 -08:00
Ari Lazier
6d02614eaa
add List.filtered
2016-02-17 20:24:08 -08:00
Ari Lazier
d838d61de4
test query refinement
2016-02-17 20:09:39 -08:00
Ari Lazier
e91ef42ebb
add filtered method
2016-02-17 20:06:42 -08:00
Scott Kyle
1b043eb957
Update everything to use React Native 0.20.0
2016-02-17 14:36:58 -08:00
Scott Kyle
137e4d6288
Increase React test timeout interval for CI
2016-02-15 19:23:59 -08:00
Scott Kyle
5f9f00e038
Make ListViewDataSource test go quicker
2016-02-15 16:56:39 -08:00
Scott Kyle
0188517e74
Add test for ListViewDataSource to React Test App
2016-02-15 14:56:44 -08:00
Scott Kyle
1f030a0618
Make several improvements to how tests run under RN
...
These changes include timeouts when waiting on notifications.
2016-02-15 14:50:16 -08:00
Scott Kyle
23a7c5b88d
Don't build JS bundles for the simulator
2016-02-15 14:50:16 -08:00
Scott Kyle
3e1889d342
Merge branch 'master' into sk-listview-merge
...
* master: (207 commits)
Convert to using new React Native MainActivity template
Create RealmReactPackage for our Android plugin
Fix doc for Android
NPM ignore react-native/android folder
Skip building Android module under Xcode
Skip building Android module for iOS tests
gitignore Android downloads folder
Update README with instructions to run on Android
Use un-patched RN for Android by installing hook into JSC
cleanup build system
Use Realm in node_modules for ReactTests on Android
Change Demo => ReactTests
adding a 'publishAndroid' task to generate the AAR with prebuilt .so files
Adjust POM_NAME
Use consistent package naming
Remove old Demo files
Add copyright to JNI file
Cleanup platform.hpp
Make our Android module buildable as a dependency
Add `npm test` command
...
2016-02-15 14:49:31 -08:00
Scott Kyle
e594087644
Convert to using new React Native MainActivity template
...
Adjusted the README to reflect the modern way of doing things.
2016-02-12 11:00:46 -08:00
Scott Kyle
6e4b2440ba
Create RealmReactPackage for our Android plugin
...
Also renamed RealmReactAndroid to RealmReactModule to match the convention used by everyone else.
2016-02-12 09:49:11 -08:00
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
c9c225c107
Use Realm in node_modules for ReactTests on Android
2016-02-10 17:08:01 -08:00
Scott Kyle
881d4a04c3
Change Demo => ReactTests
2016-02-10 17:03:16 -08:00
Nabil Hachicha
7afdbba2ed
adding a 'publishAndroid' task to generate the AAR with prebuilt .so files
2016-02-10 16:11:36 -08:00
Scott Kyle
c8f925d019
Use consistent package naming
2016-02-09 13:46:09 -08:00
Scott Kyle
8b652adc19
Remove old Demo files
2016-02-09 03:08:56 -08:00
Nabil Hachicha
97345e62a9
unlocking device after the app is installed
2016-02-03 19:00:21 +00:00
Scott Kyle
31db79e29b
Remove realm dependency in realm-tests
...
This caused an error with NPM v3 and was not necessary for us to have.
2016-01-29 00:48:22 -08:00
Scott Kyle
55e67d9bce
Update ReactTests Xcode project
2016-01-29 00:48:22 -08:00
Nabil Hachicha
1e4c905cdc
Change package name fixes #204
2016-01-28 15:09:36 +00:00
Scott Kyle
f957db3a3a
Update run-android.sh scripts
2016-01-26 15:16:49 -08:00
Nabil Hachicha
2eb8238101
fixing adb path
2016-01-26 21:01:00 +00:00
Nabil Hachicha
fca40ec16f
add reverse adb port for physical device
2016-01-26 20:25:00 +00:00
Nabil Hachicha
18cdeaedd5
update test script
2016-01-26 20:23:26 +00:00
Ari Lazier
01c3d80651
merge master
2016-01-22 15:27:17 -08:00
Nabil Hachicha
d784d624dd
add sdk manager to download build tool for Android
2016-01-22 22:41:07 +00:00
Ari Lazier
2c0a92aa63
ci script
2016-01-22 12:15:38 -08:00
Nabil Hachicha
707ca1d3c3
Merge branch 'al-android-example' of https://github.com/realm/realm-js into al-android-example
2016-01-22 18:06:18 +00:00
Nabil Hachicha
d60ed6c15a
exporting tests to junit format to be used by jenkins
2016-01-22 18:05:34 +00:00
Ari Lazier
b76766eb63
change package/app name from Demo to ReactNative Test App
2016-01-21 14:36:50 -08:00
Ari Lazier
a0145df5e4
Merge pull request #202 from realm/sk-example-update
...
Update ReactExample Xcode Project
2016-01-21 07:28:59 -08:00