Skip to content

Commit

Permalink
Dev/0.5.3 (#118)
Browse files Browse the repository at this point in the history
* fix: rename & add @objcmember

* fix: compatible with oc

* docs: update readme

* fix: upgrade podspec to 0.5.3
  • Loading branch information
tamworth committed Oct 23, 2023
1 parent 394ed48 commit 04b6622
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion AUIKitCore.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'AUIKitCore'
s.version = '0.5.2'
s.version = '0.5.3'
s.summary = 'A short description of AUIKit.'

# This description is used to generate tags and improve search results.
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@

English | [中文](CHANGELOG.zh.md)

## [0.5.3](https://github.com/AgoraIO-Community/AUIKit/releases/tag/0.5.3)
- [iOS]Compatible with Objective-C

## [0.5.2](https://github.com/AgoraIO-Community/AUIKit/releases/tag/0.5.2)
- appId removed from AUICommonConfig as an attribute of AUIRoomContext
- [iOS]Change all methods in AUIRoomManagerRespDelegate to optional
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.zh.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@

[English](CHANGELOG.md) | 中文

## [0.5.3](https://github.com/AgoraIO-Community/AUIKit/releases/tag/0.5.3)
- [iOS]适配Objective-C

## [0.5.2](https://github.com/AgoraIO-Community/AUIKit/releases/tag/0.5.2)
- appId从AUICommonConfig移除,作为AUIRoomContext的属性
- [iOS]AUIRoomManagerRespDelegate里所有方法改为optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ open class AUIRoomCreateNetworkModel: AUICommonNetworkModel {
}
}

open class AUIRoomDestoryNetworkModel: AUICommonNetworkModel {
open class AUIRoomDestroyNetworkModel: AUICommonNetworkModel {
public override init() {
super.init()
interfaceName = "/v1/room/destroy"
Expand Down
6 changes: 3 additions & 3 deletions iOS/AUIKitCore/Sources/Service/Impl/AUIRoomManagerImpl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ extension AUIRoomManagerImpl: AUIRoomManagerDelegate {
aui_info("destroyRoom: \(roomId)", tag: "AUIRoomManagerImpl")
self.rtmManager.unSubscribe(channelName: roomId)

let model = AUIRoomDestoryNetworkModel()
let model = AUIRoomDestroyNetworkModel()
model.userId = AUIRoomContext.shared.currentUserInfo.userId
model.roomId = roomId
model.request { error, _ in
Expand Down Expand Up @@ -144,9 +144,9 @@ extension AUIRoomManagerImpl: AUIRoomManagerDelegate {
callback(nil)
}

public func getRoomInfoList(lastCreateTime: Int64?, pageSize: Int, callback: @escaping AUIRoomListCallback) {
public func getRoomInfoList(lastCreateTime: Int64, pageSize: Int, callback: @escaping AUIRoomListCallback) {
let model = AUIRoomListNetworkModel()
model.lastCreateTime = lastCreateTime == nil ? nil : NSNumber(value: Int(lastCreateTime!))
model.lastCreateTime = lastCreateTime == 0 ? nil : NSNumber(value: Int(lastCreateTime))
model.pageSize = pageSize
model.request { error, list in
callback(error as NSError?, list as? [AUIRoomInfo])
Expand Down
2 changes: 2 additions & 0 deletions iOS/AUIKitCore/Sources/Service/Model/AUIRoomConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import Foundation

@objcMembers
open class AUICommonConfig: NSObject {
/// 网络请求域名
public var host: String = "https://uikit-voiceroom-staging.bj2.agoralab.co"
Expand All @@ -21,6 +22,7 @@ open class AUICommonConfig: NSObject {
}
}

@objcMembers
open class AUIRoomConfig: NSObject {
public var channelName: String = "" //正常rtm使用的频道
public var rtmToken007: String = "" //rtm login用,只能007
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ public protocol AUIRoomManagerDelegate: NSObjectProtocol {

/// 获取房间列表
/// - Parameters:
/// - lastCreateTime: 最后1条数据的创建时间, 返回数据list的createTime字段值,如果为空, 默认会设置为服务器当前时间戳
/// - lastCreateTime: 最后1条数据的创建时间, 返回数据list的createTime字段值,如果为0, 默认会设置为服务器当前时间戳
/// - pageSize: 分页大小
/// - callback: 操作完成回调
func getRoomInfoList(lastCreateTime: Int64?, pageSize: Int, callback: @escaping AUIRoomListCallback)
func getRoomInfoList(lastCreateTime: Int64, pageSize: Int, callback: @escaping AUIRoomListCallback)

/// Description 修改房间公告
/// - Parameters:
Expand Down

0 comments on commit 04b6622

Please sign in to comment.