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
4b4c1816
Commit
4b4c1816
authored
Aug 02, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS
into develop
parents
f500ab85
be776036
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
40 additions
and
28 deletions
+40
-28
Fastfile
galaxy/fastlane/Fastfile
+2
-1
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-4
YHMySettingViewController.swift
...lasses/Modules/Mine(我的)/C/YHMySettingViewController.swift
+0
-6
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+10
-2
YHUatHelper.swift
.../galaxy/Classes/Modules/UatModule(灰度功能)/YHUatHelper.swift
+20
-15
YhConstant.swift
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
+4
-0
No files found.
galaxy/fastlane/Fastfile
View file @
4b4c1816
...
@@ -27,9 +27,10 @@ platform :ios do
...
@@ -27,9 +27,10 @@ platform :ios do
develop_branch = "develop"
develop_branch = "develop"
main_branch = "main"
main_branch = "main"
youhua_branch = "youhua-dev"
youhua_branch = "youhua-dev"
uat = "uat"
#打包正使用的分支
#打包正使用的分支
myPack_branch =
youhua_branch
myPack_branch =
uat
# 打adhoc包 执行命令 fastlane galaxyTest
# 打adhoc包 执行命令 fastlane galaxyTest
lane :galaxyTest do
lane :galaxyTest do
...
...
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
4b4c1816
...
@@ -4154,7 +4154,7 @@
...
@@ -4154,7 +4154,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyTestEnv.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyTestEnv.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
1
;
CURRENT_PROJECT_VERSION
=
2
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
...
@@ -4295,7 +4295,7 @@
...
@@ -4295,7 +4295,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
1
;
CURRENT_PROJECT_VERSION
=
2
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
...
@@ -4499,7 +4499,7 @@
...
@@ -4499,7 +4499,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyDebug.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyDebug.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
1
;
CURRENT_PROJECT_VERSION
=
2
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
...
@@ -4545,7 +4545,7 @@
...
@@ -4545,7 +4545,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
1
;
CURRENT_PROJECT_VERSION
=
2
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMySettingViewController.swift
View file @
4b4c1816
...
@@ -157,12 +157,6 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
...
@@ -157,12 +157,6 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
}
}
@objc
func
didLogoutBtnClicked
()
{
@objc
func
didLogoutBtnClicked
()
{
//灰度规则配置
YHUatHelper
.
shared
.
loadUatData
()
YHCommonAlertView
.
show
(
""
,
"您确定要退出登录吗?"
,
"取消"
,
"确定"
,
fullGuestureEnable
:
false
)
{
YHCommonAlertView
.
show
(
""
,
"您确定要退出登录吗?"
,
"取消"
,
"确定"
,
fullGuestureEnable
:
false
)
{
}
callBack
:
{
}
callBack
:
{
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
4b4c1816
...
@@ -213,6 +213,9 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
...
@@ -213,6 +213,9 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
logoutSuccess
)
,
name
:
YhConstant
.
YhNotification
.
didLogoutSuccessNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
logoutSuccess
)
,
name
:
YhConstant
.
YhNotification
.
didLogoutSuccessNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
clearUnreadBadge
)
,
name
:
YhConstant
.
YhNotification
.
didMarkAllMessagesReadedNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
clearUnreadBadge
)
,
name
:
YhConstant
.
YhNotification
.
didMarkAllMessagesReadedNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
didRevUatParam
)
,
name
:
YhConstant
.
YhNotification
.
didRevUatParam
,
object
:
nil
)
}
}
deinit
{
deinit
{
...
@@ -247,6 +250,11 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
...
@@ -247,6 +250,11 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
}
}
}
}
@objc
func
didRevUatParam
()
{
loadItems
()
}
@objc
func
clearUnreadBadge
()
{
@objc
func
clearUnreadBadge
()
{
DispatchQueue
.
main
.
async
{
DispatchQueue
.
main
.
async
{
for
item
in
self
.
items
{
for
item
in
self
.
items
{
...
@@ -279,7 +287,7 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
...
@@ -279,7 +287,7 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
items
.
append
(
item
)
items
.
append
(
item
)
}
}
if
YHUatHelper
.
shared
.
getUatModuleStatusBy
(
module
:
YHUatModules
(
rawValue
:
2
))
==
1
{
if
YHUatHelper
.
shared
.
getUatModuleStatusBy
(
module
:
YHUatModules
(
rawValue
:
3
))
==
1
{
let
item
=
PersonalModuleItem
(
icon
:
"mine_item_code"
,
title
:
"我的测评码"
.
local
,
type
:
.
myTestCode
)
let
item
=
PersonalModuleItem
(
icon
:
"mine_item_code"
,
title
:
"我的测评码"
.
local
,
type
:
.
myTestCode
)
items
.
append
(
item
)
items
.
append
(
item
)
}
}
...
@@ -295,7 +303,7 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
...
@@ -295,7 +303,7 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
items
.
append
(
item
)
items
.
append
(
item
)
}
}
if
YHUatHelper
.
shared
.
getUatModuleStatusBy
(
module
:
YHUatModules
(
rawValue
:
5
))
==
1
{
if
YHUatHelper
.
shared
.
getUatModuleStatusBy
(
module
:
YHUatModules
(
rawValue
:
6
))
==
1
{
let
item
=
PersonalModuleItem
(
icon
:
"mine_item_about_us"
,
title
:
"关于我们"
.
local
,
type
:
.
aboutUs
)
let
item
=
PersonalModuleItem
(
icon
:
"mine_item_about_us"
,
title
:
"关于我们"
.
local
,
type
:
.
aboutUs
)
items
.
append
(
item
)
items
.
append
(
item
)
}
}
...
...
galaxy/galaxy/Classes/Modules/UatModule(灰度功能)/YHUatHelper.swift
View file @
4b4c1816
...
@@ -7,20 +7,6 @@
...
@@ -7,20 +7,6 @@
//
//
import
Foundation
import
Foundation
extension
Int
{
// //1-可见 2-不可见 3-新界面
// var uatValue : Bool {
// if self == 1 {
// return true
// } else if self == 2 {
// return false
// }
// return false
// }
}
enum
YHUatModules
:
Int
{
enum
YHUatModules
:
Int
{
/*
/*
默认展示
默认展示
...
@@ -88,11 +74,30 @@ class YHUatHelper: NSObject {
...
@@ -88,11 +74,30 @@ class YHUatHelper: NSObject {
let
vm
=
YHUatHelperViewModel
()
let
vm
=
YHUatHelperViewModel
()
return
vm
return
vm
}()
}()
override
init
()
{
super
.
init
()
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
loginSuccess
)
,
name
:
YhConstant
.
YhNotification
.
didLoginSuccessNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
logoutSuccess
)
,
name
:
YhConstant
.
YhNotification
.
didLogoutSuccessNotifiction
,
object
:
nil
)
}
}
}
// MARK: - 私有方法
// MARK: - 私有方法
private
extension
YHUatHelper
{
private
extension
YHUatHelper
{
@objc
func
loginSuccess
()
{
viewModel
.
isDataOk
=
false
loadUatData
()
}
@objc
func
logoutSuccess
()
{
viewModel
.
dataList
=
nil
}
}
}
// MARK: - 公有方法
// MARK: - 公有方法
...
@@ -133,7 +138,7 @@ extension YHUatHelper {
...
@@ -133,7 +138,7 @@ extension YHUatHelper {
if
!
viewModel
.
isDataOk
{
if
!
viewModel
.
isDataOk
{
viewModel
.
getUatList
{
success
,
error
in
viewModel
.
getUatList
{
success
,
error
in
if
success
{
if
success
{
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didRevUatParam
,
object
:
nil
)
}
else
{
}
else
{
}
}
...
...
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
View file @
4b4c1816
...
@@ -266,5 +266,9 @@ extension YhConstant {
...
@@ -266,5 +266,9 @@ extension YhConstant {
// 改变底部tabbar上 分享View的展示状态
// 改变底部tabbar上 分享View的展示状态
public
static
let
changeShareViewStatusOnTabBarNotifiction
=
Notification
.
Name
(
rawValue
:
"com.yinhe.change.shareView.status"
)
public
static
let
changeShareViewStatusOnTabBarNotifiction
=
Notification
.
Name
(
rawValue
:
"com.yinhe.change.shareView.status"
)
//获取灰度参数
public
static
let
didRevUatParam
=
Notification
.
Name
(
rawValue
:
"com.yinhe.didRevUatParam"
)
}
}
}
}
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