Skip to content

Commit

Permalink
Merge pull request #421 from appwrite/feat-latest-dependencies-dart
Browse files Browse the repository at this point in the history
Flutter upgrade dependencies
  • Loading branch information
eldadfux authored Apr 10, 2022
2 parents d4a2643 + d34970e commit 9381507
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ env:
- SDK=DartStable
- SDK=Deno1171
- SDK=FlutterStable
- SDK=FlutterBeta
- SDK=KotlinJava8
- SDK=KotlinJava11
- SDK=Node12
Expand Down
2 changes: 1 addition & 1 deletion templates/flutter/pubspec.yaml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
device_info_plus: ^3.2.2
flutter_web_auth: ^0.4.1
http: ^0.13.4
package_info_plus: 1.3.0
package_info_plus: 1.4.2
path_provider: ^2.0.9
web_socket_channel: ^2.1.0
Expand Down
25 changes: 25 additions & 0 deletions tests/FlutterBetaTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace Tests;

class FlutterBetaTest extends Base
{
protected string $language = 'flutter';
protected string $class = 'Appwrite\SDK\Language\Flutter';
protected array $build = [
'mkdir -p tests/sdks/flutter/test',
'cp tests/languages/flutter/tests.dart tests/sdks/flutter/test/appwrite_test.dart',
];
protected string $command =
'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"';

protected array $expectedOutput = [
...Base::FOO_RESPONSES,
...Base::BAR_RESPONSES,
...Base::GENERAL_RESPONSES,
...Base::LARGE_FILE_RESPONSES,
...Base::EXCEPTION_RESPONSES,
...Base::REALTIME_RESPONSES,
...Base::COOKIE_RESPONSES,
];
}

0 comments on commit 9381507

Please sign in to comment.