Skip to content

Commit

Permalink
chore/update v0.3.1 (#86)
Browse files Browse the repository at this point in the history
* maestro_test: update to v0.3.1

* maestro_cli: update to v0.3.1
  • Loading branch information
bartekpacia authored Jul 5, 2022
1 parent 77d4465 commit 50c99a1
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 7 deletions.
2 changes: 1 addition & 1 deletion AutomatorServer/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ android {
minSdkVersion 26
targetSdkVersion 31
versionCode 1
versionName "0.3.0"
versionName "0.3.1"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/adb/example/adb_example.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:adb/adb.dart';

void main() {
final adb = Adb();
const adb = Adb();
const apk = '/Users/john/Downloads/someApplication.apk';
adb.install(apk);
}
2 changes: 2 additions & 0 deletions packages/adb/lib/src/exceptions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ class AdbInstallFailedUpdateIncompatible implements Exception {
required this.message,
});

/// Creates a new instance of [AdbInstallFailedUpdateIncompatible] from
/// [stderr].
factory AdbInstallFailedUpdateIncompatible.fromStdErr(String stderr) {
final str = stderr;

Expand Down
5 changes: 5 additions & 0 deletions packages/maestro_cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.3.1

- Automatically inform about new version when it is available.
- Add `maestro update` command to easily update the package.

## 0.3.0

- Add support for new features in [maestro_test
Expand Down
3 changes: 2 additions & 1 deletion packages/maestro_cli/lib/src/command_runner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ class MaestroCommandRunner extends CommandRunner<int> {
log.info('Debug mode enabled. Non-versioned artifacts will be used.');
}

if (!_isUpdateCommand(results.command?.name)) {
if (!(results.command?.name == 'update') &&
!(results.command?.name == 'doctor')) {
await _checkIfUsingLatestVersion();
}

Expand Down
2 changes: 1 addition & 1 deletion packages/maestro_cli/lib/src/common/constants.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Version of Maestro CLI. Must be kept in sync with pubspec.yaml.
const version = '0.3.0';
const version = '0.3.1';

const maestroPackage = 'maestro_test';
const maestroCliPackage = 'maestro_cli';
Expand Down
2 changes: 1 addition & 1 deletion packages/maestro_cli/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: maestro_cli
description: CLI for Maestro.
version: 0.3.0
version: 0.3.1
homepage: https://github.com/leancodepl/maestro

environment:
Expand Down
12 changes: 12 additions & 0 deletions packages/maestro_test/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
## 0.3.1

- Improve selector engine:

- Make it possible to pass a `MaestroFinder` as `expression` to
`MaestroTester.call(dynamic expression)` and `MaestroFinder.$(dynamic expression)`
- Fix a bug which caused chaining expressions (e.g
`$(Scaffold).$(Container).$(#someText)`) to not work.

- Add more in-code documentation and improve README.

## 0.3.0

- Add selector engine

## 0.2.0
Expand Down
2 changes: 1 addition & 1 deletion packages/maestro_test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Add `maestro_test` as a dev dependency in `pubspec.yaml`:

```
dev_dependencies:
maestro_test: ^0.3.0
maestro_test: ^0.3.1
```

### Using features of the underlying native platform
Expand Down
2 changes: 1 addition & 1 deletion packages/maestro_test/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: maestro_test
description: >
Simple, easy-to-learn, Flutter-native UI testing framework eliminating
limitations of flutter_driver
version: 0.3.0
version: 0.3.1
homepage: https://github.com/leancodepl/maestro/tree/master/packages/maestro_test

environment:
Expand Down

0 comments on commit 50c99a1

Please sign in to comment.