Commit Graph

477 Commits

Author SHA1 Message Date
Scott Kyle 83869e2193 Prevent memory leaks when adding listeners
Check if the callback has already been added to the set before protecting it. Vice versa for unprotecting it when removing the listener.
2015-11-03 02:43:29 -08:00
Scott Kyle 7df2997ee7 Use a Set to store listener callbacks in JS 2015-11-03 02:41:52 -08:00
Scott Kyle 8cb7e43e2e Merge pull request #115 from realm/sk-fix-chrome-tests
Re-enable chrome tests
2015-11-02 17:00:11 -08:00
Scott Kyle 84b419c815 Fix to run RealmReactTests with release builds
In the case of a release build, React Native will not include the RCTWebSocketExecutor.
2015-11-02 15:20:49 -08:00
Ari Lazier 6c6931a97d enable chrome tests 2015-11-02 13:50:16 -08:00
Ari Lazier a84eecb17a Merge pull request #114 from realm/al-undefined
Allow setting nullable properties to undefined
2015-11-02 13:47:05 -08:00
Scott Kyle 7181a00f01 Fix to make RealmReact tests work in Chrome again
Left the RealmReactChromeTests commented out for now until it's confirmed to work in the CI environment.
2015-11-02 13:38:00 -08:00
Scott Kyle aa55b61b86 Update React Native to 0.13.2 2015-11-02 13:38:00 -08:00
Ari Lazier caf58e7bfa Merge pull request #113 from mrcasals/patch-1
Fix typo in README file
2015-11-02 13:33:54 -08:00
Ari Lazier 87b2c0f6c4 basic tests for null objects during upsert 2015-11-02 13:30:42 -08:00
Marc Riera 0b869260a1 Fix typo in README file 2015-11-02 20:30:35 +01:00
Ari Lazier 196a0a15a4 allow setting nullable properties to undefined 2015-11-02 10:08:23 -08:00
Ari Lazier 36a5a9710a Merge pull request #109 from realm/al-mkdir
make sure Documents directory exists when running tests
2015-10-28 15:18:13 -07:00
Ari Lazier 2cff7e291f create docs dir in binding 2015-10-28 14:45:31 -07:00
Scott Kyle b786279b63 Update README with latest setup instructions 2015-10-28 14:21:37 -07:00
Scott Kyle 5d59040d3d Merge pull request #102 from realm/sk-example-app
Improve ReactExample app
2015-10-28 14:03:12 -07:00
Scott Kyle c42dceb7a8 ReactExample: Change placeholder text 2015-10-28 11:25:54 -07:00
Scott Kyle 2ee0e2f608 ReactExample: fix bug with pressing Add twice 2015-10-28 11:23:37 -07:00
Scott Kyle af9e7e8b4c Update ReactExample Objective-C to 4-space indentation 2015-10-28 10:53:30 -07:00
Scott Kyle 5edeefbb17 Add beta licenses to example app files 2015-10-28 10:50:31 -07:00
Scott Kyle 922bf1d0f7 Improve look of checkbox and smart list badges 2015-10-28 10:48:17 -07:00
Scott Kyle ab33d47a94 ReactExample: add "smart lists" 2015-10-28 10:48:17 -07:00
Scott Kyle 6fc2110991 Example app can now have multiple todo lists 2015-10-28 10:48:17 -07:00
Scott Kyle e90715140b Make libReact a target dependency of ReactExample
Was experiencing a bug where the packager would startup for ReactTests rather than ReactExample. This fixes that.
2015-10-28 10:48:17 -07:00
Scott Kyle 8c680ffbf6 Add delete buttons for todo items in Example app 2015-10-28 10:48:17 -07:00
Scott Kyle f89c44697a Add checkboxes next to todo items in Example app 2015-10-28 10:48:17 -07:00
Scott Kyle 549c2ceff7 Refactor and re-style example app 2015-10-28 10:48:16 -07:00
Scott Kyle 0b35564830 Merge pull request #107 from realm/sk-live-update-fixes
Ensure Lists and Results live-update in Chrome
2015-10-28 10:46:43 -07:00
Scott Kyle d5d05c5d15 Add comments to test to explain canceling transaction 2015-10-28 10:45:42 -07:00
Scott Kyle b38b87e2f4 Add beta license to ReactTests index.ios.js 2015-10-28 10:40:07 -07:00
Scott Kyle 46bee3c867 Add beta licenses to Chrome JS modules 2015-10-28 10:37:17 -07:00
Scott Kyle 0eb3b49970 Ensure Lists and Results live-update in Chrome
Results needed to live-update during a transaction (not just as the end), and Lists needed to update on deletions as well.
2015-10-28 10:21:32 -07:00
Ari Lazier 7a02ff29a1 Update README.md 2015-10-27 14:41:25 -07:00
Ari Lazier 67922f8299 Update README.md 2015-10-27 14:41:07 -07:00
Ari Lazier b4e50f29c8 Update README.md 2015-10-27 14:40:57 -07:00
Ari Lazier 70d2a6b7d8 Update README.md 2015-10-27 14:40:45 -07:00
Ari Lazier 72cf0910d5 Merge pull request #106 from realm/al-license
Change the license for all unrleased files
2015-10-27 14:18:07 -07:00
Ari Lazier cda594a54e add license 2015-10-27 14:15:28 -07:00
Ari Lazier 841f45a7b2 change the license before starting the beta 2015-10-27 14:15:21 -07:00
Ari Lazier 57aadc0bda Merge pull request #103 from realm/al-optional-properties
Support null properties
2015-10-27 13:52:36 -07:00
Ari Lazier fd1ebf0aa0 remove extra newline 2015-10-27 13:45:37 -07:00
Ari Lazier ec87281cc1 don't convert undefined to null in rpc requests 2015-10-27 12:13:57 -07:00
Ari Lazier 18d65471be fix and tests for setting null properties 2015-10-27 12:13:57 -07:00
Ari Lazier ac1cdfdc8b support null for basic propety types 2015-10-27 12:13:57 -07:00
Ari Lazier e3fb40f299 enable nullable propeties without a macro 2015-10-27 12:13:57 -07:00
Ari Lazier fc631c3e6f wont work until we have propery object store support 2015-10-27 12:13:57 -07:00
Ari Lazier 0df214ad21 Merge pull request #101 from realm/sk-object-getters
Non-existent object getters shouldn't throw exceptions
2015-10-27 11:09:21 -07:00
Ari Lazier db67fe71ea only ignore invalid property exceptions 2015-10-27 09:39:52 -07:00
Ari Lazier 9092f9ac5f use typed exceptions 2015-10-27 09:39:52 -07:00
Scott Kyle 0511bade62 Non-existent object getters shouldn't throw exceptions 2015-10-27 09:39:52 -07:00