Skip to content

Commit

Permalink
[integration_test] Version bump to 2.0.1 (flutter-tizen#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
swift-kim authored Dec 6, 2021
1 parent c5fab5d commit c47c9e1
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 22 deletions.
20 changes: 12 additions & 8 deletions packages/integration_test/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
## 1.0.0

* Initial release
* Initial release.

## 1.0.1

* Update integration_test to 1.0.1
* Migrate to Tizen 4.0
* Update integration_test to 1.0.1.
* Migrate to Tizen 4.0.

## 2.0.0

* Update Dart and Flutter SDK constraints
* Update Flutter copyright information
* Update example and integration_test
* Remove unnecessary test files for web
* Organize dev_dependencies
* Update Dart and Flutter SDK constraints.
* Update Flutter copyright information.
* Update the example app and integration_test.
* Remove unnecessary test files for web.
* Organize dev_dependencies.

## 2.0.1

* Change the project type to `staticLib`.
2 changes: 1 addition & 1 deletion packages/integration_test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This package is not an _endorsed_ implementation of `integration_test`. Therefor
dev_dependencies:
integration_test:
sdk: flutter
integration_test_tizen: ^2.0.0
integration_test_tizen: ^2.0.1
```
Then you can import `integration_test` in your Dart code:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.

// @dart=2.9

import 'dart:io' show Platform;
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
Expand Down Expand Up @@ -38,7 +36,7 @@ void main() {
find.byWidgetPredicate(
(Widget widget) =>
widget is Text &&
widget.data.startsWith('Platform: ${Platform.operatingSystem}'),
widget.data!.startsWith('Platform: ${Platform.operatingSystem}'),
),
findsOneWidget,
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// @dart=2.9

import 'package:integration_test/integration_test_driver.dart';

Future<void> main() => integrationDriver();
2 changes: 1 addition & 1 deletion packages/integration_test/example/tizen/Runner.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Tizen.NET.Sdk/1.1.5">
<Project Sdk="Tizen.NET.Sdk/1.1.7">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
3 changes: 1 addition & 2 deletions packages/integration_test/example/tizen/tizen-manifest.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="org.tizen.integration_test_example" version="1.0.0" api-version="4.0" xmlns="http://tizen.org/ns/packages">
<profile name="common"/>
<ui-application appid="org.tizen.integration_test_example" exec="Runner.dll" type="dotnet" multiple="false" taskmanage="true" nodisplay="false" api-version="4" launch_mode="single">
<ui-application appid="org.tizen.integration_test_example" exec="Runner.dll" type="dotnet" multiple="false" taskmanage="true" nodisplay="false" api-version="4">
<label>integration_test_example</label>
<icon>ic_launcher.png</icon>
<metadata key="http://tizen.org/metadata/prefer_dotnet_aot" value="true"/>
<metadata key="http://tizen.org/metadata/direct-launch" value="yes"/>
</ui-application>
<feature name="http://tizen.org/feature/screen.size.all"/>
</manifest>
2 changes: 1 addition & 1 deletion packages/integration_test/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: integration_test_tizen
description: Tizen implementation of the integration_test plugin
homepage: https://github.com/flutter-tizen/plugins
repository: https://github.com/flutter-tizen/plugins/tree/master/packages/integration_test
version: 2.0.0
version: 2.0.1

flutter:
plugin:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
#include <flutter/plugin_registrar.h>
#include <flutter/standard_method_codec.h>

#include <map>
#include <memory>
#include <sstream>
#include <string>

#include "log.h"
Expand Down Expand Up @@ -37,8 +35,10 @@ class IntegrationTestPlugin : public flutter::Plugin {
void HandleMethodCall(
const flutter::MethodCall<flutter::EncodableValue> &method_call,
std::unique_ptr<flutter::MethodResult<flutter::EncodableValue>> result) {
if (method_call.method_name().compare("allTestsFinished") == 0) {
auto &arguments = *method_call.arguments();
const auto &method_name = method_call.method_name();

if (method_name == "allTestsFinished") {
const auto &arguments = *method_call.arguments();
if (std::holds_alternative<flutter::EncodableMap>(arguments)) {
flutter::EncodableMap map = std::get<flutter::EncodableMap>(arguments);
flutter::EncodableValue results =
Expand Down

0 comments on commit c47c9e1

Please sign in to comment.