Skip to content

Commit

Permalink
Removed macOS build
Browse files Browse the repository at this point in the history
Added new documentation
  • Loading branch information
francodriansetti committed Feb 29, 2024
1 parent a197ba7 commit 6a41b4e
Show file tree
Hide file tree
Showing 2,006 changed files with 35 additions and 2,395 deletions.
1 change: 1 addition & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ let package = Package(
targets: ["PlaybackSDK"]
),
],

dependencies: [
// Declare dependencies

Expand Down
3 changes: 2 additions & 1 deletion Sources/PlaybackSDK/PlayBack API/PlayBackAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Created by Franco Driansetti on 19/02/2024.
//

#if !os(macOS)
import Foundation
import Combine

Expand All @@ -24,3 +24,4 @@ internal protocol PlayBackAPI {
func getVideoDetails(forEntryId entryId: String, andAuthorizationToken: String?) -> AnyPublisher<PlaybackResponseModel, Error>
}

#endif
3 changes: 2 additions & 1 deletion Sources/PlaybackSDK/PlayBack API/PlayBackAPIService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Created by Franco Driansetti on 19/02/2024.
//

#if !os(macOS)
import Foundation
import Combine

Expand Down Expand Up @@ -80,3 +80,4 @@ internal class PlayBackAPIService: PlayBackAPI {
}


#endif
4 changes: 2 additions & 2 deletions Sources/PlaybackSDK/PlayBack API/PlaybackResponseModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Created by Franco Driansetti on 19/02/2024.
//

#if !os(macOS)
import Foundation

// Struct representing the response model for playback data, conforming to the Decodable protocol.
Expand Down Expand Up @@ -61,4 +61,4 @@ internal struct PlaybackResponseModel: Decodable {
}

}

#endif
3 changes: 2 additions & 1 deletion Sources/PlaybackSDK/PlayBackSDKManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Created by Franco Driansetti on 20/02/2024.
//

#if !os(macOS)
import Foundation
import Combine
import SwiftUI
Expand Down Expand Up @@ -186,3 +186,4 @@ public class PlayBackSDKManager {
}


#endif
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
//
// Created by Franco Driansetti on 19/02/2024.
//

#if !os(macOS)
import Foundation
import Combine

internal protocol PlayerInformationAPI {
func getPlayerInformation() -> AnyPublisher<PlayerInformationResponseModel, Error>
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Created by Franco Driansetti on 19/02/2024.
//

#if !os(macOS)
import Foundation
import Combine

Expand Down Expand Up @@ -38,3 +38,4 @@ internal class PlayerInformationAPIService: PlayerInformationAPI {
.eraseToAnyPublisher()
}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Created by Franco Driansetti on 19/02/2024.
//

#if !os(macOS)
import Foundation

internal struct PlayerInformationResponseModel: Decodable {
Expand Down Expand Up @@ -56,3 +56,4 @@ struct FeatureFlags: Decodable {
struct Defaults: Decodable {
let player: String
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Created by Franco Driansetti on 19/02/2024.
//

#if !os(macOS)
import SwiftUI
import BitmovinPlayer

Expand Down Expand Up @@ -61,3 +61,4 @@ public struct BitMovinPlayerView: View {
}
}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Created by Franco Driansetti on 19/02/2024.
//

#if !os(macOS)
import BitmovinPlayer
import SwiftUI

Expand Down Expand Up @@ -61,3 +61,4 @@ public class BitmovinPlayerPlugin: VideoPlayerPlugin {
}


#endif
3 changes: 2 additions & 1 deletion Sources/PlaybackSDK/Player Plugin/VideoPlayerPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Created by Franco Driansetti on 19/02/2024.
//

#if !os(macOS)
import AVFoundation
import SwiftUI

Expand All @@ -27,3 +27,4 @@ public protocol VideoPlayerPlugin: AnyObject {

func removePlayer()
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Created by Franco Driansetti on 19/02/2024.
//

#if !os(macOS)
import SwiftUI

public class VideoPlayerPluginManager: ObservableObject {
Expand All @@ -28,5 +28,5 @@ public class VideoPlayerPluginManager: ObservableObject {
}
}


#endif

3 changes: 2 additions & 1 deletion Sources/PlaybackSDK/PlayerUIView/PlaybackUIView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Created by Franco Driansetti on 19/02/2024.
//

#if !os(macOS)
import Combine
import SwiftUI

Expand Down Expand Up @@ -89,3 +89,4 @@ internal struct PlaybackUIView: View {
}


#endif
3 changes: 2 additions & 1 deletion Sources/PlaybackSDK/PlayerUIView/UtilsUIView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Created by Franco Driansetti on 27/02/2024.
//

#if !os(macOS)
import SwiftUI

internal struct ErrorUIView: View {
Expand All @@ -31,3 +31,4 @@ internal struct ErrorUIView: View {
#Preview {
ErrorUIView(errorMessage: "Error message")
}
#endif
9 changes: 0 additions & 9 deletions docs/PlaybackSDK.doccarchive/css/chunk-c0335d80.10a2f091.css

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

9 changes: 0 additions & 9 deletions docs/PlaybackSDK.doccarchive/css/index.038e887c.css

This file was deleted.

9 changes: 0 additions & 9 deletions docs/PlaybackSDK.doccarchive/css/topic.d8c126f3.css

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 6a41b4e

Please sign in to comment.