//
//  AppDelegate.m
//  FCC CEM Test
//
//  Created by Logicplant on 2014. 8. 22..
//  Copyright (c) 2014년 ACCVUER. All rights reserved.
//

#import "AppDelegate.h"

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Override point for customization after application launch.
    
    SKCore *libCore = [SKCore getInstance];
    SK_ASSERT(libCore != nil);
    
    
    return [super application:application didFinishLaunchingWithOptions:launchOptions];
}
							
- (void)applicationWillResignActive:(UIApplication *)application
{
    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
    // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
    [super applicationWillResignActive:application];
}

- (void)applicationDidEnterBackground:(UIApplication *)application
{
    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 
    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
    [super applicationDidEnterBackground:application];
}

- (void)applicationWillEnterForeground:(UIApplication *)application
{
    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
    [super applicationWillEnterForeground:application];
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
    [super applicationDidBecomeActive:application];
}

- (void)applicationWillTerminate:(UIApplication *)application
{
    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
    [super applicationWillTerminate:application];
}


#pragma mark - crash manager
- (void)crashManagerWillSendCrashReport:(BITCrashManager *)crashManager {
#ifdef _DEBUG
    NSLog(@"DEBUG: crashManager:crashManagerWillSendCrashReport");
#endif // _DEBUG
}

- (void)crashManager:(BITCrashManager *)crashManager didFailWithError:(NSError *)error {
#ifdef _DEBUG
    NSLog(@"DEBUG: crashManager:didFailWithError");
#endif // _DEBUG
}

- (void)crashManagerDidFinishSendingCrashReport:(BITCrashManager *)crashManager {
#ifdef _DEBUG
    NSLog(@"DEBUG: crashManager:crashManagerDidFinishSendingCrashReport");
#endif // _DEBUG
}

#pragma mark - app configration
// Configuration - must be overriden by child class!

-(NSString *) getEnterpriseId {
    //return @"GiancarloTest";
    return @"FCC_Public";
}

-(NSString *) getBaseUrlString {
    return @"http://dcs-mobile-fcc.samknows.com/mobile/dcs";
}

-(BOOL) getIsJitterSupported {
    return NO;
}

-(BOOL) alwaysRunAllTests {
    return YES;
}

-(BOOL) supportContinuousTesting {
    return NO;
}

-(BOOL) supportOneDayResultView {
    return NO;
}

// User interface special behaviours - you can override if you want!
-(UIFont*) getSpecialFontOfSize:(CGFloat)theSize {
    // We use AmericanTypewriter in some cases in this app!
    return [UIFont fontWithName:@"AmericanTypewriter" size:theSize];
}

// Return the device 'unique id' via the app_id value in the upload data *only* for some app variants;
// the default is NO.
-(BOOL) getShouldUploadDeviceId {
    return NO;
}

// By default, throttle query is not supported - we could enable this here, however.
-(BOOL) isThrottleQuerySupported {
    return YES;
}

-(BOOL) isSocialMediaExportSupported {
    return NO;
}

-(BOOL) isSocialMediaImageExportSupported {
    return NO;
}

-(BOOL) supportExportMenuItem {
    return YES;
}

@end
