Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit edb7de2

Browse files
authored
Merge pull request #375 from DolbyIO/release/3.8.3
Release/3.8.3
2 parents 5a13273 + b8d6304 commit edb7de2

File tree

9 files changed

+26
-40
lines changed

9 files changed

+26
-40
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 3.8.3
2+
3+
### Bug Fixes
4+
5+
- Fixed an issue where a wrong recording status was reported by recording events.
6+
- Fixed an issue where a conference invitation could not be accepted on Android devices.
7+
- Corrected documentation for events in the notification service.
8+
19
## 3.8.2
210

311
### Features

android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
COMMS_SDK_VERSION="3.8.2"
1+
COMMS_SDK_VERSION="3.8.3"
22
COMPONENT_NAME="flutter-sdk"

ios/Classes/PluginInfo.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import Foundation
22

33
enum PluginInfo {
44
static let componentName = "flutter-sdk"
5-
static let sdkVersion = "3.8.2"
5+
static let sdkVersion = "3.8.3"
66
}

lib/src/mapper/mapper.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ class ParticipantMapper {
6262

6363
class ParticipantInfoMapper {
6464
static ParticipantInfo fromMap(Map<Object?, Object?> info) {
65-
var name = info.containsKey("name") ? info["name"] as String : "";
65+
String name = info.containsKey("name") && info["name"] != null
66+
? info["name"] as String
67+
: "";
6668
var avatarUrl =
6769
info.containsKey("avatarUrl") ? info["avatarUrl"] as String? : null;
6870
var externalId =

lib/src/sdk_api/models/enums.dart

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -195,33 +195,6 @@ enum VideoPresentationEventNames implements EnumWithStringValue {
195195
}
196196
}
197197

198-
/// The recording status.
199-
///
200-
/// This service is available in SDK 3.7 and later.
201-
/// {@category Models}
202-
enum RecordingStatus {
203-
/// The recording is started.
204-
recordingStarted('RECORDING'),
205-
206-
/// The recording is stopped.
207-
recordingStop('NOT_RECORDING');
208-
209-
final String value;
210-
211-
const RecordingStatus(this.value);
212-
213-
static RecordingStatus valueOf(String? value) {
214-
final lowerCaseValue = value?.toLowerCase();
215-
return RecordingStatus.values.firstWhere(
216-
(element) {
217-
return element.value == value ||
218-
element.name.toLowerCase() == lowerCaseValue;
219-
},
220-
orElse: () => throw Exception("Invalid enum name"),
221-
);
222-
}
223-
}
224-
225198
/// The RecordingServiceEventNames enum gathers the recording events.
226199
///
227200
/// {@category Models}

lib/src/sdk_api/models/events.dart

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import 'package:dolbyio_comms_sdk_flutter/src/sdk_api/models/enums.dart';
2-
31
import 'conference.dart';
42
import 'file_presentation.dart';
53
import 'participant.dart';
64
import 'streams.dart';
5+
import 'recording.dart';
76

87
typedef FileConvertedType = FileConverted;
98

@@ -234,12 +233,16 @@ class RecordingStatusUpdate {
234233
this.participantId, this.timeStamp);
235234

236235
static RecordingStatusUpdate fromMap(Map<Object?, Object?> data) {
237-
RecordingStatus recordingStatus =
238-
RecordingStatus.valueOf(data["recordingStatus"] as String);
236+
RecordingStatus? recordingStatus =
237+
RecordingStatus.decode(data["recordingStatus"] as String?);
239238
String? conferenceId = data["conferenceId"] as String?;
240239
String? participantId = data["participantId"] as String?;
241240
int? timeStamp = data["timeStamp"] as int?;
242-
return RecordingStatusUpdate(
243-
recordingStatus, conferenceId, participantId, timeStamp);
241+
if (recordingStatus != null) {
242+
return RecordingStatusUpdate(
243+
recordingStatus, conferenceId, participantId, timeStamp);
244+
} else {
245+
throw Exception("Invalid recording status");
246+
}
244247
}
245248
}

lib/src/sdk_api/notification_service.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class NotificationService {
7777
});
7878
}
7979

80-
/// Returns a [Stream] of the [NotificationServiceEventNames.conferenceCreated] events. By subscribing to the returned stream you will be notified about new conference invitations.
80+
/// Returns a [Stream] of the [NotificationServiceEventNames.conferenceCreated] events. By subscribing to the returned stream you will be notified whenever a new conference is created.
8181
Stream<
8282
Event<NotificationServiceEventNames,
8383
ConferenceCreatedNotificationData>> onConferenceCreated() {
@@ -90,7 +90,7 @@ class NotificationService {
9090
});
9191
}
9292

93-
/// Returns a [Stream] of the [NotificationServiceEventNames.conferenceEnded] events. By subscribing to the returned stream you will be notified about new conference invitations.
93+
/// Returns a [Stream] of the [NotificationServiceEventNames.conferenceEnded] events. By subscribing to the returned stream you will be notified whenever a conference ends.
9494
Stream<Event<NotificationServiceEventNames, ConferenceEndedNotificationData>>
9595
onConferenceEnded() {
9696
return _eventStream.addListener(

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: dolbyio_comms_sdk_flutter
22
description: >
33
Dolby.io Communications SDK for Flutter allows you to create high-quality video conferencing
44
applications for multiple platforms using a single codebase.
5-
version: 3.8.2
5+
version: 3.8.3
66
homepage: https://github.com/DolbyIO/comms-sdk-flutter
77

88
environment:

test_app/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: dolbyio_comms_sdk_flutter_example
22
description: Demonstrates how to use the dolbyio_comms_sdk_flutter plugin.
33

4-
version: 3.8.2+3
4+
version: 3.8.3+1
55

66
# The following line prevents the package from being accidentally published to
77
# pub.dev using `flutter pub publish`. This is preferred for private packages.

0 commit comments

Comments
 (0)