1
0
mirror of https://github.com/flutter/samples.git synced 2026-03-23 21:01:49 +00:00

Graduating add-to-app (#180)

This commit is contained in:
Andrew Brogdon
2019-12-12 10:45:11 -05:00
committed by GitHub
parent 3c11ff596c
commit 400f305ecd
163 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import UIKit
import Flutter
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
var flutterEngine : FlutterEngine?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Instantiate Flutter engine
self.flutterEngine = FlutterEngine(name: "io.flutter", project: nil)
self.flutterEngine?.run(withEntrypoint: nil)
return true
}
}