Commit Graph

152 Commits

Author SHA1 Message Date
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
Scott Kyle e2d1bc4520 Get correct path to adb from Android Studio
If adb really isn't found (unsure what conditions would cause that to happen), then `false` will be called which will result in that warning message being displayed instead.

Fixes #351
2016-03-29 10:56:51 -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 4feea0ad6f Download Android core over HTTPS 2016-03-23 16:08:02 -07:00
Scott Kyle daa2948028 Move RealmJS.xcodeproj to be under src/ios 2016-03-23 13:39:12 -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 0e74362e4c Merge pull request #340 from realm/sk-collection
Make List and Results inherit from Collection
2016-03-21 15:27:18 -07:00
Scott Kyle 1fc251a371 Fix Collection on Android 2016-03-21 15:12:41 -07:00
Ari Lazier b9475ad772 pr feedback 2016-03-21 11:46:34 -07:00
Ari Lazier 48199f6c08 share core version 2016-03-18 19:53:52 -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
Scott Kyle 1e652d9f2a Merge pull request #292 from realm/sk-debug-on-device
Use device IP addresses to connect to RPC host
2016-03-16 12:51:24 -07:00
Scott Kyle d96c645415 Only lookup IP addresses when in Chrome debug mode 2016-03-16 09:31:41 -07:00
Ari Lazier 87ee697f53 react native test app fixes 2016-03-03 15:34:56 -08:00
Ari Lazier 765fe03317 fix for android core version 2016-03-03 14:50:39 -08:00
Scott Kyle 17eb6bcbb5 submodule fixes 2016-03-03 14:48:41 -08:00
Scott Kyle 00b19d95b8 Use device IP addresses to connect to RPC host
It still only tries localhost for the simulator, but for devices, we now get a list of possible IP addresses to attempt to connect to before throw a more helpful exception.

Resolves #284 and fixes #276
2016-03-01 00:56:45 -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
Nabil Hachicha 9bcebfaf29 PR feedback 2016-02-19 22:50:30 +00:00
Scott Kyle f4f6d67a4c Change license headers on analytics files 2016-02-19 14:30:38 -08:00
Nabil Hachicha 76981229ab start debug server only on when using chrome debug 2016-02-19 19:05:07 +00:00
Karson Miller 5e9333b699 no message 2016-02-18 15:30:44 -08:00
Scott Kyle 9b55ac9a59 Fix bug with Mixpanel on Android 2016-02-18 14:55:28 -08:00
Scott Kyle cac3d09bcb Mistakenly thought TARGET_OS_MAC was useful 2016-02-18 14:09:11 -08:00
Scott Kyle f059d57bf4 Add Mixpanel property for JS VM 2016-02-18 13:58:12 -08:00
Scott Kyle 6c644067fd Add comments explaining analytics usage 2016-02-18 13:58:12 -08:00
Scott Kyle 0c9d70905a Adjust Mixpanel properties 2016-02-18 13:58:12 -08:00
Scott Kyle b7c46b701c Add Mixpanel analytics for Android
This is mostly copied and modified from the Realm Java repo.
2016-02-18 13:58:12 -08:00
Scott Kyle 6f90a3a6e8 Add Mixpanel analytics for iOS
This is mostly copied and then modified from the Realm Cocoa repo.
2016-02-18 13:58:12 -08:00
Scott Kyle 18b0d4bf49 Add Gradle task to generate Version class
This uses the version that's in the package.json file.
2016-02-18 13:58:12 -08:00
Scott Kyle 1b043eb957 Update everything to use React Native 0.20.0 2016-02-17 14:36:58 -08:00
Ari Lazier 98951f52ac Merge pull request #244 from realm/al-benchmarks
Benchmarks
2016-02-17 13:15:47 -08:00
Nabil Hachicha 7d7cd87fb3 using RN 0.19.+ as a Gradle dep 2016-02-17 20:21:48 +00: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 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 631efb72d7 NPM ignore react-native/android folder 2016-02-11 16:55:36 -08:00
Scott Kyle 291cd98701 gitignore Android downloads folder 2016-02-11 13:20:31 -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
Nabil Hachicha 49408ad767 cleanup build system 2016-02-11 15:42:10 +00: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 918b140030 Adjust POM_NAME 2016-02-09 13:47:49 -08:00
Scott Kyle a55faef0ce Add and tweak ListView wrapper methods 2016-02-08 17:57:29 -08:00
Scott Kyle 6c3782d05e Make our Android module buildable as a dependency
This enables apps that use `react-native link` to build without the error: "Configuration with name 'default' not found"
2016-02-08 14:22:04 -08:00
Scott Kyle 1c1b2ec4ab Add postinstall script to create symlinks
This includes a top-level "android" symlink that should allow `react-native link` command to work.
2016-02-08 03:26:27 -08:00
Nabil Hachicha 788189100d remove unecessary gradle file 2016-02-04 18:51:37 +00:00
Nabil Hachicha 49a74e5646 Refactor & formatting code 2016-02-04 18:30:26 +00:00
Scott Kyle 9b37284b4e Small fix to Application.mk
We were overriding the APP_LDFLAGS rather than appending to it.
2016-02-02 14:53:28 -08:00
Ari Lazier 2539d1feb4 REALM_HAVE_CONFIG 2016-02-02 08:56:32 -08:00
Nabil Hachicha e5ee6d8e9c fixes #209 download core in gradle task 2016-01-30 18:26:27 +00:00
Nabil Hachicha b92a281b5e add missing refactored files 2016-01-28 15:11:33 +00:00
Nabil Hachicha 1e4c905cdc Change package name fixes #204 2016-01-28 15:09:36 +00:00
Nabil Hachicha dd9242e584 cleaning NDK flags 2016-01-28 14:11:27 +00:00
Scott Kyle 4917a8e939 Use dummy libjsc.so while allowing undefined symbols
We no longer need to have the rebuilt JSC binaries because instead we build a dummy libjsc.so and link against it while allow undefined symbols. At runtime, it will link in the real libjsc.so and resolve the symbols.
2016-01-27 21:23:56 -08:00
Scott Kyle 6c3835f6b7 Remove redundant gitignore files 2016-01-27 12:02:20 -08:00
Scott Kyle 42aa043da0 Git ignore JavaScriptCore headers 2016-01-27 12:02:10 -08:00
Nabil Hachicha 1cf62f6c10 downloading JSC header from svn 2016-01-27 14:11:56 +00:00
Scott Kyle a6715d210d Ignore more things when publishing with NPM
Unfortunately some kind of NPM bug is making it ignore a top-level .npmignore file.
2016-01-22 16:43:53 -08:00
Scott Kyle 7f25ed7897 Delegate a couple ListView methods 2016-01-21 11:44:33 -08:00
Scott Kyle eb4ac0000b Efficient React ListView for Realm collections
This component is fully backwards compatible with the original React ListView, but is compatible with Realm Results and List objects to use their snapshot functionality along with more efficiently checking if each row should update.
2016-01-21 11:41:38 -08:00
Nabil Hachicha bf80fca2c0 Running chrome debug mode request on UI thread + using Facebook SoLoader instead of the Relinker + cleaning dependencies 2016-01-21 13:36:54 +00:00
Ari Lazier 1bb05b0fae Merge branch 'al-refactor-broken' of https://github.com/realm/realm-js into al-refactor-broken 2016-01-15 12:35:12 -08:00
Ari Lazier a086955a8c path/name fixes 2016-01-15 12:34:51 -08:00
Nabil HACHICHA ac51a2b2cf rm unused file 2016-01-15 20:20:28 +00:00
Ari Lazier c6e46b9856 remove unneded dependencies 2016-01-15 11:49:22 -08:00
Nabil Hachicha 62017c1739 fix example deps
remove unnecessary requires

