Heb12 Android App
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

33 lines
1001 B

  1. # Gradle 8 probably needed to compile correctly
  2. gflag := -Dorg.gradle.java.home=/usr/lib/jvm/java-8-openjdk-amd64
  3. gflag += --info
  4. all:
  5. export ANDROID_HOME=/usr/lib/android-sdk; sudo gradle build $(gflag)
  6. adb:
  7. adb uninstall com.heb12.android
  8. adb install build/outputs/apk/debug/android-debug.apk
  9. adb shell monkey -p 'com.heb12.android' -v 1
  10. clean:
  11. rm -rf .externalNativeBuild .gradle build
  12. setup:
  13. touch local.properties
  14. echo 'sdk.dir=/usr/lib/android-sdk/' > local.properties
  15. echo 'ndk.dir=/usr/lib/android-ndk/' >> local.properties
  16. @echo 'Installing android stuff via apt. (Ctrl+c to stop)'
  17. @read
  18. sudo apt install android-sdk android-sdk-platform-23
  19. sudo apt install google-android-ndk-installer
  20. sudo apt install openjdk-8-jdk
  21. sudo apt install libncurses5
  22. sudo apt install cmake
  23. @echo 'Accepting license..'
  24. git clone https://github.com/Shadowstyler/android-sdk-licenses.git
  25. sudo cp -a android-sdk-licenses/*-license /usr/lib/android-sdk/licenses
  26. rm -rf android-sdk-licenses