The following steps must be followed before integrating the Samsung Blockchain Keystore SDK:
Prepare a device for development. Please refer to the Keystore SDK Restrictions section for the list of devices that support Samsung Blockchain Keystore.
Download the Samsung Blockchain Keystore aar file.
Configure your IDE to integrate Samsung Blockchain Keystore with your Android app.
Create an “aar” directory if you don’t have one. Add the downloaded Keystore aar file to the “aar” directory in your Android project.
Go to Gradle Scripts > build.gradle and enter the following dependencies:
dependencies { repositories { flatDir{ dirs 'aar' } } implementation 'com.samsung.android.sdk.coldwallet:KeystoreSDK_v1.5.1@aar' }
import com.samsung.android.sdk.coldwallet.*;
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.samsung.android.sdk.coldwallet.test" android:versionCode="1" android:versionName="1.0"> <application> <meta-data android:name="scw_app_id" android:value= <!-- PUT YOUR APP ID HERE --> /> </application> </manifest>
Samsung Blockchain Keystore provides a “Developer Mode” to help developers test the Samsung Blockchain Keystore. In Developer Mode, the App ID verification is bypassed, so Samsung Blockchain Keystore APIs will be enabled.
Developers can activate Developer Mode by following the steps below:
Go to the Samsung Blockchain Keystore . Device > Settings > Biometrics and security > Samsung Blockchain Keystore (The path may differ depending on the device model.)
General > About Blockchain Keystore
Tap the “Samsung Blockchain Keystore” area quickly 10 times or more.
If succeeded, "(Developer Mode)" will be shown before the version and it means the Developer Mode has been activated.
Now you can test your app with Samsung Blockchain Keystore.
Take note, that only a limited number of devices can be activated for one test app.