From e07e10079e81a9364d1507071152dc552b7d6c38 Mon Sep 17 00:00:00 2001 From: hmalik144 Date: Sat, 1 Oct 2022 23:34:54 +0100 Subject: [PATCH] Add .circleci/config.yml (#3) * Add .circleci/config.yml --- .circleci/config.yml | 11 +++++++++++ pubspec.lock | 22 +++++++++++----------- pubspec.yaml | 10 +++++----- test/resources/test_res.env | 2 -- test/widget_test.dart | 30 ------------------------------ 5 files changed, 27 insertions(+), 48 deletions(-) create mode 100644 .circleci/config.yml delete mode 100644 test/resources/test_res.env delete mode 100644 test/widget_test.dart diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..6b7e97f --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,11 @@ +version: 2.1 +jobs: + build: + docker: + - image: cirrusci/flutter:3.3.3 + steps: + - checkout + - run: flutter doctor + - run: flutter pub get + - run: flutter pub run build_runner build + - run: flutter test \ No newline at end of file diff --git a/pubspec.lock b/pubspec.lock index 4c96acc..5682845 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -168,7 +168,7 @@ packages: name: dropdown_search url: "https://pub.dartlang.org" source: hosted - version: "5.0.0" + version: "5.0.3" equatable: dependency: transitive description: @@ -290,19 +290,19 @@ packages: source: hosted version: "0.6.4" json_annotation: - dependency: transitive + dependency: "direct main" description: name: json_annotation url: "https://pub.dartlang.org" source: hosted - version: "4.6.0" + version: "4.7.0" json_serializable: dependency: "direct dev" description: name: json_serializable url: "https://pub.dartlang.org" source: hosted - version: "6.3.2" + version: "6.4.1" lazy_evaluation: dependency: "direct main" description: @@ -400,7 +400,7 @@ packages: name: path_provider_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "2.0.4" + version: "2.0.5" path_provider_windows: dependency: transitive description: @@ -421,7 +421,7 @@ packages: name: plugin_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "2.1.2" + version: "2.1.3" pool: dependency: transitive description: @@ -498,7 +498,7 @@ packages: name: shared_preferences_android url: "https://pub.dartlang.org" source: hosted - version: "2.0.12" + version: "2.0.13" shared_preferences_ios: dependency: transitive description: @@ -547,7 +547,7 @@ packages: name: shelf url: "https://pub.dartlang.org" source: hosted - version: "1.3.2" + version: "1.4.0" shelf_web_socket: dependency: transitive description: @@ -566,7 +566,7 @@ packages: name: source_gen url: "https://pub.dartlang.org" source: hosted - version: "1.2.3" + version: "1.2.5" source_helper: dependency: transitive description: @@ -594,7 +594,7 @@ packages: name: stacked url: "https://pub.dartlang.org" source: hosted - version: "2.3.15" + version: "3.0.0" stacked_core: dependency: transitive description: @@ -608,7 +608,7 @@ packages: name: stacked_services url: "https://pub.dartlang.org" source: hosted - version: "0.8.26" + version: "0.9.5" stream_channel: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 614156a..485f71e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -29,15 +29,15 @@ environment: dependencies: flutter: sdk: flutter - dropdown_search: 5.0.0 + dropdown_search: ^5.0.3 # utils toast: ^0.3.0 validators: ^3.0.0 lazy_evaluation: ^1.1.0 sealed_annotations: ^1.13.0 # stacked - stacked: ^2.1.9 - stacked_services: ^0.8.13 + stacked: ^3.0.0 + stacked_services: ^0.9.5 # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. @@ -47,6 +47,7 @@ dependencies: retrofit: ^3.0.1+1 logger: ^1.1.0 mockito: ^5.3.2 + json_annotation: ^4.7.0 dev_dependencies: flutter_test: @@ -54,7 +55,7 @@ dev_dependencies: retrofit_generator: '>=4.0.0 <5.0.0' build_runner: '>=2.2.1 <4.0.0' - json_serializable: '>4.4.0' + json_serializable: ^6.4.1 # The "flutter_lints" package below contains a set of recommended lints to # encourage good coding practices. The lint set provided by the package is # activated in the `analysis_options.yaml` file located at the root of your @@ -75,7 +76,6 @@ flutter: # To add assets to your application, add an assets section, like this: assets: - - .env - test/resources/ # - images/a_dot_burr.jpeg # - images/a_dot_ham.jpeg diff --git a/test/resources/test_res.env b/test/resources/test_res.env deleted file mode 100644 index 3fef03e..0000000 --- a/test/resources/test_res.env +++ /dev/null @@ -1,2 +0,0 @@ -// freecurrencyapi api key -apiKey=12121 \ No newline at end of file diff --git a/test/widget_test.dart b/test/widget_test.dart deleted file mode 100644 index 3c868f7..0000000 --- a/test/widget_test.dart +++ /dev/null @@ -1,30 +0,0 @@ -// This is a basic Flutter widget test. -// -// To perform an interaction with a widget in your test, use the WidgetTester -// utility in the flutter_test package. For example, you can send tap and scroll -// 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. - -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; - -import 'package:easy_cc_flutter/main.dart'; - -void main() { - testWidgets('Counter increments smoke test', (WidgetTester tester) async { - // Build our app and trigger a frame. - await tester.pumpWidget(const MyApp()); - - // Verify that our counter starts at 0. - expect(find.text('0'), findsOneWidget); - expect(find.text('1'), findsNothing); - - // Tap the '+' icon and trigger a frame. - await tester.tap(find.byIcon(Icons.add)); - await tester.pump(); - - // Verify that our counter has incremented. - expect(find.text('0'), findsNothing); - expect(find.text('1'), findsOneWidget); - }); -}