Add .circleci/config.yml (#3)

* Add .circleci/config.yml
This commit is contained in:
2022-10-01 23:34:54 +01:00
committed by GitHub
parent ab9dc41b0b
commit e07e10079e
5 changed files with 27 additions and 48 deletions

11
.circleci/config.yml Normal file
View File

@@ -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

View File

@@ -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:

View File

@@ -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

View File

@@ -1,2 +0,0 @@
// freecurrencyapi api key
apiKey=12121

View File

@@ -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);
});
}