Skip to content

Commit

Permalink
🚚 LiveActivity 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
SwiftyJunnos committed Jan 8, 2024
1 parent 15879a1 commit 4983096
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 309 deletions.
68 changes: 0 additions & 68 deletions iOS/Features/Home/Sources/Home/MusicSpotLiveActivity.swift

This file was deleted.

19 changes: 0 additions & 19 deletions iOS/Features/Home/Sources/Home/Presentation/HomeViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -137,31 +137,12 @@ private extension HomeViewModel {
case .success(let recordingJourney):
self.state.startedJourney.send(recordingJourney)
self.state.isRecording.send(true)

if #available(iOS 16.2, *) {
self.requestLiveActivity()
}
case .failure(let error):
MSLogger.make(category: .home).error("\(error)")
}
}
}

@available(iOS 16.2, *)
func requestLiveActivity() {
let recordingJourney = RecordingJourneyAttributes()
let initialState = RecordingJourneyAttributes.ContentState(travelingDistance: 512.0, numberOfSpots: 5)
let content = ActivityContent(state: initialState, staleDate: nil, relevanceScore: 0.0)

do {
let activity = try Activity.request(attributes: recordingJourney,
content: content,
pushType: nil)
} catch {

}
}

func fetchJourneys(minCoordinate: Coordinate, maxCoordinate: Coordinate) {
guard let userID = self.userRepository.fetchUUID() else { return }

Expand Down
19 changes: 0 additions & 19 deletions iOS/Features/Home/Sources/Home/RecordingJourneyAttributes.swift

This file was deleted.

11 changes: 0 additions & 11 deletions iOS/MusicSpot/LiveActivity/Info.plist

This file was deleted.

Loading

0 comments on commit 4983096

Please sign in to comment.