zioinfo-mail/app/node_modules/expo-modules-core/ios/EXAppDefines.m
DESKTOP-TKLFCPR\ython 11c670f2a0 refactor: 101.79.17.164 → zioinfo.co.kr 전체 도메인 변환 + Manager UI 배포
- 37개 파일 IP → zioinfo.co.kr 치환 (소스/매뉴얼/설정/하네스)
- Manager DrConsole/NetworkConsole/CsapConsole 빌드 + /var/www/manager/ 배포
- 테스트: Manager HTTP 200, ITSM 신규 API 7개 전체 200

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 10:09:17 +09:00

68 lines
1.3 KiB
Objective-C

// Copyright 2016-present 650 Industries. All rights reserved.
#import <ExpoModulesCore/EXAppDefines.h>
#import <React/RCTDefines.h>
@implementation EXAppDefines
static NSDictionary *_storage;
static BOOL _loaded = NO;
+ (BOOL)APP_DEBUG
{
[self throwIfNotLoaded];
return [_storage[@"APP_DEBUG"] boolValue];
}
+ (BOOL)APP_RCT_DEBUG
{
[self throwIfNotLoaded];
return [_storage[@"APP_RCT_DEBUG"] boolValue];
}
+ (BOOL)APP_RCT_DEV
{
[self throwIfNotLoaded];
return [_storage[@"APP_RCT_DEV"] boolValue];
}
+ (BOOL)APP_NEW_ARCH_ENABLED
{
[self throwIfNotLoaded];
return [_storage[@"APP_NEW_ARCH_ENABLED"] boolValue];
}
+ (NSDictionary *)getAllDefines
{
return _storage;
}
+ (void)load:(NSDictionary *)defines
{
NSAssert([NSThread isMainThread], @"This function must be called on main thread");
NSAssert(!_loaded, @"EXAppDefines is already loaded");
if (!_loaded) {
_storage = defines;
_loaded = YES;
}
}
// Private function for EXAppDefinesTest to unload the current state.
+ (void)_unload
{
_storage = nil;
_loaded = NO;
}
+ (void)throwIfNotLoaded
{
if (!_loaded) {
@throw [NSException exceptionWithName:NSInternalInconsistencyException
reason:@"EXAppDefines is not loaded."
userInfo:nil];
}
}
@end