Commit Graph

83 Commits

Author SHA1 Message Date
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
Ari Lazier c39c62d0db example fix 2016-02-17 21:34:41 -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 eb43699d41 fix for examples 2016-02-17 21:23:43 -08:00
Scott Kyle 1b043eb957 Update everything to use React Native 0.20.0 2016-02-17 14:36:58 -08:00
Scott Kyle c64524f985 Test that example app loads properly
Re-using the existing React testing class to hook into the example app. Right now, the test is extremely basic but is able to be expanded later.

Resolves #36
2016-02-15 15:47:07 -08:00
Scott Kyle 2bdb6bfa28 Convert Example app to use ES6 import syntax 2016-02-15 15:40:55 -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
Nabil Hachicha 7afdbba2ed adding a 'publishAndroid' task to generate the AAR with prebuilt .so files 2016-02-10 16:11:36 -08: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
Scott Kyle 6c3835f6b7 Remove redundant gitignore files 2016-01-27 12:02:20 -08:00
Scott Kyle f957db3a3a Update run-android.sh scripts 2016-01-26 15:16:49 -08:00
Ari Lazier 01c3d80651 merge master 2016-01-22 15:27:17 -08:00
Scott Kyle 5772717dee Update ReactExample to use our new ListView
It's also been updated to follow best practices with how to properly use the ListView data source.
2016-01-21 11:41:38 -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
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
Scott Kyle 1bb335c587 Merge pull request #197 from realm/sk-react-native-0.18
Update React Tests to support React Native 0.18
2016-01-19 15:12:51 -08:00
Scott Kyle afade2530c Make ReactExample look decent on Android as well
Mission (mostly) Accomplished!
2016-01-19 15:10:19 -08:00
Scott Kyle 92df9bff8c Update to React Native 0.18.0 official release 2016-01-18 23:01:14 -08:00
Ari Lazier 9edafe09ac example fixes 2016-01-15 12:54:46 -08:00
Ari Lazier 5f2a51727b merge in build system improvements 2016-01-15 12:46:58 -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
Scott Kyle c488fecbc2 Update ReactExample to use right JS build
For the simulator it will use the packager, but on device it will use the bundled JS build.
2016-01-15 02:02:43 -08:00
Scott Kyle 804a980d93 Update ReactExample iOS project to latest template
It now will bundle the JS so it can be run on device.
2016-01-15 01:51:59 -08:00
Scott Kyle e4866c5560 Update ReactExample Xcode project
Added libReact as a target dependency since that seemed to workaround a very weird build issue that would come and go.
2016-01-15 01:33:34 -08:00
Scott Kyle 2f1eca4a9c Merge branch 'master' into al-android-example
* master:
  Fix typo in README
  Improve clarity of schema parsing and serialization
  Add test that checks schema validation
  Update README with new Schema API
  Cleanup some code and comments to make it consistent
  Convert tests to create objects with property objects
  Update example apps with new schema API
  Remove confusion between propTypes and objectTypes
  Simplify object schema info returned from RPC
  RPC now keeps object keys in the same order
  Change schema API to take properties as an object
  Add method to clear mutation listeners in RPC client
  Plug small leak from not releasing a JSStringRef
  Make RJSStringForValue use consistent exception style
  Improve error messages inside RJSUtil
2016-01-14 15:39:45 -08:00
Ari Lazier 0d515d187a remove unnecessary requires 2016-01-14 09:47:39 -08:00
Nabil Hachicha 9daa3aae30 fix example deps 2016-01-14 16:05:20 +00:00
Ari Lazier a7720216de try to make example work 2016-01-13 21:25:10 -08:00
Scott Kyle c2d15af000 Update ReactExample to use generic Navigator
This means it theoretically should work on Android!
2016-01-13 17:48:54 -08:00
Scott Kyle 741cd4ad19 Update ReactExample Xcode project
Added libReact as a target dependency since that seemed to workaround a very weird build issue that would come and go.
2016-01-13 14:34:39 -08:00
Ari Lazier f63e6e7b13 android example 2016-01-13 14:29:41 -08:00
Scott Kyle 09752846e5 Update example apps with new schema API 2016-01-05 13:54:03 -08:00
Scott Kyle 3da6b54df6 Add ability to publish NPM module to git
The top-level package.json explicitly includes the directories it needs (vendor/.npmignore cuts down the cruft). The publish-beta.sh script essentially uses `npm pack` to package up the NPM module and then push it into an orphaned `beta` branch.
2015-12-28 22:01:17 -08:00
Ari Lazier 4c402a7daf install from test script 2015-12-15 18:18:18 -08:00
Ari Lazier 2476c061c1 npm install react-native if out of date 2015-12-15 18:02:20 -08:00
Scott Kyle 1f2eabeb1a Update to use React Native 0.16
Outside of the ReactExample test, no backwards incompatible changes were needed.
2015-12-08 16:59:12 -08:00
Scott Kyle 25cfb68779 Remove use of explicit target dependencies
The target dependencies are discovered implicitly, and removing the use of explicitly defined dependencies actually resolved a very odd bug with Xcode when building ReactExample.app for a device.
2015-12-02 17:45:09 -08:00
Scott Kyle 1f64573b4e Update to support React Native 0.15.0
Resolves #173
2015-11-30 18:08:51 -08:00
Ari Lazier 63ffaf7adb fix for reload in example 2015-11-23 19:00:31 -08:00
Ari Lazier bcd667067c upate packager command and use nvm when available 2015-11-23 18:56:03 -08:00
Scott Kyle f3db7a5a56 Update ReactExample to use React Native 0.14.2 2015-11-13 11:14:27 -08:00
Scott Kyle aa55b61b86 Update React Native to 0.13.2 2015-11-02 13:38:00 -08: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