Commit Graph

131 Commits

Author SHA1 Message Date
Scott Kyle e8ea8e493e Fix for linker error when building for iOS 7
By default, React Native projects target a minimum of iOS 7, but our projects were set to iOS 8 because previously we used a dynamic framework.

When building for an iOS 7 minimum target version, the linker would complain about thread local variables not working on iOS 7. So it was necessary to add even more checks (iOS >= 8 or OS X >= 10.7) before using native thread local variables rather than our shim.

This also changes our projects to target iOS 7 so we can catch these issues quicker in the future.
2016-06-27 12:16:35 -07:00
Scott Kyle c8df1cddec Update projects to React Native 0.27.1 2016-06-07 18:23:11 -07:00
Scott Kyle b76ed20020 Update projects to React Native 0.26.2
Fixed some minor issues along the way.
2016-05-27 11:30:17 -07:00
Scott Kyle 02b770b79a Fix ESLint errors 2016-05-16 14:15:56 -07:00
Scott Kyle e304cd0032 Fix some warnings in benchmark app from RN upgrade 2016-05-16 13:21:55 -07:00
Scott Kyle d29a6498dc Fix some warnings in ReactExample from RN upgrade 2016-05-16 13:21:28 -07:00
Scott Kyle 8db0161ed8 Update projects to React Native 0.25 2016-05-16 13:20:50 -07:00
Scott Kyle 26d2c169a9 Support ES6 class inheritance from Realm.Object
Unfortunately, this was broken because our native Realm.Object constructor was not presenting itself as a function in JS. This fixes that and adds tests.
2016-05-09 16:49:05 -07:00
Ari Lazier f66dcf943f Header fix 2016-05-09 12:36:25 -07:00
Scott Kyle 933e6070c5 Update test and example apps to use React Native 0.24.1
This might make tests run more reliably on iOS due to some internal changes, mainly "Stop the runloop from invalidate instead of dealloc" (99c7de2).
2016-05-02 16:19:29 -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 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
Scott Kyle 7e123f8ae2 Use new StyleSheet.hairlineWidth in ReactExample 2016-03-04 13:31:14 -08:00
Scott Kyle 21b74e8e38 Update ReactNativeBenchmarks to React Native 0.21 2016-03-04 13:31:14 -08:00
Scott Kyle 50ec358e5f Update ReactExample to React Native 0.21 2016-03-04 13:31:14 -08:00
Scott Kyle 4ea2e729b4 Support many Array methods on List and Results
Resolves #18
2016-02-29 03:24:58 -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 ab94f5f314 Merge pull request #270 from realm/sk-port-forward
Automatically forward port 8082 for Android
2016-02-21 18:05:09 -08:00
Scott Kyle 52a1fa9196 Automatically forward port 8082 for Android
Fixes #249
2016-02-21 16:57:05 -08:00
Ari Lazier 349d227252 use classes in the examples 2016-02-21 12:16:42 -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
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
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
Ari Lazier 98951f52ac Merge pull request #244 from realm/al-benchmarks
Benchmarks
2016-02-17 13:15:47 -08:00
Ari Lazier 5e9c0c12d2 properly load sqlite module 2016-02-17 11:55:27 -08:00
Ari Lazier 66ac82bb34 reduce query results size 2016-02-16 13:15:50 -08:00
Ari Lazier a77a72ee49 remove of 2016-02-16 12:50:01 -08:00
Ari Lazier 84272c467e newer react native and dont repeat by default 2016-02-16 07:25:16 -08:00
Ari Lazier 6fefef725a change number of query results, do fewer insersions because they are slow 2016-02-15 21:52:02 -08:00
Ari Lazier 8b41b0a6d0 cast rns date to int for storage 2016-02-15 17:52:40 -08:00
Ari Lazier f34958ebae use batch count for enumeration 2016-02-15 17:43:43 -08:00
Ari Lazier 2e2e7717b9 add checks for object counts, only clear objects when needed 2016-02-15 17:42:05 -08:00
Ari Lazier 9de2fa8726 don't return the wrong thing 2016-02-15 16:52:10 -08:00
Ari Lazier c4fc31fea3 assert the proper number of objects are processed in each test 2016-02-15 16:49:53 -08:00
Ari Lazier a99bf349a7 use test objects and 'of' for realm tests 2016-02-15 16:14:09 -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
Ari Lazier 36c1ae1f8e remove autogenerated garbage 2016-02-15 15:33:41 -08:00
Ari Lazier 5f49837841 remove autogenerated stuff 2016-02-15 15:31:24 -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
Ari Lazier e0a6bc0ab1 use separate transaction per insertion for sql 2016-02-15 14:12:26 -08:00
Ari Lazier 1614d02df0 share code 2016-02-15 13:52:38 -08:00
Ari Lazier 01f92ed72f start of benchmarks
fixes

enumeration test and test setup

add async store api tests

Log benchmark test errors and some other minor edits

Only delete .realm* files for tests

sql lite tests

run all the tests

worthless

Make SQLite benchmarks work

Make Realm insertion benchmark work like SQLite

run each test in release multiple times

Open each database once per benchmark test

Use same AppDelegate for benchmarks as the example

This will load the non-dev JS from the packager.

Make the benchmarks actually match their labels

Delete benchmark databases during setup phase

Some minor code style updates to benchmarks

query tests

make query test mostly work

bug fix and improved logging

remove double insertions

improved logging and bugfix

better logging

batch insersions

more reasonable counts

android
2016-02-15 13:02:25 -08:00