Skip to content

Threeds2Component theme migration - AdyenTheme to ADYAppearanceConfiguration#2462

Merged
robertdalmeida merged 18 commits intodevelopfrom
chore/threeds-theme-migration
Mar 30, 2026
Merged

Threeds2Component theme migration - AdyenTheme to ADYAppearanceConfiguration#2462
robertdalmeida merged 18 commits intodevelopfrom
chore/threeds-theme-migration

Conversation

@robertdalmeida
Copy link
Copy Markdown
Contributor

@robertdalmeida robertdalmeida commented Mar 25, 2026

Summary [Required]

  • An initial version to migrate AdyenTheme to ADYAppearanceConfiguration. -> The ADYAppearanceConfigurationBuilder : Note this is not perfect and finalized, there is still some dicussions i need to have with Android and Arjen about this mapping, and it is based on best effort right now. Will iterate on this, but those changes can be more targeted and specific.

  • Passing AdyenTheme to ThreeDS2Component, even in the default configuration - i think theme is minimally required. @erenbesel please confirm this part specifically.

  • Took the liberty to add a test app configuration to switch some themes. I can remove this if not required, but thought this would be something good to have for the test app in general. Especially during development.

Demo [Required for UI changes]

Simulator.Screen.Recording.-.co-v6-.16+.26.1.-.2026-03-25.at.15.42.44.mov
Simulator.Screen.Recording.-.co-v6-.16+.26.1.-.2026-03-25.at.15.43.46.mov
Simulator.Screen.Recording.-.co-v6-.16+.26.1.-.2026-03-25.at.15.47.36.mov
Simulator.Screen.Recording.-.co-v6-.16+.26.1.-.2026-03-25.at.15.49.00.mov

Ticket [Optional]

COSDK-1099

Checklist [Required]

  • Tested changes locally

…eConfiguration

Replace ADYAppearanceConfiguration parameter with AdyenTheme across all ThreeDS2 action handlers and components. Add appearanceConfigurationFromAdyenTheme conversion function (currently returns default configuration). Remove appearanceConfiguration from ThreeDS2ActionConfiguration as it's now derived from theme.
…ppearance configuration

Introduce ADYAppearanceConfigurationBuilder that transforms AdyenTheme into ADYAppearanceConfiguration for the 3DS2 SDK. Replace appearanceConfiguration parameter with theme across all ThreeDS2 action handlers and components. Update FingerprintServiceParameters to use AdyenTheme instead of ADYAppearanceConfiguration. The builder maps colors, fonts, and styles from AdyenTheme to corresponding 3DS2 SDK appearance properties,
Change infoAppearance.headingFont and infoAppearance.headingTextColor to use labels.body instead of labels.title for consistency with the text properties.
@robertdalmeida robertdalmeida self-assigned this Mar 25, 2026
@robertdalmeida robertdalmeida added the chore a pull request that has chore changes that shouldn't be in the release notes label Mar 25, 2026
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 25, 2026

ℹ️ No baseline data found for 'develop'.

Framework Size
AdyenComponents.framework 2828 KB
AdyenActions.framework 2413 KB
AdyenDropIn.framework 1361 KB
AdyenDelegatedAuthentication.framework 98 KB
AdyenAuthentication.framework 347 KB
AdyenWeChatPay.framework 266 KB
AdyenUI.framework 3347 KB
AdyenCardScanner.framework 699 KB
AdyenEncryption.framework 508 KB
AdyenSession.framework 754 KB
AdyenTwint.framework 282 KB
AdyenWeChatPayInternal.framework 4135 KB
AdyenCheckout.framework 2096 KB
AdyenCashAppPay.framework 1779 KB
AdyenCard.framework 1753 KB
TwintSDK.framework 97 KB
Adyen3DS2.framework 919 KB
Adyen.framework 5063 KB
total 28745 KB

@robertdalmeida robertdalmeida changed the title Threeds2Component theme migration Threeds2Component theme migration - AdyenTheme to ADYAppearanceConfiguration Mar 25, 2026
@robertdalmeida robertdalmeida marked this pull request as ready for review March 26, 2026 11:52
Comment thread AdyenUI/AdyenTheme.swift
@github-actions
Copy link
Copy Markdown
Contributor

⚠️ 1 public change detected ⚠️

Comparing chore/threeds-theme-migration to develop

🔀1 Modification

AdyenActions

ThreeDS2ActionConfiguration

🔀 Modified

// From
public init()

// To
public init(theme: AdyenUI.AdyenTheme = .default)

/**
Changes:
- Added parameter `theme: AdyenUI.AdyenTheme = .default`
*/

Analyzed targets: Adyen, AdyenActions, AdyenCard, AdyenCardScanner, AdyenCashAppPay, AdyenCheckout, AdyenComponents, AdyenDelegatedAuthentication, AdyenDropIn, AdyenEncryption, AdyenSession, AdyenSwiftUI, AdyenTwint, AdyenUI, AdyenWeChatPay

Copy link
Copy Markdown
Contributor

@erenbesel erenbesel left a comment

Choose a reason for hiding this comment

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

🚀

@atmamont
Copy link
Copy Markdown
Contributor

Great effort
Thanks for adding switchable themes to the Demo app! 💪

@robertdalmeida robertdalmeida merged commit ecd6bd4 into develop Mar 30, 2026
15 of 16 checks passed
@robertdalmeida robertdalmeida deleted the chore/threeds-theme-migration branch March 30, 2026 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore a pull request that has chore changes that shouldn't be in the release notes size:large

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants