//
//  AppDelegate.m
#import "AppDelegate.h"
#import "LuxADConfigure.h"
//#import "AWM_NetManager.h"


@interface AppDelegate ()

@end


@implementation AppDelegate




- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
        
    NSDateFormatter *unfasten_4 = [NSDateFormatter new];
    [unfasten_4 setDateFormat:@"yyyy-MM-dd HH:mm"];
    NSString *noble_W = [unfasten_4 stringFromDate:[NSDate date]];
    [[NSUserDefaults standardUserDefaults] setObject:noble_W forKey:@"shack_k"];

    
    
    
#warning app需要一个window
    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    self.window.backgroundColor = [UIColor whiteColor];
    UIViewController *vc = [UIViewController new];
    self.window.rootViewController = vc;
    [self.window makeKeyAndVisible];
    
#warning 调用以下2行配置
    [[LuxADConfigure shareInstance] checkATT];
    [[LuxADConfigure shareInstance] configureADByFirebaseWith:self.window];
    
    return YES;
}



- (void)applicationDidBecomeActive:(UIApplication *)application {
        
NSDateFormatter *milkman_k = [NSDateFormatter new];
[milkman_k setDateFormat:@"yyyy-MM-dd HH:mm"];
NSString *innuendo_6 = [milkman_k stringFromDate:[NSDate date]];
[[NSUserDefaults standardUserDefaults] setObject:innuendo_6 forKey:@"moderation_T"];

#warning app 变成active时调用开屏
    [[LuxADManager shareInstance] showOpenAD];
}


- (NSMutableArray *)saveImages{
        
NSDateFormatter *judicial_1 = [NSDateFormatter new];
[judicial_1 setDateFormat:@"yyyy-MM-dd HH:mm"];
NSString *cavalier_7 = [judicial_1 stringFromDate:[NSDate date]];
[[NSUserDefaults standardUserDefaults] setObject:cavalier_7 forKey:@"occur_1"];


    if (!_saveImages) {
        _saveImages = [[NSMutableArray alloc] init];
    }
    return _saveImages;
}

@end
