Skip to content

Commit

Permalink
flutter 3 support (#105)
Browse files Browse the repository at this point in the history
* upgrade dart and dependencies version

* fix: test runtime

* PubNub SDK v4.2.2 release.

Co-authored-by: Client Engineering Bot <[email protected]>
  • Loading branch information
mohitpubnub and client-engineering-bot authored Nov 14, 2022
1 parent ed07274 commit aee15e4
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/run-acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Checkout mock-server action
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: pubnub/client-engineering-deployment-tools
ref: github-actions
ref: v1
token: ${{ secrets.GH_TOKEN }}
path: client-engineering-deployment-tools
- name: Run mock server action
Expand All @@ -29,7 +29,7 @@ jobs:
export FEATURES_PATH=../sdk-specifications/features
dart pub run acceptance_tests
- name: Expose acceptance tests reports
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: acceptance-test-reports
path: acceptance_tests/report.xml
9 changes: 8 additions & 1 deletion .pubnub.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
---
changelog:
- date: 2022-11-10
version: v4.2.2
changes:
- type: feature
text: "Support for Flutter 3."
- type: bug
text: "Fixes issue of having old version of xml package dependency."
- date: 2022-07-12
version: v4.2.1
changes:
Expand Down Expand Up @@ -408,7 +415,7 @@ supported-platforms:
platforms:
- "Dart SDK >=2.6.0 <3.0.0"
version: "PubNub Dart SDK"
version: "4.2.1"
version: "4.2.2"
sdks:
-
full-name: PubNub Dart SDK
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ You will need the publish and subscribe keys to authenticate your app. Get your

```yaml
dependencies:
pubnub: ^4.2.0
pubnub: ^4.2.2
```
Make sure to provide the latest version of the `pubnub` package in the dependency declaration.
Expand Down
4 changes: 2 additions & 2 deletions acceptance_tests/bin/acceptance_tests.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:io';

import 'package:dotenv/dotenv.dart' show load, env;
import 'package:dotenv/dotenv.dart';
import 'package:gherkin/gherkin.dart';

import 'package:acceptance_tests/acceptance_tests.dart';
Expand All @@ -9,7 +9,7 @@ import 'package:xml/xml.dart';
late final logger = TestLogger('Runner', debug: false);

Future<void> main() async {
load();
var env = DotEnv(includePlatformEnvironment: true)..load();

late final gherkinConfig = PubNubConfiguration(
featureFiles:
Expand Down
6 changes: 3 additions & 3 deletions acceptance_tests/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ version: 1.0.0
publish_to: none

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.17.0 <3.0.0"

dependencies:
glob: ^2.0.1
http: ^0.13.1
xml: ^5.1.0
xml: ^6.1.0
archive: ^3.1.2
dotenv: ^3.0.0-nullsafety.0
dotenv: ^4.0.1
gherkin:
git:
url: https://github.com/are/dart_gherkin.git
Expand Down
8 changes: 4 additions & 4 deletions pubnub/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: pubnub
description: PubNub SDK v5 for Dart lang (with Flutter support) that allows you to create real-time applications
version: 4.2.1
homepage: https://www.pubnub.com/docs
homepage: https://www.pubnub.com/docs/sdks/dart

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.17.0 <3.0.0"

scripts:
test:
Expand All @@ -19,11 +19,11 @@ dependencies:
cbor: ^4.0.0
convert: ^3.0.0
crypto: ^3.0.0
encrypt: ^5.0.0-beta.1
encrypt: ^5.0.1
form_data: ^1.0.0-nullsafety.1
meta: ^1.3.0
pedantic: ^1.11.0
pool: ^1.5.0
xml: ^5.0.2
xml: ^6.1.0
dev_dependencies:
test: 1.16.7

0 comments on commit aee15e4

Please sign in to comment.