Offline gym log for Android. No account, no ads, no internet.
Dart androidbodybuildingdartexercisesf-droidfitnessfluttergymgym-apphealthprivacyself-hostedworkoutworkout-appworkout-tracker
import Flutter
import UIKit
class SceneDelegate: FlutterSceneDelegate {
override func scene(
_ scene: UIScene,
willConnectTo session: UISceneSession,
options connectionOptions: UIScene.ConnectionOptions
) {
super.scene(scene, willConnectTo: session, options: connectionOptions)
connectionOptions.urlContexts.forEach { IncomingBridge.receive(url: $0.url) }
if let shortcut = connectionOptions.shortcutItem {
IncomingBridge.receive(shortcut: shortcut)
}
}
override func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
super.scene(scene, openURLContexts: URLContexts)
URLContexts.forEach { IncomingBridge.receive(url: $0.url) }
}
override func windowScene(
_ windowScene: UIWindowScene,
performActionFor shortcutItem: UIApplicationShortcutItem,
completionHandler: @escaping (Bool) -> Void
) {
IncomingBridge.receive(shortcut: shortcutItem)
completionHandler(true)
}
}