Skip to content

Commit

Permalink
Fix regressions from PR #149
Browse files Browse the repository at this point in the history
  • Loading branch information
jevonmao committed Feb 26, 2024
1 parent bd4ef03 commit 94b6eaf
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 15 deletions.
21 changes: 10 additions & 11 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ let permissionsTargets: [Target] = [
),
.target(
name: "PermissionsSwiftUICalendar",
dependencies: ["Introspect", "CorePermissionsSwiftUI"],
exclude: ["../../Tests/PermissionsSwiftUITests/__Snapshots__"],
swiftSettings: [
.define("PERMISSIONSWIFTUI_EVENT")
]
dependencies: ["Introspect", "CorePermissionsSwiftUI", "PermissionsSwiftUIEvent"],
exclude: ["../../Tests/PermissionsSwiftUITests/__Snapshots__"]
),
.target(
name: "PermissionsSwiftUICamera",
Expand Down Expand Up @@ -95,11 +92,8 @@ let permissionsTargets: [Target] = [
),
.target(
name: "PermissionsSwiftUIReminder",
dependencies: ["Introspect", "CorePermissionsSwiftUI"],
exclude: ["../../Tests/PermissionsSwiftUITests/__Snapshots__"],
swiftSettings: [
.define("PERMISSIONSWIFTUI_EVENT")
]
dependencies: ["Introspect", "CorePermissionsSwiftUI", "PermissionsSwiftUIEvent"],
exclude: ["../../Tests/PermissionsSwiftUITests/__Snapshots__"]
),
.target(
name: "PermissionsSwiftUISpeech",
Expand All @@ -120,6 +114,11 @@ let permissionsTargets: [Target] = [
name: "PermissionsSwiftUIBiometrics",
dependencies: ["Introspect", .target(name: "CorePermissionsSwiftUI")],
exclude: ["../../Tsts/PermissionsSwiftUITests/__Snapshots__"]
),
.target(
name: "PermissionsSwiftUIEvent",
dependencies: ["Introspect", .target(name: "CorePermissionsSwiftUI")],
exclude: ["../../Tsts/PermissionsSwiftUITests/__Snapshots__"]
)]

let package = Package(
Expand Down Expand Up @@ -148,4 +147,4 @@ let package = Package(
),

] + permissionsTargets
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
//

import Foundation
#if !os(tvOS) && PERMISSIONSWIFTUI_EVENT
import PermissionsSwiftUIEvent

#if !os(tvOS)
import EventKit
import CorePermissionsSwiftUI

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
//

import Foundation
import CorePermissionsSwiftUI

#if !os(tvOS) && PERMISSIONSWIFTUI_EVENT
#if !os(tvOS)
import EventKit

open class EventPermissionManager: PermissionManager {
Expand Down Expand Up @@ -54,4 +55,4 @@ open class EventPermissionManager: PermissionManager {
}

}
#endif
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
//

import Foundation
#if !os(tvOS) && PERMISSIONSWIFTUI_EVENT
import PermissionsSwiftUIEvent

#if !os(tvOS)
import EventKit
import CorePermissionsSwiftUI

Expand Down

0 comments on commit 94b6eaf

Please sign in to comment.