Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Commit

Permalink
Replaced isNewVRMCoreEnabled with isFailoverEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanTysiachnik committed Mar 6, 2019
1 parent 6237295 commit 331eeeb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion PlayerCore
2 changes: 1 addition & 1 deletion sources/VVPSDK.swift
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public struct VVPSDK {
controlsAnimationSupported: videoResponse.features.isControlsAnimationEnabled,
isVPAIDAllowed: videoResponse.features.isVPAIDAllowed,
isOpenMeasurementAllowed: videoResponse.features.isOpenMeasurementEnabled,
isNewVRMCoreEnabled: videoResponse.features.isNewVRMCoreEnabled,
isFailoverEnabled: videoResponse.features.isFailoverEnabled,
adSettings: adSettings,
vpaidSettings: vpaidSettings,
omSettings: omSettings)
Expand Down
2 changes: 1 addition & 1 deletion sources/video provider/VideoProviderResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ extension VideoProvider.Response {
public let isControlsAnimationEnabled: Bool
public let isVPAIDAllowed: Bool
public let isOpenMeasurementEnabled: Bool
public let isNewVRMCoreEnabled: Bool
public let isFailoverEnabled: Bool
}

public struct AdSettings {
Expand Down
2 changes: 1 addition & 1 deletion sources/video provider/provider/VideoProviderParsing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ extension VideoProvider.Parse {
return try .init(isControlsAnimationEnabled: json.parse("isControlsAnimationEnabled"),
isVPAIDAllowed: json.parse("isVPAIDAllowed"),
isOpenMeasurementEnabled: json.parse("isOpenMeasurementEnabled"),
isNewVRMCoreEnabled: json.parse("isNewVRMCoreEnabled"))
isFailoverEnabled: false)
}

static func adSettings(from json: JSON) throws -> VideoProvider.Response.AdSettings {
Expand Down
4 changes: 2 additions & 2 deletions sources/video provider/provider/VideoProviderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ class VideoProviderTests: XCTestCase {
"isControlsAnimationEnabled": false,
"isVPAIDAllowed": true,
"isOpenMeasurementEnabled": true,
"isNewVRMCoreEnabled": false
"isFailoverEnabled": true
]

static let adSettings: JSON = [
Expand Down Expand Up @@ -380,7 +380,7 @@ class VideoProviderTests: XCTestCase {
expect(value.features.isControlsAnimationEnabled) == false
expect(value.features.isVPAIDAllowed) == true
expect(value.features.isOpenMeasurementEnabled) == true
expect(value.features.isNewVRMCoreEnabled) == false
expect(value.features.isFailoverEnabled) == true
expect(value.adSettings.prefetchingOffset) == 7
expect(value.adSettings.softTimeout) == 0.5
expect(value.adSettings.hardTimeout) == 2.5
Expand Down

0 comments on commit 331eeeb

Please sign in to comment.