处理上架的问题
1:处理了openurl 拉起问题 2:去掉了http 3 隐私等等
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#import "KBHUD.h"
|
||||
#import <MBProgressHUD/MBProgressHUD.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <TargetConditionals.h>
|
||||
|
||||
#ifndef KBSCREEN
|
||||
#define KBSCREEN [UIScreen mainScreen].bounds.size
|
||||
@@ -29,7 +30,7 @@ static __weak UIView *sContainerView = nil; // 缺省承载视图(
|
||||
/// 解析当前 HUD 需要附着的宿主视图
|
||||
+ (UIView *)kb_resolvedHostView {
|
||||
UIView *hostView = sContainerView;
|
||||
#ifndef KB_APP_EXTENSION
|
||||
#if !TARGET_OS_EXTENSION
|
||||
// App 内退回到 KeyWindow
|
||||
if (!hostView) {
|
||||
UIWindow *win = nil;
|
||||
|
||||
@@ -10,7 +10,9 @@
|
||||
#import "KBSkinDetailVC.h"
|
||||
#import "KBMyHeaderView.h" // 顶部视图独立封装
|
||||
#import "KBMyListCell.h"
|
||||
#if DEBUG
|
||||
#import "KBTestVC.h"
|
||||
#endif
|
||||
#import "KBNoticeVC.h"
|
||||
#import "KBFeedBackVC.h"
|
||||
#import "KBMyVM.h"
|
||||
@@ -50,7 +52,9 @@
|
||||
@{ @"title": KBLocalized(@"E-mail"), @"icon": @"my_email_icon", @"color": @(0xFF8A65),@"id":@"4" },
|
||||
@{ @"title": KBLocalized(@"Agreement"), @"icon": @"my_agreement_icon", @"color": @(0x4CD964),@"id":@"5" },
|
||||
@{ @"title": KBLocalized(@"Privacy Policy"), @"icon": @"my_privacy_icon", @"color": @(0x5AC8FA),@"id":@"6" },
|
||||
#if DEBUG
|
||||
@{ @"title": KBLocalized(@"Test"), @"icon": @"", @"color": @(0x5AC8FA),@"id":@"7" },
|
||||
#endif
|
||||
|
||||
]
|
||||
];
|
||||
@@ -223,9 +227,11 @@
|
||||
}else if ([itemID isEqualToString:@"8"]){
|
||||
KBConsumptionRecordVC *vc = [[KBConsumptionRecordVC alloc] init];
|
||||
[self.navigationController pushViewController:vc animated:true];
|
||||
#if DEBUG
|
||||
}else if ([itemID isEqualToString:@"7"]){
|
||||
KBTestVC *vc = [[KBTestVC alloc] init];
|
||||
[self.navigationController pushViewController:vc animated:true];
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -10,20 +10,18 @@
|
||||
|
||||
// 基础baseUrl
|
||||
#ifndef KB_BASE_URL
|
||||
#define KB_BASE_URL @"https://m1.apifoxmock.com/m1/5438099-5113192-default/"
|
||||
#define KB_BASE_URL @"https://devcallback.loveamorkey.com/api"
|
||||
#endif
|
||||
|
||||
// Universal Links 通用链接
|
||||
#ifndef KB_UL_BASE
|
||||
#define KB_UL_BASE @"https://your.domain/ul"
|
||||
#define KB_UL_BASE @"https://app.tknb.net/ul"
|
||||
#endif
|
||||
|
||||
#define KB_UL_LOGIN KB_UL_BASE @"/login"
|
||||
#define KB_UL_SETTINGS KB_UL_BASE @"/settings"
|
||||
// 充值入口的通用链接:当前复用 /login 路径,通过 query 区分(避免额外配置 AASA 路径)
|
||||
#define KB_UL_RECHARGE KB_UL_LOGIN
|
||||
|
||||
#endif /* KBConfig_h */
|
||||
// 充值入口的通用链接
|
||||
#define KB_UL_RECHARGE KB_UL_BASE @"/recharge"
|
||||
|
||||
// --- 认证/共享钥匙串 配置 ---
|
||||
// 若已在 Capabilities 中启用 Keychain Sharing,并添加访问组:
|
||||
@@ -34,30 +32,9 @@
|
||||
#define KB_KEYCHAIN_ACCESS_GROUP @"TN6HHV45BB.com.loveKey.nyx.shared"
|
||||
#endif
|
||||
|
||||
// --- 设备特性:是否为带刘海机型(iPhone X 及以后异形屏)---
|
||||
// 说明:在 iPhone 12 等机型底部会有 34px 安全区,这里通过安全区来判断是否为“刘海屏”。
|
||||
// 注意:使用到 UIKit,这里自行引入,避免依赖 PCH 的包含顺序。
|
||||
#import <UIKit/UIKit.h>
|
||||
static inline BOOL KBDeviceHasNotchRuntime(void) {
|
||||
if (@available(iOS 11.0, *)) {
|
||||
UIWindow *window = nil;
|
||||
if (@available(iOS 13.0, *)) {
|
||||
for (UIScene *scene in UIApplication.sharedApplication.connectedScenes) {
|
||||
if (scene.activationState == UISceneActivationStateForegroundActive && [scene isKindOfClass:[UIWindowScene class]]) {
|
||||
UIWindowScene *ws = (UIWindowScene *)scene;
|
||||
for (UIWindow *w in ws.windows) { if (w.isKeyWindow) { window = w; break; } }
|
||||
if (window) { break; }
|
||||
}
|
||||
}
|
||||
if (!window) { window = UIApplication.sharedApplication.windows.firstObject; }
|
||||
} else {
|
||||
window = UIApplication.sharedApplication.keyWindow;
|
||||
}
|
||||
return window.safeAreaInsets.bottom > 0.0;
|
||||
}
|
||||
return NO;
|
||||
}
|
||||
// 说明:
|
||||
// - 该头文件同时被主 App 与键盘扩展引用;
|
||||
// - 设备/窗口相关的 UIKit 辅助方法(如 UIApplication.sharedApplication)在扩展中不可用,
|
||||
// 请放到主 App 的前缀头或具体业务代码中,避免引入扩展不允许的 API。
|
||||
|
||||
#ifndef KB_DEVICE_HAS_NOTCH
|
||||
#define KB_DEVICE_HAS_NOTCH (KBDeviceHasNotchRuntime())
|
||||
#endif
|
||||
#endif /* KBConfig_h */
|
||||
|
||||
Reference in New Issue
Block a user