HomeGuidesAPI ReferenceChangelog
Log InChangelog
Guides
Changelog

First time SDK installation

Wallets SDK is available as a signed .aar file in Sharepoint. The Aera Wallets SDK utilizes Aera Secure ID SDK for SCA. To be able to use the Wallets SDK, this peer dependency must also be installed. Secure ID SDK is also available as a signed .aar in Sharepoint. The version must match the version used in the Wallets SDK version. Both .aar files are thus distributed together for each release, together with the release notes.

Installation

  1. Download the newest Wallets SDK version from Sharepoint

  2. Place the Secure ID SDK and Wallets SDK .aar files in your projects lib folder

  3. Add the dependency to your build.gradle.kts file under the dependencies section.

    Example

    implementation(files("./libs/aeraWalletsSDK-debug.aar"))
    implementation(files("./libs/AeraSdk-androidx-release-TEST-signed.aar"))
  4. Gradle sync

Setup

  1. Create a util if necessary*
    import com.aerahost.aerawalletssdk.AeraWalletsFactory
    import com.aerahost.aerawalletssdk.IAeraWalletsSDK
    
    // ...
    
    object WalletsSDKFactoryUtil {
    	@JvmStatic
    	fun get(activity: Activity): IAeraWalletsSDK {
    		if (BuildConfig.DEBUG) {
          return AeraWalletsFactory.getInstance(activity, null)	
        }
        return AeraWalletsFactory.getInstance(activity, PlayDeviceVerification())
    	}
    }

*For PlayDeviceVerification information, see Google Play Integration API.

  1. Initialize the SDK in your activity
    class MainActivity : ComponentActivity() {
      private lateinit var walletsSDK: IAeraWalletsSDK
      	
    	override fun onCreate(savedInstanceState: Bundle?) {
    	super.onCreate(savedInstanceState)
    	walletsSDK = WalletsSDKFactoryUtil.get(this)
    	// ...