Skip to content

Commit

Permalink
Updated README, CHANGELOG and pubspec.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkOSullivan94 committed Jun 12, 2018
1 parent 4eaf701 commit 0900f48
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

# 0.5.0 (12th June 2018)

- [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)
Expand Down
28 changes: 19 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ A command-line tool which simplifies the task of updating your Flutter app's lau

## :sparkles: What's New

#### Version 0.5.0 (12th June 2018)
* [Android] Support for adaptive icons added (Thanks to PR #28 - Thank you!)


##### Version 0.4.0 (8th June 2018)
* Now possible to generate icons for each platform with different image paths - one for iOS icon and a separate one for Android (Thanks to PR #27 - Thank you!)

Expand All @@ -19,7 +23,7 @@ dev_dependencies:
flutter_test:
sdk: flutter

flutter_launcher_icons: "^0.4.0"
flutter_launcher_icons: "^0.5.0"
```
2. Within the same pubspec.yaml file, add flutter_icons config section
Expand All @@ -29,28 +33,34 @@ dev_dependencies:
flutter_test:
sdk: flutter

flutter_launcher_icons: "^0.4.0"
flutter_launcher_icons: "^0.5.0"

flutter_icons:
image_path: "icon/icon.png"
image_path_android: "icon/icon_android.png"
image_path_ios: "icon/icon_ios.png"
android: true
android: true
ios: "Example-Icon"
image_path: "assets/icon/icon.png"
image_path_android: "assets/icon/icon_android.png"
image_path_ios: "assets/icon/icon_ios.png"
adaptive_icon_background: "#FFFAFAFA"
adaptive_icon_foreground: "assets/icon/icon-foreground.png"
```
### Attributes:
```
android/ios: True / False OR <Icon Name> - Specify whether or not you want to override the existing launcher icon or create a new one and switch to it (while keeping the old one there)

image_path: The location of the icon image file which you want to use as the app launcher icon

image_path_android: The location of the icon image file specific for Android platform (optional - if not defined then the image_path is used)

image_path_ios: The location of the icon image file specific for iOS platform (optional - if not defined then the image_path is used)

android/ios: True / False - Set as true if you want the icons generated for that platform to replace the existing launcher icon

OR
Note: The next two attributes are only necessary if you want to have an adaptive icon for the Android app of your Flutter project.

adaptive_icon_background: The color which will be used to fill out the background of the adaptive icon.

android/ios: <icon name> - Alternatively, enter an icon name if you wish to use a new launcher icon in the project whilst keeping the old one.
adaptive_icon_foreground: The image asset which will be used for the icon foreground of the adaptive icon
```
3. Run the command to generate the icons
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_launcher_icons
description: A package which simplifies the task of updating your Flutter app's launcher icon. Fully flexible, allowing you to choose what platform you wish to update the launcher icon for and if you want, the option to keep your old launcher icon in case you want to revert back sometime in the future.
version: 0.4.0
version: 0.5.0
homepage: https://github.com/franzsilva/flutter_launcher_icons
authors:
- Franz Silva <[email protected]>
Expand Down

0 comments on commit 0900f48

Please sign in to comment.