Skip to content

Commit

Permalink
Prepare release v1.1.0 (#280)
Browse files Browse the repository at this point in the history
* Updated version number to 1.1.0 and added changelog

* Applied code format
  • Loading branch information
Robert-SD authored Oct 3, 2024
1 parent d01dcd2 commit ae130d4
Show file tree
Hide file tree
Showing 9 changed files with 354 additions and 237 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
## New version
## 1.1.0

* Added support for renaming payment methods in Drop-in.
* 3DS2 cancellations are now resolved as a PaymentCancelledByUser payment result.
* Improved configuration parsing for Google Pay component.
* Improved instantiation of Apple Pay component.

## 1.0.2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class CardAdvancedComponentScreen extends StatelessWidget {
shopperLocale: Config.shopperLocale,
cardConfiguration: const CardConfiguration(
holderNameRequired: true,
addressMode: AddressMode.full
addressMode: AddressMode.full,
),
);

Expand Down
4 changes: 2 additions & 2 deletions ios/Classes/components/card/BaseCardComponent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ class BaseCardComponent: NSObject, FlutterPlatformView, UIScrollViewDelegate {
)
}

private func determineAdditionalViewportSpace () -> CGFloat {
if (isStoredPaymentMethod) {
private func determineAdditionalViewportSpace() -> CGFloat {
if isStoredPaymentMethod {
return 256.0
} else {
return 8.0
Expand Down
20 changes: 10 additions & 10 deletions ios/Classes/utils/AdyenAppearance.swift
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import Adyen

public enum AdyenAppearance {
private static var _dropInStyle: Adyen.DropInComponent.Style = Adyen.DropInComponent.Style()
private static var _cardComponentStyle: Adyen.FormComponentStyle = Adyen.FormComponentStyle()
private static var _dropInStyle: Adyen.DropInComponent.Style = .init()
private static var _cardComponentStyle: Adyen.FormComponentStyle = .init()

public static var dropInStyle: Adyen.DropInComponent.Style {
get { return _dropInStyle }
set { _dropInStyle = newValue }
}
public static var dropInStyle: Adyen.DropInComponent.Style {
get { _dropInStyle }
set { _dropInStyle = newValue }
}

public static var cardComponentStyle: Adyen.FormComponentStyle {
get { return _cardComponentStyle }
set { _cardComponentStyle = newValue }
}
public static var cardComponentStyle: Adyen.FormComponentStyle {
get { _cardComponentStyle }
set { _cardComponentStyle = newValue }
}
}
4 changes: 2 additions & 2 deletions ios/Classes/utils/ConfigurationMapper.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@_spi(AdyenInternal)
import Adyen
import PassKit
import Adyen3DS2.ADYRuntimeError
import PassKit

extension DropInConfigurationDTO {
func createDropInConfiguration(payment: Payment?) throws -> DropInComponent.Configuration {
Expand Down Expand Up @@ -275,7 +275,7 @@ extension PaymentResultEnum {
}

private static func isThree3ds2Cancellation(error: NSError) -> Bool {
return error.domain == ADYRuntimeErrorDomain && error.code == ADYRuntimeErrorCode.challengeCancelled.rawValue
error.domain == ADYRuntimeErrorDomain && error.code == ADYRuntimeErrorCode.challengeCancelled.rawValue
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/src/drop_in/model/drop_in_configuration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ final class DropInConfiguration extends BaseConfiguration {
this.paymentMethodNames,
}) : skipListWhenSinglePaymentMethod =
skipListWhenSinglePaymentMethod ?? false;
}
}
Loading

0 comments on commit ae130d4

Please sign in to comment.