This readme assumes you have a working Android or iOS environment.
Note: To build Cryptopower for Android, you need to have;
- gogio
- Android SDK with NDK bundle
- The ANDROID_SDK_ROOT point to the SDK root directory e.g
export ANDROID_SDK_ROOT=$HOME/.local/share/Android/Sdk
Proceed to the gioui Android doc for more info regarding gogio and other dependencies you will be needing.
execute the command below in a terminal window to install gogio:
go install gioui.org/cmd/gogio@latest
cd to the cryptopower root directory and execute the command below to generate a .apk file:
gogio -target android .
gogio -target android . --network=testnet
there should now be a cryptopower.apk file in the cryptopower root directory. You can send this file to your android device and install it.
or to send it to your device automatically, execute the command below:
adb install cryptopower.apk
Note: To build Cryptopower for iOS, you need to have;
- gogio
- Xcode
Proceed to the gioui iOS doc for more info regarding gogio and other dependencies you will be needing.
execute the command below in a terminal window to install gogio:
go install gioui.org/cmd/gogio@latest
cd to the cryptopower root directory and execute the command below to generate a .app file:
gogio -o cryptopower.app -target ios .
gogio -o cryptopower.app -target ios . --network=testnet
there should now be a cryptopower.app file in the cryptopower root directory. You can send this file to your iOS simulator.
or to send it to your simulator automatically, execute the command below:
xcrun simctl install booted cryptopower.app