Skip to content

Commit 338d731

Browse files
runnerrunner
runner
authored and
runner
committed
Release 1.2.0
1 parent 9b73af7 commit 338d731

File tree

207 files changed

+20328
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+20328
-0
lines changed

.github/workflows/pub_dev_publish.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# DO NOT RUN THIS MANUALLY - THIS GETS RUN AS PART OF A DIFFERENT GH ACTIONS SCRIPT
2+
3+
name: Publish Release to Pub.dev
4+
on:
5+
push:
6+
tags:
7+
- '[0-9]+.[0-9]+.[0-9]+*'
8+
9+
env:
10+
FLUTTER_VERSION: 3.16.1
11+
12+
jobs:
13+
Release-It-To-The-People:
14+
runs-on: macos-13
15+
permissions:
16+
id-token: write
17+
contents: read
18+
steps:
19+
- name: "Test Release Check"
20+
id: test-release-check
21+
run: |
22+
if [[ ${{ github.repository_owner }} == *"ololabs-playground"* ]]
23+
then
24+
echo "is-test=true" >> "$GITHUB_OUTPUT"
25+
else
26+
echo "is-test=false" >> "$GITHUB_OUTPUT"
27+
fi
28+
29+
- name: "Checkout Project"
30+
uses: actions/checkout@v3
31+
32+
- name: Setup Flutter
33+
uses: flutter-actions/setup-flutter@v2.3
34+
with:
35+
channel: stable
36+
version: ${{ env.FLUTTER_VERSION }}
37+
38+
- name: "Install Flutter Dependencies"
39+
run: |
40+
flutter pub get
41+
42+
- name: "Publish Dry Run"
43+
if: ${{ steps.test-release-check.outputs.is-test == 'true' }}
44+
run: |
45+
flutter pub publish --dry-run
46+
47+
- name: "Publish Release"
48+
if: ${{ steps.test-release-check.outputs.is-test == 'false' }}
49+
run: flutter pub publish --force
50+

CHANGELOG.md

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
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)

LICENSE

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
**Olo Pay Software Development Kit License Agreement**
2+
3+
Copyright © 2022 Olo Inc. All rights reserved.
4+
5+
Subject to the terms and conditions of the license, you are hereby granted a non-exclusive, worldwide, royalty-free license to (a) copy and modify the software in source code or binary form for your use in connection with the software services and interfaces provided by Olo, and (b) redistribute unmodified copies of the software to third parties. The above copyright notice and this license shall be included in or with all copies or substantial portions of the software.
6+
7+
Your use of this software is subject to the Olo APIs Terms of Use, available at https://www.olo.com/api-usage-terms. This license does not grant you permission to use the trade names, trademarks, service marks, or product names of Olo, except as required for reasonable and customary use in describing the origin of the software and reproducing the content of this license.
8+
9+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10+

0 commit comments

Comments
 (0)