Skip to content

Commit 291f99d

Browse files
PerondasPerondas
and
Perondas
authored
Release 0.5.5 (#352)
* Updated dependencies and implemented lints * Release 0.5.5 --------- Co-authored-by: Perondas <[email protected]>
1 parent df899df commit 291f99d

File tree

6 files changed

+26
-17
lines changed

6 files changed

+26
-17
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# Changelog
22

33
--------------------------------------------
4+
[0.5.5] - 2023.03.08
5+
6+
* Bump version for intl & lints
7+
* Update websocket_web_impl.dart (#345)
8+
* fix(hangup): set cancel reason nullable (#346)
9+
* Add sdp transformers (#350)
10+
* Hold fix (#351)
11+
412
[0.5.4] - 2023.02.20
513

614
* Bump version for flutter-webrtc

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ The project is inseparable from the contributors of the community.
6868
- [CloudWebRTC](https://github.com/cloudwebrtc) - Original Author
6969
- [Robert Sutton](https://github.com/rlsutton1) - Contributor
7070
- [Gavin Henry](https://github.com/ghenry) - Contributor
71+
- [Perondas](https://github.com/Perondas) - Contributor
7172

7273
## License
7374
dart-sip-ua is released under the [MIT license](https://github.com/cloudwebrtc/dart-sip-ua/blob/master/LICENSE).

lib/src/message.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Message extends EventManager with Applicant {
2323
// Whether an incoming message has been replied.
2424
bool _is_replied = false;
2525
// Custom message empty object for high level use.
26-
final Map<String, dynamic>? _data = <String, dynamic>{};
26+
final Map<String, dynamic> _data = <String, dynamic>{};
2727
String? get direction => _direction;
2828

2929
NameAddrHeader? get local_identity => _local_identity;

lib/src/rtc_session.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1654,7 +1654,7 @@ class RTCSession extends EventManager implements Owner {
16541654
bool finished = false;
16551655

16561656
for (Future<RTCSessionDescription> Function(RTCSessionDescription) modifier
1657-
in _modifiers) {
1657+
in modifiers) {
16581658
desc = await modifier(desc);
16591659
}
16601660

lib/src/sip_ua_helper.dart

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ class SIPUAHelper extends EventManager {
298298
}, buildCallOptions(true));
299299
});
300300

301-
Map<String, dynamic> _defaultOptions = <String, dynamic>{
301+
Map<String, dynamic> defaultOptions = <String, dynamic>{
302302
'eventHandlers': handlers,
303303
'extraHeaders': <dynamic>[],
304304
'pcConfig': <String, dynamic>{
@@ -341,7 +341,7 @@ class SIPUAHelper extends EventManager {
341341
},
342342
'sessionTimersExpires': 120
343343
};
344-
return _defaultOptions;
344+
return defaultOptions;
345345
}
346346

347347
Message sendMessage(String target, String body,
@@ -376,16 +376,16 @@ class SIPUAHelper extends EventManager {
376376

377377
void _notifyTransportStateListeners(TransportState state) {
378378
// Copy to prevent concurrent modification exception
379-
List<SipUaHelperListener> _listeners = _sipUaHelperListeners.toList();
380-
for (SipUaHelperListener listener in _listeners) {
379+
List<SipUaHelperListener> listeners = _sipUaHelperListeners.toList();
380+
for (SipUaHelperListener listener in listeners) {
381381
listener.transportStateChanged(state);
382382
}
383383
}
384384

385385
void _notifyRegistrationStateListeners(RegistrationState state) {
386386
// Copy to prevent concurrent modification exception
387-
List<SipUaHelperListener> _listeners = _sipUaHelperListeners.toList();
388-
for (SipUaHelperListener listener in _listeners) {
387+
List<SipUaHelperListener> listeners = _sipUaHelperListeners.toList();
388+
for (SipUaHelperListener listener in listeners) {
389389
listener.registrationStateChanged(state);
390390
}
391391
}
@@ -398,24 +398,24 @@ class SIPUAHelper extends EventManager {
398398
}
399399
call.state = state.state;
400400
// Copy to prevent concurrent modification exception
401-
List<SipUaHelperListener> _listeners = _sipUaHelperListeners.toList();
402-
for (SipUaHelperListener listener in _listeners) {
401+
List<SipUaHelperListener> listeners = _sipUaHelperListeners.toList();
402+
for (SipUaHelperListener listener in listeners) {
403403
listener.callStateChanged(call, state);
404404
}
405405
}
406406

407407
void _notifyNewMessageListeners(SIPMessageRequest msg) {
408408
// Copy to prevent concurrent modification exception
409-
List<SipUaHelperListener> _listeners = _sipUaHelperListeners.toList();
410-
for (SipUaHelperListener listener in _listeners) {
409+
List<SipUaHelperListener> listeners = _sipUaHelperListeners.toList();
410+
for (SipUaHelperListener listener in listeners) {
411411
listener.onNewMessage(msg);
412412
}
413413
}
414414

415415
void _notifyNotifyListeners(EventNotify event) {
416416
// Copy to prevent concurrent modification exception
417-
List<SipUaHelperListener> _listeners = _sipUaHelperListeners.toList();
418-
for (SipUaHelperListener listener in _listeners) {
417+
List<SipUaHelperListener> listeners = _sipUaHelperListeners.toList();
418+
for (SipUaHelperListener listener in listeners) {
419419
listener.onNewNotify(Notify(request: event.request));
420420
}
421421
}

pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: sip_ua
2-
version: 0.5.4
2+
version: 0.5.5
33
description: A SIP UA stack for Flutter/Dart, based on flutter-webrtc, support iOS/Android/Destkop/Web.
44
homepage: https://github.com/cloudwebrtc/dart-sip-ua
55
environment:
@@ -10,7 +10,7 @@ dependencies:
1010
collection: ^1.15.0
1111
crypto: ^3.0.0
1212
flutter_webrtc: ^0.9.23
13-
intl: ^0.17.0
13+
intl: ^0.18.0
1414
logger: ^1.0.0
1515
parser_error: ^0.2.0
1616
path: ^1.6.4
@@ -21,5 +21,5 @@ dependencies:
2121

2222

2323
dev_dependencies:
24-
lints: ^1.0.1
24+
lints: ^2.0.1
2525
test: ^1.6.7

0 commit comments

Comments
 (0)