Skip to content

Commit

Permalink
feat: Upgrade native sdk 4.2.2 (#1142)
Browse files Browse the repository at this point in the history
* feat: Upgrade native sdk 4.2.2

---------

Co-authored-by: littleGnAl <littleGnAl@users.noreply.github.com>
Co-authored-by: jinyuagora <jinyuagora@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 31, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 10038b8 commit 3e04fd5
Showing 45 changed files with 3,723 additions and 1,362 deletions.
6 changes: 3 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -51,9 +51,9 @@ dependencies {
if (isDev(project)) {
implementation fileTree(dir: "libs", include: ["*.jar"])
} else {
api 'io.agora.rtc:iris-rtc:4.2.1-build.1'
api 'io.agora.rtc:full-sdk:4.2.1'
api 'io.agora.rtc:full-screen-sharing:4.2.1'
api 'io.agora.rtc:iris-rtc:4.2.2-build.1'
api 'io.agora.rtc:full-sdk:4.2.2'
api 'io.agora.rtc:full-screen-sharing:4.2.2'
}
}

25 changes: 18 additions & 7 deletions example/lib/examples/advanced/music_player/music_player.dart
Original file line number Diff line number Diff line change
@@ -206,8 +206,7 @@ class _MusicPlayerExampleState extends State<MusicPlayerExample> {
if (!isPreloaded) {
_preloadCompleted = Completer();
_getLyricCompleted = Completer();
await _musicContentCenter.preload(
songCode: _selectedMusic.songCode!);
await _musicContentCenter.preload(_selectedMusic.songCode!);
_getLyricRequestId = await _musicContentCenter.getLyric(
songCode: _selectedMusic.songCode!);
} else {
@@ -310,18 +309,30 @@ class _MusicPlayerExampleState extends State<MusicPlayerExample> {
});
}
},
onPreLoadEvent: (int songCode, int percent, String lyricUrl,
PreloadStatusCode status, MusicContentCenterStatusCode errorCode) {
onPreLoadEvent: (
String requestId,
int songCode,
int percent,
String lyricUrl,
PreloadStatusCode status,
MusicContentCenterStatusCode errorCode,
) {
logSink.log(
'[onPreLoadEvent], songCode: $songCode, percent: $percent status: $status, errorCode: $errorCode, lyricUrl: $lyricUrl');
'[onPreLoadEvent], requestId: $requestId songCode: $songCode, percent: $percent status: $status, errorCode: $errorCode, lyricUrl: $lyricUrl');
if (_selectedMusic.songCode == songCode &&
status == PreloadStatusCode.kPreloadStatusCompleted) {
_preloadCompleted?.complete();
_preloadCompleted = null;
}
},
onLyricResult: (String requestId, String lyricUrl,
MusicContentCenterStatusCode errorCode) {
onLyricResult: (
String requestId,
int songCode,
String lyricUrl,
MusicContentCenterStatusCode errorCode,
) {
logSink.log(
'[onLyricResult], requestId: $requestId songCode: $songCode, lyricUrl: $lyricUrl errorCode: $errorCode');
if (_getLyricRequestId == requestId) {
_getLyricCompleted?.complete(lyricUrl);
_getLyricCompleted = null;
4 changes: 2 additions & 2 deletions ios/agora_rtc_engine.podspec
Original file line number Diff line number Diff line change
@@ -23,8 +23,8 @@ Pod::Spec.new do |s|
puts '[plugin_dev] Found .plugin_dev file, use vendored_frameworks instead.'
s.vendored_frameworks = 'libs/*.xcframework'
else
s.dependency 'AgoraIrisRTC_iOS', '4.2.1-build.1'
s.dependency 'AgoraRtcEngine_iOS', '4.2.1'
s.dependency 'AgoraIrisRTC_iOS', '4.2.2-build.1'
s.dependency 'AgoraRtcEngine_iOS', '4.2.2'
end

s.platform = :ios, '9.0'
582 changes: 454 additions & 128 deletions lib/src/agora_base.dart

Large diffs are not rendered by default.

127 changes: 127 additions & 0 deletions lib/src/agora_base.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/src/agora_log.dart
Original file line number Diff line number Diff line change
@@ -106,11 +106,11 @@ class LogConfig {
@JsonKey(name: 'filePath')
final String? filePath;

/// The size (KB) of an agorasdk.log file. The value range is [128,1024]. The default value is 1,024 KB. If you set fileSizeInKByte smaller than 128 KB, the SDK automatically adjusts it to 128 KB; if you set fileSizeInKByte greater than 1,024 KB, the SDK automatically adjusts it to 1,024 KB.
/// The size (KB) of an agorasdk.log file. The value range is [128,20480]. The default value is 2,048 KB. If you set fileSizeInKByte smaller than 128 KB, the SDK automatically adjusts it to 128 KB; if you set fileSizeInKByte greater than 20,480 KB, the SDK automatically adjusts it to 20,480 KB.
@JsonKey(name: 'fileSizeInKB')
final int? fileSizeInKB;

/// The output level of the SDK log file. See LogLevel.For example, if you set the log level to WARN, the SDK outputs the logs within levels FATAL, ERROR, and WARN.
/// The output level of the SDK log file. See LogLevel. For example, if you set the log level to WARN, the SDK outputs the logs within levels FATAL, ERROR, and WARN.
@JsonKey(name: 'level')
final LogLevel? level;

Loading

0 comments on commit 3e04fd5

Please sign in to comment.