Skip to content

Commit

Permalink
Merge pull request #1324 from zino-hofmann/macros/release_5.2_beta2
Browse files Browse the repository at this point in the history
docs: preparing for the beta 2
  • Loading branch information
vincenzopalazzo authored May 17, 2023
2 parents e5835b4 + d6f0bd1 commit 1f082d8
Show file tree
Hide file tree
Showing 13 changed files with 42 additions and 22 deletions.
1 change: 1 addition & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

7 changes: 3 additions & 4 deletions examples/starwars/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@ description: An example graphql_flutter application utilizing graphql_starwars_t
publish_to: none

environment:
sdk: ">=2.10.0 <3.0.0"
sdk: ">=2.13.0 <=3.0.0"

dependencies:
flutter:
sdk: flutter
graphql_flutter:
path: ../../packages/graphql_flutter
graphql: ^5.1.2-beta.1
universal_platform:
^0.1.3
universal_platform: ^1.0.0+1
# https://github.com/flutter/flutter/issues/36126#issuecomment-596215587

flutter:
uses-material-design: true
uses-material-design: true
7 changes: 7 additions & 0 deletions packages/graphql/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# v5.2.0-beta.2

## Added
- bump gql version to 1.0.0 ([commit](https://github.com/zino-hofmann/graphql-flutter/commit/6c991d8e8dc952f9cf0774746ce3d59f48f1ea32)). @ndelanou 03-05-2023
- print the connection status with ws ([commit](https://github.com/zino-hofmann/graphql-flutter/commit/a9aefc41909eb6911c4c4de1d0477bb620d1098d)). @vytautas-pranskunas- 15-03-2023


# v5.2.0-beta.1

## Fixed
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql/changelog.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"package_name": "graphql",
"version": "v5.2.0-beta.1",
"version": "v5.2.0-beta.2",
"api": {
"name": "github",
"repository": "zino-hofmann/graphql-flutter",
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void readRepositories() async {
result.data!['viewer']['repositories']['nodes'] as List<dynamic>;

repositories.forEach(
(dynamic f) => {stdout.writeln('Id: ${f['id']} Name: ${f['name']}')},
(dynamic f) => stdout.writeln('Id: ${f['id']} Name: ${f['name']}'),
);

exit(0);
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql/lib/src/scheduler/scheduler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class QueryScheduler {
}

// fetch each query on the interval
intervalQueries[interval]!.forEach(queryManager!.refetchQuery);
intervalQueries[interval]!.forEach(queryManager!.refetchQuery<dynamic>);
}

void startPollingQuery(
Expand Down
4 changes: 2 additions & 2 deletions packages/graphql/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: graphql
description: A stand-alone GraphQL client for Dart, bringing all the features from a modern GraphQL client to one easy to use package.
version: 5.2.0-beta.1
version: 5.2.0-beta.2
repository: https://github.com/zino-app/graphql-flutter/tree/main/packages/graphql
issue_tracker: https://github.com/zino-hofmann/graphql-flutter/issues

Expand Down Expand Up @@ -32,4 +32,4 @@ dev_dependencies:
lints: ^1.0.1

environment:
sdk: '>=2.12.0 <3.0.0'
sdk: '>=2.15.0 <=3.0.0'
9 changes: 9 additions & 0 deletions packages/graphql_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# v5.2.0-beta.2

## Fixed
- added missing onSubscriptionResult argument ([commit](https://github.com/zino-hofmann/graphql-flutter/commit/1b17d7709410c2a106d0c0a5d9da3c926001a49c)). @PhilippS93 03-04-2023

## Added
- bump gql version to 1.0.0 ([commit](https://github.com/zino-hofmann/graphql-flutter/commit/6c991d8e8dc952f9cf0774746ce3d59f48f1ea32)). @ndelanou 03-05-2023


# v5.2.0-beta.1


Expand Down
2 changes: 1 addition & 1 deletion packages/graphql_flutter/changelog.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"package_name": "graphql_flutter",
"version": "v5.2.0-beta.1",
"version": "v5.2.0-beta.2",
"api": {
"name": "github",
"repository": "zino-hofmann/graphql-flutter",
Expand Down
1 change: 0 additions & 1 deletion packages/graphql_flutter/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ module:
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.3
graphql_flutter:
path: ..
trash_themes: ^0.0.1
Expand Down
6 changes: 3 additions & 3 deletions packages/graphql_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: graphql_flutter
description: A GraphQL client for Flutter, bringing all the features from a modern GraphQL client to one easy to use package.
version: 5.2.0-beta.1
version: 5.2.0-beta.2
repository: https://github.com/zino-app/graphql-flutter/tree/main/packages/graphql_flutter
issue_tracker: https://github.com/zino-hofmann/graphql-flutter/issues

# just for dev work
# publish_to: 'none'

dependencies:
graphql: ^5.2.0-beta.1
graphql: ^5.2.0-beta.2
gql_exec: ^1.0.0
flutter:
sdk: flutter
Expand All @@ -29,7 +29,7 @@ dev_dependencies:
test: ^1.17.12

environment:
sdk: '>=2.12.0 <3.0.0'
sdk: '>=2.12.0 <=3.0.0'
flutter: ">=2.11.0"

platforms:
Expand Down
10 changes: 6 additions & 4 deletions packages/graphql_flutter/test/widgets/query_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ Future<void> mockApplicationDocumentsDirectory() async {
return null;
};
// Mock out the MethodChannel for the path_provider plugin.
const MethodChannel('plugins.flutter.io/path_provider')
.setMockMethodCallHandler(handler);
const MethodChannel('plugins.flutter.io/path_provider_macos')
.setMockMethodCallHandler(handler);
final channel = MethodChannel('plugins.flutter.io/path_provider');
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
.setMockMethodCallHandler(channel, handler);
final channel_osx = MethodChannel('plugins.flutter.io/path_provider_macos');
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
.setMockMethodCallHandler(channel_osx, handler);
}

class Page extends StatefulWidget {
Expand Down
11 changes: 7 additions & 4 deletions packages/graphql_flutter/test/widgets/subscription_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,14 @@ Future<void> mockApplicationDocumentsDirectory() async {
}
return null;
};

// Mock out the MethodChannel for the path_provider plugin.
const MethodChannel('plugins.flutter.io/path_provider')
.setMockMethodCallHandler(handler);
const MethodChannel('plugins.flutter.io/path_provider_macos')
.setMockMethodCallHandler(handler);
final channel = MethodChannel('plugins.flutter.io/path_provider');
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
.setMockMethodCallHandler(channel, handler);
final channel_osx = MethodChannel('plugins.flutter.io/path_provider_macos');
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
.setMockMethodCallHandler(channel_osx, handler);
}

class Page extends StatelessWidget {
Expand Down

0 comments on commit 1f082d8

Please sign in to comment.