Skip to content

Commit 9acfa8a

Browse files
authored
removed previously deprecated paramteres (#726)
1 parent 71f72c0 commit 9acfa8a

File tree

4 files changed

+6
-34
lines changed

4 files changed

+6
-34
lines changed

packages/stream_video/lib/src/call/call.dart

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -275,15 +275,6 @@ class Call {
275275
SharedEmitter<CallStats> get stats => _stats;
276276
late final _stats = MutableSharedEmitterImpl<CallStats>();
277277

278-
@Deprecated('Use `callEvents` instead')
279-
SharedEmitter<SfuEvent> get events => _events;
280-
final _events = MutableSharedEmitterImpl<SfuEvent>();
281-
282-
@Deprecated('Use `callEvents` instead')
283-
SharedEmitter<CoordinatorCallEvent> get coordinatorEvents =>
284-
_coordinatorEvents;
285-
final _coordinatorEvents = MutableSharedEmitterImpl<CoordinatorCallEvent>();
286-
287278
SharedEmitter<StreamCallEvent> get callEvents => _callEvents;
288279
final _callEvents = MutableSharedEmitterImpl<StreamCallEvent>();
289280

@@ -332,7 +323,6 @@ class Call {
332323
_subscriptions.add(
333324
_idCoordEvents,
334325
_coordinatorClient.events.on<CoordinatorCallEvent>((event) async {
335-
_coordinatorEvents.emit(event);
336326
event.mapToCallEvent(state.value).emitIfNotNull(_callEvents);
337327
await _onCoordinatorEvent(event);
338328
}),
@@ -664,7 +654,6 @@ class Call {
664654
event.logPriority,
665655
() => '[listenSfuEvent] event.type: ${event.runtimeType}',
666656
);
667-
_events.emit(event);
668657
event.mapToCallEvent(state.value).emitIfNotNull(_callEvents);
669658
_onSfuEvent(event);
670659
}),

packages/stream_video/lib/src/stream_video.dart

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import 'dart:async';
22

33
import 'package:async/async.dart' as async;
4-
import 'package:stream_video/open_api/video/coordinator/api.dart';
54
import 'package:uuid/uuid.dart';
65

7-
import '../open_api/video/coordinator/api.dart' as open;
6+
import '../open_api/video/coordinator/api.dart';
87
import 'call/call.dart';
98
import 'call/call_ringing_state.dart';
109
import 'call/call_type.dart';
@@ -477,18 +476,13 @@ class StreamVideo extends Disposable {
477476
}
478477

479478
Call makeCall({
480-
@Deprecated('Use callType instead') String? type,
481-
StreamCallType? callType,
479+
required StreamCallType callType,
482480
required String id,
483481
CallPreferences? preferences,
484482
}) {
485-
assert(
486-
type != null || callType != null,
487-
'Either type or callType must be provided',
488-
);
489483
return Call(
490484
callCid: StreamCallCid.from(
491-
type: callType ?? StreamCallType.fromString(type!),
485+
type: callType,
492486
id: id,
493487
),
494488
coordinatorClient: _client,
@@ -527,7 +521,7 @@ class StreamVideo extends Disposable {
527521
String? next,
528522
String? prev,
529523
int? limit,
530-
List<open.SortParam>? sorts,
524+
List<SortParam>? sorts,
531525
bool? watch,
532526
}) {
533527
return _client.queryCalls(
@@ -643,8 +637,6 @@ class StreamVideo extends Disposable {
643637
}
644638

645639
final callRingingState = await getCallRingingState(
646-
// ignore: deprecated_member_use_from_same_package
647-
type: callType.value,
648640
callType: callType,
649641
id: callId,
650642
);
@@ -671,21 +663,14 @@ class StreamVideo extends Disposable {
671663
}
672664

673665
Future<CallRingingState> getCallRingingState({
674-
@Deprecated('Use callType instead') String? type,
675-
StreamCallType? callType,
666+
required StreamCallType callType,
676667
required String id,
677668
}) async {
678-
assert(
679-
type != null || callType != null,
680-
'Either type or callType must be provided',
681-
);
682-
683669
final call = makeCall(
684-
// ignore: deprecated_member_use_from_same_package
685-
type: callType?.value ?? type,
686670
callType: callType,
687671
id: id,
688672
);
673+
689674
final callResult = await call.get();
690675

691676
return callResult.fold(

packages/stream_video_flutter/lib/src/call_participants/local_video.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import 'package:flutter/material.dart';
22

33
import '../../stream_video_flutter.dart';
4-
import '../widgets/floating_view/floating_view_alignment.dart';
54

65
/// Represents a floating item used to feature a participant video.
76
class StreamLocalVideo extends StatelessWidget {

packages/stream_video_flutter/lib/src/theme/local_video_theme.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import 'package:flutter/foundation.dart';
66
import 'package:flutter/material.dart';
77

88
import '../../stream_video_flutter.dart';
9-
import '../widgets/floating_view/floating_view_alignment.dart';
109

1110
/// Defines default property values for [StreamLocalVideo] widgets.
1211
@immutable

0 commit comments

Comments
 (0)