File tree Expand file tree Collapse file tree 2 files changed +18
-13
lines changed
Expand file tree Collapse file tree 2 files changed +18
-13
lines changed Original file line number Diff line number Diff line change 7575 <excludeFolder url =" file://$MODULE_DIR$/build/intermediates/rs" />
7676 <excludeFolder url =" file://$MODULE_DIR$/build/intermediates/symbols" />
7777 <excludeFolder url =" file://$MODULE_DIR$/build/outputs" />
78+ <excludeFolder url =" file://$MODULE_DIR$/build/tmp" />
7879 </content >
7980 <orderEntry type =" jdk" jdkName =" Android API 16 Platform" jdkType =" Android SDK" />
8081 <orderEntry type =" sourceFolder" forTests =" false" />
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # x86 emulator
4- echo no | android create avd -c 50M --force -n testx86 -t android-16 --abi x86
5- emulator -ports 5554,5555 -partition-size 256 -avd testx86 -no-skin -no-boot-anim -no-audio -no-window -gpu on &
6- PID_EMU1=$!
7- ./wait_for_emulator emulator-5554 || exit 1
8- adb -s emulator-5554 shell input keyevent 82 &
3+ function create_emulator() {
4+ abi=$1
5+ api_level=$2
6+ port1=$3
7+ port2=$4
8+ emulator_name=" test_${abi} _${api_level} "
9+ emulator_serial=" emulator-${port1} "
10+ echo no | android create avd -c 50M --force -n $emulator_name -t ${api_level} --abi ${abi}
11+ emulator -ports ${port1} ,${port2} -partition-size 256 -avd $emulator_name -no-skin -no-boot-anim -no-audio -no-window -gpu on &
12+ ./wait_for_emulator ${emulator_serial} || exit 1
13+ adb -s ${emulator_serial} shell input keyevent 82 &
14+ }
915
10- # armeabi-v7a emulator
11- echo no | android create avd -c 50M --force -n testarm -t android-16 --abi armeabi-v7a
12- emulator -ports 5556,5557 -partition-size 256 -avd testarm -no-skin -no-boot-anim -no-audio -no-window -gpu on &
13- PID_EMU2=$!
14- ./wait_for_emulator emulator-5556 || exit 1
15- adb -s emulator-5556 shell input keyevent 82 &
16+ # x86 emulator android-16
17+ create_emulator x86 android-16 5554 5555
18+
19+ # armeabi-v7a emulator android-16
20+ create_emulator armeabi-v7a android-16 5556 5557
1621
1722# Running Tests
1823./gradlew --info build connectedCheck || exit 1
19- kill -9 $PID_EMU1 $PID_EMU2
You can’t perform that action at this time.
0 commit comments