diff --git a/CHANGELOG.md b/CHANGELOG.md index ca39c9d18a..74adb7b04e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.10.0 (2nd August 2022) + +- Support for Web Icons [#374](https://github.com/fluttercommunity/flutter_launcher_icons/pull/374) +- Support for Windows Icons [#382](https://github.com/fluttercommunity/flutter_launcher_icons/pull/382) +- Added missing IOS icon sizes [#298](https://github.com/fluttercommunity/flutter_launcher_icons/pull/298) +- Added `min_sdk_android` option [#392](https://github.com/fluttercommunity/flutter_launcher_icons/pull/392) +- Added documentation for `remove_alpha_ios` [#392](https://github.com/fluttercommunity/flutter_launcher_icons/pull/392) +- Fixed issue with loading config from `pubspec.yaml` [#398](https://github.com/fluttercommunity/flutter_launcher_icons/pull/398) (thanks to [@p-mazhnik](https://github.com/p-mazhnik)) + ## 0.9.3 (6th June 2022) - Fixes to make sure it works for Flutter v2.8 (thanks to @RatakondalaArun) @@ -9,7 +18,6 @@ - Fixed issue where success message printed even when exception occured (thanks to @happy-san) - ## 0.9.1 (25th July 2021) - Upgrade args dependency to ^2.1.1 (thanks to @PiN73 and @comlaterra) @@ -45,12 +53,10 @@ - Lot of refactoring and improving code quality (thanks to @connectety) - Added correct App Store icon settings (thanks to @richgoldmd) - ## 0.7.2 (25th May 2019) - Reverted back using old interpolation method - ## 0.7.1 (24th May 2019) - Fixed issue with image dependency not working on latest version of Flutter (thanks to @sboutet06) @@ -60,11 +66,11 @@ ## 0.7.0 (22nd November 2018) - - Now ensuring that the Android file name is valid - An error will be thrown if it doesn't meet the criteria - - Fixed issue where there was a git diff when there was no change - - Fixed issue where iOS icon would be generated when it shouldn't be - - Added support for drawables to be used for adaptive icon backgrounds - - Added support for Flutter Launcher Icons to be able to run with it's own config file (no longer necessary to add to pubspec.yaml) +- Now ensuring that the Android file name is valid - An error will be thrown if it doesn't meet the criteria +- Fixed issue where there was a git diff when there was no change +- Fixed issue where iOS icon would be generated when it shouldn't be +- Added support for drawables to be used for adaptive icon backgrounds +- Added support for Flutter Launcher Icons to be able to run with it's own config file (no longer necessary to add to pubspec.yaml) ## 0.6.1 (26th August 2018) @@ -87,27 +93,22 @@ - [Android] Support for adaptive icons added (Suggestion #23) - ## 0.4.0 (9th June 2018) - Now possible to generate icons for each platform with different image paths (one for iOS icon and a separate one for Android) - ## 0.3.3 (28th May 2018) - Upgraded dart image package dependency to 2.0.0 (issue #26) - ## 0.3.2 (2nd May 2018) - Bug fixing - ## 0.3.1 (1st May 2018) - Bug fixing - ## 0.3.0 (1st May 2018) - Fixed issue where icons produced weren't the correct size (Due to images not with a 1:1 aspect r ation) @@ -121,7 +122,6 @@ - Fixed iOS default icon name (Thanks to PR #15 - Thank you!) - Fixed issue #10 where creation of the icons was failing due to the target folder not existing - ## 0.2.0 (18th January 2018) - Ability to create new launcher icons without replacing the old ones added (#6) diff --git a/README.md b/README.md index 49b1035c97..af6ad12b39 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.9.3" + flutter_launcher_icons: "^0.10.0" flutter_icons: android: "launcher_icon" diff --git a/example/default_example/pubspec.yaml b/example/default_example/pubspec.yaml index bbb09bca4b..bd2c743759 100644 --- a/example/default_example/pubspec.yaml +++ b/example/default_example/pubspec.yaml @@ -21,11 +21,21 @@ flutter_icons: ios: true # can specify file name here e.g. "My-Launcher-Icon" adaptive_icon_background: "assets/images/christmas-background.png" # only available for Android 8.0 devices and above adaptive_icon_foreground: "assets/images/icon-foreground-432x432.png" # only available for Android 8.0 devices and above + min_sdk_android: 21 # android min sdk min:16, default 21 + remove_alpha_ios: true + web: + generate: true + image_path: "path/to/image.png" + background_color: "#hexcode" + theme_color: "#hexcode" + windows: + generate: true + image_path: "path/to/image.png" + icon_size: 48 # min:48, max:256, default: 48 dev_dependencies: flutter_test: sdk: flutter flutter: - uses-material-design: true diff --git a/lib/src/version.dart b/lib/src/version.dart index a2a001bd75..358c7b96ea 100644 --- a/lib/src/version.dart +++ b/lib/src/version.dart @@ -1,2 +1,2 @@ // Generated code. Do not modify. -const packageVersion = '0.9.3'; +const packageVersion = '0.10.0'; diff --git a/pubspec.yaml b/pubspec.yaml index dee2aaf911..f27ad68455 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.9.3 +version: 0.10.0 maintainer: Mark O'Sullivan (@MarkOSullivan94) homepage: https://github.com/fluttercommunity/flutter_launcher_icons @@ -14,11 +14,11 @@ dependencies: yaml: ^3.1.0 environment: - sdk: '>=2.12.0-0 <3.0.0' + sdk: '>=2.17.0 <3.0.0' dev_dependencies: # Needed by build_version - build_runner: 2.1.11 + build_runner: ^2.2.0 # allows us to get version number from pubspec yaml which we can pass to Sentry # https://pub.dev/packages/build_version build_version: ^2.1.1 diff --git a/test/abs/icon_generator_test.mocks.dart b/test/abs/icon_generator_test.mocks.dart index 1ed38cfdb2..c427ad651b 100644 --- a/test/abs/icon_generator_test.mocks.dart +++ b/test/abs/icon_generator_test.mocks.dart @@ -1,8 +1,7 @@ -// Mocks generated by Mockito 5.3.0 from annotations +// Mocks generated by Mockito 5.2.0 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/flutter_launcher_icons_config.dart' as _i3; @@ -17,13 +16,9 @@ import 'package:mockito/mockito.dart' as _i1; // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types -// ignore_for_file: subtype_of_sealed_class -class _FakeIconGeneratorContext_0 extends _i1.SmartFake - implements _i2.IconGeneratorContext { - _FakeIconGeneratorContext_0(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); -} +class _FakeIconGeneratorContext_0 extends _i1.Fake + implements _i2.IconGeneratorContext {} /// A class which mocks [FlutterLauncherIconsConfig]. /// @@ -78,10 +73,8 @@ 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))) - as _i2.IconGeneratorContext); + Invocation.getter(#context), + returnValue: _FakeIconGeneratorContext_0()) as _i2.IconGeneratorContext); @override String get platformName => (super.noSuchMethod(Invocation.getter(#platformName), returnValue: '') diff --git a/test/windows/windows_icon_generator_test.mocks.dart b/test/windows/windows_icon_generator_test.mocks.dart index e2889a865b..9e38faefd7 100644 --- a/test/windows/windows_icon_generator_test.mocks.dart +++ b/test/windows/windows_icon_generator_test.mocks.dart @@ -1,8 +1,7 @@ -// Mocks generated by Mockito 5.3.0 from annotations +// Mocks generated by Mockito 5.2.0 from annotations // in flutter_launcher_icons/test/windows/windows_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/flutter_launcher_icons_config.dart' as _i3; @@ -18,17 +17,10 @@ import 'package:mockito/mockito.dart' as _i1; // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types -// 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); -} +class _FakeLogger_0 extends _i1.Fake implements _i2.Logger {} -class _FakeProgress_1 extends _i1.SmartFake implements _i2.Progress { - _FakeProgress_1(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); -} +class _FakeProgress_1 extends _i1.Fake implements _i2.Progress {} /// A class which mocks [FlutterLauncherIconsConfig]. /// @@ -105,8 +97,7 @@ class MockFLILogger extends _i1.Mock implements _i4.FLILogger { as bool); @override _i2.Logger get rawLogger => (super.noSuchMethod(Invocation.getter(#rawLogger), - returnValue: _FakeLogger_0(this, Invocation.getter(#rawLogger))) - as _i2.Logger); + returnValue: _FakeLogger_0()) as _i2.Logger); @override void error(Object? message) => super.noSuchMethod(Invocation.method(#error, [message]), @@ -120,9 +111,7 @@ class MockFLILogger extends _i1.Mock implements _i4.FLILogger { 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); + _i2.Progress progress(String? message) => + (super.noSuchMethod(Invocation.method(#progress, [message]), + returnValue: _FakeProgress_1()) as _i2.Progress); }