Skip to content

Commit

Permalink
fix build issues with newer SDK versions
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandkakonyi committed Dec 12, 2024
1 parent 256dd33 commit 564cf7e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 4 additions & 2 deletions BitmovinConvivaAnalytics/Classes/ConvivaAnalytics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ public final class ConvivaAnalytics: NSObject {
*/
public var playerView: PlayerView? {
didSet {
oldValue?.remove(listener: self)
playerView?.add(listener: self)
Task { @MainActor in
oldValue?.remove(listener: self)
playerView?.add(listener: self)
}
}
}

Expand Down
9 changes: 9 additions & 0 deletions Example/Tests/Doubles/BitmovinPlayerTestDouble.swift
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,15 @@ class BitmovinPlayerStub: NSObject, Player {
player.isAirPlayAvailable
}

var allowsAirPlay: Bool {
get {
player.allowsAirPlay

Check failure on line 447 in Example/Tests/Doubles/BitmovinPlayerTestDouble.swift

View workflow job for this annotation

GitHub Actions / Unit Tests

value of type 'any Player' has no member 'allowsAirPlay'

Check failure on line 447 in Example/Tests/Doubles/BitmovinPlayerTestDouble.swift

View workflow job for this annotation

GitHub Actions / Unit Tests

value of type 'any Player' has no member 'allowsAirPlay'
}
set {
player.allowsAirPlay = newValue

Check failure on line 450 in Example/Tests/Doubles/BitmovinPlayerTestDouble.swift

View workflow job for this annotation

GitHub Actions / Unit Tests

value of type 'any Player' has no member 'allowsAirPlay'

Check failure on line 450 in Example/Tests/Doubles/BitmovinPlayerTestDouble.swift

View workflow job for this annotation

GitHub Actions / Unit Tests

value of type 'any Player' has no member 'allowsAirPlay'
}
}

var availableVideoQualities: [VideoQuality] {
player.availableVideoQualities
}
Expand Down

0 comments on commit 564cf7e

Please sign in to comment.