Skip to content

Commit

Permalink
task 3
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvna1k committed Jan 17, 2024
1 parent 365126e commit b48a328
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions Behavior/BehaviorDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ import SwiftUI
class BehaviorDelegate: SpeziAppDelegate {
override var configuration: Configuration {
Configuration(standard: BehaviorStandard()) {

Check failure on line 23 in Behavior/BehaviorDelegate.swift

View workflow job for this annotation

GitHub Actions / SwiftLint / SwiftLint

Closure Body Length Violation: Closure body should span 35 lines or less excluding comments and whitespace: currently spans 41 lines (closure_body_length)
if HKHealthStore.isHealthDataAvailable() {
HealthKit {
CollectSample(
HKQuantityType(.stepCount),
deliverySetting: .background(.afterAuthorizationAndApplicationWillLaunch)
)
CollectSample(
HKQuantityType(.activeEnergyBurned),
deliverySetting: .anchorQuery(.afterAuthorizationAndApplicationWillLaunch)
)
}
}

if !FeatureFlags.disableFirebase {
AccountConfiguration(configuration: [
.requires(\.userId),
Expand Down
3 changes: 2 additions & 1 deletion Behavior/Onboarding/OnboardingFlow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ struct OnboardingFlow: View {
HealthKitPermissions()
}

if !localNotificationAuthorization {
/*if !localNotificationAuthorization {
NotificationPermissions()
}
*/
}
.task {
localNotificationAuthorization = await scheduler.localNotificationAuthorization
Expand Down

0 comments on commit b48a328

Please sign in to comment.