FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnative/scripts/start-android-emulator.sh at main · pythonnative/pythonnative · GitHub
pythonnative
/
pythonnative
Public
Notifications
You must be signed in to change notification settings
Fork
23
Star
131
Code
Issues
11
Pull requests
4
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonnative
/
scripts
/
start-android-emulator.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
21 lines (17 loc) · 626 Bytes
Breadcrumbs
pythonnative
/
scripts
/
start-android-emulator.sh
Copy path
File metadata and controls
executable file
·
21 lines (17 loc) · 626 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!
/usr/bin/env bash
#
Start the local Android emulator used for testing pythonnative apps.
#
#
Usage:
#
./scripts/start-android-emulator.sh [avd-name]
#
#
Defaults to the "Medium_Phone" AVD. List available AVDs with:
#
~/Library/Android/sdk/emulator/emulator -list-avds
set
-euo pipefail
AVD_NAME=
"
${1
:-
Medium_Phone}
"
EMULATOR_BIN=
"
${ANDROID_SDK_ROOT
:-
$HOME
/
Library
/
Android
/
sdk}
/emulator/emulator
"
if
[[
!
-x
"
$EMULATOR_BIN
"
]]
;
then
echo
"
Error: emulator binary not found at
$EMULATOR_BIN
"
>&2
echo
"
Set ANDROID_SDK_ROOT or install the Android SDK emulator.
"
>&2
exit
1
fi
exec
"
$EMULATOR_BIN
"
-avd
"
$AVD_NAME
"
Back
|
FazBrowse Home
|
New Git URL