//
//  AppDelegate.m
//  AdDemo
//
//  Created by Liubin on 2024/6/28.
//

#import "AppDelegate.h"
#import "ViewController.h"
#import <ULinkAd/HMAdsSDKExtension.h>

#import <AppTrackingTransparency/AppTrackingTransparency.h>
#import <AdSupport/AdSupport.h>


@interface AppDelegate ()

@property (nonatomic, strong) ViewController *viewController;


@end

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    
    if (self.window == nil) {
        UIWindow *keyWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
        [keyWindow makeKeyAndVisible];
        self.window = keyWindow;
        self.window.rootViewController = [self rootViewController];
    }
    
    return YES;
}

- (UIViewController *)rootViewController {
    ViewController *mainViewController = [[ViewController alloc] init];
    UINavigationController *navigationVC = [[UINavigationController alloc] initWithRootViewController:mainViewController];
    return navigationVC;
}


@end
