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/sh | |
| export NDK=$(pwd)/android-ndk | |
| export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/linux-x86_64/ | |
| export PATH=$TOOLCHAIN/bin:$PATH | |
| export SYSROOT=$TOOLCHAIN/sysroot | |
| export CC="x86_64-linux-android28-clang --sysroot $SYSROOT" | |
| export CXX="x86_64-linux-android28-clang++ --sysroot $SYSROOT" | |
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
| docker exec -it [container-id] bash |
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
| // delete images | |
| docker rmi $(docker images -q) |
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
| //step1 | |
| cd .repo/manifests | |
| git branch -a | cut -d / -f 3 | |
| // step2 | |
| repo init -u https://android.googlesource.com/platform/manifest -b android-7.0.0_r1 |
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
| sudo add-apt-repository ppa:deadsnakes/ppa | |
| sudo apt update | |
| sudo apt install python3.6 |
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
| import android.app.Activity | |
| import android.content.Context | |
| import android.content.Intent | |
| import android.os.Build | |
| import android.os.Bundle | |
| inline fun <reified T : Any> Context.launchActivity( | |
| options: Bundle? = null, | |
| noinline init: Intent.() -> Unit = {}) { |