Skip to content

Commit

Permalink
feat: optimize internal dependencies (#2146)
Browse files Browse the repository at this point in the history
  • Loading branch information
peilinok authored Jan 20, 2025
1 parent 5b9d15e commit 4afc2ba
Show file tree
Hide file tree
Showing 71 changed files with 250 additions and 257 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
.buildlog/
.history
.svn/
/artifacts

# FVM Version Cache
.fvm/
.fvmrc

# IntelliJ related
*.iml
Expand Down
4 changes: 2 additions & 2 deletions lib/agora_rtc_engine_debug.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:agora_rtc_engine/src/agora_rtc_engine.dart';
import 'package:agora_rtc_engine/src/impl/agora_rtc_engine_impl.dart';
import '/src/agora_rtc_engine.dart';
import '/src/impl/agora_rtc_engine_impl.dart';

extension RtcEngineDebug on RtcEngine {
Future<void> startDumpVideo(int type, String dir) async {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/agora_base.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import '/src/binding_forward_export.dart';
part 'agora_base.g.dart';

/// The channel profile.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/agora_h265_transcoder.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import '/src/binding_forward_export.dart';
part 'agora_h265_transcoder.g.dart';

/// @nodoc
Expand Down
2 changes: 1 addition & 1 deletion lib/src/agora_log.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import '/src/binding_forward_export.dart';
part 'agora_log.g.dart';

/// The output log level of the SDK.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/agora_media_base.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import '/src/binding_forward_export.dart';
part 'agora_media_base.g.dart';

/// @nodoc
Expand Down
2 changes: 1 addition & 1 deletion lib/src/agora_media_engine.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import '/src/binding_forward_export.dart';
part 'agora_media_engine.g.dart';

/// The channel mode.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/agora_media_player.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import '/src/binding_forward_export.dart';

/// This class provides media player functions and supports multiple instances.
abstract class MediaPlayer {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/agora_media_player_source.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import '/src/binding_forward_export.dart';

/// Provides callbacks for media players.
class MediaPlayerSourceObserver {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/agora_media_player_types.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import '/src/binding_forward_export.dart';
part 'agora_media_player_types.g.dart';

/// @nodoc
Expand Down
2 changes: 1 addition & 1 deletion lib/src/agora_media_recorder.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import '/src/binding_forward_export.dart';

/// @nodoc
abstract class MediaRecorder {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/agora_media_streaming_source.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import '/src/binding_forward_export.dart';
part 'agora_media_streaming_source.g.dart';

/// @nodoc
Expand Down
2 changes: 1 addition & 1 deletion lib/src/agora_music_content_center.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import '/src/binding_forward_export.dart';
part 'agora_music_content_center.g.dart';

/// @nodoc
Expand Down
2 changes: 1 addition & 1 deletion lib/src/agora_rhythm_player.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import '/src/binding_forward_export.dart';
part 'agora_rhythm_player.g.dart';

/// Virtual metronome state.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/agora_rtc_engine.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import '/src/binding_forward_export.dart';
part 'agora_rtc_engine.g.dart';

/// Media device types.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/agora_rtc_engine_ex.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import '/src/binding_forward_export.dart';
part 'agora_rtc_engine_ex.g.dart';

/// Contains connection information.
Expand Down
12 changes: 6 additions & 6 deletions lib/src/agora_rtc_engine_ext.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'package:agora_rtc_engine/src/agora_media_player.dart';
import 'package:agora_rtc_engine/src/agora_rtc_engine.dart';
import 'package:agora_rtc_engine/src/agora_rtc_engine_ex.dart';
import 'package:agora_rtc_engine/src/impl/agora_rtc_engine_impl.dart';
import 'impl/agora_rtc_engine_impl.dart' as impl;
import 'impl/media_player_impl.dart';
import '/src/agora_media_player.dart';
import '/src/agora_rtc_engine.dart';
import '/src/agora_rtc_engine_ex.dart';
import '/src/impl/agora_rtc_engine_impl.dart';
import '/src/impl/agora_rtc_engine_impl.dart' as impl;
import '/src/impl/media_player_impl.dart';

/// @nodoc
extension RtcEngineExt on RtcEngine {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/agora_spatial_audio.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import '/src/binding_forward_export.dart';
part 'agora_spatial_audio.g.dart';

/// The spatial position of the remote user or the media player.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/audio_device_manager.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import '/src/binding_forward_export.dart';
part 'audio_device_manager.g.dart';

/// The maximum length of the device ID.
Expand Down
4 changes: 2 additions & 2 deletions lib/src/binding/agora_base_event_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// ignore_for_file: public_member_api_docs, unused_local_variable, unused_import

import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import 'package:agora_rtc_engine/src/binding/impl_forward_export.dart';
import '/src/binding_forward_export.dart';
import '/src/binding/impl_forward_export.dart';
import 'package:iris_method_channel/iris_method_channel.dart';

class AudioEncodedFrameObserverWrapper implements EventLoopEventHandler {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/binding/agora_h265_transcoder_event_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// ignore_for_file: public_member_api_docs, unused_local_variable, unused_import

import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import 'package:agora_rtc_engine/src/binding/impl_forward_export.dart';
import '/src/binding_forward_export.dart';
import '/src/binding/impl_forward_export.dart';
import 'package:iris_method_channel/iris_method_channel.dart';

class H265TranscoderObserverWrapper implements EventLoopEventHandler {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/binding/agora_h265_transcoder_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// ignore_for_file: public_member_api_docs, unused_local_variable, unused_import, annotate_overrides

import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import 'package:agora_rtc_engine/src/binding/impl_forward_export.dart';
import '/src/binding_forward_export.dart';
import '/src/binding/impl_forward_export.dart';
import 'package:iris_method_channel/iris_method_channel.dart';

class H265TranscoderImpl implements H265Transcoder {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/binding/agora_media_base_event_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// ignore_for_file: public_member_api_docs, unused_local_variable, unused_import

import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import 'package:agora_rtc_engine/src/binding/impl_forward_export.dart';
import '/src/binding_forward_export.dart';
import '/src/binding/impl_forward_export.dart';
import 'package:iris_method_channel/iris_method_channel.dart';

class AudioPcmFrameSinkWrapper implements EventLoopEventHandler {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/binding/agora_media_base_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// ignore_for_file: public_member_api_docs, unused_local_variable, unused_import, annotate_overrides

import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import 'package:agora_rtc_engine/src/binding/impl_forward_export.dart';
import '/src/binding_forward_export.dart';
import '/src/binding/impl_forward_export.dart';
import 'package:iris_method_channel/iris_method_channel.dart';

class VideoFrameMetaInfoImpl implements VideoFrameMetaInfo {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/binding/agora_media_engine_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// ignore_for_file: public_member_api_docs, unused_local_variable, unused_import, annotate_overrides

import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import 'package:agora_rtc_engine/src/binding/impl_forward_export.dart';
import '/src/binding_forward_export.dart';
import '/src/binding/impl_forward_export.dart';
import 'package:iris_method_channel/iris_method_channel.dart';

class MediaEngineImpl implements MediaEngine {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/binding/agora_media_player_event_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// ignore_for_file: public_member_api_docs, unused_local_variable, unused_import

import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import 'package:agora_rtc_engine/src/binding/impl_forward_export.dart';
import '/src/binding_forward_export.dart';
import '/src/binding/impl_forward_export.dart';
import 'package:iris_method_channel/iris_method_channel.dart';

class MediaPlayerVideoFrameObserverWrapper implements EventLoopEventHandler {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/binding/agora_media_player_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// ignore_for_file: public_member_api_docs, unused_local_variable, unused_import, annotate_overrides

import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import 'package:agora_rtc_engine/src/binding/impl_forward_export.dart';
import '/src/binding_forward_export.dart';
import '/src/binding/impl_forward_export.dart';
import 'package:iris_method_channel/iris_method_channel.dart';

class MediaPlayerImpl implements MediaPlayer {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/binding/agora_media_player_source_event_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// ignore_for_file: public_member_api_docs, unused_local_variable, unused_import

import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import 'package:agora_rtc_engine/src/binding/impl_forward_export.dart';
import '/src/binding_forward_export.dart';
import '/src/binding/impl_forward_export.dart';
import 'package:iris_method_channel/iris_method_channel.dart';

class MediaPlayerSourceObserverWrapper implements EventLoopEventHandler {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/binding/agora_media_recorder_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// ignore_for_file: public_member_api_docs, unused_local_variable, unused_import, annotate_overrides

import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import 'package:agora_rtc_engine/src/binding/impl_forward_export.dart';
import '/src/binding_forward_export.dart';
import '/src/binding/impl_forward_export.dart';
import 'package:iris_method_channel/iris_method_channel.dart';

class MediaRecorderImpl implements MediaRecorder {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/binding/agora_music_content_center_event_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// ignore_for_file: public_member_api_docs, unused_local_variable, unused_import

import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import 'package:agora_rtc_engine/src/binding/impl_forward_export.dart';
import '/src/binding_forward_export.dart';
import '/src/binding/impl_forward_export.dart';
import 'package:iris_method_channel/iris_method_channel.dart';

class MusicContentCenterEventHandlerWrapper implements EventLoopEventHandler {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/binding/agora_music_content_center_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// ignore_for_file: public_member_api_docs, unused_local_variable, unused_import, annotate_overrides

import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import 'package:agora_rtc_engine/src/binding/impl_forward_export.dart';
import '/src/binding_forward_export.dart';
import '/src/binding/impl_forward_export.dart';
import 'package:iris_method_channel/iris_method_channel.dart';

class MusicChartCollectionImpl implements MusicChartCollection {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/binding/agora_rtc_engine_event_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// ignore_for_file: public_member_api_docs, unused_local_variable, unused_import

import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import 'package:agora_rtc_engine/src/binding/impl_forward_export.dart';
import '/src/binding_forward_export.dart';
import '/src/binding/impl_forward_export.dart';
import 'package:iris_method_channel/iris_method_channel.dart';

class RtcEngineEventHandlerWrapper implements EventLoopEventHandler {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/binding/agora_rtc_engine_ex_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// ignore_for_file: public_member_api_docs, unused_local_variable, unused_import, annotate_overrides

import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import 'package:agora_rtc_engine/src/binding/impl_forward_export.dart';
import '/src/binding_forward_export.dart';
import '/src/binding/impl_forward_export.dart';
import 'package:iris_method_channel/iris_method_channel.dart';

class RtcEngineExImpl extends RtcEngineImpl implements RtcEngineEx {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/binding/agora_rtc_engine_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// ignore_for_file: public_member_api_docs, unused_local_variable, unused_import, annotate_overrides

import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import 'package:agora_rtc_engine/src/binding/impl_forward_export.dart';
import '/src/binding_forward_export.dart';
import '/src/binding/impl_forward_export.dart';
import 'package:iris_method_channel/iris_method_channel.dart';

class VideoDeviceManagerImpl implements VideoDeviceManager {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/binding/agora_spatial_audio_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// ignore_for_file: public_member_api_docs, unused_local_variable, unused_import, annotate_overrides

import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import 'package:agora_rtc_engine/src/binding/impl_forward_export.dart';
import '/src/binding_forward_export.dart';
import '/src/binding/impl_forward_export.dart';
import 'package:iris_method_channel/iris_method_channel.dart';

class LocalSpatialAudioEngineImpl implements LocalSpatialAudioEngine {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/binding/audio_device_manager_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// ignore_for_file: public_member_api_docs, unused_local_variable, unused_import, annotate_overrides

import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import 'package:agora_rtc_engine/src/binding/impl_forward_export.dart';
import '/src/binding_forward_export.dart';
import '/src/binding/impl_forward_export.dart';
import 'package:iris_method_channel/iris_method_channel.dart';

class AudioDeviceManagerImpl implements AudioDeviceManager {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/binding/call_api_event_handler_buffer_ext.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// ignore_for_file: public_member_api_docs, unused_local_variable, unused_import, prefer_is_empty

import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import '/src/binding_forward_export.dart';

extension VideoDimensionsBufferExt on VideoDimensions {
VideoDimensions fillBuffers(List<Uint8List> bufferList) {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/binding/call_api_impl_params_json.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// ignore_for_file: public_member_api_docs, unused_local_variable, unused_import

import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import '/src/binding_forward_export.dart';
part 'call_api_impl_params_json.g.dart';

@JsonSerializable(explicitToJson: true, includeIfNull: false)
Expand Down
2 changes: 1 addition & 1 deletion lib/src/binding/event_handler_param_json.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// ignore_for_file: public_member_api_docs, unused_local_variable, unused_import, prefer_is_empty

import 'package:agora_rtc_engine/src/binding_forward_export.dart';
import '/src/binding_forward_export.dart';
part 'event_handler_param_json.g.dart';

@JsonSerializable(explicitToJson: true, includeIfNull: false)
Expand Down
40 changes: 20 additions & 20 deletions lib/src/binding/impl_forward_export.dart
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
export 'agora_base_event_impl.dart';
export 'agora_media_base_impl.dart';
export 'agora_media_base_event_impl.dart';
export 'agora_h265_transcoder_impl.dart';
export 'agora_h265_transcoder_event_impl.dart';
export 'agora_media_engine_impl.dart';
export 'agora_media_player_impl.dart';
export 'agora_media_player_event_impl.dart';
export 'agora_media_player_source_event_impl.dart';
export 'agora_media_recorder_impl.dart';
export 'agora_music_content_center_impl.dart';
export 'agora_music_content_center_event_impl.dart';
export 'agora_rtc_engine_impl.dart';
export 'agora_rtc_engine_event_impl.dart';
export 'agora_rtc_engine_ex_impl.dart';
export 'agora_spatial_audio_impl.dart';
export 'audio_device_manager_impl.dart';
export 'event_handler_param_json.dart';
export 'call_api_impl_params_json.dart';
export 'call_api_event_handler_buffer_ext.dart';
export '/src/binding/agora_base_event_impl.dart';
export '/src/binding/agora_media_base_impl.dart';
export '/src/binding/agora_media_base_event_impl.dart';
export '/src/binding/agora_h265_transcoder_impl.dart';
export '/src/binding/agora_h265_transcoder_event_impl.dart';
export '/src/binding/agora_media_engine_impl.dart';
export '/src/binding/agora_media_player_impl.dart';
export '/src/binding/agora_media_player_event_impl.dart';
export '/src/binding/agora_media_player_source_event_impl.dart';
export '/src/binding/agora_media_recorder_impl.dart';
export '/src/binding/agora_music_content_center_impl.dart';
export '/src/binding/agora_music_content_center_event_impl.dart';
export '/src/binding/agora_rtc_engine_impl.dart';
export '/src/binding/agora_rtc_engine_event_impl.dart';
export '/src/binding/agora_rtc_engine_ex_impl.dart';
export '/src/binding/agora_spatial_audio_impl.dart';
export '/src/binding/audio_device_manager_impl.dart';
export '/src/binding/event_handler_param_json.dart';
export '/src/binding/call_api_impl_params_json.dart';
export '/src/binding/call_api_event_handler_buffer_ext.dart';
Loading

0 comments on commit 4afc2ba

Please sign in to comment.