//
//  AppDelegate.m
//  EugineAPISample
//
//  Created by aaab on 2022/12/23.
//

#import "AppDelegate.h"
#import "ViewController.h"
//#import "NFilterCharButton.h"
#import "Reachability.h"
#import "ViewController.h"
@interface AppDelegate ()
{
    BOOL        isbackground;
}
@end



@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    
    //+ NFilter Library 때문에 추가
    // 모듈 설명서에는 프로젝트 설정 중 Other Link에 -ObjC 옵션을 켜라고하는데..
    // 다른 모듈때문에 MTS에선 못켜서..
    // 이제 확인해보니.. 클래스 하나 로딩때문이었음..
    // -ObjC 없이, 앱 기동시 호출하여 메모리 로딩하여 문제 없도록 수정..
//    NFilterCharButton* btn = [[NFilterCharButton alloc] init];
    
    if ( @available(iOS 13.0 , * )){
        [self.window setOverrideUserInterfaceStyle:UIUserInterfaceStyleLight];
    }
    
//    NSString *qry = @"stpbid.qry";
//
//    NSString *documentPath = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/query"];
////    NSArray *contents = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:documentPath error:nil];
//    NSString *sQryPath = [NSString stringWithFormat:@"%@/%@" , documentPath , qry];
//    NSLog(@"document Path [%@]" , documentPath);
//    NSData *data= [[NSFileManager defaultManager] contentsAtPath:sQryPath];
//    NSString *fileData = [[NSString alloc] initWithData:data encoding:(0x80000000 + kCFStringEncodingDOSKorean)];
    
    
    
    return YES;
}

- (void)applicationDidEnterBackground:(UIApplication *)application
{
    isbackground = YES;
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
    isbackground = NO;
}



#pragma mark - UISceneSession lifecycle


- (UISceneConfiguration *)application:(UIApplication *)application configurationForConnectingSceneSession:(UISceneSession *)connectingSceneSession options:(UISceneConnectionOptions *)options {
    // Called when a new scene session is being created.
    // Use this method to select a configuration to create the new scene with.
    return [[UISceneConfiguration alloc] initWithName:@"Default Configuration" sessionRole:connectingSceneSession.role];
}


- (void)application:(UIApplication *)application didDiscardSceneSessions:(NSSet<UISceneSession *> *)sceneSessions {
    // Called when the user discards a scene session.
    // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
    // Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}


@end
