Skip to content

Commit

Permalink
Update following merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mscwilson committed Jan 18, 2024
1 parent 2d8ba15 commit e8151d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 9 additions & 0 deletions Sources/Core/StateMachine/ImmersiveSpaceStateMachine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@
import Foundation

class ImmersiveSpaceStateMachine: StateMachineProtocol {

static var identifier: String { return "ImmersiveSpace" }
var identifier: String { return ImmersiveSpaceStateMachine.identifier }

var subscribedEventSchemasForEventsBefore: [String] {
return []
}

var subscribedEventSchemasForTransitions: [String] {
return [swiftuiOpenImmersiveSpaceSchema, swiftuiDismissImmersiveSpaceSchema]
Expand All @@ -37,6 +42,10 @@ class ImmersiveSpaceStateMachine: StateMachineProtocol {
return []
}

func eventsBefore(event: Event) -> [Event]? {
return nil
}

func transition(from event: Event, state: State?) -> State? {
if let e = event as? OpenImmersiveSpaceEvent {
let newState = ImmersiveSpaceState(
Expand Down
9 changes: 1 addition & 8 deletions Sources/Snowplow/Configurations/TrackerConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -453,14 +453,7 @@ public class TrackerConfiguration: SerializableConfiguration, TrackerConfigurati
return self
}

/// Whether enable tracking the screen end event and the screen summary context entity.
@objc
public func screenEngagementAutotracking(_ screenEngagementAutotracking: Bool) -> Self {
self.screenEngagementAutotracking = screenEngagementAutotracking
return self
}

/// Whether to enable tracking the screen end event and the screen summary context entity.
/// Whether to enable tracking of the screen end event and the screen summary context entity.
@objc
public func screenEngagementAutotracking(_ screenEngagementAutotracking: Bool) -> Self {
self.screenEngagementAutotracking = screenEngagementAutotracking
Expand Down

0 comments on commit e8151d5

Please sign in to comment.