.bash_profile

#jdk
#jdk-11.0.12.jdk or jdk1.8.0_291.jdk
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_291.jdk/Contents/Home
#export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.0.12.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
#android sdk
export ANDROID_HOME=/Users/crow/Library/Android/sdk
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools
#android ndk
export ANDROID_NDK_HOME=/Users/crow/Library/Android/sdk/ndk-bundle
export PATH=$PATH:$ANDROID_NDK_HOME

#alias
#screen shot phone
alias ss=’adb shell screencap /sdcard/screenshot.png && adb pull /sdcard/screenshot.png . && open ./screenshot.png’
alias screenShot=’adb shell screencap /sdcard/screenshot.png && adb pull /sdcard/screenshot.png . && open ./screenshot.png’

#screen record
alias sr=’adb shell screenrecord /sdcard/video.mp4’
alias startRecord=’adb shell screenrecord /sdcard/video.mp4’
#control + c to stop
alias showRecord=’adb pull /sdcard/video.mp4 . && open ./video.mp4’

#adb input text to phone
myinput() { adb shell input text “$1” }
alias input=’myinput ‘

#adb stop/start app
alias stopApp=’adb shell am force-stop com.alibaba.aliexpresshd’
alias startApp=’adb shell am start “com.alibaba.aliexpresshd/com.alibaba.aliexpresshd.home.ui.MainActivity”‘

#adb debug app
alias debugApp=’adb shell am start -D “com.alibaba.aliexpresshd/com.alibaba.aliexpresshd.home.ui.MainActivity”‘

#gradle
dependencies() { ./gradlew “$1”:dependencies –configuration debugRuntimeClasspath }
alias depen=’dependencies’

#incremental command
alias increment=’bash <(curl -s https://gitlab.alibaba-inc.com/chenzhong.cz/incremental_scripts/raw/dev_parallel_aliexpress_mtl4/incremental.sh)'

Author

white crow

Posted on

2023-02-22

Updated on

2024-03-25

Licensed under