Skip to content

Commit

Permalink
chore: ran build_runner to generate code
Browse files Browse the repository at this point in the history
  • Loading branch information
OutdatedGuy committed Dec 29, 2023
1 parent f418cb3 commit 8efdef4
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 23 deletions.
20 changes: 15 additions & 5 deletions lib/config/config.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
checked_yaml: ^2.0.2
cli_util: ^0.4.0
image: ^4.0.15
json_annotation: ^4.8.0
json_annotation: ^4.8.1
path: ^1.8.2
yaml: ^3.1.1

Expand Down
29 changes: 26 additions & 3 deletions test/abs/icon_generator_test.mocks.dart
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
// Mocks generated by Mockito 5.4.2 from annotations
// Mocks generated by Mockito 5.4.3 from annotations
// in flutter_launcher_icons/test/abs/icon_generator_test.dart.
// Do not manually edit this file.

// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:flutter_launcher_icons/abs/icon_generator.dart' as _i2;
import 'package:flutter_launcher_icons/config/config.dart' as _i3;
import 'package:mockito/mockito.dart' as _i1;
import 'package:mockito/src/dummies.dart' as _i4;

// ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values
// ignore_for_file: avoid_setters_without_getters
// ignore_for_file: comment_references
// ignore_for_file: deprecated_member_use
// ignore_for_file: deprecated_member_use_from_same_package
// ignore_for_file: implementation_imports
// ignore_for_file: invalid_use_of_visible_for_testing_member
// ignore_for_file: prefer_const_constructors
Expand Down Expand Up @@ -42,21 +45,28 @@ class MockConfig extends _i1.Mock implements _i3.Config {
Invocation.getter(#minSdkAndroid),
returnValue: 0,
) as int);

