Skip to content

Commit

Permalink
Set up example for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
bsneed committed Jul 9, 2024
1 parent 9c50962 commit bbab249
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Example/BasicExample/BasicExample/BasicExampleApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ extension Analytics {
instance = Analytics(configuration: Configuration(writeKey: "<WRITE_KEY>")
.flushAt(3)
.trackApplicationLifecycleEvents(true))
instance?.add(plugin: AmplitudeSession())
instance?.add(plugin: AmplitudeSession(
enableSessionEvents: true,
enableLifecycleEvents: true,
enableScreenEvents: true,
enableDeepLinkEvents: true
))
}

return instance!
Expand Down
2 changes: 1 addition & 1 deletion Example/BasicExample/BasicExample/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct ContentView: View {
Text("Track")
}).padding(6)
Button(action: {
Analytics.main.screen(title: "Screen appeared")
Analytics.main.screen(title: "MyScreen")
}, label: {
Text("Screen")
}).padding(6)
Expand Down

0 comments on commit bbab249

Please sign in to comment.