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
-
Download the newest Wallets SDK version from Sharepoint
-
Place the Secure ID SDK and Wallets SDK .aar files in your projects lib folder
-
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")) -
Gradle sync
Setup
- 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.
- 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) // ...
Updated 2 months ago
