Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.
JavaScript apple-watchbodyweightdockerfitnessfitness-trackergymhealthiosmcpnodejspasskeysprogressive-web-applicationspwareactself-hostedself-hostingvitewebauthnweightliftingworkout-tracker
iOS: adopt UIScene lifecycle for Xcode 26+ / iOS 26+ SDK
shailantani2a369e38bd96
diff --git a/frontend/ios/App/App.xcodeproj/project.pbxproj b/frontend/ios/App/App.xcodeproj/project.pbxprojindex 89cd930fd..1ba5f1c3d 100644--- a/frontend/ios/App/App.xcodeproj/project.pbxproj+++ b/frontend/ios/App/App.xcodeproj/project.pbxproj@@ -10,6 +10,7 @@2FAD9763203C412B000D30F8 /* config.xml in Resources */ = {isa = PBXBuildFile; fileRef = 2FAD9762203C412B000D30F8 /* config.xml */; };50379B232058CBB4000EE86E /* capacitor.config.json in Resources */ = {isa = PBXBuildFile; fileRef = 50379B222058CBB4000EE86E /* capacitor.config.json */; };504EC3081FED79650016851F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 504EC3071FED79650016851F /* AppDelegate.swift */; };+ AA0000000000000000000002 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA0000000000000000000001 /* SceneDelegate.swift */; };504EC30D1FED79650016851F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30B1FED79650016851F /* Main.storyboard */; };504EC30F1FED79650016851F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30E1FED79650016851F /* Assets.xcassets */; };504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC3101FED79650016851F /* LaunchScreen.storyboard */; };@@ -22,6 +23,7 @@50379B222058CBB4000EE86E /* capacitor.config.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = capacitor.config.json; sourceTree = "<group>"; };504EC3041FED79650016851F /* App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = App.app; sourceTree = BUILT_PRODUCTS_DIR; };504EC3071FED79650016851F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };+ AA0000000000000000000001 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };504EC30C1FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };504EC30E1FED79650016851F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };504EC3111FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };@@ -75,6 +77,7 @@children = (50379B222058CBB4000EE86E /* capacitor.config.json */,504EC3071FED79650016851F /* AppDelegate.swift */,+ AA0000000000000000000001 /* SceneDelegate.swift */,504EC30B1FED79650016851F /* Main.storyboard */,504EC30E1FED79650016851F /* Assets.xcassets */,504EC3101FED79650016851F /* LaunchScreen.storyboard */,@@ -210,6 +213,7 @@buildActionMask = 2147483647;files = (504EC3081FED79650016851F /* AppDelegate.swift in Sources */,+ AA0000000000000000000002 /* SceneDelegate.swift in Sources */,);runOnlyForDeploymentPostprocessing = 0;};diff --git a/frontend/ios/App/App/AppDelegate.swift b/frontend/ios/App/App/AppDelegate.swiftindex c3cd83b5c..a513a30f7 100644--- a/frontend/ios/App/App/AppDelegate.swift+++ b/frontend/ios/App/App/AppDelegate.swift@@ -4,13 +4,22 @@ import Capacitor@UIApplicationMainclass AppDelegate: UIResponder, UIApplicationDelegate {- var window: UIWindow?-func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {// Override point for customization after application launch.return true}+ // MARK: UISceneSession Lifecycle++ func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {+ let sceneConfiguration = UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)+ sceneConfiguration.delegateClass = SceneDelegate.self+ return sceneConfiguration+ }++ func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {+ }+func applicationWillResignActive(_ application: UIApplication) {// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.diff --git a/frontend/ios/App/App/Info.plist b/frontend/ios/App/App/Info.plistindex 198730746..c06987bdd 100644--- a/frontend/ios/App/App/Info.plist+++ b/frontend/ios/App/App/Info.plist@@ -24,8 +24,25 @@<true/><key>UILaunchStoryboardName</key><string>LaunchScreen</string>- <key>UIMainStoryboardFile</key>- <string>Main</string>+ <key>UIApplicationSceneManifest</key>+ <dict>+ <key>UIApplicationSupportsMultipleScenes</key>+ <false/>+ <key>UISceneConfigurations</key>+ <dict>+ <key>UIWindowSceneSessionRoleApplication</key>+ <array>+ <dict>+ <key>UISceneConfigurationName</key>+ <string>Default Configuration</string>+ <key>UISceneDelegateClassName</key>+ <string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>+ <key>UISceneStoryboardFile</key>+ <string>Main</string>+ </dict>+ </array>+ </dict>+ </dict><key>UIRequiredDeviceCapabilities</key><array><string>armv7</string>diff --git a/frontend/ios/App/App/SceneDelegate.swift b/frontend/ios/App/App/SceneDelegate.swiftnew file mode 100644index 000000000..151cfb4fd--- /dev/null+++ b/frontend/ios/App/App/SceneDelegate.swift@@ -0,0 +1,21 @@+import UIKit+import Capacitor++class SceneDelegate: UIResponder, UIWindowSceneDelegate {++ var window: UIWindow?++ // The window and root view controller are created automatically from+ // Main.storyboard via the UISceneStoryboardFile key in Info.plist.+ // These callbacks just forward deep links / Universal Links to Capacitor,+ // since AppDelegate's equivalents are not called under the scene lifecycle.++ func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {+ guard let url = URLContexts.first?.url else { return }+ _ = ApplicationDelegateProxy.shared.application(UIApplication.shared, open: url, options: [:])+ }++ func scene(_ scene: UIScene, continue userActivity: NSUserActivity) {+ _ = ApplicationDelegateProxy.shared.application(UIApplication.shared, continue: userActivity) { _ in }+ }+}