ci: add iPhone deploy workflow + CI/CD setup docs #4

Merged
millianlmx merged 50 commits from ci/iphone-deploy-workflow into main 2026-06-27 22:49:53 +02:00
2 changed files with 15 additions and 4 deletions
Showing only changes of commit 60ac624487 - Show all commits

View File

@@ -58,8 +58,7 @@ jobs:
xcodebuild -list
xcodebuild build \
-project TabataGo.xcodeproj \
-target TabataGo \
-sdk iphoneos \
-scheme TabataGo \
-destination "generic/platform=iOS" \
-configuration Debug \
-allowProvisioningUpdates \

View File

@@ -98,6 +98,8 @@ struct RectangularComplicationView: View {
}
/// `.accessoryCorner` tiny bolt + streak digit in the corner
#if canImport(WatchKit)
@available(watchOS 10.0, *)
struct CornerComplicationView: View {
let entry: TabataEntry
@@ -111,6 +113,7 @@ struct CornerComplicationView: View {
.widgetLabel(String(format: String(localized: LocalizedStringResource("watch.complication.dayStreakFmt")), entry.streak))
}
}
#endif
// Widget definition
@@ -127,7 +130,7 @@ struct TabataGoComplication: Widget {
.supportedFamilies([
.accessoryCircular,
.accessoryRectangular,
#if os(watchOS)
#if canImport(WatchKit)
.accessoryCorner
#endif
])
@@ -144,7 +147,7 @@ struct TabataComplicationEntryView: View {
CircularComplicationView(entry: entry)
case .accessoryRectangular:
RectangularComplicationView(entry: entry)
#if os(watchOS)
#if canImport(WatchKit)
case .accessoryCorner:
CornerComplicationView(entry: entry)
#endif
@@ -167,3 +170,12 @@ struct TabataComplicationEntryView: View {
} timeline: {
TabataEntry(date: .now, streak: 7, lastWorkoutLabel: "Today")
}
#if canImport(WatchKit)
@available(watchOS 10.0, *)
#Preview("Corner", as: .accessoryCorner) {
TabataGoComplication()
} timeline: {
TabataEntry(date: .now, streak: 7, lastWorkoutLabel: "Today")
}
#endif