Repository navigation
4.0.0-beta.2
Pre-release
Pre-release
·
17 commits
to main
since this release
Pre-release from main: not for production.
Added
PaymentTextStyle.fontFamilytakes a font the app ships (PaymentFontFamily);nullkeeps the system font.
Changed
- iOS: the checkout and the card scanner screens are SwiftUI instead of Compose Multiplatform. The framework no longer
carries the Compose and Skia runtime: the strippedsdk_payment_scannerbinary drops from about 39 MB to about 9 MB
and the zipped XCFramework from 71 MB to 22 MB.PayrdrCheckout, the SwiftUI modifier and the results are unchanged. - The theme no longer uses Compose types, so the same
PaymentTheme.Customworks on both platforms: colours are
PaymentColor(ARGB), text stylesPaymentTextStyle(size, weight, line height, letter spacing, tabular figures)
and cornersPaymentCorners(RadiusorPill). On Android,PaymentColors(...)andPaymentTypography(...)
overloads take ComposeColorandTextStyle, andColor.toPaymentColor(),PaymentColor.toColor()and
TextStyle.toPaymentTextStyle()convert single values; iOS apps build the theme fromPaymentColorvalues.
Fixed
- After a card was added (a save-card-only session), the next payment sheet opened as "New card" and switched to the
saved cards a moment later: the add-card session overwrote the remembered card count used for the skeleton. It no
longer does. - iOS: a step whose content had not been measured yet no longer makes the sheet jump up for one frame.
Install
- iOS: Swift Package Manager,
https://github.com/Radarpayments/mobile-sdk, exact version4.0.0-beta.2, productPayrdrSDK
(import sdk_payment_scanner); or embedsdk_payment_scanner.xcframeworkfrom the zip below. - Android:
implementation("io.github.radarpayments:sdk-payment:4.0.0-beta.2")from Maven Central; the AARs below are the
same libraries to download (their dependencies are listed in the POMs on Maven Central). - Flutter
1.0.0-beta.2: unpackpayrdr-flutter-sdk-1.0.0-beta.2.tar.gz(apayrdr_sdkfolder) and depend on it bypath. - React Native
1.0.0-beta.2:npm install ./payrdr-react-native-sdk-1.0.0-beta.2.tgz.
The plugins' Android part takes the SDK from Maven Central.