Skip to content

Commit

Permalink
Exclude example widget from mac catalyst builds
Browse files Browse the repository at this point in the history
Causes build errors due to ActivityKit not being available on mac catalyst.
  • Loading branch information
shepherd-l committed Jul 2, 2024
1 parent d61d262 commit 0986654
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OneSignalExample/iOS/ExampleWidget/ExampleWidgetBundle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Brian Smith on 5/29/24.
//

#if !targetEnvironment(macCatalyst)
import WidgetKit
import SwiftUI

Expand All @@ -14,3 +15,4 @@ struct ExampleWidgetBundle: WidgetBundle {
ExampleWidgetLiveActivity()
}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2024 The Chromium Authors. All rights reserved.
//

#if !targetEnvironment(macCatalyst)
import ActivityKit
import WidgetKit
import SwiftUI
Expand Down Expand Up @@ -64,3 +65,4 @@ struct ExampleWidgetLiveActivity: Widget {
}
}
}
#endif

0 comments on commit 0986654

Please sign in to comment.