diff --git a/.fvm/flutter_sdk b/.fvm/flutter_sdk new file mode 120000 index 0000000..e67620b --- /dev/null +++ b/.fvm/flutter_sdk @@ -0,0 +1 @@ +/Users/julianbissekkou/fvm/versions/3.13.8 \ No newline at end of file diff --git a/.fvm/fvm_config.json b/.fvm/fvm_config.json index 87a2e78..d64cf73 100644 --- a/.fvm/fvm_config.json +++ b/.fvm/fvm_config.json @@ -1,4 +1,4 @@ { - "flutterSdkVersion": "3.7.9", + "flutterSdkVersion": "3.13.8", "flavors": {} -} \ No newline at end of file +} 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 1b772a3..bb1f49f 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,8 @@ class IntegrationTestAndroidOption with _$IntegrationTestAndroidOption { required String browserstackAccessKey, required File apk, required File testSuite, + @Default(["Samsung Galaxy S9 Plus-9.0"]) List devices, + @Default(true) bool deviceLogs, }) = _IntegrationTestAndroidOption; static Future fromArguments( @@ -48,6 +50,4 @@ class IntegrationTestAndroidOption with _$IntegrationTestAndroidOption { String get basicAuthValue { return "Basic ${base64Encode(utf8.encode("$browserstackUsername:$browserstackAccessKey"))}"; } - - List get devices => ["Samsung Galaxy S9 Plus-9.0"]; } 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 47a1e43..8d4e01b 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,8 @@ mixin _$IntegrationTestAndroidOption { String get browserstackAccessKey => throw _privateConstructorUsedError; File get apk => throw _privateConstructorUsedError; File get testSuite => throw _privateConstructorUsedError; + List get devices => throw _privateConstructorUsedError; + bool get deviceLogs => throw _privateConstructorUsedError; @JsonKey(ignore: true) $IntegrationTestAndroidOptionCopyWith @@ -38,7 +40,9 @@ abstract class $IntegrationTestAndroidOptionCopyWith<$Res> { {String browserstackUsername, String browserstackAccessKey, File apk, - File testSuite}); + File testSuite, + List devices, + bool deviceLogs}); } /// @nodoc @@ -59,6 +63,8 @@ class _$IntegrationTestAndroidOptionCopyWithImpl<$Res, Object? browserstackAccessKey = null, Object? apk = null, Object? testSuite = null, + Object? devices = null, + Object? deviceLogs = null, }) { return _then(_value.copyWith( browserstackUsername: null == browserstackUsername @@ -77,34 +83,44 @@ class _$IntegrationTestAndroidOptionCopyWithImpl<$Res, ? _value.testSuite : testSuite // ignore: cast_nullable_to_non_nullable as File, + devices: null == devices + ? _value.devices + : devices // ignore: cast_nullable_to_non_nullable + as List, + deviceLogs: null == deviceLogs + ? _value.deviceLogs + : deviceLogs // ignore: cast_nullable_to_non_nullable + as bool, ) as $Val); } } /// @nodoc -abstract class _$$_IntegrationTestAndroidOptionCopyWith<$Res> +abstract class _$$IntegrationTestAndroidOptionImplCopyWith<$Res> implements $IntegrationTestAndroidOptionCopyWith<$Res> { - factory _$$_IntegrationTestAndroidOptionCopyWith( - _$_IntegrationTestAndroidOption value, - $Res Function(_$_IntegrationTestAndroidOption) then) = - __$$_IntegrationTestAndroidOptionCopyWithImpl<$Res>; + factory _$$IntegrationTestAndroidOptionImplCopyWith( + _$IntegrationTestAndroidOptionImpl value, + $Res Function(_$IntegrationTestAndroidOptionImpl) then) = + __$$IntegrationTestAndroidOptionImplCopyWithImpl<$Res>; @override @useResult $Res call( {String browserstackUsername, String browserstackAccessKey, File apk, - File testSuite}); + File testSuite, + List devices, + bool deviceLogs}); } /// @nodoc -class __$$_IntegrationTestAndroidOptionCopyWithImpl<$Res> +class __$$IntegrationTestAndroidOptionImplCopyWithImpl<$Res> extends _$IntegrationTestAndroidOptionCopyWithImpl<$Res, - _$_IntegrationTestAndroidOption> - implements _$$_IntegrationTestAndroidOptionCopyWith<$Res> { - __$$_IntegrationTestAndroidOptionCopyWithImpl( - _$_IntegrationTestAndroidOption _value, - $Res Function(_$_IntegrationTestAndroidOption) _then) + _$IntegrationTestAndroidOptionImpl> + implements _$$IntegrationTestAndroidOptionImplCopyWith<$Res> { + __$$IntegrationTestAndroidOptionImplCopyWithImpl( + _$IntegrationTestAndroidOptionImpl _value, + $Res Function(_$IntegrationTestAndroidOptionImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -114,8 +130,10 @@ class __$$_IntegrationTestAndroidOptionCopyWithImpl<$Res> Object? browserstackAccessKey = null, Object? apk = null, Object? testSuite = null, + Object? devices = null, + Object? deviceLogs = null, }) { - return _then(_$_IntegrationTestAndroidOption( + return _then(_$IntegrationTestAndroidOptionImpl( browserstackUsername: null == browserstackUsername ? _value.browserstackUsername : browserstackUsername // ignore: cast_nullable_to_non_nullable @@ -132,19 +150,30 @@ class __$$_IntegrationTestAndroidOptionCopyWithImpl<$Res> ? _value.testSuite : testSuite // ignore: cast_nullable_to_non_nullable as File, + devices: null == devices + ? _value._devices + : devices // ignore: cast_nullable_to_non_nullable + as List, + deviceLogs: null == deviceLogs + ? _value.deviceLogs + : deviceLogs // ignore: cast_nullable_to_non_nullable + as bool, )); } } /// @nodoc -class _$_IntegrationTestAndroidOption extends _IntegrationTestAndroidOption { - const _$_IntegrationTestAndroidOption( +class _$IntegrationTestAndroidOptionImpl extends _IntegrationTestAndroidOption { + const _$IntegrationTestAndroidOptionImpl( {required this.browserstackUsername, required this.browserstackAccessKey, required this.apk, - required this.testSuite}) - : super._(); + required this.testSuite, + final List devices = const ["Samsung Galaxy S9 Plus-9.0"], + this.deviceLogs = true}) + : _devices = devices, + super._(); @override final String browserstackUsername; @@ -154,36 +183,58 @@ class _$_IntegrationTestAndroidOption extends _IntegrationTestAndroidOption { final File apk; @override final File testSuite; + final List _devices; + @override + @JsonKey() + List get devices { + if (_devices is EqualUnmodifiableListView) return _devices; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(_devices); + } + + @override + @JsonKey() + final bool deviceLogs; @override String toString() { - return 'IntegrationTestAndroidOption(browserstackUsername: $browserstackUsername, browserstackAccessKey: $browserstackAccessKey, apk: $apk, testSuite: $testSuite)'; + return 'IntegrationTestAndroidOption(browserstackUsername: $browserstackUsername, browserstackAccessKey: $browserstackAccessKey, apk: $apk, testSuite: $testSuite, devices: $devices, deviceLogs: $deviceLogs)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_IntegrationTestAndroidOption && + other is _$IntegrationTestAndroidOptionImpl && (identical(other.browserstackUsername, browserstackUsername) || other.browserstackUsername == browserstackUsername) && (identical(other.browserstackAccessKey, browserstackAccessKey) || other.browserstackAccessKey == browserstackAccessKey) && (identical(other.apk, apk) || other.apk == apk) && (identical(other.testSuite, testSuite) || - other.testSuite == testSuite)); + other.testSuite == testSuite) && + const DeepCollectionEquality().equals(other._devices, _devices) && + (identical(other.deviceLogs, deviceLogs) || + other.deviceLogs == deviceLogs)); } @override int get hashCode => Object.hash( - runtimeType, browserstackUsername, browserstackAccessKey, apk, testSuite); + runtimeType, + browserstackUsername, + browserstackAccessKey, + apk, + testSuite, + const DeepCollectionEquality().hash(_devices), + deviceLogs); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_IntegrationTestAndroidOptionCopyWith<_$_IntegrationTestAndroidOption> - get copyWith => __$$_IntegrationTestAndroidOptionCopyWithImpl< - _$_IntegrationTestAndroidOption>(this, _$identity); + _$$IntegrationTestAndroidOptionImplCopyWith< + _$IntegrationTestAndroidOptionImpl> + get copyWith => __$$IntegrationTestAndroidOptionImplCopyWithImpl< + _$IntegrationTestAndroidOptionImpl>(this, _$identity); } abstract class _IntegrationTestAndroidOption @@ -192,7 +243,9 @@ abstract class _IntegrationTestAndroidOption {required final String browserstackUsername, required final String browserstackAccessKey, required final File apk, - required final File testSuite}) = _$_IntegrationTestAndroidOption; + required final File testSuite, + final List devices, + final bool deviceLogs}) = _$IntegrationTestAndroidOptionImpl; const _IntegrationTestAndroidOption._() : super._(); @override @@ -204,7 +257,12 @@ abstract class _IntegrationTestAndroidOption @override File get testSuite; @override + List get devices; + @override + bool get deviceLogs; + @override @JsonKey(ignore: true) - _$$_IntegrationTestAndroidOptionCopyWith<_$_IntegrationTestAndroidOption> + _$$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 8a1e0a2..751da82 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, + @Default(true) bool deviceLogs, }) = _IntegrationTestIosOption; static Future fromArguments( 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 812bf63..2f72825 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; + bool get deviceLogs => throw _privateConstructorUsedError; @JsonKey(ignore: true) $IntegrationTestIosOptionCopyWith get copyWith => @@ -34,7 +35,8 @@ abstract class $IntegrationTestIosOptionCopyWith<$Res> { $Res call( {String browserstackUsername, String browserstackAccessKey, - File testPackage}); + File testPackage, + bool deviceLogs}); } /// @nodoc @@ -54,6 +56,7 @@ class _$IntegrationTestIosOptionCopyWithImpl<$Res, Object? browserstackUsername = null, Object? browserstackAccessKey = null, Object? testPackage = null, + Object? deviceLogs = null, }) { return _then(_value.copyWith( browserstackUsername: null == browserstackUsername @@ -68,32 +71,38 @@ class _$IntegrationTestIosOptionCopyWithImpl<$Res, ? _value.testPackage : testPackage // ignore: cast_nullable_to_non_nullable as File, + deviceLogs: null == deviceLogs + ? _value.deviceLogs + : deviceLogs // ignore: cast_nullable_to_non_nullable + as bool, ) as $Val); } } /// @nodoc -abstract class _$$_IntegrationTestIosOptionCopyWith<$Res> +abstract class _$$IntegrationTestIosOptionImplCopyWith<$Res> implements $IntegrationTestIosOptionCopyWith<$Res> { - factory _$$_IntegrationTestIosOptionCopyWith( - _$_IntegrationTestIosOption value, - $Res Function(_$_IntegrationTestIosOption) then) = - __$$_IntegrationTestIosOptionCopyWithImpl<$Res>; + factory _$$IntegrationTestIosOptionImplCopyWith( + _$IntegrationTestIosOptionImpl value, + $Res Function(_$IntegrationTestIosOptionImpl) then) = + __$$IntegrationTestIosOptionImplCopyWithImpl<$Res>; @override @useResult $Res call( {String browserstackUsername, String browserstackAccessKey, - File testPackage}); + File testPackage, + bool deviceLogs}); } /// @nodoc -class __$$_IntegrationTestIosOptionCopyWithImpl<$Res> +class __$$IntegrationTestIosOptionImplCopyWithImpl<$Res> extends _$IntegrationTestIosOptionCopyWithImpl<$Res, - _$_IntegrationTestIosOption> - implements _$$_IntegrationTestIosOptionCopyWith<$Res> { - __$$_IntegrationTestIosOptionCopyWithImpl(_$_IntegrationTestIosOption _value, - $Res Function(_$_IntegrationTestIosOption) _then) + _$IntegrationTestIosOptionImpl> + implements _$$IntegrationTestIosOptionImplCopyWith<$Res> { + __$$IntegrationTestIosOptionImplCopyWithImpl( + _$IntegrationTestIosOptionImpl _value, + $Res Function(_$IntegrationTestIosOptionImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -102,8 +111,9 @@ class __$$_IntegrationTestIosOptionCopyWithImpl<$Res> Object? browserstackUsername = null, Object? browserstackAccessKey = null, Object? testPackage = null, + Object? deviceLogs = null, }) { - return _then(_$_IntegrationTestIosOption( + return _then(_$IntegrationTestIosOptionImpl( browserstackUsername: null == browserstackUsername ? _value.browserstackUsername : browserstackUsername // ignore: cast_nullable_to_non_nullable @@ -116,17 +126,22 @@ class __$$_IntegrationTestIosOptionCopyWithImpl<$Res> ? _value.testPackage : testPackage // ignore: cast_nullable_to_non_nullable as File, + deviceLogs: null == deviceLogs + ? _value.deviceLogs + : deviceLogs // ignore: cast_nullable_to_non_nullable + as bool, )); } } /// @nodoc -class _$_IntegrationTestIosOption extends _IntegrationTestIosOption { - const _$_IntegrationTestIosOption( +class _$IntegrationTestIosOptionImpl extends _IntegrationTestIosOption { + const _$IntegrationTestIosOptionImpl( {required this.browserstackUsername, required this.browserstackAccessKey, - required this.testPackage}) + required this.testPackage, + this.deviceLogs = true}) : super._(); @override @@ -135,42 +150,48 @@ class _$_IntegrationTestIosOption extends _IntegrationTestIosOption { final String browserstackAccessKey; @override final File testPackage; + @override + @JsonKey() + final bool deviceLogs; @override String toString() { - return 'IntegrationTestIosOption(browserstackUsername: $browserstackUsername, browserstackAccessKey: $browserstackAccessKey, testPackage: $testPackage)'; + return 'IntegrationTestIosOption(browserstackUsername: $browserstackUsername, browserstackAccessKey: $browserstackAccessKey, testPackage: $testPackage, deviceLogs: $deviceLogs)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_IntegrationTestIosOption && + other is _$IntegrationTestIosOptionImpl && (identical(other.browserstackUsername, browserstackUsername) || other.browserstackUsername == browserstackUsername) && (identical(other.browserstackAccessKey, browserstackAccessKey) || other.browserstackAccessKey == browserstackAccessKey) && (identical(other.testPackage, testPackage) || - other.testPackage == testPackage)); + other.testPackage == testPackage) && + (identical(other.deviceLogs, deviceLogs) || + other.deviceLogs == deviceLogs)); } @override - int get hashCode => Object.hash( - runtimeType, browserstackUsername, browserstackAccessKey, testPackage); + int get hashCode => Object.hash(runtimeType, browserstackUsername, + browserstackAccessKey, testPackage, deviceLogs); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_IntegrationTestIosOptionCopyWith<_$_IntegrationTestIosOption> - get copyWith => __$$_IntegrationTestIosOptionCopyWithImpl< - _$_IntegrationTestIosOption>(this, _$identity); + _$$IntegrationTestIosOptionImplCopyWith<_$IntegrationTestIosOptionImpl> + get copyWith => __$$IntegrationTestIosOptionImplCopyWithImpl< + _$IntegrationTestIosOptionImpl>(this, _$identity); } abstract class _IntegrationTestIosOption extends IntegrationTestIosOption { const factory _IntegrationTestIosOption( {required final String browserstackUsername, required final String browserstackAccessKey, - required final File testPackage}) = _$_IntegrationTestIosOption; + required final File testPackage, + final bool deviceLogs}) = _$IntegrationTestIosOptionImpl; const _IntegrationTestIosOption._() : super._(); @override @@ -180,7 +201,9 @@ abstract class _IntegrationTestIosOption extends IntegrationTestIosOption { @override File get testPackage; @override + bool get deviceLogs; + @override @JsonKey(ignore: true) - _$$_IntegrationTestIosOptionCopyWith<_$_IntegrationTestIosOption> + _$$IntegrationTestIosOptionImplCopyWith<_$IntegrationTestIosOptionImpl> get copyWith => throw _privateConstructorUsedError; }