mirror of
https://github.com/budtmo/docker-android.git
synced 2026-07-29 19:00:34 +00:00
Add support for real device and screen mirroring
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z $REAL_DEVICE ]; then
|
||||
python3 -m src.app
|
||||
else
|
||||
CMD="appium"
|
||||
if [ ! -z "$CONNECT_TO_GRID" ]; then
|
||||
NODE_CONFIG_JSON="/root/src/nodeconfig.json"
|
||||
/root/generate_config.sh $NODE_CONFIG_JSON
|
||||
CMD+=" --nodeconfig $NODE_CONFIG_JSON"
|
||||
fi
|
||||
$CMD
|
||||
fi
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z "$REAL_DEVICE"]; then
|
||||
echo "Container is using android emulator"
|
||||
else
|
||||
echo "Starting android screen mirro..."
|
||||
java -jar /root/asm.jar $ANDROID_HOME
|
||||
fi
|
||||
Reference in New Issue
Block a user