From 8cb8b0729a2528698516011e907dc870c76eab81 Mon Sep 17 00:00:00 2001 From: Ari Lazier Date: Thu, 10 Dec 2015 14:12:45 -0800 Subject: [PATCH] move library to separate project --- react-native/android/app/build.gradle | 195 +++++++++++++++ .../android/app/gradle.properties | 0 .../android/app/proguard-rules.pro | 0 .../android/app/react.gradle | 16 +- .../android/app/release.gradle | 0 .../android/app/src/main/AndroidManifest.xml | 14 +- .../app/src/main/java/com/reacttests/API.java | 0 .../android/app/src/main/jni/Android.mk | 6 +- .../android/app/src/main/jni/Application.mk | 0 .../src/main/jni/first-party/fb/Android.mk | 0 .../src/main/jni/first-party/fb/Countable.h | 0 .../main/jni/first-party/fb/ProgramLocation.h | 0 .../app/src/main/jni/first-party/fb/RefPtr.h | 0 .../jni/first-party/fb/StaticInitialized.h | 0 .../src/main/jni/first-party/fb/ThreadLocal.h | 0 .../src/main/jni/first-party/fb/assert.cpp | 0 .../jni/first-party/fb/include/fb/assert.h | 0 .../main/jni/first-party/fb/include/fb/log.h | 0 .../app/src/main/jni/first-party/fb/log.cpp | 0 .../src/main/jni/first-party/fb/noncopyable.h | 0 .../src/main/jni/first-party/fb/nonmovable.h | 0 .../app/src/main/jni/first-party/jni/ALog.h | 0 .../src/main/jni/first-party/jni/Android.mk | 0 .../main/jni/first-party/jni/Countable.cpp | 0 .../src/main/jni/first-party/jni/Countable.h | 0 .../app/src/main/jni/first-party/jni/Doxyfile | 0 .../main/jni/first-party/jni/Environment.cpp | 0 .../main/jni/first-party/jni/Environment.h | 0 .../jni/first-party/jni/GlobalReference.h | 0 .../main/jni/first-party/jni/LocalReference.h | 0 .../main/jni/first-party/jni/LocalString.cpp | 0 .../main/jni/first-party/jni/LocalString.h | 0 .../src/main/jni/first-party/jni/OnLoad.cpp | 0 .../main/jni/first-party/jni/Registration.h | 0 .../jni/first-party/jni/WeakReference.cpp | 0 .../main/jni/first-party/jni/WeakReference.h | 0 .../src/main/jni/first-party/jni/fbjni.cpp | 0 .../app/src/main/jni/first-party/jni/fbjni.h | 0 .../main/jni/first-party/jni/fbjni/Common.h | 0 .../first-party/jni/fbjni/CoreClasses-inl.h | 0 .../jni/first-party/jni/fbjni/CoreClasses.h | 0 .../jni/first-party/jni/fbjni/Exceptions.cpp | 0 .../jni/first-party/jni/fbjni/Exceptions.h | 0 .../main/jni/first-party/jni/fbjni/Hybrid.cpp | 0 .../main/jni/first-party/jni/fbjni/Hybrid.h | 0 .../main/jni/first-party/jni/fbjni/Meta-inl.h | 0 .../src/main/jni/first-party/jni/fbjni/Meta.h | 0 .../jni/fbjni/ReferenceAllocators-inl.h | 0 .../jni/fbjni/ReferenceAllocators.h | 0 .../first-party/jni/fbjni/References-inl.h | 0 .../jni/first-party/jni/fbjni/References.cpp | 0 .../jni/first-party/jni/fbjni/References.h | 0 .../first-party/jni/fbjni/Registration-inl.h | 0 .../jni/first-party/jni/fbjni/Registration.h | 0 .../jni/first-party/jni/fbjni/TypeTraits.h | 0 .../main/jni/first-party/jni/jni_helpers.cpp | 0 .../main/jni/first-party/jni/jni_helpers.h | 0 .../app/src/main/jni/realm-react-android.c | 0 react-native/android/app/src/main/jni/src | 1 + .../src/main/jni/third-party/jsc/Android.mk | 0 .../jni/third-party/realm-core/Android.mk | 0 react-native/android/app/src/main/jni/vendor | 1 + .../android/build.gradle | 7 +- .../android/gradle.properties | 2 + .../android/gradle/wrapper/gradle-wrapper.jar | Bin .../gradle/wrapper/gradle-wrapper.properties | 0 .../Demo => react-native}/android/gradlew | 0 .../Demo => react-native}/android/gradlew.bat | 0 react-native/android/local.properties | 12 + react-native/android/settings.gradle | 3 + .../android => }/Demo/.flowconfig | 0 .../android => }/Demo/.gitignore | 0 .../android => }/Demo/.watchmanconfig | 0 .../android => }/Demo/index.ios.js | 0 .../Demo/ios/Demo.xcodeproj/project.pbxproj | 0 .../xcshareddata/xcschemes/Demo.xcscheme | 0 .../android => }/Demo/ios/Demo/AppDelegate.h | 0 .../android => }/Demo/ios/Demo/AppDelegate.m | 0 .../Demo/ios/Demo/Base.lproj/LaunchScreen.xib | 0 .../AppIcon.appiconset/Contents.json | 0 .../android => }/Demo/ios/Demo/Info.plist | 0 .../android => }/Demo/ios/Demo/main.m | 0 .../Demo/ios/DemoTests/DemoTests.m | 0 .../Demo/ios/DemoTests/Info.plist | 0 .../android => }/Demo/package.json | 0 .../android/Demo/android/app/build.gradle | 79 ------ .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 3418 -> 0 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 2206 -> 0 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 4842 -> 0 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 7718 -> 0 bytes .../app/src/main/res/values/strings.xml | 3 - .../app/src/main/res/values/styles.xml | 8 - .../android/Demo/android/settings.gradle | 3 - .../android/Demo/index.android.js | 59 ----- tests/react-test-app/android/app/build.gradle | 234 +++++------------- tests/react-test-app/android/app/react.gradle | 16 +- .../android/app/src/main/AndroidManifest.xml | 14 +- .../src/main/java/com/demo/MainActivity.java | 0 .../java/com/demo/module/JniToastModule.java | 0 .../java/com/reacttests/MainActivity.java | 78 ------ .../android/app/src/main/jni/src | 1 - .../app/src/main/res/values/strings.xml | 2 +- tests/react-test-app/android/build.gradle | 7 +- .../react-test-app/android/gradle.properties | 2 - tests/react-test-app/android/settings.gradle | 2 +- tests/react-test-app/index.android.js | 113 ++++----- tests/react-test-app/index.android.js.old | 86 +++++++ tests/react-test-app/package.json | 6 +- 108 files changed, 446 insertions(+), 524 deletions(-) create mode 100644 react-native/android/app/build.gradle rename {tests/react-test-app => react-native}/android/app/gradle.properties (100%) rename {tests/react-test-app/android/Demo => react-native}/android/app/proguard-rules.pro (100%) rename {tests/react-test-app/android/Demo => react-native}/android/app/react.gradle (77%) rename {tests/react-test-app => react-native}/android/app/release.gradle (100%) rename {tests/react-test-app/android/Demo => react-native}/android/app/src/main/AndroidManifest.xml (69%) rename {tests/react-test-app => react-native}/android/app/src/main/java/com/reacttests/API.java (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/Android.mk (90%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/Application.mk (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/fb/Android.mk (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/fb/Countable.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/fb/ProgramLocation.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/fb/RefPtr.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/fb/StaticInitialized.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/fb/ThreadLocal.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/fb/assert.cpp (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/fb/include/fb/assert.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/fb/include/fb/log.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/fb/log.cpp (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/fb/noncopyable.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/fb/nonmovable.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/ALog.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/Android.mk (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/Countable.cpp (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/Countable.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/Doxyfile (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/Environment.cpp (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/Environment.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/GlobalReference.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/LocalReference.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/LocalString.cpp (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/LocalString.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/OnLoad.cpp (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/Registration.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/WeakReference.cpp (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/WeakReference.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/fbjni.cpp (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/fbjni.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/fbjni/Common.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/fbjni/CoreClasses-inl.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/fbjni/CoreClasses.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/fbjni/Exceptions.cpp (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/fbjni/Exceptions.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/fbjni/Hybrid.cpp (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/fbjni/Hybrid.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/fbjni/Meta-inl.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/fbjni/Meta.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/fbjni/ReferenceAllocators-inl.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/fbjni/ReferenceAllocators.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/fbjni/References-inl.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/fbjni/References.cpp (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/fbjni/References.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/fbjni/Registration-inl.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/fbjni/Registration.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/fbjni/TypeTraits.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/jni_helpers.cpp (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/first-party/jni/jni_helpers.h (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/realm-react-android.c (100%) create mode 120000 react-native/android/app/src/main/jni/src rename {tests/react-test-app => react-native}/android/app/src/main/jni/third-party/jsc/Android.mk (100%) rename {tests/react-test-app => react-native}/android/app/src/main/jni/third-party/realm-core/Android.mk (100%) create mode 120000 react-native/android/app/src/main/jni/vendor rename {tests/react-test-app/android/Demo => react-native}/android/build.gradle (77%) rename {tests/react-test-app/android/Demo => react-native}/android/gradle.properties (97%) rename {tests/react-test-app/android/Demo => react-native}/android/gradle/wrapper/gradle-wrapper.jar (100%) rename {tests/react-test-app/android/Demo => react-native}/android/gradle/wrapper/gradle-wrapper.properties (100%) rename {tests/react-test-app/android/Demo => react-native}/android/gradlew (100%) rename {tests/react-test-app/android/Demo => react-native}/android/gradlew.bat (100%) create mode 100644 react-native/android/local.properties create mode 100644 react-native/android/settings.gradle rename tests/{react-test-app/android => }/Demo/.flowconfig (100%) rename tests/{react-test-app/android => }/Demo/.gitignore (100%) rename tests/{react-test-app/android => }/Demo/.watchmanconfig (100%) rename tests/{react-test-app/android => }/Demo/index.ios.js (100%) rename tests/{react-test-app/android => }/Demo/ios/Demo.xcodeproj/project.pbxproj (100%) rename tests/{react-test-app/android => }/Demo/ios/Demo.xcodeproj/xcshareddata/xcschemes/Demo.xcscheme (100%) rename tests/{react-test-app/android => }/Demo/ios/Demo/AppDelegate.h (100%) rename tests/{react-test-app/android => }/Demo/ios/Demo/AppDelegate.m (100%) rename tests/{react-test-app/android => }/Demo/ios/Demo/Base.lproj/LaunchScreen.xib (100%) rename tests/{react-test-app/android => }/Demo/ios/Demo/Images.xcassets/AppIcon.appiconset/Contents.json (100%) rename tests/{react-test-app/android => }/Demo/ios/Demo/Info.plist (100%) rename tests/{react-test-app/android => }/Demo/ios/Demo/main.m (100%) rename tests/{react-test-app/android => }/Demo/ios/DemoTests/DemoTests.m (100%) rename tests/{react-test-app/android => }/Demo/ios/DemoTests/Info.plist (100%) rename tests/{react-test-app/android => }/Demo/package.json (100%) delete mode 100644 tests/react-test-app/android/Demo/android/app/build.gradle delete mode 100644 tests/react-test-app/android/Demo/android/app/src/main/res/mipmap-hdpi/ic_launcher.png delete mode 100644 tests/react-test-app/android/Demo/android/app/src/main/res/mipmap-mdpi/ic_launcher.png delete mode 100644 tests/react-test-app/android/Demo/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png delete mode 100644 tests/react-test-app/android/Demo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png delete mode 100644 tests/react-test-app/android/Demo/android/app/src/main/res/values/strings.xml delete mode 100644 tests/react-test-app/android/Demo/android/app/src/main/res/values/styles.xml delete mode 100644 tests/react-test-app/android/Demo/android/settings.gradle delete mode 100644 tests/react-test-app/android/Demo/index.android.js rename tests/react-test-app/android/{Demo/android => }/app/src/main/java/com/demo/MainActivity.java (100%) rename tests/react-test-app/android/{Demo/android => }/app/src/main/java/com/demo/module/JniToastModule.java (100%) delete mode 100644 tests/react-test-app/android/app/src/main/java/com/reacttests/MainActivity.java delete mode 120000 tests/react-test-app/android/app/src/main/jni/src create mode 100644 tests/react-test-app/index.android.js.old diff --git a/react-native/android/app/build.gradle b/react-native/android/app/build.gradle new file mode 100644 index 00000000..d1032555 --- /dev/null +++ b/react-native/android/app/build.gradle @@ -0,0 +1,195 @@ +// Copyright 2015-present Facebook. All Rights Reserved. + +apply plugin: 'com.android.library' +apply plugin: 'maven' + +apply plugin: 'de.undercouch.download' + +import de.undercouch.gradle.tasks.download.Download +import org.apache.tools.ant.taskdefs.condition.Os +import org.apache.tools.ant.filters.ReplaceTokens + +// We download various C++ open-source dependencies into downloads. +// We then copy both the downloaded code and our custom makefiles and headers into third-party-ndk. +// After that we build native code from src/main/jni with module path pointing at third-party-ndk. + +def downloadsDir = new File("$buildDir/downloads") +def thirdPartyNdkDir = new File("$buildDir/third-party-ndk") + +task createNativeDepsDirectories { + downloadsDir.mkdirs() + thirdPartyNdkDir.mkdirs() +} + +task downloadRealmCore(type: Download) { + src 'http://static.realm.io/downloads/core/realm-core-android-0.94.4.tar.gz' + onlyIfNewer true + overwrite false + dest new File(downloadsDir, 'realm-core-android-0.94.4.tar.gz') +} + +task prepareRealmCore(type:Copy) { + from tarTree(downloadRealmCore.dest) + from 'src/main/jni/third-party/realm-core/Android.mk' + into "$thirdPartyNdkDir/realm-core" +} + +task downloadJSCHeaders(type: Download) { + def jscAPIBaseURL = 'https://svn.webkit.org/repository/webkit/!svn/bc/174650/trunk/Source/JavaScriptCore/API/' + def jscHeaderFiles = ['JSBase.h', 'JSContextRef.h', 'JSObjectRef.h', 'JSRetainPtr.h', 'JSStringRef.h', 'JSValueRef.h', 'WebKitAvailability.h', 'JavaScriptCore.h', 'JavaScript.h', 'JSStringRefCF.h'] + def output = new File(downloadsDir, 'jsc') + output.mkdirs() + src(jscHeaderFiles.collect { headerName -> "$jscAPIBaseURL$headerName" }) + onlyIfNewer true + overwrite false + dest output +} + +// Create Android.mk library module based on so files from mvn + include headers fetched from webkit.org +task prepareJSC(dependsOn: downloadJSCHeaders) << { + copy { + from zipTree(configurations.compile.fileCollection { dep -> dep.name == 'android-jsc' }.singleFile) + from {downloadJSCHeaders.dest} + from 'src/main/jni/third-party/jsc/Android.mk' + include 'jni/**/*.so', '*.h', 'Android.mk' + filesMatching('*.h', { fname -> fname.path = "JavaScriptCore/${fname.path}"}) + into "$thirdPartyNdkDir/jsc"; + } +} + +def getNdkBuildName() { + if (Os.isFamily(Os.FAMILY_WINDOWS)) { + return "ndk-build.cmd" + } else { + return "ndk-build" + } +} + +def findNdkBuildFullPath() { + // we allow to provide full path to ndk-build tool + if (hasProperty('ndk.command')) { + return property('ndk.command') + } + // or just a path to the containing directory + if (hasProperty('ndk.path')) { + def ndkDir = property('ndk.path') + return new File(ndkDir, getNdkBuildName()).getAbsolutePath() + } + if (System.getenv('ANDROID_NDK') != null) { + def ndkDir = System.getenv('ANDROID_NDK') + return new File(ndkDir, getNdkBuildName()).getAbsolutePath() + } + def ndkDir = android.hasProperty('plugin') ? android.plugin.ndkFolder : + plugins.getPlugin('com.android.library').sdkHandler.getNdkFolder() + if (ndkDir) { + return new File(ndkDir, getNdkBuildName()).getAbsolutePath() + } + return null +} + +def getNdkBuildFullPath() { + def ndkBuildFullPath = findNdkBuildFullPath() + if (ndkBuildFullPath == null) { + throw new GradleScriptException( + "ndk-build binary cannot be found, check if you've set " + + "\$ANDROID_NDK environment variable correctly or if ndk.dir is " + + "setup in local.properties", + null) + } + if (!new File(ndkBuildFullPath).canExecute()) { + throw new GradleScriptException( + "ndk-build binary " + ndkBuildFullPath + " doesn't exist or isn't executable.\n" + + "Check that the \$ANDROID_NDK environment variable, or ndk.dir in local.proerties, is set correctly.\n" + + "(On Windows, make sure you escape backslashes in local.properties or use forward slashes, e.g. C:\\\\ndk or C:/ndk rather than C:\\ndk)", + null) + } + return ndkBuildFullPath +} + +task buildReactNdkLib(dependsOn: [prepareJSC], type: Exec) { + inputs.file('src/main/jni') + outputs.dir("$buildDir/react-ndk/all") + commandLine getNdkBuildFullPath(), + 'NDK_PROJECT_PATH=null', + "NDK_APPLICATION_MK=$projectDir/src/main/jni/Application.mk", + 'NDK_OUT=' + temporaryDir, + "NDK_LIBS_OUT=$buildDir/react-ndk/all", + "THIRD_PARTY_NDK_DIR=$buildDir/third-party-ndk", + '-C', file('src/main/jni').absolutePath, + '-B', + 'NDK_LOG=1', + '--jobs', Runtime.runtime.availableProcessors(), + 'V=1' +} + +task cleanReactNdkLib(type: Exec) { + commandLine getNdkBuildFullPath(), + '-C', file('src/main/jni').absolutePath, + 'clean' +} + +task packageReactNdkLibs(dependsOn: buildReactNdkLib, type: Copy) { + from "$buildDir/react-ndk/all" + exclude '**/libjsc.so' + into "$buildDir/react-ndk/exported" +} + +android { + compileSdkVersion 23 + buildToolsVersion "23.0.1" + + defaultConfig { + minSdkVersion 16 + targetSdkVersion 22 + versionCode 1 + versionName "1.0" + + ndk { + moduleName "reactnativejni" + } + + buildConfigField 'boolean', 'IS_INTERNAL_BUILD', 'false' + } + + sourceSets.main { + jni.srcDirs = [] + jniLibs.srcDir "$buildDir/react-ndk/exported" + res.srcDirs = ['src/main/res/devsupport', 'src/main/res/shell'] + } + + tasks.withType(JavaCompile) { + compileTask -> compileTask.dependsOn packageReactNdkLibs + } + + clean.dependsOn cleanReactNdkLib + + lintOptions { + abortOnError false + } +} + +dependencies { + compile fileTree(dir: 'libs', include: ['*.jar']) + compile 'com.android.support:appcompat-v7:23.0.1' + compile 'com.android.support:recyclerview-v7:23.0.1' + compile 'com.facebook.fresco:fresco:0.8.1' + compile 'com.facebook.fresco:imagepipeline-okhttp:0.8.1' + compile 'com.facebook.stetho:stetho:1.2.0' + compile 'com.facebook.stetho:stetho-okhttp:1.2.0' + compile 'com.fasterxml.jackson.core:jackson-core:2.2.3' + compile 'com.google.code.findbugs:jsr305:3.0.0' + compile 'com.squareup.okhttp:okhttp:2.5.0' + compile 'com.squareup.okhttp:okhttp-ws:2.5.0' + compile 'com.squareup.okio:okio:1.6.0' + compile 'org.webkit:android-jsc:r174650' + + testCompile "junit:junit:${JUNIT_VERSION}" + testCompile "org.powermock:powermock-api-mockito:${POWERMOCK_VERSION}" + testCompile "org.powermock:powermock-module-junit4-rule:${POWERMOCK_VERSION}" + testCompile "org.powermock:powermock-classloading-xstream:${POWERMOCK_VERSION}" + testCompile "org.mockito:mockito-core:${MOCKITO_CORE_VERSION}" + testCompile "org.easytesting:fest-assert-core:${FEST_ASSERT_CORE_VERSION}" + testCompile("org.robolectric:robolectric:${ROBOLECTRIC_VERSION}") +} + +apply from: 'release.gradle' diff --git a/tests/react-test-app/android/app/gradle.properties b/react-native/android/app/gradle.properties similarity index 100% rename from tests/react-test-app/android/app/gradle.properties rename to react-native/android/app/gradle.properties diff --git a/tests/react-test-app/android/Demo/android/app/proguard-rules.pro b/react-native/android/app/proguard-rules.pro similarity index 100% rename from tests/react-test-app/android/Demo/android/app/proguard-rules.pro rename to react-native/android/app/proguard-rules.pro diff --git a/tests/react-test-app/android/Demo/android/app/react.gradle b/react-native/android/app/react.gradle similarity index 77% rename from tests/react-test-app/android/Demo/android/app/react.gradle rename to react-native/android/app/react.gradle index 1e08b00f..dc18bb9a 100644 --- a/tests/react-test-app/android/Demo/android/app/react.gradle +++ b/react-native/android/app/react.gradle @@ -1,5 +1,3 @@ -import org.apache.tools.ant.taskdefs.condition.Os - def config = project.hasProperty("react") ? project.react : []; def bundleAssetName = config.bundleAssetName ?: "index.android.bundle" @@ -38,13 +36,8 @@ task bundleDebugJsAndAssets(type: Exec) { // set up the call to the react-native cli workingDir reactRoot - if (Os.isFamily(Os.FAMILY_WINDOWS)) { - commandLine "cmd", "/c", "react-native", "bundle", "--platform", "android", "--dev", "true", "--entry-file", + commandLine "react-native", "bundle", "--platform", "android", "--dev", "true", "--entry-file", entryFile, "--bundle-output", jsBundleFileDebug, "--assets-dest", resourcesDirDebug - } else { - commandLine "react-native", "bundle", "--platform", "android", "--dev", "true", "--entry-file", - entryFile, "--bundle-output", jsBundleFileDebug, "--assets-dest", resourcesDirDebug - } enabled config.bundleInDebug ?: false } @@ -63,13 +56,8 @@ task bundleReleaseJsAndAssets(type: Exec) { // set up the call to the react-native cli workingDir reactRoot - if (Os.isFamily(Os.FAMILY_WINDOWS)) { - commandLine "cmd","/c", "react-native", "bundle", "--platform", "android", "--dev", "false", "--entry-file", + commandLine "react-native", "bundle", "--platform", "android", "--dev", "false", "--entry-file", entryFile, "--bundle-output", jsBundleFileRelease, "--assets-dest", resourcesDirRelease - } else { - commandLine "react-native", "bundle", "--platform", "android", "--dev", "false", "--entry-file", - entryFile, "--bundle-output", jsBundleFileRelease, "--assets-dest", resourcesDirRelease - } enabled config.bundleInRelease ?: true } diff --git a/tests/react-test-app/android/app/release.gradle b/react-native/android/app/release.gradle similarity index 100% rename from tests/react-test-app/android/app/release.gradle rename to react-native/android/app/release.gradle diff --git a/tests/react-test-app/android/Demo/android/app/src/main/AndroidManifest.xml b/react-native/android/app/src/main/AndroidManifest.xml similarity index 69% rename from tests/react-test-app/android/Demo/android/app/src/main/AndroidManifest.xml rename to react-native/android/app/src/main/AndroidManifest.xml index 0e125e42..3f4f9d4e 100644 --- a/tests/react-test-app/android/Demo/android/app/src/main/AndroidManifest.xml +++ b/react-native/android/app/src/main/AndroidManifest.xml @@ -1,5 +1,5 @@ - + + + + + + + diff --git a/tests/react-test-app/android/app/src/main/java/com/reacttests/API.java b/react-native/android/app/src/main/java/com/reacttests/API.java similarity index 100% rename from tests/react-test-app/android/app/src/main/java/com/reacttests/API.java rename to react-native/android/app/src/main/java/com/reacttests/API.java diff --git a/tests/react-test-app/android/app/src/main/jni/Android.mk b/react-native/android/app/src/main/jni/Android.mk similarity index 90% rename from tests/react-test-app/android/app/src/main/jni/Android.mk rename to react-native/android/app/src/main/jni/Android.mk index 12425d4c..f7e16f40 100644 --- a/tests/react-test-app/android/app/src/main/jni/Android.mk +++ b/react-native/android/app/src/main/jni/Android.mk @@ -30,12 +30,12 @@ LOCAL_SRC_FILES := \ src/object-store/parser/parser.cpp \ src/object-store/parser/query_builder.cpp \ src/object-store/impl/transact_log_handler.cpp \ - ../../../../../../../vendor/base64.cpp + vendor/base64.cpp 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 += vendor +LOCAL_C_INCLUDES += vendor/PEGTL LOCAL_C_INCLUDES += core/include CXX11_FLAGS := -std=c++14 diff --git a/tests/react-test-app/android/app/src/main/jni/Application.mk b/react-native/android/app/src/main/jni/Application.mk similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/Application.mk rename to react-native/android/app/src/main/jni/Application.mk diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/fb/Android.mk b/react-native/android/app/src/main/jni/first-party/fb/Android.mk similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/fb/Android.mk rename to react-native/android/app/src/main/jni/first-party/fb/Android.mk diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/fb/Countable.h b/react-native/android/app/src/main/jni/first-party/fb/Countable.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/fb/Countable.h rename to react-native/android/app/src/main/jni/first-party/fb/Countable.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/fb/ProgramLocation.h b/react-native/android/app/src/main/jni/first-party/fb/ProgramLocation.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/fb/ProgramLocation.h rename to react-native/android/app/src/main/jni/first-party/fb/ProgramLocation.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/fb/RefPtr.h b/react-native/android/app/src/main/jni/first-party/fb/RefPtr.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/fb/RefPtr.h rename to react-native/android/app/src/main/jni/first-party/fb/RefPtr.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/fb/StaticInitialized.h b/react-native/android/app/src/main/jni/first-party/fb/StaticInitialized.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/fb/StaticInitialized.h rename to react-native/android/app/src/main/jni/first-party/fb/StaticInitialized.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/fb/ThreadLocal.h b/react-native/android/app/src/main/jni/first-party/fb/ThreadLocal.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/fb/ThreadLocal.h rename to react-native/android/app/src/main/jni/first-party/fb/ThreadLocal.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/fb/assert.cpp b/react-native/android/app/src/main/jni/first-party/fb/assert.cpp similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/fb/assert.cpp rename to react-native/android/app/src/main/jni/first-party/fb/assert.cpp diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/fb/include/fb/assert.h b/react-native/android/app/src/main/jni/first-party/fb/include/fb/assert.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/fb/include/fb/assert.h rename to react-native/android/app/src/main/jni/first-party/fb/include/fb/assert.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/fb/include/fb/log.h b/react-native/android/app/src/main/jni/first-party/fb/include/fb/log.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/fb/include/fb/log.h rename to react-native/android/app/src/main/jni/first-party/fb/include/fb/log.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/fb/log.cpp b/react-native/android/app/src/main/jni/first-party/fb/log.cpp similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/fb/log.cpp rename to react-native/android/app/src/main/jni/first-party/fb/log.cpp diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/fb/noncopyable.h b/react-native/android/app/src/main/jni/first-party/fb/noncopyable.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/fb/noncopyable.h rename to react-native/android/app/src/main/jni/first-party/fb/noncopyable.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/fb/nonmovable.h b/react-native/android/app/src/main/jni/first-party/fb/nonmovable.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/fb/nonmovable.h rename to react-native/android/app/src/main/jni/first-party/fb/nonmovable.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/ALog.h b/react-native/android/app/src/main/jni/first-party/jni/ALog.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/ALog.h rename to react-native/android/app/src/main/jni/first-party/jni/ALog.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/Android.mk b/react-native/android/app/src/main/jni/first-party/jni/Android.mk similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/Android.mk rename to react-native/android/app/src/main/jni/first-party/jni/Android.mk diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/Countable.cpp b/react-native/android/app/src/main/jni/first-party/jni/Countable.cpp similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/Countable.cpp rename to react-native/android/app/src/main/jni/first-party/jni/Countable.cpp diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/Countable.h b/react-native/android/app/src/main/jni/first-party/jni/Countable.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/Countable.h rename to react-native/android/app/src/main/jni/first-party/jni/Countable.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/Doxyfile b/react-native/android/app/src/main/jni/first-party/jni/Doxyfile similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/Doxyfile rename to react-native/android/app/src/main/jni/first-party/jni/Doxyfile diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/Environment.cpp b/react-native/android/app/src/main/jni/first-party/jni/Environment.cpp similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/Environment.cpp rename to react-native/android/app/src/main/jni/first-party/jni/Environment.cpp diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/Environment.h b/react-native/android/app/src/main/jni/first-party/jni/Environment.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/Environment.h rename to react-native/android/app/src/main/jni/first-party/jni/Environment.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/GlobalReference.h b/react-native/android/app/src/main/jni/first-party/jni/GlobalReference.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/GlobalReference.h rename to react-native/android/app/src/main/jni/first-party/jni/GlobalReference.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/LocalReference.h b/react-native/android/app/src/main/jni/first-party/jni/LocalReference.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/LocalReference.h rename to react-native/android/app/src/main/jni/first-party/jni/LocalReference.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/LocalString.cpp b/react-native/android/app/src/main/jni/first-party/jni/LocalString.cpp similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/LocalString.cpp rename to react-native/android/app/src/main/jni/first-party/jni/LocalString.cpp diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/LocalString.h b/react-native/android/app/src/main/jni/first-party/jni/LocalString.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/LocalString.h rename to react-native/android/app/src/main/jni/first-party/jni/LocalString.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/OnLoad.cpp b/react-native/android/app/src/main/jni/first-party/jni/OnLoad.cpp similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/OnLoad.cpp rename to react-native/android/app/src/main/jni/first-party/jni/OnLoad.cpp diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/Registration.h b/react-native/android/app/src/main/jni/first-party/jni/Registration.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/Registration.h rename to react-native/android/app/src/main/jni/first-party/jni/Registration.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/WeakReference.cpp b/react-native/android/app/src/main/jni/first-party/jni/WeakReference.cpp similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/WeakReference.cpp rename to react-native/android/app/src/main/jni/first-party/jni/WeakReference.cpp diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/WeakReference.h b/react-native/android/app/src/main/jni/first-party/jni/WeakReference.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/WeakReference.h rename to react-native/android/app/src/main/jni/first-party/jni/WeakReference.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni.cpp b/react-native/android/app/src/main/jni/first-party/jni/fbjni.cpp similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni.cpp rename to react-native/android/app/src/main/jni/first-party/jni/fbjni.cpp diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni.h b/react-native/android/app/src/main/jni/first-party/jni/fbjni.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni.h rename to react-native/android/app/src/main/jni/first-party/jni/fbjni.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/Common.h b/react-native/android/app/src/main/jni/first-party/jni/fbjni/Common.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/Common.h rename to react-native/android/app/src/main/jni/first-party/jni/fbjni/Common.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/CoreClasses-inl.h b/react-native/android/app/src/main/jni/first-party/jni/fbjni/CoreClasses-inl.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/CoreClasses-inl.h rename to react-native/android/app/src/main/jni/first-party/jni/fbjni/CoreClasses-inl.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/CoreClasses.h b/react-native/android/app/src/main/jni/first-party/jni/fbjni/CoreClasses.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/CoreClasses.h rename to react-native/android/app/src/main/jni/first-party/jni/fbjni/CoreClasses.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/Exceptions.cpp b/react-native/android/app/src/main/jni/first-party/jni/fbjni/Exceptions.cpp similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/Exceptions.cpp rename to react-native/android/app/src/main/jni/first-party/jni/fbjni/Exceptions.cpp diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/Exceptions.h b/react-native/android/app/src/main/jni/first-party/jni/fbjni/Exceptions.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/Exceptions.h rename to react-native/android/app/src/main/jni/first-party/jni/fbjni/Exceptions.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/Hybrid.cpp b/react-native/android/app/src/main/jni/first-party/jni/fbjni/Hybrid.cpp similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/Hybrid.cpp rename to react-native/android/app/src/main/jni/first-party/jni/fbjni/Hybrid.cpp diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/Hybrid.h b/react-native/android/app/src/main/jni/first-party/jni/fbjni/Hybrid.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/Hybrid.h rename to react-native/android/app/src/main/jni/first-party/jni/fbjni/Hybrid.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/Meta-inl.h b/react-native/android/app/src/main/jni/first-party/jni/fbjni/Meta-inl.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/Meta-inl.h rename to react-native/android/app/src/main/jni/first-party/jni/fbjni/Meta-inl.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/Meta.h b/react-native/android/app/src/main/jni/first-party/jni/fbjni/Meta.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/Meta.h rename to react-native/android/app/src/main/jni/first-party/jni/fbjni/Meta.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/ReferenceAllocators-inl.h b/react-native/android/app/src/main/jni/first-party/jni/fbjni/ReferenceAllocators-inl.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/ReferenceAllocators-inl.h rename to react-native/android/app/src/main/jni/first-party/jni/fbjni/ReferenceAllocators-inl.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/ReferenceAllocators.h b/react-native/android/app/src/main/jni/first-party/jni/fbjni/ReferenceAllocators.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/ReferenceAllocators.h rename to react-native/android/app/src/main/jni/first-party/jni/fbjni/ReferenceAllocators.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/References-inl.h b/react-native/android/app/src/main/jni/first-party/jni/fbjni/References-inl.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/References-inl.h rename to react-native/android/app/src/main/jni/first-party/jni/fbjni/References-inl.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/References.cpp b/react-native/android/app/src/main/jni/first-party/jni/fbjni/References.cpp similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/References.cpp rename to react-native/android/app/src/main/jni/first-party/jni/fbjni/References.cpp diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/References.h b/react-native/android/app/src/main/jni/first-party/jni/fbjni/References.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/References.h rename to react-native/android/app/src/main/jni/first-party/jni/fbjni/References.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/Registration-inl.h b/react-native/android/app/src/main/jni/first-party/jni/fbjni/Registration-inl.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/Registration-inl.h rename to react-native/android/app/src/main/jni/first-party/jni/fbjni/Registration-inl.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/Registration.h b/react-native/android/app/src/main/jni/first-party/jni/fbjni/Registration.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/Registration.h rename to react-native/android/app/src/main/jni/first-party/jni/fbjni/Registration.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/TypeTraits.h b/react-native/android/app/src/main/jni/first-party/jni/fbjni/TypeTraits.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/fbjni/TypeTraits.h rename to react-native/android/app/src/main/jni/first-party/jni/fbjni/TypeTraits.h diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/jni_helpers.cpp b/react-native/android/app/src/main/jni/first-party/jni/jni_helpers.cpp similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/jni_helpers.cpp rename to react-native/android/app/src/main/jni/first-party/jni/jni_helpers.cpp diff --git a/tests/react-test-app/android/app/src/main/jni/first-party/jni/jni_helpers.h b/react-native/android/app/src/main/jni/first-party/jni/jni_helpers.h similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/first-party/jni/jni_helpers.h rename to react-native/android/app/src/main/jni/first-party/jni/jni_helpers.h diff --git a/tests/react-test-app/android/app/src/main/jni/realm-react-android.c b/react-native/android/app/src/main/jni/realm-react-android.c similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/realm-react-android.c rename to react-native/android/app/src/main/jni/realm-react-android.c diff --git a/react-native/android/app/src/main/jni/src b/react-native/android/app/src/main/jni/src new file mode 120000 index 00000000..63fbb1dd --- /dev/null +++ b/react-native/android/app/src/main/jni/src @@ -0,0 +1 @@ +../../../../../../src \ No newline at end of file diff --git a/tests/react-test-app/android/app/src/main/jni/third-party/jsc/Android.mk b/react-native/android/app/src/main/jni/third-party/jsc/Android.mk similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/third-party/jsc/Android.mk rename to react-native/android/app/src/main/jni/third-party/jsc/Android.mk diff --git a/tests/react-test-app/android/app/src/main/jni/third-party/realm-core/Android.mk b/react-native/android/app/src/main/jni/third-party/realm-core/Android.mk similarity index 100% rename from tests/react-test-app/android/app/src/main/jni/third-party/realm-core/Android.mk rename to react-native/android/app/src/main/jni/third-party/realm-core/Android.mk diff --git a/react-native/android/app/src/main/jni/vendor b/react-native/android/app/src/main/jni/vendor new file mode 120000 index 00000000..ce7b6d9c --- /dev/null +++ b/react-native/android/app/src/main/jni/vendor @@ -0,0 +1 @@ +../../../../../../vendor \ No newline at end of file diff --git a/tests/react-test-app/android/Demo/android/build.gradle b/react-native/android/build.gradle similarity index 77% rename from tests/react-test-app/android/Demo/android/build.gradle rename to react-native/android/build.gradle index bf560221..3938b0a1 100644 --- a/tests/react-test-app/android/Demo/android/build.gradle +++ b/react-native/android/build.gradle @@ -6,6 +6,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:1.3.1' + classpath 'de.undercouch:gradle-download-task:1.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files @@ -16,11 +17,5 @@ allprojects { repositories { mavenLocal() jcenter() - jcenter { - url "http://dl.bintray.com/mkonicek/maven" - } - flatDir{ - dirs 'lib' - } } } diff --git a/tests/react-test-app/android/Demo/android/gradle.properties b/react-native/android/gradle.properties similarity index 97% rename from tests/react-test-app/android/Demo/android/gradle.properties rename to react-native/android/gradle.properties index 1fd964e9..2f4d15ce 100644 --- a/tests/react-test-app/android/Demo/android/gradle.properties +++ b/react-native/android/gradle.properties @@ -18,3 +18,5 @@ # org.gradle.parallel=true android.useDeprecatedNdk=true +org.gradle.daemon=true + diff --git a/tests/react-test-app/android/Demo/android/gradle/wrapper/gradle-wrapper.jar b/react-native/android/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from tests/react-test-app/android/Demo/android/gradle/wrapper/gradle-wrapper.jar rename to react-native/android/gradle/wrapper/gradle-wrapper.jar diff --git a/tests/react-test-app/android/Demo/android/gradle/wrapper/gradle-wrapper.properties b/react-native/android/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from tests/react-test-app/android/Demo/android/gradle/wrapper/gradle-wrapper.properties rename to react-native/android/gradle/wrapper/gradle-wrapper.properties diff --git a/tests/react-test-app/android/Demo/android/gradlew b/react-native/android/gradlew similarity index 100% rename from tests/react-test-app/android/Demo/android/gradlew rename to react-native/android/gradlew diff --git a/tests/react-test-app/android/Demo/android/gradlew.bat b/react-native/android/gradlew.bat similarity index 100% rename from tests/react-test-app/android/Demo/android/gradlew.bat rename to react-native/android/gradlew.bat diff --git a/react-native/android/local.properties b/react-native/android/local.properties new file mode 100644 index 00000000..1e77a9d1 --- /dev/null +++ b/react-native/android/local.properties @@ -0,0 +1,12 @@ +## This file is automatically generated by Android Studio. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must *NOT* be checked into Version Control Systems, +# as it contains information specific to your local configuration. +# +# Location of the SDK. This is only used by Gradle. +# For customization when using a Version Control System, please read the +# header note. +#Mon Nov 30 14:31:09 PST 2015 +ndk.dir=/Users/ari/Library/Android/sdk/ndk-bundle +sdk.dir=/Users/ari/Library/Android/sdk diff --git a/react-native/android/settings.gradle b/react-native/android/settings.gradle new file mode 100644 index 00000000..96e526a0 --- /dev/null +++ b/react-native/android/settings.gradle @@ -0,0 +1,3 @@ +rootProject.name = 'ReactTests' + +include ':app' diff --git a/tests/react-test-app/android/Demo/.flowconfig b/tests/Demo/.flowconfig similarity index 100% rename from tests/react-test-app/android/Demo/.flowconfig rename to tests/Demo/.flowconfig diff --git a/tests/react-test-app/android/Demo/.gitignore b/tests/Demo/.gitignore similarity index 100% rename from tests/react-test-app/android/Demo/.gitignore rename to tests/Demo/.gitignore diff --git a/tests/react-test-app/android/Demo/.watchmanconfig b/tests/Demo/.watchmanconfig similarity index 100% rename from tests/react-test-app/android/Demo/.watchmanconfig rename to tests/Demo/.watchmanconfig diff --git a/tests/react-test-app/android/Demo/index.ios.js b/tests/Demo/index.ios.js similarity index 100% rename from tests/react-test-app/android/Demo/index.ios.js rename to tests/Demo/index.ios.js diff --git a/tests/react-test-app/android/Demo/ios/Demo.xcodeproj/project.pbxproj b/tests/Demo/ios/Demo.xcodeproj/project.pbxproj similarity index 100% rename from tests/react-test-app/android/Demo/ios/Demo.xcodeproj/project.pbxproj rename to tests/Demo/ios/Demo.xcodeproj/project.pbxproj diff --git a/tests/react-test-app/android/Demo/ios/Demo.xcodeproj/xcshareddata/xcschemes/Demo.xcscheme b/tests/Demo/ios/Demo.xcodeproj/xcshareddata/xcschemes/Demo.xcscheme similarity index 100% rename from tests/react-test-app/android/Demo/ios/Demo.xcodeproj/xcshareddata/xcschemes/Demo.xcscheme rename to tests/Demo/ios/Demo.xcodeproj/xcshareddata/xcschemes/Demo.xcscheme diff --git a/tests/react-test-app/android/Demo/ios/Demo/AppDelegate.h b/tests/Demo/ios/Demo/AppDelegate.h similarity index 100% rename from tests/react-test-app/android/Demo/ios/Demo/AppDelegate.h rename to tests/Demo/ios/Demo/AppDelegate.h diff --git a/tests/react-test-app/android/Demo/ios/Demo/AppDelegate.m b/tests/Demo/ios/Demo/AppDelegate.m similarity index 100% rename from tests/react-test-app/android/Demo/ios/Demo/AppDelegate.m rename to tests/Demo/ios/Demo/AppDelegate.m diff --git a/tests/react-test-app/android/Demo/ios/Demo/Base.lproj/LaunchScreen.xib b/tests/Demo/ios/Demo/Base.lproj/LaunchScreen.xib similarity index 100% rename from tests/react-test-app/android/Demo/ios/Demo/Base.lproj/LaunchScreen.xib rename to tests/Demo/ios/Demo/Base.lproj/LaunchScreen.xib diff --git a/tests/react-test-app/android/Demo/ios/Demo/Images.xcassets/AppIcon.appiconset/Contents.json b/tests/Demo/ios/Demo/Images.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from tests/react-test-app/android/Demo/ios/Demo/Images.xcassets/AppIcon.appiconset/Contents.json rename to tests/Demo/ios/Demo/Images.xcassets/AppIcon.appiconset/Contents.json diff --git a/tests/react-test-app/android/Demo/ios/Demo/Info.plist b/tests/Demo/ios/Demo/Info.plist similarity index 100% rename from tests/react-test-app/android/Demo/ios/Demo/Info.plist rename to tests/Demo/ios/Demo/Info.plist diff --git a/tests/react-test-app/android/Demo/ios/Demo/main.m b/tests/Demo/ios/Demo/main.m similarity index 100% rename from tests/react-test-app/android/Demo/ios/Demo/main.m rename to tests/Demo/ios/Demo/main.m diff --git a/tests/react-test-app/android/Demo/ios/DemoTests/DemoTests.m b/tests/Demo/ios/DemoTests/DemoTests.m similarity index 100% rename from tests/react-test-app/android/Demo/ios/DemoTests/DemoTests.m rename to tests/Demo/ios/DemoTests/DemoTests.m diff --git a/tests/react-test-app/android/Demo/ios/DemoTests/Info.plist b/tests/Demo/ios/DemoTests/Info.plist similarity index 100% rename from tests/react-test-app/android/Demo/ios/DemoTests/Info.plist rename to tests/Demo/ios/DemoTests/Info.plist diff --git a/tests/react-test-app/android/Demo/package.json b/tests/Demo/package.json similarity index 100% rename from tests/react-test-app/android/Demo/package.json rename to tests/Demo/package.json diff --git a/tests/react-test-app/android/Demo/android/app/build.gradle b/tests/react-test-app/android/Demo/android/app/build.gradle deleted file mode 100644 index ece1ff75..00000000 --- a/tests/react-test-app/android/Demo/android/app/build.gradle +++ /dev/null @@ -1,79 +0,0 @@ -apply plugin: "com.android.application" - -/** - * The react.gradle file registers two tasks: bundleDebugJsAndAssets and bundleReleaseJsAndAssets. - * These basically call `react-native bundle` with the correct arguments during the Android build - * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the - * bundle directly from the development server. Below you can see all the possible configurations - * and their defaults. If you decide to add a configuration block, make sure to add it before the - * `apply from: "react.gradle"` line. - * - * project.ext.react = [ - * // the name of the generated asset file containing your JS bundle - * bundleAssetName: "index.android.bundle", - * - * // the entry file for bundle generation - * entryFile: "index.android.js", - * - * // whether to bundle JS and assets in debug mode - * bundleInDebug: false, - * - * // whether to bundle JS and assets in release mode - * bundleInRelease: true, - * - * // the root of your project, i.e. where "package.json" lives - * root: "../../", - * - * // where to put the JS bundle asset in debug mode - * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", - * - * // where to put the JS bundle asset in release mode - * jsBundleDirRelease: "$buildDir/intermediates/assets/release", - * - * // where to put drawable resources / React Native assets, e.g. the ones you use via - * // require('./image.png')), in debug mode - * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", - * - * // where to put drawable resources / React Native assets, e.g. the ones you use via - * // require('./image.png')), in release mode - * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", - * - * // by default the gradle tasks are skipped if none of the JS files or assets change; this means - * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to - * // date; if you have any other folders that you want to ignore for performance reasons (gradle - * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ - * // for example, you might want to remove it from here. - * inputExcludes: ["android/**", "ios/**"] - * ] - */ - -apply from: "react.gradle" - -android { - compileSdkVersion 23 - buildToolsVersion "23.0.1" - - defaultConfig { - applicationId "com.demo" - minSdkVersion 16 - targetSdkVersion 22 - versionCode 1 - versionName "1.0" - ndk { - abiFilters "armeabi-v7a", "x86" - } - } - buildTypes { - release { - minifyEnabled false // Set this to true to enable Proguard - proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" - } - } -} - -dependencies { - compile fileTree(dir: "libs", include: ["*.jar"]) - compile "com.android.support:appcompat-v7:23.0.1" - compile "com.facebook.react:react-native:0.16.+" - compile 'com.reacttests:app-debug@aar' -} diff --git a/tests/react-test-app/android/Demo/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/tests/react-test-app/android/Demo/android/app/src/main/res/mipmap-hdpi/ic_launcher.png deleted file mode 100644 index cde69bcccec65160d92116f20ffce4fce0b5245c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3418 zcmZ{nX*|@A^T0p5j$I+^%FVhdvMbgt%d+mG98ubwNv_tpITppba^GiieBBZGI>I89 zGgm8TA>_)DlEu&W;s3#ZUNiH4&CF{a%siTjzG;eOzQB6{003qKeT?}z_5U*{{kgZ; zdV@U&tqa-&4FGisjMN8o=P}$t-`oTM2oeB5d9mHPgTYJx4jup)+5a;Tke$m708DocFzDL>U$$}s6FGiy_I1?O zHXq`q884|^O4Q*%V#vwxqCz-#8i`Gu)2LeB0{%%VKunOF%9~JcFB9MM>N00M`E~;o zBU%)O5u-D6NF~OQV7TV#JAN;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1&7Du+zF{Dky) z+KN|-mmIT`Thcij!{3=ibyIn830G zN{kI3d`NgUEJ|2If}J!?@w~FV+v?~tlo8ps3Nl`3^kI)WfZ0|ms6U8HEvD9HIDWkz6`T_QSewYZyzkRh)!g~R>!jaR9;K|#82kfE5^;R!~}H4C?q{1AG?O$5kGp)G$f%VML%aPD?{ zG6)*KodSZRXbl8OD=ETxQLJz)KMI7xjArKUNh3@0f|T|75?Yy=pD7056ja0W)O;Td zCEJ=7q?d|$3rZb+8Cvt6mybV-#1B2}Jai^DOjM2<90tpql|M5tmheg){2NyZR}x3w zL6u}F+C-PIzZ56q0x$;mVJXM1V0;F}y9F29ob51f;;+)t&7l30gloMMHPTuod530FC}j^4#qOJV%5!&e!H9#!N&XQvs5{R zD_FOomd-uk@?_JiWP%&nQ_myBlM6so1Ffa1aaL7B`!ZTXPg_S%TUS*>M^8iJRj1*~ e{{%>Z1YfTk|3C04d;8A^0$7;Zm{b|L#{L(;l>}-4 diff --git a/tests/react-test-app/android/Demo/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/tests/react-test-app/android/Demo/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png deleted file mode 100644 index bfa42f0e7b91d006d22352c9ff2f134e504e3c1d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4842 zcmZ{oXE5C1x5t0WvTCfdv7&7fy$d2l*k#q|U5FAbL??P!61}%ovaIM)mL!5G(V|6J zAtDH(OY|Du^}l!K&fFLG%sJ2JIp@rG=9y>Ci)Wq~U2RobsvA@Q0MM$dq4lq5{hy#9 zzgp+B{O(-=?1<7r0l>Q?>N6X%s~lmgrmqD6fjj_!c?AF`S0&6U06Z51fWOuNAe#jM z%pSN#J-Mp}`ICpL=qp~?u~Jj$6(~K_%)9}Bn(;pY0&;M00H9x2N23h=CpR7kr8A9X zU%oh4-E@i!Ac}P+&%vOPQ3warO9l!SCN)ixGW54Jsh!`>*aU)#&Mg7;#O_6xd5%I6 zneGSZL3K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xhdpi/ic_launcher.png b/tests/react-test-app/android/Demo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png deleted file mode 100644 index 324e72cdd7480cb983fa1bcc7ce686e51ef87fe7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7718 zcmZ{JWl)?=u?hpbj?h-6mfK3P*Eck~k0Tzeg5-hkABxtZea0_k$f-mlF z0S@Qqtva`>x}TYzc}9LrO?P#qj+P1@HZ?W?0C;Muih9o&|G$cb@ocx1*PEUJ%~tM} z901hB;rx4#{@jOHs_MN00ADr$2n+#$yJuJ64gh!x0KlF(07#?(0ENrf7G3D`0EUHz zisCaq%dJ9dz%zhdRNuG*01nCjDhiPCl@b8xIMfv7^t~4jVRrSTGYyZUWqY@yW=)V_ z&3sUP1SK9v1f{4lDSN(agrKYULc;#EGDVeU*5b@#MOSY5JBn#QG8wqxQh+mdR638{mo5f>O zLUdZIPSjFk0~F26zDrM3y_#P^P91oWtLlPaZrhnM$NR%qsbHHK#?fN?cX?EvAhY1Sr9A(1;Kw4@87~|;2QP~ z(kKOGvCdB}qr4m#)1DwQFlh^NdBZvNLkld&yg%&GU`+boBMsoj5o?8tVuY^b0?4;E zsxoLxz8?S$y~a~x0{?dqk+6~Dd(EG7px_yH(X&NX&qEtHPUhu*JHD258=5$JS12rQ zcN+7p>R>tbFJ3NzEcRIpS98?}YEYxBIA8}1Y8zH9wq0c{hx+EXY&ZQ!-Hvy03X zLTMo4EZwtKfwb294-cY5XhQRxYJSybphcrNJWW2FY+b?|QB^?$5ZN=JlSs9Og(;8+ z*~-#CeeEOxt~F#aWn8wy-N_ilDDe_o+SwJD>4y?j5Lpj z2&!EX)RNxnadPBAa?fOj5D1C{l1E0X?&G3+ckcVfk`?%2FTsoUf4@~eaS#th=zq7v zMEJR@1T?Pi4;$xiPv`3)9rsrbVUH&b0e2{YTEG%;$GGzKUKEim;R6r>F@Q-}9JR-< zOPpQI>W0Vt6&7d?~$d&}chKTr_rELu} zWY;KTvt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?G&7U6$_-W9@eR6SH%+qLx_Tf&Gu5%pn*mOGU0~kv~^K zhPeqYZMWWoA(Y+4GgQo9nNe6S#MZnyce_na@78ZnpwFenVafZC3N2lc5Jk-@V`{|l zhaF`zAL)+($xq8mFm{7fXtHru+DANoGz-A^1*@lTnE;1?03lz8kAnD{zQU=Pb^3f` zT5-g`z5|%qOa!WTBed-8`#AQ~wb9TrUZKU)H*O7!LtNnEd!r8!Oda)u!Gb5P`9(`b z`lMP6CLh4OzvXC#CR|@uo$EcHAyGr=)LB7)>=s3 zvU;aR#cN3<5&CLMFU@keW^R-Tqyf4fdkOnwI(H$x#@I1D6#dkUo@YW#7MU0@=NV-4 zEh2K?O@+2e{qW^7r?B~QTO)j}>hR$q9*n$8M(4+DOZ00WXFonLlk^;os8*zI>YG#? z9oq$CD~byz>;`--_NMy|iJRALZ#+qV8OXn=AmL^GL&|q1Qw-^*#~;WNNNbk(96Tnw zGjjscNyIyM2CYwiJ2l-}u_7mUGcvM+puPF^F89eIBx27&$|p_NG)fOaafGv|_b9G$;1LzZ-1aIE?*R6kHg}dy%~K(Q5S2O6086 z{lN&8;0>!pq^f*Jlh=J%Rmaoed<=uf@$iKl+bieC83IT!09J&IF)9H)C?d!eW1UQ}BQwxaqQY47DpOk@`zZ zo>#SM@oI^|nrWm~Ol7=r`!Bp9lQNbBCeHcfN&X$kjj0R(@?f$OHHt|fWe6jDrYg3(mdEd$8P2Yzjt9*EM zLE|cp-Tzsdyt(dvLhU8}_IX&I?B=|yoZ!&<`9&H5PtApt=VUIB4l0a1NH v0SQqt3DM`an1p};^>=lX|A*k@Y-MNT^ZzF}9G-1G696?OEyXH%^Pv9$0dR%J diff --git a/tests/react-test-app/android/Demo/android/app/src/main/res/values/strings.xml b/tests/react-test-app/android/Demo/android/app/src/main/res/values/strings.xml deleted file mode 100644 index b2250a86..00000000 --- a/tests/react-test-app/android/Demo/android/app/src/main/res/values/strings.xml +++ /dev/null @@ -1,3 +0,0 @@ - - Demo - diff --git a/tests/react-test-app/android/Demo/android/app/src/main/res/values/styles.xml b/tests/react-test-app/android/Demo/android/app/src/main/res/values/styles.xml deleted file mode 100644 index 319eb0ca..00000000 --- a/tests/react-test-app/android/Demo/android/app/src/main/res/values/styles.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/tests/react-test-app/android/Demo/android/settings.gradle b/tests/react-test-app/android/Demo/android/settings.gradle deleted file mode 100644 index 673b698c..00000000 --- a/tests/react-test-app/android/Demo/android/settings.gradle +++ /dev/null @@ -1,3 +0,0 @@ -rootProject.name = 'Demo' - -include ':app' diff --git a/tests/react-test-app/android/Demo/index.android.js b/tests/react-test-app/android/Demo/index.android.js deleted file mode 100644 index f80186fb..00000000 --- a/tests/react-test-app/android/Demo/index.android.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Sample React Native App - * https://github.com/facebook/react-native - */ -'use strict'; - -var React = require('react-native'); -var { - AppRegistry, - StyleSheet, - Text, - View, - TouchableNativeFeedback, -} = React; - -var JniToastAndroid = require('NativeModules').JniToastAndroid; - -var Demo = React.createClass({ - buttonClicked: function() { - JniToastAndroid.show("Hello Zepp", JniToastAndroid.LONG); - }, - render: function() { - return ( - - - Calling JNI String from Javascript. - - - - Click Me :) - - - - ); - } -}); - -var styles = StyleSheet.create({ - container: { - flex: 1, - justifyContent: 'center', - alignItems: 'center', - backgroundColor: '#F5FCFF', - }, - welcome: { - fontSize: 20, - textAlign: 'center', - margin: 10, - }, - instructions: { - textAlign: 'center', - color: '#333333', - marginBottom: 5, - }, -}); - -AppRegistry.registerComponent('Demo', () => Demo); diff --git a/tests/react-test-app/android/app/build.gradle b/tests/react-test-app/android/app/build.gradle index d1032555..ece1ff75 100644 --- a/tests/react-test-app/android/app/build.gradle +++ b/tests/react-test-app/android/app/build.gradle @@ -1,195 +1,79 @@ -// Copyright 2015-present Facebook. All Rights Reserved. +apply plugin: "com.android.application" -apply plugin: 'com.android.library' -apply plugin: 'maven' +/** + * The react.gradle file registers two tasks: bundleDebugJsAndAssets and bundleReleaseJsAndAssets. + * These basically call `react-native bundle` with the correct arguments during the Android build + * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the + * bundle directly from the development server. Below you can see all the possible configurations + * and their defaults. If you decide to add a configuration block, make sure to add it before the + * `apply from: "react.gradle"` line. + * + * project.ext.react = [ + * // the name of the generated asset file containing your JS bundle + * bundleAssetName: "index.android.bundle", + * + * // the entry file for bundle generation + * entryFile: "index.android.js", + * + * // whether to bundle JS and assets in debug mode + * bundleInDebug: false, + * + * // whether to bundle JS and assets in release mode + * bundleInRelease: true, + * + * // the root of your project, i.e. where "package.json" lives + * root: "../../", + * + * // where to put the JS bundle asset in debug mode + * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", + * + * // where to put the JS bundle asset in release mode + * jsBundleDirRelease: "$buildDir/intermediates/assets/release", + * + * // where to put drawable resources / React Native assets, e.g. the ones you use via + * // require('./image.png')), in debug mode + * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", + * + * // where to put drawable resources / React Native assets, e.g. the ones you use via + * // require('./image.png')), in release mode + * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", + * + * // by default the gradle tasks are skipped if none of the JS files or assets change; this means + * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to + * // date; if you have any other folders that you want to ignore for performance reasons (gradle + * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ + * // for example, you might want to remove it from here. + * inputExcludes: ["android/**", "ios/**"] + * ] + */ -apply plugin: 'de.undercouch.download' - -import de.undercouch.gradle.tasks.download.Download -import org.apache.tools.ant.taskdefs.condition.Os -import org.apache.tools.ant.filters.ReplaceTokens - -// We download various C++ open-source dependencies into downloads. -// We then copy both the downloaded code and our custom makefiles and headers into third-party-ndk. -// After that we build native code from src/main/jni with module path pointing at third-party-ndk. - -def downloadsDir = new File("$buildDir/downloads") -def thirdPartyNdkDir = new File("$buildDir/third-party-ndk") - -task createNativeDepsDirectories { - downloadsDir.mkdirs() - thirdPartyNdkDir.mkdirs() -} - -task downloadRealmCore(type: Download) { - src 'http://static.realm.io/downloads/core/realm-core-android-0.94.4.tar.gz' - onlyIfNewer true - overwrite false - dest new File(downloadsDir, 'realm-core-android-0.94.4.tar.gz') -} - -task prepareRealmCore(type:Copy) { - from tarTree(downloadRealmCore.dest) - from 'src/main/jni/third-party/realm-core/Android.mk' - into "$thirdPartyNdkDir/realm-core" -} - -task downloadJSCHeaders(type: Download) { - def jscAPIBaseURL = 'https://svn.webkit.org/repository/webkit/!svn/bc/174650/trunk/Source/JavaScriptCore/API/' - def jscHeaderFiles = ['JSBase.h', 'JSContextRef.h', 'JSObjectRef.h', 'JSRetainPtr.h', 'JSStringRef.h', 'JSValueRef.h', 'WebKitAvailability.h', 'JavaScriptCore.h', 'JavaScript.h', 'JSStringRefCF.h'] - def output = new File(downloadsDir, 'jsc') - output.mkdirs() - src(jscHeaderFiles.collect { headerName -> "$jscAPIBaseURL$headerName" }) - onlyIfNewer true - overwrite false - dest output -} - -// Create Android.mk library module based on so files from mvn + include headers fetched from webkit.org -task prepareJSC(dependsOn: downloadJSCHeaders) << { - copy { - from zipTree(configurations.compile.fileCollection { dep -> dep.name == 'android-jsc' }.singleFile) - from {downloadJSCHeaders.dest} - from 'src/main/jni/third-party/jsc/Android.mk' - include 'jni/**/*.so', '*.h', 'Android.mk' - filesMatching('*.h', { fname -> fname.path = "JavaScriptCore/${fname.path}"}) - into "$thirdPartyNdkDir/jsc"; - } -} - -def getNdkBuildName() { - if (Os.isFamily(Os.FAMILY_WINDOWS)) { - return "ndk-build.cmd" - } else { - return "ndk-build" - } -} - -def findNdkBuildFullPath() { - // we allow to provide full path to ndk-build tool - if (hasProperty('ndk.command')) { - return property('ndk.command') - } - // or just a path to the containing directory - if (hasProperty('ndk.path')) { - def ndkDir = property('ndk.path') - return new File(ndkDir, getNdkBuildName()).getAbsolutePath() - } - if (System.getenv('ANDROID_NDK') != null) { - def ndkDir = System.getenv('ANDROID_NDK') - return new File(ndkDir, getNdkBuildName()).getAbsolutePath() - } - def ndkDir = android.hasProperty('plugin') ? android.plugin.ndkFolder : - plugins.getPlugin('com.android.library').sdkHandler.getNdkFolder() - if (ndkDir) { - return new File(ndkDir, getNdkBuildName()).getAbsolutePath() - } - return null -} - -def getNdkBuildFullPath() { - def ndkBuildFullPath = findNdkBuildFullPath() - if (ndkBuildFullPath == null) { - throw new GradleScriptException( - "ndk-build binary cannot be found, check if you've set " + - "\$ANDROID_NDK environment variable correctly or if ndk.dir is " + - "setup in local.properties", - null) - } - if (!new File(ndkBuildFullPath).canExecute()) { - throw new GradleScriptException( - "ndk-build binary " + ndkBuildFullPath + " doesn't exist or isn't executable.\n" + - "Check that the \$ANDROID_NDK environment variable, or ndk.dir in local.proerties, is set correctly.\n" + - "(On Windows, make sure you escape backslashes in local.properties or use forward slashes, e.g. C:\\\\ndk or C:/ndk rather than C:\\ndk)", - null) - } - return ndkBuildFullPath -} - -task buildReactNdkLib(dependsOn: [prepareJSC], type: Exec) { - inputs.file('src/main/jni') - outputs.dir("$buildDir/react-ndk/all") - commandLine getNdkBuildFullPath(), - 'NDK_PROJECT_PATH=null', - "NDK_APPLICATION_MK=$projectDir/src/main/jni/Application.mk", - 'NDK_OUT=' + temporaryDir, - "NDK_LIBS_OUT=$buildDir/react-ndk/all", - "THIRD_PARTY_NDK_DIR=$buildDir/third-party-ndk", - '-C', file('src/main/jni').absolutePath, - '-B', - 'NDK_LOG=1', - '--jobs', Runtime.runtime.availableProcessors(), - 'V=1' -} - -task cleanReactNdkLib(type: Exec) { - commandLine getNdkBuildFullPath(), - '-C', file('src/main/jni').absolutePath, - 'clean' -} - -task packageReactNdkLibs(dependsOn: buildReactNdkLib, type: Copy) { - from "$buildDir/react-ndk/all" - exclude '**/libjsc.so' - into "$buildDir/react-ndk/exported" -} +apply from: "react.gradle" android { compileSdkVersion 23 buildToolsVersion "23.0.1" defaultConfig { + applicationId "com.demo" minSdkVersion 16 targetSdkVersion 22 versionCode 1 versionName "1.0" - ndk { - moduleName "reactnativejni" + abiFilters "armeabi-v7a", "x86" } - - buildConfigField 'boolean', 'IS_INTERNAL_BUILD', 'false' } - - sourceSets.main { - jni.srcDirs = [] - jniLibs.srcDir "$buildDir/react-ndk/exported" - res.srcDirs = ['src/main/res/devsupport', 'src/main/res/shell'] - } - - tasks.withType(JavaCompile) { - compileTask -> compileTask.dependsOn packageReactNdkLibs - } - - clean.dependsOn cleanReactNdkLib - - lintOptions { - abortOnError false + buildTypes { + release { + minifyEnabled false // Set this to true to enable Proguard + proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" + } } } dependencies { - compile fileTree(dir: 'libs', include: ['*.jar']) - compile 'com.android.support:appcompat-v7:23.0.1' - compile 'com.android.support:recyclerview-v7:23.0.1' - compile 'com.facebook.fresco:fresco:0.8.1' - compile 'com.facebook.fresco:imagepipeline-okhttp:0.8.1' - compile 'com.facebook.stetho:stetho:1.2.0' - compile 'com.facebook.stetho:stetho-okhttp:1.2.0' - compile 'com.fasterxml.jackson.core:jackson-core:2.2.3' - compile 'com.google.code.findbugs:jsr305:3.0.0' - compile 'com.squareup.okhttp:okhttp:2.5.0' - compile 'com.squareup.okhttp:okhttp-ws:2.5.0' - compile 'com.squareup.okio:okio:1.6.0' - compile 'org.webkit:android-jsc:r174650' - - testCompile "junit:junit:${JUNIT_VERSION}" - testCompile "org.powermock:powermock-api-mockito:${POWERMOCK_VERSION}" - testCompile "org.powermock:powermock-module-junit4-rule:${POWERMOCK_VERSION}" - testCompile "org.powermock:powermock-classloading-xstream:${POWERMOCK_VERSION}" - testCompile "org.mockito:mockito-core:${MOCKITO_CORE_VERSION}" - testCompile "org.easytesting:fest-assert-core:${FEST_ASSERT_CORE_VERSION}" - testCompile("org.robolectric:robolectric:${ROBOLECTRIC_VERSION}") + compile fileTree(dir: "libs", include: ["*.jar"]) + compile "com.android.support:appcompat-v7:23.0.1" + compile "com.facebook.react:react-native:0.16.+" + compile 'com.reacttests:app-debug@aar' } - -apply from: 'release.gradle' diff --git a/tests/react-test-app/android/app/react.gradle b/tests/react-test-app/android/app/react.gradle index dc18bb9a..1e08b00f 100644 --- a/tests/react-test-app/android/app/react.gradle +++ b/tests/react-test-app/android/app/react.gradle @@ -1,3 +1,5 @@ +import org.apache.tools.ant.taskdefs.condition.Os + def config = project.hasProperty("react") ? project.react : []; def bundleAssetName = config.bundleAssetName ?: "index.android.bundle" @@ -36,8 +38,13 @@ task bundleDebugJsAndAssets(type: Exec) { // set up the call to the react-native cli workingDir reactRoot - commandLine "react-native", "bundle", "--platform", "android", "--dev", "true", "--entry-file", + if (Os.isFamily(Os.FAMILY_WINDOWS)) { + commandLine "cmd", "/c", "react-native", "bundle", "--platform", "android", "--dev", "true", "--entry-file", entryFile, "--bundle-output", jsBundleFileDebug, "--assets-dest", resourcesDirDebug + } else { + commandLine "react-native", "bundle", "--platform", "android", "--dev", "true", "--entry-file", + entryFile, "--bundle-output", jsBundleFileDebug, "--assets-dest", resourcesDirDebug + } enabled config.bundleInDebug ?: false } @@ -56,8 +63,13 @@ task bundleReleaseJsAndAssets(type: Exec) { // set up the call to the react-native cli workingDir reactRoot - commandLine "react-native", "bundle", "--platform", "android", "--dev", "false", "--entry-file", + if (Os.isFamily(Os.FAMILY_WINDOWS)) { + commandLine "cmd","/c", "react-native", "bundle", "--platform", "android", "--dev", "false", "--entry-file", entryFile, "--bundle-output", jsBundleFileRelease, "--assets-dest", resourcesDirRelease + } else { + commandLine "react-native", "bundle", "--platform", "android", "--dev", "false", "--entry-file", + entryFile, "--bundle-output", jsBundleFileRelease, "--assets-dest", resourcesDirRelease + } enabled config.bundleInRelease ?: true } diff --git a/tests/react-test-app/android/app/src/main/AndroidManifest.xml b/tests/react-test-app/android/app/src/main/AndroidManifest.xml index 3f4f9d4e..0e125e42 100644 --- a/tests/react-test-app/android/app/src/main/AndroidManifest.xml +++ b/tests/react-test-app/android/app/src/main/AndroidManifest.xml @@ -1,5 +1,5 @@ - - - - - - - diff --git a/tests/react-test-app/android/Demo/android/app/src/main/java/com/demo/MainActivity.java b/tests/react-test-app/android/app/src/main/java/com/demo/MainActivity.java similarity index 100% rename from tests/react-test-app/android/Demo/android/app/src/main/java/com/demo/MainActivity.java rename to tests/react-test-app/android/app/src/main/java/com/demo/MainActivity.java diff --git a/tests/react-test-app/android/Demo/android/app/src/main/java/com/demo/module/JniToastModule.java b/tests/react-test-app/android/app/src/main/java/com/demo/module/JniToastModule.java similarity index 100% rename from tests/react-test-app/android/Demo/android/app/src/main/java/com/demo/module/JniToastModule.java rename to tests/react-test-app/android/app/src/main/java/com/demo/module/JniToastModule.java diff --git a/tests/react-test-app/android/app/src/main/java/com/reacttests/MainActivity.java b/tests/react-test-app/android/app/src/main/java/com/reacttests/MainActivity.java deleted file mode 100644 index 6dc85930..00000000 --- a/tests/react-test-app/android/app/src/main/java/com/reacttests/MainActivity.java +++ /dev/null @@ -1,78 +0,0 @@ -// package com.reacttests; - -// import android.app.Activity; -// import android.os.Bundle; -// import android.view.KeyEvent; - -// import com.facebook.react.LifecycleState; -// import com.facebook.react.ReactInstanceManager; -// import com.facebook.react.ReactRootView; -// import com.facebook.react.modules.core.DefaultHardwareBackBtnHandler; -// import com.facebook.react.shell.MainReactPackage; -// import com.facebook.soloader.SoLoader; - -// public class MainActivity extends Activity implements DefaultHardwareBackBtnHandler { - -// private ReactInstanceManager mReactInstanceManager; -// private ReactRootView mReactRootView; - -// @Override -// protected void onCreate(Bundle savedInstanceState) { -// super.onCreate(savedInstanceState); -// mReactRootView = new ReactRootView(this); - -// mReactInstanceManager = ReactInstanceManager.builder() -// .setApplication(getApplication()) -// .setBundleAssetName("index.android.bundle") -// .setJSMainModuleName("index.android") -// .addPackage(new MainReactPackage()) -// .setUseDeveloperSupport(BuildConfig.DEBUG) -// .setInitialLifecycleState(LifecycleState.RESUMED) -// .build(); - -// mReactRootView.startReactApplication(mReactInstanceManager, "ReactTests", null); - -// setContentView(mReactRootView); -// } - -// @Override -// public boolean onKeyUp(int keyCode, KeyEvent event) { -// if (keyCode == KeyEvent.KEYCODE_MENU && mReactInstanceManager != null) { -// mReactInstanceManager.showDevOptionsDialog(); -// return true; -// } -// return super.onKeyUp(keyCode, event); -// } - -// @Override -// public void onBackPressed() { -// if (mReactInstanceManager != null) { -// mReactInstanceManager.onBackPressed(); -// } else { -// super.onBackPressed(); -// } -// } - -// @Override -// public void invokeDefaultOnBackPressed() { -// super.onBackPressed(); -// } - -// @Override -// protected void onPause() { -// super.onPause(); - -// if (mReactInstanceManager != null) { -// mReactInstanceManager.onPause(); -// } -// } - -// @Override -// protected void onResume() { -// super.onResume(); - -// if (mReactInstanceManager != null) { -// mReactInstanceManager.onResume(this); -// } -// } -// } diff --git a/tests/react-test-app/android/app/src/main/jni/src b/tests/react-test-app/android/app/src/main/jni/src deleted file mode 120000 index 43fced61..00000000 --- a/tests/react-test-app/android/app/src/main/jni/src +++ /dev/null @@ -1 +0,0 @@ -../../../../../../../src \ No newline at end of file diff --git a/tests/react-test-app/android/app/src/main/res/values/strings.xml b/tests/react-test-app/android/app/src/main/res/values/strings.xml index a351b3d5..b2250a86 100644 --- a/tests/react-test-app/android/app/src/main/res/values/strings.xml +++ b/tests/react-test-app/android/app/src/main/res/values/strings.xml @@ -1,3 +1,3 @@ - ReactTests + Demo diff --git a/tests/react-test-app/android/build.gradle b/tests/react-test-app/android/build.gradle index 3938b0a1..bf560221 100644 --- a/tests/react-test-app/android/build.gradle +++ b/tests/react-test-app/android/build.gradle @@ -6,7 +6,6 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:1.3.1' - classpath 'de.undercouch:gradle-download-task:1.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files @@ -17,5 +16,11 @@ allprojects { repositories { mavenLocal() jcenter() + jcenter { + url "http://dl.bintray.com/mkonicek/maven" + } + flatDir{ + dirs 'lib' + } } } diff --git a/tests/react-test-app/android/gradle.properties b/tests/react-test-app/android/gradle.properties index 2f4d15ce..1fd964e9 100644 --- a/tests/react-test-app/android/gradle.properties +++ b/tests/react-test-app/android/gradle.properties @@ -18,5 +18,3 @@ # org.gradle.parallel=true android.useDeprecatedNdk=true -org.gradle.daemon=true - diff --git a/tests/react-test-app/android/settings.gradle b/tests/react-test-app/android/settings.gradle index 96e526a0..673b698c 100644 --- a/tests/react-test-app/android/settings.gradle +++ b/tests/react-test-app/android/settings.gradle @@ -1,3 +1,3 @@ -rootProject.name = 'ReactTests' +rootProject.name = 'Demo' include ':app' diff --git a/tests/react-test-app/index.android.js b/tests/react-test-app/index.android.js index de9dfd47..f80186fb 100644 --- a/tests/react-test-app/index.android.js +++ b/tests/react-test-app/index.android.js @@ -1,86 +1,59 @@ -/* Copyright 2015 Realm Inc - All Rights Reserved - * Proprietary and Confidential +/** + * Sample React Native App + * https://github.com/facebook/react-native */ 'use strict'; var React = require('react-native'); -var Realm = require('realm'); -var RealmTests = require('realm-tests'); - var { AppRegistry, StyleSheet, Text, View, + TouchableNativeFeedback, } = React; -function runTests() { - let testNames = RealmTests.getTestNames(); +var JniToastAndroid = require('NativeModules').JniToastAndroid; - for (let suiteName in testNames) { - let testSuite = RealmTests[suiteName]; - - console.log('Starting ' + suiteName); - - for (let testName of testNames[suiteName]) { - if (testSuite.beforeEach) { - testSuite.beforeEach(); - } - - try { - testSuite[testName](); - console.log('+ ' + testName); - } - catch (e) { - console.log('- ' + testName); - console.warn(e); - } - finally { - if (testSuite.afterEach) { - testSuite.afterEach(); - } - } - } - } -} - -var ReactTests = React.createClass({ - render() { - return ( - - - Tap to Run Tests - - - Press Cmd+R to reload,{'\n'} - Cmd+D or shake for dev menu - - - ); - } -}); +var Demo = React.createClass({ + buttonClicked: function() { + JniToastAndroid.show("Hello Zepp", JniToastAndroid.LONG); + }, + render: function() { + return ( + + + Calling JNI String from Javascript. + + + + Click Me :) + + + + ); + } +}); var styles = StyleSheet.create({ - container: { - flex: 1, - justifyContent: 'center', - alignItems: 'center', - backgroundColor: '#F5FCFF', - }, - button: { - borderColor: '#cccccc', - borderRadius: 4, - borderWidth: 1, - fontSize: 20, - textAlign: 'center', - margin: 20, - padding: 10, - }, - instructions: { - textAlign: 'center', - color: '#333333', - marginBottom: 5, - }, + container: { + flex: 1, + justifyContent: 'center', + alignItems: 'center', + backgroundColor: '#F5FCFF', + }, + welcome: { + fontSize: 20, + textAlign: 'center', + margin: 10, + }, + instructions: { + textAlign: 'center', + color: '#333333', + marginBottom: 5, + }, }); -AppRegistry.registerComponent('ReactTests', () => ReactTests); +AppRegistry.registerComponent('Demo', () => Demo); diff --git a/tests/react-test-app/index.android.js.old b/tests/react-test-app/index.android.js.old new file mode 100644 index 00000000..de9dfd47 --- /dev/null +++ b/tests/react-test-app/index.android.js.old @@ -0,0 +1,86 @@ +/* Copyright 2015 Realm Inc - All Rights Reserved + * Proprietary and Confidential + */ +'use strict'; + +var React = require('react-native'); +var Realm = require('realm'); +var RealmTests = require('realm-tests'); + +var { + AppRegistry, + StyleSheet, + Text, + View, +} = React; + +function runTests() { + let testNames = RealmTests.getTestNames(); + + for (let suiteName in testNames) { + let testSuite = RealmTests[suiteName]; + + console.log('Starting ' + suiteName); + + for (let testName of testNames[suiteName]) { + if (testSuite.beforeEach) { + testSuite.beforeEach(); + } + + try { + testSuite[testName](); + console.log('+ ' + testName); + } + catch (e) { + console.log('- ' + testName); + console.warn(e); + } + finally { + if (testSuite.afterEach) { + testSuite.afterEach(); + } + } + } + } +} + +var ReactTests = React.createClass({ + render() { + return ( + + + Tap to Run Tests + + + Press Cmd+R to reload,{'\n'} + Cmd+D or shake for dev menu + + + ); + } +}); + +var styles = StyleSheet.create({ + container: { + flex: 1, + justifyContent: 'center', + alignItems: 'center', + backgroundColor: '#F5FCFF', + }, + button: { + borderColor: '#cccccc', + borderRadius: 4, + borderWidth: 1, + fontSize: 20, + textAlign: 'center', + margin: 20, + padding: 10, + }, + instructions: { + textAlign: 'center', + color: '#333333', + marginBottom: 5, + }, +}); + +AppRegistry.registerComponent('ReactTests', () => ReactTests); diff --git a/tests/react-test-app/package.json b/tests/react-test-app/package.json index 1170ce85..8950f980 100644 --- a/tests/react-test-app/package.json +++ b/tests/react-test-app/package.json @@ -1,13 +1,11 @@ { - "name": "ReactTests", + "name": "Demo", "version": "0.0.1", "private": true, "scripts": { "start": "react-native start" }, "dependencies": { - "react-native": "0.16.0", - "realm": "file:../../lib", - "realm-tests": "file:../lib" + "react-native": "^0.16.0" } }