Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media public api and tracker #4

Merged
merged 19 commits into from
Feb 25, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
format/lint fixes
  • Loading branch information
addb committed Feb 25, 2021
commit 2abc22b07ee03f829930a25b79559dd36caca7bb
4 changes: 2 additions & 2 deletions AEPMedia/Sources/MediaEventTracking.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
import Foundation

protocol MediaEventTracking {
func track(eventData: [String:Any]?)

func track(eventData: [String: Any]?)
}
2 changes: 1 addition & 1 deletion AEPMedia/Sources/MediaProcessor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
import Foundation

protocol MediaProcessor {

func createSession(state: MediaState) -> MediaSession
}
6 changes: 3 additions & 3 deletions AEPMedia/Sources/MediaSession.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
import Foundation

protocol MediaSession {

func processHit(hit: MediaHit)

func end()

func abort()
}
3 changes: 1 addition & 2 deletions AEPMedia/Sources/mediacollection/MediaHit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
governing permissions and limitations under the License.
*/


import Foundation

class MediaHit {
//TODO: Implement class MediaHit.
//TODO: Implement class MediaHit.
}
1 change: 0 additions & 1 deletion AEPMedia/Tests/MediaObjectTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ class MediaObjectTests: XCTestCase {

func testMediaInfo_Init_Valid_WithAllParams() {
let mediaInfo = MediaInfo(id: "testId", name: "testName", streamType: "aod", mediaType: MediaType.Audio, length: 10.1, resumed: true, prerollWaitingTime: 2000, granularAdTracking: true)
XCTAssertNotNil(mediaInfo)

XCTAssertNotNil(mediaInfo)
XCTAssertEqual("testId", mediaInfo?.id)
Expand Down