Skip to content

Commit 23848ab

Browse files
committed
Fix non-public init for DestinationFilters.
1 parent 56fcd07 commit 23848ab

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Sources/AnalyticsLive/Filters/DestinationFilters.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ public class DestinationFilters: Plugin {
3636
"""#
3737
#endif
3838

39+
public init() {}
40+
3941
public func update(settings: Settings, type: UpdateType) {
4042
if engine == nil {
4143
engine = JSEngine()

Tests/AnalyticsLiveTests/Filters/AnalyticsFilters-Tests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class AnalyticsFilters_SwiftTests: XCTestCase {
3030
// and this one at the back
3131
let outputReader = OutputReaderPlugin()
3232

33-
let filters = DestinationFilters()//Old()
33+
let filters = DestinationFilters()
3434

3535
// we want the output reader on the dummy destination plugin
3636
myDestination.add(plugin: outputReader)

0 commit comments

Comments
 (0)