Skip to content

Commit

Permalink
v10.5.1 (#415)
Browse files Browse the repository at this point in the history
* add sample code

* update Podfile

* fix NEMapKit.podspec

* update Podfile

* update NETeamUIKit.podspec
  • Loading branch information
zsw666 authored Dec 26, 2024
1 parent aa770bc commit 1d63a7c
Show file tree
Hide file tree
Showing 207 changed files with 960 additions and 1,025 deletions.
80 changes: 32 additions & 48 deletions IMUIKitOC/IMUIKitOCExample/Podfile
Original file line number Diff line number Diff line change
@@ -1,73 +1,57 @@
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

# 引入配置文件
require_relative "../../../PodConfigs/config_third.rb"
require_relative "../../../PodConfigs/config_local_common.rb"
require_relative "../../../PodConfigs/config_local_core.rb"
require_relative "../../../PodConfigs/config_local_im.rb"
require_relative "../../../PodConfigs/config_local_room.rb"
require_relative "../../../PodConfigs/config_local_social.rb"

platform :ios, '12.0'
platform :ios, '12.0'
source 'https://github.com/CocoaPods/Specs.git'

# XKit工程的podspec引用采用源码的环境变量
ENV["USE_SOURCE_FILES"] = "true"

target 'IMUIKitOCExample' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

#登录组件
pod 'YXLogin', '1.1.0'

#可选UI库
# pod 'NEContactUIKit', '9.6.5'
# pod 'NEQChatUIKit', '9.6.5'
# pod 'NEConversationUIKit', '9.6.5'
# pod 'NEChatUIKit', '9.6.5'
# pod 'NETeamUIKit', '9.6.5'

# 基础库
pod 'NEChatKit', '10.5.1'

#可选Kit库(和UIKit对应)
# pod 'NEChatKit', '9.6.5'
# UI 组件,依次为通讯录组件、会话列表组件、会话(聊天)组件、群相关设置组件
pod 'NEChatUIKit', '10.5.1'
pod 'NEContactUIKit', '10.5.1'
pod 'NEConversationUIKit', '10.5.1'
pod 'NETeamUIKit', '10.5.1'


#基础kit库
# pod 'NECommonUIKit', '9.6.5'
# pod 'NECommonKit', '9.6.5'
# pod 'NECoreIMKit', '9.6.5'
# pod 'NECoreKit', '9.6.5'
# pod 'NEMapKit', '9.6.5'
# 扩展库 - 地理位置组件
pod 'NEMapKit', '10.5.1'

pod NIMSDK.name, NIMSDK.version2
# 扩展库 - AI 划词搜索
pod 'NEAISearchKit', '1.0.4'

pod 'NECoreKit', :path => '../../../CoreKit/NECoreKit/NECoreKit.podspec'
pod 'NECoreIM2Kit', :path => '../../../CoreKit/NECoreIM2Kit/NECoreIM2Kit.podspec'
pod 'NECommonKit', :path => '../../../Common/NECommonKit/NECommonKit.podspec'
pod 'NECommonUIKit', :path => '../../../Common/NECommonUIKit/NECommonUIKit.podspec'
pod 'NEChatKit', :path => '../../NEChatKit/NEChatKit.podspec'
pod 'NEChatUIKit', :path => '../../NEChatUIKit/NEChatUIKit.podspec'
pod 'NEContactUIKit', :path => '../../NEContactUIKit/NEContactUIKit.podspec'
pod 'NEConversationUIKit', :path => '../../NEConversationUIKit/NEConversationUIKit.podspec'
pod 'NETeamUIKit', :path => '../../NETeamUIKit/NETeamUIKit.podspec'
pod 'NEMapKit', :path => '../../NEMapKit/NEMapKit.podspec'
# 扩展库 - 呼叫组件
pod 'NERtcCallKit/NOS_Special', '3.1.0'
pod 'NERtcCallUIKit/NOS_Special', '3.1.0'

# 扩展库,依次为 RTC 音视频基础组件、RTC 音视频神经网络组件(使用背景虚化功能需要集成)、RTC 音视频背景分割组件(使用背景虚化功能需要集成)
pod 'NERtcSDK/RtcBasic', '5.6.33'
pod 'NERtcSDK/Nenn'
pod 'NERtcSDK/Segment'



# 如果需要查看UI部分源码请注释掉以上在线依赖,打开下面的本地依赖
# pod 'NEQChatUIKit', :path => '../NEQChatUIKit/NEQChatUIKit.podspec'
# pod 'NEContactUIKit', :path => '../NEContactUIKit/NEContactUIKit.podspec'
# pod 'NEConversationUIKit', :path => '../NEConversationUIKit/NEConversationUIKit.podspec'
# pod 'NETeamUIKit', :path => '../NETeamUIKit/NETeamUIKit.podspec'
# pod 'NEChatUIKit', :path => '../NEChatUIKit/NEChatUIKit.podspec'
# pod 'NEContactUIKit', :path => 'NEContactUIKit/NEContactUIKit.podspec'
# pod 'NEConversationUIKit', :path => 'NEConversationUIKit/NEConversationUIKit.podspec'
# pod 'NETeamUIKit', :path => 'NETeamUIKit/NETeamUIKit.podspec'
# pod 'NEChatUIKit', :path => 'NEChatUIKit/NEChatUIKit.podspec'
# pod 'NEMapKit', :path => 'NEMapKit/NEMapKit.podspec'
# pod 'NEAISearchKit', :path => 'NEAISearchKit/NEAISearchKit.podspec'
# pod 'NERtcCallUIKit', :path => 'NERtcCallUIKit/NERtcCallUIKit.podspec'


end

# ⚠️如果pod依赖报错,可打开以下注释
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"] = "12.0"
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
end
end
end
4 changes: 2 additions & 2 deletions NEChatUIKit/NEChatUIKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = 'NEChatUIKit'
s.version = '10.5.0'
s.version = '10.5.1'
s.summary = 'Chat Module of IM.'

# This description is used to generate tags and improve search results.
Expand All @@ -43,7 +43,7 @@ TODO: Add long description of the pod here.

s.resource = 'NEChatUIKit/Assets/**/*'
s.dependency 'NEChatKit'
s.dependency 'NECommonUIKit', '9.7.4'
s.dependency 'NECommonUIKit'
s.dependency 'MJRefresh'
s.dependency 'SDWebImageWebPCoder'
s.dependency 'SDWebImageSVGKitPlugin'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"team_all_mute"="Mute everyone";
"team_all_no_mute"="Unmute all";

"pin_text"="Pinned by ";
"pin_text"="Pinned by %@";

"top_message"="Top Message";
"untop_message"="Untop Message";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"team_mute"="当前群主设置为禁言";
"team_all_mute"="群禁言已开启";
"team_all_no_mute"="群禁言已关闭";
"pin_text"="标记了这条信息";
"pin_text"="%@标记了这条信息";
"top_message"="置顶了一条消息";
"untop_message"="移除了置顶消息";
"chat_setting"="聊天设置";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import UIKit
open class ChatCenterTextCell: ChatCornerCell {
public var titleLabel: UILabel = .init()
public var line = UIView()
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
override public init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)

titleLabel.font = UIFont.systemFont(ofSize: 16)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ open class ChatHeaderView: UIView {
return label
}()

override init(frame: CGRect) {
override public init(frame: CGRect) {
super.init(frame: frame)
setupUI()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import UIKit
@objcMembers
open class ChatSectionView: UITableViewHeaderFooterView {
public var titleLabel = UILabel()
override init(reuseIdentifier: String?) {
override public init(reuseIdentifier: String?) {
super.init(reuseIdentifier: reuseIdentifier)
commonUI()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ open class ChatStateCell: ChatCornerCell {
}
}

override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
override public init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
setupUI()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import UIKit

@objcMembers
open class ChatTextArrowCell: ChatTextCell {
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
override public init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
rightStyle = .indicate
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ open class ChatTextCell: ChatStateCell {

var detailRightMargin: NSLayoutConstraint?

override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
override public init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ open class ChatUnfoldCell: ChatCornerCell {
return label
}()

override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
override public init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
setupUI()
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class NEChatLoaderService: NSObject {

/// 初始化方法
/// 此方法会在模块被加载时调用
public func setupInit() {
open func setupInit() {
ChatKitClient.shared.registerInit(NEChatService.shared)
}
}
6 changes: 3 additions & 3 deletions NEChatUIKit/NEChatUIKit/Classes/Base/NEChatService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ public class NEChatService: NSObject, ChatServiceDelegate, NEChatEmojProtocol {

/// 注册 NEChatUIKit 初始化协议
/// - Parameter params: 初始化参数
public func setupInit(_ params: [String: Any]?) {
open func setupInit(_ params: [String: Any]?) {
registerRouter(params)
}

/// 注册路由
/// - Parameter param: 参数
public func registerRouter(_ param: [String: Any]?) {
open func registerRouter(_ param: [String: Any]?) {
if let isFun = param?["isFun"] as? Bool, isFun {
ChatRouter.registerFun()
} else {
Expand All @@ -42,7 +42,7 @@ public class NEChatService: NSObject, ChatServiceDelegate, NEChatEmojProtocol {
NEChatKitClient.instance.addEmojDelegate(self)
}

public func getEmojAttributeString(_ content: String, _ font: CGFloat) -> NSAttributedString? {
open func getEmojAttributeString(_ content: String, _ font: CGFloat) -> NSAttributedString? {
let attributeStr = NEEmotionTool.getAttWithStr(
str: content,
font: UIFont.systemFont(ofSize: font)
Expand Down
Loading

0 comments on commit 1d63a7c

Please sign in to comment.