Skip to content

Commit

Permalink
fix: Adjust for missing symbols when running on macOS 10.14
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Jun 25, 2021
1 parent d5f71ee commit 6989126
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions build/android-uitest-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@ set -euo pipefail
IFS=$'\n\t'

export BUILDCONFIGURATION=Release
export ANDROID_HOME=$BUILD_SOURCESDIRECTORY/build/android-sdk

cd $BUILD_SOURCESDIRECTORY/build

mkdir android-sdk
pushd android-sdk
# URL from https://developer.android.com/studio/index.html#command-tools
wget https://dl.google.com/android/repository/commandlinetools-mac-6200805_latest.zip
unzip commandlinetools-mac-6200805_latest.zip
popd
# This block allows to override the Android SDK
# disabled until hosted agents move to macOS 11
#
# export ANDROID_HOME=$BUILD_SOURCESDIRECTORY/build/android-sdk
#wget https://dl.google.com/android/repository/commandlinetools-mac-7302050_latest.zip
#unzip commandlinetools-mac-7302050_latest.zip
#rm commandlinetools-mac-7302050_latest.zip
#mkdir -p $ANDROID_HOME/cmdline-tools/latest
#cp -R cmdline-tools/ $ANDROID_HOME/sdk/cmdline-tools/latest/

# uncomment the following lines to override the installed Xamarin.Android SDK
# wget -nv https://jenkins.mono-project.com/view/Xamarin.Android/job/xamarin-android-d16-2/49/Azure/processDownloadRequest/xamarin-android/xamarin-android/bin/BuildRelease/Xamarin.Android.Sdk-OSS-9.4.0.59_d16-2_6d9b105.pkg
Expand Down Expand Up @@ -67,6 +69,9 @@ source $BUILD_SOURCESDIRECTORY/build/android-uitest-wait-systemui.sh
# list active devices
$ANDROID_HOME/platform-tools/adb devices

# Workaround for https://github.com/microsoft/appcenter/issues/1451
$ANDROID_HOME/platform-tools/adb shell settings put global hidden_api_policy 1

echo "Emulator started"

if [ "$UITEST_TEST_MODE_NAME" == 'Snapshots' ];
Expand Down

0 comments on commit 6989126

Please sign in to comment.