|
| 1 | +# Olo Pay Flutter SDK Changelog |
| 2 | + |
| 3 | +## v1.2.0 (Aug 6, 2024) |
| 4 | + |
| 5 | +### Updates |
| 6 | +- `CardDetailsSingleLineTextField`: Added ability to set alignment of the built in error message with `errorAlignment` |
| 7 | +- `CardDetailsSingleLineTextField`: Changed default `maxHeight` to `45` |
| 8 | +- `CardDetailsSingleLineTextField`: Changed default `errorMarginTop` to `8.0` |
| 9 | +- Deprecated `ErrorCodes.missingParameter`: All previous usages have changed to `ErrorCodes.InvalidParameter` |
| 10 | +- Introduce `CvvTextField` widget for CVV tokenization. |
| 11 | + |
| 12 | +### Dependency Updates |
| 13 | +- Native SDKs |
| 14 | + - Updated to use [Olo Pay Android SDK v3.1.1](https://github.com/ololabs/olo-pay-android-sdk-releases/releases/tag/3.1.1) |
| 15 | + - Updated to use [Olo Pay iOS SDK v4.0.2](https://github.com/ololabs/olo-pay-ios-sdk-releases/releases/tag/4.0.2) |
| 16 | + |
| 17 | +- Android Project |
| 18 | + - Updated to Gradle v8.2 |
| 19 | + - Updated to Java v17 |
| 20 | + - Updated to `com.android.tools.build:gradle:8.2.2` |
| 21 | + - Updated to `androidx.core:core-ktx:1.13.1` |
| 22 | + - Updated to `org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1` |
| 23 | + - Updated to `com.google.android.material:material:1.12.0` |
| 24 | + |
| 25 | +### Bug Fixes |
| 26 | +- `CardDetailsSingleLineTextField`: Fix bug causing slight difference between the default input text error state color and the default error message color. |
| 27 | +- `CardDetailsSingleLineTextField`: Fixed constraints so that the text input widget height properly expands/shrinks to match the height specified by the constructor parameters |
| 28 | + |
| 29 | +## v1.1.0 (Mar 26, 2024) - First Public Release |
| 30 | + |
| 31 | +### Breaking Changes |
| 32 | +- `OloPaySetupParameters`: Removed `freshSetup` parameter |
| 33 | + |
| 34 | +### Updates |
| 35 | +- `CardDetailsSingleLineTextField`: Added built-in error message label to automatically display error messages |
| 36 | +- `CardDetailsSingleLineTextField`: Added `errorStyles` property to style the built-in error message label |
| 37 | +- `CardDetailsSingleLineTextField`: Added `displayErrorMessages` property to control visibility of the error message label |
| 38 | +- `CardDetailsSingleLineTextField`: Added custom error message support via the `customErrorMessages` property |
| 39 | +- `CardDetailsSingleLineTextField`: Added support for custom fonts via `TextStyles` |
| 40 | +- `CardDetailsSingleLineTextField`: Fixed issue on iOS sometimes causing duplicate error messages to display |
| 41 | +- `OloPaySdk`: Added `getFontNames()` for help with debugging custom font issues on iOS |
| 42 | +- `OloPaySdk`: Changed `isDigitalWalletReady()` on iOS so it returns false if the SDK isn't initialized to align with Android behavior |
| 43 | +- `TextStyles`: Added `fontAsset` and `iOSFontName` properties |
| 44 | + |
| 45 | +## v1.0.1 (Feb 7, 2024) |
| 46 | + |
| 47 | +### Bug Fixes |
| 48 | +- `CardDetailsSingleLineTextField`: Fix small edge case preventing `textStyles` and `paddingStyles` from respecting theme values |
| 49 | +- `CardType`: Fix typo causing Mastercard cards to map to `CardType.unknown` |
| 50 | + |
| 51 | +### Updates |
| 52 | +- `TextStyles`: Fixed incorrect documentation for `merge()` |
| 53 | +- `TextStyles`: Added `defaultCursorColor` property |
| 54 | + |
| 55 | +## v1.0.0 (Jan 26, 2024) |
| 56 | + |
| 57 | +### Updates |
| 58 | +- ReadMe updates |
| 59 | + |
| 60 | +## v0.3.0 (Jan 17, 2024) |
| 61 | + |
| 62 | +### Breaking Changes |
| 63 | +- Consolidate import statements so only one is required |
| 64 | +- Renamed classes and types for clarity |
| 65 | + - `PaymentCardDetailsSingleLineWidget` --> `CardDetailsSingleLineTextField` |
| 66 | + - `PaymentCardDetailsSingleLineWidgetController` --> `CardDetailsSingleLineTextFieldController` |
| 67 | + - `PaymentCardDetailsSingleLineWidgetControllerCreated` --> `CardDetailsSingleLineTextFieldControllerCreated` |
| 68 | + - `PaymentCardDetailsSingleLineWidgetOnErrorMessageChanged` --> `CardDetailsErrorMessageChanged` |
| 69 | + - `PaymentCardDetailsSingleLineWidgetOnInputChanged` --> `CardDetailsInputChanged` |
| 70 | + - `PaymentCardDetailsSingleLineWidgetOnValidStateChanged` --> `CardDetailsValidStateChanged` |
| 71 | + - `PaymentCardDetailsSingleLineWidgetOnFocusChanged` --> `CardDetailsFocusChanged` |
| 72 | +- `PaymentMethod.cardType`: Changed type from `String` to `CardType` |
| 73 | +- Updated all data classes to use `final` properties and `const` constructors |
| 74 | + - `OloPaySetupParameters` |
| 75 | + - `GooglePaySetupParameters` |
| 76 | + - `ApplePaySetupParameters` |
| 77 | + - `DigitalWalletPaymentParameters` |
| 78 | + - `GooglePayVendorParameters` |
| 79 | + - `PaymentMethod` |
| 80 | + - `CardFieldState` |
| 81 | + - `Hints` |
| 82 | + - `TextStyles` |
| 83 | + - `BackgroundStyles` |
| 84 | + - `PaddingStyles` |
| 85 | + |
| 86 | +### Updates |
| 87 | +- Change minimum iOS version to iOS 13 |
| 88 | +- `CardDetailsSingleLineTextField`: Add support for light/dark themes |
| 89 | +- `CardDetailsSingleLineTextField`: Add explicit default styles |
| 90 | +- `CardDetailsSingleLineTextField`: Add support for updating styles based on state changes |
| 91 | + |
| 92 | + |
| 93 | +## v0.2.0 (Dec 21, 2023) |
| 94 | + |
| 95 | +### Breaking Changes |
| 96 | +- `OloPaySdk.initializeOloPay()`: Changed from positional to named parameters |
| 97 | +- `PaymentCardDetailsSingleLineWidgetControllerCreated`: Moved typedef to `data_types.dart` |
| 98 | +- `PaymentCardDetailsSingleLineWidget`: Changed `onControllerCreated` to a required parameter |
| 99 | + |
| 100 | +### Updates |
| 101 | +- `PaymentCardDetailsSingleLineWidget`: Background and text styling support |
| 102 | +- `PaymentCardDetailsSingleLineWidget`: Added event handlers for error message changes, valid state changes, and input changes |
| 103 | +- `PaymentCardDetailsSingleLineWigetController`: Additional methods for controlling/interacting with the widget |
| 104 | +- Digital Wallet Support (Apple Pay & Google Pay) |
| 105 | + |
| 106 | + |
| 107 | +## v0.1.0 (Dec 11, 2023) |
| 108 | + |
| 109 | +### Initial Release |
| 110 | +- Use `PaymentCardDetailsSingleLineWidget` to display a single line card input widget |
| 111 | +- Use `PaymentCardDetailsSingleLineWidgetController.createPaymentMethod` to create a payment method based on user-entered card details |
| 112 | +- Uses [Olo Pay Android SDK v3.0.0](https://github.com/ololabs/olo-pay-android-sdk-releases/releases/tag/v3.0.0-full) |
| 113 | +- Uses [Olo Pay iOS SDK v4.0.0](https://github.com/ololabs/olo-pay-ios-sdk-releases/releases/tag/v4.0.0) |
0 commit comments