-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
2,584 additions
and
566 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,5 @@ Dockerfile | |
makefile | ||
|
||
vendor | ||
bin | ||
bin | ||
libwallet/instantswap/instant.json |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Building Cryptopower Wallet for Mobile | ||
|
||
This readme assumes you have a working Android or iOS environment. | ||
|
||
## 1. Building for Android | ||
|
||
Note: To build Cryptopower for Android, you need to have; | ||
|
||
1. gogio | ||
2. [Android SDK with NDK bundle](https://developer.android.com/tools) | ||
3. 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](https://gioui.org/doc/install/android) 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: | ||
|
||
#### mainnet | ||
`gogio -target android .` | ||
|
||
#### testnet | ||
`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` | ||
|
||
## 2. Building for iOS | ||
|
||
Note: To build Cryptopower for iOS, you need to have; | ||
|
||
1. gogio | ||
2. [Xcode](https://developer.apple.com/xcode/) | ||
|
||
Proceed to the [gioui iOS doc](https://gioui.org/doc/install/ios) 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: | ||
|
||
#### mainnet | ||
`gogio -o cryptopower.app -target ios .` | ||
|
||
#### testnet | ||
`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` |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"trocador": "your_trocador_api_key", | ||
"changenow": "your_changenow_api_key", | ||
"godex": "your_godex_api_key" | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ package main | |
|
||
// OS-specific variables for non-android OS. | ||
|
||
var isAndroidOS = false | ||
const isAndroidOS = false |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ package main | |
|
||
// OS-specific variables for android OS. | ||
|
||
var isAndroidOS = true | ||
const isAndroidOS = true |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.