Skip to content

Offline gym log for Android. No account, no ads, no internet.

Add iOS project: bridges, widgets, Live Activity

InlitX922186d1720e
diff --git a/ios/.gitignore b/ios/.gitignore
new file mode 100644
index 0000000..7a7f987
--- /dev/null
+++ b/ios/.gitignore
@@ -0,0 +1,34 @@
+**/dgph
+*.mode1v3
+*.mode2v3
+*.moved-aside
+*.pbxuser
+*.perspectivev3
+**/*sync/
+.sconsign.dblite
+.tags*
+**/.vagrant/
+**/DerivedData/
+Icon?
+**/Pods/
+**/.symlinks/
+profile
+xcuserdata
+**/.generated/
+Flutter/App.framework
+Flutter/Flutter.framework
+Flutter/Flutter.podspec
+Flutter/Generated.xcconfig
+Flutter/ephemeral/
+Flutter/app.flx
+Flutter/app.zip
+Flutter/flutter_assets/
+Flutter/flutter_export_environment.sh
+ServiceDefinitions.json
+Runner/GeneratedPluginRegistrant.*
+
+# Exceptions to above rules.
+!default.mode1v3
+!default.mode2v3
+!default.pbxuser
+!default.perspectivev3
diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist
new file mode 100644
index 0000000..391a902
--- /dev/null
+++ b/ios/Flutter/AppFrameworkInfo.plist
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleExecutable</key>
+ <string>App</string>
+ <key>CFBundleIdentifier</key>
+ <string>io.flutter.flutter.app</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>App</string>
+ <key>CFBundlePackageType</key>
+ <string>FMWK</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+</dict>
+</plist>
diff --git a/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig
new file mode 100644
index 0000000..592ceee
--- /dev/null
+++ b/ios/Flutter/Debug.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig
new file mode 100644
index 0000000..592ceee
--- /dev/null
+++ b/ios/Flutter/Release.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/ios/GymManeWidgets/Assets.xcassets/Contents.json b/ios/GymManeWidgets/Assets.xcassets/Contents.json
new file mode 100644
index 0000000..73c0059
--- /dev/null
+++ b/ios/GymManeWidgets/Assets.xcassets/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ios/GymManeWidgets/Assets.xcassets/LiveIcon.imageset/Contents.json b/ios/GymManeWidgets/Assets.xcassets/LiveIcon.imageset/Contents.json
new file mode 100644
index 0000000..dfda82a
--- /dev/null
+++ b/ios/GymManeWidgets/Assets.xcassets/LiveIcon.imageset/Contents.json
@@ -0,0 +1,22 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ios/GymManeWidgets/Assets.xcassets/LiveIcon.imageset/[email protected] b/ios/GymManeWidgets/Assets.xcassets/LiveIcon.imageset/[email protected]
new file mode 100644
index 0000000..3de9c92
Binary files /dev/null and b/ios/GymManeWidgets/Assets.xcassets/LiveIcon.imageset/[email protected] differ
diff --git a/ios/GymManeWidgets/Assets.xcassets/LiveIcon.imageset/[email protected] b/ios/GymManeWidgets/Assets.xcassets/LiveIcon.imageset/[email protected]
new file mode 100644
index 0000000..9d22694
Binary files /dev/null and b/ios/GymManeWidgets/Assets.xcassets/LiveIcon.imageset/[email protected] differ
diff --git a/ios/GymManeWidgets/GymManeWidgets.entitlements b/ios/GymManeWidgets/GymManeWidgets.entitlements
new file mode 100644
index 0000000..093230d
--- /dev/null
+++ b/ios/GymManeWidgets/GymManeWidgets.entitlements
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>com.apple.security.application-groups</key>
+ <array>
+ <string>group.com.gymmane.app</string>
+ </array>
+</dict>
+</plist>
diff --git a/ios/GymManeWidgets/GymManeWidgets.swift b/ios/GymManeWidgets/GymManeWidgets.swift
new file mode 100644
index 0000000..a9aba0e
--- /dev/null
+++ b/ios/GymManeWidgets/GymManeWidgets.swift
@@ -0,0 +1,347 @@
+import SwiftUI
+import WidgetKit
+
+private let appGroup = "group.com.gymmane.app"
+private let darkKey = "widget_dark"
+private let themeKey = "widget_theme"
+
+struct DayRing {
+ let index: Int
+ let geo: [CGFloat]
+ let color: Color?
+ let nightColor: Color?
+}
+
+struct ImageEntry: TimelineEntry {
+ let date: Date
+ let image: UIImage?
+ let nightImage: UIImage?
+ let dark: Bool
+ let followsSystem: Bool
+ var ring: DayRing? = nil
+}
+
+struct ImageProvider: TimelineProvider {
+ let key: String
+
+ func placeholder(in context: Context) -> ImageEntry {
+ load()
+ }
+
+ func getSnapshot(in context: Context, completion: @escaping (ImageEntry) -> Void) {
+ completion(load())
+ }
+
+ func getTimeline(in context: Context, completion: @escaping (Timeline<ImageEntry>) -> Void) {
+ completion(Timeline(entries: [load()], policy: .never))
+ }
+
+ func load(_ file: String? = nil, at date: Date = Date()) -> ImageEntry {
+ let name = file ?? key
+ let defaults = UserDefaults(suiteName: appGroup)
+ let dark = (defaults?.object(forKey: darkKey) as? Bool) ?? true
+ let followsSystem = defaults?.string(forKey: themeKey) == "system"
+ return ImageEntry(
+ date: date,
+ image: loadImage(defaults, name: name),
+ nightImage: followsSystem ? loadImage(defaults, name: "\(name)_night") : nil,
+ dark: dark,
+ followsSystem: followsSystem)
+ }
+
+ func loadImage(_ defaults: UserDefaults?, name: String) -> UIImage? {
+ if let container = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: appGroup) {
+ let url = container.appendingPathComponent("home_widget/\(name).png")
+ if let image = UIImage(contentsOfFile: url.path) {
+ return image
+ }
+ }
+ if let path = defaults?.string(forKey: name) {
+ return UIImage(contentsOfFile: path)
+ }
+ return nil
+ }
+}
+
+private func dayStamp(_ date: Date) -> String {
+ let parts = Calendar.current.dateComponents([.year, .month, .day], from: date)
+ return String(format: "%04d-%02d-%02d", parts.year ?? 0, parts.month ?? 0, parts.day ?? 0)
+}
+
+private func weekdayIndex(_ date: Date) -> Int {
+ (Calendar.current.component(.weekday, from: date) + 5) % 7
+}
+
+private func midnights(from now: Date, _ make: (Date) -> ImageEntry) -> Timeline<ImageEntry> {
+ let calendar = Calendar.current
+ let start = calendar.startOfDay(for: now)
+ var entries = [make(now)]
+ for offset in 1...7 {
+ if let next = calendar.date(byAdding: .day, value: offset, to: start) {
+ entries.append(make(next))
+ }
+ }
+ return Timeline(entries: entries, policy: .atEnd)
+}
+
+struct TodayProvider: TimelineProvider {
+ private let images = ImageProvider(key: "today_img")
+
+ func placeholder(in context: Context) -> ImageEntry {
+ entry(at: Date())
+ }
+
+ func getSnapshot(in context: Context, completion: @escaping (ImageEntry) -> Void) {
+ completion(entry(at: Date()))
+ }
+
+ func getTimeline(in context: Context, completion: @escaping (Timeline<ImageEntry>) -> Void) {
+ completion(midnights(from: Date()) { entry(at: $0) })
+ }
+
+ private func entry(at date: Date) -> ImageEntry {
+ let defaults = UserDefaults(suiteName: appGroup)
+ guard let saved = defaults?.string(forKey: "today_stamp"), saved != dayStamp(date) else {
+ return images.load(at: date)
+ }
+ let week = Array(defaults?.string(forKey: "today_week") ?? "")
+ let index = weekdayIndex(date)
+ let planned = index < week.count && week[index] == "1"
+ let entry = images.load(planned ? "today_plan_img" : "today_rest_img", at: date)
+ return entry.image == nil ? images.load(at: date) : entry
+ }
+}
+
+struct WeekProvider: TimelineProvider {
+ private let images = ImageProvider(key: "week_img")
+
+ func placeholder(in context: Context) -> ImageEntry {
+ entry(at: Date())
+ }
+
+ func getSnapshot(in context: Context, completion: @escaping (ImageEntry) -> Void) {
+ completion(entry(at: Date()))
+ }
+
+ func getTimeline(in context: Context, completion: @escaping (Timeline<ImageEntry>) -> Void) {
+ completion(midnights(from: Date()) { entry(at: $0) })
+ }
+
+ private func entry(at date: Date) -> ImageEntry {
+ let defaults = UserDefaults(suiteName: appGroup)
+ let today = weekdayIndex(date)
+ let monday = Calendar.current.date(byAdding: .day, value: -today, to: date) ?? date
+ let saved = defaults?.string(forKey: "week_start")
+ let fresh = saved != nil && saved != dayStamp(monday)
+ var entry = images.load(fresh ? "week_fresh_img" : "week_img", at: date)
+ if entry.image == nil { entry = images.load(at: date) }
+ let done = Array(defaults?.string(forKey: "week_done") ?? "")
+ let doneToday = !fresh && today < done.count && done[today] == "1"
+ let geo = (defaults?.string(forKey: "week_geo") ?? "")
+ .split(separator: ",")
+ .compactMap { Double($0) }
+ .map { CGFloat($0) }
+ if !doneToday && geo.count >= 5 {
+ entry.ring = DayRing(
+ index: today,
+ geo: geo,
+ color: Color(hex: defaults?.string(forKey: "week_ring")),
+ nightColor: Color(hex: defaults?.string(forKey: "week_ring_night")))
+ }
+ return entry
+ }
+}
+
+extension Color {
+ init?(hex: String?) {
+ guard let hex, hex.hasPrefix("#"), let value = UInt64(hex.dropFirst(), radix: 16) else { return nil }
+ self.init(
+ .sRGB,
+ red: Double((value >> 16) & 0xFF) / 255,
+ green: Double((value >> 8) & 0xFF) / 255,
+ blue: Double(value & 0xFF) / 255,
+ opacity: Double((value >> 24) & 0xFF) / 255)
+ }
+}
+
+enum Palette {
+ static func raised(_ dark: Bool) -> Color {
+ dark ? Color(red: 0x1C / 255, green: 0x1C / 255, blue: 0x1C / 255) : Color.white
+ }
+
+ static func text(_ dark: Bool) -> Color {
+ dark ? Color(red: 0xF4 / 255, green: 0xF1 / 255, blue: 0xEC / 255)
+ : Color(red: 0x14 / 255, green: 0x12 / 255, blue: 0x10 / 255)
+ }
+
+ static func textSecondary(_ dark: Bool) -> Color {
+ dark ? Color(red: 0x9A / 255, green: 0x95 / 255, blue: 0x8E / 255)
+ : Color(red: 0x6B / 255, green: 0x66 / 255, blue: 0x60 / 255)
+ }
+}
+
+struct ImageWidgetView: View {
+ let entry: ImageEntry
+ @Environment(\.colorScheme) private var scheme
+
+ private var night: Bool {
+ entry.followsSystem ? scheme == .dark : entry.dark
+ }
+
+ private var shown: UIImage? {
+ night && entry.followsSystem ? (entry.nightImage ?? entry.image) : entry.image
+ }
+
+ var body: some View {
+ Group {
+ if let image = shown {
+ Image(uiImage: image)
+ .resizable()
+ .scaledToFit()
+ .frame(maxWidth: .infinity, maxHeight: .infinity)
+ .overlay(todayRing(image))
+ } else {
+ EmptyState(dark: night)
+ }
+ }
+ .widgetBackground(Palette.raised(night))
+ }
+
+ @ViewBuilder
+ private func todayRing(_ image: UIImage) -> some View {
+ if let ring = entry.ring, image.size.height > 0 {
+ GeometryReader { box in
+ let aspect = image.size.width / image.size.height
+ let width = min(box.size.width, box.size.height * aspect)
+ let height = width / aspect
+ let x = (box.size.width - width) / 2 + (ring.geo[0] + ring.geo[1] * CGFloat(ring.index)) * width
+ let y = (box.size.height - height) / 2 + ring.geo[2] * height
+ let radius = ring.geo[3] * width
+ Circle()
+ .stroke((night && entry.followsSystem ? ring.nightColor : ring.color) ?? Palette.text(night),
+ lineWidth: ring.geo[4] * width)
+ .frame(width: radius * 2, height: radius * 2)
+ .position(x: x, y: y)
+ }
+ }
+ }
+}
+
+struct EmptyState: View {
+ let dark: Bool
+
+ var body: some View {
+ VStack(spacing: 6) {
+ Text("GYMMANE")
+ .font(.system(size: 13, weight: .semibold))
+ .kerning(2)
+ .foregroundColor(Palette.text(dark))
+ Text("widget_open_app")
+ .font(.system(size: 12))
+ .foregroundColor(Palette.textSecondary(dark))
+ .multilineTextAlignment(.center)
+ }
+ .padding(16)
+ .frame(maxWidth: .infinity, maxHeight: .infinity)
+ }
+}
+
+extension View {
+ @ViewBuilder
+ func widgetBackground(_ color: Color) -> some View {
+ if #available(iOS 17.0, *) {
+ containerBackground(for: .widget) { color }
+ } else {
+ background(color)
+ }
+ }
+}
+
+extension WidgetConfiguration {
+ func edgeToEdge() -> some WidgetConfiguration {
+ if #available(iOS 17.0, *) {
+ return contentMarginsDisabled()
+ } else {
+ return self
+ }
+ }
+}
+
+struct HeatmapWidget: Widget {
+ var body: some WidgetConfiguration {
+ StaticConfiguration(kind: "HeatmapWidget", provider: ImageProvider(key: "heatmap_img")) { entry in
+ ImageWidgetView(entry: entry)
+ }
+ .configurationDisplayName("widget_activity_name")
+ .description("widget_activity_desc")
+ .supportedFamilies([.systemMedium])
+ .edgeToEdge()
+ }
+}
+
+struct StatsWidget: Widget {
+ var body: some WidgetConfiguration {
+ StaticConfiguration(kind: "StatsWidget", provider: ImageProvider(key: "stats_img")) { entry in
+ ImageWidgetView(entry: entry)
+ }
+ .configurationDisplayName("widget_stats_name")
+ .description("widget_stats_desc")
+ .supportedFamilies([.systemSmall])
+ .edgeToEdge()
+ }
+}
+
+struct BodyWidget: Widget {
+ var body: some WidgetConfiguration {
+ StaticConfiguration(kind: "BodyWidget", provider: ImageProvider(key: "body_img")) { entry in
+ ImageWidgetView(entry: entry)
+ }
+ .configurationDisplayName("widget_body_name")
+ .description("widget_body_desc")
+ .supportedFamilies([.systemLarge])
+ .edgeToEdge()
+ }
+}
+
+struct TodayWidget: Widget {
+ var body: some WidgetConfiguration {
+ StaticConfiguration(kind: "TodayWidget", provider: TodayProvider()) { entry in
+ ImageWidgetView(entry: entry)
+ }
+ .configurationDisplayName("widget_today_name")
+ .description("widget_today_desc")
+ .supportedFamilies([.systemSmall])
+ .edgeToEdge()
+ }
+}
+
+struct WeekWidget: Widget {
+ var body: some WidgetConfiguration {
+ StaticConfiguration(kind: "WeekWidget", provider: WeekProvider()) { entry in
+ ImageWidgetView(entry: entry)
+ }
+ .configurationDisplayName("widget_week_name")
+ .description("widget_week_desc")
+ .supportedFamilies([.systemMedium])
+ .edgeToEdge()
+ }
+}
+
+@main
+struct GymManeWidgetBundle: WidgetBundle {
+ var body: some Widget {
+ widgets()
+ }
+
+ func widgets() -> some Widget {
+ if #available(iOS 16.2, *) {
+ return WidgetBundleBuilder.buildBlock(
+ HeatmapWidget(), StatsWidget(), BodyWidget(), TodayWidget(), WeekWidget(),
+ WaterWidget(), ProteinWidget(), KcalWidget(), WorkoutLiveActivity())
+ } else {
+ return WidgetBundleBuilder.buildBlock(
+ HeatmapWidget(), StatsWidget(), BodyWidget(), TodayWidget(), WeekWidget(),
+ WaterWidget(), ProteinWidget(), KcalWidget())
+ }
+ }
+}
diff --git a/ios/GymManeWidgets/Info.plist b/ios/GymManeWidgets/Info.plist
new file mode 100644
index 0000000..554c225
--- /dev/null
+++ b/ios/GymManeWidgets/Info.plist
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>$(DEVELOPMENT_LANGUAGE)</string>
+ <key>CFBundleDisplayName</key>
+ <string>GymMane</string>
+ <key>CFBundleExecutable</key>
+ <string>$(EXECUTABLE_NAME)</string>
+ <key>CFBundleIdentifier</key>
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>$(PRODUCT_NAME)</string>
+ <key>CFBundlePackageType</key>
+ <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
+ <key>CFBundleShortVersionString</key>
+ <string>$(MARKETING_VERSION)</string>
+ <key>CFBundleVersion</key>
+ <string>$(CURRENT_PROJECT_VERSION)</string>
+ <key>NSExtension</key>
+ <dict>
+ <key>NSExtensionPointIdentifier</key>
+ <string>com.apple.widgetkit-extension</string>
+ </dict>
+</dict>
+</plist>
diff --git a/ios/GymManeWidgets/NutritionWidgets.swift b/ios/GymManeWidgets/NutritionWidgets.swift
new file mode 100644
index 0000000..16fd573
--- /dev/null
+++ b/ios/GymManeWidgets/NutritionWidgets.swift
@@ -0,0 +1,318 @@
+import AppIntents
+import SwiftUI
+import WidgetKit
+
+private let group = "group.com.gymmane.app"
+private let pendingKey = "nutri_pending"
+private let openURL = URL(string: "gymmane://nutrition")
+
+private func stamp(_ date: Date) -> String {
+ let parts = Calendar.current.dateComponents([.year, .month, .day], from: date)
+ return String(format: "%04d-%02d-%02d", parts.year ?? 0, parts.month ?? 0, parts.day ?? 0)
+}
+
+struct VesselEntry: TimelineEntry {
+ let date: Date
+ let on: Bool
+ let value: Int
+ let goal: Int
+ let step: Int
+ let mode: String
+ let decimal: String
+ let geo: [CGFloat]
+ let base: UIImage?
+ let baseNight: UIImage?
+ let liquid: UIImage?
+ let tone: Color?
+ let toneNight: Color?
+ let text: Color?
+ let textNight: Color?
+ let done: Color?
+ let doneNight: Color?
+ let dark: Bool
+ let followsSystem: Bool
+ let prefix: String
+
+ var ready: Bool { on && liquid != nil && geo.count >= 9 }
+ var level: CGFloat { goal <= 0 ? 0 : min(1, max(0, CGFloat(value) / CGFloat(goal))) }
+
+ var label: String {
+ switch mode {
+ case "L":
+ let tenths = Int((Double(value) / 100).rounded())
+ if tenths % 10 == 0 { return "\(tenths / 10)" }
+ return String(format: "%.1f", Double(tenths) / 10).replacingOccurrences(of: ".", with: decimal)
+ case "oz":
+ return "\(Int((Double(value) / 29.5735).rounded()))"
+ default:
+ return "\(value)"
+ }
+ }
+}
+
+struct VesselProvider: TimelineProvider {
+ let prefix: String
+
+ func placeholder(in context: Context) -> VesselEntry {
+ entry(at: Date())
+ }
+
+ func getSnapshot(in context: Context, completion: @escaping (VesselEntry) -> Void) {
+ completion(entry(at: Date()))
+ }
+
+ func getTimeline(in context: Context, completion: @escaping (Timeline<VesselEntry>) -> Void) {
+ let calendar = Calendar.current
+ let start = calendar.startOfDay(for: Date())
+ var entries = [entry(at: Date())]
+ for offset in 1...7 {
+ if let next = calendar.date(byAdding: .day, value: offset, to: start) {
+ entries.append(entry(at: next))
+ }
+ }
+ completion(Timeline(entries: entries, policy: .atEnd))
+ }
+
+ private func entry(at date: Date) -> VesselEntry {
+ let defaults = UserDefaults(suiteName: group)
+ let number = { (key: String) in Int(defaults?.string(forKey: "\(prefix)_\(key)") ?? "") ?? 0 }
+ let step = number("step")
+ let today = stamp(date)
+ var value = defaults?.string(forKey: "nutri_day") == today ? number("value") : 0
+ let kind = prefix == "water" ? "w" : "s"
+ for item in (defaults?.string(forKey: pendingKey) ?? "").split(separator: ";") {
+ let p = item.split(separator: ",", omittingEmptySubsequences: false)
+ guard p.count == 3, p[0] == kind, let ms = Double(p[1]) else { continue }
+ guard stamp(Date(timeIntervalSince1970: ms / 1000)) == today else { continue }
+ value += kind == "w" ? Int(p[2]) ?? 0 : step
+ }
+ let images = ImageProvider(key: "\(prefix)_base")
+ let count = number("frames_n")
+ let level = number("goal") <= 0 ? 0 : min(1, max(0, Double(value) / Double(number("goal"))))
+ let theme = defaults?.string(forKey: "widget_theme")
+ let followsSystem = theme == "system"
+ return VesselEntry(
+ date: date,
+ on: defaults?.string(forKey: "nutri_on") == "1",
+ value: value,
+ goal: number("goal"),
+ step: step,
+ mode: defaults?.string(forKey: "\(prefix)_mode") ?? "g",
+ decimal: defaults?.string(forKey: "nutri_dec") ?? ".",
+ geo: (defaults?.string(forKey: "nutri_geo") ?? "").split(separator: ",").compactMap { Double($0) }.map { CGFloat($0) },
+ base: images.loadImage(defaults, name: "\(prefix)_base"),
+ baseNight: followsSystem ? images.loadImage(defaults, name: "\(prefix)_base_night") : nil,
+ liquid: count > 0 ? frame(Int((level * Double(count)).rounded())) : nil,
+ tone: Color(hex: defaults?.string(forKey: "\(prefix)_tone")),
+ toneNight: Color(hex: defaults?.string(forKey: "\(prefix)_tone_night")),
+ text: Color(hex: defaults?.string(forKey: "nutri_text")),
+ textNight: Color(hex: defaults?.string(forKey: "nutri_text_night")),
+ done: Color(hex: defaults?.string(forKey: "nutri_done")),
+ doneNight: Color(hex: defaults?.string(forKey: "nutri_done_night")),
+ dark: (defaults?.object(forKey: "widget_dark") as? Bool) ?? true,
+ followsSystem: followsSystem,
+ prefix: prefix)
+ }
+
+ private func frame(_ index: Int) -> UIImage? {
+ guard let container = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: group) else {
+ return nil
+ }
+ let url = container.appendingPathComponent("home_widget/frames/\(prefix)_\(index).png")
+ return UIImage(contentsOfFile: url.path)
+ }
+}
+
+struct VesselWidgetView: View {
+ let entry: VesselEntry
+ @Environment(\.colorScheme) private var scheme
+
+ private var night: Bool {
+ entry.followsSystem ? scheme == .dark : entry.dark
+ }
+
+ private var base: UIImage? {
+ night && entry.followsSystem ? (entry.baseNight ?? entry.base) : entry.base
+ }
+
+ var body: some View {
+ Group {
+ if let image = base {
+ picture(image)
+ } else {
+ EmptyState(dark: night)
+ }
+ }
+ .widgetBackground(Palette.raised(night))
+ .widgetURL(openURL)
+ }
+
+ private func picture(_ image: UIImage) -> some View {
+ GeometryReader { box in
+ let aspect = image.size.width / max(image.size.height, 1)
+ let width = min(box.size.width, box.size.height * aspect)
+ let height = width / aspect
+ ZStack(alignment: .topLeading) {
+ Image(uiImage: image)
+ .resizable()
+ .frame(width: width, height: height)
+ if entry.ready {
+ vessel(width: width, height: height)
+ add(width: width, height: height)
+ }
+ }
+ .frame(width: width, height: height)
+ .position(x: box.size.width / 2, y: box.size.height / 2)
+ }
+ }
+
+ @ViewBuilder
+ private func vessel(width: CGFloat, height: CGFloat) -> some View {
+ let g = entry.geo
+ let finished = entry.goal > 0 && entry.value >= entry.goal
+ let tone = (night && entry.followsSystem ? entry.toneNight : entry.tone) ?? .white
+ let done = (night && entry.followsSystem ? entry.doneNight : entry.done) ?? tone
+ let ink = (night && entry.followsSystem ? entry.textNight : entry.text) ?? Palette.text(night)
+ let room = g[6] * width
+ let fill = room * entry.level
+ let thick = g[8] * height
+
+ if let liquid = entry.liquid {
+ let top = g[1] * height
+ let tall = g[2] * height
+ Image(uiImage: liquid)
+ .resizable()
+ .frame(width: tall * liquid.size.width / max(liquid.size.height, 1), height: tall)
+ .offset(x: g[0] * width, y: top)
+ }
+
+ Text(entry.label)
+ .font(.system(size: g[5] * height, weight: .heavy, design: .rounded))
+ .foregroundColor(finished ? done : ink)
+ .lineLimit(1)
+ .minimumScaleFactor(0.4)
+ .frame(width: room, alignment: .leading)
+ .alignmentGuide(.top) { $0[.firstTextBaseline] }
+ .offset(x: g[3] * width, y: g[4] * height)
+
+ if fill > 0.5 {
+ Capsule()
+ .fill(finished ? done : tone)
+ .frame(width: max(fill, thick), height: thick)
+ .offset(x: g[3] * width, y: g[7] * height)
+ }
+ }
+
+ @ViewBuilder
+ private func add(width: CGFloat, height: CGFloat) -> some View {
+ if #available(iOS 17.0, *) {
+ if entry.step > 0 {
+ Button(intent: AddNutritionIntent(prefix: entry.prefix)) {
+ Color.clear
+ .frame(width: width, height: height * 0.32)
+ .contentShape(Rectangle())
+ }
+ .buttonStyle(.plain)
+ .offset(y: height * 0.68)
+ }
+ }
+ }
+}
+
+@available(iOS 17.0, *)
+struct AddNutritionIntent: AppIntent {
+ static let title: LocalizedStringResource = "widget_add"
+ static let isDiscoverable = false
+
+ @Parameter(title: "prefix")
+ var prefix: String
+
+ init() {}
+
+ init(prefix: String) {
+ self.prefix = prefix
+ }
+
+ func perform() async throws -> some IntentResult {
+ guard let defaults = UserDefaults(suiteName: group), defaults.string(forKey: "nutri_on") == "1" else {
+ return .result()
+ }
+ let step = Int(defaults.string(forKey: "\(prefix)_step") ?? "") ?? 0
+ guard step > 0 else { return .result() }
+ let now = Int(Date().timeIntervalSince1970 * 1000)
+ let entry = prefix == "water"
+ ? "w,\(now),\(step)"
+ : "s,\(now),\(defaults.string(forKey: "\(prefix)_food") ?? "")"
+ let pending = defaults.string(forKey: pendingKey) ?? ""
+ defaults.set(pending.isEmpty ? entry : "\(pending);\(entry)", forKey: pendingKey)
+ WidgetCenter.shared.reloadAllTimelines()
+ return .result()
+ }
+}
+
+struct KcalProvider: TimelineProvider {
+ private let images = ImageProvider(key: "kcal_img")
+
+ func placeholder(in context: Context) -> ImageEntry {
+ entry(at: Date())
+ }
+
+ func getSnapshot(in context: Context, completion: @escaping (ImageEntry) -> Void) {
+ completion(entry(at: Date()))
+ }
+
+ func getTimeline(in context: Context, completion: @escaping (Timeline<ImageEntry>) -> Void) {
+ let calendar = Calendar.current
+ let start = calendar.startOfDay(for: Date())
+ var entries = [entry(at: Date())]
+ for offset in 1...7 {
+ if let next = calendar.date(byAdding: .day, value: offset, to: start) {
+ entries.append(entry(at: next))
+ }
+ }
+ completion(Timeline(entries: entries, policy: .atEnd))
+ }
+
+ private func entry(at date: Date) -> ImageEntry {
+ let defaults = UserDefaults(suiteName: group)
+ let fresh = defaults?.string(forKey: "nutri_day") != stamp(date)
+ let entry = images.load(fresh ? "kcal_fresh_img" : "kcal_img", at: date)
+ return entry.image == nil ? images.load(at: date) : entry
+ }
+}
+
+struct WaterWidget: Widget {
+ var body: some WidgetConfiguration {
+ StaticConfiguration(kind: "WaterWidget", provider: VesselProvider(prefix: "water")) { entry in
+ VesselWidgetView(entry: entry)
+ }
+ .configurationDisplayName("widget_water_name")
+ .description("widget_water_desc")
+ .supportedFamilies([.systemSmall])
+ .edgeToEdge()
+ }
+}
+
+struct ProteinWidget: Widget {
+ var body: some WidgetConfiguration {
+ StaticConfiguration(kind: "ProteinWidget", provider: VesselProvider(prefix: "protein")) { entry in
+ VesselWidgetView(entry: entry)
+ }
+ .configurationDisplayName("widget_protein_name")
+ .description("widget_protein_desc")
+ .supportedFamilies([.systemSmall])
+ .edgeToEdge()
+ }
+}
+
+struct KcalWidget: Widget {
+ var body: some WidgetConfiguration {
+ StaticConfiguration(kind: "KcalWidget", provider: KcalProvider()) { entry in
+ ImageWidgetView(entry: entry).widgetURL(openURL)
+ }
+ .configurationDisplayName("widget_kcal_name")
+ .description("widget_kcal_desc")
+ .supportedFamilies([.systemMedium])
+ .edgeToEdge()
+ }
+}
diff --git a/ios/GymManeWidgets/WorkoutLiveActivity.swift b/ios/GymManeWidgets/WorkoutLiveActivity.swift
new file mode 100644
index 0000000..5eefaed
--- /dev/null
+++ b/ios/GymManeWidgets/WorkoutLiveActivity.swift
@@ -0,0 +1,144 @@
+import ActivityKit
+import SwiftUI
+import WidgetKit
+
+@available(iOS 16.2, *)
+struct WorkoutLiveActivity: Widget {
+ var body: some WidgetConfiguration {
+ ActivityConfiguration(for: WorkoutActivityAttributes.self) { context in
+ LockScreenView(state: context.state)
+ .activityBackgroundTint(LiveColors.card)
+ .activitySystemActionForegroundColor(LiveColors.text)
+ } dynamicIsland: { context in
+ DynamicIsland {
+ DynamicIslandExpandedRegion(.leading) {
+ LiveIcon(size: 36)
+ .padding(.leading, 4)
+ }
+ DynamicIslandExpandedRegion(.trailing) {
+ TrailingStatus(state: context.state, font: .system(size: 22, weight: .bold, design: .rounded))
+ .padding(.trailing, 4)
+ }
+ DynamicIslandExpandedRegion(.center) {
+ VStack(alignment: .leading, spacing: 2) {
+ Text(context.state.exercise)
+ .font(.system(size: 15, weight: .semibold))
+ .foregroundColor(LiveColors.text)
+ .lineLimit(1)
+ Text(context.state.detail)
+ .font(.system(size: 12))
+ .foregroundColor(LiveColors.secondary)
+ .lineLimit(1)
+ }
+ }
+ DynamicIslandExpandedRegion(.bottom) {
+ ExerciseProgress(index: context.state.index, total: context.state.total)
+ .padding(.horizontal, 4)
+ .padding(.top, 2)
+ }
+ } compactLeading: {
+ LiveIcon(size: 22)
+ } compactTrailing: {
+ TrailingStatus(state: context.state, font: .system(size: 13, weight: .semibold, design: .rounded))
+ .frame(maxWidth: 52)
+ } minimal: {
+ LiveIcon(size: 20)
+ }
+ .keylineTint(LiveColors.accent)
+ }
+ }
+}
+
+@available(iOS 16.2, *)
+struct LockScreenView: View {
+ let state: WorkoutActivityAttributes.ContentState
+
+ var body: some View {
+ VStack(alignment: .leading, spacing: 10) {
+ HStack(alignment: .center, spacing: 12) {
+ LiveIcon(size: 40)
+ VStack(alignment: .leading, spacing: 2) {
+ Text(state.exercise)
+ .font(.system(size: 16, weight: .semibold))
+ .foregroundColor(LiveColors.text)
+ .lineLimit(1)
+ Text(state.detail)
+ .font(.system(size: 13))
+ .foregroundColor(LiveColors.secondary)
+ .lineLimit(1)
+ }
+ Spacer(minLength: 8)
+ TrailingStatus(state: state, font: .system(size: 24, weight: .bold, design: .rounded))
+ }
+ ExerciseProgress(index: state.index, total: state.total)
+ }
+ .padding(16)
+ }
+}
+
+@available(iOS 16.2, *)
+struct TrailingStatus: View {
+ let state: WorkoutActivityAttributes.ContentState
+ let font: Font
+
+ var body: some View {
+ if state.paused {
+ Image(systemName: "pause.fill")
+ .font(font)
+ .foregroundColor(LiveColors.secondary)
+ } else if let end = state.restEnd, end > Date() {
+ VStack(alignment: .trailing, spacing: 0) {
+ Text(timerInterval: Date()...end, countsDown: true)
+ .font(font)
+ .monospacedDigit()
+ .multilineTextAlignment(.trailing)
+ .foregroundColor(LiveColors.accent)
+ Text(state.restLabel)
+ .font(.system(size: 9, weight: .semibold))
+ .foregroundColor(LiveColors.secondary)
+ .lineLimit(1)
+ }
+ } else {
+ Text("\(min(state.index + 1, max(state.total, 1)))/\(max(state.total, 1))")
+ .font(font)
+ .monospacedDigit()
+ .foregroundColor(LiveColors.text)
+ }
+ }
+}
+
+struct ExerciseProgress: View {
+ let index: Int
+ let total: Int
+
+ var body: some View {
+ let count = max(total, 1)
+ HStack(spacing: 4) {
+ ForEach(0..<count, id: \.self) { i in
+ Capsule()
+ .fill(i < index ? LiveColors.accent : (i == index ? LiveColors.accent.opacity(0.55) : LiveColors.track))
+ .frame(height: 5)
+ }
+ }
+ }
+}
+
+struct LiveIcon: View {
+ let size: CGFloat
+
+ var body: some View {
+ Image("LiveIcon")
+ .resizable()
+ .scaledToFit()
+ .frame(width: size, height: size)
+ .clipShape(RoundedRectangle(cornerRadius: size * 0.28, style: .continuous))
+ }
+}
+
+enum LiveColors {
+ static let card = Color(red: 0x1C / 255, green: 0x1C / 255, blue: 0x1C / 255)
+ static let text = Color(red: 0xF4 / 255, green: 0xF1 / 255, blue: 0xEC / 255)
+ static let secondary = Color(red: 0x9A / 255, green: 0x95 / 255, blue: 0x8E / 255)
+ static let track = Color.white.opacity(0.14)
+ static let accent = Color(red: 0xD9 / 255, green: 0xA1 / 255, blue: 0x84 / 255)
+}
diff --git a/ios/GymManeWidgets/en.lproj/Localizable.strings b/ios/GymManeWidgets/en.lproj/Localizable.strings
new file mode 100644
index 0000000..0595e74
--- /dev/null
+++ b/ios/GymManeWidgets/en.lproj/Localizable.strings
@@ -0,0 +1,17 @@
+"widget_activity_name" = "Activity";
+"widget_activity_desc" = "Your last months of training and your streak.";
+"widget_stats_name" = "Stats";
+"widget_stats_desc" = "Streak, sessions this week and weekly goal.";
+"widget_body_name" = "Muscle map";
+"widget_body_desc" = "The muscles you trained over the last 7 days.";
+"widget_today_name" = "Today";
+"widget_today_desc" = "Whether today's workout is done or not.";
+"widget_open_app" = "Open GymMane once to fill this widget";
+"widget_week_name" = "This week";
+"widget_week_desc" = "The days you trained this week and your weekly goal.";
+"widget_water_name" = "Water";
+"widget_water_desc" = "Your water today. Tap the bottom to add a glass.";
+"widget_protein_name" = "Protein";
+"widget_protein_desc" = "Your protein today. Tap the bottom to add your shake.";
+"widget_kcal_name" = "Calories";
+"widget_kcal_desc" = "Today's calories and macros.";
diff --git a/ios/GymManeWidgets/es.lproj/Localizable.strings b/ios/GymManeWidgets/es.lproj/Localizable.strings
new file mode 100644
index 0000000..74d4632
--- /dev/null
+++ b/ios/GymManeWidgets/es.lproj/Localizable.strings
@@ -0,0 +1,17 @@
+"widget_activity_name" = "Actividad";
+"widget_activity_desc" = "Tus últimos meses de entreno y tu racha.";
+"widget_stats_name" = "Estadísticas";
+"widget_stats_desc" = "Racha, sesiones de esta semana y objetivo semanal.";
+"widget_body_name" = "Mapa muscular";
+"widget_body_desc" = "Los músculos que has trabajado en los últimos 7 días.";
+"widget_today_name" = "Hoy";
+"widget_today_desc" = "Si el entreno de hoy está hecho o no.";
+"widget_open_app" = "Abre GymMane una vez para rellenar este widget";
+"widget_week_name" = "Esta semana";
+"widget_week_desc" = "Los días que has entrenado esta semana y tu objetivo semanal.";
+"widget_water_name" = "Agua";
+"widget_water_desc" = "Tu agua de hoy. Toca abajo para añadir un vaso.";
+"widget_protein_name" = "Proteína";
+"widget_protein_desc" = "Tu proteína de hoy. Toca abajo para añadir tu batido.";
+"widget_kcal_name" = "Calorías";
+"widget_kcal_desc" = "Las calorías y macros de hoy.";
diff --git a/ios/GymManeWidgets/it.lproj/Localizable.strings b/ios/GymManeWidgets/it.lproj/Localizable.strings
new file mode 100644
index 0000000..018c72a
--- /dev/null
+++ b/ios/GymManeWidgets/it.lproj/Localizable.strings
@@ -0,0 +1,17 @@
+"widget_activity_name" = "Attività";
+"widget_activity_desc" = "I tuoi ultimi mesi di allenamento e la tua serie.";
+"widget_stats_name" = "Statistiche";
+"widget_stats_desc" = "Serie, sessioni di questa settimana e obiettivo settimanale.";
+"widget_body_name" = "Mappa muscolare";
+"widget_body_desc" = "I muscoli che hai allenato negli ultimi 7 giorni.";
+"widget_today_name" = "Oggi";
+"widget_today_desc" = "Se l'allenamento di oggi è fatto o no.";
+"widget_open_app" = "Apri GymMane una volta per riempire questo widget";
+"widget_week_name" = "Questa settimana";
+"widget_week_desc" = "I giorni in cui ti sei allenato questa settimana e il tuo obiettivo.";
+"widget_water_name" = "Water";
+"widget_water_desc" = "Your water today. Tap the bottom to add a glass.";
+"widget_protein_name" = "Protein";
+"widget_protein_desc" = "Your protein today. Tap the bottom to add your shake.";
+"widget_kcal_name" = "Calories";
+"widget_kcal_desc" = "Today's calories and macros.";
diff --git a/ios/GymManeWidgets/pt.lproj/Localizable.strings b/ios/GymManeWidgets/pt.lproj/Localizable.strings
new file mode 100644
index 0000000..93bad66
--- /dev/null
+++ b/ios/GymManeWidgets/pt.lproj/Localizable.strings
@@ -0,0 +1,17 @@
+"widget_activity_name" = "Atividade";
+"widget_activity_desc" = "Seus últimos meses de treino e sua sequência.";
+"widget_stats_name" = "Estatísticas";
+"widget_stats_desc" = "Sequência, sessões desta semana e meta semanal.";
+"widget_body_name" = "Mapa muscular";
+"widget_body_desc" = "Os músculos que você treinou nos últimos 7 dias.";
+"widget_today_name" = "Hoje";
+"widget_today_desc" = "Se o treino de hoje está feito ou não.";
+"widget_open_app" = "Abra o GymMane uma vez para preencher este widget";
+"widget_week_name" = "Esta semana";
+"widget_week_desc" = "Os dias em que treinaste esta semana e o teu objetivo semanal.";
+"widget_water_name" = "Water";
+"widget_water_desc" = "Your water today. Tap the bottom to add a glass.";
+"widget_protein_name" = "Protein";
+"widget_protein_desc" = "Your protein today. Tap the bottom to add your shake.";
+"widget_kcal_name" = "Calories";
+"widget_kcal_desc" = "Today's calories and macros.";
diff --git a/ios/GymManeWidgets/ru.lproj/Localizable.strings b/ios/GymManeWidgets/ru.lproj/Localizable.strings
new file mode 100644
index 0000000..8b4afa4
--- /dev/null
+++ b/ios/GymManeWidgets/ru.lproj/Localizable.strings
@@ -0,0 +1,17 @@
+"widget_activity_name" = "Активность";
+"widget_activity_desc" = "Твои последние месяцы тренировок и твоя серия.";
+"widget_stats_name" = "Статистика";
+"widget_stats_desc" = "Серия, тренировки за неделю и недельная цель.";
+"widget_body_name" = "Карта мышц";
+"widget_body_desc" = "Мышцы, которые ты тренировал за последние 7 дней.";
+"widget_today_name" = "Сегодня";
+"widget_today_desc" = "Сделана ли сегодняшняя тренировка.";
+"widget_open_app" = "Открой GymMane один раз, чтобы заполнить этот виджет";
+"widget_week_name" = "Эта неделя";
+"widget_week_desc" = "Дни тренировок на этой неделе и твоя цель на неделю.";
+"widget_water_name" = "Water";
+"widget_water_desc" = "Your water today. Tap the bottom to add a glass.";
+"widget_protein_name" = "Protein";
+"widget_protein_desc" = "Your protein today. Tap the bottom to add your shake.";
+"widget_kcal_name" = "Calories";
+"widget_kcal_desc" = "Today's calories and macros.";
diff --git a/ios/GymManeWidgets/zh-Hans.lproj/Localizable.strings b/ios/GymManeWidgets/zh-Hans.lproj/Localizable.strings
new file mode 100644
index 0000000..a986cb0
--- /dev/null
+++ b/ios/GymManeWidgets/zh-Hans.lproj/Localizable.strings
@@ -0,0 +1,17 @@
+"widget_activity_name" = "活动";
+"widget_activity_desc" = "最近几个月的训练记录和连续天数。";
+"widget_stats_name" = "统计";
+"widget_stats_desc" = "连续天数、本周训练次数和每周目标。";
+"widget_body_name" = "肌肉图";
+"widget_body_desc" = "最近 7 天练到的肌群。";
+"widget_today_name" = "今天";
+"widget_today_desc" = "今天的训练是否已完成。";
+"widget_open_app" = "打开一次 GymMane 即可填充此小组件";
+"widget_week_name" = "本周";
+"widget_week_desc" = "本周训练过的日子和每周目标。";
+"widget_water_name" = "Water";
+"widget_water_desc" = "Your water today. Tap the bottom to add a glass.";
+"widget_protein_name" = "Protein";
+"widget_protein_desc" = "Your protein today. Tap the bottom to add your shake.";
+"widget_kcal_name" = "Calories";
+"widget_kcal_desc" = "Today's calories and macros.";
diff --git a/ios/Podfile b/ios/Podfile
new file mode 100644
index 0000000..cf07ade
--- /dev/null
+++ b/ios/Podfile
@@ -0,0 +1,42 @@
+platform :ios, '15.0'
+
+# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
+ENV['COCOAPODS_DISABLE_STATS'] = 'true'
+
+project 'Runner', {
+ 'Debug' => :debug,
+ 'Profile' => :release,
+ 'Release' => :release,
+}
+
+def flutter_root
+ generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
+ unless File.exist?(generated_xcode_build_settings_path)
+ raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
+ end
+
+ File.foreach(generated_xcode_build_settings_path) do |line|
+ matches = line.match(/FLUTTER_ROOT\=(.*)/)
+ return matches[1].strip if matches
+ end
+ raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
+end
+
+require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
+
+flutter_ios_podfile_setup
+
+target 'Runner' do
+ use_frameworks!
+
+ flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
+ target 'RunnerTests' do
+ inherit! :search_paths
+ end
+end
+
+post_install do |installer|
+ installer.pods_project.targets.each do |target|
+ flutter_additional_ios_build_settings(target)
+ end
+end
diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..7b6a950
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,937 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 54;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 6F1A0000C0DE000000000060 /* Bridges.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F1A0000C0DE000000000050 /* Bridges.swift */; };
+ 6F1A0000C0DE000000000061 /* GalleryBridge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F1A0000C0DE000000000051 /* GalleryBridge.swift */; };
+ 6F1A0000C0DE000000000062 /* ScreenBridge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F1A0000C0DE000000000052 /* ScreenBridge.swift */; };
+ 6F1A0000C0DE000000000063 /* LiveActivityBridge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F1A0000C0DE000000000053 /* LiveActivityBridge.swift */; };
+ 6F1A0000C0DE000000000064 /* DeviceBridge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F1A0000C0DE000000000054 /* DeviceBridge.swift */; };
+ 6F1A0000C0DE000000000065 /* VoiceBridge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F1A0000C0DE000000000055 /* VoiceBridge.swift */; };
+ 6F1A0000C0DE000000000066 /* IncomingBridge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F1A0000C0DE000000000056 /* IncomingBridge.swift */; };
+ 6F1A0000C0DE000000000067 /* HealthBridge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F1A0000C0DE000000000057 /* HealthBridge.swift */; };
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+ 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
+ 7884E8682EC3CC0700C636F2 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7884E8672EC3CC0400C636F2 /* SceneDelegate.swift */; };
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
+ 6F1A0000C0DE000000000004 /* GymManeWidgets.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F1A0000C0DE000000000003 /* GymManeWidgets.swift */; };
+ 6F1A0000C0DE00000000000D /* WidgetKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6F1A0000C0DE00000000000B /* WidgetKit.framework */; };
+ 6F1A0000C0DE00000000000E /* SwiftUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6F1A0000C0DE00000000000C /* SwiftUI.framework */; };
+ 6F1A0000C0DE000000000019 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6F1A0000C0DE000000000018 /* Localizable.strings */; };
+ 6F1A0000C0DE000000000010 /* GymManeWidgets.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 6F1A0000C0DE000000000002 /* GymManeWidgets.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
+ 6F1A0000C0DE000000000022 /* rest_over.wav in Resources */ = {isa = PBXBuildFile; fileRef = 6F1A0000C0DE000000000021 /* rest_over.wav */; };
+ 6F1A0000C0DE000000000024 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6F1A0000C0DE000000000023 /* InfoPlist.strings */; };
+ 6F1A0000C0DE000000000033 /* WorkoutActivityAttributes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F1A0000C0DE000000000032 /* WorkoutActivityAttributes.swift */; };
+ 6F1A0000C0DE000000000034 /* WorkoutActivityAttributes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F1A0000C0DE000000000032 /* WorkoutActivityAttributes.swift */; };
+ 6F1A0000C0DE000000000036 /* WorkoutLiveActivity.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F1A0000C0DE000000000035 /* WorkoutLiveActivity.swift */; };
+ 6F1A0000C0DE000000000040 /* NutritionWidgets.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F1A0000C0DE00000000003F /* NutritionWidgets.swift */; };
+ 6F1A0000C0DE000000000038 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6F1A0000C0DE000000000037 /* Assets.xcassets */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+ 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 97C146E61CF9000F007C117D /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 97C146ED1CF9000F007C117D;
+ remoteInfo = Runner;
+ };
+ 6F1A0000C0DE000000000012 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 97C146E61CF9000F007C117D /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 6F1A0000C0DE000000000001;
+ remoteInfo = GymManeWidgets;
+ };
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ );
+ name = "Embed Frameworks";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 6F1A0000C0DE000000000011 /* Embed Foundation Extensions */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 13;
+ files = (
+ 6F1A0000C0DE000000000010 /* GymManeWidgets.appex in Embed Foundation Extensions */,
+ );
+ name = "Embed Foundation Extensions";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 6F1A0000C0DE000000000050 /* Bridges.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Bridges.swift; sourceTree = "<group>"; };
+ 6F1A0000C0DE000000000051 /* GalleryBridge.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GalleryBridge.swift; sourceTree = "<group>"; };
+ 6F1A0000C0DE000000000052 /* ScreenBridge.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScreenBridge.swift; sourceTree = "<group>"; };
+ 6F1A0000C0DE000000000053 /* LiveActivityBridge.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LiveActivityBridge.swift; sourceTree = "<group>"; };
+ 6F1A0000C0DE000000000054 /* DeviceBridge.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeviceBridge.swift; sourceTree = "<group>"; };
+ 6F1A0000C0DE000000000055 /* VoiceBridge.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VoiceBridge.swift; sourceTree = "<group>"; };
+ 6F1A0000C0DE000000000056 /* IncomingBridge.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IncomingBridge.swift; sourceTree = "<group>"; };
+ 6F1A0000C0DE000000000057 /* HealthBridge.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HealthBridge.swift; sourceTree = "<group>"; };
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
+ 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
+ 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
+ 7884E8672EC3CC0400C636F2 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
+ 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
+ 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
+ 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+ 6F1A0000C0DE000000000002 /* GymManeWidgets.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = GymManeWidgets.appex; sourceTree = BUILT_PRODUCTS_DIR; };
+ 6F1A0000C0DE000000000003 /* GymManeWidgets.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GymManeWidgets.swift; sourceTree = "<group>"; };
+ 6F1A0000C0DE000000000005 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+ 6F1A0000C0DE000000000006 /* GymManeWidgets.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = GymManeWidgets.entitlements; sourceTree = "<group>"; };
+ 6F1A0000C0DE00000000000B /* WidgetKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WidgetKit.framework; path = System/Library/Frameworks/WidgetKit.framework; sourceTree = SDKROOT; };
+ 6F1A0000C0DE00000000000C /* SwiftUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SwiftUI.framework; path = System/Library/Frameworks/SwiftUI.framework; sourceTree = SDKROOT; };
+ 6F1A0000C0DE000000000020 /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = "<group>"; };
+ 6F1A0000C0DE000000000021 /* rest_over.wav */ = {isa = PBXFileReference; lastKnownFileType = audio.wav; name = rest_over.wav; path = ../../assets/audio/rest_over.wav; sourceTree = "<group>"; };
+ 6F1A0000C0DE00000000001A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = "en.lproj/Localizable.strings"; sourceTree = "<group>"; };
+ 6F1A0000C0DE00000000001B /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = "es.lproj/Localizable.strings"; sourceTree = "<group>"; };
+ 6F1A0000C0DE00000000001C /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = "it.lproj/Localizable.strings"; sourceTree = "<group>"; };
+ 6F1A0000C0DE00000000001D /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = "pt.lproj/Localizable.strings"; sourceTree = "<group>"; };
+ 6F1A0000C0DE00000000001E /* ru */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ru; path = "ru.lproj/Localizable.strings"; sourceTree = "<group>"; };
+ 6F1A0000C0DE00000000001F /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Localizable.strings"; sourceTree = "<group>"; };
+ 6F1A0000C0DE000000000025 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = "en.lproj/InfoPlist.strings"; sourceTree = "<group>"; };
+ 6F1A0000C0DE000000000026 /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = "es.lproj/InfoPlist.strings"; sourceTree = "<group>"; };
+ 6F1A0000C0DE000000000027 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = "it.lproj/InfoPlist.strings"; sourceTree = "<group>"; };
+ 6F1A0000C0DE000000000028 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = "pt.lproj/InfoPlist.strings"; sourceTree = "<group>"; };
+ 6F1A0000C0DE000000000029 /* ru */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ru; path = "ru.lproj/InfoPlist.strings"; sourceTree = "<group>"; };
+ 6F1A0000C0DE00000000002A /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/InfoPlist.strings"; sourceTree = "<group>"; };
+ 6F1A0000C0DE000000000032 /* WorkoutActivityAttributes.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WorkoutActivityAttributes.swift; sourceTree = "<group>"; };
+ 6F1A0000C0DE000000000035 /* WorkoutLiveActivity.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WorkoutLiveActivity.swift; sourceTree = "<group>"; };
+ 6F1A0000C0DE00000000003F /* NutritionWidgets.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NutritionWidgets.swift; sourceTree = "<group>"; };
+ 6F1A0000C0DE000000000037 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 97C146EB1CF9000F007C117D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 6F1A0000C0DE000000000009 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 6F1A0000C0DE00000000000E /* SwiftUI.framework in Frameworks */,
+ 6F1A0000C0DE00000000000D /* WidgetKit.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 6F1A0000C0DE000000000070 /* Bridges */ = {
+ isa = PBXGroup;
+ children = (
+ 6F1A0000C0DE000000000050 /* Bridges.swift */,
+ 6F1A0000C0DE000000000051 /* GalleryBridge.swift */,
+ 6F1A0000C0DE000000000052 /* ScreenBridge.swift */,
+ 6F1A0000C0DE000000000053 /* LiveActivityBridge.swift */,
+ 6F1A0000C0DE000000000054 /* DeviceBridge.swift */,
+ 6F1A0000C0DE000000000055 /* VoiceBridge.swift */,
+ 6F1A0000C0DE000000000056 /* IncomingBridge.swift */,
+ 6F1A0000C0DE000000000057 /* HealthBridge.swift */,
+ );
+ path = Bridges;
+ sourceTree = "<group>";
+ };
+ 331C8082294A63A400263BE5 /* RunnerTests */ = {
+ isa = PBXGroup;
+ children = (
+ 331C807B294A618700263BE5 /* RunnerTests.swift */,
+ );
+ path = RunnerTests;
+ sourceTree = "<group>";
+ };
+ 9740EEB11CF90186004384FC /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */,
+ );
+ name = Flutter;
+ sourceTree = "<group>";
+ };
+ 97C146E51CF9000F007C117D = {
+ isa = PBXGroup;
+ children = (
+ 9740EEB11CF90186004384FC /* Flutter */,
+ 97C146F01CF9000F007C117D /* Runner */,
+ 6F1A0000C0DE000000000039 /* Shared */,
+ 6F1A0000C0DE000000000007 /* GymManeWidgets */,
+ 97C146EF1CF9000F007C117D /* Products */,
+ 331C8082294A63A400263BE5 /* RunnerTests */,
+ 6F1A0000C0DE00000000000F /* Frameworks */,
+ );
+ sourceTree = "<group>";
+ };
+ 97C146EF1CF9000F007C117D /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146EE1CF9000F007C117D /* Runner.app */,
+ 331C8081294A63A400263BE5 /* RunnerTests.xctest */,
+ 6F1A0000C0DE000000000002 /* GymManeWidgets.appex */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ 97C146F01CF9000F007C117D /* Runner */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146FA1CF9000F007C117D /* Main.storyboard */,
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */,
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
+ 97C147021CF9000F007C117D /* Info.plist */,
+ 6F1A0000C0DE000000000023 /* InfoPlist.strings */,
+ 6F1A0000C0DE000000000020 /* Runner.entitlements */,
+ 6F1A0000C0DE000000000021 /* rest_over.wav */,
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
+ 7884E8672EC3CC0400C636F2 /* SceneDelegate.swift */,
+ 6F1A0000C0DE000000000070 /* Bridges */,
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
+ );
+ path = Runner;
+ sourceTree = "<group>";
+ };
+ 6F1A0000C0DE000000000007 /* GymManeWidgets */ = {
+ isa = PBXGroup;
+ children = (
+ 6F1A0000C0DE000000000003 /* GymManeWidgets.swift */,
+ 6F1A0000C0DE000000000035 /* WorkoutLiveActivity.swift */,
+ 6F1A0000C0DE00000000003F /* NutritionWidgets.swift */,
+ 6F1A0000C0DE000000000037 /* Assets.xcassets */,
+ 6F1A0000C0DE000000000018 /* Localizable.strings */,
+ 6F1A0000C0DE000000000005 /* Info.plist */,
+ 6F1A0000C0DE000000000006 /* GymManeWidgets.entitlements */,
+ );
+ path = GymManeWidgets;
+ sourceTree = "<group>";
+ };
+ 6F1A0000C0DE00000000000F /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 6F1A0000C0DE00000000000B /* WidgetKit.framework */,
+ 6F1A0000C0DE00000000000C /* SwiftUI.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
+ 6F1A0000C0DE000000000039 /* Shared */ = {
+ isa = PBXGroup;
+ children = (
+ 6F1A0000C0DE000000000032 /* WorkoutActivityAttributes.swift */,
+ );
+ path = Shared;
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 331C8080294A63A400263BE5 /* RunnerTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
+ buildPhases = (
+ 331C807D294A63A400263BE5 /* Sources */,
+ 331C807F294A63A400263BE5 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 331C8086294A63A400263BE5 /* PBXTargetDependency */,
+ );
+ name = RunnerTests;
+ productName = RunnerTests;
+ productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */;
+ productType = "com.apple.product-type.bundle.unit-test";
+ };
+ 97C146ED1CF9000F007C117D /* Runner */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
+ buildPhases = (
+ 9740EEB61CF901F6004384FC /* Run Script */,
+ 97C146EA1CF9000F007C117D /* Sources */,
+ 97C146EB1CF9000F007C117D /* Frameworks */,
+ 97C146EC1CF9000F007C117D /* Resources */,
+ 9705A1C41CF9048500538489 /* Embed Frameworks */,
+ 6F1A0000C0DE000000000011 /* Embed Foundation Extensions */,
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 6F1A0000C0DE000000000013 /* PBXTargetDependency */,
+ );
+ name = Runner;
+ productName = Runner;
+ productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
+ productType = "com.apple.product-type.application";
+ };
+ 6F1A0000C0DE000000000001 /* GymManeWidgets */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 6F1A0000C0DE000000000017 /* Build configuration list for PBXNativeTarget "GymManeWidgets" */;
+ buildPhases = (
+ 6F1A0000C0DE000000000008 /* Sources */,
+ 6F1A0000C0DE000000000009 /* Frameworks */,
+ 6F1A0000C0DE00000000000A /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = GymManeWidgets;
+ productName = GymManeWidgets;
+ productReference = 6F1A0000C0DE000000000002 /* GymManeWidgets.appex */;
+ productType = "com.apple.product-type.app-extension";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 97C146E61CF9000F007C117D /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ BuildIndependentTargetsInParallel = YES;
+ LastUpgradeCheck = 1510;
+ ORGANIZATIONNAME = "";
+ TargetAttributes = {
+ 331C8080294A63A400263BE5 = {
+ CreatedOnToolsVersion = 14.0;
+ TestTargetID = 97C146ED1CF9000F007C117D;
+ };
+ 6F1A0000C0DE000000000001 = {
+ CreatedOnToolsVersion = 15.0;
+ };
+ 97C146ED1CF9000F007C117D = {
+ CreatedOnToolsVersion = 7.3.1;
+ LastSwiftMigration = 1100;
+ };
+ };
+ };
+ buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ es,
+ it,
+ pt,
+ ru,
+ "zh-Hans",
+ );
+ mainGroup = 97C146E51CF9000F007C117D;
+ productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 97C146ED1CF9000F007C117D /* Runner */,
+ 331C8080294A63A400263BE5 /* RunnerTests */,
+ 6F1A0000C0DE000000000001 /* GymManeWidgets */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 331C807F294A63A400263BE5 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 97C146EC1CF9000F007C117D /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
+ 6F1A0000C0DE000000000024 /* InfoPlist.strings in Resources */,
+ 6F1A0000C0DE000000000022 /* rest_over.wav in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 6F1A0000C0DE00000000000A /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 6F1A0000C0DE000000000019 /* Localizable.strings in Resources */,
+ 6F1A0000C0DE000000000038 /* Assets.xcassets in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
+ isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
+ );
+ name = "Thin Binary";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
+ };
+ 9740EEB61CF901F6004384FC /* Run Script */ = {
+ isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Run Script";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 331C807D294A63A400263BE5 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 97C146EA1CF9000F007C117D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
+ 6F1A0000C0DE000000000033 /* WorkoutActivityAttributes.swift in Sources */,
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
+ 7884E8682EC3CC0700C636F2 /* SceneDelegate.swift in Sources */,
+ 6F1A0000C0DE000000000060 /* Bridges.swift in Sources */,
+ 6F1A0000C0DE000000000061 /* GalleryBridge.swift in Sources */,
+ 6F1A0000C0DE000000000062 /* ScreenBridge.swift in Sources */,
+ 6F1A0000C0DE000000000063 /* LiveActivityBridge.swift in Sources */,
+ 6F1A0000C0DE000000000064 /* DeviceBridge.swift in Sources */,
+ 6F1A0000C0DE000000000065 /* VoiceBridge.swift in Sources */,
+ 6F1A0000C0DE000000000066 /* IncomingBridge.swift in Sources */,
+ 6F1A0000C0DE000000000067 /* HealthBridge.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 6F1A0000C0DE000000000008 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 6F1A0000C0DE000000000004 /* GymManeWidgets.swift in Sources */,
+ 6F1A0000C0DE000000000036 /* WorkoutLiveActivity.swift in Sources */,
+ 6F1A0000C0DE000000000040 /* NutritionWidgets.swift in Sources */,
+ 6F1A0000C0DE000000000034 /* WorkoutActivityAttributes.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+ 331C8086294A63A400263BE5 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 97C146ED1CF9000F007C117D /* Runner */;
+ targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */;
+ };
+ 6F1A0000C0DE000000000013 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 6F1A0000C0DE000000000001 /* GymManeWidgets */;
+ targetProxy = 6F1A0000C0DE000000000012 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
+/* Begin PBXVariantGroup section */
+ 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C146FB1CF9000F007C117D /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "<group>";
+ };
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C147001CF9000F007C117D /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "<group>";
+ };
+ 6F1A0000C0DE000000000018 /* Localizable.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 6F1A0000C0DE00000000001A /* en */,
+ 6F1A0000C0DE00000000001B /* es */,
+ 6F1A0000C0DE00000000001C /* it */,
+ 6F1A0000C0DE00000000001D /* pt */,
+ 6F1A0000C0DE00000000001E /* ru */,
+ 6F1A0000C0DE00000000001F /* zh-Hans */,
+ );
+ name = Localizable.strings;
+ sourceTree = "<group>";
+ };
+ 6F1A0000C0DE000000000023 /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 6F1A0000C0DE000000000025 /* en */,
+ 6F1A0000C0DE000000000026 /* es */,
+ 6F1A0000C0DE000000000027 /* it */,
+ 6F1A0000C0DE000000000028 /* pt */,
+ 6F1A0000C0DE000000000029 /* ru */,
+ 6F1A0000C0DE00000000002A /* zh-Hans */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 249021D3217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 15.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ TARGETED_DEVICE_FAMILY = 1;
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Profile;
+ };
+ 249021D4217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.gymmane.app;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Profile;
+ };
+ 331C8088294A63A400263BE5 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.gymmane.app.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Debug;
+ };
+ 331C8089294A63A400263BE5 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.gymmane.app.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Release;
+ };
+ 331C808A294A63A400263BE5 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.gymmane.app.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Profile;
+ };
+ 97C147031CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 15.0;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = 1;
+ };
+ name = Debug;
+ };
+ 97C147041CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 15.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ TARGETED_DEVICE_FAMILY = 1;
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 97C147061CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.gymmane.app;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Debug;
+ };
+ 97C147071CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.gymmane.app;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Release;
+ };
+ 6F1A0000C0DE000000000014 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB31CF90195004384FC /* Generated.xcconfig */;
+ buildSettings = {
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = GymManeWidgets/GymManeWidgets.entitlements;
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ INFOPLIST_FILE = GymManeWidgets/Info.plist;
+ IPHONEOS_DEPLOYMENT_TARGET = 15.0;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ "@executable_path/../../Frameworks",
+ );
+ MARKETING_VERSION = "$(FLUTTER_BUILD_NAME)";
+ PRODUCT_BUNDLE_IDENTIFIER = com.gymmane.app.widgets;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SKIP_INSTALL = YES;
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_EMIT_LOC_STRINGS = YES;
+ SWIFT_VERSION = 5.0;
+ TARGETED_DEVICE_FAMILY = 1;
+ };
+ name = Debug;
+ };
+ 6F1A0000C0DE000000000015 /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB31CF90195004384FC /* Generated.xcconfig */;
+ buildSettings = {
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = GymManeWidgets/GymManeWidgets.entitlements;
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ INFOPLIST_FILE = GymManeWidgets/Info.plist;
+ IPHONEOS_DEPLOYMENT_TARGET = 15.0;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ "@executable_path/../../Frameworks",
+ );
+ MARKETING_VERSION = "$(FLUTTER_BUILD_NAME)";
+ PRODUCT_BUNDLE_IDENTIFIER = com.gymmane.app.widgets;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SKIP_INSTALL = YES;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ SWIFT_EMIT_LOC_STRINGS = YES;
+ SWIFT_VERSION = 5.0;
+ TARGETED_DEVICE_FAMILY = 1;
+ };
+ name = Release;
+ };
+ 6F1A0000C0DE000000000016 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB31CF90195004384FC /* Generated.xcconfig */;
+ buildSettings = {
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = GymManeWidgets/GymManeWidgets.entitlements;
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ INFOPLIST_FILE = GymManeWidgets/Info.plist;
+ IPHONEOS_DEPLOYMENT_TARGET = 15.0;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ "@executable_path/../../Frameworks",
+ );
+ MARKETING_VERSION = "$(FLUTTER_BUILD_NAME)";
+ PRODUCT_BUNDLE_IDENTIFIER = com.gymmane.app.widgets;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SKIP_INSTALL = YES;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ SWIFT_EMIT_LOC_STRINGS = YES;
+ SWIFT_VERSION = 5.0;
+ TARGETED_DEVICE_FAMILY = 1;
+ };
+ name = Profile;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 331C8088294A63A400263BE5 /* Debug */,
+ 331C8089294A63A400263BE5 /* Release */,
+ 331C808A294A63A400263BE5 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147031CF9000F007C117D /* Debug */,
+ 97C147041CF9000F007C117D /* Release */,
+ 249021D3217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147061CF9000F007C117D /* Debug */,
+ 97C147071CF9000F007C117D /* Release */,
+ 249021D4217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 6F1A0000C0DE000000000017 /* Build configuration list for PBXNativeTarget "GymManeWidgets" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 6F1A0000C0DE000000000014 /* Debug */,
+ 6F1A0000C0DE000000000015 /* Release */,
+ 6F1A0000C0DE000000000016 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 97C146E61CF9000F007C117D /* Project object */;
+}
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..919434a
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "self:">
+ </FileRef>
+</Workspace>
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>IDEDidComputeMac32BitWarning</key>
+ <true/>
+</dict>
+</plist>
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>PreviewsEnabled</key>
+ <false/>
+</dict>
+</plist>
diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 0000000..e3773d4
--- /dev/null
+++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+ LastUpgradeVersion = "1510"
+ version = "1.3">
+ <BuildAction
+ parallelizeBuildables = "YES"
+ buildImplicitDependencies = "YES">
+ <BuildActionEntries>
+ <BuildActionEntry
+ buildForTesting = "YES"
+ buildForRunning = "YES"
+ buildForProfiling = "YES"
+ buildForArchiving = "YES"
+ buildForAnalyzing = "YES">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+ BuildableName = "Runner.app"
+ BlueprintName = "Runner"
+ ReferencedContainer = "container:Runner.xcodeproj">
+ </BuildableReference>
+ </BuildActionEntry>
+ </BuildActionEntries>
+ </BuildAction>
+ <TestAction
+ buildConfiguration = "Debug"
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
+ shouldUseLaunchSchemeArgsEnv = "YES">
+ <MacroExpansion>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+ BuildableName = "Runner.app"
+ BlueprintName = "Runner"
+ ReferencedContainer = "container:Runner.xcodeproj">
+ </BuildableReference>
+ </MacroExpansion>
+ <Testables>
+ <TestableReference
+ skipped = "NO"
+ parallelizable = "YES">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "331C8080294A63A400263BE5"
+ BuildableName = "RunnerTests.xctest"
+ BlueprintName = "RunnerTests"
+ ReferencedContainer = "container:Runner.xcodeproj">
+ </BuildableReference>
+ </TestableReference>
+ </Testables>
+ </TestAction>
+ <LaunchAction
+ buildConfiguration = "Debug"
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
+ launchStyle = "0"
+ useCustomWorkingDirectory = "NO"
+ ignoresPersistentStateOnLaunch = "NO"
+ debugDocumentVersioning = "YES"
+ debugServiceExtension = "internal"
+ enableGPUValidationMode = "1"
+ allowLocationSimulation = "YES">
+ <BuildableProductRunnable
+ runnableDebuggingMode = "0">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+ BuildableName = "Runner.app"
+ BlueprintName = "Runner"
+ ReferencedContainer = "container:Runner.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ </LaunchAction>
+ <ProfileAction
+ buildConfiguration = "Profile"
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ savedToolIdentifier = ""
+ useCustomWorkingDirectory = "NO"
+ debugDocumentVersioning = "YES">
+ <BuildableProductRunnable
+ runnableDebuggingMode = "0">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+ BuildableName = "Runner.app"
+ BlueprintName = "Runner"
+ ReferencedContainer = "container:Runner.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ </ProfileAction>
+ <AnalyzeAction
+ buildConfiguration = "Debug">
+ </AnalyzeAction>
+ <ArchiveAction
+ buildConfiguration = "Release"
+ revealArchiveInOrganizer = "YES">
+ </ArchiveAction>
+</Scheme>
diff --git a/ios/Runner.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..1d526a1
--- /dev/null
+++ b/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "group:Runner.xcodeproj">
+ </FileRef>
+</Workspace>
diff --git a/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>IDEDidComputeMac32BitWarning</key>
+ <true/>
+</dict>
+</plist>
diff --git a/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>PreviewsEnabled</key>
+ <false/>
+</dict>
+</plist>
diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift
new file mode 100644
index 0000000..e7a75d8
--- /dev/null
+++ b/ios/Runner/AppDelegate.swift
@@ -0,0 +1,19 @@
+import Flutter
+import UIKit
+import UserNotifications
+
+@main
+@objc class AppDelegate: FlutterAppDelegate, FlutterImplicitEngineDelegate {
+ override func application(
+ _ application: UIApplication,
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
+ ) -> Bool {
+ UNUserNotificationCenter.current().delegate = self
+ return super.application(application, didFinishLaunchingWithOptions: launchOptions)
+ }
+
+ func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) {
+ GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry)
+ Bridges.register(with: engineBridge.applicationRegistrar.messenger())
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000..d0d98aa
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1 @@
+{"images":[{"size":"20x20","idiom":"iphone","filename":"[email protected]","scale":"2x"},{"size":"20x20","idiom":"iphone","filename":"[email protected]","scale":"3x"},{"size":"29x29","idiom":"iphone","filename":"[email protected]","scale":"1x"},{"size":"29x29","idiom":"iphone","filename":"[email protected]","scale":"2x"},{"size":"29x29","idiom":"iphone","filename":"[email protected]","scale":"3x"},{"size":"40x40","idiom":"iphone","filename":"[email protected]","scale":"2x"},{"size":"40x40","idiom":"iphone","filename":"[email protected]","scale":"3x"},{"size":"57x57","idiom":"iphone","filename":"[email protected]","scale":"1x"},{"size":"57x57","idiom":"iphone","filename":"[email protected]","scale":"2x"},{"size":"60x60","idiom":"iphone","filename":"[email protected]","scale":"2x"},{"size":"60x60","idiom":"iphone","filename":"[email protected]","scale":"3x"},{"size":"20x20","idiom":"ipad","filename":"[email protected]","scale":"1x"},{"size":"20x20","idiom":"ipad","filename":"[email protected]","scale":"2x"},{"size":"29x29","idiom":"ipad","filename":"[email protected]","scale":"1x"},{"size":"29x29","idiom":"ipad","filename":"[email protected]","scale":"2x"},{"size":"40x40","idiom":"ipad","filename":"[email protected]","scale":"1x"},{"size":"40x40","idiom":"ipad","filename":"[email protected]","scale":"2x"},{"size":"50x50","idiom":"ipad","filename":"[email protected]","scale":"1x"},{"size":"50x50","idiom":"ipad","filename":"[email protected]","scale":"2x"},{"size":"72x72","idiom":"ipad","filename":"[email protected]","scale":"1x"},{"size":"72x72","idiom":"ipad","filename":"[email protected]","scale":"2x"},{"size":"76x76","idiom":"ipad","filename":"[email protected]","scale":"1x"},{"size":"76x76","idiom":"ipad","filename":"[email protected]","scale":"2x"},{"size":"83.5x83.5","idiom":"ipad","filename":"[email protected]","scale":"2x"},{"size":"1024x1024","idiom":"ios-marketing","filename":"[email protected]","scale":"1x"}],"info":{"version":1,"author":"xcode"}}
\ No newline at end of file
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..d82093f
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..41dc018
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..f68c9d8
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..4a7d319
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..85e469f
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..7cea13b
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..a45932b
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..f68c9d8
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..1aa028b
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..0fab238
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..af56b77
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..9d9b96c
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..0f15381
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..63deeba
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..0fab238
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..3a0544a
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..49c638a
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..4301228
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..543c300
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..ab66962
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..8b2469b
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/ios/Runner/Assets.xcassets/LaunchBackground.colorset/Contents.json b/ios/Runner/Assets.xcassets/LaunchBackground.colorset/Contents.json
new file mode 100644
index 0000000..ad7064d
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/LaunchBackground.colorset/Contents.json
@@ -0,0 +1,38 @@
+{
+ "colors" : [
+ {
+ "color" : {
+ "color-space" : "srgb",
+ "components" : {
+ "alpha" : "1.000",
+ "blue" : "0xFD",
+ "green" : "0xFE",
+ "red" : "0xFF"
+ }
+ },
+ "idiom" : "universal"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "color" : {
+ "color-space" : "srgb",
+ "components" : {
+ "alpha" : "1.000",
+ "blue" : "0x08",
+ "green" : "0x09",
+ "red" : "0x0A"
+ }
+ },
+ "idiom" : "universal"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ios/Runner/Base.lproj/LaunchScreen.storyboard b/ios/Runner/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 0000000..6950c2a
--- /dev/null
+++ b/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
+ <dependencies>
+ <deployment identifier="iOS"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21678"/>
+ <capability name="Named colors" minToolsVersion="9.0"/>
+ <capability name="Safe area layout guides" minToolsVersion="9.0"/>
+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
+ </dependencies>
+ <scenes>
+ <!--View Controller-->
+ <scene sceneID="EHf-IW-A2E">
+ <objects>
+ <viewController id="01J-lp-oVM" sceneMemberID="viewController">
+ <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
+ <rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+ <viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
+ <color key="backgroundColor" name="LaunchBackground"/>
+ </view>
+ </viewController>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
+ </objects>
+ <point key="canvasLocation" x="53" y="375"/>
+ </scene>
+ </scenes>
+ <resources>
+ <namedColor name="LaunchBackground">
+ <color red="0.039" green="0.035" blue="0.031" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+ </namedColor>
+ </resources>
+</document>
diff --git a/ios/Runner/Base.lproj/Main.storyboard b/ios/Runner/Base.lproj/Main.storyboard
new file mode 100644
index 0000000..f3c2851
--- /dev/null
+++ b/ios/Runner/Base.lproj/Main.storyboard
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
+ <dependencies>
+ <deployment identifier="iOS"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
+ </dependencies>
+ <scenes>
+ <!--Flutter View Controller-->
+ <scene sceneID="tne-QT-ifu">
+ <objects>
+ <viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController">
+ <layoutGuides>
+ <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
+ <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
+ </layoutGuides>
+ <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
+ <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+ <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
+ </view>
+ </viewController>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
+ </objects>
+ </scene>
+ </scenes>
+</document>
diff --git a/ios/Runner/Bridges/Bridges.swift b/ios/Runner/Bridges/Bridges.swift
new file mode 100644
index 0000000..1ae889f
--- /dev/null
+++ b/ios/Runner/Bridges/Bridges.swift
@@ -0,0 +1,13 @@
+import Flutter
+
+enum Bridges {
+ static func register(with messenger: FlutterBinaryMessenger) {
+ GalleryBridge.register(with: messenger)
+ ScreenBridge.register(with: messenger)
+ LiveActivityBridge.register(with: messenger)
+ DeviceBridge.register(with: messenger)
+ VoiceBridge.register(with: messenger)
+ IncomingBridge.register(with: messenger)
+ HealthBridge.register(with: messenger)
+ }
+}
diff --git a/ios/Runner/Bridges/DeviceBridge.swift b/ios/Runner/Bridges/DeviceBridge.swift
new file mode 100644
index 0000000..4711c84
--- /dev/null
+++ b/ios/Runner/Bridges/DeviceBridge.swift
@@ -0,0 +1,43 @@
+import AVFoundation
+import Flutter
+import UIKit
+
+enum DeviceBridge {
+ static func register(with messenger: FlutterBinaryMessenger) {
+ FlutterMethodChannel(name: "gymmane/device", binaryMessenger: messenger)
+ .setMethodCallHandler { call, result in
+ switch call.method {
+ case "isWatch":
+ result(false)
+ case "headphones":
+ result(headphonesConnected())
+ case "isLowEnd":
+ result(ProcessInfo.processInfo.physicalMemory < 3_500_000_000)
+ case "maxRefresh":
+ result(Double(UIScreen.main.maximumFramesPerSecond))
+ case "groupDir":
+ result(FileManager.default
+ .containerURL(forSecurityApplicationGroupIdentifier: "group.com.gymmane.app")?.path)
+ case "setHighRefresh":
+ result(nil)
+ default:
+ result(FlutterMethodNotImplemented)
+ }
+ }
+
+ FlutterMethodChannel(name: "gymmane/haptics", binaryMessenger: messenger)
+ .setMethodCallHandler { call, result in
+ guard call.method == "buzz" else {
+ result(FlutterMethodNotImplemented)
+ return
+ }
+ UINotificationFeedbackGenerator().notificationOccurred(.success)
+ result(nil)
+ }
+ }
+
+ private static func headphonesConnected() -> Bool {
+ let wired: [AVAudioSession.Port] = [.headphones, .bluetoothA2DP, .bluetoothHFP, .bluetoothLE, .usbAudio, .airPlay]
+ return AVAudioSession.sharedInstance().currentRoute.outputs.contains { wired.contains($0.portType) }
+ }
+}
diff --git a/ios/Runner/Bridges/GalleryBridge.swift b/ios/Runner/Bridges/GalleryBridge.swift
new file mode 100644
index 0000000..c90c7ea
--- /dev/null
+++ b/ios/Runner/Bridges/GalleryBridge.swift
@@ -0,0 +1,43 @@
+import Flutter
+import Photos
+
+enum GalleryBridge {
+ static func register(with messenger: FlutterBinaryMessenger) {
+ FlutterMethodChannel(name: "gymmane/gallery", binaryMessenger: messenger)
+ .setMethodCallHandler { call, result in
+ guard call.method == "savePng" else {
+ result(FlutterMethodNotImplemented)
+ return
+ }
+ guard let args = call.arguments as? [String: Any],
+ let bytes = args["bytes"] as? FlutterStandardTypedData
+ else {
+ result(FlutterError(code: "no-bytes", message: "missing image", details: nil))
+ return
+ }
+ save(png: bytes.data) { saved, error in
+ if let error = error {
+ result(FlutterError(code: "save-failed", message: error.localizedDescription, details: nil))
+ } else {
+ result(saved)
+ }
+ }
+ }
+ }
+
+ private static func save(png: Data, completion: @escaping (Bool, Error?) -> Void) {
+ let finish: (Bool, Error?) -> Void = { saved, error in
+ DispatchQueue.main.async { completion(saved, error) }
+ }
+ PHPhotoLibrary.requestAuthorization(for: .addOnly) { status in
+ guard status == .authorized || status == .limited else {
+ finish(false, nil)
+ return
+ }
+ PHPhotoLibrary.shared().performChanges({
+ let request = PHAssetCreationRequest.forAsset()
+ request.addResource(with: .photo, data: png, options: nil)
+ }, completionHandler: finish)
+ }
+ }
+}
diff --git a/ios/Runner/Bridges/HealthBridge.swift b/ios/Runner/Bridges/HealthBridge.swift
new file mode 100644
index 0000000..a7f6676
--- /dev/null
+++ b/ios/Runner/Bridges/HealthBridge.swift
@@ -0,0 +1,419 @@
+import Flutter
+import HealthKit
+import UIKit
+
+enum HealthBridge {
+ private static let store = HKHealthStore()
+ private static let defaults = UserDefaults.standard
+ private static let askedKey = "gymmane.health.asked"
+ private static let metricsKey = "gymmane.health.metrics"
+ private static let stepType = HKQuantityType(.stepCount)
+ private static let perMinute = HKUnit.count().unitDivided(by: .minute())
+
+ static func register(with messenger: FlutterBinaryMessenger) {
+ FlutterMethodChannel(name: "gymmane/health", binaryMessenger: messenger)
+ .setMethodCallHandler { call, result in
+ guard HKHealthStore.isHealthDataAvailable() else {
+ result(call.method == "status" ? "unsupported" : nil)
+ return
+ }
+ let args = call.arguments as? [String: Any] ?? [:]
+ switch call.method {
+ case "takeUsage":
+ result(false)
+ case "status":
+ result(defaults.bool(forKey: askedKey) ? "granted" : "denied")
+ case "request":
+ authorize(read: [stepType], share: [], completion: result)
+ case "openSettings":
+ openHealth(result)
+ case "readSteps":
+ readSteps(args["ranges"] as? [[NSNumber]] ?? [], result)
+ case "metricsGranted":
+ result(defaults.stringArray(forKey: metricsKey) ?? [])
+ case "requestMetrics":
+ requestMetrics(args["metrics"] as? [String] ?? [], result)
+ case "readMetric":
+ readMetric(
+ args["metric"] as? String ?? "",
+ from: date(args["from"]),
+ to: date(args["to"]),
+ result
+ )
+ case "writeWorkout":
+ writeWorkout(args, result)
+ case "deleteWorkout":
+ deleteWorkouts(id: args["id"] as? String ?? "", result)
+ default:
+ result(FlutterMethodNotImplemented)
+ }
+ }
+ }
+
+ private static func date(_ millis: Any?) -> Date {
+ Date(timeIntervalSince1970: ((millis as? NSNumber)?.doubleValue ?? 0) / 1000)
+ }
+
+ private static func reply(_ result: @escaping FlutterResult, _ value: Any?) {
+ DispatchQueue.main.async { result(value) }
+ }
+
+ private static func authorize(
+ read: Set<HKObjectType>,
+ share: Set<HKSampleType>,
+ completion: @escaping FlutterResult
+ ) {
+ store.requestAuthorization(toShare: share, read: read) { ok, _ in
+ if ok { defaults.set(true, forKey: askedKey) }
+ reply(completion, ok)
+ }
+ }
+
+ private static func requestMetrics(_ keys: [String], _ result: @escaping FlutterResult) {
+ let read = Set(keys.flatMap(readTypes))
+ let share: Set<HKSampleType> = keys.contains("writeWorkouts") ? [HKObjectType.workoutType()] : []
+ store.requestAuthorization(toShare: share, read: read) { ok, _ in
+ if ok {
+ defaults.set(true, forKey: askedKey)
+ let known = Set(defaults.stringArray(forKey: metricsKey) ?? [])
+ defaults.set(Array(known.union(keys)), forKey: metricsKey)
+ }
+ reply(result, ok)
+ }
+ }
+
+ private static func openHealth(_ result: @escaping FlutterResult) {
+ guard let health = URL(string: "x-apple-health://"),
+ let settings = URL(string: UIApplication.openSettingsURLString)
+ else {
+ result(false)
+ return
+ }
+ UIApplication.shared.open(health) { opened in
+ if opened {
+ result(true)
+ } else {
+ UIApplication.shared.open(settings) { result($0) }
+ }
+ }
+ }
+
+ private static func readTypes(for key: String) -> [HKObjectType] {
+ switch key {
+ case "restingHr": return [HKQuantityType(.restingHeartRate)]
+ case "heartRate", "workoutHr": return [HKQuantityType(.heartRate)]
+ case "hrv": return [HKQuantityType(.heartRateVariabilitySDNN)]
+ case "spo2": return [HKQuantityType(.oxygenSaturation)]
+ case "respiration": return [HKQuantityType(.respiratoryRate)]
+ case "bloodPressure": return [HKQuantityType(.bloodPressureSystolic), HKQuantityType(.bloodPressureDiastolic)]
+ case "temperature": return [HKQuantityType(.bodyTemperature)]
+ case "sleep": return [HKCategoryType(.sleepAnalysis)]
+ case "distance": return [HKQuantityType(.distanceWalkingRunning)]
+ case "floors": return [HKQuantityType(.flightsClimbed)]
+ case "activeKcal": return [HKQuantityType(.activeEnergyBurned)]
+ case "weight": return [HKQuantityType(.bodyMass)]
+ case "steps": return [stepType]
+ default: return []
+ }
+ }
+
+ private static func readSteps(_ ranges: [[NSNumber]], _ result: @escaping FlutterResult) {
+ guard !ranges.isEmpty else {
+ result(nil)
+ return
+ }
+ var counts = [Int](repeating: 0, count: ranges.count)
+ var failed = false
+ let lock = NSLock()
+ let group = DispatchGroup()
+ for (index, range) in ranges.enumerated() where range.count == 2 {
+ group.enter()
+ total(stepType, from: date(range[0]), to: date(range[1]), unit: .count()) { value in
+ lock.lock()
+ if let value = value { counts[index] = Int(value) } else { failed = true }
+ lock.unlock()
+ group.leave()
+ }
+ }
+ group.notify(queue: .main) { result(failed ? nil : counts) }
+ }
+
+ private static func total(
+ _ type: HKQuantityType,
+ from: Date,
+ to: Date,
+ unit: HKUnit,
+ completion: @escaping (Double?) -> Void
+ ) {
+ let predicate = HKQuery.predicateForSamples(withStart: from, end: to, options: .strictStartDate)
+ let query = HKStatisticsQuery(quantityType: type, quantitySamplePredicate: predicate, options: .cumulativeSum) {
+ _, statistics, error in
+ if let error = error as? HKError, error.code != .errorNoData {
+ completion(nil)
+ return
+ }
+ completion(statistics?.sumQuantity()?.doubleValue(for: unit) ?? 0)
+ }
+ store.execute(query)
+ }
+
+ private static func readMetric(_ key: String, from: Date, to: Date, _ result: @escaping FlutterResult) {
+ guard to > from else {
+ result(nil)
+ return
+ }
+ switch key {
+ case "restingHr":
+ daily(HKQuantityType(.restingHeartRate), unit: perMinute, average: true, from: from, to: to, result)
+ case "heartRate":
+ daily(HKQuantityType(.heartRate), unit: perMinute, average: true, from: from, to: to, result)
+ case "distance":
+ daily(HKQuantityType(.distanceWalkingRunning), unit: .meter(), average: false, from: from, to: to, result)
+ case "floors":
+ daily(HKQuantityType(.flightsClimbed), unit: .count(), average: false, from: from, to: to, result)
+ case "activeKcal":
+ daily(HKQuantityType(.activeEnergyBurned), unit: .kilocalorie(), average: false, from: from, to: to, result)
+ case "hrv":
+ points(HKQuantityType(.heartRateVariabilitySDNN), unit: .secondUnit(with: .milli), scale: 1, from: from, to: to, result)
+ case "spo2":
+ points(HKQuantityType(.oxygenSaturation), unit: .percent(), scale: 100, from: from, to: to, result)
+ case "respiration":
+ points(HKQuantityType(.respiratoryRate), unit: perMinute, scale: 1, from: from, to: to, result)
+ case "temperature":
+ points(HKQuantityType(.bodyTemperature), unit: .degreeCelsius(), scale: 1, from: from, to: to, result)
+ case "workoutHr":
+ points(HKQuantityType(.heartRate), unit: perMinute, scale: 1, from: from, to: to, result)
+ case "weight":
+ points(HKQuantityType(.bodyMass), unit: .gramUnit(with: .kilo), scale: 1, from: from, to: to, result)
+ case "bloodPressure":
+ bloodPressure(from: from, to: to, result)
+ case "sleep":
+ sleep(from: from, to: to, result)
+ default:
+ result(nil)
+ }
+ }
+
+ private static func daily(
+ _ type: HKQuantityType,
+ unit: HKUnit,
+ average: Bool,
+ from: Date,
+ to: Date,
+ _ result: @escaping FlutterResult
+ ) {
+ let anchor = Calendar.current.startOfDay(for: from)
+ let predicate = HKQuery.predicateForSamples(withStart: from, end: to, options: [])
+ let query = HKStatisticsCollectionQuery(
+ quantityType: type,
+ quantitySamplePredicate: predicate,
+ options: average ? .discreteAverage : .cumulativeSum,
+ anchorDate: anchor,
+ intervalComponents: DateComponents(day: 1)
+ )
+ query.initialResultsHandler = { _, collection, _ in
+ guard let collection = collection else {
+ reply(result, nil)
+ return
+ }
+ var rows: [[Double]] = []
+ collection.enumerateStatistics(from: anchor, to: to) { statistics, _ in
+ let quantity = average ? statistics.averageQuantity() : statistics.sumQuantity()
+ if let value = quantity?.doubleValue(for: unit) {
+ rows.append([statistics.startDate.timeIntervalSince1970 * 1000, value])
+ }
+ }
+ reply(result, rows)
+ }
+ store.execute(query)
+ }
+
+ private static func sampleQuery(
+ _ type: HKSampleType,
+ from: Date,
+ to: Date,
+ _ result: @escaping FlutterResult,
+ row: @escaping ([HKSample]) -> [[Double]]
+ ) {
+ let predicate = HKQuery.predicateForSamples(withStart: from, end: to, options: [])
+ let sort = NSSortDescriptor(key: HKSampleSortIdentifierStartDate, ascending: true)
+ let query = HKSampleQuery(sampleType: type, predicate: predicate, limit: 20000, sortDescriptors: [sort]) {
+ _, found, error in
+ if error != nil {
+ reply(result, nil)
+ return
+ }
+ reply(result, row(found ?? []))
+ }
+ store.execute(query)
+ }
+
+ private static func points(
+ _ type: HKQuantityType,
+ unit: HKUnit,
+ scale: Double,
+ from: Date,
+ to: Date,
+ _ result: @escaping FlutterResult
+ ) {
+ sampleQuery(type, from: from, to: to, result) { samples in
+ samples.compactMap { sample in
+ guard let quantity = (sample as? HKQuantitySample)?.quantity else { return nil }
+ return [sample.startDate.timeIntervalSince1970 * 1000, quantity.doubleValue(for: unit) * scale]
+ }
+ }
+ }
+
+ private static func bloodPressure(from: Date, to: Date, _ result: @escaping FlutterResult) {
+ let systolic = HKQuantityType(.bloodPressureSystolic)
+ let diastolic = HKQuantityType(.bloodPressureDiastolic)
+ let unit = HKUnit.millimeterOfMercury()
+ sampleQuery(HKCorrelationType(.bloodPressure), from: from, to: to, result) { samples in
+ samples.compactMap { sample in
+ guard let correlation = sample as? HKCorrelation,
+ let high = (correlation.objects(for: systolic).first as? HKQuantitySample)?.quantity,
+ let low = (correlation.objects(for: diastolic).first as? HKQuantitySample)?.quantity
+ else { return nil }
+ return [
+ sample.startDate.timeIntervalSince1970 * 1000,
+ high.doubleValue(for: unit),
+ low.doubleValue(for: unit),
+ ]
+ }
+ }
+ }
+
+ private static func sleep(from: Date, to: Date, _ result: @escaping FlutterResult) {
+ let inBed = 0
+ let awake = 2
+ let gap: TimeInterval = 3600
+ sampleQuery(HKCategoryType(.sleepAnalysis), from: from, to: to, result) { samples in
+ var rows: [[Double]] = []
+ var minutes = 0.0
+ var covered: Date?
+ var last: Date?
+ func close() {
+ if let end = last, minutes > 0 { rows.append([end.timeIntervalSince1970 * 1000, minutes]) }
+ minutes = 0
+ covered = nil
+ last = nil
+ }
+ for sample in samples {
+ guard let category = sample as? HKCategorySample, category.value != inBed, category.value != awake else {
+ continue
+ }
+ if let end = last, sample.startDate.timeIntervalSince(end) > gap { close() }
+ let begin = max(sample.startDate, covered ?? sample.startDate)
+ minutes += max(0, sample.endDate.timeIntervalSince(begin)) / 60
+ covered = max(covered ?? sample.endDate, sample.endDate)
+ last = covered
+ }
+ close()
+ return rows
+ }
+ }
+
+ private static func writeWorkout(_ args: [String: Any], _ result: @escaping FlutterResult) {
+ let id = args["id"] as? String ?? ""
+ guard store.authorizationStatus(for: HKObjectType.workoutType()) == .sharingAuthorized else {
+ result(false)
+ return
+ }
+ let start = date(args["start"])
+ let end = date(args["end"])
+ guard end > start else {
+ result(false)
+ return
+ }
+ var metadata: [String: Any] = [HKMetadataKeyWasUserEntered: args["manual"] as? Bool ?? false]
+ if !id.isEmpty { metadata[HKMetadataKeyExternalUUID] = id }
+ if let title = args["title"] as? String, !title.isEmpty { metadata["GymManeTitle"] = title }
+ if let notes = args["notes"] as? String, !notes.isEmpty { metadata["GymManeNotes"] = notes }
+
+ let configuration = HKWorkoutConfiguration()
+ configuration.activityType = activity(args["type"] as? String ?? "")
+ let save = {
+ let builder = HKWorkoutBuilder(healthStore: store, configuration: configuration, device: .local())
+ builder.beginCollection(withStart: start) { began, _ in
+ guard began else {
+ reply(result, false)
+ return
+ }
+ builder.addMetadata(metadata) { _, _ in
+ builder.endCollection(withEnd: end) { _, _ in
+ builder.finishWorkout { workout, _ in reply(result, workout != nil) }
+ }
+ }
+ }
+ }
+ if id.isEmpty {
+ save()
+ } else {
+ workouts(id: id) { found in
+ if found.isEmpty {
+ save()
+ } else {
+ store.delete(found) { _, _ in save() }
+ }
+ }
+ }
+ }
+
+ private static func deleteWorkouts(id: String, _ result: @escaping FlutterResult) {
+ guard !id.isEmpty else {
+ result(false)
+ return
+ }
+ workouts(id: id) { found in
+ if found.isEmpty {
+ reply(result, true)
+ } else {
+ store.delete(found) { deleted, _ in reply(result, deleted) }
+ }
+ }
+ }
+
+ private static func workouts(id: String, completion: @escaping ([HKWorkout]) -> Void) {
+ let predicate = HKQuery.predicateForObjects(withMetadataKey: HKMetadataKeyExternalUUID, allowedValues: [id])
+ let query = HKSampleQuery(sampleType: HKObjectType.workoutType(), predicate: predicate, limit: HKObjectQueryNoLimit, sortDescriptors: nil) {
+ _, found, _ in
+ completion((found as? [HKWorkout]) ?? [])
+ }
+ store.execute(query)
+ }
+
+ private static func activity(_ type: String) -> HKWorkoutActivityType {
+ switch type {
+ case "strength": return .traditionalStrengthTraining
+ case "running", "treadmill": return .running
+ case "walking": return .walking
+ case "biking", "stationaryBike": return .cycling
+ case "rowing": return .rowing
+ case "elliptical": return .elliptical
+ case "stairs": return .stairClimbing
+ case "swimming": return .swimming
+ case "hiit": return .highIntensityIntervalTraining
+ case "calisthenics": return .functionalStrengthTraining
+ case "yoga": return .yoga
+ case "stretching": return .flexibility
+ case "football": return .soccer
+ case "basketball": return .basketball
+ case "volleyball": return .volleyball
+ case "tennis": return .tennis
+ case "padel": return .racquetball
+ case "badminton": return .badminton
+ case "squash": return .squash
+ case "table-tennis": return .tableTennis
+ case "handball": return .handball
+ case "rugby": return .rugby
+ case "boxing": return .boxing
+ case "martial-arts": return .martialArts
+ case "climbing": return .climbing
+ case "skiing": return .downhillSkiing
+ case "surfing": return .surfingSports
+ case "dance": return .socialDance
+ case "golf": return .golf
+ default: return .other
+ }
+ }
+}
diff --git a/ios/Runner/Bridges/IncomingBridge.swift b/ios/Runner/Bridges/IncomingBridge.swift
new file mode 100644
index 0000000..764b28f
--- /dev/null
+++ b/ios/Runner/Bridges/IncomingBridge.swift
@@ -0,0 +1,73 @@
+import Flutter
+import UIKit
+
+enum IncomingBridge {
+ static let startWorkoutType = "com.gymmane.app.start"
+
+ private static var incoming: FlutterMethodChannel?
+ private static var openChannel: FlutterMethodChannel?
+ private static var pendingText: String?
+ private static var pendingRoute: String?
+ private static var textReady = false
+ private static var routeReady = false
+
+ static func register(with messenger: FlutterBinaryMessenger) {
+ let incomingChannel = FlutterMethodChannel(name: "gymmane/incoming", binaryMessenger: messenger)
+ incomingChannel.setMethodCallHandler { call, result in
+ guard call.method == "take" else {
+ result(FlutterMethodNotImplemented)
+ return
+ }
+ textReady = true
+ result(pendingText)
+ pendingText = nil
+ }
+ incoming = incomingChannel
+
+ let channel = FlutterMethodChannel(name: "gymmane/open", binaryMessenger: messenger)
+ channel.setMethodCallHandler { call, result in
+ guard call.method == "take" else {
+ result(FlutterMethodNotImplemented)
+ return
+ }
+ routeReady = true
+ result(pendingRoute)
+ pendingRoute = nil
+ }
+ openChannel = channel
+ }
+
+ static func receive(url: URL) {
+ if url.scheme == "gymmane" {
+ if let route = url.host, !route.isEmpty { open(route) }
+ return
+ }
+ guard let text = read(url) else { return }
+ if textReady {
+ incoming?.invokeMethod("incoming", arguments: text)
+ } else {
+ pendingText = text
+ }
+ }
+
+ static func receive(shortcut: UIApplicationShortcutItem) {
+ guard shortcut.type == startWorkoutType else { return }
+ open("play")
+ }
+
+ private static func open(_ route: String) {
+ if routeReady {
+ openChannel?.invokeMethod("open", arguments: route)
+ } else {
+ pendingRoute = route
+ }
+ }
+
+ private static func read(_ url: URL) -> String? {
+ let scoped = url.startAccessingSecurityScopedResource()
+ defer {
+ if scoped { url.stopAccessingSecurityScopedResource() }
+ }
+ return try? String(contentsOf: url, encoding: .utf8)
+ }
+}
diff --git a/ios/Runner/Bridges/LiveActivityBridge.swift b/ios/Runner/Bridges/LiveActivityBridge.swift
new file mode 100644
index 0000000..d0af3eb
--- /dev/null
+++ b/ios/Runner/Bridges/LiveActivityBridge.swift
@@ -0,0 +1,75 @@
+import ActivityKit
+import Flutter
+
+enum LiveActivityBridge {
+ static func register(with messenger: FlutterBinaryMessenger) {
+ FlutterMethodChannel(name: "gymmane/live_activity", binaryMessenger: messenger)
+ .setMethodCallHandler { call, result in
+ guard #available(iOS 16.2, *) else {
+ result(nil)
+ return
+ }
+ switch call.method {
+ case "update":
+ guard let args = call.arguments as? [String: Any] else {
+ result(FlutterError(code: "bad-args", message: "missing state", details: nil))
+ return
+ }
+ Task {
+ await LiveWorkoutActivity.update(args)
+ result(nil)
+ }
+ case "end":
+ Task {
+ await LiveWorkoutActivity.end()
+ result(nil)
+ }
+ default:
+ result(FlutterMethodNotImplemented)
+ }
+ }
+ }
+}
+
+@available(iOS 16.2, *)
+enum LiveWorkoutActivity {
+ private static var current: Activity<WorkoutActivityAttributes>?
+
+ static func update(_ args: [String: Any]) async {
+ let state = WorkoutActivityAttributes.ContentState(
+ exercise: args["exercise"] as? String ?? "GymMane",
+ detail: args["detail"] as? String ?? "",
+ index: args["index"] as? Int ?? 0,
+ total: args["total"] as? Int ?? 0,
+ restEnd: (args["restEnd"] as? NSNumber).map { Date(timeIntervalSince1970: $0.doubleValue / 1000) },
+ restLabel: args["restLabel"] as? String ?? "",
+ paused: args["paused"] as? Bool ?? false
+ )
+ let content = ActivityContent(state: state, staleDate: nil)
+
+ if current == nil {
+ current = Activity<WorkoutActivityAttributes>.activities.first
+ }
+ if let activity = current, activity.activityState == .active {
+ await activity.update(content)
+ return
+ }
+ guard ActivityAuthorizationInfo().areActivitiesEnabled else { return }
+ do {
+ current = try Activity.request(
+ attributes: WorkoutActivityAttributes(startedAt: Date()),
+ content: content,
+ pushType: nil
+ )
+ } catch {
+ NSLog("Live Activity request failed: \(error.localizedDescription)")
+ }
+ }
+
+ static func end() async {
+ for activity in Activity<WorkoutActivityAttributes>.activities {
+ await activity.end(nil, dismissalPolicy: .immediate)
+ }
+ current = nil
+ }
+}
diff --git a/ios/Runner/Bridges/ScreenBridge.swift b/ios/Runner/Bridges/ScreenBridge.swift
new file mode 100644
index 0000000..1bb4d43
--- /dev/null
+++ b/ios/Runner/Bridges/ScreenBridge.swift
@@ -0,0 +1,36 @@
+import Flutter
+import UIKit
+
+enum ScreenBridge {
+ private static var savedBrightness: CGFloat?
+
+ static func register(with messenger: FlutterBinaryMessenger) {
+ FlutterMethodChannel(name: "gymmane/screen", binaryMessenger: messenger)
+ .setMethodCallHandler { call, result in
+ let on = (call.arguments as? [String: Any])?["on"] as? Bool ?? false
+ switch call.method {
+ case "keepOn":
+ UIApplication.shared.isIdleTimerDisabled = on
+ case "bright":
+ setBrightness(on ? 1 : nil)
+ case "dim":
+ setBrightness(on ? 0.02 : nil)
+ default:
+ result(FlutterMethodNotImplemented)
+ return
+ }
+ result(nil)
+ }
+ }
+
+ private static func setBrightness(_ level: CGFloat?) {
+ let screen = UIScreen.main
+ if let level = level {
+ if savedBrightness == nil { savedBrightness = screen.brightness }
+ screen.brightness = level
+ } else if let saved = savedBrightness {
+ screen.brightness = saved
+ savedBrightness = nil
+ }
+ }
+}
diff --git a/ios/Runner/Bridges/VoiceBridge.swift b/ios/Runner/Bridges/VoiceBridge.swift
new file mode 100644
index 0000000..669c1b9
--- /dev/null
+++ b/ios/Runner/Bridges/VoiceBridge.swift
@@ -0,0 +1,92 @@
+import AVFoundation
+import Flutter
+import UIKit
+
+final class VoiceBridge: NSObject, AVSpeechSynthesizerDelegate {
+ private static let shared = VoiceBridge()
+
+ private let synthesizer = AVSpeechSynthesizer()
+ private var waiting: FlutterResult?
+ private var waitingUtterance: AVSpeechUtterance?
+
+ static func register(with messenger: FlutterBinaryMessenger) {
+ shared.synthesizer.delegate = shared
+ FlutterMethodChannel(name: "gymmane/voice", binaryMessenger: messenger)
+ .setMethodCallHandler { call, result in
+ shared.handle(call, result)
+ }
+ }
+
+ private func handle(_ call: FlutterMethodCall, _ result: @escaping FlutterResult) {
+ let args = call.arguments as? [String: Any]
+ let text = args?["text"] as? String ?? ""
+ let lang = args?["lang"] as? String ?? ""
+ switch call.method {
+ case "say":
+ if !text.isEmpty { speak(text, lang) }
+ result(true)
+ case "sayWait":
+ release(false)
+ guard !text.isEmpty else {
+ result(false)
+ return
+ }
+ waiting = result
+ waitingUtterance = speak(text, lang)
+ case "stop":
+ synthesizer.stopSpeaking(at: .immediate)
+ release(false)
+ result(true)
+ case "check":
+ result(lang.isEmpty || voice(for: lang) != nil ? "ok" : "noLang")
+ case "settings":
+ guard let url = URL(string: UIApplication.openSettingsURLString) else {
+ result(false)
+ return
+ }
+ UIApplication.shared.open(url) { result($0) }
+ default:
+ result(FlutterMethodNotImplemented)
+ }
+ }
+
+ @discardableResult
+ private func speak(_ text: String, _ lang: String) -> AVSpeechUtterance {
+ if synthesizer.isSpeaking { synthesizer.stopSpeaking(at: .immediate) }
+ let session = AVAudioSession.sharedInstance()
+ try? session.setCategory(.playback, mode: .spokenAudio, options: [.duckOthers])
+ try? session.setActive(true)
+ let utterance = AVSpeechUtterance(string: text)
+ utterance.voice = voice(for: lang)
+ synthesizer.speak(utterance)
+ return utterance
+ }
+
+ private func voice(for lang: String) -> AVSpeechSynthesisVoice? {
+ let tag = lang.replacingOccurrences(of: "_", with: "-")
+ if let exact = AVSpeechSynthesisVoice(language: tag) { return exact }
+ let base = tag.split(separator: "-").first.map(String.init) ?? tag
+ return AVSpeechSynthesisVoice.speechVoices().first { $0.language.hasPrefix(base) }
+ }
+
+ private func release(_ finished: Bool) {
+ waiting?(finished)
+ waiting = nil
+ waitingUtterance = nil
+ }
+
+ private func finish(_ utterance: AVSpeechUtterance, finished: Bool) {
+ if utterance === waitingUtterance { release(finished) }
+ if !synthesizer.isSpeaking {
+ try? AVAudioSession.sharedInstance().setActive(false, options: .notifyOthersOnDeactivation)
+ }
+ }
+
+ func speechSynthesizer(_ synthesizer: AVSpeechSynthesizer, didFinish utterance: AVSpeechUtterance) {
+ finish(utterance, finished: true)
+ }
+
+ func speechSynthesizer(_ synthesizer: AVSpeechSynthesizer, didCancel utterance: AVSpeechUtterance) {
+ finish(utterance, finished: false)
+ }
+}
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
new file mode 100644
index 0000000..029264f
--- /dev/null
+++ b/ios/Runner/Info.plist
@@ -0,0 +1,143 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CADisableMinimumFrameDurationOnPhone</key>
+ <true/>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>$(DEVELOPMENT_LANGUAGE)</string>
+ <key>CFBundleDisplayName</key>
+ <string>GymMane</string>
+ <key>CFBundleExecutable</key>
+ <string>$(EXECUTABLE_NAME)</string>
+ <key>CFBundleIdentifier</key>
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleLocalizations</key>
+ <array>
+ <string>en</string>
+ <string>es</string>
+ <string>it</string>
+ <string>pt</string>
+ <string>ru</string>
+ <string>zh-Hans</string>
+ <string>zh-Hant</string>
+ <string>ar</string>
+ <string>de</string>
+ <string>fa</string>
+ <string>fr</string>
+ <string>ja</string>
+ <string>ko</string>
+ <string>nl</string>
+ <string>pl</string>
+ <string>tr</string>
+ <string>uk</string>
+ <string>vi</string>
+ </array>
+ <key>CFBundleName</key>
+ <string>GymMane</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>$(FLUTTER_BUILD_NAME)</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>$(FLUTTER_BUILD_NUMBER)</string>
+ <key>CFBundleURLTypes</key>
+ <array>
+ <dict>
+ <key>CFBundleURLName</key>
+ <string>com.gymmane.app</string>
+ <key>CFBundleURLSchemes</key>
+ <array>
+ <string>gymmane</string>
+ </array>
+ </dict>
+ </array>
+ <key>CFBundleDocumentTypes</key>
+ <array>
+ <dict>
+ <key>CFBundleTypeName</key>
+ <string>GymMane data</string>
+ <key>CFBundleTypeRole</key>
+ <string>Viewer</string>
+ <key>LSHandlerRank</key>
+ <string>Alternate</string>
+ <key>LSItemContentTypes</key>
+ <array>
+ <string>public.json</string>
+ <string>public.plain-text</string>
+ </array>
+ </dict>
+ </array>
+ <key>ITSAppUsesNonExemptEncryption</key>
+ <false/>
+ <key>LSApplicationQueriesSchemes</key>
+ <array>
+ <string>https</string>
+ <string>mailto</string>
+ </array>
+ <key>LSRequiresIPhoneOS</key>
+ <true/>
+ <key>NSHealthShareUsageDescription</key>
+ <string>GymMane reads your steps, sleep and heart data from Health to show them next to your training.</string>
+ <key>NSHealthUpdateUsageDescription</key>
+ <string>GymMane saves your finished workouts to Health.</string>
+ <key>NSCameraUsageDescription</key>
+ <string>GymMane uses the camera to take your progress photos.</string>
+ <key>NSPhotoLibraryAddUsageDescription</key>
+ <string>GymMane saves the cards you share to your photo library.</string>
+ <key>NSPhotoLibraryUsageDescription</key>
+ <string>GymMane opens your photo library to pick progress photos, exercise media and backgrounds.</string>
+ <key>NSSupportsLiveActivities</key>
+ <true/>
+ <key>UIApplicationSceneManifest</key>
+ <dict>
+ <key>UIApplicationSupportsMultipleScenes</key>
+ <false/>
+ <key>UISceneConfigurations</key>
+ <dict>
+ <key>UIWindowSceneSessionRoleApplication</key>
+ <array>
+ <dict>
+ <key>UISceneClassName</key>
+ <string>UIWindowScene</string>
+ <key>UISceneConfigurationName</key>
+ <string>flutter</string>
+ <key>UISceneDelegateClassName</key>
+ <string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
+ <key>UISceneStoryboardFile</key>
+ <string>Main</string>
+ </dict>
+ </array>
+ </dict>
+ </dict>
+ <key>UIApplicationShortcutItems</key>
+ <array>
+ <dict>
+ <key>UIApplicationShortcutItemIconType</key>
+ <string>UIApplicationShortcutIconTypePlay</string>
+ <key>UIApplicationShortcutItemTitle</key>
+ <string>Start workout</string>
+ <key>UIApplicationShortcutItemType</key>
+ <string>com.gymmane.app.start</string>
+ </dict>
+ </array>
+ <key>UIApplicationSupportsIndirectInputEvents</key>
+ <true/>
+ <key>UILaunchStoryboardName</key>
+ <string>LaunchScreen</string>
+ <key>UIMainStoryboardFile</key>
+ <string>Main</string>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+ <key>UIUserInterfaceStyle</key>
+ <string>Automatic</string>
+</dict>
+</plist>
diff --git a/ios/Runner/Runner-Bridging-Header.h b/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 0000000..308a2a5
--- /dev/null
+++ b/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/ios/Runner/Runner.entitlements b/ios/Runner/Runner.entitlements
new file mode 100644
index 0000000..45ff804
--- /dev/null
+++ b/ios/Runner/Runner.entitlements
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>com.apple.developer.healthkit</key>
+ <true/>
+ <key>com.apple.developer.healthkit.access</key>
+ <array/>
+ <key>com.apple.developer.usernotifications.time-sensitive</key>
+ <true/>
+ <key>com.apple.security.application-groups</key>
+ <array>
+ <string>group.com.gymmane.app</string>
+ </array>
+</dict>
+</plist>
diff --git a/ios/Runner/SceneDelegate.swift b/ios/Runner/SceneDelegate.swift
new file mode 100644
index 0000000..cb05a2d
--- /dev/null
+++ b/ios/Runner/SceneDelegate.swift
@@ -0,0 +1,30 @@
+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)
+ }
+}
diff --git a/ios/Runner/en.lproj/InfoPlist.strings b/ios/Runner/en.lproj/InfoPlist.strings
new file mode 100644
index 0000000..3ba9c99
--- /dev/null
+++ b/ios/Runner/en.lproj/InfoPlist.strings
@@ -0,0 +1,3 @@
+"NSCameraUsageDescription" = "GymMane uses the camera to take your progress photos.";
+"NSPhotoLibraryUsageDescription" = "GymMane opens your photo library to pick progress photos, exercise media and backgrounds.";
+"NSPhotoLibraryAddUsageDescription" = "GymMane saves the cards you share to your photo library.";
diff --git a/ios/Runner/es.lproj/InfoPlist.strings b/ios/Runner/es.lproj/InfoPlist.strings
new file mode 100644
index 0000000..020be1b
--- /dev/null
+++ b/ios/Runner/es.lproj/InfoPlist.strings
@@ -0,0 +1,6 @@
+"NSCameraUsageDescription" = "GymMane usa la cámara para hacer tus fotos de progreso.";
+"NSPhotoLibraryUsageDescription" = "GymMane abre tu galería para elegir fotos de progreso, vídeos de ejercicios y fondos.";
+"NSPhotoLibraryAddUsageDescription" = "GymMane guarda en tu galería las tarjetas que compartes.";
+"NSHealthShareUsageDescription" = "GymMane lee tus pasos, sueño y datos del corazón de Salud para mostrarlos junto a tu entrenamiento.";
+"NSHealthUpdateUsageDescription" = "GymMane guarda tus entrenos terminados en Salud.";
+"Start workout" = "Empezar entreno";
diff --git a/ios/Runner/it.lproj/InfoPlist.strings b/ios/Runner/it.lproj/InfoPlist.strings
new file mode 100644
index 0000000..bf78183
--- /dev/null
+++ b/ios/Runner/it.lproj/InfoPlist.strings
@@ -0,0 +1,3 @@
+"NSCameraUsageDescription" = "GymMane usa la fotocamera per scattare le tue foto dei progressi.";
+"NSPhotoLibraryUsageDescription" = "GymMane apre la tua libreria foto per scegliere foto dei progressi, video degli esercizi e sfondi.";
+"NSPhotoLibraryAddUsageDescription" = "GymMane salva nella tua libreria foto le card che condividi.";
diff --git a/ios/Runner/pt.lproj/InfoPlist.strings b/ios/Runner/pt.lproj/InfoPlist.strings
new file mode 100644
index 0000000..754ad5c
--- /dev/null
+++ b/ios/Runner/pt.lproj/InfoPlist.strings
@@ -0,0 +1,3 @@
+"NSCameraUsageDescription" = "O GymMane usa a câmera para tirar suas fotos de progresso.";
+"NSPhotoLibraryUsageDescription" = "O GymMane abre sua galeria para escolher fotos de progresso, vídeos de exercícios e planos de fundo.";
+"NSPhotoLibraryAddUsageDescription" = "O GymMane salva na sua galeria os cartões que você compartilha.";
diff --git a/ios/Runner/ru.lproj/InfoPlist.strings b/ios/Runner/ru.lproj/InfoPlist.strings
new file mode 100644
index 0000000..372b197
--- /dev/null
+++ b/ios/Runner/ru.lproj/InfoPlist.strings
@@ -0,0 +1,3 @@
+"NSCameraUsageDescription" = "GymMane использует камеру, чтобы делать фото твоего прогресса.";
+"NSPhotoLibraryUsageDescription" = "GymMane открывает твою галерею, чтобы выбрать фото прогресса, видео упражнений и фоны.";
+"NSPhotoLibraryAddUsageDescription" = "GymMane сохраняет в твою галерею карточки, которыми ты делишься.";
diff --git a/ios/Runner/zh-Hans.lproj/InfoPlist.strings b/ios/Runner/zh-Hans.lproj/InfoPlist.strings
new file mode 100644
index 0000000..1ce8043
--- /dev/null
+++ b/ios/Runner/zh-Hans.lproj/InfoPlist.strings
@@ -0,0 +1,3 @@
+"NSCameraUsageDescription" = "GymMane 使用相机拍摄你的进度照片。";
+"NSPhotoLibraryUsageDescription" = "GymMane 需要访问相册,以选择进度照片、动作视频和背景图。";
+"NSPhotoLibraryAddUsageDescription" = "GymMane 会把你分享的卡片保存到相册。";
diff --git a/ios/RunnerTests/RunnerTests.swift b/ios/RunnerTests/RunnerTests.swift
new file mode 100644
index 0000000..8324d0b
--- /dev/null
+++ b/ios/RunnerTests/RunnerTests.swift
@@ -0,0 +1,10 @@
+import Flutter
+import UIKit
+import XCTest
+
+class RunnerTests: XCTestCase {
+
+ func testExample() {
+ }
+
+}
diff --git a/ios/Shared/WorkoutActivityAttributes.swift b/ios/Shared/WorkoutActivityAttributes.swift
new file mode 100644
index 0000000..d47a2e2
--- /dev/null
+++ b/ios/Shared/WorkoutActivityAttributes.swift
@@ -0,0 +1,17 @@
+import ActivityKit
+import Foundation
+
+@available(iOS 16.2, *)
+struct WorkoutActivityAttributes: ActivityAttributes {
+ struct ContentState: Codable, Hashable {
+ var exercise: String
+ var detail: String
+ var index: Int
+ var total: Int
+ var restEnd: Date?
+ var restLabel: String
+ var paused: Bool
+ }
+
+ var startedAt: Date
+}