dotnet/runtime

[Android] Add Local Emulator Setup

オープン

#42,124 opened on 2020/09/11

 (2 件のコメント) (1 件のリアクション) (0 人の担当者)C# (5,445 件のフォーク)batch import
area-Infrastructure-monohelp wantedos-android

Repository metrics

Stars
 (17,886 個のスター)
PR merge metrics
 (平均マージ 12d 11h) (30d で 661 merged PRs)

説明

Since the emulators used on CI for x86 and x64 are system ones, we should provide a setup script to ensure we run against the same locally.

At the very least, we'll need to include these commands:

${ANDROID_SDK_ROOT}/cmdline-tools/tools/bin/sdkmanager "system-images;android-<LEVEL>;default;x86"
${ANDROID_SDK_ROOT}/cmdline-tools/tools/bin/sdkmanager "system-images;android-<LEVEL>;default;x86_64"
${ANDROID_SDK_ROOT}/cmdline-tools/tools/bin/sdkmanager --licenses
${ANDROID_SDK_ROOT}/cmdline-tools/tools/bin/avdmanager --verbose create avd --force --name <NAME> --package 'system-images;android-<LEVEL>;default;x86'
${ANDROID_SDK_ROOT}/cmdline-tools/tools/bin/avdmanager --verbose create avd --force --name <NAME> --package 'system-images;android-<LEVEL>;default;x86_64'

I don't have an opinion on whether this should be optional or run as a regular part of the build. Thoughts and suggestions welcome.

コントリビューターガイド