Skip to content

Commit 176c2d7

Browse files
github-actions[bot]guoxianzheZGaopeng
committed
feat: update dependencies (#235)
Update dependencies with the following content: https://download.agora.io/rtm2/release/Agora_RTM_OC_SDK_v2.2.6.2.zip https://download.agora.io/rtm2/release/Agora_RTM_C%2B%2B_SDK_for_Linux_v2.2.6.2.zip https://download.agora.io/rtm2/release/Agora_RTM_C%2B%2B_SDK_for_Windows_v2.2.6.2.zip https://download.agora.io/rtm2/release/Agora_RTM_JAVA_SDK_for_Android_v2.2.6.2.zip implementation 'io.agora:agora-rtm-special:2.2.6.2' pod 'AgoraRtm_OC_Special', '2.2.6.2' Iris iOS: Artifactory: https://artifactory-api.bj2.agoralab.co/artifactory/CSDC_repo/EP/4.6/20251028/ios/iris_2.2.6.2-build.1_RTM_iOS_Video_20251028_0400_33784.zip https://artifactory-api.bj2.agoralab.co/artifactory/CSDC_repo/EP/4.6/20251028/ios/iris_2.2.6.2-build.1_RTM_iOS_Video_Standalone_20251028_0400_33784.zip PrivateArtifactory: https://artifactory-api.bj2.agoralab.co/artifactory/CSDC_repo/EP/4.6/20251028/ios/iris_2.2.6.2-build.1_RTM_iOS_Video_20251028_0400_33784_xdump.zip https://artifactory-api.bj2.agoralab.co/artifactory/CSDC_repo/EP/4.6/20251028/ios/iris_2.2.6.2-build.1_RTM_iOS_Video_20251028_0400_33784_private.zip CDN: https://download.agora.io/sdk/release/iris_2.2.6.2-build.1_RTM_iOS_Video_20251028_0400_33784.zip https://download.agora.io/sdk/release/iris_2.2.6.2-build.1_RTM_iOS_Video_Standalone_20251028_0400_33784.zip Cocoapods: pod 'AgoraIrisRTM_iOS', '2.2.6.2-build.1' Iris Android: Artifactory: https://artifactory-api.bj2.agoralab.co/artifactory/CSDC_repo/EP/4.6/20251028/android/iris_2.2.6.2-build.1_RTM_Android_Video_16K_20251028_0350_34934.zip https://artifactory-api.bj2.agoralab.co/artifactory/CSDC_repo/EP/4.6/20251028/android/iris_2.2.6.2-build.1_RTM_Android_Video_Standalone_16K_20251028_0350_34934.zip PrivateArtifactory: https://artifactory-api.bj2.agoralab.co/artifactory/CSDC_repo/EP/4.6/20251028/android/iris_2.2.6.2-build.1_RTM_Android_Video_16K_20251028_0350_34934_private.zip https://artifactory-api.bj2.agoralab.co/artifactory/CSDC_repo/EP/4.6/20251028/android/iris_2.2.6.2-build.1_RTM_Android_Video_16K_20251028_0350_34934_xdump.zip CDN: https://download.agora.io/sdk/release/iris_2.2.6.2-build.1_RTM_Android_Video_16K_20251028_0350_34934.zip https://download.agora.io/sdk/release/iris_2.2.6.2-build.1_RTM_Android_Video_Standalone_16K_20251028_0350_34934.zip Maven: implementation 'io.agora.rtm:iris-rtm:2.2.6.2-build.1' Iris macOS: Artifactory: https://artifactory-api.bj2.agoralab.co/artifactory/CSDC_repo/EP/4.6/20251028/mac/iris_2.2.6.2-build.1_RTM_Mac_Video_Standalone_20251028_0350_32739.zip https://artifactory-api.bj2.agoralab.co/artifactory/CSDC_repo/EP/4.6/20251028/mac/iris_2.2.6.2-build.1_RTM_Mac_Video_20251028_0350_32739.zip PrivateArtifactory: https://artifactory-api.bj2.agoralab.co/artifactory/CSDC_repo/EP/4.6/20251028/mac/iris_2.2.6.2-build.1_RTM_Mac_Video_20251028_0350_32739_xdump.zip https://artifactory-api.bj2.agoralab.co/artifactory/CSDC_repo/EP/4.6/20251028/mac/iris_2.2.6.2-build.1_RTM_Mac_Video_20251028_0350_32739_private.zip CDN: https://download.agora.io/sdk/release/iris_2.2.6.2-build.1_RTM_Mac_Video_Standalone_20251028_0350_32739.zip https://download.agora.io/sdk/release/iris_2.2.6.2-build.1_RTM_Mac_Video_20251028_0350_32739.zip Cocoapods: pod 'AgoraIrisRTM_macOS', '2.2.6.2-build.1' Iris Windows: Artifactory: https://artifactory-api.bj2.agoralab.co/artifactory/CSDC_repo/EP/4.6/20251028/windows/iris_2.2.6.2-build.1_RTM_Windows_Video_Standalone_20251028_0350_31800.zip https://artifactory-api.bj2.agoralab.co/artifactory/CSDC_repo/EP/4.6/20251028/windows/iris_2.2.6.2-build.1_RTM_Windows_Video_20251028_0350_31800.zip PrivateArtifactory: https://artifactory-api.bj2.agoralab.co/artifactory/CSDC_repo/EP/4.6/20251028/windows/iris_2.2.6.2-build.1_RTM_Windows_Video_20251028_0350_31800_private.zip https://artifactory-api.bj2.agoralab.co/artifactory/CSDC_repo/EP/4.6/20251028/windows/iris_2.2.6.2-build.1_RTM_Windows_Video_20251028_0350_31800_xdump.zip CDN: https://download.agora.io/sdk/release/iris_2.2.6.2-build.1_RTM_Windows_Video_Standalone_20251028_0350_31800.zip https://download.agora.io/sdk/release/iris_2.2.6.2-build.1_RTM_Windows_Video_20251028_0350_31800.zip Iris Unity macOS: Artifactory: https://artifactory-api.bj2.agoralab.co/artifactory/CSDC_repo/EP/4.6/20251028/mac/iris_2.2.6.2-build.1_RTM_Mac_Video_Unity_20251028_0350_32739.zip PrivateArtifactory: https://artifactory-api.bj2.agoralab.co/artifactory/CSDC_repo/EP/4.6/20251028/mac/iris_2.2.6.2-build.1_RTM_Mac_Video_Unity_20251028_0350_32739_xdump.zip https://artifactory-api.bj2.agoralab.co/artifactory/CSDC_repo/EP/4.6/20251028/mac/iris_2.2.6.2-build.1_RTM_Mac_Video_Unity_20251028_0350_32739_private.zip CDN: https://download.agora.io/sdk/release/iris_2.2.6.2-build.1_RTM_Mac_Video_Unity_20251028_0350_32739.zip > This pull request is trigger by bot, you can checkout this branch and update it. --------- Co-authored-by: guoxianzhe <guoxianzhe@users.noreply.github.com> Co-authored-by: Gopein <z_gaopeng@sina.com>
1 parent e71f710 commit 176c2d7

35 files changed

Lines changed: 2018 additions & 841 deletions

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,16 +235,19 @@ jobs:
235235
env:
236236
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
237237

238-
- name: Setup Dart for pub publish
238+
- name: Setup Flutter for pub publish
239239
if: ${{ steps.version_check.outputs.release_type == 'standard' }}
240-
uses: dart-lang/setup-dart@v1
240+
uses: subosito/flutter-action@v2
241+
with:
242+
channel: 'stable'
243+
cache: true
241244

242245
- name: Publish to pub.dev (dry-run check)
243246
if: ${{ steps.version_check.outputs.release_type == 'standard' && steps.version_check.outputs.dry-run == 'true' }}
244247
run: |
245248
echo "[DRY-RUN MODE] Running pub publish dry-run"
246-
dart pub get
247-
dart pub publish --dry-run
249+
flutter pub get
250+
flutter pub publish --dry-run
248251
249252
- name: Publish to pub.dev (real)
250253
if: ${{ steps.version_check.outputs.release_type == 'standard' && steps.version_check.outputs.dry-run == 'false' }}

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ dependencies {
6969
api fileTree(dir: "libs", include: ["*.jar"])
7070
} else {
7171
// iris dependencies start
72-
api 'io.agora.rtm:iris-rtm:2.2.5-build.2'
72+
api 'io.agora.rtm:iris-rtm:2.2.6.2-build.1'
7373
// iris dependencies end
7474

7575
// native dependencies start
76-
api 'io.agora:agora-rtm:2.2.5'
76+
api 'io.agora:agora-rtm-special:2.2.6.2'
7777
// native dependencies end
7878
}
7979
}

