mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 09:35:48 +00:00
8c74864d7b
Summary: Packages are now defined in `scripts/.tests.env`, so the checksum is updated accordingly. We also throw away the cache if the checksum fails as not doing so may prevent us from picking up new packages due to the filesystem check in `scripts/android-setup.sh`#getAndroidPackages(), as the presence of the `installed-dependencies` file restored from cache will incorrectly flag all deps as being installed. Closes https://github.com/facebook/react-native/pull/19298 Differential Revision: D8025918 Pulled By: hramos fbshipit-source-id: 189492baac2fea39280884ea20e376a368e23c2e
35 lines
942 B
Bash
35 lines
942 B
Bash
# These should match the recommended versions listed in
|
|
# https://facebook.github.io/react-native/docs/getting-started.html
|
|
|
|
|
|
## ANDROID ##
|
|
# Android SDK Build Tools revision
|
|
export ANDROID_SDK_BUILD_TOOLS_REVISION=26.0.3
|
|
# Android API Level we build with
|
|
export ANDROID_SDK_BUILD_API_LEVEL="26"
|
|
# Google APIs for Android level
|
|
export ANDROID_GOOGLE_API_LEVEL="23"
|
|
# Minimum Android API Level we target
|
|
export ANDROID_SDK_TARGET_API_LEVEL="19"
|
|
# Android Virtual Device name
|
|
export AVD_NAME="testAVD"
|
|
# ABI to use in Android Virtual Device
|
|
export AVD_ABI=x86
|
|
|
|
## IOS ##
|
|
export IOS_TARGET_OS="11.3"
|
|
export IOS_DEVICE="iPhone 5s"
|
|
|
|
export SCHEME="RNTester"
|
|
export SDK="iphonesimulator${IOS_TARGET_OS}"
|
|
export DESTINATION="platform=iOS Simulator,OS=${IOS_TARGET_OS},name=${IOS_DEVICE}"
|
|
|
|
## CI OVERRIDES ##
|
|
# Values to override when running in CI
|
|
# $CI is set by Circle CI
|
|
if [ $CI ]; then
|
|
# Use ARM on Circle CI
|
|
export AVD_ABI=armeabi-v7a
|
|
fi
|
|
|