reduce dependencies for test projects

using the patched Facebook React Native repo as a dependency

remvoe unecessary/duplicate folder

remove unused dir

remove unused gradle tasks + unecessary duplicate deps

more gradle conf/dependencies cleanup
2016-01-15 16:32:48 +00:00
Ari Lazier cd6fd2a2e8 merge changes for v0.18-rc 2016-01-13 14:10:57 -08:00
Ari Lazier 1ded2e661b log levels 2016-01-13 11:50:19 -08:00
Ari Lazier b45948eb9a only start webserver in chrome debug mode 2016-01-13 11:32:29 -08:00
Nabil Hachicha 55bde66ef8 adding NanoHTTP server for chrome debug 2016-01-13 17:56:38 +00:00
Scott Kyle 04ee234578 Improve clarity of addListenerForEvent:hander: 2016-01-12 17:07:48 -08:00
Nabil Hachicha 2d8dddabee revert getConstants to avoid initialising Realm too late 2016-01-12 10:25:53 +00:00
Nabil Hachicha b246f017e9 fix crash in using s_default_realm_directory 2016-01-12 03:01:06 +00:00
Nabil Hachicha a91a50cc49 wip 2016-01-11 23:17:42 +00:00
Nabil Hachicha 6426d48d57 defining default_realm_file_directory using application context 2016-01-11 16:18:15 +00:00
Nabil Hachicha 3067ed8bc1 Merge branch 'al-android-aar' of https://github.com/realm/realm-js into al-android-aar 2016-01-11 11:27:03 +00:00
Nabil Hachicha b68d9a315d fixing conf path 2016-01-11 11:25:35 +00:00
Ari Lazier 4735a91f8c run tests 2016-01-08 16:33:53 -08:00
Scott Kyle d7f80e22c8 Update React Tests to support React Native 0.18
We had to shift to using an event-based architecture to communicate with the page from native code.
2016-01-07 14:31:04 -08:00
Ari Lazier 9a15ef4c87 initialize the context when the module is initialized 2016-01-05 20:34:50 -08:00
Ari Lazier e90d2c514b rebase from master 2016-01-05 19:33:56 -08:00
Nabil Hachicha 98cb634a36 using dynamic linker to expose s_globalContextRefToJSCExecutor 2016-01-05 11:08:42 -08:00
Ari Lazier 4270bc2b0f try to initialize JSContexts 2016-01-05 11:08:42 -08:00
Nabil Hachicha 8965aa80f7 fixed example, add Relinker to load JNI lib 2016-01-05 11:08:42 -08:00
Ari Lazier ac32f97f8d check in core 2016-01-05 11:08:42 -08:00
Ari Lazier 3a72bb3ade finish rename 2016-01-05 11:08:42 -08:00
Ari Lazier eea8658627 put our react module in our aar 2016-01-05 11:08:42 -08:00
Ari Lazier 8cb8b0729a move library to separate project 2016-01-05 11:08:42 -08:00
Scott Kyle cf687ffca0 Fix for correctly locating GCDWebServer headers
This issue appeared when doing a fully clean build since we no longer use the GCDWebServers framework.
2015-12-08 16:58:29 -08:00
Ari Lazier 564181a887 clean up header search paths 2015-11-30 12:14:50 -08:00
Ari Lazier 5d1e9d4dd3 pr fixes 2015-11-30 11:47:32 -08:00