Build Information
Successful build of StreamDeck, reference main (3ef001
), with Swift 6.2 (beta) for macOS (SPM) on 22 Jun 2025 07:55:45 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Build Log
231 | Task {
232 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
233 | action: uuid,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
234 | context: context,
235 | payload: payload)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:230:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
228 | /// - Parameters:
229 | /// - payload: The datasource information used to update items in the Property Inspector.
230 | func sendToPropertyInspector(_ payload: DataSourcePayload) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
231 | Task {
232 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:244:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
242 | Task {
243 | await PluginCommunication.shared.sendEvent(.setFeedback,
244 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
245 | payload: payload)
246 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:241:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
239 |
240 | /// The plugin can send a `setFeedback` event to the Stream Deck application to dynamically change properties of items on the Stream Deck + touch display layout.
241 | func setFeedback(_ payload: [String: Any]) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
242 | Task {
243 | await PluginCommunication.shared.sendEvent(.setFeedback,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:253:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
251 | Task {
252 | await PluginCommunication.shared.sendEvent(.setFeedback,
253 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
254 | payload: payload)
255 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:250:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
248 |
249 | /// The plugin can send a `setFeedback` event to the Stream Deck application to dynamically change properties of items on the Stream Deck + touch display layout.
250 | func setFeedback(_ payload: LayoutSettings) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
251 | Task {
252 | await PluginCommunication.shared.sendEvent(.setFeedback,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:267:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
265 | Task {
266 | await PluginCommunication.shared.sendEvent(.setFeedbackLayout,
267 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
268 | payload: payload)
269 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:262:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
260 | /// `setFeedbackLayout` can use the `id` of a built-in layout or the `id` of a custom layout..
261 | /// - Parameter layout: The layout to set.
262 | func setFeedbackLayout(_ layout: LayoutName) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
263 | let payload: [String: Any] = ["layout": layout.path]
264 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:282:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
280 | Task {
281 | await PluginCommunication.shared.sendEvent(.setTriggerDescription,
282 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
283 | payload: triggerDescription)
284 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:279:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
277 | /// To reset the descriptions to the default values defined within the manifest, an empty payload can be sent as part of the event.
278 | /// - Parameter triggerDescription: The new `TriggerDescription` or `nil` to reset.
279 | func setTriggerDescription(_ triggerDescription: TriggerDescription?) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
280 | Task {
281 | await PluginCommunication.shared.sendEvent(.setTriggerDescription,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:27:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
25 | Task {
26 | await PluginCommunication.shared.sendEvent(.setSettings,
27 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
28 | payload: settings)
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:24:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
22 | /// - settings: A json object which is persistently saved for the action's instance.
23 | @available(*, deprecated, message: "Use the Settings API.")
24 | func setSettings(to settings: [String: Any]) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
25 | Task {
26 | await PluginCommunication.shared.sendEvent(.setSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:38:37: warning: capture of non-sendable type 'Self.Settings.Type' in an isolated closure; this is an error in the Swift 6 language mode
36 | func setSettings(to settings: Settings) {
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
| `- warning: capture of non-sendable type 'Self.Settings.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | context: context,
40 | payload: settings)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:39:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
39 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
40 | payload: settings)
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:36:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
34 | /// - context: An opaque value identifying the instance's action or Property Inspector.
35 | /// - settings: A json object which is persistently saved for the action's instance.
36 | func setSettings(to settings: Settings) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:49:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | Task {
48 | await PluginCommunication.shared.sendEvent(.getSettings,
49 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
50 | payload: nil)
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:46:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
44 | /// Request the persistent data for the action's instance.
45 | /// - context: An opaque value identifying the instance's action or Property Inspector.
46 | func getSettings() {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | Task {
48 | await PluginCommunication.shared.sendEvent(.getSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:100:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
98 |
99 | await PluginCommunication.shared.sendEvent(.setTitle,
100 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
101 | payload: payload)
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:91:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
89 | /// - target: Specify if you want to display the title on hardware, software, or both.
90 | /// - state: A 0-based integer value representing the state of an action with multiple states. This is an optional parameter. If not specified, the title is set to all states.
91 | func setTitle(to title: String?, target: Target? = nil, state: Int? = nil) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
92 | Task {
93 | var payload: [String: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:124:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
122 |
123 | await PluginCommunication.shared.sendEvent(.setImage,
124 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
125 | payload: payload)
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:114:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
112 | /// - target: Specify if you want to display the title on hardware, software, or both.
113 | /// - state: A 0-based integer value representing the state of an action with multiple states. This is an optional parameter. If not specified, the image is set to all states.
114 | func setImage(to image: NSImage?, target: Target? = nil, state: Int? = nil) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
115 | Task {
116 | var payload: [String: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:177:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
175 |
176 | await PluginCommunication.shared.sendEvent(.setImage,
177 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
178 | payload: payload)
179 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:164:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
162 | /// - target: Specify if you want to display the title on hardware, software, or both.
163 | /// - state: A 0-based integer value representing the state of an action with multiple states. This is an optional parameter. If not specified, the image is set to all states.
164 | func setImage(toSVG svg: String?, target: Target? = nil, state: Int? = nil) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
165 | Task {
166 | var payload: [String: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:186:68: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
184 | func showAlert() {
185 | Task {
186 | await PluginCommunication.shared.sendEvent(.showAlert, context: context, payload: nil)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:184:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
182 | /// Temporarily show an alert icon on the image displayed by an instance of an action.
183 | /// - Parameter context: An opaque value identifying the instance's action or Property Inspector.
184 | func showAlert() {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
185 | Task {
186 | await PluginCommunication.shared.sendEvent(.showAlert, context: context, payload: nil)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:194:65: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
192 | func showOk() {
193 | Task {
194 | await PluginCommunication.shared.sendEvent(.showOK, context: context, payload: nil)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
195 | }
196 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:192:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
190 | /// Temporarily show an OK checkmark icon on the image displayed by an instance of an action.
191 | /// - Parameter context: An opaque value identifying the instance's action or Property Inspector.
192 | func showOk() {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
193 | Task {
194 | await PluginCommunication.shared.sendEvent(.showOK, context: context, payload: nil)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:207:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
205 | Task {
206 | await PluginCommunication.shared.sendEvent(.setState,
207 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
208 | payload: payload)
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:202:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
200 | /// - context: An opaque value identifying the instance's action or Property Inspector.
201 | /// - state: A 0-based integer value representing the state of an action with multiple states.
202 | func setState(to state: Int) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
203 | let payload: [String: Any] = ["state": state]
204 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:218:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
216 | Task {
217 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
218 | action: uuid,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
219 | context: context,
220 | payload: payload)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:215:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
213 | /// - Parameters:
214 | /// - payload: A json object that will be received by the Property Inspector.
215 | func sendToPropertyInspector(payload: [String: Any]) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
216 | Task {
217 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:233:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
231 | Task {
232 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
233 | action: uuid,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
234 | context: context,
235 | payload: payload)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:230:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
228 | /// - Parameters:
229 | /// - payload: The datasource information used to update items in the Property Inspector.
230 | func sendToPropertyInspector(_ payload: DataSourcePayload) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
231 | Task {
232 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:244:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
242 | Task {
243 | await PluginCommunication.shared.sendEvent(.setFeedback,
244 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
245 | payload: payload)
246 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:241:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
239 |
240 | /// The plugin can send a `setFeedback` event to the Stream Deck application to dynamically change properties of items on the Stream Deck + touch display layout.
241 | func setFeedback(_ payload: [String: Any]) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
242 | Task {
243 | await PluginCommunication.shared.sendEvent(.setFeedback,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:253:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
251 | Task {
252 | await PluginCommunication.shared.sendEvent(.setFeedback,
253 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
254 | payload: payload)
255 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:250:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
248 |
249 | /// The plugin can send a `setFeedback` event to the Stream Deck application to dynamically change properties of items on the Stream Deck + touch display layout.
250 | func setFeedback(_ payload: LayoutSettings) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
251 | Task {
252 | await PluginCommunication.shared.sendEvent(.setFeedback,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:267:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
265 | Task {
266 | await PluginCommunication.shared.sendEvent(.setFeedbackLayout,
267 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
268 | payload: payload)
269 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:262:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
260 | /// `setFeedbackLayout` can use the `id` of a built-in layout or the `id` of a custom layout..
261 | /// - Parameter layout: The layout to set.
262 | func setFeedbackLayout(_ layout: LayoutName) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
263 | let payload: [String: Any] = ["layout": layout.path]
264 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:282:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
280 | Task {
281 | await PluginCommunication.shared.sendEvent(.setTriggerDescription,
282 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
283 | payload: triggerDescription)
284 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:279:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
277 | /// To reset the descriptions to the default values defined within the manifest, an empty payload can be sent as part of the event.
278 | /// - Parameter triggerDescription: The new `TriggerDescription` or `nil` to reset.
279 | func setTriggerDescription(_ triggerDescription: TriggerDescription?) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
280 | Task {
281 | await PluginCommunication.shared.sendEvent(.setTriggerDescription,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:27:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
25 | Task {
26 | await PluginCommunication.shared.sendEvent(.setSettings,
27 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
28 | payload: settings)
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:24:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
22 | /// - settings: A json object which is persistently saved for the action's instance.
23 | @available(*, deprecated, message: "Use the Settings API.")
24 | func setSettings(to settings: [String: Any]) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
25 | Task {
26 | await PluginCommunication.shared.sendEvent(.setSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:38:37: warning: capture of non-sendable type 'Self.Settings.Type' in an isolated closure; this is an error in the Swift 6 language mode
36 | func setSettings(to settings: Settings) {
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
| `- warning: capture of non-sendable type 'Self.Settings.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | context: context,
40 | payload: settings)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:39:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
39 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
40 | payload: settings)
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:36:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
34 | /// - context: An opaque value identifying the instance's action or Property Inspector.
35 | /// - settings: A json object which is persistently saved for the action's instance.
36 | func setSettings(to settings: Settings) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:49:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | Task {
48 | await PluginCommunication.shared.sendEvent(.getSettings,
49 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
50 | payload: nil)
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:46:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
44 | /// Request the persistent data for the action's instance.
45 | /// - context: An opaque value identifying the instance's action or Property Inspector.
46 | func getSettings() {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | Task {
48 | await PluginCommunication.shared.sendEvent(.getSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:100:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
98 |
99 | await PluginCommunication.shared.sendEvent(.setTitle,
100 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
101 | payload: payload)
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:91:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
89 | /// - target: Specify if you want to display the title on hardware, software, or both.
90 | /// - state: A 0-based integer value representing the state of an action with multiple states. This is an optional parameter. If not specified, the title is set to all states.
91 | func setTitle(to title: String?, target: Target? = nil, state: Int? = nil) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
92 | Task {
93 | var payload: [String: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:124:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
122 |
123 | await PluginCommunication.shared.sendEvent(.setImage,
124 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
125 | payload: payload)
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:114:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
112 | /// - target: Specify if you want to display the title on hardware, software, or both.
113 | /// - state: A 0-based integer value representing the state of an action with multiple states. This is an optional parameter. If not specified, the image is set to all states.
114 | func setImage(to image: NSImage?, target: Target? = nil, state: Int? = nil) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
115 | Task {
116 | var payload: [String: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:177:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
175 |
176 | await PluginCommunication.shared.sendEvent(.setImage,
177 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
178 | payload: payload)
179 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:164:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
162 | /// - target: Specify if you want to display the title on hardware, software, or both.
163 | /// - state: A 0-based integer value representing the state of an action with multiple states. This is an optional parameter. If not specified, the image is set to all states.
164 | func setImage(toSVG svg: String?, target: Target? = nil, state: Int? = nil) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
165 | Task {
166 | var payload: [String: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:186:68: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
184 | func showAlert() {
185 | Task {
186 | await PluginCommunication.shared.sendEvent(.showAlert, context: context, payload: nil)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:184:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
182 | /// Temporarily show an alert icon on the image displayed by an instance of an action.
183 | /// - Parameter context: An opaque value identifying the instance's action or Property Inspector.
184 | func showAlert() {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
185 | Task {
186 | await PluginCommunication.shared.sendEvent(.showAlert, context: context, payload: nil)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:194:65: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
192 | func showOk() {
193 | Task {
194 | await PluginCommunication.shared.sendEvent(.showOK, context: context, payload: nil)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
195 | }
196 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:192:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
190 | /// Temporarily show an OK checkmark icon on the image displayed by an instance of an action.
191 | /// - Parameter context: An opaque value identifying the instance's action or Property Inspector.
192 | func showOk() {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
193 | Task {
194 | await PluginCommunication.shared.sendEvent(.showOK, context: context, payload: nil)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:207:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
205 | Task {
206 | await PluginCommunication.shared.sendEvent(.setState,
207 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
208 | payload: payload)
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:202:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
200 | /// - context: An opaque value identifying the instance's action or Property Inspector.
201 | /// - state: A 0-based integer value representing the state of an action with multiple states.
202 | func setState(to state: Int) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
203 | let payload: [String: Any] = ["state": state]
204 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:218:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
216 | Task {
217 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
218 | action: uuid,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
219 | context: context,
220 | payload: payload)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:215:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
213 | /// - Parameters:
214 | /// - payload: A json object that will be received by the Property Inspector.
215 | func sendToPropertyInspector(payload: [String: Any]) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
216 | Task {
217 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:233:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
231 | Task {
232 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
233 | action: uuid,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
234 | context: context,
235 | payload: payload)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:230:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
228 | /// - Parameters:
229 | /// - payload: The datasource information used to update items in the Property Inspector.
230 | func sendToPropertyInspector(_ payload: DataSourcePayload) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
231 | Task {
232 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:244:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
242 | Task {
243 | await PluginCommunication.shared.sendEvent(.setFeedback,
244 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
245 | payload: payload)
246 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:241:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
239 |
240 | /// The plugin can send a `setFeedback` event to the Stream Deck application to dynamically change properties of items on the Stream Deck + touch display layout.
241 | func setFeedback(_ payload: [String: Any]) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
242 | Task {
243 | await PluginCommunication.shared.sendEvent(.setFeedback,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:253:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
251 | Task {
252 | await PluginCommunication.shared.sendEvent(.setFeedback,
253 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
254 | payload: payload)
255 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:250:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
248 |
249 | /// The plugin can send a `setFeedback` event to the Stream Deck application to dynamically change properties of items on the Stream Deck + touch display layout.
250 | func setFeedback(_ payload: LayoutSettings) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
251 | Task {
252 | await PluginCommunication.shared.sendEvent(.setFeedback,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:267:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
265 | Task {
266 | await PluginCommunication.shared.sendEvent(.setFeedbackLayout,
267 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
268 | payload: payload)
269 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:262:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
260 | /// `setFeedbackLayout` can use the `id` of a built-in layout or the `id` of a custom layout..
261 | /// - Parameter layout: The layout to set.
262 | func setFeedbackLayout(_ layout: LayoutName) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
263 | let payload: [String: Any] = ["layout": layout.path]
264 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:282:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
280 | Task {
281 | await PluginCommunication.shared.sendEvent(.setTriggerDescription,
282 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
283 | payload: triggerDescription)
284 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:279:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
277 | /// To reset the descriptions to the default values defined within the manifest, an empty payload can be sent as part of the event.
278 | /// - Parameter triggerDescription: The new `TriggerDescription` or `nil` to reset.
279 | func setTriggerDescription(_ triggerDescription: TriggerDescription?) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
280 | Task {
281 | await PluginCommunication.shared.sendEvent(.setTriggerDescription,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:46:33: warning: capture of non-sendable type 'A.Type' in an isolated closure
44 | /// - action: The `Action`.
45 | /// - event: The `KeyEvent` which is passed to handler.
46 | func beginTimer<A: Action>(for action: A, event: ActionEvent<KeyEvent<A.Settings>>) {
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
47 |
48 | log.log("Beginning long press timer for \(action.context, privacy: .public)")
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:53:19: warning: capture of non-sendable type 'A.Type' in an isolated closure
51 | let timer = Timer(timeInterval: action.longPressDuration, repeats: false) { _ in
52 | log.log("Long key press timer has fired for \(action.context, privacy: .public)")
53 | self.lastState[action.context] = true
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
54 | action.longKeyPress(device: event.device, payload: event.payload)
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:54:11: warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
52 | log.log("Long key press timer has fired for \(action.context, privacy: .public)")
53 | self.lastState[action.context] = true
54 | action.longKeyPress(device: event.device, payload: event.payload)
| `- warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:64:33: warning: capture of non-sendable type 'A.Type' in an isolated closure
62 | /// - action: The `Action`.
63 | /// - event: The `KeyEvent` which is passed to handler.
64 | func beginTimer<A: Action>(for action: A, event: ActionEvent<EncoderPressEvent<A.Settings>>) {
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
65 |
66 | log.log("Beginning long press timer for \(action.context, privacy: .public)")
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:71:19: warning: capture of non-sendable type 'A.Type' in an isolated closure
69 | let timer = Timer(timeInterval: action.longPressDuration, repeats: false) { _ in
70 | log.log("Long dial press timer has fired for \(action.context, privacy: .public)")
71 | self.lastState[action.context] = true
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
72 | action.longDialPress(device: event.device, payload: event.payload)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:72:11: warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
70 | log.log("Long dial press timer has fired for \(action.context, privacy: .public)")
71 | self.lastState[action.context] = true
72 | action.longDialPress(device: event.device, payload: event.payload)
| `- warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/StreamDeckPlugin/SDPlugin+Sent.swift:38:37: warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
36 | func setSettings<P: Encodable>(in context: String, to settings: P) {
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
| `- warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | context: context,
40 | payload: settings)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/StreamDeckPlugin/SDPlugin+Sent.swift:36:56: warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
34 | /// - context: An opaque value identifying the instance's action or Property Inspector.
35 | /// - settings: A json object which is persistently saved for the action's instance.
36 | func setSettings<P: Encodable>(in context: String, to settings: P) {
| `- warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:46:33: warning: capture of non-sendable type 'A.Type' in an isolated closure
44 | /// - action: The `Action`.
45 | /// - event: The `KeyEvent` which is passed to handler.
46 | func beginTimer<A: Action>(for action: A, event: ActionEvent<KeyEvent<A.Settings>>) {
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
47 |
48 | log.log("Beginning long press timer for \(action.context, privacy: .public)")
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:53:19: warning: capture of non-sendable type 'A.Type' in an isolated closure
51 | let timer = Timer(timeInterval: action.longPressDuration, repeats: false) { _ in
52 | log.log("Long key press timer has fired for \(action.context, privacy: .public)")
53 | self.lastState[action.context] = true
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
54 | action.longKeyPress(device: event.device, payload: event.payload)
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:54:11: warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
52 | log.log("Long key press timer has fired for \(action.context, privacy: .public)")
53 | self.lastState[action.context] = true
54 | action.longKeyPress(device: event.device, payload: event.payload)
| `- warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:64:33: warning: capture of non-sendable type 'A.Type' in an isolated closure
62 | /// - action: The `Action`.
63 | /// - event: The `KeyEvent` which is passed to handler.
64 | func beginTimer<A: Action>(for action: A, event: ActionEvent<EncoderPressEvent<A.Settings>>) {
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
65 |
66 | log.log("Beginning long press timer for \(action.context, privacy: .public)")
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:71:19: warning: capture of non-sendable type 'A.Type' in an isolated closure
69 | let timer = Timer(timeInterval: action.longPressDuration, repeats: false) { _ in
70 | log.log("Long dial press timer has fired for \(action.context, privacy: .public)")
71 | self.lastState[action.context] = true
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
72 | action.longDialPress(device: event.device, payload: event.payload)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:72:11: warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
70 | log.log("Long dial press timer has fired for \(action.context, privacy: .public)")
71 | self.lastState[action.context] = true
72 | action.longDialPress(device: event.device, payload: event.payload)
| `- warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/StreamDeckPlugin/SDPlugin+Sent.swift:38:37: warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
36 | func setSettings<P: Encodable>(in context: String, to settings: P) {
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
| `- warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | context: context,
40 | payload: settings)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/StreamDeckPlugin/SDPlugin+Sent.swift:36:56: warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
34 | /// - context: An opaque value identifying the instance's action or Property Inspector.
35 | /// - settings: A json object which is persistently saved for the action's instance.
36 | func setSettings<P: Encodable>(in context: String, to settings: P) {
| `- warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:46:33: warning: capture of non-sendable type 'A.Type' in an isolated closure
44 | /// - action: The `Action`.
45 | /// - event: The `KeyEvent` which is passed to handler.
46 | func beginTimer<A: Action>(for action: A, event: ActionEvent<KeyEvent<A.Settings>>) {
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
47 |
48 | log.log("Beginning long press timer for \(action.context, privacy: .public)")
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:53:19: warning: capture of non-sendable type 'A.Type' in an isolated closure
51 | let timer = Timer(timeInterval: action.longPressDuration, repeats: false) { _ in
52 | log.log("Long key press timer has fired for \(action.context, privacy: .public)")
53 | self.lastState[action.context] = true
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
54 | action.longKeyPress(device: event.device, payload: event.payload)
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:54:11: warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
52 | log.log("Long key press timer has fired for \(action.context, privacy: .public)")
53 | self.lastState[action.context] = true
54 | action.longKeyPress(device: event.device, payload: event.payload)
| `- warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:64:33: warning: capture of non-sendable type 'A.Type' in an isolated closure
62 | /// - action: The `Action`.
63 | /// - event: The `KeyEvent` which is passed to handler.
64 | func beginTimer<A: Action>(for action: A, event: ActionEvent<EncoderPressEvent<A.Settings>>) {
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
65 |
66 | log.log("Beginning long press timer for \(action.context, privacy: .public)")
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:71:19: warning: capture of non-sendable type 'A.Type' in an isolated closure
69 | let timer = Timer(timeInterval: action.longPressDuration, repeats: false) { _ in
70 | log.log("Long dial press timer has fired for \(action.context, privacy: .public)")
71 | self.lastState[action.context] = true
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
72 | action.longDialPress(device: event.device, payload: event.payload)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:72:11: warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
70 | log.log("Long dial press timer has fired for \(action.context, privacy: .public)")
71 | self.lastState[action.context] = true
72 | action.longDialPress(device: event.device, payload: event.payload)
| `- warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/StreamDeckPlugin/SDPlugin+Sent.swift:38:37: warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
36 | func setSettings<P: Encodable>(in context: String, to settings: P) {
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
| `- warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | context: context,
40 | payload: settings)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/StreamDeckPlugin/SDPlugin+Sent.swift:36:56: warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
34 | /// - context: An opaque value identifying the instance's action or Property Inspector.
35 | /// - settings: A json object which is persistently saved for the action's instance.
36 | func setSettings<P: Encodable>(in context: String, to settings: P) {
| `- warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:46:33: warning: capture of non-sendable type 'A.Type' in an isolated closure
44 | /// - action: The `Action`.
45 | /// - event: The `KeyEvent` which is passed to handler.
46 | func beginTimer<A: Action>(for action: A, event: ActionEvent<KeyEvent<A.Settings>>) {
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
47 |
48 | log.log("Beginning long press timer for \(action.context, privacy: .public)")
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:53:19: warning: capture of non-sendable type 'A.Type' in an isolated closure
51 | let timer = Timer(timeInterval: action.longPressDuration, repeats: false) { _ in
52 | log.log("Long key press timer has fired for \(action.context, privacy: .public)")
53 | self.lastState[action.context] = true
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
54 | action.longKeyPress(device: event.device, payload: event.payload)
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:54:11: warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
52 | log.log("Long key press timer has fired for \(action.context, privacy: .public)")
53 | self.lastState[action.context] = true
54 | action.longKeyPress(device: event.device, payload: event.payload)
| `- warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:64:33: warning: capture of non-sendable type 'A.Type' in an isolated closure
62 | /// - action: The `Action`.
63 | /// - event: The `KeyEvent` which is passed to handler.
64 | func beginTimer<A: Action>(for action: A, event: ActionEvent<EncoderPressEvent<A.Settings>>) {
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
65 |
66 | log.log("Beginning long press timer for \(action.context, privacy: .public)")
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:71:19: warning: capture of non-sendable type 'A.Type' in an isolated closure
69 | let timer = Timer(timeInterval: action.longPressDuration, repeats: false) { _ in
70 | log.log("Long dial press timer has fired for \(action.context, privacy: .public)")
71 | self.lastState[action.context] = true
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
72 | action.longDialPress(device: event.device, payload: event.payload)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:72:11: warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
70 | log.log("Long dial press timer has fired for \(action.context, privacy: .public)")
71 | self.lastState[action.context] = true
72 | action.longDialPress(device: event.device, payload: event.payload)
| `- warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/StreamDeckPlugin/SDPlugin+Sent.swift:38:37: warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
36 | func setSettings<P: Encodable>(in context: String, to settings: P) {
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
| `- warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | context: context,
40 | payload: settings)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/StreamDeckPlugin/SDPlugin+Sent.swift:36:56: warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
34 | /// - context: An opaque value identifying the instance's action or Property Inspector.
35 | /// - settings: A json object which is persistently saved for the action's instance.
36 | func setSettings<P: Encodable>(in context: String, to settings: P) {
| `- warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
[466/484] Compiling StreamDeck SDPlugin+Sent.swift
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:46:33: warning: capture of non-sendable type 'A.Type' in an isolated closure
44 | /// - action: The `Action`.
45 | /// - event: The `KeyEvent` which is passed to handler.
46 | func beginTimer<A: Action>(for action: A, event: ActionEvent<KeyEvent<A.Settings>>) {
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
47 |
48 | log.log("Beginning long press timer for \(action.context, privacy: .public)")
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:53:19: warning: capture of non-sendable type 'A.Type' in an isolated closure
51 | let timer = Timer(timeInterval: action.longPressDuration, repeats: false) { _ in
52 | log.log("Long key press timer has fired for \(action.context, privacy: .public)")
53 | self.lastState[action.context] = true
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
54 | action.longKeyPress(device: event.device, payload: event.payload)
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:54:11: warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
52 | log.log("Long key press timer has fired for \(action.context, privacy: .public)")
53 | self.lastState[action.context] = true
54 | action.longKeyPress(device: event.device, payload: event.payload)
| `- warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:64:33: warning: capture of non-sendable type 'A.Type' in an isolated closure
62 | /// - action: The `Action`.
63 | /// - event: The `KeyEvent` which is passed to handler.
64 | func beginTimer<A: Action>(for action: A, event: ActionEvent<EncoderPressEvent<A.Settings>>) {
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
65 |
66 | log.log("Beginning long press timer for \(action.context, privacy: .public)")
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:71:19: warning: capture of non-sendable type 'A.Type' in an isolated closure
69 | let timer = Timer(timeInterval: action.longPressDuration, repeats: false) { _ in
70 | log.log("Long dial press timer has fired for \(action.context, privacy: .public)")
71 | self.lastState[action.context] = true
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
72 | action.longDialPress(device: event.device, payload: event.payload)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:72:11: warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
70 | log.log("Long dial press timer has fired for \(action.context, privacy: .public)")
71 | self.lastState[action.context] = true
72 | action.longDialPress(device: event.device, payload: event.payload)
| `- warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/StreamDeckPlugin/SDPlugin+Sent.swift:38:37: warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
36 | func setSettings<P: Encodable>(in context: String, to settings: P) {
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
| `- warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | context: context,
40 | payload: settings)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/StreamDeckPlugin/SDPlugin+Sent.swift:36:56: warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
34 | /// - context: An opaque value identifying the instance's action or Property Inspector.
35 | /// - settings: A json object which is persistently saved for the action's instance.
36 | func setSettings<P: Encodable>(in context: String, to settings: P) {
| `- warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:27:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
25 | Task {
26 | await PluginCommunication.shared.sendEvent(.setSettings,
27 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
28 | payload: settings)
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:24:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
22 | /// - settings: A json object which is persistently saved for the action's instance.
23 | @available(*, deprecated, message: "Use the Settings API.")
24 | func setSettings(to settings: [String: Any]) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
25 | Task {
26 | await PluginCommunication.shared.sendEvent(.setSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:38:37: warning: capture of non-sendable type 'Self.Settings.Type' in an isolated closure; this is an error in the Swift 6 language mode
36 | func setSettings(to settings: Settings) {
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
| `- warning: capture of non-sendable type 'Self.Settings.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | context: context,
40 | payload: settings)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:39:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
39 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
40 | payload: settings)
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:36:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
34 | /// - context: An opaque value identifying the instance's action or Property Inspector.
35 | /// - settings: A json object which is persistently saved for the action's instance.
36 | func setSettings(to settings: Settings) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:49:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | Task {
48 | await PluginCommunication.shared.sendEvent(.getSettings,
49 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
50 | payload: nil)
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:46:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
44 | /// Request the persistent data for the action's instance.
45 | /// - context: An opaque value identifying the instance's action or Property Inspector.
46 | func getSettings() {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | Task {
48 | await PluginCommunication.shared.sendEvent(.getSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:100:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
98 |
99 | await PluginCommunication.shared.sendEvent(.setTitle,
100 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
101 | payload: payload)
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:91:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
89 | /// - target: Specify if you want to display the title on hardware, software, or both.
90 | /// - state: A 0-based integer value representing the state of an action with multiple states. This is an optional parameter. If not specified, the title is set to all states.
91 | func setTitle(to title: String?, target: Target? = nil, state: Int? = nil) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
92 | Task {
93 | var payload: [String: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:124:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
122 |
123 | await PluginCommunication.shared.sendEvent(.setImage,
124 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
125 | payload: payload)
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:114:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
112 | /// - target: Specify if you want to display the title on hardware, software, or both.
113 | /// - state: A 0-based integer value representing the state of an action with multiple states. This is an optional parameter. If not specified, the image is set to all states.
114 | func setImage(to image: NSImage?, target: Target? = nil, state: Int? = nil) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
115 | Task {
116 | var payload: [String: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:177:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
175 |
176 | await PluginCommunication.shared.sendEvent(.setImage,
177 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
178 | payload: payload)
179 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:164:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
162 | /// - target: Specify if you want to display the title on hardware, software, or both.
163 | /// - state: A 0-based integer value representing the state of an action with multiple states. This is an optional parameter. If not specified, the image is set to all states.
164 | func setImage(toSVG svg: String?, target: Target? = nil, state: Int? = nil) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
165 | Task {
166 | var payload: [String: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:186:68: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
184 | func showAlert() {
185 | Task {
186 | await PluginCommunication.shared.sendEvent(.showAlert, context: context, payload: nil)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:184:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
182 | /// Temporarily show an alert icon on the image displayed by an instance of an action.
183 | /// - Parameter context: An opaque value identifying the instance's action or Property Inspector.
184 | func showAlert() {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
185 | Task {
186 | await PluginCommunication.shared.sendEvent(.showAlert, context: context, payload: nil)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:194:65: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
192 | func showOk() {
193 | Task {
194 | await PluginCommunication.shared.sendEvent(.showOK, context: context, payload: nil)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
195 | }
196 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:192:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
190 | /// Temporarily show an OK checkmark icon on the image displayed by an instance of an action.
191 | /// - Parameter context: An opaque value identifying the instance's action or Property Inspector.
192 | func showOk() {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
193 | Task {
194 | await PluginCommunication.shared.sendEvent(.showOK, context: context, payload: nil)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:207:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
205 | Task {
206 | await PluginCommunication.shared.sendEvent(.setState,
207 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
208 | payload: payload)
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:202:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
200 | /// - context: An opaque value identifying the instance's action or Property Inspector.
201 | /// - state: A 0-based integer value representing the state of an action with multiple states.
202 | func setState(to state: Int) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
203 | let payload: [String: Any] = ["state": state]
204 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:218:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
216 | Task {
217 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
218 | action: uuid,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
219 | context: context,
220 | payload: payload)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:215:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
213 | /// - Parameters:
214 | /// - payload: A json object that will be received by the Property Inspector.
215 | func sendToPropertyInspector(payload: [String: Any]) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
216 | Task {
217 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:233:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
231 | Task {
232 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
233 | action: uuid,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
234 | context: context,
235 | payload: payload)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:230:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
228 | /// - Parameters:
229 | /// - payload: The datasource information used to update items in the Property Inspector.
230 | func sendToPropertyInspector(_ payload: DataSourcePayload) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
231 | Task {
232 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:244:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
242 | Task {
243 | await PluginCommunication.shared.sendEvent(.setFeedback,
244 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
245 | payload: payload)
246 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:241:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
239 |
240 | /// The plugin can send a `setFeedback` event to the Stream Deck application to dynamically change properties of items on the Stream Deck + touch display layout.
241 | func setFeedback(_ payload: [String: Any]) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
242 | Task {
243 | await PluginCommunication.shared.sendEvent(.setFeedback,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:253:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
251 | Task {
252 | await PluginCommunication.shared.sendEvent(.setFeedback,
253 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
254 | payload: payload)
255 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:250:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
248 |
249 | /// The plugin can send a `setFeedback` event to the Stream Deck application to dynamically change properties of items on the Stream Deck + touch display layout.
250 | func setFeedback(_ payload: LayoutSettings) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
251 | Task {
252 | await PluginCommunication.shared.sendEvent(.setFeedback,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:267:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
265 | Task {
266 | await PluginCommunication.shared.sendEvent(.setFeedbackLayout,
267 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
268 | payload: payload)
269 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:262:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
260 | /// `setFeedbackLayout` can use the `id` of a built-in layout or the `id` of a custom layout..
261 | /// - Parameter layout: The layout to set.
262 | func setFeedbackLayout(_ layout: LayoutName) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
263 | let payload: [String: Any] = ["layout": layout.path]
264 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:282:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
280 | Task {
281 | await PluginCommunication.shared.sendEvent(.setTriggerDescription,
282 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
283 | payload: triggerDescription)
284 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:279:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
277 | /// To reset the descriptions to the default values defined within the manifest, an empty payload can be sent as part of the event.
278 | /// - Parameter triggerDescription: The new `TriggerDescription` or `nil` to reset.
279 | func setTriggerDescription(_ triggerDescription: TriggerDescription?) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
280 | Task {
281 | await PluginCommunication.shared.sendEvent(.setTriggerDescription,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:27:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
25 | Task {
26 | await PluginCommunication.shared.sendEvent(.setSettings,
27 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
28 | payload: settings)
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:24:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
22 | /// - settings: A json object which is persistently saved for the action's instance.
23 | @available(*, deprecated, message: "Use the Settings API.")
24 | func setSettings(to settings: [String: Any]) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
25 | Task {
26 | await PluginCommunication.shared.sendEvent(.setSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:38:37: warning: capture of non-sendable type 'Self.Settings.Type' in an isolated closure; this is an error in the Swift 6 language mode
36 | func setSettings(to settings: Settings) {
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
| `- warning: capture of non-sendable type 'Self.Settings.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | context: context,
40 | payload: settings)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:39:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
39 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
40 | payload: settings)
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:36:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
34 | /// - context: An opaque value identifying the instance's action or Property Inspector.
35 | /// - settings: A json object which is persistently saved for the action's instance.
36 | func setSettings(to settings: Settings) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:49:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | Task {
48 | await PluginCommunication.shared.sendEvent(.getSettings,
49 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
50 | payload: nil)
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:46:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
44 | /// Request the persistent data for the action's instance.
45 | /// - context: An opaque value identifying the instance's action or Property Inspector.
46 | func getSettings() {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | Task {
48 | await PluginCommunication.shared.sendEvent(.getSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:100:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
98 |
99 | await PluginCommunication.shared.sendEvent(.setTitle,
100 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
101 | payload: payload)
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:91:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
89 | /// - target: Specify if you want to display the title on hardware, software, or both.
90 | /// - state: A 0-based integer value representing the state of an action with multiple states. This is an optional parameter. If not specified, the title is set to all states.
91 | func setTitle(to title: String?, target: Target? = nil, state: Int? = nil) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
92 | Task {
93 | var payload: [String: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:124:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
122 |
123 | await PluginCommunication.shared.sendEvent(.setImage,
124 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
125 | payload: payload)
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:114:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
112 | /// - target: Specify if you want to display the title on hardware, software, or both.
113 | /// - state: A 0-based integer value representing the state of an action with multiple states. This is an optional parameter. If not specified, the image is set to all states.
114 | func setImage(to image: NSImage?, target: Target? = nil, state: Int? = nil) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
115 | Task {
116 | var payload: [String: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:177:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
175 |
176 | await PluginCommunication.shared.sendEvent(.setImage,
177 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
178 | payload: payload)
179 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:164:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
162 | /// - target: Specify if you want to display the title on hardware, software, or both.
163 | /// - state: A 0-based integer value representing the state of an action with multiple states. This is an optional parameter. If not specified, the image is set to all states.
164 | func setImage(toSVG svg: String?, target: Target? = nil, state: Int? = nil) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
165 | Task {
166 | var payload: [String: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:186:68: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
184 | func showAlert() {
185 | Task {
186 | await PluginCommunication.shared.sendEvent(.showAlert, context: context, payload: nil)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:184:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
182 | /// Temporarily show an alert icon on the image displayed by an instance of an action.
183 | /// - Parameter context: An opaque value identifying the instance's action or Property Inspector.
184 | func showAlert() {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
185 | Task {
186 | await PluginCommunication.shared.sendEvent(.showAlert, context: context, payload: nil)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:194:65: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
192 | func showOk() {
193 | Task {
194 | await PluginCommunication.shared.sendEvent(.showOK, context: context, payload: nil)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
195 | }
196 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:192:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
190 | /// Temporarily show an OK checkmark icon on the image displayed by an instance of an action.
191 | /// - Parameter context: An opaque value identifying the instance's action or Property Inspector.
192 | func showOk() {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
193 | Task {
194 | await PluginCommunication.shared.sendEvent(.showOK, context: context, payload: nil)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:207:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
205 | Task {
206 | await PluginCommunication.shared.sendEvent(.setState,
207 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
208 | payload: payload)
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:202:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
200 | /// - context: An opaque value identifying the instance's action or Property Inspector.
201 | /// - state: A 0-based integer value representing the state of an action with multiple states.
202 | func setState(to state: Int) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
203 | let payload: [String: Any] = ["state": state]
204 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:218:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
216 | Task {
217 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
218 | action: uuid,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
219 | context: context,
220 | payload: payload)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:215:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
213 | /// - Parameters:
214 | /// - payload: A json object that will be received by the Property Inspector.
215 | func sendToPropertyInspector(payload: [String: Any]) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
216 | Task {
217 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:233:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
231 | Task {
232 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
233 | action: uuid,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
234 | context: context,
235 | payload: payload)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:230:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
228 | /// - Parameters:
229 | /// - payload: The datasource information used to update items in the Property Inspector.
230 | func sendToPropertyInspector(_ payload: DataSourcePayload) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
231 | Task {
232 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:244:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
242 | Task {
243 | await PluginCommunication.shared.sendEvent(.setFeedback,
244 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
245 | payload: payload)
246 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:241:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
239 |
240 | /// The plugin can send a `setFeedback` event to the Stream Deck application to dynamically change properties of items on the Stream Deck + touch display layout.
241 | func setFeedback(_ payload: [String: Any]) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
242 | Task {
243 | await PluginCommunication.shared.sendEvent(.setFeedback,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:253:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
251 | Task {
252 | await PluginCommunication.shared.sendEvent(.setFeedback,
253 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
254 | payload: payload)
255 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:250:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
248 |
249 | /// The plugin can send a `setFeedback` event to the Stream Deck application to dynamically change properties of items on the Stream Deck + touch display layout.
250 | func setFeedback(_ payload: LayoutSettings) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
251 | Task {
252 | await PluginCommunication.shared.sendEvent(.setFeedback,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:267:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
265 | Task {
266 | await PluginCommunication.shared.sendEvent(.setFeedbackLayout,
267 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
268 | payload: payload)
269 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:262:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
260 | /// `setFeedbackLayout` can use the `id` of a built-in layout or the `id` of a custom layout..
261 | /// - Parameter layout: The layout to set.
262 | func setFeedbackLayout(_ layout: LayoutName) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
263 | let payload: [String: Any] = ["layout": layout.path]
264 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:282:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
280 | Task {
281 | await PluginCommunication.shared.sendEvent(.setTriggerDescription,
282 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
283 | payload: triggerDescription)
284 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:279:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
277 | /// To reset the descriptions to the default values defined within the manifest, an empty payload can be sent as part of the event.
278 | /// - Parameter triggerDescription: The new `TriggerDescription` or `nil` to reset.
279 | func setTriggerDescription(_ triggerDescription: TriggerDescription?) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
280 | Task {
281 | await PluginCommunication.shared.sendEvent(.setTriggerDescription,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:27:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
25 | Task {
26 | await PluginCommunication.shared.sendEvent(.setSettings,
27 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
28 | payload: settings)
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:24:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
22 | /// - settings: A json object which is persistently saved for the action's instance.
23 | @available(*, deprecated, message: "Use the Settings API.")
24 | func setSettings(to settings: [String: Any]) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
25 | Task {
26 | await PluginCommunication.shared.sendEvent(.setSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:38:37: warning: capture of non-sendable type 'Self.Settings.Type' in an isolated closure; this is an error in the Swift 6 language mode
36 | func setSettings(to settings: Settings) {
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
| `- warning: capture of non-sendable type 'Self.Settings.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | context: context,
40 | payload: settings)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:39:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
39 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
40 | payload: settings)
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:36:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
34 | /// - context: An opaque value identifying the instance's action or Property Inspector.
35 | /// - settings: A json object which is persistently saved for the action's instance.
36 | func setSettings(to settings: Settings) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:49:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | Task {
48 | await PluginCommunication.shared.sendEvent(.getSettings,
49 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
50 | payload: nil)
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:46:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
44 | /// Request the persistent data for the action's instance.
45 | /// - context: An opaque value identifying the instance's action or Property Inspector.
46 | func getSettings() {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | Task {
48 | await PluginCommunication.shared.sendEvent(.getSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:100:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
98 |
99 | await PluginCommunication.shared.sendEvent(.setTitle,
100 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
101 | payload: payload)
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:91:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
89 | /// - target: Specify if you want to display the title on hardware, software, or both.
90 | /// - state: A 0-based integer value representing the state of an action with multiple states. This is an optional parameter. If not specified, the title is set to all states.
91 | func setTitle(to title: String?, target: Target? = nil, state: Int? = nil) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
92 | Task {
93 | var payload: [String: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:124:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
122 |
123 | await PluginCommunication.shared.sendEvent(.setImage,
124 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
125 | payload: payload)
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:114:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
112 | /// - target: Specify if you want to display the title on hardware, software, or both.
113 | /// - state: A 0-based integer value representing the state of an action with multiple states. This is an optional parameter. If not specified, the image is set to all states.
114 | func setImage(to image: NSImage?, target: Target? = nil, state: Int? = nil) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
115 | Task {
116 | var payload: [String: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:177:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
175 |
176 | await PluginCommunication.shared.sendEvent(.setImage,
177 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
178 | payload: payload)
179 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:164:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
162 | /// - target: Specify if you want to display the title on hardware, software, or both.
163 | /// - state: A 0-based integer value representing the state of an action with multiple states. This is an optional parameter. If not specified, the image is set to all states.
164 | func setImage(toSVG svg: String?, target: Target? = nil, state: Int? = nil) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
165 | Task {
166 | var payload: [String: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:186:68: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
184 | func showAlert() {
185 | Task {
186 | await PluginCommunication.shared.sendEvent(.showAlert, context: context, payload: nil)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:184:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
182 | /// Temporarily show an alert icon on the image displayed by an instance of an action.
183 | /// - Parameter context: An opaque value identifying the instance's action or Property Inspector.
184 | func showAlert() {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
185 | Task {
186 | await PluginCommunication.shared.sendEvent(.showAlert, context: context, payload: nil)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:194:65: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
192 | func showOk() {
193 | Task {
194 | await PluginCommunication.shared.sendEvent(.showOK, context: context, payload: nil)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
195 | }
196 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:192:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
190 | /// Temporarily show an OK checkmark icon on the image displayed by an instance of an action.
191 | /// - Parameter context: An opaque value identifying the instance's action or Property Inspector.
192 | func showOk() {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
193 | Task {
194 | await PluginCommunication.shared.sendEvent(.showOK, context: context, payload: nil)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:207:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
205 | Task {
206 | await PluginCommunication.shared.sendEvent(.setState,
207 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
208 | payload: payload)
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:202:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
200 | /// - context: An opaque value identifying the instance's action or Property Inspector.
201 | /// - state: A 0-based integer value representing the state of an action with multiple states.
202 | func setState(to state: Int) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
203 | let payload: [String: Any] = ["state": state]
204 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:218:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
216 | Task {
217 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
218 | action: uuid,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
219 | context: context,
220 | payload: payload)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:215:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
213 | /// - Parameters:
214 | /// - payload: A json object that will be received by the Property Inspector.
215 | func sendToPropertyInspector(payload: [String: Any]) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
216 | Task {
217 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:233:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
231 | Task {
232 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
233 | action: uuid,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
234 | context: context,
235 | payload: payload)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:230:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
228 | /// - Parameters:
229 | /// - payload: The datasource information used to update items in the Property Inspector.
230 | func sendToPropertyInspector(_ payload: DataSourcePayload) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
231 | Task {
232 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:244:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
242 | Task {
243 | await PluginCommunication.shared.sendEvent(.setFeedback,
244 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
245 | payload: payload)
246 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:241:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
239 |
240 | /// The plugin can send a `setFeedback` event to the Stream Deck application to dynamically change properties of items on the Stream Deck + touch display layout.
241 | func setFeedback(_ payload: [String: Any]) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
242 | Task {
243 | await PluginCommunication.shared.sendEvent(.setFeedback,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:253:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
251 | Task {
252 | await PluginCommunication.shared.sendEvent(.setFeedback,
253 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
254 | payload: payload)
255 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:250:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
248 |
249 | /// The plugin can send a `setFeedback` event to the Stream Deck application to dynamically change properties of items on the Stream Deck + touch display layout.
250 | func setFeedback(_ payload: LayoutSettings) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
251 | Task {
252 | await PluginCommunication.shared.sendEvent(.setFeedback,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:267:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
265 | Task {
266 | await PluginCommunication.shared.sendEvent(.setFeedbackLayout,
267 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
268 | payload: payload)
269 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:262:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
260 | /// `setFeedbackLayout` can use the `id` of a built-in layout or the `id` of a custom layout..
261 | /// - Parameter layout: The layout to set.
262 | func setFeedbackLayout(_ layout: LayoutName) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
263 | let payload: [String: Any] = ["layout": layout.path]
264 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:282:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
280 | Task {
281 | await PluginCommunication.shared.sendEvent(.setTriggerDescription,
282 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
283 | payload: triggerDescription)
284 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:279:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
277 | /// To reset the descriptions to the default values defined within the manifest, an empty payload can be sent as part of the event.
278 | /// - Parameter triggerDescription: The new `TriggerDescription` or `nil` to reset.
279 | func setTriggerDescription(_ triggerDescription: TriggerDescription?) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
280 | Task {
281 | await PluginCommunication.shared.sendEvent(.setTriggerDescription,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:27:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
25 | Task {
26 | await PluginCommunication.shared.sendEvent(.setSettings,
27 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
28 | payload: settings)
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:24:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
22 | /// - settings: A json object which is persistently saved for the action's instance.
23 | @available(*, deprecated, message: "Use the Settings API.")
24 | func setSettings(to settings: [String: Any]) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
25 | Task {
26 | await PluginCommunication.shared.sendEvent(.setSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:38:37: warning: capture of non-sendable type 'Self.Settings.Type' in an isolated closure; this is an error in the Swift 6 language mode
36 | func setSettings(to settings: Settings) {
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
| `- warning: capture of non-sendable type 'Self.Settings.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | context: context,
40 | payload: settings)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:39:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
39 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
40 | payload: settings)
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:36:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
34 | /// - context: An opaque value identifying the instance's action or Property Inspector.
35 | /// - settings: A json object which is persistently saved for the action's instance.
36 | func setSettings(to settings: Settings) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:49:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | Task {
48 | await PluginCommunication.shared.sendEvent(.getSettings,
49 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
50 | payload: nil)
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:46:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
44 | /// Request the persistent data for the action's instance.
45 | /// - context: An opaque value identifying the instance's action or Property Inspector.
46 | func getSettings() {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | Task {
48 | await PluginCommunication.shared.sendEvent(.getSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:100:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
98 |
99 | await PluginCommunication.shared.sendEvent(.setTitle,
100 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
101 | payload: payload)
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:91:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
89 | /// - target: Specify if you want to display the title on hardware, software, or both.
90 | /// - state: A 0-based integer value representing the state of an action with multiple states. This is an optional parameter. If not specified, the title is set to all states.
91 | func setTitle(to title: String?, target: Target? = nil, state: Int? = nil) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
92 | Task {
93 | var payload: [String: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:124:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
122 |
123 | await PluginCommunication.shared.sendEvent(.setImage,
124 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
125 | payload: payload)
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:114:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
112 | /// - target: Specify if you want to display the title on hardware, software, or both.
113 | /// - state: A 0-based integer value representing the state of an action with multiple states. This is an optional parameter. If not specified, the image is set to all states.
114 | func setImage(to image: NSImage?, target: Target? = nil, state: Int? = nil) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
115 | Task {
116 | var payload: [String: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:177:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
175 |
176 | await PluginCommunication.shared.sendEvent(.setImage,
177 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
178 | payload: payload)
179 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:164:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
162 | /// - target: Specify if you want to display the title on hardware, software, or both.
163 | /// - state: A 0-based integer value representing the state of an action with multiple states. This is an optional parameter. If not specified, the image is set to all states.
164 | func setImage(toSVG svg: String?, target: Target? = nil, state: Int? = nil) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
165 | Task {
166 | var payload: [String: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:186:68: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
184 | func showAlert() {
185 | Task {
186 | await PluginCommunication.shared.sendEvent(.showAlert, context: context, payload: nil)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:184:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
182 | /// Temporarily show an alert icon on the image displayed by an instance of an action.
183 | /// - Parameter context: An opaque value identifying the instance's action or Property Inspector.
184 | func showAlert() {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
185 | Task {
186 | await PluginCommunication.shared.sendEvent(.showAlert, context: context, payload: nil)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:194:65: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
192 | func showOk() {
193 | Task {
194 | await PluginCommunication.shared.sendEvent(.showOK, context: context, payload: nil)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
195 | }
196 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:192:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
190 | /// Temporarily show an OK checkmark icon on the image displayed by an instance of an action.
191 | /// - Parameter context: An opaque value identifying the instance's action or Property Inspector.
192 | func showOk() {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
193 | Task {
194 | await PluginCommunication.shared.sendEvent(.showOK, context: context, payload: nil)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:207:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
205 | Task {
206 | await PluginCommunication.shared.sendEvent(.setState,
207 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
208 | payload: payload)
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:202:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
200 | /// - context: An opaque value identifying the instance's action or Property Inspector.
201 | /// - state: A 0-based integer value representing the state of an action with multiple states.
202 | func setState(to state: Int) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
203 | let payload: [String: Any] = ["state": state]
204 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:218:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
216 | Task {
217 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
218 | action: uuid,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
219 | context: context,
220 | payload: payload)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:215:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
213 | /// - Parameters:
214 | /// - payload: A json object that will be received by the Property Inspector.
215 | func sendToPropertyInspector(payload: [String: Any]) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
216 | Task {
217 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:233:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
231 | Task {
232 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
233 | action: uuid,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
234 | context: context,
235 | payload: payload)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:230:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
228 | /// - Parameters:
229 | /// - payload: The datasource information used to update items in the Property Inspector.
230 | func sendToPropertyInspector(_ payload: DataSourcePayload) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
231 | Task {
232 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:244:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
242 | Task {
243 | await PluginCommunication.shared.sendEvent(.setFeedback,
244 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
245 | payload: payload)
246 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:241:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
239 |
240 | /// The plugin can send a `setFeedback` event to the Stream Deck application to dynamically change properties of items on the Stream Deck + touch display layout.
241 | func setFeedback(_ payload: [String: Any]) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
242 | Task {
243 | await PluginCommunication.shared.sendEvent(.setFeedback,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:253:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
251 | Task {
252 | await PluginCommunication.shared.sendEvent(.setFeedback,
253 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
254 | payload: payload)
255 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:250:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
248 |
249 | /// The plugin can send a `setFeedback` event to the Stream Deck application to dynamically change properties of items on the Stream Deck + touch display layout.
250 | func setFeedback(_ payload: LayoutSettings) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
251 | Task {
252 | await PluginCommunication.shared.sendEvent(.setFeedback,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:267:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
265 | Task {
266 | await PluginCommunication.shared.sendEvent(.setFeedbackLayout,
267 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
268 | payload: payload)
269 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:262:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
260 | /// `setFeedbackLayout` can use the `id` of a built-in layout or the `id` of a custom layout..
261 | /// - Parameter layout: The layout to set.
262 | func setFeedbackLayout(_ layout: LayoutName) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
263 | let payload: [String: Any] = ["layout": layout.path]
264 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:282:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
280 | Task {
281 | await PluginCommunication.shared.sendEvent(.setTriggerDescription,
282 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
283 | payload: triggerDescription)
284 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:279:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
277 | /// To reset the descriptions to the default values defined within the manifest, an empty payload can be sent as part of the event.
278 | /// - Parameter triggerDescription: The new `TriggerDescription` or `nil` to reset.
279 | func setTriggerDescription(_ triggerDescription: TriggerDescription?) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
280 | Task {
281 | await PluginCommunication.shared.sendEvent(.setTriggerDescription,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:27:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
25 | Task {
26 | await PluginCommunication.shared.sendEvent(.setSettings,
27 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
28 | payload: settings)
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:24:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
22 | /// - settings: A json object which is persistently saved for the action's instance.
23 | @available(*, deprecated, message: "Use the Settings API.")
24 | func setSettings(to settings: [String: Any]) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
25 | Task {
26 | await PluginCommunication.shared.sendEvent(.setSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:38:37: warning: capture of non-sendable type 'Self.Settings.Type' in an isolated closure; this is an error in the Swift 6 language mode
36 | func setSettings(to settings: Settings) {
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
| `- warning: capture of non-sendable type 'Self.Settings.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | context: context,
40 | payload: settings)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:39:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
39 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
40 | payload: settings)
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:36:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
34 | /// - context: An opaque value identifying the instance's action or Property Inspector.
35 | /// - settings: A json object which is persistently saved for the action's instance.
36 | func setSettings(to settings: Settings) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:49:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | Task {
48 | await PluginCommunication.shared.sendEvent(.getSettings,
49 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
50 | payload: nil)
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:46:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
44 | /// Request the persistent data for the action's instance.
45 | /// - context: An opaque value identifying the instance's action or Property Inspector.
46 | func getSettings() {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | Task {
48 | await PluginCommunication.shared.sendEvent(.getSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:100:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
98 |
99 | await PluginCommunication.shared.sendEvent(.setTitle,
100 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
101 | payload: payload)
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:91:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
89 | /// - target: Specify if you want to display the title on hardware, software, or both.
90 | /// - state: A 0-based integer value representing the state of an action with multiple states. This is an optional parameter. If not specified, the title is set to all states.
91 | func setTitle(to title: String?, target: Target? = nil, state: Int? = nil) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
92 | Task {
93 | var payload: [String: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:124:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
122 |
123 | await PluginCommunication.shared.sendEvent(.setImage,
124 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
125 | payload: payload)
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:114:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
112 | /// - target: Specify if you want to display the title on hardware, software, or both.
113 | /// - state: A 0-based integer value representing the state of an action with multiple states. This is an optional parameter. If not specified, the image is set to all states.
114 | func setImage(to image: NSImage?, target: Target? = nil, state: Int? = nil) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
115 | Task {
116 | var payload: [String: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:177:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
175 |
176 | await PluginCommunication.shared.sendEvent(.setImage,
177 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
178 | payload: payload)
179 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:164:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
162 | /// - target: Specify if you want to display the title on hardware, software, or both.
163 | /// - state: A 0-based integer value representing the state of an action with multiple states. This is an optional parameter. If not specified, the image is set to all states.
164 | func setImage(toSVG svg: String?, target: Target? = nil, state: Int? = nil) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
165 | Task {
166 | var payload: [String: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:186:68: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
184 | func showAlert() {
185 | Task {
186 | await PluginCommunication.shared.sendEvent(.showAlert, context: context, payload: nil)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:184:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
182 | /// Temporarily show an alert icon on the image displayed by an instance of an action.
183 | /// - Parameter context: An opaque value identifying the instance's action or Property Inspector.
184 | func showAlert() {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
185 | Task {
186 | await PluginCommunication.shared.sendEvent(.showAlert, context: context, payload: nil)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:194:65: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
192 | func showOk() {
193 | Task {
194 | await PluginCommunication.shared.sendEvent(.showOK, context: context, payload: nil)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
195 | }
196 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:192:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
190 | /// Temporarily show an OK checkmark icon on the image displayed by an instance of an action.
191 | /// - Parameter context: An opaque value identifying the instance's action or Property Inspector.
192 | func showOk() {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
193 | Task {
194 | await PluginCommunication.shared.sendEvent(.showOK, context: context, payload: nil)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:207:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
205 | Task {
206 | await PluginCommunication.shared.sendEvent(.setState,
207 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
208 | payload: payload)
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:202:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
200 | /// - context: An opaque value identifying the instance's action or Property Inspector.
201 | /// - state: A 0-based integer value representing the state of an action with multiple states.
202 | func setState(to state: Int) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
203 | let payload: [String: Any] = ["state": state]
204 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:218:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
216 | Task {
217 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
218 | action: uuid,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
219 | context: context,
220 | payload: payload)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:215:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
213 | /// - Parameters:
214 | /// - payload: A json object that will be received by the Property Inspector.
215 | func sendToPropertyInspector(payload: [String: Any]) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
216 | Task {
217 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:233:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
231 | Task {
232 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
233 | action: uuid,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
234 | context: context,
235 | payload: payload)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:230:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
228 | /// - Parameters:
229 | /// - payload: The datasource information used to update items in the Property Inspector.
230 | func sendToPropertyInspector(_ payload: DataSourcePayload) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
231 | Task {
232 | await PluginCommunication.shared.sendEvent(.sendToPropertyInspector,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:244:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
242 | Task {
243 | await PluginCommunication.shared.sendEvent(.setFeedback,
244 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
245 | payload: payload)
246 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:241:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
239 |
240 | /// The plugin can send a `setFeedback` event to the Stream Deck application to dynamically change properties of items on the Stream Deck + touch display layout.
241 | func setFeedback(_ payload: [String: Any]) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
242 | Task {
243 | await PluginCommunication.shared.sendEvent(.setFeedback,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:253:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
251 | Task {
252 | await PluginCommunication.shared.sendEvent(.setFeedback,
253 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
254 | payload: payload)
255 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:250:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
248 |
249 | /// The plugin can send a `setFeedback` event to the Stream Deck application to dynamically change properties of items on the Stream Deck + touch display layout.
250 | func setFeedback(_ payload: LayoutSettings) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
251 | Task {
252 | await PluginCommunication.shared.sendEvent(.setFeedback,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:267:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
265 | Task {
266 | await PluginCommunication.shared.sendEvent(.setFeedbackLayout,
267 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
268 | payload: payload)
269 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:262:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
260 | /// `setFeedbackLayout` can use the `id` of a built-in layout or the `id` of a custom layout..
261 | /// - Parameter layout: The layout to set.
262 | func setFeedbackLayout(_ layout: LayoutName) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
263 | let payload: [String: Any] = ["layout": layout.path]
264 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:282:26: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
280 | Task {
281 | await PluginCommunication.shared.sendEvent(.setTriggerDescription,
282 | context: context,
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
283 | payload: triggerDescription)
284 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/Action+Sent.swift:279:7: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
277 | /// To reset the descriptions to the default values defined within the manifest, an empty payload can be sent as part of the event.
278 | /// - Parameter triggerDescription: The new `TriggerDescription` or `nil` to reset.
279 | func setTriggerDescription(_ triggerDescription: TriggerDescription?) {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
280 | Task {
281 | await PluginCommunication.shared.sendEvent(.setTriggerDescription,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:46:33: warning: capture of non-sendable type 'A.Type' in an isolated closure
44 | /// - action: The `Action`.
45 | /// - event: The `KeyEvent` which is passed to handler.
46 | func beginTimer<A: Action>(for action: A, event: ActionEvent<KeyEvent<A.Settings>>) {
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
47 |
48 | log.log("Beginning long press timer for \(action.context, privacy: .public)")
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:53:19: warning: capture of non-sendable type 'A.Type' in an isolated closure
51 | let timer = Timer(timeInterval: action.longPressDuration, repeats: false) { _ in
52 | log.log("Long key press timer has fired for \(action.context, privacy: .public)")
53 | self.lastState[action.context] = true
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
54 | action.longKeyPress(device: event.device, payload: event.payload)
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:54:11: warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
52 | log.log("Long key press timer has fired for \(action.context, privacy: .public)")
53 | self.lastState[action.context] = true
54 | action.longKeyPress(device: event.device, payload: event.payload)
| `- warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:64:33: warning: capture of non-sendable type 'A.Type' in an isolated closure
62 | /// - action: The `Action`.
63 | /// - event: The `KeyEvent` which is passed to handler.
64 | func beginTimer<A: Action>(for action: A, event: ActionEvent<EncoderPressEvent<A.Settings>>) {
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
65 |
66 | log.log("Beginning long press timer for \(action.context, privacy: .public)")
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:71:19: warning: capture of non-sendable type 'A.Type' in an isolated closure
69 | let timer = Timer(timeInterval: action.longPressDuration, repeats: false) { _ in
70 | log.log("Long dial press timer has fired for \(action.context, privacy: .public)")
71 | self.lastState[action.context] = true
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
72 | action.longDialPress(device: event.device, payload: event.payload)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:72:11: warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
70 | log.log("Long dial press timer has fired for \(action.context, privacy: .public)")
71 | self.lastState[action.context] = true
72 | action.longDialPress(device: event.device, payload: event.payload)
| `- warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/StreamDeckPlugin/SDPlugin+Sent.swift:38:37: warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
36 | func setSettings<P: Encodable>(in context: String, to settings: P) {
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
| `- warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | context: context,
40 | payload: settings)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/StreamDeckPlugin/SDPlugin+Sent.swift:36:56: warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
34 | /// - context: An opaque value identifying the instance's action or Property Inspector.
35 | /// - settings: A json object which is persistently saved for the action's instance.
36 | func setSettings<P: Encodable>(in context: String, to settings: P) {
| `- warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:46:33: warning: capture of non-sendable type 'A.Type' in an isolated closure
44 | /// - action: The `Action`.
45 | /// - event: The `KeyEvent` which is passed to handler.
46 | func beginTimer<A: Action>(for action: A, event: ActionEvent<KeyEvent<A.Settings>>) {
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
47 |
48 | log.log("Beginning long press timer for \(action.context, privacy: .public)")
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:53:19: warning: capture of non-sendable type 'A.Type' in an isolated closure
51 | let timer = Timer(timeInterval: action.longPressDuration, repeats: false) { _ in
52 | log.log("Long key press timer has fired for \(action.context, privacy: .public)")
53 | self.lastState[action.context] = true
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
54 | action.longKeyPress(device: event.device, payload: event.payload)
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:54:11: warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
52 | log.log("Long key press timer has fired for \(action.context, privacy: .public)")
53 | self.lastState[action.context] = true
54 | action.longKeyPress(device: event.device, payload: event.payload)
| `- warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:64:33: warning: capture of non-sendable type 'A.Type' in an isolated closure
62 | /// - action: The `Action`.
63 | /// - event: The `KeyEvent` which is passed to handler.
64 | func beginTimer<A: Action>(for action: A, event: ActionEvent<EncoderPressEvent<A.Settings>>) {
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
65 |
66 | log.log("Beginning long press timer for \(action.context, privacy: .public)")
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:71:19: warning: capture of non-sendable type 'A.Type' in an isolated closure
69 | let timer = Timer(timeInterval: action.longPressDuration, repeats: false) { _ in
70 | log.log("Long dial press timer has fired for \(action.context, privacy: .public)")
71 | self.lastState[action.context] = true
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
72 | action.longDialPress(device: event.device, payload: event.payload)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:72:11: warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
70 | log.log("Long dial press timer has fired for \(action.context, privacy: .public)")
71 | self.lastState[action.context] = true
72 | action.longDialPress(device: event.device, payload: event.payload)
| `- warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/StreamDeckPlugin/SDPlugin+Sent.swift:38:37: warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
36 | func setSettings<P: Encodable>(in context: String, to settings: P) {
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
| `- warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | context: context,
40 | payload: settings)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/StreamDeckPlugin/SDPlugin+Sent.swift:36:56: warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
34 | /// - context: An opaque value identifying the instance's action or Property Inspector.
35 | /// - settings: A json object which is persistently saved for the action's instance.
36 | func setSettings<P: Encodable>(in context: String, to settings: P) {
| `- warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:46:33: warning: capture of non-sendable type 'A.Type' in an isolated closure
44 | /// - action: The `Action`.
45 | /// - event: The `KeyEvent` which is passed to handler.
46 | func beginTimer<A: Action>(for action: A, event: ActionEvent<KeyEvent<A.Settings>>) {
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
47 |
48 | log.log("Beginning long press timer for \(action.context, privacy: .public)")
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:53:19: warning: capture of non-sendable type 'A.Type' in an isolated closure
51 | let timer = Timer(timeInterval: action.longPressDuration, repeats: false) { _ in
52 | log.log("Long key press timer has fired for \(action.context, privacy: .public)")
53 | self.lastState[action.context] = true
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
54 | action.longKeyPress(device: event.device, payload: event.payload)
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:54:11: warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
52 | log.log("Long key press timer has fired for \(action.context, privacy: .public)")
53 | self.lastState[action.context] = true
54 | action.longKeyPress(device: event.device, payload: event.payload)
| `- warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:64:33: warning: capture of non-sendable type 'A.Type' in an isolated closure
62 | /// - action: The `Action`.
63 | /// - event: The `KeyEvent` which is passed to handler.
64 | func beginTimer<A: Action>(for action: A, event: ActionEvent<EncoderPressEvent<A.Settings>>) {
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
65 |
66 | log.log("Beginning long press timer for \(action.context, privacy: .public)")
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:71:19: warning: capture of non-sendable type 'A.Type' in an isolated closure
69 | let timer = Timer(timeInterval: action.longPressDuration, repeats: false) { _ in
70 | log.log("Long dial press timer has fired for \(action.context, privacy: .public)")
71 | self.lastState[action.context] = true
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
72 | action.longDialPress(device: event.device, payload: event.payload)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:72:11: warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
70 | log.log("Long dial press timer has fired for \(action.context, privacy: .public)")
71 | self.lastState[action.context] = true
72 | action.longDialPress(device: event.device, payload: event.payload)
| `- warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/StreamDeckPlugin/SDPlugin+Sent.swift:38:37: warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
36 | func setSettings<P: Encodable>(in context: String, to settings: P) {
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
| `- warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | context: context,
40 | payload: settings)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/StreamDeckPlugin/SDPlugin+Sent.swift:36:56: warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
34 | /// - context: An opaque value identifying the instance's action or Property Inspector.
35 | /// - settings: A json object which is persistently saved for the action's instance.
36 | func setSettings<P: Encodable>(in context: String, to settings: P) {
| `- warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:46:33: warning: capture of non-sendable type 'A.Type' in an isolated closure
44 | /// - action: The `Action`.
45 | /// - event: The `KeyEvent` which is passed to handler.
46 | func beginTimer<A: Action>(for action: A, event: ActionEvent<KeyEvent<A.Settings>>) {
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
47 |
48 | log.log("Beginning long press timer for \(action.context, privacy: .public)")
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:53:19: warning: capture of non-sendable type 'A.Type' in an isolated closure
51 | let timer = Timer(timeInterval: action.longPressDuration, repeats: false) { _ in
52 | log.log("Long key press timer has fired for \(action.context, privacy: .public)")
53 | self.lastState[action.context] = true
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
54 | action.longKeyPress(device: event.device, payload: event.payload)
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:54:11: warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
52 | log.log("Long key press timer has fired for \(action.context, privacy: .public)")
53 | self.lastState[action.context] = true
54 | action.longKeyPress(device: event.device, payload: event.payload)
| `- warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:64:33: warning: capture of non-sendable type 'A.Type' in an isolated closure
62 | /// - action: The `Action`.
63 | /// - event: The `KeyEvent` which is passed to handler.
64 | func beginTimer<A: Action>(for action: A, event: ActionEvent<EncoderPressEvent<A.Settings>>) {
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
65 |
66 | log.log("Beginning long press timer for \(action.context, privacy: .public)")
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:71:19: warning: capture of non-sendable type 'A.Type' in an isolated closure
69 | let timer = Timer(timeInterval: action.longPressDuration, repeats: false) { _ in
70 | log.log("Long dial press timer has fired for \(action.context, privacy: .public)")
71 | self.lastState[action.context] = true
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
72 | action.longDialPress(device: event.device, payload: event.payload)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:72:11: warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
70 | log.log("Long dial press timer has fired for \(action.context, privacy: .public)")
71 | self.lastState[action.context] = true
72 | action.longDialPress(device: event.device, payload: event.payload)
| `- warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/StreamDeckPlugin/SDPlugin+Sent.swift:38:37: warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
36 | func setSettings<P: Encodable>(in context: String, to settings: P) {
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
| `- warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | context: context,
40 | payload: settings)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/StreamDeckPlugin/SDPlugin+Sent.swift:36:56: warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
34 | /// - context: An opaque value identifying the instance's action or Property Inspector.
35 | /// - settings: A json object which is persistently saved for the action's instance.
36 | func setSettings<P: Encodable>(in context: String, to settings: P) {
| `- warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:46:33: warning: capture of non-sendable type 'A.Type' in an isolated closure
44 | /// - action: The `Action`.
45 | /// - event: The `KeyEvent` which is passed to handler.
46 | func beginTimer<A: Action>(for action: A, event: ActionEvent<KeyEvent<A.Settings>>) {
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
47 |
48 | log.log("Beginning long press timer for \(action.context, privacy: .public)")
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:53:19: warning: capture of non-sendable type 'A.Type' in an isolated closure
51 | let timer = Timer(timeInterval: action.longPressDuration, repeats: false) { _ in
52 | log.log("Long key press timer has fired for \(action.context, privacy: .public)")
53 | self.lastState[action.context] = true
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
54 | action.longKeyPress(device: event.device, payload: event.payload)
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:54:11: warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
52 | log.log("Long key press timer has fired for \(action.context, privacy: .public)")
53 | self.lastState[action.context] = true
54 | action.longKeyPress(device: event.device, payload: event.payload)
| `- warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:64:33: warning: capture of non-sendable type 'A.Type' in an isolated closure
62 | /// - action: The `Action`.
63 | /// - event: The `KeyEvent` which is passed to handler.
64 | func beginTimer<A: Action>(for action: A, event: ActionEvent<EncoderPressEvent<A.Settings>>) {
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
65 |
66 | log.log("Beginning long press timer for \(action.context, privacy: .public)")
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:71:19: warning: capture of non-sendable type 'A.Type' in an isolated closure
69 | let timer = Timer(timeInterval: action.longPressDuration, repeats: false) { _ in
70 | log.log("Long dial press timer has fired for \(action.context, privacy: .public)")
71 | self.lastState[action.context] = true
| `- warning: capture of non-sendable type 'A.Type' in an isolated closure
72 | action.longDialPress(device: event.device, payload: event.payload)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/Action/LongPress.swift:72:11: warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
70 | log.log("Long dial press timer has fired for \(action.context, privacy: .public)")
71 | self.lastState[action.context] = true
72 | action.longDialPress(device: event.device, payload: event.payload)
| `- warning: capture of non-sendable type 'A.Settings.Type' in an isolated closure
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/StreamDeckPlugin/SDPlugin+Sent.swift:38:37: warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
36 | func setSettings<P: Encodable>(in context: String, to settings: P) {
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
| `- warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 | context: context,
40 | payload: settings)
/Users/admin/builder/spi-builder-workspace/Sources/StreamDeck/StreamDeck Plugin/StreamDeckPlugin/SDPlugin+Sent.swift:36:56: warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
34 | /// - context: An opaque value identifying the instance's action or Property Inspector.
35 | /// - settings: A json object which is persistently saved for the action's instance.
36 | func setSettings<P: Encodable>(in context: String, to settings: P) {
| `- warning: capture of non-sendable type 'P.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | Task {
38 | await PluginCommunication.shared.sendEvent(.setSettings,
Build complete! (51.30s)
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/apple/swift-docc-plugin
[1/2082] Fetching swift-docc-plugin
[231/17462] Fetching swift-docc-plugin, swift-argument-parser
[15003/88386] Fetching swift-docc-plugin, swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-argument-parser.git from cache (3.22s)
Fetched https://github.com/apple/swift-docc-plugin from cache (3.22s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (3.22s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.5.1 (3.72s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.4 (2.94s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3414] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.12s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.69s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.1 (0.63s)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.5.1
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 601.0.1
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.4
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/601.0.1/swiftlang-6.2.0.9.909-MacroSupport-macos_aarch64.zip
Build complete.
{
"dependencies" : [
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser.git"
},
{
"identity" : "swift-syntax",
"requirement" : {
"range" : [
{
"lower_bound" : "509.0.0",
"upper_bound" : "602.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-syntax.git"
},
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "StreamDeck",
"name" : "StreamDeck",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "StreamDeck",
"targets" : [
"StreamDeck"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "StreamDeckMacros",
"targets" : [
"StreamDeckMacros"
],
"type" : {
"macro" : null
}
}
],
"targets" : [
{
"c99name" : "StreamDeckPluginTests",
"module_type" : "SwiftTarget",
"name" : "StreamDeckPluginTests",
"path" : "Tests/StreamDeckPluginTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/StreamDeckPluginTests/Support/Test Events",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"PluginEventTests.swift",
"PluginManifestTests.swift",
"PluginRegistrationTests.swift",
"StreamDeckPluginTests.swift",
"Support/TestEvents.swift",
"Support/TestPlugin.swift"
],
"target_dependencies" : [
"StreamDeck"
],
"type" : "test"
},
{
"c99name" : "StreamDeckMacrosTests",
"module_type" : "SwiftTarget",
"name" : "StreamDeckMacrosTests",
"path" : "Tests/StreamDeckMacrosTests",
"product_dependencies" : [
"SwiftSyntaxMacrosTestSupport"
],
"sources" : [
"SettingsMacroTests.swift"
],
"target_dependencies" : [
"StreamDeckMacros"
],
"type" : "test"
},
{
"c99name" : "StreamDeckMacros",
"module_type" : "SwiftTarget",
"name" : "StreamDeckMacros",
"path" : "Sources/StreamDeckMacros",
"product_dependencies" : [
"SwiftSyntaxMacros",
"SwiftCompilerPlugin"
],
"product_memberships" : [
"StreamDeck",
"StreamDeckMacros"
],
"sources" : [
"EntryMacro.swift",
"KeyMacros.swift",
"Plugin.swift",
"SharedKeyMacro.swift"
],
"type" : "macro"
},
{
"c99name" : "StreamDeck",
"module_type" : "SwiftTarget",
"name" : "StreamDeck",
"path" : "Sources/StreamDeck",
"product_dependencies" : [
"ArgumentParser"
],
"product_memberships" : [
"StreamDeck"
],
"sources" : [
"Builders/ActionBuilder.swift",
"Command Line/ExportCommand.swift",
"Command Line/PluginCommand.swift",
"Command Line/StreamDeckCommand.swift",
"Command Line/StreamDeckKey.swift",
"Events/EventProtocols.swift",
"Events/Events.swift",
"Extensions/CharSet+DNS.swift",
"Extensions/NSImage+Base64.swift",
"Extensions/URL+Argument.swift",
"Macros/SettingsMacros.swift",
"StreamDeck Plugin/Action/Action+Received.swift",
"StreamDeck Plugin/Action/Action+Sent.swift",
"StreamDeck Plugin/Action/Action+Support.swift",
"StreamDeck Plugin/Action/Action.swift",
"StreamDeck Plugin/Action/LongPress.swift",
"StreamDeck Plugin/PluginCommunication.swift",
"StreamDeck Plugin/StreamDeckError.swift",
"StreamDeck Plugin/StreamDeckPlugin/SDPlugin+Received.swift",
"StreamDeck Plugin/StreamDeckPlugin/SDPlugin+Sent.swift",
"StreamDeck Plugin/StreamDeckPlugin/SDPlugin+Support.swift",
"StreamDeck Plugin/StreamDeckPlugin/StreamDeckPlugin.swift",
"Support Models/ActionControllerRegistry.swift",
"Support Models/Environment/EnvironmentKey.swift",
"Support Models/Environment/EnvironmentValues.swift",
"Support Models/Environment/EnvironmentWrapper.swift",
"Support Models/PluginManifest/ApplicationsToMonitor.swift",
"Support Models/PluginManifest/Coordinates.swift",
"Support Models/PluginManifest/Fonts.swift",
"Support Models/PluginManifest/Hardware.swift",
"Support Models/PluginManifest/PluginAction.swift",
"Support Models/PluginManifest/PluginActionState.swift",
"Support Models/PluginManifest/PluginInfo.swift",
"Support Models/PluginManifest/PluginManifest.swift",
"Support Models/PluginManifest/PluginOS.swift",
"Support Models/PluginManifest/PluginProfile.swift",
"Support Models/PluginManifest/PluginSoftware.swift",
"Support Models/RotaryEncoder/RotaryEncoder.swift",
"Support Models/RotaryEncoder/TriggerDescription.swift",
"Support Models/SPDI.swift",
"Support Models/Settings/GlobalSettings.swift",
"Support Models/Settings/GlobalSettingsKey.swift",
"Support Models/Settings/SettingsWrapper.swift",
"Support Models/State.swift"
],
"target_dependencies" : [
"StreamDeckMacros",
"SDPlusLayout"
],
"type" : "library"
},
{
"c99name" : "SDPlusLayoutTests",
"module_type" : "SwiftTarget",
"name" : "SDPlusLayoutTests",
"path" : "Tests/SDPlusLayoutTests",
"sources" : [
"LayoutTests.swift"
],
"target_dependencies" : [
"SDPlusLayout"
],
"type" : "test"
},
{
"c99name" : "SDPlusLayout",
"module_type" : "SwiftTarget",
"name" : "SDPlusLayout",
"path" : "Sources/SDPlusLayout",
"product_memberships" : [
"StreamDeck"
],
"sources" : [
"BarLayoutItem.swift",
"Color/Color+ExpressibleByStringLiteral.swift",
"Color/Color+FormatStyle.swift",
"Color/Color.swift",
"Color/ColorStyle.swift",
"Color/Gradient.swift",
"Elements/Bar.swift",
"Elements/Image.swift",
"Elements/Slider.swift",
"Elements/Text.swift",
"Extensions/Clamped.swift",
"Layout.swift",
"LayoutItem.swift",
"LayoutItemKey.swift",
"LayoutName.swift",
"LayoutSettings.swift",
"ModifiedItem.swift",
"Properties.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.