Skip to content

Commit 9381507

Browse files
authored
Merge pull request #421 from appwrite/feat-latest-dependencies-dart
Flutter upgrade dependencies
2 parents d4a2643 + d34970e commit 9381507

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ env:
2525
- SDK=DartStable
2626
- SDK=Deno1171
2727
- SDK=FlutterStable
28+
- SDK=FlutterBeta
2829
- SDK=KotlinJava8
2930
- SDK=KotlinJava11
3031
- SDK=Node12

templates/flutter/pubspec.yaml.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies:
1414
device_info_plus: ^3.2.2
1515
flutter_web_auth: ^0.4.1
1616
http: ^0.13.4
17-
package_info_plus: 1.3.0
17+
package_info_plus: 1.4.2
1818
path_provider: ^2.0.9
1919
web_socket_channel: ^2.1.0
2020

tests/FlutterBetaTest.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
namespace Tests;
4+
5+
class FlutterBetaTest extends Base
6+
{
7+
protected string $language = 'flutter';
8+
protected string $class = 'Appwrite\SDK\Language\Flutter';
9+
protected array $build = [
10+
'mkdir -p tests/sdks/flutter/test',
11+
'cp tests/languages/flutter/tests.dart tests/sdks/flutter/test/appwrite_test.dart',
12+
];
13+
protected string $command =
14+
'docker run --rm -v $(pwd):/app -w /app/tests/sdks/flutter --env PUB_CACHE=vendor cirrusci/flutter:beta sh -c "flutter pub get && flutter test test/appwrite_test.dart"';
15+
16+
protected array $expectedOutput = [
17+
...Base::FOO_RESPONSES,
18+
...Base::BAR_RESPONSES,
19+
...Base::GENERAL_RESPONSES,
20+
...Base::LARGE_FILE_RESPONSES,
21+
...Base::EXCEPTION_RESPONSES,
22+
...Base::REALTIME_RESPONSES,
23+
...Base::COOKIE_RESPONSES,
24+
];
25+
}

0 commit comments

Comments
 (0)