Skip to content
This repository was archived by the owner on Feb 18, 2021. It is now read-only.

Commit e734710

Browse files
committed
increment version to 0.2.3
1 parent 0bab1f6 commit e734710

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Please remember the [system requirements](https://flutter.dev/docs/get-started/i
1010

1111
Download **[here](https://github.com/daffaalam/flutter_installer_cli/releases/latest)** and run right away.
1212

13-
By default it will take the latest flutter version from the stable channel. If you want to use another version, use the `channel` and` version` flags. Use the version name from https://flutter.dev/docs/development/tools/sdk/releases.
13+
By default it will take the latest flutter version from the stable channel. If you want to use another version, use the `channel` and `version` flags. Use the version name from https://flutter.dev/docs/development/tools/sdk/releases.
1414

1515
For example to get the latest beta channel:
1616
```
@@ -20,7 +20,7 @@ You can also choose the version:
2020
```
2121
flutter_installer_cli --version v1.12.13+hotfix.9
2222
```
23-
You can also combine the two:
23+
You can also combine two flags:
2424
```
2525
flutter_installer_cli --channel beta --version v1.14.6
2626
```

bin/tools/function.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import '../model/android_studio.dart';
1616
import '../model/flutter_releases.dart';
1717
import '../model/java_releases.dart';
1818

19+
Version version = Version.parse('0.2.3');
1920
bool isDebug = false;
2021
String installationPath = '';
2122
String flutterChannel = '';
@@ -563,8 +564,7 @@ Future<void> checkLatestVersion() async {
563564
var dio = Dio(BaseOptions(responseType: ResponseType.plain));
564565
var response = await dio.get('$githubRepos/raw/master/pubspec.yaml');
565566
var cloudVer = Version.parse(loadYaml(response.data)['version']);
566-
var localVer = Version.parse('0.2.2');
567-
if (cloudVer > localVer) {
567+
if (cloudVer > version) {
568568
stdout.writeln(
569569
'\nThe latest version found, please use the latest version for a better experience.\n'
570570
'Download it at $githubRepos/releases/latest.',

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_installer_cli
22
description: Installer for Flutter SDK, include Android SDK and Java SDK (if not exists).
3-
version: 0.2.2
3+
version: 0.2.3
44
authors: Abiyyu Daffa Alam <daffaalam@gmail.com>
55
repository: https://github.com/daffaalam/flutter_installer_dart
66
issue_tracker: https://github.com/daffaalam/flutter_installer_dart/issues

0 commit comments

Comments
 (0)