sonosaurus / sonobus

Source code for SonoBus, a real-time network audio streaming collaboration tool.

Home Page:https://sonobus.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Are there any help for compiling Android App?

Darling-Lee opened this issue · comments

As the title suggests,I would like to compile an Android app but have not found any relevant help. Please provide some assistance.

I installed android studio first. https://developer.android.com/studio
The Android build scripts are in mobile/Builds/Android (builddebug.sh, buildrelease.sh).
Run fixup.sh once before building, which copies some required media files.
I found I needed to remove some entries from CMakeLists.txt first: #214
To generate a signing key, I roughly followed this: https://blog.codemagic.io/the-simple-guide-to-android-code-signing/
The build scripts expect the key in $HOME/.android/sonouploadnew.jks so you would do something like
keytool -genkey -v -keystore ~/.android/sonouploadnew.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias SOME_ALIAS
Then, sonoupload_keystore_password=YOURKEYSTOREPASSWORD sonoupload_key_password=YOURKEYPASSWORD sonoupload_key=SOME_ALIAS ./builddebug.sh should generate your apk. It will end up in ./app/build/outputs/apk/debug_/debug/app-debug_-debug.apk
It might be possible to get around the signing somehow, if you only want to test your apk locally. New to Android development myself.