Install
Installation
Add mavenCentral() repository to the project level (root level) build.gradle file:
allprojects {
repositories {
mavenCentral()
}
}
Add dependency in module level build.gradle file:
build.gradle
dependencies {
implementation "io.github.FNCYchain:fncy-wallet-android-sdk:$latest_version"
}
build.gradle.kts
dependencies {
implementation("io.github.FNCYchain:fncy-wallet-android-sdk:$latestVersion")
}
Add permission and meta-data(API Key, Base URL) in AndroidManifest.xml:
<uses-permission android:name="android.permission.INTERNET"/>
<application
...
<!-- meta-data's The key value must be written as follows -->
<meta-data
android:name="com.metaverse.world.fncy.ApiKey"
android:value="@string/api_key"/>
<meta-data
android:name="com.metaverse.world.fncy.BaseUrl"
android:value="@string/base_url"/>
</application>
Add the following options to the proguard-rules.pro file:
-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation
-keep class com.metaverse.world.wallet.sdk.model.** { *; }
-keep class com.metaverse.world.wallet.sdk.repository.network.** { *; }