https://github.com/arcblock/walletkit-android-helper
This repo will show you how to create a wallet with ArcBlock WalletKit.
https://github.com/arcblock/walletkit-android-helper
Last synced: 8 months ago
JSON representation
This repo will show you how to create a wallet with ArcBlock WalletKit.
- Host: GitHub
- URL: https://github.com/arcblock/walletkit-android-helper
- Owner: ArcBlock
- Created: 2020-09-26T02:08:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-20T13:50:31.000Z (over 5 years ago)
- Last Synced: 2025-02-22T18:50:58.238Z (over 1 year ago)
- Language: Kotlin
- Size: 135 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## ArcBlock WalletKit Android Helper
This repo will show you how to create a wallet with ArcBlock WalletKit.
## Step 1: Config Dependencies
Add maven repository
```
allprojects {
repositories {
....
maven {
url "http://android-docs.arcblock.io/release"
}
}
}
```
Then add dependencies
```
implementation("com.google.protobuf:protobuf-java:3.6.1")
implementation("com.arcblock.corekit:absdkcorekit:0.4.1"){
exclude module: "jsr305"
exclude module: "jsr250-api"
exclude module: 'jackson-core'
exclude module: 'jackson-annotations'
exclude module: 'jackson-databind'
}
implementation("io.arcblock.walletkit:chainkit:0.4.14")
implementation("io.arcblock.walletkit:walletkit:0.4.15") {
exclude module: 'protobuf-lite'
exclude group: 'com.google.protobuf'
exclude module: 'jackson-core'
exclude module: 'jackson-annotations'
exclude module: 'jackson-databind'
exclude group: 'org.ow2.asm'
}
```
Add packagingOptions
> This will fix INSTALL_FAILED_NO_MATCHING_ABIS error
```
android{
...
packagingOptions {
exclude 'lib/x86_64/darwin/libscrypt.dylib'
exclude 'lib/x86_64/freebsd/libscrypt.so'
exclude 'lib/x86_64/linux/libscrypt.so'
}
}
```
## Step2: Config AndroidManifest.xml
```
```
## Step3: View The Demo Code
[Demo Code](./app/src/main/java/com/arcblock/whepler/MainActivity.kt)