Skip to content

[DEV-303712] Update to Trustly Android SDK v4.3.0#20

Open
andresguedes wants to merge 5 commits into
mainfrom
DEV-303712-update_v4.3.0
Open

[DEV-303712] Update to Trustly Android SDK v4.3.0#20
andresguedes wants to merge 5 commits into
mainfrom
DEV-303712-update_v4.3.0

Conversation

@andresguedes

@andresguedes andresguedes commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Description

This pull request upgrades the sample project to align with Trustly Android SDK v4.3.0 and migrates the redirect handling from an app-owned activity to the SDK-owned redirect activity.

The update includes dependency and build toolchain modernization required for compatibility, plus a small README link correction to keep documentation current.


Scope of Changes

1. SDK and App Dependency Upgrades

Updated dependencies in app/build.gradle:

  • net.trustly:trustly-android-sdk from 4.2.0 to 4.3.0
  • androidx.core:core-ktx from 1.17.0 to 1.19.0
  • androidx.browser:browser from 1.9.0 to 1.10.0
  • com.google.android.material:material from 1.13.0 to 1.14.0

These updates keep the sample aligned with the latest Trustly SDK and current AndroidX/material component versions.

2. Android/Gradle Toolchain Updates

Build-related updates:

  • compileSdk from 36 to 37 (app/build.gradle)
  • Android Gradle Plugin from 9.0.0 to 9.2.1 (build.gradle)
  • Gradle wrapper from 9.3.1 to 9.6.0 (gradle/wrapper/gradle-wrapper.properties)
  • Added mavenLocal() repository (settings.gradle)

These changes keep the project build environment up to date and compatible with newer dependencies.

3. Redirect Flow Migration to SDK

Redirect flow changes:

  • AndroidManifest.xml
    • Replaced:
      • .ui.RedirectActivity
    • With:
      • net.trustly.android.sdk.views.TrustlyRedirectActivity
  • Removed local activity implementation:
    • app/src/main/java/net/trustly/trustlysdkdemoandroid/ui/RedirectActivity.kt

This removes app-level workaround logic and delegates redirect handling to the SDK-native implementation.

4. Documentation Update

In README.md, updated the Trustly SDK quickstart/docs link from:

  • https://amer.developers.trustly.com/payments/docs/android-quickstart

to:

  • https://amer.developers.trustly.com/sdks/android

This ensures the sample points to the current Android SDK documentation path.


File-Level Summary

File Change Type Summary
README.md Modified Updated Android SDK documentation URL
app/build.gradle Modified Upgraded SDK/dependencies; compileSdk 37
app/src/main/AndroidManifest.xml Modified Switched redirect activity to SDK class
app/src/main/java/net/trustly/trustlysdkdemoandroid/ui/RedirectActivity.kt Deleted Removed app-local redirect handling activity
build.gradle Modified Upgraded Android Gradle Plugin to 9.2.1
gradle/wrapper/gradle-wrapper.properties Modified Upgraded Gradle wrapper to 9.6.0

Relevant Commits

  • Updating dependencies
  • Updating trustly sdk to v4.3.0
  • Removing local redirect activity and using SDKs redirect flow

Requirements

  • Changes were properly tested (attach evidence if applicable)
  • Repository's code-style/linting compliant

Additional Information

  • Jira: DEV-303712
  • Net diff summary:
    • 7 files changed
    • 11 insertions
    • 31 deletions

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the sample app to align with Trustly Android SDK v4.3.0, modernizes the Gradle/Android toolchain for compatibility, and migrates redirect/deeplink handling from an app-owned activity to the SDK-owned redirect activity.

Changes:

  • Upgraded Trustly SDK and related AndroidX/Material dependencies; bumped compileSdk to 37.
  • Migrated redirect handling to net.trustly.android.sdk.views.TrustlyRedirectActivity and removed the app’s RedirectActivity.
  • Updated Gradle/AGP wrapper versions and refreshed the README documentation link.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
settings.gradle Adds mavenLocal() to dependency resolution repositories.
README.md Updates the Trustly Android SDK documentation link.
gradle/wrapper/gradle-wrapper.properties Updates Gradle wrapper distribution to 9.6.0.
build.gradle Updates Android Gradle Plugin version to 9.2.1.
app/src/main/java/net/trustly/trustlysdkdemoandroid/ui/RedirectActivity.kt Removes app-owned redirect activity implementation.
app/src/main/AndroidManifest.xml Points redirect intent-filter to the SDK’s redirect activity.
app/build.gradle Updates dependencies (including Trustly SDK v4.3.0) and bumps compileSdk to 37.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread settings.gradle
@andresguedes andresguedes changed the title [DEV-303712] Update to use Trustly Android SDK v4.3.0 [DEV-303712] Update to Trustly Android SDK v4.3.0 Jun 26, 2026
@andresguedes andresguedes requested a review from Copilot June 26, 2026 13:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

Comment thread app/src/main/AndroidManifest.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

3 participants