remove unneded dependencies

This commit is contained in:
Ari Lazier 2016-01-15 11:49:22 -08:00
parent 62017c1739
commit c6e46b9856
7 changed files with 15 additions and 10 deletions

View File

@ -149,7 +149,7 @@ dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.github.KeepSafe:ReLinker:1.1'
compile 'org.nanohttpd:nanohttpd:2.2.0'
compile project (':react-native')// this is the locally patched version of Facebook React Native
compile 'com.facebook.react:react-native:0.18.0'
compile 'org.webkit:android-jsc:r174650'
}

View File

@ -8,8 +8,8 @@ include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE:= jsc-$(TARGET_ARCH_ABI)
LOCAL_SRC_FILES := react-native/ReactAndroid/build/third-party-ndk/jsc/jni/$(TARGET_ARCH_ABI)/libjsc.so
LOCAL_EXPORT_C_INCLUDES := react-native/ReactAndroid/build/third-party-ndk/jsc
LOCAL_SRC_FILES := jsc/jni/$(TARGET_ARCH_ABI)/libjsc.so
LOCAL_EXPORT_C_INCLUDES := jsc
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
@ -43,9 +43,6 @@ LOCAL_C_INCLUDES += src/object-store
LOCAL_C_INCLUDES += src/object-store/parser
LOCAL_C_INCLUDES += vendor
LOCAL_C_INCLUDES += vendor/PEGTL
LOCAL_C_INCLUDES += react-native/ReactAndroid/src/main/jni/react
LOCAL_C_INCLUDES += react-native/ReactAndroid/src/main/jni/first-party
LOCAL_C_INCLUDES += react-native/ReactAndroid/src/main/jni/first-party/fb/include
LOCAL_C_INCLUDES += $(JAVA_HOME)/include
LOCAL_C_INCLUDES += $(JAVA_HOME)/include/darwin
LOCAL_C_INCLUDES += core/include

View File

@ -0,0 +1,6 @@
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE:= jsc
LOCAL_SRC_FILES := jni/$(TARGET_ARCH_ABI)/libjsc.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
include $(PREBUILT_SHARED_LIBRARY)

View File

@ -1 +0,0 @@
../../../../../../../react-native

View File

@ -2,4 +2,3 @@ rootProject.name = 'ReactTests'
include ':app'
include ':react-native'
project(':react-native').projectDir = new File(rootProject.projectDir, '../../../react-native/ReactAndroid')

View File

@ -6,13 +6,18 @@
#include <sstream>
#include "com_reacttests_RealmReactAndroid.h"
#include "JSCExecutor.h"
#include "js_init.h"
#include "rpc.hpp"
#include "platform.hpp"
#include <unordered_map>
#include <android/log.h>
namespace facebook {
namespace react {
class JSCExecutor;
}
}
/*
* Class: com_reacttests_RealmReactAndroid
* Method: injectRealmJsContext

View File

@ -1,5 +1,4 @@
#!/bin/bash
cp ../../react-native/android/app/build/outputs/aar/app-debug.aar android/app/lib/
rm -rf node_modules/realm node_modules/realm-tests
npm install realm realm-tests
cp ../../src/object-store/parser/queryTests.json node_modules/realm-tests/