Skip to content

Commit

Permalink
Release 0.5.5 (#352)
Browse files Browse the repository at this point in the history
* Updated dependencies and implemented lints

* Release 0.5.5

---------

Co-authored-by: Perondas <[email protected]>
  • Loading branch information
Perondas and Perondas authored Mar 8, 2023
1 parent df899df commit 291f99d
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 17 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Changelog

--------------------------------------------
[0.5.5] - 2023.03.08

* Bump version for intl & lints
* Update websocket_web_impl.dart (#345)
* fix(hangup): set cancel reason nullable (#346)
* Add sdp transformers (#350)
* Hold fix (#351)

[0.5.4] - 2023.02.20

* Bump version for flutter-webrtc
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ The project is inseparable from the contributors of the community.
- [CloudWebRTC](https://github.com/cloudwebrtc) - Original Author
- [Robert Sutton](https://github.com/rlsutton1) - Contributor
- [Gavin Henry](https://github.com/ghenry) - Contributor
- [Perondas](https://github.com/Perondas) - Contributor

## License
dart-sip-ua is released under the [MIT license](https://github.com/cloudwebrtc/dart-sip-ua/blob/master/LICENSE).
2 changes: 1 addition & 1 deletion lib/src/message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Message extends EventManager with Applicant {
// Whether an incoming message has been replied.
bool _is_replied = false;
// Custom message empty object for high level use.
final Map<String, dynamic>? _data = <String, dynamic>{};
final Map<String, dynamic> _data = <String, dynamic>{};
String? get direction => _direction;

NameAddrHeader? get local_identity => _local_identity;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/rtc_session.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1654,7 +1654,7 @@ class RTCSession extends EventManager implements Owner {
bool finished = false;

for (Future<RTCSessionDescription> Function(RTCSessionDescription) modifier
in _modifiers) {
in modifiers) {
desc = await modifier(desc);
}

Expand Down
24 changes: 12 additions & 12 deletions lib/src/sip_ua_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ class SIPUAHelper extends EventManager {
}, buildCallOptions(true));
});

Map<String, dynamic> _defaultOptions = <String, dynamic>{
Map<String, dynamic> defaultOptions = <String, dynamic>{
'eventHandlers': handlers,
'extraHeaders': <dynamic>[],
'pcConfig': <String, dynamic>{
Expand Down Expand Up @@ -341,7 +341,7 @@ class SIPUAHelper extends EventManager {
},
'sessionTimersExpires': 120
};
return _defaultOptions;
return defaultOptions;
}

Message sendMessage(String target, String body,
Expand Down Expand Up @@ -376,16 +376,16 @@ class SIPUAHelper extends EventManager {

void _notifyTransportStateListeners(TransportState state) {
// Copy to prevent concurrent modification exception
List<SipUaHelperListener> _listeners = _sipUaHelperListeners.toList();
for (SipUaHelperListener listener in _listeners) {
List<SipUaHelperListener> listeners = _sipUaHelperListeners.toList();
for (SipUaHelperListener listener in listeners) {
listener.transportStateChanged(state);
}
}

void _notifyRegistrationStateListeners(RegistrationState state) {
// Copy to prevent concurrent modification exception
List<SipUaHelperListener> _listeners = _sipUaHelperListeners.toList();
for (SipUaHelperListener listener in _listeners) {
List<SipUaHelperListener> listeners = _sipUaHelperListeners.toList();
for (SipUaHelperListener listener in listeners) {
listener.registrationStateChanged(state);
}
}
Expand All @@ -398,24 +398,24 @@ class SIPUAHelper extends EventManager {
}
call.state = state.state;
// Copy to prevent concurrent modification exception
List<SipUaHelperListener> _listeners = _sipUaHelperListeners.toList();
for (SipUaHelperListener listener in _listeners) {
List<SipUaHelperListener> listeners = _sipUaHelperListeners.toList();
for (SipUaHelperListener listener in listeners) {
listener.callStateChanged(call, state);
}
}

void _notifyNewMessageListeners(SIPMessageRequest msg) {
// Copy to prevent concurrent modification exception
List<SipUaHelperListener> _listeners = _sipUaHelperListeners.toList();
for (SipUaHelperListener listener in _listeners) {
List<SipUaHelperListener> listeners = _sipUaHelperListeners.toList();
for (SipUaHelperListener listener in listeners) {
listener.onNewMessage(msg);
}
}

void _notifyNotifyListeners(EventNotify event) {
// Copy to prevent concurrent modification exception
List<SipUaHelperListener> _listeners = _sipUaHelperListeners.toList();
for (SipUaHelperListener listener in _listeners) {
List<SipUaHelperListener> listeners = _sipUaHelperListeners.toList();
for (SipUaHelperListener listener in listeners) {
listener.onNewNotify(Notify(request: event.request));
}
}
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: sip_ua
version: 0.5.4
version: 0.5.5
description: A SIP UA stack for Flutter/Dart, based on flutter-webrtc, support iOS/Android/Destkop/Web.
homepage: https://github.com/cloudwebrtc/dart-sip-ua
environment:
Expand All @@ -10,7 +10,7 @@ dependencies:
collection: ^1.15.0
crypto: ^3.0.0
flutter_webrtc: ^0.9.23
intl: ^0.17.0
intl: ^0.18.0
logger: ^1.0.0
parser_error: ^0.2.0
path: ^1.6.4
Expand All @@ -21,5 +21,5 @@ dependencies:


dev_dependencies:
lints: ^1.0.1
lints: ^2.0.1
test: ^1.6.7

0 comments on commit 291f99d

Please sign in to comment.