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
1976501a
Commit
1976501a
authored
Jan 14, 2025
by
DavidHuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iOS16 以下 可旋转
parent
fbd2324b
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
36 additions
and
100 deletions
+36
-100
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+24
-12
YHBaseViewController.swift
galaxy/galaxy/Classes/Base/C/YHBaseViewController.swift
+0
-8
YHNavigationController.swift
galaxy/galaxy/Classes/Base/C/YHNavigationController.swift
+0
-8
YHTabBarViewController.swift
galaxy/galaxy/Classes/Base/C/YHTabBarViewController.swift
+0
-8
YHBasePlayerViewController.swift
.../LivestreamSales(直播销售)/C/YHBasePlayerViewController.swift
+0
-11
YHLiveAppointmentViewController.swift
...streamSales(直播销售)/C/YHLiveAppointmentViewController.swift
+0
-11
YHLivePlayerViewController.swift
.../LivestreamSales(直播销售)/C/YHLivePlayerViewController.swift
+12
-18
YHLiveStateViewController.swift
...s/LivestreamSales(直播销售)/C/YHLiveStateViewController.swift
+0
-7
YHMessageInputViewController.swift
...ivestreamSales(直播销售)/C/YHMessageInputViewController.swift
+0
-7
YHVODPlayerViewController.swift
...s/LivestreamSales(直播销售)/C/YHVODPlayerViewController.swift
+0
-10
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
1976501a
...
...
@@ -8029,9 +8029,11 @@
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS
=
YES
;
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyTestEnv.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Manual
;
CURRENT_PROJECT_VERSION
=
1
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
""
;
"DEVELOPMENT_TEAM[sdk=iphoneos*]"
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
...
...
@@ -8049,7 +8051,7 @@
INFOPLIST_KEY_NSPhotoLibraryUsageDescription
=
"APP需要您的同意,才能访问相册进行选择照片上传来完成信息填写,如禁止将无法上传选定图片,会影响资料提交效率。"
;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents
=
YES
;
INFOPLIST_KEY_UILaunchStoryboardName
=
"Launch Screen.storyboard"
;
INFOPLIST_KEY_UISupportedInterfaceOrientations
=
"UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait"
;
INFOPLIST_KEY_UISupportedInterfaceOrientations
=
UIInterfaceOrientationPortrait
;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad
=
"UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait"
;
INFOPLIST_KEY_UIUserInterfaceStyle
=
Light
;
IPHONEOS_DEPLOYMENT_TARGET
=
13.0
;
...
...
@@ -8061,6 +8063,7 @@
PRODUCT_BUNDLE_IDENTIFIER
=
com.intelligence.galaxy
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]"
=
com.dev.profile
;
SWIFT_ACTIVE_COMPILATION_CONDITIONS
=
TESTENV
;
SWIFT_EMIT_LOC_STRINGS
=
YES
;
SWIFT_OBJC_BRIDGING_HEADER
=
"$(SRCROOT)/$(TARGET_NAME)/Res/galaxy-Bridge-Header.h"
;
...
...
@@ -8175,9 +8178,11 @@
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS
=
YES
;
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Manual
;
CURRENT_PROJECT_VERSION
=
1
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
""
;
"DEVELOPMENT_TEAM[sdk=iphoneos*]"
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
...
...
@@ -8195,7 +8200,7 @@
INFOPLIST_KEY_NSPhotoLibraryUsageDescription
=
"APP需要您的同意,才能访问相册进行选择照片上传来完成信息填写,如禁止将无法上传选定图片,会影响资料提交效率。"
;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents
=
YES
;
INFOPLIST_KEY_UILaunchStoryboardName
=
"Launch Screen.storyboard"
;
INFOPLIST_KEY_UISupportedInterfaceOrientations
=
"UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait"
;
INFOPLIST_KEY_UISupportedInterfaceOrientations
=
UIInterfaceOrientationPortrait
;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad
=
"UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait"
;
INFOPLIST_KEY_UIUserInterfaceStyle
=
Light
;
IPHONEOS_DEPLOYMENT_TARGET
=
13.0
;
...
...
@@ -8207,6 +8212,7 @@
PRODUCT_BUNDLE_IDENTIFIER
=
com.intelligence.galaxy
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]"
=
com.dev.profile
;
SWIFT_ACTIVE_COMPILATION_CONDITIONS
=
UATENV
;
SWIFT_EMIT_LOC_STRINGS
=
YES
;
SWIFT_OBJC_BRIDGING_HEADER
=
"$(SRCROOT)/$(TARGET_NAME)/Res/galaxy-Bridge-Header.h"
;
...
...
@@ -8383,9 +8389,11 @@
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS
=
YES
;
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyDebug.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Manual
;
CURRENT_PROJECT_VERSION
=
1
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
""
;
"DEVELOPMENT_TEAM[sdk=iphoneos*]"
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
...
...
@@ -8403,7 +8411,7 @@
INFOPLIST_KEY_NSPhotoLibraryUsageDescription
=
"APP需要您的同意,才能访问相册进行选择照片上传来完成信息填写,如禁止将无法上传选定图片,会影响资料提交效率。"
;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents
=
YES
;
INFOPLIST_KEY_UILaunchStoryboardName
=
"Launch Screen.storyboard"
;
INFOPLIST_KEY_UISupportedInterfaceOrientations
=
"UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait"
;
INFOPLIST_KEY_UISupportedInterfaceOrientations
=
UIInterfaceOrientationPortrait
;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad
=
"UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait"
;
INFOPLIST_KEY_UIUserInterfaceStyle
=
Light
;
IPHONEOS_DEPLOYMENT_TARGET
=
13.0
;
...
...
@@ -8415,6 +8423,7 @@
PRODUCT_BUNDLE_IDENTIFIER
=
com.intelligence.galaxy
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]"
=
com.dev.profile
;
SWIFT_EMIT_LOC_STRINGS
=
YES
;
SWIFT_OBJC_BRIDGING_HEADER
=
"$(SRCROOT)/$(TARGET_NAME)/Res/galaxy-Bridge-Header.h"
;
SWIFT_VERSION
=
5.0
;
...
...
@@ -8431,9 +8440,11 @@
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS
=
YES
;
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Manual
;
CURRENT_PROJECT_VERSION
=
1
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
""
;
"DEVELOPMENT_TEAM[sdk=iphoneos*]"
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
...
...
@@ -8451,7 +8462,7 @@
INFOPLIST_KEY_NSPhotoLibraryUsageDescription
=
"APP需要您的同意,才能访问相册进行选择照片上传来完成信息填写,如禁止将无法上传选定图片,会影响资料提交效率。"
;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents
=
YES
;
INFOPLIST_KEY_UILaunchStoryboardName
=
"Launch Screen.storyboard"
;
INFOPLIST_KEY_UISupportedInterfaceOrientations
=
"UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait"
;
INFOPLIST_KEY_UISupportedInterfaceOrientations
=
UIInterfaceOrientationPortrait
;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad
=
"UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait"
;
INFOPLIST_KEY_UIUserInterfaceStyle
=
Light
;
IPHONEOS_DEPLOYMENT_TARGET
=
13.0
;
...
...
@@ -8463,6 +8474,7 @@
PRODUCT_BUNDLE_IDENTIFIER
=
com.intelligence.galaxy
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]"
=
com.dev.profile
;
SWIFT_EMIT_LOC_STRINGS
=
YES
;
SWIFT_OBJC_BRIDGING_HEADER
=
"$(SRCROOT)/$(TARGET_NAME)/Res/galaxy-Bridge-Header.h"
;
SWIFT_VERSION
=
5.0
;
...
...
galaxy/galaxy/Classes/Base/C/YHBaseViewController.swift
View file @
1976501a
...
...
@@ -35,14 +35,6 @@ class YHBaseViewController: UIViewController {
}
}
override
var
shouldAutorotate
:
Bool
{
return
false
}
override
var
supportedInterfaceOrientations
:
UIInterfaceOrientationMask
{
return
[
.
portrait
,
.
landscapeLeft
,
.
landscapeRight
]
}
override
var
prefersStatusBarHidden
:
Bool
{
return
self
.
gk_statusBarHidden
}
...
...
galaxy/galaxy/Classes/Base/C/YHNavigationController.swift
View file @
1976501a
...
...
@@ -20,14 +20,6 @@ class YHNavigationController: UINavigationController {
}
super
.
pushViewController
(
viewController
,
animated
:
animated
)
}
override
var
shouldAutorotate
:
Bool
{
return
false
}
override
var
supportedInterfaceOrientations
:
UIInterfaceOrientationMask
{
return
[
.
portrait
,
.
landscapeLeft
,
.
landscapeRight
]
}
}
//extension YHNavigationController: UIGestureRecognizerDelegate {
...
...
galaxy/galaxy/Classes/Base/C/YHTabBarViewController.swift
View file @
1976501a
...
...
@@ -26,14 +26,6 @@ class YHTabBarViewController: ESTabBarController {
private
var
shareModel
:
TabBarShareModel
?
override
var
shouldAutorotate
:
Bool
{
return
false
}
override
var
supportedInterfaceOrientations
:
UIInterfaceOrientationMask
{
return
[
.
portrait
,
.
landscapeLeft
,
.
landscapeRight
]
}
override
func
viewDidLayoutSubviews
()
{
super
.
viewDidLayoutSubviews
()
...
...
galaxy/galaxy/Classes/Modules/LivestreamSales(直播销售)/C/YHBasePlayerViewController.swift
View file @
1976501a
...
...
@@ -89,14 +89,3 @@ class YHBasePlayerViewController: YHBaseViewController {
}
}
}
// MARK: - Orientation Support
extension
YHBasePlayerViewController
{
override
var
shouldAutorotate
:
Bool
{
return
false
}
override
var
supportedInterfaceOrientations
:
UIInterfaceOrientationMask
{
return
[
.
portrait
,
.
landscapeLeft
,
.
landscapeRight
]
}
}
galaxy/galaxy/Classes/Modules/LivestreamSales(直播销售)/C/YHLiveAppointmentViewController.swift
View file @
1976501a
...
...
@@ -11,17 +11,6 @@ import UIKit
class
YHLiveAppointmentViewController
:
YHBaseViewController
{
private
let
viewModel
=
YHLiveSalesViewModel
()
private
var
liveInfo
:
YHShareLiveInfoModel
?
override
var
shouldAutorotate
:
Bool
{
return
false
}
override
var
supportedInterfaceOrientations
:
UIInterfaceOrientationMask
{
return
.
allButUpsideDown
}
override
var
preferredInterfaceOrientationForPresentation
:
UIInterfaceOrientation
{
return
.
portrait
}
private
lazy
var
topImageView
:
UIImageView
=
{
let
view
=
UIImageView
()
view
.
contentMode
=
.
scaleAspectFit
...
...
galaxy/galaxy/Classes/Modules/LivestreamSales(直播销售)/C/YHLivePlayerViewController.swift
View file @
1976501a
...
...
@@ -34,15 +34,6 @@ class YHLivePlayerViewController: YHBasePlayerViewController {
// 手势初始状态记录
private
var
originalX
:
CGFloat
=
0
private
var
isMessageListHidden
=
false
//默认展示
override
var
shouldAutorotate
:
Bool
{
return
false
}
override
var
supportedInterfaceOrientations
:
UIInterfaceOrientationMask
{
return
[
.
portrait
,
.
landscapeLeft
,
.
landscapeRight
]
}
private
lazy
var
bottomInputBar
:
YHInputBottomBar
=
{
let
view
=
YHInputBottomBar
()
view
.
textViewTappedEvent
=
{
[
weak
self
]
in
...
...
@@ -193,6 +184,9 @@ class YHLivePlayerViewController: YHBasePlayerViewController {
quitChatRoom
()
cancelTimer
()
}
// MARK: - Setup
...
...
@@ -979,9 +973,9 @@ extension YHLivePlayerViewController {
if
#available(iOS 16.0, *)
{
windowScene
.
requestGeometryUpdate
(
.
iOS
(
interfaceOrientations
:
orientationMask
))
}
else
{
//
let orientation: UIInterfaceOrientation = orientationMask == .portrait ? .portrait : .landscapeRight
//
UIDevice.current.setValue(orientation.rawValue, forKey: "orientation")
//
UIViewController.attemptRotationToDeviceOrientation()
let
orientation
:
UIInterfaceOrientation
=
orientationMask
==
.
portrait
?
.
portrait
:
.
landscapeRight
UIDevice
.
current
.
setValue
(
orientation
.
rawValue
,
forKey
:
"orientation"
)
UIViewController
.
attemptRotationToDeviceOrientation
()
}
}
...
...
@@ -992,9 +986,9 @@ extension YHLivePlayerViewController {
if
#available(iOS 16.0, *)
{
windowScene
.
requestGeometryUpdate
(
.
iOS
(
interfaceOrientations
:
orientationMask
))
}
else
{
//
let orientation: UIInterfaceOrientation = .portrait
//
UIDevice.current.setValue(orientation.rawValue, forKey: "orientation")
//
UIViewController.attemptRotationToDeviceOrientation()
let
orientation
:
UIInterfaceOrientation
=
.
portrait
UIDevice
.
current
.
setValue
(
orientation
.
rawValue
,
forKey
:
"orientation"
)
UIViewController
.
attemptRotationToDeviceOrientation
()
}
bottomInputBar
.
isHidden
=
false
messageListView
.
isHidden
=
false
...
...
@@ -1010,9 +1004,9 @@ extension YHLivePlayerViewController {
if
#available(iOS 16.0, *)
{
windowScene
.
requestGeometryUpdate
(
.
iOS
(
interfaceOrientations
:
orientationMask
))
}
else
{
//
let orientation: UIInterfaceOrientation = .landscapeRight
//
UIDevice.current.setValue(orientation.rawValue, forKey: "orientation")
//
UIViewController.attemptRotationToDeviceOrientation()
let
orientation
:
UIInterfaceOrientation
=
.
landscapeRight
UIDevice
.
current
.
setValue
(
orientation
.
rawValue
,
forKey
:
"orientation"
)
UIViewController
.
attemptRotationToDeviceOrientation
()
}
bottomInputBar
.
isHidden
=
true
messageListView
.
isHidden
=
true
...
...
galaxy/galaxy/Classes/Modules/LivestreamSales(直播销售)/C/YHLiveStateViewController.swift
View file @
1976501a
...
...
@@ -29,13 +29,6 @@ class YHLiveStateViewController: YHBaseViewController {
var
messageLabel
:
UILabel
!
var
getCodeButton
:
UIButton
!
var
state
:
YHLiveState
=
.
start
override
var
shouldAutorotate
:
Bool
{
return
false
}
override
var
supportedInterfaceOrientations
:
UIInterfaceOrientationMask
{
return
.
allButUpsideDown
}
override
var
preferredInterfaceOrientationForPresentation
:
UIInterfaceOrientation
{
return
.
portrait
...
...
galaxy/galaxy/Classes/Modules/LivestreamSales(直播销售)/C/YHMessageInputViewController.swift
View file @
1976501a
...
...
@@ -23,13 +23,6 @@ class YHMessageInputViewController: UIViewController {
var
inputCallback
:
((
YHMessageInputViewController
,
String
)
->
Void
)?
var
closeCallback
:
(()
->
Void
)?
override
var
shouldAutorotate
:
Bool
{
return
false
}
override
var
supportedInterfaceOrientations
:
UIInterfaceOrientationMask
{
return
.
allButUpsideDown
}
override
var
preferredInterfaceOrientationForPresentation
:
UIInterfaceOrientation
{
return
.
portrait
...
...
galaxy/galaxy/Classes/Modules/LivestreamSales(直播销售)/C/YHVODPlayerViewController.swift
View file @
1976501a
...
...
@@ -16,17 +16,7 @@ class YHVODPlayerViewController: YHBasePlayerViewController {
var
startPosition
:
Int
=
0
private
let
viewModel
=
YHLiveSalesViewModel
()
private
var
goodsListView
:
YHLiveShopView
?
override
var
shouldAutorotate
:
Bool
{
return
false
}
override
var
supportedInterfaceOrientations
:
UIInterfaceOrientationMask
{
return
.
allButUpsideDown
}
override
var
preferredInterfaceOrientationForPresentation
:
UIInterfaceOrientation
{
return
.
portrait
}
private
lazy
var
progressControl
:
YHVideoProgressControl
=
{
let
view
=
YHVideoProgressControl
()
return
view
...
...
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