Updating the Android SDK

  Last updated: 

When the Android SDK is updated, we highly recommend you update to the latest version as soon as possible to receive all the latest feature and security updates.
 

Maven

When integrating our SDK Artefacts as a dependency from Maven, you will need to update the following dependencies in your app-level build.gradle file:

// Trust Payments SDK core dependency
implementation 'com.trustpayments.mobile:core:<latest_version>'

// Optional UI module providing ready-to-use "drop-in" view
implementation 'com.trustpayments.mobile:ui:<latest_version>'

In your top-level project, you must include the below Cardinal SDK dependency, which is privately hosted in our Gitlab repository. To successfully download the dependency, you will be required to contact our Support Team for a read access token.

For example, when building an Android app with Gradle, you would reference the Cardinal SDK dependency from Maven in your build.gradle file and replace <gitlab_token> with the read access token provided by our Support Team:

allprojects {
  repositories {
    google()
    ...
    maven {
      url "https://gitlab.com/api/v4/projects/56100229/packages/maven"
      name "GitLab"
      credentials(HttpHeaderCredentials) {
        name = "Private-Token"
        value = <gitlab_token>
      }
      authentication {
        header(HttpHeaderAuthentication)
      }
    }
  }
}
Was this article helpful?
0 out of 0 found this helpful