-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhances App Compatibility: Adds Support for CarPlay (#95)
Co-authored-by: Phan An <[email protected]>
- Loading branch information
1 parent
577a8c5
commit 6a84342
Showing
5 changed files
with
48 additions
and
22 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@available(iOS 13.0, *) | ||
class SceneDelegate: UIResponder, UIWindowSceneDelegate { | ||
var window: UIWindow? | ||
|
||
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { | ||
guard let windowScene = scene as? UIWindowScene else { return } | ||
|
||
window = UIWindow(windowScene: windowScene) | ||
|
||
let flutterEngine = FlutterEngine(name: "SceneDelegateEngine") | ||
flutterEngine.run() | ||
GeneratedPluginRegistrant.register(with: flutterEngine) | ||
let controller = FlutterViewController.init(engine: flutterEngine, nibName: nil, bundle: nil) | ||
window?.rootViewController = controller | ||
window?.makeKeyAndVisible() | ||
} | ||
} |