feat(tvos): add top shelf support

This commit is contained in:
edde746
2026-06-04 15:38:12 +02:00
parent 145881318e
commit 43012da2b8
13 changed files with 857 additions and 69 deletions
+18
View File
@@ -128,6 +128,10 @@ import wakelock_plus
application.beginReceivingRemoteControlEvents()
if let url = launchOptions?[UIApplication.LaunchOptionsKey.url] as? URL {
_ = SystemShelfPlugin.handleOpenURL(url)
}
if let r = self.registrar(forPlugin: "SharedPreferencesPlugin") {
SharedPreferencesPlugin.register(with: r)
}
@@ -155,7 +159,21 @@ import wakelock_plus
if let r = self.registrar(forPlugin: "WakelockPlusPlugin") {
WakelockPlusPlugin.register(with: r)
}
if let r = self.registrar(forPlugin: "SystemShelfPlugin") {
SystemShelfPlugin.register(with: r)
}
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
override func application(
_ application: UIApplication,
open url: URL,
options: [UIApplication.OpenURLOptionsKey: Any] = [:]
) -> Bool {
if SystemShelfPlugin.handleOpenURL(url) {
return true
}
return super.application(application, open: url, options: options)
}
}