This commit is contained in:
2025-12-02 18:29:04 +08:00
parent cafde48f4a
commit 8245e7b3d1
32 changed files with 2485 additions and 6 deletions

View File

@@ -24,6 +24,8 @@
#import "KBSexSelVC.h"
#import "KBKeyboardPermissionManager.h"
#import "KBVipPay.h"
#import "KBUserSessionManager.h"
#import "KBLoginVC.h"
// bundle id target
// PRODUCT_BUNDLE_IDENTIFIER
@@ -38,6 +40,9 @@
[[FGIAPManager shared] setConfigureWith:[IAPVerifyTransactionObj new]];
/// 2
[KBLocalizationManager shared].supportedLanguageCodes = @[ @"en", @"zh-Hans"];
/// 3 : token
// [[KBUserSessionManager shared] bootstrapIfNeeded];
// /访 Keychain
static NSString *const kKBFullAccessRecordInitializedKey = @"KBFullAccessRecordInitialized";
@@ -49,12 +54,12 @@
}
// Skip TabBar
BOOL hasShownSexVC = [[NSUserDefaults standardUserDefaults] boolForKey:KBSexSelectShownKey];
if (hasShownSexVC) {
[self setupRootVC];
} else {
// BOOL hasShownSexVC = [[NSUserDefaults standardUserDefaults] boolForKey:KBSexSelectShownKey];
// if (hasShownSexVC) {
// [self setupRootVC];
// } else {
[self setupSexSelectRootVC];
}
// }
// 访
[KBNetworkManager shared].enabled = YES;
@@ -93,9 +98,13 @@
///
- (void)setupSexSelectRootVC {
KBLoginVC *vc = [[KBLoginVC alloc] init];
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
self.window.rootViewController = vc;
return;
KBSexSelVC *sexVC = [KBSexSelVC new];
__weak typeof(self) weakSelf = self;