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
07a4f345
Commit
07a4f345
authored
Oct 22, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// app信息
parent
8a6ad1ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
UIDevice+Extension.swift
...y/galaxy/Classes/Tools/Extention/UIDevice+Extension.swift
+7
-4
No files found.
galaxy/galaxy/Classes/Tools/Extention/UIDevice+Extension.swift
View file @
07a4f345
...
...
@@ -99,8 +99,10 @@ extension UIDevice {
static
func
appVersion
()
->
String
{
let
infoDictionary
=
Bundle
.
main
.
infoDictionary
if
let
infoDictionary
=
infoDictionary
{
let
appVersion
=
infoDictionary
[
"CFBundleShortVersionString"
]
return
appVersion
as!
String
if
let
appVersion
=
infoDictionary
[
"CFBundleShortVersionString"
]
as?
String
{
return
appVersion
}
}
return
" "
}
...
...
@@ -109,8 +111,9 @@ extension UIDevice {
static
func
appBuild
()
->
String
{
let
infoDictionary
=
Bundle
.
main
.
infoDictionary
if
let
infoDictionary
=
infoDictionary
{
let
appBuild
=
infoDictionary
[
"CFBundleVersion"
]
return
appBuild
as!
String
if
let
appBuild
=
infoDictionary
[
"CFBundleVersion"
]
as?
String
{
return
appBuild
}
}
return
" "
}
...
...
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