From d8fdc3c4fb2cefc272cde4559f6b91b7b09afb4e Mon Sep 17 00:00:00 2001 From: vladimir Date: Fri, 8 Dec 2023 15:52:02 +0100 Subject: [PATCH 1/6] chore: migrate iOS to v5 --- .gitignore | 3 +- adyen-react-native.podspec | 2 +- android/build.gradle | 17 +- docs/v2-MigrationGuide.md | 3 +- example/ios/Podfile.lock | 168 +++--------------- ios/Components/AdyenApperance.swift | 3 +- ios/Components/AdyenDropIn.swift | 47 ++--- ios/Components/ApplePayComponent.swift | 8 +- ios/Components/BaseModule.swift | 2 +- ios/Components/InstantComponent.swift | 8 +- .../ApplepayConfigurationParser.swift | 25 +-- .../CardConfigurationParser.swift | 38 +++- .../DropInConfigurationParser.swift | 5 +- ios/Helpers/Environment.swift | 5 +- 14 files changed, 129 insertions(+), 205 deletions(-) diff --git a/.gitignore b/.gitignore index 0dcd6a0da..22510b3bd 100644 --- a/.gitignore +++ b/.gitignore @@ -13,7 +13,7 @@ .VolumeIcon.icns # Xcode -build/ +[bB]uild/ *.pbxuser !default.pbxuser *.mode1v3 @@ -31,6 +31,7 @@ DerivedData *.xcuserstate project.xcworkspace Pods/ +*.xcode.env # Android/IJ .idea diff --git a/adyen-react-native.podspec b/adyen-react-native.podspec index b55529d64..f6b6d49db 100644 --- a/adyen-react-native.podspec +++ b/adyen-react-native.podspec @@ -16,6 +16,6 @@ Pod::Spec.new do |s| s.dependency "React-Core" - s.dependency "Adyen", '4.11.1' + s.dependency "Adyen", '5.4.1' end diff --git a/android/build.gradle b/android/build.gradle index e54f84559..6794a68e5 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -3,16 +3,17 @@ def safeExtGet(prop, fallback) { } buildscript { - rootProject.ext.adyenReactNativeRedirectScheme = "adyenreactnative" + rootProject.ext.adyenReactNativeRedirectScheme = "adyenreactnative" + ext.kotlin_version = rootProject.ext.has('kotlin_version') ? rootProject.ext.get('kotlin_version') : '1.9.10' - repositories { - google() - jcenter() - } + repositories { + google() + jcenter() + } - dependencies { - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } + dependencies { + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } } apply plugin: 'com.android.library' diff --git a/docs/v2-MigrationGuide.md b/docs/v2-MigrationGuide.md index 5db435ef1..49a71f382 100644 --- a/docs/v2-MigrationGuide.md +++ b/docs/v2-MigrationGuide.md @@ -2,9 +2,8 @@ ## Breacking changes -* Merchant's app theme must be decendent of `Theme.MaterialComponents` to operate with "instant" payment components (ex. Paypal, Klarna) +* Merchant's app theme must be decendent of `Theme.MaterialComponents` to operate with "instant" payment components (ex. Paypal, Klarna). Example: ```xml -