diff --git a/CHANGELOG.md b/CHANGELOG.md index 09abd5a..0db2924 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,16 @@ +## [2.3.11] - (2024-Feb-14) + +- Updated dependencies. + ## [2.3.10] - (2024-Jan-28) -- Fixed parameter `background_image_android`. Fixes [#652](https://github.com/jonbhanson/flutter_native_splash/issues/652). -- Exit process with error code when unexpected config provided in YAML. Thanks [smit-ghl](https://github.com/smit-ghl) for [PR #657](https://github.com/jonbhanson/flutter_native_splash/pull/657). -- Updated readme. Thanks [Mercutio1243](https://github.com/Mercutio1243) for the suggestions. Closes [#658](https://github.com/jonbhanson/flutter_native_splash/issues/658). +- Fixed parameter `background_image_android`. Fixes [#652](https://github.com/jonbhanson/flutter_native_splash/issues/652). +- Exit process with error code when unexpected config provided in YAML. Thanks [smit-ghl](https://github.com/smit-ghl) for [PR #657](https://github.com/jonbhanson/flutter_native_splash/pull/657). +- Updated readme. Thanks [Mercutio1243](https://github.com/Mercutio1243) for the suggestions. Closes [#658](https://github.com/jonbhanson/flutter_native_splash/issues/658). ## [2.3.9] - (2023-Dec-31) -- Resolve lint warnings. Update readme. +- Resolve lint warnings. Update readme. ## [2.3.8] - (2023-Dec-07) @@ -14,20 +18,20 @@ ## [2.3.7] - (2023-Dec-06) -- Roll back web fade as it was a breaking change. Fixes [#628](https://github.com/jonbhanson/flutter_native_splash/issues/628). Fixes [#627](https://github.com/jonbhanson/flutter_native_splash/issues/627). Fixes [#622](https://github.com/jonbhanson/flutter_native_splash/issues/622). +- Roll back web fade as it was a breaking change. Fixes [#628](https://github.com/jonbhanson/flutter_native_splash/issues/628). Fixes [#627](https://github.com/jonbhanson/flutter_native_splash/issues/627). Fixes [#622](https://github.com/jonbhanson/flutter_native_splash/issues/622). ## [2.3.6] - (2023-Nov-20) -- Add fade between splash and app on web. Thanks [eggp](https://github.com/eggp) for the suggestion and example code. Closes [#608](https://github.com/jonbhanson/flutter_native_splash/issues/608). +- Add fade between splash and app on web. Thanks [eggp](https://github.com/eggp) for the suggestion and example code. Closes [#608](https://github.com/jonbhanson/flutter_native_splash/issues/608). - Add check of parameter names to catch user typos in the parameters. ## [2.3.5] - (2023-Oct-29) -- Remove white flash on web. Thanks [eggp](https://github.com/eggp) for pointing out the problem and solution. Closes [#607](https://github.com/jonbhanson/flutter_native_splash/issues/607). +- Remove white flash on web. Thanks [eggp](https://github.com/eggp) for pointing out the problem and solution. Closes [#607](https://github.com/jonbhanson/flutter_native_splash/issues/607). ## [2.3.4] - (2023-Oct-16) -- Use `average` for image interpolation to reduce aliasing. Thanks [Shawn](https://github.com/esDotDev) for the tip. Fixes [#598](https://github.com/jonbhanson/flutter_native_splash/issues/598). +- Use `average` for image interpolation to reduce aliasing. Thanks [Shawn](https://github.com/esDotDev) for the tip. Fixes [#598](https://github.com/jonbhanson/flutter_native_splash/issues/598). ## [2.3.3] - (2023-Oct-02) @@ -52,7 +56,7 @@ - Update example app for Flutter 3.10. Thanks [OutdatedGuy](https://github.com/OutdatedGuy) for [PR #551](https://github.com/jonbhanson/flutter_native_splash/pull/551). - Replaced deprecated code with suggested ones. Thanks [OutdatedGuy](https://github.com/OutdatedGuy) for [PR #550](https://github.com/jonbhanson/flutter_native_splash/pull/550). - Update ci.yaml with latest flutter CLI commands. Thanks [OutdatedGuy](https://github.com/OutdatedGuy) for [PR #552](https://github.com/jonbhanson/flutter_native_splash/pull/552). -- Fix compatibility with AGP 8.0. Thanks [Aljoscha](https://github.com/Almighty-Alpaca) for [PR #545](https://github.com/jonbhanson/flutter_native_splash/pull/545). +- Fix compatibility with AGP 8.0. Thanks [Aljoscha](https://github.com/Almighty-Alpaca) for [PR #545](https://github.com/jonbhanson/flutter_native_splash/pull/545). - Migrate to systemUIMode. Thanks [Milind](https://github.com/milindgoel15) for [PR #534](https://github.com/jonbhanson/flutter_native_splash/pull/534). ## [2.2.19] - (2023-Mar-05) @@ -63,46 +67,46 @@ ## [2.2.18] - (2023-Feb-19) -- Remove `v31/styles.xml` files if not in use. Fixes [#514](https://github.com/jonbhanson/flutter_native_splash/issues/514). -- Remove web changes on `remove` command. Fixes [#516](https://github.com/jonbhanson/flutter_native_splash/issues/516). +- Remove `v31/styles.xml` files if not in use. Fixes [#514](https://github.com/jonbhanson/flutter_native_splash/issues/514). +- Remove web changes on `remove` command. Fixes [#516](https://github.com/jonbhanson/flutter_native_splash/issues/516). ## [2.2.17] - (2023-Jan-15) -- Updated image dependency to v4.0.10. Fixes [#497](https://github.com/jonbhanson/flutter_native_splash/issues/497). -- Changed image processing from linear to cubic to improve image quality. Fixes [#472](https://github.com/jonbhanson/flutter_native_splash/issues/472). +- Updated image dependency to v4.0.10. Fixes [#497](https://github.com/jonbhanson/flutter_native_splash/issues/497). +- Changed image processing from linear to cubic to improve image quality. Fixes [#472](https://github.com/jonbhanson/flutter_native_splash/issues/472). ## [2.2.16] - (2022-Nov-27) - Update documentation on Android 12. -- Fix web background image. Thanks [Severin](https://github.com/Bungeefan) for [PR #459](https://github.com/jonbhanson/flutter_native_splash/pull/459). -- Support more image formats. Thanks [Severin](https://github.com/Bungeefan) for [PR #460](https://github.com/jonbhanson/flutter_native_splash/pull/460). +- Fix web background image. Thanks [Severin](https://github.com/Bungeefan) for [PR #459](https://github.com/jonbhanson/flutter_native_splash/pull/459). +- Support more image formats. Thanks [Severin](https://github.com/Bungeefan) for [PR #460](https://github.com/jonbhanson/flutter_native_splash/pull/460). ## [2.2.15] - (2022-Nov-20) -- Fix iOS background image build incorrectly when background dark image is used. Fixes [#452](https://github.com/jonbhanson/flutter_native_splash/issues/452), fixes [#439](https://github.com/jonbhanson/flutter_native_splash/issues/439). -- Correct background image/color handling on web. Fixes [#450](https://github.com/jonbhanson/flutter_native_splash/issues/450), fixes [324](https://github.com/jonbhanson/flutter_native_splash/issues/324). -- Don't include dark styling in web if not specified in config. Fixes [#453](https://github.com/jonbhanson/flutter_native_splash/issues/453). -- Add _Parameters class to hold parameters. +- Fix iOS background image build incorrectly when background dark image is used. Fixes [#452](https://github.com/jonbhanson/flutter_native_splash/issues/452), fixes [#439](https://github.com/jonbhanson/flutter_native_splash/issues/439). +- Correct background image/color handling on web. Fixes [#450](https://github.com/jonbhanson/flutter_native_splash/issues/450), fixes [324](https://github.com/jonbhanson/flutter_native_splash/issues/324). +- Don't include dark styling in web if not specified in config. Fixes [#453](https://github.com/jonbhanson/flutter_native_splash/issues/453). +- Add \_Parameters class to hold parameters. ## [2.2.14] - (2022-Nov-07) -- Don't update `values-31` if there is no `android_12` section in the config. Closes [#447](https://github.com/jonbhanson/flutter_native_splash/issues/447). +- Don't update `values-31` if there is no `android_12` section in the config. Closes [#447](https://github.com/jonbhanson/flutter_native_splash/issues/447). - Additional fix for index.html getting extra blank lines. Fixes [#430](https://github.com/jonbhanson/flutter_native_splash/issues/430). ## [2.2.13] - (2022-Oct-30) -- Corrected Android 12 dark parameters not defaulting to light parameters. Thanks [elliotrtd](https://github.com/elliotrtd) for the [heads up](https://github.com/jonbhanson/flutter_native_splash/issues/400#issuecomment-1235100173) on this issue. +- Corrected Android 12 dark parameters not defaulting to light parameters. Thanks [elliotrtd](https://github.com/elliotrtd) for the [heads up](https://github.com/jonbhanson/flutter_native_splash/issues/400#issuecomment-1235100173) on this issue. ## [2.2.12] - (2022-Oct-23) - Updated readme and dependancies. -- Add CI, resolve some lints, and fix tests. Thanks [lsaudon](https://github.com/lsaudon) for [PR #433](https://github.com/jonbhanson/flutter_native_splash/pull/433). +- Add CI, resolve some lints, and fix tests. Thanks [lsaudon](https://github.com/lsaudon) for [PR #433](https://github.com/jonbhanson/flutter_native_splash/pull/433). ## [2.2.11] - (2022-Oct-09) -- Fixed Android 11 color issue. Fixes [#429](https://github.com/jonbhanson/flutter_native_splash/issues/429). -- Fix index.html getting extra blank lines. Fixes [#430](https://github.com/jonbhanson/flutter_native_splash/issues/430). -- Update the readme. Closes [#431](https://github.com/jonbhanson/flutter_native_splash/issues/431). +- Fixed Android 11 color issue. Fixes [#429](https://github.com/jonbhanson/flutter_native_splash/issues/429). +- Fix index.html getting extra blank lines. Fixes [#430](https://github.com/jonbhanson/flutter_native_splash/issues/430). +- Update the readme. Closes [#431](https://github.com/jonbhanson/flutter_native_splash/issues/431). ## [2.2.10+1] - (2022-Sep-25) @@ -111,31 +115,31 @@ ## [2.2.9] - (2022-Sep-07) -- Update pub.dev links. Thanks [Joachim](https://github.com/nohli) for [PR #415](https://github.com/jonbhanson/flutter_native_splash/pull/415). -- Fix Android 12 branding issue. Thanks [Matías](https://github.com/mirland) for [PR #414](https://github.com/jonbhanson/flutter_native_splash/pull/414). -- Corrected copyright notice. Closes [#416](https://github.com/jonbhanson/flutter_native_splash/issues/416). -- Added Android 12 example. Closes [#412](https://github.com/jonbhanson/flutter_native_splash/issues/412). +- Update pub.dev links. Thanks [Joachim](https://github.com/nohli) for [PR #415](https://github.com/jonbhanson/flutter_native_splash/pull/415). +- Fix Android 12 branding issue. Thanks [Matías](https://github.com/mirland) for [PR #414](https://github.com/jonbhanson/flutter_native_splash/pull/414). +- Corrected copyright notice. Closes [#416](https://github.com/jonbhanson/flutter_native_splash/issues/416). +- Added Android 12 example. Closes [#412](https://github.com/jonbhanson/flutter_native_splash/issues/412). ## [2.2.8] - (2022-Aug-21) -- Use Theme.Light.NoTitleBar. Fixes [#402](https://github.com/jonbhanson/flutter_native_splash/issues/402). -- Correct android spelling in readme. Thanks [Muhammad](https://github.com/itsahmed-dev) for [PR #407](https://github.com/jonbhanson/flutter_native_splash/pull/407). -- Use html parser. Thanks [OutdatedGuy](https://github.com/OutdatedGuy) for [PR #396](https://github.com/jonbhanson/flutter_native_splash/pull/396). -- Separate branding property for Android 12. Closes [#405](https://github.com/jonbhanson/flutter_native_splash/issues/405). +- Use Theme.Light.NoTitleBar. Fixes [#402](https://github.com/jonbhanson/flutter_native_splash/issues/402). +- Correct android spelling in readme. Thanks [Muhammad](https://github.com/itsahmed-dev) for [PR #407](https://github.com/jonbhanson/flutter_native_splash/pull/407). +- Use html parser. Thanks [OutdatedGuy](https://github.com/OutdatedGuy) for [PR #396](https://github.com/jonbhanson/flutter_native_splash/pull/396). +- Separate branding property for Android 12. Closes [#405](https://github.com/jonbhanson/flutter_native_splash/issues/405). ## [2.2.7] - (2022-July-31) -- Remove branding on Android 12 if branding is not specified. Fixes [#399](https://github.com/jonbhanson/flutter_native_splash/issues/399). +- Remove branding on Android 12 if branding is not specified. Fixes [#399](https://github.com/jonbhanson/flutter_native_splash/issues/399). ## [2.2.6] - (2022-July-24) -- Fix parseColor test. Thanks [mihiro](https://github.com/mihiron) for [PR #393](https://github.com/jonbhanson/flutter_native_splash/pull/393). -- Fix branding image source link broken and optimized code with optional chaining operator. Thanks [OutdatedGuy](https://github.com/OutdatedGuy) for [PR #394](https://github.com/jonbhanson/flutter_native_splash/pull/394) and [PR #395](https://github.com/jonbhanson/flutter_native_splash/pull/395). +- Fix parseColor test. Thanks [mihiro](https://github.com/mihiron) for [PR #393](https://github.com/jonbhanson/flutter_native_splash/pull/393). +- Fix branding image source link broken and optimized code with optional chaining operator. Thanks [OutdatedGuy](https://github.com/OutdatedGuy) for [PR #394](https://github.com/jonbhanson/flutter_native_splash/pull/394) and [PR #395](https://github.com/jonbhanson/flutter_native_splash/pull/395). ## [2.2.5] - (2022-July-17) -- Added Branding Image support for the web platform. Thanks [OutdatedGuy](https://github.com/OutdatedGuy) for [PR #386](https://github.com/jonbhanson/flutter_native_splash/pull/386). -- Fix android12 config name. Thanks [mihiro](https://github.com/mihiron) for [PR #390](https://github.com/jonbhanson/flutter_native_splash/pull/390). +- Added Branding Image support for the web platform. Thanks [OutdatedGuy](https://github.com/OutdatedGuy) for [PR #386](https://github.com/jonbhanson/flutter_native_splash/pull/386). +- Fix android12 config name. Thanks [mihiro](https://github.com/mihiron) for [PR #390](https://github.com/jonbhanson/flutter_native_splash/pull/390). ## [2.2.4] - (2022-July-03) diff --git a/README.md b/README.md index 8b2d145..a96edbd 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ First, add `flutter_native_splash` as a dependency in your pubspec.yaml file. ```yaml dependencies: - flutter_native_splash: ^2.3.10 + flutter_native_splash: ^2.3.11 ``` Don't forget to `flutter pub get`. @@ -40,7 +40,7 @@ flutter_native_splash: # IMPORTANT NOTE: These parameter do not affect the configuration of Android 12 and later, which # handle splash screens differently that prior versions of Android. Android 12 and later must be # configured specifically in the android_12 section below. - + # color or background_image is the only required parameter. Use color to set the background # of your splash screen to a solid color. Use background_image to set the background of your # splash screen to a png image. This is useful for gradients. The image will be stretch to the @@ -227,20 +227,20 @@ Be aware of the following considerations regarding these elements: 1. `image` parameter. By default, the launcher icon is used: - * App icon without an icon background, as shown on the left: This should be 1152×1152 pixels, and fit within a circle 768 pixels in diameter. - * App icon with an icon background, as shown on the right: This should be 960×960 pixels, and fit within a circle 640 pixels in diameter. + - App icon without an icon background, as shown on the left: This should be 1152×1152 pixels, and fit within a circle 768 pixels in diameter. + - App icon with an icon background, as shown on the right: This should be 960×960 pixels, and fit within a circle 640 pixels in diameter. 2. `icon_background_color` is optional, and is useful if you need more contrast between the icon and the window background. 3. One-third of the foreground is masked. -4. `color` the window background consists of a single opaque color. +4. `color` the window background consists of a single opaque color. -**_PLEASE NOTE:_** The splash screen may not appear when you launch the app from Android Studio on API 31. However, it should appear when you launch by clicking on the launch icon in Android. This seems to be resolved in API 32+. +**_PLEASE NOTE:_** The splash screen may not appear when you launch the app from Android Studio on API 31. However, it should appear when you launch by clicking on the launch icon in Android. This seems to be resolved in API 32+. **_PLEASE NOTE:_** There are a number of reports that non-Google launchers do not display the launch image correctly. If the launch image does not display correctly, please try the Google launcher to confirm that this package is working. -**_PLEASE NOTE:_** The splash screen does not appear when you launch the app from a notification. Apparently this is the intended behavior on Android 12: [core-splashscreen Icon not shown when cold launched from notification](https://issuetracker.google.com/issues/199776339?pli=1). +**_PLEASE NOTE:_** The splash screen does not appear when you launch the app from a notification. Apparently this is the intended behavior on Android 12: [core-splashscreen Icon not shown when cold launched from notification](https://issuetracker.google.com/issues/199776339?pli=1). # Flavor Support @@ -335,9 +335,11 @@ dart run flutter_native_splash:create --flavor development You also have the ability to specify all the flavors in one command as shown bellow: + ```bash dart run flutter_native_splash:create --flavors development,staging,production ``` + Note: the available flavors need to be comma separated for this option to work. ### Android setup @@ -406,7 +408,7 @@ The solution is to remove the above code. Note that this will also remove the fa ## Are animations/lottie/GIF images supported? -GIFs are now supported on web. Lotties are not yet supported. PRs are always welcome! +GIFs are now supported on web. Lotties are not yet supported. PRs are always welcome! ## I got the error AAPT: error: style attribute 'android:attr/windowSplashScreenBackground' not found diff --git a/example/pubspec.lock b/example/pubspec.lock index 6016ccf..72ead4a 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -124,7 +124,7 @@ packages: path: ".." relative: true source: path - version: "2.3.10" + version: "2.3.11" flutter_test: dependency: "direct dev" description: flutter @@ -147,18 +147,18 @@ packages: dependency: transitive description: name: image - sha256: "028f61960d56f26414eb616b48b04eb37d700cbe477b7fb09bf1d7ce57fd9271" + sha256: "4c68bfd5ae83e700b5204c1e74451e7bf3cf750e6843c6e158289cf56bda018e" url: "https://pub.dev" source: hosted - version: "4.1.3" + version: "4.1.7" js: dependency: transitive description: name: js - sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + sha256: "4186c61b32f99e60f011f7160e32c89a758ae9b1d0c6d28e2c02ef0382300e2b" url: "https://pub.dev" source: hosted - version: "0.6.7" + version: "0.7.0" lints: dependency: transitive description: @@ -211,10 +211,10 @@ packages: dependency: transitive description: name: pointycastle - sha256: "7c1e5f0d23c9016c5bbd8b1473d0d3fb3fc851b876046039509e18e0c7485f2c" + sha256: "43ac87de6e10afabc85c445745a7b799e04de84cebaa4fd7bf55a5e1e9604d29" url: "https://pub.dev" source: hosted - version: "3.7.3" + version: "3.7.4" sky_engine: dependency: transitive description: flutter diff --git a/pubspec.yaml b/pubspec.yaml index c02837d..3ab4172 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: flutter_native_splash description: Customize Flutter's default white native splash screen with background color and splash image. Supports dark mode, full screen, and more. -version: 2.3.10 +version: 2.3.11 repository: https://github.com/jonbhanson/flutter_native_splash issue_tracker: https://github.com/jonbhanson/flutter_native_splash/issues @@ -17,7 +17,7 @@ dependencies: sdk: flutter js: ^0.7.0 html: ^0.15.4 - image: ^4.1.4 + image: ^4.1.7 meta: ^1.10.0 path: ^1.8.3 universal_io: ^2.2.2