example/ios/Podfile

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,17 @@ post_install do |installer|
4141
end
4242

4343
pre_install do |installer|
44-
rtm_pod_path = File.join(installer.sandbox.root, 'AgoraRtm')
45-
aosl_xcframework_path = File.join(rtm_pod_path, 'aosl.xcframework')
46-
47-
if File.exist?(aosl_xcframework_path)
48-
puts "Deleting aosl.xcframework from #{aosl_xcframework_path}"
49-
FileUtils.rm_rf(aosl_xcframework_path)
50-
else
51-
puts "aosl.xcframework not found, skipping deletion."
44+
possible_paths = [
45+
File.join(installer.sandbox.root, 'AgoraRtm_OC_Special', 'aosl.xcframework'),
46+
File.join(installer.sandbox.root, 'AgoraRtm', 'aosl.xcframework')
47+
]
48+
49+
possible_paths.each do |aosl_xcframework_path|
50+
if File.exist?(aosl_xcframework_path)
51+
puts "Deleting aosl.xcframework from #{aosl_xcframework_path}"
52+
FileUtils.rm_rf(aosl_xcframework_path)
53+
else
54+
puts "aosl.xcframework not found at #{aosl_xcframework_path}, skipping."
55+
end
5256
end
5357
end

example/lib/src/rtm_api_demo.dart

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ class _RtmApiDemoState extends State<RtmApiDemo> {
7070
_historyCountController = TextEditingController(text: '100');
7171
_historyStartController = TextEditingController(text: '0');
7272
_historyEndController = TextEditingController(text: '0');
73-
7473
}
7574

