diff --git a/.fvmrc b/.fvmrc index 8f59eb5..69d6f3c 100644 --- a/.fvmrc +++ b/.fvmrc @@ -1,3 +1,3 @@ { - "flutter": "3.22.2" -} \ No newline at end of file + "flutter": "3.27.4" +} diff --git a/lib/src/integration_test/browser_stack_api.dart b/lib/src/integration_test/browser_stack_api.dart index 6499fa8..59b0d9b 100644 --- a/lib/src/integration_test/browser_stack_api.dart +++ b/lib/src/integration_test/browser_stack_api.dart @@ -108,8 +108,9 @@ class BrowserStackApi { await Future.delayed(const Duration(seconds: 10)); - final currentFormattedTime = - DateFormat('hh:mm:ss').format(DateTime.now().toUtc()); + final currentFormattedTime = DateFormat( + 'hh:mm:ss', + ).format(DateTime.now().toUtc()); stdout.writeln( "[$currentFormattedTime GTM]: Waiting for the test to complete - this may take a few minutes - Go to BrowserStack to see more information.", diff --git a/lib/src/integration_test/option/integration_test_android_option.dart b/lib/src/integration_test/option/integration_test_android_option.dart index 93615ee..1226b61 100644 --- a/lib/src/integration_test/option/integration_test_android_option.dart +++ b/lib/src/integration_test/option/integration_test_android_option.dart @@ -9,7 +9,8 @@ import 'package:tapped_test_toolkit/src/integration_test/option/integration_test part 'integration_test_android_option.freezed.dart'; @freezed -class IntegrationTestAndroidOption with _$IntegrationTestAndroidOption { +abstract class IntegrationTestAndroidOption + with _$IntegrationTestAndroidOption { const IntegrationTestAndroidOption._(); const factory IntegrationTestAndroidOption({ diff --git a/lib/src/integration_test/option/integration_test_android_option.freezed.dart b/lib/src/integration_test/option/integration_test_android_option.freezed.dart index a5313bd..4588fc8 100644 --- a/lib/src/integration_test/option/integration_test_android_option.freezed.dart +++ b/lib/src/integration_test/option/integration_test_android_option.freezed.dart @@ -25,7 +25,9 @@ mixin _$IntegrationTestAndroidOption { bool get networkLogs => throw _privateConstructorUsedError; bool get deviceLogs => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + /// Create a copy of IntegrationTestAndroidOption + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $IntegrationTestAndroidOptionCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -60,6 +62,8 @@ class _$IntegrationTestAndroidOptionCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of IntegrationTestAndroidOption + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -139,6 +143,8 @@ class __$$IntegrationTestAndroidOptionImplCopyWithImpl<$Res> $Res Function(_$IntegrationTestAndroidOptionImpl) _then) : super(_value, _then); + /// Create a copy of IntegrationTestAndroidOption + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -266,7 +272,9 @@ class _$IntegrationTestAndroidOptionImpl extends _IntegrationTestAndroidOption { networkLogs, deviceLogs); - @JsonKey(ignore: true) + /// Create a copy of IntegrationTestAndroidOption + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$IntegrationTestAndroidOptionImplCopyWith< @@ -304,8 +312,11 @@ abstract class _IntegrationTestAndroidOption bool get networkLogs; @override bool get deviceLogs; + + /// Create a copy of IntegrationTestAndroidOption + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$IntegrationTestAndroidOptionImplCopyWith< _$IntegrationTestAndroidOptionImpl> get copyWith => throw _privateConstructorUsedError; diff --git a/lib/src/integration_test/option/integration_test_ios_option.dart b/lib/src/integration_test/option/integration_test_ios_option.dart index 63baf30..b2af27f 100644 --- a/lib/src/integration_test/option/integration_test_ios_option.dart +++ b/lib/src/integration_test/option/integration_test_ios_option.dart @@ -8,7 +8,7 @@ import 'package:tapped_test_toolkit/src/integration_test/option/integration_test part 'integration_test_ios_option.freezed.dart'; @freezed -class IntegrationTestIosOption with _$IntegrationTestIosOption { +abstract class IntegrationTestIosOption with _$IntegrationTestIosOption { const IntegrationTestIosOption._(); const factory IntegrationTestIosOption({ diff --git a/lib/src/integration_test/option/integration_test_ios_option.freezed.dart b/lib/src/integration_test/option/integration_test_ios_option.freezed.dart index 4532dbc..f797d82 100644 --- a/lib/src/integration_test/option/integration_test_ios_option.freezed.dart +++ b/lib/src/integration_test/option/integration_test_ios_option.freezed.dart @@ -24,7 +24,9 @@ mixin _$IntegrationTestIosOption { bool get networkLogs => throw _privateConstructorUsedError; bool get deviceLogs => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + /// Create a copy of IntegrationTestIosOption + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $IntegrationTestIosOptionCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -56,6 +58,8 @@ class _$IntegrationTestIosOptionCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of IntegrationTestIosOption + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -129,6 +133,8 @@ class __$$IntegrationTestIosOptionImplCopyWithImpl<$Res> $Res Function(_$IntegrationTestIosOptionImpl) _then) : super(_value, _then); + /// Create a copy of IntegrationTestIosOption + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -246,7 +252,9 @@ class _$IntegrationTestIosOptionImpl extends _IntegrationTestIosOption { networkLogs, deviceLogs); - @JsonKey(ignore: true) + /// Create a copy of IntegrationTestIosOption + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$IntegrationTestIosOptionImplCopyWith<_$IntegrationTestIosOptionImpl> @@ -279,8 +287,11 @@ abstract class _IntegrationTestIosOption extends IntegrationTestIosOption { bool get networkLogs; @override bool get deviceLogs; + + /// Create a copy of IntegrationTestIosOption + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$IntegrationTestIosOptionImplCopyWith<_$IntegrationTestIosOptionImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/integration_test/option/integration_test_parameter.dart b/lib/src/integration_test/option/integration_test_parameter.dart index 04cdcb3..cff018d 100644 --- a/lib/src/integration_test/option/integration_test_parameter.dart +++ b/lib/src/integration_test/option/integration_test_parameter.dart @@ -16,5 +16,5 @@ class IntegrationTestParameter { static const String devicesParam = "devices"; -// endregion + // endregion } diff --git a/lib/src/integration_test/run_android_integration_test.dart b/lib/src/integration_test/run_android_integration_test.dart index c0e1302..21813c3 100644 --- a/lib/src/integration_test/run_android_integration_test.dart +++ b/lib/src/integration_test/run_android_integration_test.dart @@ -21,9 +21,7 @@ Future runAndroidIntegrationTest(List arguments) async { file: option.testSuite, url: "https://api-cloud.browserstack.com/app-automate/flutter-integration-tests/v2/android/test-suite", - fields: { - if (option.customId != null) "custom_id": option.customId!, - }, + fields: {if (option.customId != null) "custom_id": option.customId!}, ); final testSuiteUrl = uploadTestSuiteResponse.getRequiredKey("test_suite_url"); diff --git a/lib/src/integration_test/run_ios_integration_test.dart b/lib/src/integration_test/run_ios_integration_test.dart index 3e21aff..8111c38 100644 --- a/lib/src/integration_test/run_ios_integration_test.dart +++ b/lib/src/integration_test/run_ios_integration_test.dart @@ -12,9 +12,7 @@ Future runIosIntegrationTest(List arguments) async { "https://api-cloud.browserstack.com/app-automate/flutter-integration-tests/v2/ios/test-package", file: option.testPackage, basicAuthHeader: option.basicAuthValue, - fields: { - if (option.customId != null) "custom_id": option.customId!, - }, + fields: {if (option.customId != null) "custom_id": option.customId!}, ); final testPackageUrl = uploadPackageResult.getRequiredKey("test_package_url"); diff --git a/lib/tapped_test_toolkit.dart b/lib/tapped_test_toolkit.dart index a85ed19..7745ebc 100644 --- a/lib/tapped_test_toolkit.dart +++ b/lib/tapped_test_toolkit.dart @@ -1,4 +1,4 @@ -library tapped_test_toolkit; +library; export 'src/integration_test/browser_stack_api.dart'; export 'src/integration_test/browser_stack_test_status.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index e0f396d..1aaa70d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,25 +4,23 @@ version: 0.0.1 publish_to: none environment: - sdk: ">=2.18.4 <3.0.0" + sdk: ">=3.6.2 <4.0.0" flutter: ">=3.16.0" dependencies: - args: ^2.5.0 - http: ^1.2.1 - freezed_annotation: ^2.4.1 + args: ^2.6.0 + http: ^1.3.0 + freezed_annotation: ^2.4.4 json_annotation: ^4.9.0 path: ^1.9.0 # formatting the time of some jobs intl: ^0.19.0 dev_dependencies: - build_runner: ^2.4.11 - flutter_lints: ^4.0.0 - freezed: ^2.5.2 + build_runner: ^2.4.15 + flutter_lints: ^5.0.0 + freezed: ^2.5.8 tapped_lints: git: url: https://github.com/tappeddev/tapped_lints.git ref: master - -flutter: