Skip to content

Commit

Permalink
Merge branch 'develop' into feat/#122-watch-workout
Browse files Browse the repository at this point in the history
  • Loading branch information
mooyoung2309 committed Jul 7, 2023
2 parents 7911848 + b5942ca commit 4c96a87
Show file tree
Hide file tree
Showing 50 changed files with 506 additions and 720 deletions.
13 changes: 3 additions & 10 deletions Projects/App/Sources/RootApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,15 @@
//

import SwiftUI

import ComposableArchitecture

import Feature
import Shared
import Core

//class AppDelegate: NSObject, UIApplicationDelegate {
// func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
// HealthKitManager.shared.setting()
// return true
// }
//}

@main
struct RootApp: App {
// @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate

struct RootApp: App {
var body: some Scene {
WindowGroup {
RootView(store: .init(initialState: RootStore.State(), reducer: RootStore()._printChanges()))
Expand Down
7 changes: 4 additions & 3 deletions Projects/App/Sources/RootStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import Foundation

import ComposableArchitecture

import Feature

public struct RootStore: ReducerProtocol {
Expand All @@ -17,8 +18,8 @@ public struct RootStore: ReducerProtocol {
case mainTab(MainTabViewStore.State)

public init() {
// self = .onboarding(.init())
self = .mainTab(.init())
self = .onboarding(.init())
// self = .mainTab(.init())
}
}

Expand All @@ -38,7 +39,7 @@ public struct RootStore: ReducerProtocol {
state = .mainTab(.init())
return .none

default :
default:
return .none

}
Expand Down
32 changes: 0 additions & 32 deletions Projects/Core/HealthKit/Interface/Sources/HealthKitError.swift

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
//
// HealthKitManagerType.swift
// CoreHealthKitInterface
//
// Created by 송영모 on 2023/07/03.
//

import Foundation

import HealthKit

public protocol HealthKitManagerType {
/// HealthKit에 대한 인증을 진행하고, 백그라운드 딜리버리를 등록합니다.
///
/// - Parameters:
/// - toShare: 쓰기 목록
/// - toRead: 읽기 목록
func requestAuthorizationAndRegisterBackgroundDelivery(
toShare: Set<HKSampleType>?,
toRead: Set<HKSampleType>?
)

/// HKSampleType에 대한 변경 점을 Observe 하여, 데이터를 계속해서 받아옵니다.
///
/// - Parameters:
/// - toObserve: 구독 목록
/// - updateAnchorQueryHandler: 업데이트 핸들러
func requestObserverQuery(
toObserve: Set<HKSampleType>?,
updateAnchorQueryHandler: @escaping (HKAnchoredObjectQuery, [HKSample]?, [HKDeletedObject]?, HKQueryAnchor?, Error?) -> Void
)
}
Loading

0 comments on commit 4c96a87

Please sign in to comment.