Skip to content

Commit

Permalink
Merge pull request #2 from oversizedev/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
aromanov91 authored Nov 11, 2024
2 parents d67eef6 + 49504ef commit c31b6b7
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ let package = Package(
.library(name: "OversizeNotificationService", targets: ["OversizeNotificationService"]),
.library(name: "OversizeFileManagerService", targets: ["OversizeFileManagerService"]),
],
dependencies: remoteDependencies,
dependencies: dependencies,
targets: [
.target(
name: "OversizeServices",
Expand Down
2 changes: 1 addition & 1 deletion Sources/OversizeCalendarService/CalendarService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import OversizeCore
import OversizeModels

#if !os(tvOS)
public actor CalendarService {
public class CalendarService: @unchecked Sendable {
private let eventStore: EKEventStore = .init()
public init() {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import SwiftUI

#if os(iOS) || os(macOS)
extension EKCalendar: @retroactive Identifiable {
extension EKCalendar: Identifiable {
public var id: String {
calendarIdentifier
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import OversizeCore
import SwiftUI

#if os(iOS) || os(macOS)
extension EKEvent: @retroactive Identifiable {
extension EKEvent: Identifiable {
public var color: Color {
Color(calendar.cgColor)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Foundation

#if !os(tvOS)
public enum CalendarAlertsTimes: CaseIterable, Equatable, Identifiable, Sendable {
public enum CalendarAlertsTimes: CaseIterable, Equatable, Identifiable, @unchecked Sendable {
case oneMinuteBefore, fiveMinutesBefore, tenMinutesBefore, thirtyMinutesBefore, oneHourBefore, twoHoursBefore, oneDayBefore, twoDaysBefore, oneWeekBefore, custom(EKAlarm)

public var title: String {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Foundation

#if !os(tvOS)
public enum CalendarEventRecurrenceRules: CaseIterable, Equatable, Identifiable, Sendable {
public enum CalendarEventRecurrenceRules: CaseIterable, Equatable, Identifiable, @unchecked Sendable {
case never, everyDay, everyWorkingDay, everyWeekend, everyWeek, everyTwoWeeks, everyMonth, everyYear, custom(EKRecurrenceRule?)

public var rule: EKRecurrenceRule? {
Expand Down Expand Up @@ -85,7 +85,7 @@ import Foundation
public static let allCases: [CalendarEventRecurrenceRules] = [.never, .everyDay, .everyWorkingDay, .everyWeekend, .everyWeek, .everyTwoWeeks, .everyMonth, .everyYear]
}

public enum CalendarEventEndRecurrenceRules: CaseIterable, Equatable, Identifiable, Hashable, Sendable {
public enum CalendarEventEndRecurrenceRules: CaseIterable, Equatable, Identifiable, Hashable, @unchecked Sendable {
case never, occurrenceCount(Int), endDate(Date)

public var end: EKRecurrenceEnd? {
Expand Down
2 changes: 1 addition & 1 deletion Sources/OversizeLocationService/LocationService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Foundation
import MapKit
import OversizeModels

public protocol LocationServiceProtocol {
public protocol LocationServiceProtocol: Sendable {
func currentLocation() async throws -> CLLocationCoordinate2D?
func systemPermissionsStatus() -> CLAuthorizationStatus
func permissionsStatus() -> Result<Bool, AppError>
Expand Down
4 changes: 2 additions & 2 deletions Sources/OversizeLocationService/Models/LocationAddress.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Foundation
import MapKit
import OversizeCore

public struct LocationAddress: Codable {
public struct LocationAddress: Codable, @unchecked Sendable {
public let streetNumber: String // eg. 1
public let streetName: String // eg. Infinite Loop
public let city: String // eg. Cupertino
Expand All @@ -28,7 +28,7 @@ public struct LocationAddress: Codable {
"""
}

public enum CardKeys: CodingKey {
public enum CardKeys: CodingKey, Sendable {
case streetNumber
case streetName
case city
Expand Down
2 changes: 1 addition & 1 deletion Sources/OversizeLocationService/Models/MapPin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import Foundation
import MapKit

public struct MapPoint: Identifiable {
public struct MapPoint: Identifiable, @unchecked Sendable {
public let id: UUID
public let name: String
public let coordinate: CLLocationCoordinate2D
Expand Down

0 comments on commit c31b6b7

Please sign in to comment.