mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[macOS] Switch android tools installation to use cmdline-tools' sdkmanager (#3686)
* Switch android installation to use cmdline-tools * Switch android-toolsets and xamarin-android-ndk to use new sdkmanager * Remove cmdline-tools installation from toolset as it's installed * Remove redundant steps with warning prevention * Remove hardcoded licenses as they are accepted during the installation * Add tests to check that both sdkmanagers are available * Simplify Get-AndroidInstalledPackages function to use list_installed * Change regex pattern to output the group * Currently the function returns 4. instead of 4.0, this change fixes it
This commit is contained in:
@@ -3,7 +3,7 @@ source ~/utils/utils.sh
|
||||
|
||||
ANDROID_HOME=$HOME/Library/Android/sdk
|
||||
ANDROID_NDK_HOME=$ANDROID_HOME/ndk-bundle
|
||||
SDKMANAGER=$ANDROID_HOME/tools/bin/sdkmanager
|
||||
SDKMANAGER=$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager
|
||||
|
||||
# Android NDK v16 is not compatible with old Xamarin.Android SDK
|
||||
# and fails builds with BundleAssemblies enabled
|
||||
|
||||
Reference in New Issue
Block a user