diff --git a/Libraries/ART/React-ART.podspec b/Libraries/ART/React-ART.podspec index 16050e2c282..1a299cbc7e7 100644 --- a/Libraries/ART/React-ART.podspec +++ b/Libraries/ART/React-ART.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec b/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec index de69c063e17..5a9226e5d11 100644 --- a/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec +++ b/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/Libraries/Animated/src/__tests__/bezier-test.js b/Libraries/Animated/src/__tests__/bezier-test.js index bab93c372a4..530d877e821 100644 --- a/Libraries/Animated/src/__tests__/bezier-test.js +++ b/Libraries/Animated/src/__tests__/bezier-test.js @@ -4,15 +4,17 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * BezierEasing - use bezier curve for transition easing function - * https://github.com/gre/bezier-easing - * - * @copyright 2014-2015 Gaetan Renaudeau. MIT License. * @emails oncall+react_native * @flow * @format */ +/** + * BezierEasing - use bezier curve for transition easing function + * https://github.com/gre/bezier-easing + * @copyright 2014-2015 Gaetan Renaudeau. MIT License. + */ + 'use strict'; const bezier = require('../bezier'); diff --git a/Libraries/Animated/src/bezier.js b/Libraries/Animated/src/bezier.js index 94fe109d784..a7ea8d210b1 100644 --- a/Libraries/Animated/src/bezier.js +++ b/Libraries/Animated/src/bezier.js @@ -4,11 +4,13 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * BezierEasing - use bezier curve for transition easing function - * https://github.com/gre/bezier-easing - * * @flow strict * @format + */ + +/** + * BezierEasing - use bezier curve for transition easing function + * https://github.com/gre/bezier-easing * @copyright 2014-2015 Gaƫtan Renaudeau. MIT License. */ diff --git a/Libraries/BatchedBridge/__mocks__/MessageQueueTestConfig.js b/Libraries/BatchedBridge/__mocks__/MessageQueueTestConfig.js index 6491c81c7ec..8644d15ea01 100644 --- a/Libraries/BatchedBridge/__mocks__/MessageQueueTestConfig.js +++ b/Libraries/BatchedBridge/__mocks__/MessageQueueTestConfig.js @@ -4,12 +4,12 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * These don't actually exist anywhere in the code. - * * @flow strict-local * @format */ +// These don't actually exist anywhere in the code. + 'use strict'; import type {ModuleConfig} from '../NativeModules'; diff --git a/Libraries/Blob/React-RCTBlob.podspec b/Libraries/Blob/React-RCTBlob.podspec index f6de78b101a..ec98e36f371 100644 --- a/Libraries/Blob/React-RCTBlob.podspec +++ b/Libraries/Blob/React-RCTBlob.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/Libraries/Components/DatePicker/DatePickerIOS.ios.js b/Libraries/Components/DatePicker/DatePickerIOS.ios.js index afae770d487..a4278bf440b 100644 --- a/Libraries/Components/DatePicker/DatePickerIOS.ios.js +++ b/Libraries/Components/DatePicker/DatePickerIOS.ios.js @@ -4,13 +4,12 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * - * This is a controlled component version of RCTDatePickerIOS - * * @format * @flow strict-local */ +// This is a controlled component version of RCTDatePickerIOS. + 'use strict'; const RCTDatePickerNativeComponent = require('./RCTDatePickerNativeComponent'); diff --git a/Libraries/Components/Picker/PickerIOS.android.js b/Libraries/Components/Picker/PickerIOS.android.js index d7171ac8ed1..b7d047ba5de 100644 --- a/Libraries/Components/Picker/PickerIOS.android.js +++ b/Libraries/Components/Picker/PickerIOS.android.js @@ -4,12 +4,11 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * - * This is a controlled component version of RCTPickerIOS - * * @format */ +// This is a controlled component version of RCTPickerIOS. + 'use strict'; module.exports = require('../UnimplementedViews/UnimplementedView'); diff --git a/Libraries/Components/Picker/PickerIOS.ios.js b/Libraries/Components/Picker/PickerIOS.ios.js index 0b5df5bc7d1..af2a33f6d9b 100644 --- a/Libraries/Components/Picker/PickerIOS.ios.js +++ b/Libraries/Components/Picker/PickerIOS.ios.js @@ -4,13 +4,12 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * - * This is a controlled component version of RCTPickerIOS - * * @format * @flow */ +// This is a controlled component version of RCTPickerIOS. + 'use strict'; const RCTPickerNativeComponent = require('./RCTPickerNativeComponent'); diff --git a/Libraries/Components/TextInput/TextInputState.js b/Libraries/Components/TextInput/TextInputState.js index ec5b348db7b..3b9534b2f3e 100644 --- a/Libraries/Components/TextInput/TextInputState.js +++ b/Libraries/Components/TextInput/TextInputState.js @@ -4,15 +4,14 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * - * This class is responsible for coordinating the "focused" - * state for TextInputs. All calls relating to the keyboard - * should be funneled through here - * * @format * @flow strict-local */ +// This class is responsible for coordinating the "focused" state for +// TextInputs. All calls relating to the keyboard should be funneled +// through here. + 'use strict'; const Platform = require('../../Utilities/Platform'); diff --git a/Libraries/FBLazyVector/FBLazyVector.podspec b/Libraries/FBLazyVector/FBLazyVector.podspec index d2a5ea3ac80..06ec27df91b 100644 --- a/Libraries/FBLazyVector/FBLazyVector.podspec +++ b/Libraries/FBLazyVector/FBLazyVector.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/Libraries/FBReactNativeSpec/FBReactNativeSpec.podspec b/Libraries/FBReactNativeSpec/FBReactNativeSpec.podspec index 32c55ecef29..b066e37f00c 100644 --- a/Libraries/FBReactNativeSpec/FBReactNativeSpec.podspec +++ b/Libraries/FBReactNativeSpec/FBReactNativeSpec.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/Libraries/Image/React-RCTImage.podspec b/Libraries/Image/React-RCTImage.podspec index 62bb32cfea9..2581b3315b1 100644 --- a/Libraries/Image/React-RCTImage.podspec +++ b/Libraries/Image/React-RCTImage.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/Libraries/Image/resolveAssetSource.js b/Libraries/Image/resolveAssetSource.js index 7d256832fca..2b97b8d6b59 100644 --- a/Libraries/Image/resolveAssetSource.js +++ b/Libraries/Image/resolveAssetSource.js @@ -4,13 +4,12 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * - * Resolves an asset into a `source` for `Image`. - * * @format * @flow */ +// Resolves an asset into a `source` for `Image`. + 'use strict'; const AssetRegistry = require('./AssetRegistry'); diff --git a/Libraries/LinkingIOS/React-RCTLinking.podspec b/Libraries/LinkingIOS/React-RCTLinking.podspec index 7845c262f86..df584c3d93a 100644 --- a/Libraries/LinkingIOS/React-RCTLinking.podspec +++ b/Libraries/LinkingIOS/React-RCTLinking.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/Libraries/NativeAnimation/React-RCTAnimation.podspec b/Libraries/NativeAnimation/React-RCTAnimation.podspec index 95e6de03b32..286dd0dba15 100644 --- a/Libraries/NativeAnimation/React-RCTAnimation.podspec +++ b/Libraries/NativeAnimation/React-RCTAnimation.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/Libraries/Network/React-RCTNetwork.podspec b/Libraries/Network/React-RCTNetwork.podspec index 3cf6fc514f4..279b001c452 100644 --- a/Libraries/Network/React-RCTNetwork.podspec +++ b/Libraries/Network/React-RCTNetwork.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec b/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec index a52a8799fb6..a15cc0186d6 100644 --- a/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +++ b/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/Libraries/RCTRequired/RCTRequired.podspec b/Libraries/RCTRequired/RCTRequired.podspec index 26fa4c7e1a6..22ebeab1f10 100644 --- a/Libraries/RCTRequired/RCTRequired.podspec +++ b/Libraries/RCTRequired/RCTRequired.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/Libraries/Sample/Sample.android.js b/Libraries/Sample/Sample.android.js index 5a90c95ee14..49ae14835a5 100644 --- a/Libraries/Sample/Sample.android.js +++ b/Libraries/Sample/Sample.android.js @@ -4,12 +4,12 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * Stub of Sample for Android. - * * @format * @flow */ +// Stub of Sample for Android. + 'use strict'; const warning = require('fbjs/lib/warning'); diff --git a/Libraries/Sample/Sample.ios.js b/Libraries/Sample/Sample.ios.js index b4e239e5f35..78dbe32107d 100644 --- a/Libraries/Sample/Sample.ios.js +++ b/Libraries/Sample/Sample.ios.js @@ -4,12 +4,12 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * Stub of Sample for Android. - * * @format * @flow strict-local */ +// Stub of Sample for Android. + 'use strict'; const NativeSample = require('../BatchedBridge/NativeModules').Sample; diff --git a/Libraries/Settings/React-RCTSettings.podspec b/Libraries/Settings/React-RCTSettings.podspec index e7f06c859c6..7fba8e54d91 100644 --- a/Libraries/Settings/React-RCTSettings.podspec +++ b/Libraries/Settings/React-RCTSettings.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/Libraries/Text/React-RCTText.podspec b/Libraries/Text/React-RCTText.podspec index 888538512ac..4f8bc55b730 100644 --- a/Libraries/Text/React-RCTText.podspec +++ b/Libraries/Text/React-RCTText.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/Libraries/TypeSafety/RCTTypeSafety.podspec b/Libraries/TypeSafety/RCTTypeSafety.podspec index 0bd66ab18d6..d8369138489 100644 --- a/Libraries/TypeSafety/RCTTypeSafety.podspec +++ b/Libraries/TypeSafety/RCTTypeSafety.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/Libraries/Utilities/BackHandler.ios.js b/Libraries/Utilities/BackHandler.ios.js index 88093a73e19..e4a49652a66 100644 --- a/Libraries/Utilities/BackHandler.ios.js +++ b/Libraries/Utilities/BackHandler.ios.js @@ -4,13 +4,13 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * On Apple TV, this implements back navigation using the TV remote's menu button. - * On iOS, this just implements a stub. - * * @flow * @format */ +// On Apple TV, this implements back navigation using the TV remote's menu button. +// On iOS, this just implements a stub. + 'use strict'; const Platform = require('./Platform'); diff --git a/Libraries/Utilities/dismissKeyboard.js b/Libraries/Utilities/dismissKeyboard.js index 50ea162e2ea..98a5cda003a 100644 --- a/Libraries/Utilities/dismissKeyboard.js +++ b/Libraries/Utilities/dismissKeyboard.js @@ -4,13 +4,12 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * - * This function dismisses the currently-open keyboard, if any - * * @flow strict-local * @format */ +// This function dismisses the currently-open keyboard, if any. + 'use strict'; const TextInputState = require('../Components/TextInput/TextInputState'); diff --git a/Libraries/Vibration/React-RCTVibration.podspec b/Libraries/Vibration/React-RCTVibration.podspec index 297ce67c321..d6b3157ea16 100644 --- a/Libraries/Vibration/React-RCTVibration.podspec +++ b/Libraries/Vibration/React-RCTVibration.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/RNTester/RCTTest/React-RCTTest.podspec b/RNTester/RCTTest/React-RCTTest.podspec index 0ee3195ce00..bddda51c581 100644 --- a/RNTester/RCTTest/React-RCTTest.podspec +++ b/RNTester/RCTTest/React-RCTTest.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/React-Core.podspec b/React-Core.podspec index 4a2839db2a7..733e4c16a54 100644 --- a/React-Core.podspec +++ b/React-Core.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/React.podspec b/React.podspec index 50298c2ee40..1e3fba01f4c 100644 --- a/React.podspec +++ b/React.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/React/CoreModules/React-CoreModules.podspec b/React/CoreModules/React-CoreModules.podspec index 5c62b379dec..5d8e2266012 100644 --- a/React/CoreModules/React-CoreModules.podspec +++ b/React/CoreModules/React-CoreModules.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/React/React-RCTFabric.podspec b/React/React-RCTFabric.podspec index 0a04a5d494c..980cb4b4ee6 100644 --- a/React/React-RCTFabric.podspec +++ b/React/React-RCTFabric.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/core/ChoreographerCompat.java b/ReactAndroid/src/main/java/com/facebook/react/modules/core/ChoreographerCompat.java index d6cad6a8bb8..19f71b0cca7 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/core/ChoreographerCompat.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/core/ChoreographerCompat.java @@ -3,9 +3,10 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - * - * This file was pulled from the facebook/rebound repository. */ + +// This file was pulled from the facebook/rebound repository. + package com.facebook.react.modules.core; import android.os.Handler; diff --git a/ReactCommon/React-Fabric.podspec b/ReactCommon/React-Fabric.podspec index 8d0c546e9e3..418c1d7866d 100644 --- a/ReactCommon/React-Fabric.podspec +++ b/ReactCommon/React-Fabric.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/ReactCommon/ReactCommon.podspec b/ReactCommon/ReactCommon.podspec index d46637308b4..019e8ed9403 100644 --- a/ReactCommon/ReactCommon.podspec +++ b/ReactCommon/ReactCommon.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/ReactCommon/cxxreact/React-cxxreact.podspec b/ReactCommon/cxxreact/React-cxxreact.podspec index 3f1a214f0d2..b9912a6387c 100644 --- a/ReactCommon/cxxreact/React-cxxreact.podspec +++ b/ReactCommon/cxxreact/React-cxxreact.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/ReactCommon/fabric/graphics/React-graphics.podspec b/ReactCommon/fabric/graphics/React-graphics.podspec index 43dbceebef8..7ea7bc62e2c 100644 --- a/ReactCommon/fabric/graphics/React-graphics.podspec +++ b/ReactCommon/fabric/graphics/React-graphics.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/ReactCommon/jsi/React-jsi.podspec b/ReactCommon/jsi/React-jsi.podspec index b297c5fedfe..ff31e6b99b6 100644 --- a/ReactCommon/jsi/React-jsi.podspec +++ b/ReactCommon/jsi/React-jsi.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/ReactCommon/jsiexecutor/React-jsiexecutor.podspec b/ReactCommon/jsiexecutor/React-jsiexecutor.podspec index 6ee7e3c9067..658ca4925dd 100644 --- a/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +++ b/ReactCommon/jsiexecutor/React-jsiexecutor.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/ReactCommon/jsinspector/React-jsinspector.podspec b/ReactCommon/jsinspector/React-jsinspector.podspec index 63db57a4900..5830d9c92c7 100644 --- a/ReactCommon/jsinspector/React-jsinspector.podspec +++ b/ReactCommon/jsinspector/React-jsinspector.podspec @@ -1,4 +1,3 @@ -# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the diff --git a/flow/jest.js b/flow/jest.js index 8975e3b33c8..d41b4799c95 100644 --- a/flow/jest.js +++ b/flow/jest.js @@ -4,16 +4,17 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * Modified from https://raw.githubusercontent.com/flow-typed/flow-typed/master/definitions/npm/jest_v23.x.x/flow_v0.39.x-/jest_v23.x.x.js - * List of modifications: - * - fix some [] -> Array lint warnings - * - make it.each/describe.each take $ReadOnlyArray instead of Array - * - added definition for `isolateModules` - * - * TODO(T35016336) remove the .each modifications if flow-typed adopts them * @format */ +// Modified from https://raw.githubusercontent.com/flow-typed/flow-typed/master/definitions/npm/jest_v23.x.x/flow_v0.39.x-/jest_v23.x.x.js +// List of modifications: +// - fix some [] -> Array lint warnings +// - make it.each/describe.each take $ReadOnlyArray instead of Array +// - added definition for `isolateModules` +// +// TODO(T35016336) remove the .each modifications if flow-typed adopts them + type JestMockFn, TReturn> = {| (...args: TArguments): TReturn, /** diff --git a/runXcodeTests.sh b/runXcodeTests.sh index 83bfe1d0a92..4cdf2197396 100755 --- a/runXcodeTests.sh +++ b/runXcodeTests.sh @@ -3,7 +3,7 @@ # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -# + # This script should be run from the react-native root THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd) diff --git a/scripts/android-e2e-test.js b/scripts/android-e2e-test.js index be4d076acc7..692d19ae33f 100644 --- a/scripts/android-e2e-test.js +++ b/scripts/android-e2e-test.js @@ -4,27 +4,30 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * Used in run-ci-e2e-test.js and executed in Circle CI. - * E2e test that verifies that init app can be installed, compiled, started and Hot Module reloading and Chrome debugging work. - * For other examples of appium refer to: https://github.com/appium/sample-code/tree/master/sample-code/examples/node and - * https://www.npmjs.com/package/wd-android - * - * - * To set up: - * - npm install --save-dev appium@1.11.1 mocha@2.4.5 wd@1.11.1 colors@1.0.3 pretty-data2@0.40.1 - * - cp - * - keytool -genkey -v -keystore android/app/debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "CN=Android Debug,O=Android,C=US" - * - * To run this test: - * - npm start - * - node node_modules/.bin/appium - * - (cd android && ./gradlew :app:copyDownloadableDepsToLibs) - * - react-native run-android - * - node ../node_modules/.bin/_mocha ../android-e2e-test.js - * * @format */ +// Used in run-ci-e2e-test.js and executed in Circle CI. +// +// E2e test that verifies that init app can be installed, compiled, started and +// Hot Module reloading and Chrome debugging work. +// +// For other examples of appium refer to: +// https://github.com/appium/sample-code/tree/master/sample-code/examples/node and +// https://www.npmjs.com/package/wd-android +// +// To set up: +// - npm install --save-dev appium@1.11.1 mocha@2.4.5 wd@1.11.1 colors@1.0.3 pretty-data2@0.40.1 +// - cp +// - keytool -genkey -v -keystore android/app/debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "CN=Android Debug,O=Android,C=US" +// +// To run this test: +// - npm start +// - node node_modules/.bin/appium +// - (cd android && ./gradlew :app:copyDownloadableDepsToLibs) +// - react-native run-android +// - node ../node_modules/.bin/_mocha ../android-e2e-test.js + /* eslint-env mocha */ 'use strict'; diff --git a/scripts/android-setup.sh b/scripts/android-setup.sh index 3032d0c69f2..a0e0a0335ef 100755 --- a/scripts/android-setup.sh +++ b/scripts/android-setup.sh @@ -3,7 +3,7 @@ # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -# + # inspired by https://github.com/Originate/guide/blob/master/android/guide/Continuous%20Integration.md # shellcheck disable=SC1091 diff --git a/scripts/generate-rncore.sh b/scripts/generate-rncore.sh index cf0a002f1c8..5e67d91c812 100755 --- a/scripts/generate-rncore.sh +++ b/scripts/generate-rncore.sh @@ -3,7 +3,7 @@ # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -# + # This script collects the "core" component schemas used by fabric # then uses react-native-codegen to generate the component headers # to a location that the podspecs expect. diff --git a/scripts/objc-test.sh b/scripts/objc-test.sh index 69f4287a895..d2848dc42a5 100755 --- a/scripts/objc-test.sh +++ b/scripts/objc-test.sh @@ -3,7 +3,7 @@ # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -# + # Script used to run iOS tests. # If no arguments are passed to the script, it will only compile # the RNTester. diff --git a/scripts/react-native-xcode.sh b/scripts/react-native-xcode.sh index 3cee6426783..6e80f843fab 100755 --- a/scripts/react-native-xcode.sh +++ b/scripts/react-native-xcode.sh @@ -3,7 +3,7 @@ # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -# + # Bundle React Native app's code and image assets. # This script is supposed to be invoked as part of Xcode build process # and relies on environment variables (including PWD) set by Xcode diff --git a/scripts/run-android-emulator.sh b/scripts/run-android-emulator.sh index b1d28e56f46..628857d1fe3 100755 --- a/scripts/run-android-emulator.sh +++ b/scripts/run-android-emulator.sh @@ -3,7 +3,7 @@ # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -# + # Runs an Android emulator locally. # If there already is a running emulator, this just uses that. # The only reason to use this config is that it represents a known-good diff --git a/scripts/run-android-local-integration-tests.sh b/scripts/run-android-local-integration-tests.sh index 9fd5fb63a04..3b8e9026df8 100755 --- a/scripts/run-android-local-integration-tests.sh +++ b/scripts/run-android-local-integration-tests.sh @@ -3,7 +3,7 @@ # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -# + # Runs all Android integration tests locally. # See http://facebook.github.io/react-native/docs/testing.html diff --git a/scripts/run-android-local-unit-tests.sh b/scripts/run-android-local-unit-tests.sh index 6efcd40097a..eafa3ecf93b 100755 --- a/scripts/run-android-local-unit-tests.sh +++ b/scripts/run-android-local-unit-tests.sh @@ -3,7 +3,7 @@ # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -# + # Runs all Android unit tests locally. # See http://facebook.github.io/react-native/docs/testing.html diff --git a/scripts/run-instrumentation-tests-via-adb-shell.sh b/scripts/run-instrumentation-tests-via-adb-shell.sh index fa40a00d36c..c84610c18c2 100755 --- a/scripts/run-instrumentation-tests-via-adb-shell.sh +++ b/scripts/run-instrumentation-tests-via-adb-shell.sh @@ -3,10 +3,10 @@ # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -# + # Python script to run instrumentation tests, copied from https://github.com/circleci/circle-dummy-android # Example: ./scripts/run-android-instrumentation-tests.sh com.facebook.react.tests com.facebook.react.tests.ReactPickerTestCase -# + export PATH="$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$PATH" # clear the logs diff --git a/scripts/validate-android-device-env.sh b/scripts/validate-android-device-env.sh index cfb51c9c58e..b4374a4eee5 100755 --- a/scripts/validate-android-device-env.sh +++ b/scripts/validate-android-device-env.sh @@ -3,7 +3,7 @@ # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -# + # This script validates that the Android environment is set up to run # tests on a device or emulator (as opposed to a plain Java environment). diff --git a/scripts/validate-android-sdk.sh b/scripts/validate-android-sdk.sh index 8480235dbb3..18c950677c3 100755 --- a/scripts/validate-android-sdk.sh +++ b/scripts/validate-android-sdk.sh @@ -3,7 +3,7 @@ # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -# + # This script validates that the Android SDK is installed correctly. # This means setting ANDROID_HOME and adding its subdirectories to PATH. # If the Android SDK is not installed correctly, this script exits diff --git a/scripts/validate-android-test-env.sh b/scripts/validate-android-test-env.sh index 8babcb3131d..2630a490e28 100755 --- a/scripts/validate-android-test-env.sh +++ b/scripts/validate-android-test-env.sh @@ -3,7 +3,7 @@ # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -# + # This script validates that Android is set up correctly for the # testing environment. # diff --git a/scripts/validate-ios-test-env.sh b/scripts/validate-ios-test-env.sh index 695cf46c9f3..de125efb696 100755 --- a/scripts/validate-ios-test-env.sh +++ b/scripts/validate-ios-test-env.sh @@ -3,7 +3,7 @@ # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -# + # This script validates that iOS is set up correctly for the # testing environment. #