This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### proguard-rules.pro ### | |
# Standard rules for my App: | |
-keep class this.and.That { *; } | |
-dontwarn com.on.** | |
# Some more rules so that my instrumentation tests could run: | |
-keep class com.thirdparty.Z { *; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android { | |
buildTypes { | |
release { | |
minifyEnabled true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
// Custom build type, just for running instrumentation tests!!! | |
instrum { | |
// "Inherit" from 'release' buildType |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### proguard-rules.pro ### | |
-keep class this.and.That { *; } | |
-dontwarn com.on.** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "" | |
echo "[Waiting for launcher to start]" | |
LAUNCHER_READY= | |
while [[ -z ${LAUNCHER_READY} ]]; do | |
UI_FOCUS=`adb shell dumpsys window windows 2>/dev/null | grep -i mCurrentFocus` | |
echo "(DEBUG) Current focus: ${UI_FOCUS}" | |
case $UI_FOCUS in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(https://jenkins-oss.wixpress.com/job/detox-android-61-4-pr/236/consoleFull) | |
Detox log: | |
14:38:48 FAIL [2m03.actions.test.js (210.947s) | |
14:38:48 Actions | |
14:38:48 ✓ [2mshould tap on an element (3662ms)[22m | |
14:38:48 ✓ [2mshould long press on an element (4754ms)[22m | |
14:38:48 ✓ [2mshould long press with duration on an element (4990ms)[22m | |
14:38:48 ✓ [2mshould multi tap on an element (6332ms)[22m |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ll='exa -alF' | |
alias lt='exa --tree' | |
alias lt2='exa --tree --level=2' | |
alias lt3='exa --tree --level=3' | |
alias ..='cd ..' | |
alias ...='cd ../..' | |
alias ....='cd ../../..' | |
alias .....='cd ../../../..' | |
# Git and Github |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install the emulator tool | |
./tools/bin/sdkmanager --install emulator | |
# Install an AOSP image that would later be used as the AVD's OS | |
./tools/bin/sdkmanager --install "system-images;android-29;default;x86_64" | |
# Accept all licenses... | |
./tools/bin/sdkmanager --licenses | |
# To do that automatically in a script, try this: | |
yes | ./tools/bin/sdkmanager --licenses |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Attributes in .ini file: | |
# hw.lcd.density=440 | |
# hw.lcd.height=2280 | |
# hw.lcd.width=1080 | |
# OR, it you need an automated script - they can be simply appended to the existing file: | |
echo "hw.lcd.density=440" > config.ini | |
echo "hw.lcd.height=2280" > config.ini | |
echo "hw.lcd.width=1080" > config.ini |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Launch the emulator! | |
./emulator/emulator -verbose -no-boot-anim @Pixel_4_API_29 & | |
# (or, if running on a headless machine) | |
./emulator/emulator -verbose -no-boot-anim -no-audio -no-window -gpu swiftshader_indirect @Pixel_4_API_29 & | |
# Wait for the emulator to boot up completely. | |
# This script is actually a bit naive. There are various suggestions out there | |
# as to make this more robust. One alternative is to utilize the "adb wait-for-device" command. | |
booted=0 | |
while [ "$booted" != "1" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Gracefully shut the emulator down | |
killall qemu-system-x86_64 | |
# (or, if running headless) | |
killall qemu-system-x86_64-headless | |
### Side-note: If you wish to brutally shut the emulator down without having | |
### anything saved - for whatever reason, you can kill using the SIGKILL signal: | |
killall -9 qemu-system-x86_64 |