7675
@override
@@ -181,12 +180,15 @@ class _RtmApiDemoState extends State<RtmApiDemo> {
181180
Navigator.push(
182181
context,
183182
MaterialPageRoute(
184-
builder: (context) => StreamChannelDemo(userId: _userIdController.text.trim(), channelName: _channelNameController.text.trim(),),
183+
builder: (context) => StreamChannelDemo(
184+
userId: _userIdController.text.trim(),
185+
channelName: _channelNameController.text.trim(),
186+
),
185187
),
186188
);
187189
},
188190
icon: const Icon(Icons.message),
189-
label: const Text('push streamChannel-demo page'),
191+
label: const Text('push streamChannel-demo page'),
190192
),
191193
]),
192194
_textField(_userIdController, 'Input user id'),
@@ -224,6 +226,9 @@ class _RtmApiDemoState extends State<RtmApiDemo> {
224226
storage: (event) {
225227
logSink.log('[storage] event: ${event.toJson()}');
226228
},
229+
token: (event) {
230+
logSink.log('[token] event: ${event.toJson()}');
231+
},
227232
);
228233
await _rtmClient.setParameters('{"rtm.log_filter":2063}');
229234
}),
@@ -232,10 +237,10 @@ class _RtmApiDemoState extends State<RtmApiDemo> {
232237
_ispPolicyEnabled = v;
233238
});
234239
}),
235-
236240
_textField(_channelNameController, 'Input channel name'),
237241
_button('RtmClient.login', () async {
238-
logSink.log('[LoginResult] app id: ${config.appId} token: ${config.token}');
242+
logSink.log(
243+
'[LoginResult] app id: ${config.appId} token: ${config.token}');
239244
final (status, _) = await _rtmClient.login(config.token);
240245
logSink.log('[LoginResult] errorCode: ${status.errorCode}');
241246
}),
@@ -468,7 +473,6 @@ class _RtmApiDemoState extends State<RtmApiDemo> {
468473
}),
469474
],
470475
),
471-
472476
_card(
473477
[
474478
Wrap(

example/lib/src/stream_channel_demo.dart

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ class _StreamChannelDemoState extends State<StreamChannelDemo> {
108108
storage: (event) {
109109
_addLog('[storage] event: ${event.toJson()}');
110110
},
111+
token: (event) {
112+
_addLog('[token] event: ${event.toJson()}');
113+
},
111114
);
112115
await _rtmClient.setParameters('{"rtm.log_filter":2063}');
113116

@@ -706,7 +709,6 @@ class _StreamChannelDemoState extends State<StreamChannelDemo> {
706709
padding: const EdgeInsets.all(16.0),
707710
child: Column(
708711
children: [
709-
710712
TextField(
711713
controller: _customTypeController,
712714
decoration: const InputDecoration(
@@ -734,24 +736,24 @@ class _StreamChannelDemoState extends State<StreamChannelDemo> {
734736
),
735737
),
736738
ElevatedButton(
737-
onPressed: _isTopicJoined &&
738-
_isLoggedIn &&
739-
_streamChannel != null &&
740-
_isChannelJoined
741-
? _sendBasicTextMessage
742-
: null,
743-
child: const Text('7. Send Basic Message'),
744-
),
739+
onPressed: _isTopicJoined &&
740+
_isLoggedIn &&
741+
_streamChannel != null &&
742+
_isChannelJoined
743+
? _sendBasicTextMessage
744+
: null,
745+
child: const Text('7. Send Basic Message'),
746+
),
745747
const SizedBox(height: 8),
746748
ElevatedButton(
747-
onPressed: _isTopicJoined &&
748-
_isLoggedIn &&
749-
_streamChannel != null &&
750-
_isChannelJoined
751-
? _sendBasicBinaryMessage
752-
: null,
753-
child: const Text('8. Send Basic Binary Message'),
754-
),
749+
onPressed: _isTopicJoined &&
750+
_isLoggedIn &&
751+
_streamChannel != null &&
752+
_isChannelJoined
753+
? _sendBasicBinaryMessage
754+
: null,
755+
child: const Text('8. Send Basic Binary Message'),
756+
),
755757
],
756758
),
757759
),

ios/agora_rtm.podspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ Pod::Spec.new do |s|
2626
s.vendored_frameworks = 'libs/*.xcframework'
2727
else
2828
# iris dependencies start
29-
s.dependency 'AgoraIrisRTM_iOS', '2.2.5-build.2'
30-
# iris dependencies end
29+
s.dependency 'AgoraIrisRTM_iOS', '2.2.6.2-build.1'
30+
# iris dependencies end
3131

3232
# native dependencies start
33-
s.dependency 'AgoraRtm', '2.2.5'
34-
# native dependencies end
33+
s.dependency 'AgoraRtm_OC_Special', '2.2.6.2'
34+
# native dependencies end
3535
end
3636

3737
# Flutter.framework does not contain a i386 slice.

lib/src/agora_rtm_base.dart

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,34 @@ part 'agora_rtm_base.g.dart';
44
/// @nodoc
55
const defaultLogSizeInKb = 1024;
66

7+
@JsonEnum(alwaysCreate: true)
8+
enum RtmTokenEventType {
9+
@JsonValue(1)
10+
willExpire,
11+
12+
@JsonValue(2)
13+
readPermissionRevoked,
14+
;
15+
16+
/// @nodoc
17+
static RtmTokenEventType fromValue(int value) {
18+
return $enumDecode(_$RtmTokenEventTypeEnumMap, value);
19+
}
20+
}
21+
22+
extension RtmTokenEventTypeExt on RtmTokenEventType {
23+
/// @nodoc
24+
@Deprecated('Use RtmTokenEventType.fromValue instead')
25+
static RtmTokenEventType fromValue(int value) {
26+
return $enumDecode(_$RtmTokenEventTypeEnumMap, value);
27+
}
28+
29+
/// @nodoc
30+
int value() {
31+
return _$RtmTokenEventTypeEnumMap[this]!;
32+
}
33+
}
34+
735
@JsonEnum(alwaysCreate: true)
836
enum RtmLinkState {
937
@JsonValue(0)
@@ -596,6 +624,12 @@ enum RtmErrorCode {
596624
@JsonValue(-11037)
597625
channelMessageDeliveredButStoreFailed,
598626

627+
@JsonValue(-11038)
628+
channelSubscribePermissionDenied,
629+
630+
@JsonValue(-11039)
631+
channelPublishPermissionDenied,
632+
599633
@JsonValue(-12001)
600634
storageOperationFailed,
601635

@@ -653,6 +687,9 @@ enum RtmErrorCode {
653687
@JsonValue(-12019)
654688
storageNotAvailable,
655689

690+
@JsonValue(-12020)
691+
storagePermissionDenied,
692+
656693
@JsonValue(-13001)
657694
presenceNotConnected,
658695

@@ -719,6 +756,9 @@ enum RtmErrorCode {
719756
@JsonValue(-14009)
720757
lockNotAvailable,
721758

759+
@JsonValue(-14010)
760+
lockPermissionDenied,
761+
722762
@JsonValue(-15001)
723763
historyOperationFailed,
724764

@@ -733,6 +773,9 @@ enum RtmErrorCode {
733773

734774
@JsonValue(-15005)
735775
historyNotAvailable,
776+
777+
@JsonValue(-15006)
778+
historyPermissionDenied,
736779
;
737780

738781
/// @nodoc
@@ -1556,3 +1599,29 @@ class HistoryMessage {
15561599

15571600
Map<String, dynamic> toJson() => _$HistoryMessageToJson(this);
15581601
}
1602+
1603+
@JsonSerializable(explicitToJson: true, includeIfNull: false)
1604+
class ChannelList {
1605+
const ChannelList({this.channels});
1606+
1607+
@JsonKey(name: 'channels')
1608+
final List<String>? channels;
1609+
1610+
factory ChannelList.fromJson(Map<String, dynamic> json) =>
1611+
_$ChannelListFromJson(json);
1612+
1613+
Map<String, dynamic> toJson() => _$ChannelListToJson(this);
1614+
}
1615+
1616+
@JsonSerializable(explicitToJson: true, includeIfNull: false)
1617+
class AffectedResources {
1618+
const AffectedResources({this.messageChannels});
1619+
1620+
@JsonKey(name: 'messageChannels')
1621+
final ChannelList? messageChannels;
1622+
1623+
factory AffectedResources.fromJson(Map<String, dynamic> json) =>
1624+
_$AffectedResourcesFromJson(json);
1625+
1626+
Map<String, dynamic> toJson() => _$AffectedResourcesToJson(this);
1627+
}

0 commit comments

Comments
 (0)