From 10b81fe2f3acd524770d0fc77b3bacfce6a4e181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Jo=C3=A3o=20Bertotti?= Date: Fri, 9 Aug 2024 15:57:17 -0300 Subject: [PATCH] dev --- CHANGELOG.md | 3 +++ README.md | 2 +- lib/constants.dart | 6 +++--- lib/domain/services/call_service.dart | 8 ++++---- pubspec.yaml | 2 +- 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4137867..89295d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 3.1.1 +- Bug fixes + # 3.1.0 - Dependencies have been updated diff --git a/README.md b/README.md index 8b3fee6..4ad073d 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ pubspec.yaml: sdk: flutter # Add this line: - askless: ^3.1.0 + askless: ^3.1.1 **4 -** Import the package diff --git a/lib/constants.dart b/lib/constants.dart index 2c357f2..b478056 100644 --- a/lib/constants.dart +++ b/lib/constants.dart @@ -14,9 +14,9 @@ const REQUEST_PREFIX = 'REQ-'; const LISTEN_PREFIX = 'LIS-'; // TODO onupdate: -const CLIENT_LIBRARY_VERSION_NAME = '3.1.0'; -const CLIENT_LIBRARY_VERSION_CODE = 7; +const CLIENT_LIBRARY_VERSION_NAME = '3.1.1'; +const CLIENT_LIBRARY_VERSION_CODE = 8; -// TODO onupdate: CHECK README (# Add this line: askless: ^3.1.0) +// TODO onupdate: CHECK README (# Add this line: askless: ^3.1.1) // TODO onupdate: add changelog diff --git a/lib/domain/services/call_service.dart b/lib/domain/services/call_service.dart index 7e56ca1..fac2b9e 100644 --- a/lib/domain/services/call_service.dart +++ b/lib/domain/services/call_service.dart @@ -130,7 +130,7 @@ class CallService { logger (">> 2 - Setting remote description from answer! ${event["sdp"]["type"]} and ${event["sdp"]["sdp"]}"); // call accepted.. - await rtcPeerConnection.setRemoteDescription( + await rtcPeerConnection!.setRemoteDescription( RTCSessionDescription( event["sdp"]["sdp"], event["sdp"]["type"] @@ -168,12 +168,12 @@ class CallService { doDisposeCallback(error: 'disposing...'); return; } - final sdpOffer = await rtcPeerConnection.createOffer({'offerToReceiveVideo': 1, 'offerToReceiveAudio': 1}); - await rtcPeerConnection.setLocalDescription(sdpOffer); + final sdpOffer = await rtcPeerConnection!.createOffer({'offerToReceiveVideo': 1, 'offerToReceiveAudio': 1}); + await rtcPeerConnection!.setLocalDescription(sdpOffer); logger(">> 1 - SDP OFFER GENERATED AND SET LOCAL DESCRIPTION LOCALLY sdpOffer"); - rtcPeerConnection.onIceCandidate = (RTCIceCandidate candidate) { + rtcPeerConnection!.onIceCandidate = (RTCIceCandidate candidate) { logger("rtcPeerConnection -> onIceCandidate #1"); rtcIceCandidateList.add(candidate); logger(json.encode({ diff --git a/pubspec.yaml b/pubspec.yaml index 3203819..ad21714 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: askless description: Build Flutter Apps with PostgreSQL, MySQL, or any database, stream data changes through websockets effortlessly, handle websocket authentication like a pro and elevate your Flutter Chat App with video and audio calls! -version: 3.1.0 # TODO onupdate: +version: 3.1.1 # TODO onupdate: environment: sdk: '>=3.1.1 <4.0.0'