Skip to content

Commit 73750cc

Browse files
Merge pull request #364 from fluttercommunity/feature/auto-generation-of-version
fix: Incorrect version number shown
2 parents cae647e + 79b5f6e commit 73750cc

File tree

6 files changed

+16
-53
lines changed

6 files changed

+16
-53
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 0.9.3 (6th June 2022)
4+
5+
- Fixes to make sure it works for Flutter v2.8 (thanks to @RatakondalaArun)
6+
- Fixed issue with incorrect version being shown
7+
38
## 0.9.2 (22nd August 2021)
49

510
- Fixed issue where success message printed even when exception occured (thanks to @happy-san)

README.md

-29
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,6 @@
66

77
A command-line tool 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.
88

9-
10-
## :sparkles: What's New
11-
12-
#### Version 0.9.2 (22nd August 2021)
13-
14-
- Fixed issue where success message printed even when exception occured (thanks to @happy-san)
15-
16-
#### Version 0.9.1 (25th July 2021)
17-
18-
- Upgraded `args` dependency to ^2.1.1 (thanks to @PiN73 and @comlaterra)
19-
- Upgraded `image` and `test` dependencies
20-
21-
#### Version 0.9.0 (28th Feb 2021)
22-
23-
- Null-safety support added (thanks to @SteveAlexander)
24-
- Added option to remove alpha channel for iOS icons (thanks to @SimonIT)
25-
26-
#### Version 0.8.1 (2nd Oct 2020)
27-
28-
- Fixed flavor support on windows (@slightfoot)
29-
30-
#### Version 0.8.0 (12th Sept 2020)
31-
32-
- Added flavours support (thanks to @sestegra & @jorgecoca)
33-
- Removed unassigned iOS icons (thanks to @melvinsalas)
34-
- Fixing formatting (thanks to @mreichelt)
35-
36-
Want to see older changes? Be sure to check out the [Changelog](https://github.com/fluttercommunity/flutter_launcher_icons/blob/master/CHANGELOG.md).
37-
389
## :book: Guide
3910

4011
#### 1. Setup the config file

analysis_options.yaml

-21
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,3 @@
1-
# Specify analysis options.
2-
#
3-
# Until there are meta linter rules, each desired lint must be explicitly enabled.
4-
# See: https://github.com/dart-lang/linter/issues/288
5-
#
6-
# For a list of lints, see: http://dart-lang.github.io/linter/lints/
7-
# See the configuration guide for more
8-
# https://github.com/dart-lang/sdk/tree/master/pkg/analyzer#configuring-the-analyzer
9-
#
10-
# There are other similar analysis options files in the flutter repos,
11-
# which should be kept in sync with this file:
12-
#
13-
# - analysis_options.yaml (this file)
14-
# - packages/flutter/lib/analysis_options_user.yaml
15-
# - https://github.com/flutter/plugins/blob/master/analysis_options.yaml
16-
# - https://github.com/flutter/engine/blob/master/analysis_options.yaml
17-
#
18-
# This file contains the analysis options used by Flutter tools, such as IntelliJ,
19-
# Android Studio, and the `flutter analyze` command.
20-
211
analyzer:
222
strong-mode:
233
implicit-dynamic: false
@@ -51,7 +31,6 @@ linter:
5131
- always_require_non_null_named_parameters
5232
- annotate_overrides
5333
# - avoid_annotating_with_dynamic # conflicts with always_specify_types
54-
- avoid_as
5534
# - avoid_bool_literals_in_conditional_expressions # not yet tested
5635
# - avoid_catches_without_on_clauses # we do this commonly
5736
# - avoid_catching_errors # we do this commonly

bin/main.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import 'package:flutter_launcher_icons/constants.dart';
22
import 'package:flutter_launcher_icons/main.dart' as flutter_launcher_icons;
3+
import 'package:flutter_launcher_icons/src/version.dart';
34

45
void main(List<String> arguments) {
5-
print(introMessage('0.9.1'));
6+
print(introMessage(packageVersion));
67
flutter_launcher_icons.createIconsFromArguments(arguments);
78
}

lib/src/version.dart

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pubspec.yaml

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_launcher_icons
22
description: A package which simplifies the task of updating your Flutter app's launcher icon.
3-
version: 0.9.2
3+
version: 0.9.3
44
maintainer: Mark O'Sullivan (@MarkOSullivan94)
55
homepage: https://github.com/fluttercommunity/flutter_launcher_icons
66

@@ -14,4 +14,9 @@ environment:
1414
sdk: '>=2.12.0-0 <3.0.0'
1515

1616
dev_dependencies:
17-
test: ^1.17.11
17+
# Needed by build_version
18+
build_runner: 2.1.11
19+
# allows us to get version number from pubspec yaml which we can pass to Sentry
20+
# https://pub.dev/packages/build_version
21+
build_version: ^2.1.1
22+
test: ^1.21.1

0 commit comments

Comments
 (0)