diff --git a/CHANGELOG.md b/CHANGELOG.md index 74adb7b04e..528f3f8248 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 0.11.0 (27th September 2022) + +- Support for Macos Icons [#407](https://github.com/fluttercommunity/flutter_launcher_icons/pull/407) +- Cli-improvement [#400](https://github.com/fluttercommunity/flutter_launcher_icons/pull/400) +- Add `repository` and `issue_tracker` [#411](https://github.com/fluttercommunity/flutter_launcher_icons/pull/411) (thanks to [@patelpathik](https://github.com/patelpathik)) +- Fix indent in web/manifest.json [#407](https://github.com/fluttercommunity/flutter_launcher_icons/pull/407) +- Fix the icons 50 and 57 in `contents.json` [#412](https://github.com/fluttercommunity/flutter_launcher_icons/pull/412) (thanks to [@adnanjpg](https://github.com/adnanjpg)) +- Fix typos [#405](https://github.com/fluttercommunity/flutter_launcher_icons/pull/405) (thanks to [@edwardmp](https://github.com/edwardmp)) +- Added newline to EOF [#325](https://github.com/fluttercommunity/flutter_launcher_icons/pull/325) (thanks to [@sandersaelmans](https://github.com/sandersaelmans)) + ## 0.10.0 (2nd August 2022) - Support for Web Icons [#374](https://github.com/fluttercommunity/flutter_launcher_icons/pull/374) diff --git a/README.md b/README.md index ca0326b808..4e152139a7 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ An example is shown below. More complex examples [can be found in the example pr ```yaml dev_dependencies: - flutter_launcher_icons: "^0.10.0" + flutter_launcher_icons: "^0.11.0" flutter_icons: android: "launcher_icon" diff --git a/lib/src/version.dart b/lib/src/version.dart index 358c7b96ea..884cfa9548 100644 --- a/lib/src/version.dart +++ b/lib/src/version.dart @@ -1,2 +1,2 @@ // Generated code. Do not modify. -const packageVersion = '0.10.0'; +const packageVersion = '0.11.0'; diff --git a/pubspec.yaml b/pubspec.yaml index 10ebb599c4..7cc0884573 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_launcher_icons description: A package which simplifies the task of updating your Flutter app's launcher icon. -version: 0.10.0 +version: 0.11.0 maintainer: Mark O'Sullivan (@MarkOSullivan94) homepage: https://github.com/fluttercommunity/flutter_launcher_icons repository: https://github.com/fluttercommunity/flutter_launcher_icons/ diff --git a/test/abs/icon_generator_test.mocks.dart b/test/abs/icon_generator_test.mocks.dart index df330e0ce8..8b26393b81 100644 --- a/test/abs/icon_generator_test.mocks.dart +++ b/test/abs/icon_generator_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.0 from annotations +// Mocks generated by Mockito 5.3.2 from annotations // in flutter_launcher_icons/test/abs/icon_generator_test.dart. // Do not manually edit this file. @@ -21,8 +21,13 @@ import 'package:mockito/mockito.dart' as _i1; class _FakeIconGeneratorContext_0 extends _i1.SmartFake implements _i2.IconGeneratorContext { - _FakeIconGeneratorContext_0(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeIconGeneratorContext_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } /// A class which mocks [FlutterLauncherIconsConfig]. @@ -35,37 +40,48 @@ class MockFlutterLauncherIconsConfig extends _i1.Mock } @override - int get minSdkAndroid => - (super.noSuchMethod(Invocation.getter(#minSdkAndroid), returnValue: 0) - as int); + int get minSdkAndroid => (super.noSuchMethod( + Invocation.getter(#minSdkAndroid), + returnValue: 0, + ) as int); @override - bool get removeAlphaIOS => (super - .noSuchMethod(Invocation.getter(#removeAlphaIOS), returnValue: false) - as bool); + bool get removeAlphaIOS => (super.noSuchMethod( + Invocation.getter(#removeAlphaIOS), + returnValue: false, + ) as bool); @override - bool get hasAndroidAdaptiveConfig => - (super.noSuchMethod(Invocation.getter(#hasAndroidAdaptiveConfig), - returnValue: false) as bool); + bool get hasAndroidAdaptiveConfig => (super.noSuchMethod( + Invocation.getter(#hasAndroidAdaptiveConfig), + returnValue: false, + ) as bool); @override - bool get hasPlatformConfig => - (super.noSuchMethod(Invocation.getter(#hasPlatformConfig), - returnValue: false) as bool); + bool get hasPlatformConfig => (super.noSuchMethod( + Invocation.getter(#hasPlatformConfig), + returnValue: false, + ) as bool); @override - bool get isCustomAndroidFile => - (super.noSuchMethod(Invocation.getter(#isCustomAndroidFile), - returnValue: false) as bool); + 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); + 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); + bool get isNeedingNewIOSIcon => (super.noSuchMethod( + Invocation.getter(#isNeedingNewIOSIcon), + returnValue: false, + ) as bool); @override - Map toJson() => - (super.noSuchMethod(Invocation.method(#toJson, []), - returnValue: {}) as Map); + Map toJson() => (super.noSuchMethod( + Invocation.method( + #toJson, + [], + ), + returnValue: {}, + ) as Map); } /// A class which mocks [IconGenerator]. @@ -78,19 +94,31 @@ class MockIconGenerator extends _i1.Mock implements _i2.IconGenerator { @override _i2.IconGeneratorContext get context => (super.noSuchMethod( + Invocation.getter(#context), + returnValue: _FakeIconGeneratorContext_0( + this, Invocation.getter(#context), - returnValue: - _FakeIconGeneratorContext_0(this, Invocation.getter(#context))) - as _i2.IconGeneratorContext); + ), + ) as _i2.IconGeneratorContext); @override - String get platformName => - (super.noSuchMethod(Invocation.getter(#platformName), returnValue: '') - as String); + String get platformName => (super.noSuchMethod( + Invocation.getter(#platformName), + returnValue: '', + ) as String); @override - void createIcons() => super.noSuchMethod(Invocation.method(#createIcons, []), - returnValueForMissingStub: null); + void createIcons() => super.noSuchMethod( + Invocation.method( + #createIcons, + [], + ), + returnValueForMissingStub: null, + ); @override - bool validateRequirements() => - (super.noSuchMethod(Invocation.method(#validateRequirements, []), - returnValue: false) as bool); + bool validateRequirements() => (super.noSuchMethod( + Invocation.method( + #validateRequirements, + [], + ), + returnValue: false, + ) as bool); } diff --git a/test/macos/macos_icon_generator_test.mocks.dart b/test/macos/macos_icon_generator_test.mocks.dart index cb3613de09..1039287ade 100644 --- a/test/macos/macos_icon_generator_test.mocks.dart +++ b/test/macos/macos_icon_generator_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.0 from annotations +// Mocks generated by Mockito 5.3.2 from annotations // in flutter_launcher_icons/test/macos/macos_icon_generator_test.dart. // Do not manually edit this file. @@ -21,13 +21,23 @@ import 'package:mockito/mockito.dart' as _i1; // ignore_for_file: subtype_of_sealed_class class _FakeLogger_0 extends _i1.SmartFake implements _i2.Logger { - _FakeLogger_0(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeLogger_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakeProgress_1 extends _i1.SmartFake implements _i2.Progress { - _FakeProgress_1(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeProgress_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } /// A class which mocks [FlutterLauncherIconsConfig]. @@ -36,38 +46,56 @@ class _FakeProgress_1 extends _i1.SmartFake implements _i2.Progress { class MockFlutterLauncherIconsConfig extends _i1.Mock implements _i3.FlutterLauncherIconsConfig { @override - int get minSdkAndroid => - (super.noSuchMethod(Invocation.getter(#minSdkAndroid), - returnValue: 0, returnValueForMissingStub: 0) as int); - @override - bool get removeAlphaIOS => - (super.noSuchMethod(Invocation.getter(#removeAlphaIOS), - returnValue: false, returnValueForMissingStub: false) as bool); - @override - bool get hasAndroidAdaptiveConfig => - (super.noSuchMethod(Invocation.getter(#hasAndroidAdaptiveConfig), - returnValue: false, returnValueForMissingStub: false) as bool); - @override - bool get hasPlatformConfig => - (super.noSuchMethod(Invocation.getter(#hasPlatformConfig), - 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); + int get minSdkAndroid => (super.noSuchMethod( + Invocation.getter(#minSdkAndroid), + returnValue: 0, + returnValueForMissingStub: 0, + ) as int); + @override + bool get removeAlphaIOS => (super.noSuchMethod( + Invocation.getter(#removeAlphaIOS), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); + @override + bool get hasAndroidAdaptiveConfig => (super.noSuchMethod( + Invocation.getter(#hasAndroidAdaptiveConfig), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); + @override + bool get hasPlatformConfig => (super.noSuchMethod( + Invocation.getter(#hasPlatformConfig), + 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 toJson() => (super.noSuchMethod( - Invocation.method(#toJson, []), - returnValue: {}, - returnValueForMissingStub: {}) as Map); + Invocation.method( + #toJson, + [], + ), + returnValue: {}, + returnValueForMissingStub: {}, + ) as Map); } /// A class which mocks [MacOSConfig]. @@ -75,13 +103,20 @@ class MockFlutterLauncherIconsConfig extends _i1.Mock /// See the documentation for Mockito's code generation for more information. class MockMacOSConfig extends _i1.Mock implements _i3.MacOSConfig { @override - bool get generate => (super.noSuchMethod(Invocation.getter(#generate), - returnValue: false, returnValueForMissingStub: false) as bool); + bool get generate => (super.noSuchMethod( + Invocation.getter(#generate), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override Map toJson() => (super.noSuchMethod( - Invocation.method(#toJson, []), - returnValue: {}, - returnValueForMissingStub: {}) as Map); + Invocation.method( + #toJson, + [], + ), + returnValue: {}, + returnValueForMissingStub: {}, + ) as Map); } /// A class which mocks [FLILogger]. @@ -89,31 +124,66 @@ class MockMacOSConfig extends _i1.Mock implements _i3.MacOSConfig { /// See the documentation for Mockito's code generation for more information. class MockFLILogger extends _i1.Mock implements _i4.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), - returnValue: _FakeLogger_0(this, Invocation.getter(#rawLogger)), - returnValueForMissingStub: - _FakeLogger_0(this, Invocation.getter(#rawLogger))) as _i2.Logger); - @override - void error(Object? message) => - super.noSuchMethod(Invocation.method(#error, [message]), - returnValueForMissingStub: null); - @override - void verbose(Object? message) => - super.noSuchMethod(Invocation.method(#verbose, [message]), - returnValueForMissingStub: null); - @override - void info(Object? message) => - super.noSuchMethod(Invocation.method(#info, [message]), - returnValueForMissingStub: null); + bool get isVerbose => (super.noSuchMethod( + Invocation.getter(#isVerbose), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); + @override + _i2.Logger get rawLogger => (super.noSuchMethod( + Invocation.getter(#rawLogger), + returnValue: _FakeLogger_0( + this, + Invocation.getter(#rawLogger), + ), + returnValueForMissingStub: _FakeLogger_0( + this, + Invocation.getter(#rawLogger), + ), + ) as _i2.Logger); + @override + void error(Object? message) => super.noSuchMethod( + Invocation.method( + #error, + [message], + ), + returnValueForMissingStub: null, + ); + @override + void verbose(Object? message) => super.noSuchMethod( + Invocation.method( + #verbose, + [message], + ), + returnValueForMissingStub: null, + ); + @override + void info(Object? message) => super.noSuchMethod( + Invocation.method( + #info, + [message], + ), + returnValueForMissingStub: null, + ); @override _i2.Progress progress(String? message) => (super.noSuchMethod( - Invocation.method(#progress, [message]), - returnValue: - _FakeProgress_1(this, Invocation.method(#progress, [message])), - returnValueForMissingStub: - _FakeProgress_1(this, Invocation.method(#progress, [message]))) - as _i2.Progress); + Invocation.method( + #progress, + [message], + ), + returnValue: _FakeProgress_1( + this, + Invocation.method( + #progress, + [message], + ), + ), + returnValueForMissingStub: _FakeProgress_1( + this, + Invocation.method( + #progress, + [message], + ), + ), + ) as _i2.Progress); } diff --git a/test/windows/windows_icon_generator_test.mocks.dart b/test/windows/windows_icon_generator_test.mocks.dart index 07756ea200..4ca4948570 100644 --- a/test/windows/windows_icon_generator_test.mocks.dart +++ b/test/windows/windows_icon_generator_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.0 from annotations +// Mocks generated by Mockito 5.3.2 from annotations // in flutter_launcher_icons/test/windows/windows_icon_generator_test.dart. // Do not manually edit this file. @@ -21,13 +21,23 @@ import 'package:mockito/mockito.dart' as _i1; // ignore_for_file: subtype_of_sealed_class class _FakeLogger_0 extends _i1.SmartFake implements _i2.Logger { - _FakeLogger_0(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeLogger_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakeProgress_1 extends _i1.SmartFake implements _i2.Progress { - _FakeProgress_1(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeProgress_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } /// A class which mocks [FlutterLauncherIconsConfig]. @@ -40,37 +50,48 @@ class MockFlutterLauncherIconsConfig extends _i1.Mock } @override - int get minSdkAndroid => - (super.noSuchMethod(Invocation.getter(#minSdkAndroid), returnValue: 0) - as int); - @override - bool get removeAlphaIOS => (super - .noSuchMethod(Invocation.getter(#removeAlphaIOS), returnValue: false) - as bool); - @override - bool get hasAndroidAdaptiveConfig => - (super.noSuchMethod(Invocation.getter(#hasAndroidAdaptiveConfig), - returnValue: false) as bool); - @override - bool get hasPlatformConfig => - (super.noSuchMethod(Invocation.getter(#hasPlatformConfig), - 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 toJson() => - (super.noSuchMethod(Invocation.method(#toJson, []), - returnValue: {}) as Map); + int get minSdkAndroid => (super.noSuchMethod( + Invocation.getter(#minSdkAndroid), + returnValue: 0, + ) as int); + @override + bool get removeAlphaIOS => (super.noSuchMethod( + Invocation.getter(#removeAlphaIOS), + returnValue: false, + ) as bool); + @override + bool get hasAndroidAdaptiveConfig => (super.noSuchMethod( + Invocation.getter(#hasAndroidAdaptiveConfig), + returnValue: false, + ) as bool); + @override + bool get hasPlatformConfig => (super.noSuchMethod( + Invocation.getter(#hasPlatformConfig), + 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 toJson() => (super.noSuchMethod( + Invocation.method( + #toJson, + [], + ), + returnValue: {}, + ) as Map); } /// A class which mocks [WindowsConfig]. @@ -82,13 +103,18 @@ class MockWindowsConfig extends _i1.Mock implements _i3.WindowsConfig { } @override - bool get generate => - (super.noSuchMethod(Invocation.getter(#generate), returnValue: false) - as bool); - @override - Map toJson() => - (super.noSuchMethod(Invocation.method(#toJson, []), - returnValue: {}) as Map); + bool get generate => (super.noSuchMethod( + Invocation.getter(#generate), + returnValue: false, + ) as bool); + @override + Map toJson() => (super.noSuchMethod( + Invocation.method( + #toJson, + [], + ), + returnValue: {}, + ) as Map); } /// A class which mocks [FLILogger]. @@ -100,29 +126,54 @@ class MockFLILogger extends _i1.Mock implements _i4.FLILogger { } @override - bool get isVerbose => - (super.noSuchMethod(Invocation.getter(#isVerbose), returnValue: false) - as bool); - @override - _i2.Logger get rawLogger => (super.noSuchMethod(Invocation.getter(#rawLogger), - returnValue: _FakeLogger_0(this, Invocation.getter(#rawLogger))) - as _i2.Logger); - @override - void error(Object? message) => - super.noSuchMethod(Invocation.method(#error, [message]), - returnValueForMissingStub: null); - @override - void verbose(Object? message) => - super.noSuchMethod(Invocation.method(#verbose, [message]), - returnValueForMissingStub: null); - @override - void info(Object? message) => - super.noSuchMethod(Invocation.method(#info, [message]), - returnValueForMissingStub: null); + bool get isVerbose => (super.noSuchMethod( + Invocation.getter(#isVerbose), + returnValue: false, + ) as bool); + @override + _i2.Logger get rawLogger => (super.noSuchMethod( + Invocation.getter(#rawLogger), + returnValue: _FakeLogger_0( + this, + Invocation.getter(#rawLogger), + ), + ) as _i2.Logger); + @override + void error(Object? message) => super.noSuchMethod( + Invocation.method( + #error, + [message], + ), + returnValueForMissingStub: null, + ); + @override + void verbose(Object? message) => super.noSuchMethod( + Invocation.method( + #verbose, + [message], + ), + returnValueForMissingStub: null, + ); + @override + void info(Object? message) => super.noSuchMethod( + Invocation.method( + #info, + [message], + ), + returnValueForMissingStub: null, + ); @override _i2.Progress progress(String? message) => (super.noSuchMethod( - Invocation.method(#progress, [message]), - returnValue: - _FakeProgress_1(this, Invocation.method(#progress, [message]))) - as _i2.Progress); + Invocation.method( + #progress, + [message], + ), + returnValue: _FakeProgress_1( + this, + Invocation.method( + #progress, + [message], + ), + ), + ) as _i2.Progress); }