Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
0489dc2f
Commit
0489dc2f
authored
Jan 19, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
网易云信SDK
parent
8d71094d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
88 additions
and
2 deletions
+88
-2
Podfile
galaxy/Podfile
+18
-0
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+12
-0
AppDelegate.swift
galaxy/galaxy/AppDelegate.swift
+21
-0
IMAppKey.swift
galaxy/galaxy/Classes/Modules/IM/IMAppKey.swift
+16
-0
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+21
-2
No files found.
galaxy/Podfile
View file @
0489dc2f
...
...
@@ -67,6 +67,24 @@ target 'galaxy' do
pod
'LookinServer'
,
'1.2.6'
,
:subspecs
=>
[
'Swift'
],
:configurations
=>
[
'Debug'
]
#阿里云OOS
pod
'AliyunOSSiOS'
,
'2.10.18'
############# 网易云信 IM相关 start #############
#A 基础Kit库
pod
'NECoreKit'
,
'9.6.5'
pod
'NECoreIMKit'
,
'9.6.5'
pod
'NEChatKit'
,
'9.6.5'
pod
'NECommonKit'
,
'9.6.4'
pod
'NECommonUIKit'
,
'9.6.5'
pod
'NIMSDK_LITE'
,
'9.14.0'
#B UI组件,依次为通讯录组件、会话列表组件、会话(聊天)组件、群相关设置组件
pod
'NEContactUIKit'
,
'9.6.5'
pod
'NEConversationUIKit'
,
'9.6.5'
pod
'NEChatUIKit'
,
'9.6.5'
pod
'NETeamUIKit'
,
'9.6.5'
############# 网易云信 IM相关 end #############
end
...
...
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
0489dc2f
...
...
@@ -7,6 +7,7 @@
objects
=
{
/* Begin PBXBuildFile section */
041B52872B5657B3007EBCEB
/* IMAppKey.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52862B5657B3007EBCEB
/* IMAppKey.swift */
;
};
0468D4202B49320900CFB916
/* YHVerificationCodeLoginController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D41F2B49320900CFB916
/* YHVerificationCodeLoginController.swift */
;
};
0468D4222B493A5E00CFB916
/* YHPhoneMessageView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D4212B493A5E00CFB916
/* YHPhoneMessageView.swift */
;
};
0468D4242B494BEA00CFB916
/* YHCodeResultViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D4232B494BEA00CFB916
/* YHCodeResultViewController.swift */
;
};
...
...
@@ -128,6 +129,7 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
041B52862B5657B3007EBCEB
/* IMAppKey.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
IMAppKey.swift
;
sourceTree
=
"<group>"
;
};
0468D41F2B49320900CFB916
/* YHVerificationCodeLoginController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHVerificationCodeLoginController.swift
;
sourceTree
=
"<group>"
;
};
0468D4212B493A5E00CFB916
/* YHPhoneMessageView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPhoneMessageView.swift
;
sourceTree
=
"<group>"
;
};
0468D4232B494BEA00CFB916
/* YHCodeResultViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCodeResultViewController.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -253,6 +255,14 @@
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
041B52852B565798007EBCEB
/* IM */
=
{
isa
=
PBXGroup
;
children
=
(
041B52862B5657B3007EBCEB
/* IMAppKey.swift */
,
);
path
=
IM
;
sourceTree
=
"<group>"
;
};
0468D4292B55017400CFB916
/* Analytics */
=
{
isa
=
PBXGroup
;
children
=
(
...
...
@@ -583,6 +593,7 @@
A5ACE91B2B4564F7002C94D2
/* Modules */
=
{
isa
=
PBXGroup
;
children
=
(
041B52852B565798007EBCEB
/* IM */
,
A5ACE9592B457113002C94D2
/* Home(首页) */
,
A5ACE8D82B4564F7002C94D2
/* Login(登录) */
,
A5ACE9162B4564F7002C94D2
/* IntelligentService(智慧服务) */
,
...
...
@@ -914,6 +925,7 @@
A5ACE9492B4564F7002C94D2
/* BsHUDSuccessView.swift in Sources */
,
A5ACE9432B4564F7002C94D2
/* UILable+Extension.swift in Sources */
,
A5ACE9382B4564F7002C94D2
/* UIApplication+Extension.swift in Sources */
,
041B52872B5657B3007EBCEB
/* IMAppKey.swift in Sources */
,
0468D42B2B55019900CFB916
/* YHAnalytics.swift in Sources */
,
A5ACE93C2B4564F7002C94D2
/* UIColor+Extension.swift in Sources */
,
A5C5B2EA2B4ECA4D00A7C5D1
/* YHDavidModel0.swift in Sources */
,
...
...
galaxy/galaxy/AppDelegate.swift
View file @
0489dc2f
...
...
@@ -12,6 +12,15 @@ import SmartCodable
import
GKNavigationBarSwift
import
DeviceKit
import
NIMSDK
import
NECoreKit
import
NECoreIMKit
import
NEChatKit
import
NEChatUIKit
import
NEConversationUIKit
import
NETeamUIKit
import
NEChatUIKit
@main
class
AppDelegate
:
UIResponder
,
UIApplicationDelegate
{
var
window
:
UIWindow
?
...
...
@@ -45,6 +54,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
func
setupNavBar
()
{
GKConfigure
.
setupDefault
()
}
}
...
...
@@ -143,6 +153,17 @@ extension AppDelegate {
window
?
.
rootViewController
=
tabBarController
window
?
.
makeKeyAndVisible
()
}
// 网银云信IM相关配置
private
func
configIM
()
{
let
option
=
NIMSDKOption
()
option
.
appKey
=
IMAppKey
.
appKey
option
.
apnsCername
=
"云信控制台配置的 APNS 推送证书名称"
option
.
pkCername
=
"云信控制台配置的 PushKit 推送证书名称"
IMKitClient
.
instance
.
setupCoreKitIM
(
option
)
let
_
=
NEAtMessageManager
.
instance
}
}
galaxy/galaxy/Classes/Modules/IM/IMAppKey.swift
0 → 100644
View file @
0489dc2f
// Copyright (c) 2022 NetEase, Inc. All rights reserved.
// Use of this source code is governed by a MIT license that can be
// found in the LICENSE file.
public
struct
IMAppKey
{
#if DEBUG
public
static
let
pushCerName
=
"<#请输入推送证书#>"
public
static
let
appKey
=
"4b1476de1da52e0e73c12833d8c3c782"
public
static
let
gaodeMapAppkey
=
"<#输入高德地图key#>"
#else
public
static
let
pushCerName
=
"<#请输入推送证书#>"
public
static
let
appKey
=
"4b1476de1da52e0e73c12833d8c3c782"
public
static
let
gaodeMapAppkey
=
"<#输入高德地图key#>"
#endif
}
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
0489dc2f
...
...
@@ -7,6 +7,7 @@
import
UIKit
import
SnapKit
import
NEConversationUIKit
struct
PersonalModuleItem
{
var
icon
:
String
...
...
@@ -129,8 +130,26 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
let
item
:
PersonalModuleItem
=
items
[
indexPath
.
row
];
if
item
.
title
==
"关于我们"
{
let
vc
=
YHAboutUsViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
)
let
vc
=
YHAboutUsViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
)
}
else
if
item
.
title
==
"我的设置"
{
let
account
=
"duyu"
let
token
=
"123456"
let
vc
=
ConversationController
()
self
.
navigationController
?
.
pushViewController
(
vc
)
IMKitClient
.
instance
.
loginIM
(
account
,
token
)
{
error
in
if
let
err
=
error
{
print
(
"login error in app : "
,
err
.
localizedDescription
)
}
else
{
let
_
=
NEAtMessageManager
.
instance
}
}
}
else
{
let
vc
=
YHLoginViewController
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment