Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoBertotti committed Aug 9, 2024
1 parent 328bd55 commit 10b81fe
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 3.1.1
- Bug fixes

# 3.1.0
- Dependencies have been updated

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pubspec.yaml:
sdk: flutter
# Add this line:
askless: ^3.1.0
askless: ^3.1.1

**4 -** Import the package

Expand Down
6 changes: 3 additions & 3 deletions lib/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions lib/domain/services/call_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class CallService<USER_ID> {
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"]
Expand Down Expand Up @@ -168,12 +168,12 @@ class CallService<USER_ID> {
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({
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit 10b81fe

Please sign in to comment.