xref: /third_party/gn/examples/ios/app/hello_main.m (revision 6d528ed9)
16d528ed9Sopenharmony_ci// Copyright 2023 The Chromium Authors. All rights reserved.
26d528ed9Sopenharmony_ci// Use of this source code is governed by a BSD-style license that can be
36d528ed9Sopenharmony_ci// found in the LICENSE file.
46d528ed9Sopenharmony_ci
56d528ed9Sopenharmony_ci#import <UIKit/UIKit.h>
66d528ed9Sopenharmony_ci
76d528ed9Sopenharmony_ci#import "app/AppDelegate.h"
86d528ed9Sopenharmony_ci
96d528ed9Sopenharmony_ciint hello_main(int argc, char** argv) {
106d528ed9Sopenharmony_ci  NSString* appDelegateClassName;
116d528ed9Sopenharmony_ci  @autoreleasepool {
126d528ed9Sopenharmony_ci    appDelegateClassName = NSStringFromClass([AppDelegate class]);
136d528ed9Sopenharmony_ci  }
146d528ed9Sopenharmony_ci
156d528ed9Sopenharmony_ci  return UIApplicationMain(argc, argv, nil, appDelegateClassName);
166d528ed9Sopenharmony_ci}
17