diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle
index 71aae1c..375876f 100644
--- a/example/android/app/build.gradle
+++ b/example/android/app/build.gradle
@@ -44,7 +44,7 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.payu.flutter.demo"
- minSdkVersion 19
+ minSdkVersion flutter.minSdkVersion
targetSdkVersion 33
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
diff --git a/example/ios/Flutter/AppFrameworkInfo.plist b/example/ios/Flutter/AppFrameworkInfo.plist
index 9625e10..7c56964 100644
--- a/example/ios/Flutter/AppFrameworkInfo.plist
+++ b/example/ios/Flutter/AppFrameworkInfo.plist
@@ -21,6 +21,6 @@
CFBundleVersion
1.0
MinimumOSVersion
- 11.0
+ 12.0
diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock
index 444b4c9..42c8a1d 100644
--- a/example/ios/Podfile.lock
+++ b/example/ios/Podfile.lock
@@ -1,7 +1,8 @@
PODS:
- Flutter (1.0.0)
- - path_provider_ios (0.0.1):
+ - path_provider_foundation (0.0.1):
- Flutter
+ - FlutterMacOS
- payu_mobile_payments_ios (0.0.1):
- Flutter
- url_launcher_ios (0.0.1):
@@ -11,7 +12,7 @@ PODS:
DEPENDENCIES:
- Flutter (from `Flutter`)
- - path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`)
+ - path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
- payu_mobile_payments_ios (from `.symlinks/plugins/payu_mobile_payments_ios/ios`)
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
- webview_flutter_wkwebview (from `.symlinks/plugins/webview_flutter_wkwebview/ios`)
@@ -19,8 +20,8 @@ DEPENDENCIES:
EXTERNAL SOURCES:
Flutter:
:path: Flutter
- path_provider_ios:
- :path: ".symlinks/plugins/path_provider_ios/ios"
+ path_provider_foundation:
+ :path: ".symlinks/plugins/path_provider_foundation/darwin"
payu_mobile_payments_ios:
:path: ".symlinks/plugins/payu_mobile_payments_ios/ios"
url_launcher_ios:
@@ -29,12 +30,12 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/webview_flutter_wkwebview/ios"
SPEC CHECKSUMS:
- Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
- path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02
+ Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
+ path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c
payu_mobile_payments_ios: 346266119d695d016bff3ec413602064de303bb6
- url_launcher_ios: 839c58cdb4279282219f5e248c3321761ff3c4de
+ url_launcher_ios: 6116280ddcfe98ab8820085d8d76ae7449447586
webview_flutter_wkwebview: b7e70ef1ddded7e69c796c7390ee74180182971f
PODFILE CHECKSUM: cc1f88378b4bfcf93a6ce00d2c587857c6008d3b
-COCOAPODS: 1.11.3
+COCOAPODS: 1.15.2
diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj
index 1e75459..02154e0 100644
--- a/example/ios/Runner.xcodeproj/project.pbxproj
+++ b/example/ios/Runner.xcodeproj/project.pbxproj
@@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
- objectVersion = 50;
+ objectVersion = 54;
objects = {
/* Begin PBXBuildFile section */
@@ -156,7 +156,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 1300;
+ LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
97C146ED1CF9000F007C117D = {
@@ -200,10 +200,12 @@
/* Begin PBXShellScriptBuildPhase section */
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
+ "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
);
name = "Thin Binary";
outputPaths = (
@@ -214,6 +216,7 @@
};
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
@@ -340,7 +343,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
@@ -414,7 +417,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
@@ -463,7 +466,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
diff --git a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
index 3db53b6..e67b280 100644
--- a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+++ b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -1,6 +1,6 @@
+ UIApplicationSupportsIndirectInputEvents
+
diff --git a/example/lib/apps/example_add_card_widget_app.dart b/example/lib/apps/example_add_card_widget_app.dart
index 4195472..7cb13ef 100644
--- a/example/lib/apps/example_add_card_widget_app.dart
+++ b/example/lib/apps/example_add_card_widget_app.dart
@@ -17,7 +17,7 @@ void main() {
}
class HomePage extends StatefulWidget {
- const HomePage({Key? key}) : super(key: key);
+ const HomePage({super.key});
@override
State createState() => _HomePageState();
diff --git a/example/lib/apps/example_apple_pay_app.dart b/example/lib/apps/example_apple_pay_app.dart
index 2942aa3..f8f7c6b 100644
--- a/example/lib/apps/example_apple_pay_app.dart
+++ b/example/lib/apps/example_apple_pay_app.dart
@@ -19,7 +19,7 @@ void main() {
}
class HomePage extends StatefulWidget {
- const HomePage({Key? key}) : super(key: key);
+ const HomePage({super.key});
@override
State createState() => _HomePageState();
diff --git a/example/lib/apps/example_mastercard_installments_app.dart b/example/lib/apps/example_mastercard_installments_app.dart
index 23e962f..d9fa56a 100644
--- a/example/lib/apps/example_mastercard_installments_app.dart
+++ b/example/lib/apps/example_mastercard_installments_app.dart
@@ -17,7 +17,7 @@ void main() {
}
class HomePage extends StatelessWidget {
- const HomePage({Key? key}) : super(key: key);
+ const HomePage({super.key});
@override
Widget build(BuildContext context) {
diff --git a/example/lib/apps/example_terms_and_conditions_app.dart b/example/lib/apps/example_terms_and_conditions_app.dart
index c597117..13af8e1 100644
--- a/example/lib/apps/example_terms_and_conditions_app.dart
+++ b/example/lib/apps/example_terms_and_conditions_app.dart
@@ -17,7 +17,7 @@ void main() {
}
class HomePage extends StatelessWidget {
- const HomePage({Key? key}) : super(key: key);
+ const HomePage({super.key});
@override
Widget build(BuildContext context) {
diff --git a/example/lib/apps/example_three_ds_soft_accept_app.dart b/example/lib/apps/example_three_ds_soft_accept_app.dart
index b3a79f8..ebc571a 100644
--- a/example/lib/apps/example_three_ds_soft_accept_app.dart
+++ b/example/lib/apps/example_three_ds_soft_accept_app.dart
@@ -17,7 +17,7 @@ void main() {
}
class HomePage extends StatelessWidget {
- const HomePage({Key? key}) : super(key: key);
+ const HomePage({super.key});
@override
Widget build(BuildContext context) {
diff --git a/example/lib/features/demo_add_card_widget/demo_add_card_widget_page.dart b/example/lib/features/demo_add_card_widget/demo_add_card_widget_page.dart
index c8eb800..b79e5c7 100644
--- a/example/lib/features/demo_add_card_widget/demo_add_card_widget_page.dart
+++ b/example/lib/features/demo_add_card_widget/demo_add_card_widget_page.dart
@@ -6,7 +6,7 @@ import 'package:payu/payu.dart';
import 'package:example/features/demo_add_card_widget/demo_add_card_widget_controller.dart';
class DemoAddCardWidgetPage extends GetView {
- const DemoAddCardWidgetPage({Key? key}) : super(key: key);
+ const DemoAddCardWidgetPage({super.key});
@override
Widget build(BuildContext context) {
diff --git a/example/lib/features/demo_features/demo_features_page.dart b/example/lib/features/demo_features/demo_features_page.dart
index 312a89a..a1ba406 100644
--- a/example/lib/features/demo_features/demo_features_page.dart
+++ b/example/lib/features/demo_features/demo_features_page.dart
@@ -5,7 +5,7 @@ import 'package:get/get.dart';
import 'package:payu/payu.dart';
class DemoFeaturesPage extends GetView {
- const DemoFeaturesPage({Key? key}) : super(key: key);
+ const DemoFeaturesPage({super.key});
@override
Widget build(BuildContext context) {
diff --git a/example/lib/features/demo_payment_widget/demo_payment_widget_page.dart b/example/lib/features/demo_payment_widget/demo_payment_widget_page.dart
index 9154bb0..3a6048a 100644
--- a/example/lib/features/demo_payment_widget/demo_payment_widget_page.dart
+++ b/example/lib/features/demo_payment_widget/demo_payment_widget_page.dart
@@ -5,7 +5,7 @@ import 'package:get/get.dart';
import 'package:payu/payu.dart';
class DemoPaymentWidgetPage extends GetView implements PaymentMethodsListener {
- const DemoPaymentWidgetPage({Key? key}) : super(key: key);
+ const DemoPaymentWidgetPage({super.key});
@override
Widget build(BuildContext context) {
diff --git a/example/lib/features/demo_terms_and_conditions/demo_terms_and_conditions_page.dart b/example/lib/features/demo_terms_and_conditions/demo_terms_and_conditions_page.dart
index 4d5629b..609de3b 100644
--- a/example/lib/features/demo_terms_and_conditions/demo_terms_and_conditions_page.dart
+++ b/example/lib/features/demo_terms_and_conditions/demo_terms_and_conditions_page.dart
@@ -6,7 +6,7 @@ import 'package:payu/payu.dart';
import 'package:example/features/demo_terms_and_conditions/demo_terms_and_conditions_controller.dart';
class DemoTermsAndConditionsPage extends GetView {
- const DemoTermsAndConditionsPage({Key? key}) : super(key: key);
+ const DemoTermsAndConditionsPage({super.key});
@override
Widget build(BuildContext context) {
diff --git a/example/lib/features/demo_theme/demo_theme_page.dart b/example/lib/features/demo_theme/demo_theme_page.dart
index 802bf71..e9411f3 100644
--- a/example/lib/features/demo_theme/demo_theme_page.dart
+++ b/example/lib/features/demo_theme/demo_theme_page.dart
@@ -8,7 +8,7 @@ import 'package:example/features/demo_theme/demo_theme_controller.dart';
class DemoThemePage extends GetView {
static const _awesomeColor = Colors.amber;
- const DemoThemePage({Key? key}) : super(key: key);
+ const DemoThemePage({super.key});
@override
Widget build(BuildContext context) {
@@ -24,7 +24,7 @@ class DemoThemePage extends GetView {
colorScheme: theme.colorScheme.copyWith(primary: _awesomeColor),
),
child: Scaffold(
- backgroundColor: Theme.of(context).backgroundColor,
+ backgroundColor: Theme.of(context).colorScheme.surface,
appBar: AppBar(
title: PayuImage.logo(),
leading: IconButton(
diff --git a/example/lib/features/demo_web_payments_secure/demo_web_payments_secure_page.dart b/example/lib/features/demo_web_payments_secure/demo_web_payments_secure_page.dart
index 02b64eb..95ed067 100644
--- a/example/lib/features/demo_web_payments_secure/demo_web_payments_secure_page.dart
+++ b/example/lib/features/demo_web_payments_secure/demo_web_payments_secure_page.dart
@@ -6,7 +6,7 @@ import 'package:payu/payu.dart';
import 'package:example/features/demo_web_payments_secure/demo_web_payments_secure_controller.dart';
class DemoWebPaymentsSecurePage extends GetView {
- const DemoWebPaymentsSecurePage({Key? key}) : super(key: key);
+ const DemoWebPaymentsSecurePage({super.key});
@override
Widget build(BuildContext context) {
diff --git a/example/lib/features/environments_create/environments_create_page.dart b/example/lib/features/environments_create/environments_create_page.dart
index b2b0090..1625d33 100644
--- a/example/lib/features/environments_create/environments_create_page.dart
+++ b/example/lib/features/environments_create/environments_create_page.dart
@@ -5,7 +5,7 @@ import 'package:flutter/material.dart';
import 'package:get/get.dart';
class EnvironmentsCreatePage extends GetView {
- const EnvironmentsCreatePage({Key? key}) : super(key: key);
+ const EnvironmentsCreatePage({super.key});
@override
Widget build(BuildContext context) {
diff --git a/example/lib/features/example/backend/api/api.g.dart b/example/lib/features/example/backend/api/api.g.dart
index 4011761..397f3ec 100644
--- a/example/lib/features/example/backend/api/api.g.dart
+++ b/example/lib/features/example/backend/api/api.g.dart
@@ -23,7 +23,7 @@ class _Api implements Api {
String contentType,
AuthorizationBody body,
) async {
- const _extra = {};
+ final _extra = {};
final queryParameters = {};
final _headers = {r'Content-Type': contentType};
_headers.removeWhere((k, v) => v == null);
@@ -53,11 +53,11 @@ class _Api implements Api {
@override
Future getPaymentMethods(String contentType) async {
- const _extra = {};
+ final _extra = {};
final queryParameters = {};
final _headers = {r'Content-Type': contentType};
_headers.removeWhere((k, v) => v == null);
- final Map? _data = null;
+ const Map? _data = null;
final _result = await _dio.fetch