[DEV-303712] Update to Trustly Android SDK v4.3.0#20
Open
andresguedes wants to merge 5 commits into
Open
Conversation
There was a problem hiding this comment.
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
compileSdkto 37. - Migrated redirect handling to
net.trustly.android.sdk.views.TrustlyRedirectActivityand removed the app’sRedirectActivity. - 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.
izaccavalheiro-trustly
approved these changes
Jun 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-sdkfrom 4.2.0 to 4.3.0androidx.core:core-ktxfrom 1.17.0 to 1.19.0androidx.browser:browserfrom 1.9.0 to 1.10.0com.google.android.material:materialfrom 1.13.0 to 1.14.0These updates keep the sample aligned with the latest Trustly SDK and current AndroidX/material component versions.
2. Android/Gradle Toolchain Updates
Build-related updates:
compileSdkfrom 36 to 37 (app/build.gradle)build.gradle)gradle/wrapper/gradle-wrapper.properties)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.ui.RedirectActivitynet.trustly.android.sdk.views.TrustlyRedirectActivityapp/src/main/java/net/trustly/trustlysdkdemoandroid/ui/RedirectActivity.ktThis 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-quickstartto:
https://amer.developers.trustly.com/sdks/androidThis ensures the sample points to the current Android SDK documentation path.
File-Level Summary
README.mdapp/build.gradleapp/src/main/AndroidManifest.xmlapp/src/main/java/net/trustly/trustlysdkdemoandroid/ui/RedirectActivity.ktbuild.gradlegradle/wrapper/gradle-wrapper.propertiesRelevant Commits
Requirements
Additional Information