Getting Started

The following steps must be followed before integrating the Samsung Blockchain Keystore SDK:

  1. 1.

    Check your development environment.

    • Android minimum API level for Samsung Blockchain Platform SDK : 24

    • Android minimum API level for Samsung Blockchain Keystore : 28

    Note

    Samsung Blockchain Keystore is compatible with selected Samsung devices only.

     

    Using another external cold wallet like a Ledger’s device, the API level 24 will be enough.

     

    Minimum build level for Samsung Blockchain Platform SDK is 21, but will properly work from level 24.

    Samsung Blockchain Platform SDK requires Samsung Blockchain Keystore that is higher than 1.2.0.

  2. 2.

    Download the Samsung Blockchain Keystore aar file.

  3. 3.

    Configure your IDE to integrate Samsung Blockchain Keystore with your Android app.

  4. 4.

    Create an “aar” directory if you don’t have one, and add the BlockchainPlatformSDK_v1.0.00.aar and KeystoreSDK_v1.2.0.aar to ”aar” directory in your Android project.

  5. 5.

    Go to Gradle Scripts > build.gradle and enter the following dependencies:

    dependencies {
        repositories {
            flatDir{
                dirs 'aar'
            }
        }
    
    implementation name: 'BlockchainPlatformSDK_v1.0.00', ext: 'aar'
    
    // network
    implementation 'com.squareup.retrofit2:retrofit:2.6.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.6.0'
    implementation 'com.squareup.okhttp3:logging-interceptor:3.8.0'
    implementation 'com.google.code.gson:gson:2.8.5'
    
    // KeyStore SDK
    implementation name: 'KeystoreSDK_v1.2.0', ext: 'aar'
    
    // web3j
    implementation 'org.web3j:core:4.2.0-android'
     
    // for check developer mode
    implementation 'org.ini4j:ini4j:0.5.4'
    
    // ledger
    implementation 'com.ledger.lib:ledger-android-library:1.0.0' 
    
    // dagger
    implementation 'com.google.dagger:dagger:2.21'
    annotationProcessor 'com.google.dagger:dagger-compiler:2.21'
    
    }
  6. 6.

    Import the package into your code.

    import com.samsung.android.sdk.blockchain.*;