Skip to content

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.

Watch rest without overlaps; downloader appex without the app's BA keys; build 31

Duarte Santosc3e462573555
diff --git a/frontend/ios/App/AnimationPacksDownloader/Info.plist b/frontend/ios/App/AnimationPacksDownloader/Info.plist
index 01d2ff89b..25fa1c17e 100644
--- a/frontend/ios/App/AnimationPacksDownloader/Info.plist
+++ b/frontend/ios/App/AnimationPacksDownloader/Info.plist
@@ -22,10 +22,6 @@
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>BAAppGroupID</key>
<string>group.ch.opengym.app</string>
- <key>BAHasManagedAssetPacks</key>
- <true/>
- <key>BAUsesAppleHosting</key>
- <true/>
<key>EXAppExtensionAttributes</key>
<dict>
<key>EXExtensionPointIdentifier</key>
diff --git a/frontend/ios/App/App.xcodeproj/project.pbxproj b/frontend/ios/App/App.xcodeproj/project.pbxproj
index 4e4ca6f14..f99f92a23 100644
--- a/frontend/ios/App/App.xcodeproj/project.pbxproj
+++ b/frontend/ios/App/App.xcodeproj/project.pbxproj
@@ -391,7 +391,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 30;
+ CURRENT_PROJECT_VERSION = 31;
INFOPLIST_FILE = App/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 15.5;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
@@ -412,7 +412,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 30;
+ CURRENT_PROJECT_VERSION = 31;
INFOPLIST_FILE = App/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 15.5;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
diff --git a/frontend/ios/App/Watch/OpenGymWatchApp.swift b/frontend/ios/App/Watch/OpenGymWatchApp.swift
index 0742c7f87..ca0d607d9 100644
--- a/frontend/ios/App/Watch/OpenGymWatchApp.swift
+++ b/frontend/ios/App/Watch/OpenGymWatchApp.swift
@@ -335,40 +335,43 @@ struct RestView: View {
let end: Date
var body: some View {
- ZStack {
- TimelineView(.periodic(from: .now, by: 0.25)) { ctx in
- let total = max(1, end.timeIntervalSince(store.restStartedAt ?? end.addingTimeInterval(-90)))
- let left = max(0, end.timeIntervalSince(ctx.date))
- ZStack {
- Circle().stroke(Theme.dim, lineWidth: 7)
- Circle()
- .trim(from: 0, to: CGFloat(left / total))
- .stroke(Theme.accent, style: StrokeStyle(lineWidth: 7, lineCap: .round))
- .rotationEffect(.degrees(-90))
+ // The ring and the countdown in it take the space above the two corner buttons, so nothing
+ // overlaps on any size (it did on 46 mm when the ring filled the whole screen).
+ VStack(spacing: 2) {
+ ZStack {
+ TimelineView(.periodic(from: .now, by: 0.25)) { ctx in
+ let total = max(1, end.timeIntervalSince(store.restStartedAt ?? end.addingTimeInterval(-90)))
+ let left = max(0, end.timeIntervalSince(ctx.date))
+ ZStack {
+ Circle().stroke(Theme.dim, lineWidth: 7)
+ Circle()
+ .trim(from: 0, to: CGFloat(left / total))
+ .stroke(Theme.accent, style: StrokeStyle(lineWidth: 7, lineCap: .round))
+ .rotationEffect(.degrees(-90))
+ }
}
- }
- .padding(4)
- VStack(spacing: 2) {
- Text(timerInterval: Date()...end, countsDown: true)
- .font(.system(size: 46, weight: .semibold, design: .rounded).monospacedDigit())
- .minimumScaleFactor(0.6)
- .lineLimit(1)
- .multilineTextAlignment(.center)
- if let e = store.entry, let si = store.setIndex {
- Text(verbatim: "\(e.name) · \(si + 1)")
- .font(.caption2)
- .foregroundStyle(.secondary)
+ VStack(spacing: 1) {
+ Text(timerInterval: Date()...end, countsDown: true)
+ .font(.system(size: 44, weight: .semibold, design: .rounded).monospacedDigit())
+ .minimumScaleFactor(0.5)
.lineLimit(1)
- .padding(.horizontal, 24)
+ .multilineTextAlignment(.center)
+ if let e = store.entry, let si = store.setIndex {
+ Text(verbatim: "\(e.name) · \(si + 1)")
+ .font(.caption2)
+ .foregroundStyle(.secondary)
+ .lineLimit(1)
+ .minimumScaleFactor(0.8)
+ }
}
+ .padding(.horizontal, 18)
}
- VStack {
+ .aspectRatio(1, contentMode: .fit)
+ .padding(.horizontal, 6)
+ HStack {
+ EdgeButton(systemImage: "goforward.15", label: Text("+15s")) { store.addRest(15) }
Spacer()
- HStack {
- EdgeButton(systemImage: "goforward.15", label: Text("+15s")) { store.addRest(15) }
- Spacer()
- EdgeButton(systemImage: "forward.end.fill", label: Text("Skip")) { store.skipRest() }
- }
+ EdgeButton(systemImage: "forward.end.fill", label: Text("Skip")) { store.skipRest() }
}
}
.ignoresSafeArea(edges: .bottom)