Skip to content

Commit

Permalink
(Android) Fix RN 64 compatibility CI issues
Browse files Browse the repository at this point in the history
  • Loading branch information
d4vidi committed Jul 20, 2022
1 parent e21acdb commit 367d359
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/ci.android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ trap "$UPLOAD_ARTIFACT" EXIT
# Approve unapproved SDK licenses
yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses

source $(dirname "$0")/ci.sh
currentRnVersion=$(echo "${REACT_NATIVE_VERSION}" | cut -d "." -f2);
if [[ $currentRnVersion -ge 68 ]]; then
source $(dirname "$0")/ci.sh
else
echo 'Warning: Setting "skip" over invoke-code auto-generation because the react-native is lower than 68 and therefore contains patches (see detox/test/postinstall.js)'
source $(dirname "$0")/ci.sh 'noGenerate'
fi

pushd detox/test
run_f "npm run integration"
popd

currentRnVersion=$(echo "${REACT_NATIVE_VERSION}" | cut -d "." -f2);
if [[ $currentRnVersion -ge 66 ]]; then
pushd detox/android
run_f "./gradlew testFullRelease"
Expand Down

0 comments on commit 367d359

Please sign in to comment.