Skip to content

Commit bcdd4af

Browse files
committed
Add clang ignore deprecations around UIScreen.main
1 parent 042a78b commit bcdd4af

File tree

2 files changed

+12
-0
lines changed
  • SupportSDK.xcframework
    • ios-arm64_x86_64-simulator/SupportSDK.framework/Headers
    • ios-arm64/SupportSDK.framework/Headers

2 files changed

+12
-0
lines changed

SupportSDK.xcframework/ios-arm64/SupportSDK.framework/Headers/ZDKUIUtil.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,10 @@ ZDKUIIsLandscape()
187187
CG_INLINE CGRect
188188
CGRectMakeCenteredInScreen(CGFloat width, CGFloat height)
189189
{
190+
#pragma clang diagnostic push
191+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
190192
CGRect screen = [UIScreen mainScreen].bounds;
193+
#pragma clang diagnostic pop
191194

192195
Boolean isLandscape = ZDKUIIsLandscape();
193196

@@ -243,7 +246,10 @@ CGCenterRectInRect(CGRect rect, CGRect inRect)
243246
CG_INLINE CGRect
244247
ZDKUIScreenFrame()
245248
{
249+
#pragma clang diagnostic push
250+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
246251
CGSize screenSize = [UIScreen mainScreen].bounds.size;
252+
#pragma clang diagnostic pop
247253

248254
CGFloat width = screenSize.width;
249255
CGFloat height = screenSize.height;

SupportSDK.xcframework/ios-arm64_x86_64-simulator/SupportSDK.framework/Headers/ZDKUIUtil.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,10 @@ ZDKUIIsLandscape()
187187
CG_INLINE CGRect
188188
CGRectMakeCenteredInScreen(CGFloat width, CGFloat height)
189189
{
190+
#pragma clang diagnostic push
191+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
190192
CGRect screen = [UIScreen mainScreen].bounds;
193+
#pragma clang diagnostic pop
191194

192195
Boolean isLandscape = ZDKUIIsLandscape();
193196

@@ -243,7 +246,10 @@ CGCenterRectInRect(CGRect rect, CGRect inRect)
243246
CG_INLINE CGRect
244247
ZDKUIScreenFrame()
245248
{
249+
#pragma clang diagnostic push
250+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
246251
CGSize screenSize = [UIScreen mainScreen].bounds.size;
252+
#pragma clang diagnostic pop
247253

248254
CGFloat width = screenSize.width;
249255
CGFloat height = screenSize.height;

0 commit comments

Comments
 (0)