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 ce87817..d53be15 100644 --- a/lib/src/integration_test/option/integration_test_android_option.dart +++ b/lib/src/integration_test/option/integration_test_android_option.dart @@ -17,6 +17,7 @@ class IntegrationTestAndroidOption with _$IntegrationTestAndroidOption { required String browserstackAccessKey, required File apk, required File testSuite, + String? customId, @Default(["Samsung Galaxy S9 Plus-9.0"]) List devices, @Default(true) bool networkLogs, @Default(true) bool deviceLogs, 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 50dfb55..18b82c9 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 @@ -20,6 +20,7 @@ mixin _$IntegrationTestAndroidOption { String get browserstackAccessKey => throw _privateConstructorUsedError; File get apk => throw _privateConstructorUsedError; File get testSuite => throw _privateConstructorUsedError; + String? get customId => throw _privateConstructorUsedError; List get devices => throw _privateConstructorUsedError; bool get networkLogs => throw _privateConstructorUsedError; bool get deviceLogs => throw _privateConstructorUsedError; @@ -42,6 +43,7 @@ abstract class $IntegrationTestAndroidOptionCopyWith<$Res> { String browserstackAccessKey, File apk, File testSuite, + String? customId, List devices, bool networkLogs, bool deviceLogs}); @@ -65,6 +67,7 @@ class _$IntegrationTestAndroidOptionCopyWithImpl<$Res, Object? browserstackAccessKey = null, Object? apk = null, Object? testSuite = null, + Object? customId = freezed, Object? devices = null, Object? networkLogs = null, Object? deviceLogs = null, @@ -86,6 +89,10 @@ class _$IntegrationTestAndroidOptionCopyWithImpl<$Res, ? _value.testSuite : testSuite // ignore: cast_nullable_to_non_nullable as File, + customId: freezed == customId + ? _value.customId + : customId // ignore: cast_nullable_to_non_nullable + as String?, devices: null == devices ? _value.devices : devices // ignore: cast_nullable_to_non_nullable @@ -116,6 +123,7 @@ abstract class _$$IntegrationTestAndroidOptionImplCopyWith<$Res> String browserstackAccessKey, File apk, File testSuite, + String? customId, List devices, bool networkLogs, bool deviceLogs}); @@ -138,6 +146,7 @@ class __$$IntegrationTestAndroidOptionImplCopyWithImpl<$Res> Object? browserstackAccessKey = null, Object? apk = null, Object? testSuite = null, + Object? customId = freezed, Object? devices = null, Object? networkLogs = null, Object? deviceLogs = null, @@ -159,6 +168,10 @@ class __$$IntegrationTestAndroidOptionImplCopyWithImpl<$Res> ? _value.testSuite : testSuite // ignore: cast_nullable_to_non_nullable as File, + customId: freezed == customId + ? _value.customId + : customId // ignore: cast_nullable_to_non_nullable + as String?, devices: null == devices ? _value._devices : devices // ignore: cast_nullable_to_non_nullable @@ -183,6 +196,7 @@ class _$IntegrationTestAndroidOptionImpl extends _IntegrationTestAndroidOption { required this.browserstackAccessKey, required this.apk, required this.testSuite, + this.customId, final List devices = const ["Samsung Galaxy S9 Plus-9.0"], this.networkLogs = true, this.deviceLogs = true}) @@ -197,6 +211,8 @@ class _$IntegrationTestAndroidOptionImpl extends _IntegrationTestAndroidOption { final File apk; @override final File testSuite; + @override + final String? customId; final List _devices; @override @JsonKey() @@ -215,7 +231,7 @@ class _$IntegrationTestAndroidOptionImpl extends _IntegrationTestAndroidOption { @override String toString() { - return 'IntegrationTestAndroidOption(browserstackUsername: $browserstackUsername, browserstackAccessKey: $browserstackAccessKey, apk: $apk, testSuite: $testSuite, devices: $devices, networkLogs: $networkLogs, deviceLogs: $deviceLogs)'; + return 'IntegrationTestAndroidOption(browserstackUsername: $browserstackUsername, browserstackAccessKey: $browserstackAccessKey, apk: $apk, testSuite: $testSuite, customId: $customId, devices: $devices, networkLogs: $networkLogs, deviceLogs: $deviceLogs)'; } @override @@ -230,6 +246,8 @@ class _$IntegrationTestAndroidOptionImpl extends _IntegrationTestAndroidOption { (identical(other.apk, apk) || other.apk == apk) && (identical(other.testSuite, testSuite) || other.testSuite == testSuite) && + (identical(other.customId, customId) || + other.customId == customId) && const DeepCollectionEquality().equals(other._devices, _devices) && (identical(other.networkLogs, networkLogs) || other.networkLogs == networkLogs) && @@ -244,6 +262,7 @@ class _$IntegrationTestAndroidOptionImpl extends _IntegrationTestAndroidOption { browserstackAccessKey, apk, testSuite, + customId, const DeepCollectionEquality().hash(_devices), networkLogs, deviceLogs); @@ -264,6 +283,7 @@ abstract class _IntegrationTestAndroidOption required final String browserstackAccessKey, required final File apk, required final File testSuite, + final String? customId, final List devices, final bool networkLogs, final bool deviceLogs}) = _$IntegrationTestAndroidOptionImpl; @@ -278,6 +298,8 @@ abstract class _IntegrationTestAndroidOption @override File get testSuite; @override + String? get customId; + @override List get devices; @override bool get networkLogs; 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 653e1be..cf85d70 100644 --- a/lib/src/integration_test/option/integration_test_ios_option.dart +++ b/lib/src/integration_test/option/integration_test_ios_option.dart @@ -15,6 +15,7 @@ class IntegrationTestIosOption with _$IntegrationTestIosOption { required String browserstackUsername, required String browserstackAccessKey, required File testPackage, + String? customId, @Default(true) bool networkLogs, @Default(true) bool deviceLogs, }) = _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 ee1c823..d852f83 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 @@ -19,6 +19,7 @@ mixin _$IntegrationTestIosOption { String get browserstackUsername => throw _privateConstructorUsedError; String get browserstackAccessKey => throw _privateConstructorUsedError; File get testPackage => throw _privateConstructorUsedError; + String? get customId => throw _privateConstructorUsedError; bool get networkLogs => throw _privateConstructorUsedError; bool get deviceLogs => throw _privateConstructorUsedError; @@ -37,6 +38,7 @@ abstract class $IntegrationTestIosOptionCopyWith<$Res> { {String browserstackUsername, String browserstackAccessKey, File testPackage, + String? customId, bool networkLogs, bool deviceLogs}); } @@ -58,6 +60,7 @@ class _$IntegrationTestIosOptionCopyWithImpl<$Res, Object? browserstackUsername = null, Object? browserstackAccessKey = null, Object? testPackage = null, + Object? customId = freezed, Object? networkLogs = null, Object? deviceLogs = null, }) { @@ -74,6 +77,10 @@ class _$IntegrationTestIosOptionCopyWithImpl<$Res, ? _value.testPackage : testPackage // ignore: cast_nullable_to_non_nullable as File, + customId: freezed == customId + ? _value.customId + : customId // ignore: cast_nullable_to_non_nullable + as String?, networkLogs: null == networkLogs ? _value.networkLogs : networkLogs // ignore: cast_nullable_to_non_nullable @@ -99,6 +106,7 @@ abstract class _$$IntegrationTestIosOptionImplCopyWith<$Res> {String browserstackUsername, String browserstackAccessKey, File testPackage, + String? customId, bool networkLogs, bool deviceLogs}); } @@ -119,6 +127,7 @@ class __$$IntegrationTestIosOptionImplCopyWithImpl<$Res> Object? browserstackUsername = null, Object? browserstackAccessKey = null, Object? testPackage = null, + Object? customId = freezed, Object? networkLogs = null, Object? deviceLogs = null, }) { @@ -135,6 +144,10 @@ class __$$IntegrationTestIosOptionImplCopyWithImpl<$Res> ? _value.testPackage : testPackage // ignore: cast_nullable_to_non_nullable as File, + customId: freezed == customId + ? _value.customId + : customId // ignore: cast_nullable_to_non_nullable + as String?, networkLogs: null == networkLogs ? _value.networkLogs : networkLogs // ignore: cast_nullable_to_non_nullable @@ -154,6 +167,7 @@ class _$IntegrationTestIosOptionImpl extends _IntegrationTestIosOption { {required this.browserstackUsername, required this.browserstackAccessKey, required this.testPackage, + this.customId, this.networkLogs = true, this.deviceLogs = true}) : super._(); @@ -165,6 +179,8 @@ class _$IntegrationTestIosOptionImpl extends _IntegrationTestIosOption { @override final File testPackage; @override + final String? customId; + @override @JsonKey() final bool networkLogs; @override @@ -173,7 +189,7 @@ class _$IntegrationTestIosOptionImpl extends _IntegrationTestIosOption { @override String toString() { - return 'IntegrationTestIosOption(browserstackUsername: $browserstackUsername, browserstackAccessKey: $browserstackAccessKey, testPackage: $testPackage, networkLogs: $networkLogs, deviceLogs: $deviceLogs)'; + return 'IntegrationTestIosOption(browserstackUsername: $browserstackUsername, browserstackAccessKey: $browserstackAccessKey, testPackage: $testPackage, customId: $customId, networkLogs: $networkLogs, deviceLogs: $deviceLogs)'; } @override @@ -187,6 +203,8 @@ class _$IntegrationTestIosOptionImpl extends _IntegrationTestIosOption { other.browserstackAccessKey == browserstackAccessKey) && (identical(other.testPackage, testPackage) || other.testPackage == testPackage) && + (identical(other.customId, customId) || + other.customId == customId) && (identical(other.networkLogs, networkLogs) || other.networkLogs == networkLogs) && (identical(other.deviceLogs, deviceLogs) || @@ -195,7 +213,7 @@ class _$IntegrationTestIosOptionImpl extends _IntegrationTestIosOption { @override int get hashCode => Object.hash(runtimeType, browserstackUsername, - browserstackAccessKey, testPackage, networkLogs, deviceLogs); + browserstackAccessKey, testPackage, customId, networkLogs, deviceLogs); @JsonKey(ignore: true) @override @@ -210,6 +228,7 @@ abstract class _IntegrationTestIosOption extends IntegrationTestIosOption { {required final String browserstackUsername, required final String browserstackAccessKey, required final File testPackage, + final String? customId, final bool networkLogs, final bool deviceLogs}) = _$IntegrationTestIosOptionImpl; const _IntegrationTestIosOption._() : super._(); @@ -221,6 +240,8 @@ abstract class _IntegrationTestIosOption extends IntegrationTestIosOption { @override File get testPackage; @override + String? get customId; + @override bool get networkLogs; @override bool get deviceLogs; diff --git a/lib/src/integration_test/run_android_integration_test.dart b/lib/src/integration_test/run_android_integration_test.dart index 48a6cdf..b6503eb 100644 --- a/lib/src/integration_test/run_android_integration_test.dart +++ b/lib/src/integration_test/run_android_integration_test.dart @@ -35,6 +35,7 @@ Future runAndroidIntegrationTest(List arguments) async { "devices": option.devices, "networkLogs": option.networkLogs, "deviceLogs": option.deviceLogs, + if (option.customId != null) "custom_id": option.customId!, }, ); diff --git a/lib/src/integration_test/run_ios_integration_test.dart b/lib/src/integration_test/run_ios_integration_test.dart index 3c0ea9d..78ffbaa 100644 --- a/lib/src/integration_test/run_ios_integration_test.dart +++ b/lib/src/integration_test/run_ios_integration_test.dart @@ -25,6 +25,7 @@ Future runIosIntegrationTest(List arguments) async { "networkLogs": option.networkLogs, "deviceLogs": option.deviceLogs, "devices": option.devices, + if (option.customId != null) "custom_id": option.customId!, }, );