Переглянути джерело

Migrate main LoopFollow target to a synchronized folder group (#702)

Convert the main LoopFollow/ group from explicit file enumeration to a
PBXFileSystemSynchronizedRootGroup so files are picked up from disk. This
shrinks project.pbxproj from ~2900 to ~880 lines and removes it as a source
of merge conflicts when files are added, moved, or deleted.

Shared LiveActivity/GlucoseConversion sources that also build into the Live
Activity extension are moved to a new Shared/ folder referenced by both
targets. Info.plist is kept out of the copy phase via a membership exception.

Also remove dead code that was on disk but never in the build: a stale
duplicate RestartLiveActivityIntent, four unreferenced orphan files, and a
leftover Core Data model unused since the initial commit.
Jonas Björkert 1 тиждень тому
батько
коміт
0501faf059

Різницю між файлами не показано, бо вона завелика
+ 21 - 2111
LoopFollow.xcodeproj/project.pbxproj


+ 0 - 9
LoopFollow/Alarm/SnoozeState.swift

@@ -1,9 +0,0 @@
-// LoopFollow
-// SnoozeState.swift
-
-import Foundation
-
-struct SnoozeState: Codable {
-    var isSnoozed: Bool = false
-    var snoozeUntil: Date?
-}

+ 0 - 31
LoopFollow/BackgroundRefresh/BT/DexcomG7HeartBeat.swift

@@ -1,31 +0,0 @@
-// LoopFollow
-// DexcomG7HeartBeat.swift
-
-// Denna behövs
-
-import Foundation
-
-/// A simple class to represent the Dexcom G7 Heartbeat.
-/// It wraps around a `BLEPeripheral` to store relevant information.
-public class DexcomG7HeartBeat {
-    // MARK: - Properties
-
-    /// The BLEPeripheral instance associated with this heartbeat.
-    public let blePeripheral: BLEPeripheral
-
-    // MARK: - Initialization
-
-    /// Initializes a new DexcomG7HeartBeat instance.
-    /// - Parameters:
-    ///   - address: The unique address of the BLE device.
-    ///   - name: The name of the BLE device.
-    ///   - alias: An optional alias for the device.
-    public init(address: String, name: String, alias: String? = nil) {
-        blePeripheral = BLEPeripheral(
-            address: address,
-            name: name,
-            alias: alias,
-            peripheralType: .DexcomG7HeartBeatType
-        )
-    }
-}

RestartLiveActivityIntent.swift → LoopFollow/LiveActivity/RestartLiveActivityIntent.swift


+ 0 - 9
LoopFollow/Storage/Framework/UserData.xcdatamodeld/UserData.xcdatamodel/contents

@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="16119" systemVersion="19E287" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
-    <entity name="Nightscout" representedClassName="Nightscout" syncable="YES" codeGenerationType="class">
-        <attribute name="url" optional="YES" attributeType="String"/>
-    </entity>
-    <elements>
-        <element name="Nightscout" positionX="-63" positionY="-18" width="128" height="58"/>
-    </elements>
-</model>

+ 0 - 8
LoopFollow/ViewControllers/AppStateViewController.swift

@@ -1,8 +0,0 @@
-// LoopFollow
-// AppStateViewController.swift
-
-import Foundation
-
-class AppStateViewController {
-    var appStateController: AppStateController?
-}

LoopFollow/LiveActivity/AppGroupID.swift → Shared/AppGroupID.swift


LoopFollow/Helpers/GlucoseConversion.swift → Shared/GlucoseConversion.swift


LoopFollow/LiveActivity/GlucoseLiveActivityAttributes.swift → Shared/GlucoseLiveActivityAttributes.swift


LoopFollow/LiveActivity/GlucoseSnapshot.swift → Shared/GlucoseSnapshot.swift


LoopFollow/LiveActivity/LAAppGroupSettings.swift → Shared/LAAppGroupSettings.swift


LoopFollow/LiveActivity/LALivenessMarker.swift → Shared/LALivenessMarker.swift


LoopFollow/LiveActivity/LALivenessStore.swift → Shared/LALivenessStore.swift