Skip to content

Commit fc47ff6

Browse files
authored
Refactoring for support of new iOS implementation (#13)
1 parent eb5a384 commit fc47ff6

34 files changed

+83
-2390
lines changed

Gym Routine Tracker.xcodeproj/project.pbxproj renamed to Gym Routine Tracker Watch.xcodeproj/project.pbxproj

Lines changed: 59 additions & 179 deletions
Large diffs are not rendered by default.

Gym Routine Tracker.xcodeproj/xcshareddata/xcschemes/Gym Routine Tracker Watch App.xcscheme renamed to Gym Routine Tracker Watch.xcodeproj/xcshareddata/xcschemes/Gym Routine Tracker Watch App.xcscheme

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
BlueprintIdentifier = "40CE1402293B0DBB00462D62"
1818
BuildableName = "Gym Routine Tracker Watch App.app"
1919
BlueprintName = "Gym Routine Tracker Watch App"
20-
ReferencedContainer = "container:Gym Routine Tracker.xcodeproj">
20+
ReferencedContainer = "container:Gym Routine Tracker Watch.xcodeproj">
2121
</BuildableReference>
2222
</BuildActionEntry>
2323
<BuildActionEntry
@@ -29,9 +29,9 @@
2929
<BuildableReference
3030
BuildableIdentifier = "primary"
3131
BlueprintIdentifier = "40CE13FC293B0DBB00462D62"
32-
BuildableName = "Gym Routine Tracker.app"
33-
BlueprintName = "Gym Routine Tracker"
34-
ReferencedContainer = "container:Gym Routine Tracker.xcodeproj">
32+
BuildableName = "Gym Routine Tracker Watch.app"
33+
BlueprintName = "Gym Routine Tracker Watch"
34+
ReferencedContainer = "container:Gym Routine Tracker Watch.xcodeproj">
3535
</BuildableReference>
3636
</BuildActionEntry>
3737
</BuildActionEntries>
@@ -61,14 +61,18 @@
6161
BlueprintIdentifier = "40CE1402293B0DBB00462D62"
6262
BuildableName = "Gym Routine Tracker Watch App.app"
6363
BlueprintName = "Gym Routine Tracker Watch App"
64-
ReferencedContainer = "container:Gym Routine Tracker.xcodeproj">
64+
ReferencedContainer = "container:Gym Routine Tracker Watch.xcodeproj">
6565
</BuildableReference>
6666
</BuildableProductRunnable>
6767
<CommandLineArguments>
6868
<CommandLineArgument
6969
argument = "-com.apple.CoreData.Logging.stderr 0"
7070
isEnabled = "YES">
7171
</CommandLineArgument>
72+
<CommandLineArgument
73+
argument = "-com.apple.CoreData.ConcurrencyDebug 0"
74+
isEnabled = "YES">
75+
</CommandLineArgument>
7276
<CommandLineArgument
7377
argument = "-com.apple.CoreData.CloudKitDebug 0"
7478
isEnabled = "YES">
@@ -88,7 +92,7 @@
8892
BlueprintIdentifier = "40CE1402293B0DBB00462D62"
8993
BuildableName = "Gym Routine Tracker Watch App.app"
9094
BlueprintName = "Gym Routine Tracker Watch App"
91-
ReferencedContainer = "container:Gym Routine Tracker.xcodeproj">
95+
ReferencedContainer = "container:Gym Routine Tracker Watch.xcodeproj">
9296
</BuildableReference>
9397
</BuildableProductRunnable>
9498
</ProfileAction>

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ To any Apple product managers who like this app, please consider Sherlocking it!
4646

4747
## See Also
4848

49-
* [GRT Website](https://gym-routine-tracker.github.io) - Website for GRT
49+
* [GRT Website](https://gym-routine-tracker.github.io) - Website for GRT (both watchOS and iOS implementations)
5050
* [GRT on the App Store](https://apps.apple.com/us/app/gym-routine-tracker/id6444747204) - App Store link for free download of GRT
51+
* [GroutUI](https://github.com/gym-routine-tracker/GroutUI) - shared UI layer for GRT (watchOS and iOS)
5152
* [GroutLib](https://github.com/gym-routine-tracker/GroutLib) - shared business logic and data layer for GRT
5253

5354
Apps by the same author:
@@ -57,7 +58,7 @@ Apps by the same author:
5758

5859
## License
5960

60-
Copyright 2022 OpenAlloc LLC
61+
Copyright 2022, 2023 OpenAlloc LLC
6162

6263
All application code is licensed under the [Mozilla Public License 2](https://www.mozilla.org/en-US/MPL/2.0/), except where noted in individual modules.
6364

File renamed without changes.

Sources/Main View/ContentView.swift renamed to Sources/ContentView.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// ContentView.swift
33
//
4-
// Copyright 2022 OpenAlloc LLC
4+
// Copyright 2022, 2023 OpenAlloc LLC
55
//
66
// This Source Code Form is subject to the terms of the Mozilla Public
77
// License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -12,15 +12,15 @@ import CoreData
1212
import SwiftUI
1313

1414
import GroutLib
15+
import GroutUI
1516

1617
struct ContentView: View {
17-
@State var router: NavigationPath = .init()
18+
@SceneStorage("main-routines-nav") private var routinesNavData: Data?
1819

1920
var body: some View {
20-
NavigationStack(path: $router) {
21-
RoutineList(router: $router)
21+
NavStack(name: "main", navData: $routinesNavData) {
22+
RoutineList()
2223
}
23-
.interactiveDismissDisabled() // NOTE: needed to prevent home button from dismissing sheet
2424
}
2525
}
2626

Sources/Exercise Detail/ExerciseDetail.swift

Lines changed: 0 additions & 54 deletions
This file was deleted.

Sources/Exercise Detail/ExerciseFirstTab.swift

Lines changed: 0 additions & 55 deletions
This file was deleted.

Sources/Exercise Detail/ExerciseIntensityTab.swift

Lines changed: 0 additions & 82 deletions
This file was deleted.

Sources/Exercise Detail/ExerciseVolumeTab.swift

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)