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
c090ee4f
Commit
c090ee4f
authored
Aug 30, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接入鸿蒙的 appLink
parent
060ed425
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
124 additions
and
15 deletions
+124
-15
Podfile
galaxy/Podfile
+5
-2
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+18
-0
AppDelegate.swift
galaxy/galaxy/AppDelegate.swift
+29
-3
Info.plist
galaxy/galaxy/Res/Info.plist
+2
-0
agconnect-services.plist
galaxy/galaxy/Res/agconnect-services.plist
+10
-10
galaxy.entitlements
galaxy/galaxy/galaxy.entitlements
+20
-0
galaxyDebug.entitlements
galaxy/galaxy/galaxyDebug.entitlements
+20
-0
galaxyTestEnv.entitlements
galaxy/galaxy/galaxyTestEnv.entitlements
+20
-0
No files found.
galaxy/Podfile
View file @
c090ee4f
...
...
@@ -5,11 +5,14 @@ platform :ios, '13.0'
target
'galaxy'
do
use_frameworks!
#鸿蒙AGC 短链处理相关
pod
'AGConnectCore'
,
'1.9.0.302'
pod
'AGConnectAppLinking'
,
'1.9.0.302'
#日历 多时间选择
pod
'FSCalendar'
,
"2.8.4"
#图片预览
pod
'JXPhotoBrowser'
,
"3.1.4"
pod
'JXPhotoBrowser'
,
'3.1.4'
pod
'SDWebImage'
,
'5.18.10'
#与H5进行交互
...
...
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
c090ee4f
...
...
@@ -4075,6 +4075,7 @@
A5573ECC2B317BFF00D98EC0
/* Resources */
,
0CFB07298194FEC905CE2694
/* [CP] Embed Pods Frameworks */
,
04808C092B4686C10056D53C
/* Embed Frameworks */
,
47BB31035D3DBEB9235AC809
/* [CP] Copy Pods Resources */
,
);
buildRules
=
(
);
...
...
@@ -4238,6 +4239,23 @@
shellScript
=
"\"${PODS_ROOT}/Target Support Files/Pods-galaxy/Pods-galaxy-frameworks.sh\"\n"
;
showEnvVarsInLog
=
0
;
};
47BB31035D3DBEB9235AC809
/* [CP] Copy Pods Resources */
=
{
isa
=
PBXShellScriptBuildPhase
;
buildActionMask
=
2147483647
;
files
=
(
);
inputFileListPaths
=
(
"${PODS_ROOT}/Target Support Files/Pods-galaxy/Pods-galaxy-resources-${CONFIGURATION}-input-files.xcfilelist"
,
);
name
=
"[CP] Copy Pods Resources"
;
outputFileListPaths
=
(
"${PODS_ROOT}/Target Support Files/Pods-galaxy/Pods-galaxy-resources-${CONFIGURATION}-output-files.xcfilelist"
,
);
runOnlyForDeploymentPostprocessing
=
0
;
shellPath
=
/bin/sh
;
shellScript
=
"\"${PODS_ROOT}/Target Support Files/Pods-galaxy/Pods-galaxy-resources.sh\"\n"
;
showEnvVarsInLog
=
0
;
};
7D00420CA535917A84A0A43E
/* [CP] Check Pods Manifest.lock */
=
{
isa
=
PBXShellScriptBuildPhase
;
buildActionMask
=
2147483647
;
...
...
galaxy/galaxy/AppDelegate.swift
View file @
c090ee4f
...
...
@@ -14,6 +14,10 @@ import GKNavigationBarSwift
import
AVFoundation
import
SensorsAnalyticsSDK
import
AGConnectCore
import
AGConnectCredential
import
AGConnectAppLinking
@main
class
AppDelegate
:
UIResponder
,
UIApplicationDelegate
,
WXApiDelegate
{
var
window
:
UIWindow
?
...
...
@@ -63,7 +67,15 @@ class AppDelegate: UIResponder, UIApplicationDelegate, WXApiDelegate {
YHOSSManager
.
share
.
getOSSID
()
//1.设置主窗口
AGCInstance
.
startUp
()
AGCAppLinking
.
instance
()
.
handle
{
(
link
,
error
)
in
let
deepLink
=
link
?
.
deepLink
//TODO: 增加deeplink地址跳转
print
(
deepLink
as
Any
)
}
//设置主窗口
setupRootVC
()
return
true
}
...
...
@@ -76,6 +88,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, WXApiDelegate {
}
func
setupNavBar
()
{
GKConfigure
.
setupDefault
()
}
...
...
@@ -88,12 +102,20 @@ class AppDelegate: UIResponder, UIApplicationDelegate, WXApiDelegate {
return
WXApi
.
handleOpen
(
url
,
delegate
:
self
)
}
// private func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
//
// return isAppLinking
// }
func
application
(
_
application
:
UIApplication
,
continue
userActivity
:
NSUserActivity
,
restorationHandler
:
@escaping
([
UIUserActivityRestoring
]?)
->
Void
)
->
Bool
{
return
WXApi
.
handleOpenUniversalLink
(
userActivity
,
delegate
:
self
)
let
isAppLinking
=
AGCAppLinking
.
instance
()
.
continueUserActivity
(
userActivity
)
return
isAppLinking
==
false
?
WXApi
.
handleOpenUniversalLink
(
userActivity
,
delegate
:
self
)
:
true
}
func
application
(
_
application
:
UIApplication
,
continue
userActivity
:
NSUserActivity
,
restorationHandler
:
@escaping
([
Any
]?)
->
Void
)
->
Bool
{
return
WXApi
.
handleOpenUniversalLink
(
userActivity
,
delegate
:
self
)
let
isAppLinking
=
AGCAppLinking
.
instance
()
.
continueUserActivity
(
userActivity
)
return
isAppLinking
==
false
?
WXApi
.
handleOpenUniversalLink
(
userActivity
,
delegate
:
self
)
:
true
}
func
onResp
(
_
resp
:
BaseResp
)
{
...
...
@@ -126,6 +148,10 @@ extension AppDelegate {
#else
Bugly
.
start
(
withAppId
:
YhConstant
.
Bugly
.
appidForRelease
)
#endif
//3、AGC 短链相关
AGCInstance
.
startUp
()
}
//2.通用全局UI设置相关
...
...
galaxy/galaxy/Res/Info.plist
View file @
c090ee4f
...
...
@@ -2,6 +2,8 @@
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
agc_applinking_not_read_pasteboard
<
/k
e
y
>
<
fa
ls
e
/
>
<
k
e
y
>
CFBundleDocumentTypes
<
/k
e
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
...
...
galaxy/galaxy/Res/agconnect-services.plist
View file @
c090ee4f
...
...
@@ -5,13 +5,13 @@
<
k
e
y
>
code
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
code1
<
/k
e
y
>
<
string
>
C3C2AF9AAD40B4815073667C6478767E
<
/string
>
<
string
>
4D35FD8F9FAFCDA4D1F5F9A35A000B65
<
/string
>
<
k
e
y
>
code2
<
/k
e
y
>
<
string
>
B37BD3F9DBF4B735EB5419FF8CC89CE9
<
/string
>
<
string
>
308C15AD99A2450E04CDA2E5EB6CFD06
<
/string
>
<
k
e
y
>
code3
<
/k
e
y
>
<
string
>
9AE1BDCCC54156BF0DDDB87887F3F952
<
/string
>
<
string
>
D94D246E0B2318D5DB4D97B842A4218D
<
/string
>
<
k
e
y
>
code4
<
/k
e
y
>
<
string
>
8E9923785BC586C1F573623CADA73ABA
<
/string
>
<
string
>
1DFCB5C6BAFD4E59C737454A0B132032
<
/string
>
<
/
d
i
c
t
>
<
k
e
y
>
agcgw
<
/k
e
y
>
<
d
i
c
t
>
...
...
@@ -87,7 +87,7 @@
<
k
e
y
>
client_id
<
/k
e
y
>
<
string
>
1499332091546988928
<
/string
>
<
k
e
y
>
client_secret
<
/k
e
y
>
<
string
>
[!
00
C51DD60BA28DDC51DFFD35540E1B5E9E6DD7602C5E406BB46FD22930A2F92187A380C54AB85C84290DC0C45F6FA35740CE3C4E4170E0D9CA26499078BDA0BEB77FF382F8296AE071BF4C6773DB28BFA4CAF7DF650506F2EECB0DC8F786C3B0A3
]
<
/string
>
<
string
>
[!
00
7A10AA74B49CA7F312022929C6799EF96462CB3BD7C4A3F682EA3D5617FBA70CDADE7DAAC5212C2AD85198F89E6A899F87620270040229A64F5EB4399DD90D71857C96637106D5BAC1EF66CF27120F343A74996AF68C73FBDA965EF7FBFADF0C
]
<
/string
>
<
k
e
y
>
project_id
<
/k
e
y
>
<
string
>
388421841222432706
<
/string
>
<
k
e
y
>
app_id
<
/k
e
y
>
...
...
@@ -165,20 +165,20 @@
<
k
e
y
>
client
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
client_secret
<
/k
e
y
>
<
string
>
[!
00
BA6A249EAF19C5C0308549147FCEE7271C6BCBB03F6617CE3D4E089F134F45E56A9BFA2814BACE291270D40A72C7EEC79F2A936309D27831EB038C9DD6B037CCAEC1DBA185039F20EDD01A3E7644DFC084132D592330D6A69B714BD4FFF1FB8
4
]
<
/string
>
<
string
>
[!
00
E8F5DF6083E559D617D15BC53D19A5F6A6D71ECFA908036B7266490804665BE3807B71CEF31290851C7C9013F64EEEF304EA068DC08B2D71D087AFD97649BE33F9DB2822DF8626CFE053F4D1605E191FF57E6DB096CBAB57ECC228D4E511BA0
4
]
<
/string
>
<
k
e
y
>
app_id
<
/k
e
y
>
<
string
>
172249065903430388
<
/string
>
<
/
d
i
c
t
>
<
k
e
y
>
code
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
code1
<
/k
e
y
>
<
string
>
F0E2C9CAB01DBFB5CC22404A01EF6B931477C4D632B76E501D1C5BA5B802AC34
<
/string
>
<
string
>
7EA4CA97B078601F77CA7D8ECD7ACA2AE35C93247A80D200A2494395ADAE4926
<
/string
>
<
k
e
y
>
code2
<
/k
e
y
>
<
string
>
F7BBABFF2B8CD64B3542A83F2B7F40E0F44458E86FE39616ED634F8A108CC3E6
<
/string
>
<
string
>
7128083AEB5DAEAFFBE89E39E01CBF34A9CCD215A28C4F71385CB99E0CC795B4
<
/string
>
<
k
e
y
>
code3
<
/k
e
y
>
<
string
>
96FE4E8F86C76ECEA0CFD0788D5EE444A513ED4F07B746711760741BD1C3643C
<
/string
>
<
string
>
F4DC9C839978257007D35D61DFC8D43C43691ADBC4BF5F6044EF643BC61069E7
<
/string
>
<
k
e
y
>
code4
<
/k
e
y
>
<
string
>
2EBD28B8A0DD56BEFC22A8F5394782F4
<
/string
>
<
string
>
0FF461F932F8EAD104E27EF65AAC3F75
<
/string
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
...
...
galaxy/galaxy/galaxy.entitlements
View file @
c090ee4f
...
...
@@ -12,6 +12,26 @@
<array>
<string>
webcredentials:www.galaxy-immi.com
</string>
<string>
applinks:www.galaxy-immi.com
</string>
<string>
applinks:davidhuang.drcn.agconnect.link
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
</array>
</dict>
</plist>
galaxy/galaxy/galaxyDebug.entitlements
View file @
c090ee4f
...
...
@@ -12,6 +12,26 @@
<array>
<string>
webcredentials:www.galaxy-immi.com
</string>
<string>
applinks:www.galaxy-immi.com
</string>
<string>
applinks:davidhuang.drcn.agconnect.link
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
</array>
</dict>
</plist>
galaxy/galaxy/galaxyTestEnv.entitlements
View file @
c090ee4f
...
...
@@ -12,6 +12,26 @@
<array>
<string>
webcredentials:www.galaxy-immi.com
</string>
<string>
applinks:www.galaxy-immi.com
</string>
<string>
applinks:davidhuang.drcn.agconnect.link
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
</array>
</dict>
</plist>
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