@override
bool get removeAlphaIOS => (super.noSuchMethod(
Invocation.getter(#removeAlphaIOS),
returnValue: false,
) as bool);

@override
String get backgroundColorIOS => (super.noSuchMethod(
Invocation.getter(#backgroundColorIOS),
returnValue: '',
returnValue: _i4.dummyValue<String>(
this,
Invocation.getter(#backgroundColorIOS),
),
) as String);

@override
bool get hasAndroidAdaptiveConfig => (super.noSuchMethod(
Invocation.getter(#hasAndroidAdaptiveConfig),
returnValue: false,
) as bool);

@override
bool get hasAndroidAdaptiveMonochromeConfig => (super.noSuchMethod(
Invocation.getter(#hasAndroidAdaptiveMonochromeConfig),
Expand All @@ -67,36 +77,43 @@ class MockConfig extends _i1.Mock implements _i3.Config {
Invocation.getter(#hasPlatformConfig),
returnValue: false,
) as bool);

@override
bool get hasWebConfig => (super.noSuchMethod(
Invocation.getter(#hasWebConfig),
returnValue: false,
) as bool);

@override
bool get hasWindowsConfig => (super.noSuchMethod(
Invocation.getter(#hasWindowsConfig),
returnValue: false,
) as bool);

@override
bool get hasMacOSConfig => (super.noSuchMethod(
Invocation.getter(#hasMacOSConfig),
returnValue: false,
) as bool);

@override
bool get isCustomAndroidFile => (super.noSuchMethod(
Invocation.getter(#isCustomAndroidFile),
returnValue: false,
) as bool);

@override
bool get isNeedingNewAndroidIcon => (super.noSuchMethod(
Invocation.getter(#isNeedingNewAndroidIcon),
returnValue: false,
) as bool);

@override
bool get isNeedingNewIOSIcon => (super.noSuchMethod(
Invocation.getter(#isNeedingNewIOSIcon),
returnValue: false,
) as bool);

@override
Map<String, dynamic> toJson() => (super.noSuchMethod(
Invocation.method(
Expand All @@ -123,11 +140,16 @@ class MockIconGenerator extends _i1.Mock implements _i2.IconGenerator {
Invocation.getter(#context),
),
) as _i2.IconGeneratorContext);

@override
String get platformName => (super.noSuchMethod(
Invocation.getter(#platformName),
returnValue: '',
returnValue: _i4.dummyValue<String>(
this,
Invocation.getter(#platformName),
),
) as String);

@override
void createIcons() => super.noSuchMethod(
Invocation.method(
Expand All @@ -136,6 +158,7 @@ class MockIconGenerator extends _i1.Mock implements _i2.IconGenerator {
),
returnValueForMissingStub: null,
);

@override
bool validateRequirements() => (super.noSuchMethod(
Invocation.method(
Expand Down
40 changes: 33 additions & 7 deletions test/macos/macos_icon_generator_test.mocks.dart
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
// Mocks generated by Mockito 5.4.2 from annotations
// Mocks generated by Mockito 5.4.3 from annotations
// in flutter_launcher_icons/test/macos/macos_icon_generator_test.dart.
// Do not manually edit this file.

// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:cli_util/cli_logging.dart' as _i2;
import 'package:flutter_launcher_icons/config/config.dart' as _i3;
import 'package:flutter_launcher_icons/config/macos_config.dart' as _i4;
import 'package:flutter_launcher_icons/logger.dart' as _i5;
import 'package:flutter_launcher_icons/config/macos_config.dart' as _i5;
import 'package:flutter_launcher_icons/logger.dart' as _i6;
import 'package:mockito/mockito.dart' as _i1;
import 'package:mockito/src/dummies.dart' as _i4;

// ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values
// ignore_for_file: avoid_setters_without_getters
// ignore_for_file: comment_references
// ignore_for_file: deprecated_member_use
// ignore_for_file: deprecated_member_use_from_same_package
// ignore_for_file: implementation_imports
// ignore_for_file: invalid_use_of_visible_for_testing_member
// ignore_for_file: prefer_const_constructors
Expand Down Expand Up @@ -50,24 +53,34 @@ class MockConfig extends _i1.Mock implements _i3.Config {
returnValue: 0,
returnValueForMissingStub: 0,
) as int);

@override
bool get removeAlphaIOS => (super.noSuchMethod(
Invocation.getter(#removeAlphaIOS),
returnValue: false,
returnValueForMissingStub: false,
) as bool);

@override
String get backgroundColorIOS => (super.noSuchMethod(
Invocation.getter(#backgroundColorIOS),
returnValue: '',
returnValueForMissingStub: '',
returnValue: _i4.dummyValue<String>(
this,
Invocation.getter(#backgroundColorIOS),
),
returnValueForMissingStub: _i4.dummyValue<String>(
this,
Invocation.getter(#backgroundColorIOS),
),
) as String);

@override
bool get hasAndroidAdaptiveConfig => (super.noSuchMethod(
Invocation.getter(#hasAndroidAdaptiveConfig),
returnValue: false,
returnValueForMissingStub: false,
) as bool);

@override
bool get hasAndroidAdaptiveMonochromeConfig => (super.noSuchMethod(
Invocation.getter(#hasAndroidAdaptiveMonochromeConfig),
Expand All @@ -80,42 +93,49 @@ class MockConfig extends _i1.Mock implements _i3.Config {
returnValue: false,
returnValueForMissingStub: false,
) as bool);

@override
bool get hasWebConfig => (super.noSuchMethod(
Invocation.getter(#hasWebConfig),
returnValue: false,
returnValueForMissingStub: false,
) as bool);

@override
bool get hasWindowsConfig => (super.noSuchMethod(
Invocation.getter(#hasWindowsConfig),
returnValue: false,
returnValueForMissingStub: false,
) as bool);

@override
bool get hasMacOSConfig => (super.noSuchMethod(
Invocation.getter(#hasMacOSConfig),
returnValue: false,
returnValueForMissingStub: false,
) as bool);

@override
bool get isCustomAndroidFile => (super.noSuchMethod(
Invocation.getter(#isCustomAndroidFile),
returnValue: false,
returnValueForMissingStub: false,
) as bool);

@override
bool get isNeedingNewAndroidIcon => (super.noSuchMethod(
Invocation.getter(#isNeedingNewAndroidIcon),
returnValue: false,
returnValueForMissingStub: false,
) as bool);

@override
bool get isNeedingNewIOSIcon => (super.noSuchMethod(
Invocation.getter(#isNeedingNewIOSIcon),
returnValue: false,
returnValueForMissingStub: false,
) as bool);

@override
Map<String, dynamic> toJson() => (super.noSuchMethod(
Invocation.method(
Expand All @@ -130,13 +150,14 @@ class MockConfig extends _i1.Mock implements _i3.Config {
/// A class which mocks [MacOSConfig].
///
/// See the documentation for Mockito's code generation for more information.
class MockMacOSConfig extends _i1.Mock implements _i4.MacOSConfig {
class MockMacOSConfig extends _i1.Mock implements _i5.MacOSConfig {
@override
bool get generate => (super.noSuchMethod(
Invocation.getter(#generate),
returnValue: false,
returnValueForMissingStub: false,
) as bool);

@override
Map<String, dynamic> toJson() => (super.noSuchMethod(
Invocation.method(
Expand All @@ -151,13 +172,14 @@ class MockMacOSConfig extends _i1.Mock implements _i4.MacOSConfig {
/// A class which mocks [FLILogger].
///
/// See the documentation for Mockito's code generation for more information.
class MockFLILogger extends _i1.Mock implements _i5.FLILogger {
class MockFLILogger extends _i1.Mock implements _i6.FLILogger {
@override
bool get isVerbose => (super.noSuchMethod(
Invocation.getter(#isVerbose),
returnValue: false,
returnValueForMissingStub: false,
) as bool);

@override
_i2.Logger get rawLogger => (super.noSuchMethod(
Invocation.getter(#rawLogger),
Expand All @@ -170,6 +192,7 @@ class MockFLILogger extends _i1.Mock implements _i5.FLILogger {
Invocation.getter(#rawLogger),
),
) as _i2.Logger);

@override
void error(Object? message) => super.noSuchMethod(
Invocation.method(
Expand All @@ -178,6 +201,7 @@ class MockFLILogger extends _i1.Mock implements _i5.FLILogger {
),
returnValueForMissingStub: null,
);

@override
void verbose(Object? message) => super.noSuchMethod(
Invocation.method(
Expand All @@ -186,6 +210,7 @@ class MockFLILogger extends _i1.Mock implements _i5.FLILogger {
),
returnValueForMissingStub: null,
);

@override
void info(Object? message) => super.noSuchMethod(
Invocation.method(
Expand All @@ -194,6 +219,7 @@ class MockFLILogger extends _i1.Mock implements _i5.FLILogger {
),
returnValueForMissingStub: null,
);

@override
_i2.Progress progress(String? message) => (super.noSuchMethod(
Invocation.method(
Expand Down
Loading

0 comments on commit 8efdef4

Please sign in to comment.