Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mironiasty committed May 6, 2024
1 parent a2ed148 commit 460fb7a
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import SwiftUI
import JellyfishClientSdk
import SwiftUI

struct ParticipantVideoView: View {
@ObservedObject var participantVideo: ParticipantVideo
Expand Down
4 changes: 3 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ let package = Package(
name: "SwiftProtobuf", url: "https://github.com/apple/swift-protobuf.git",
.upToNextMajor(from: "1.18.0")),
.package(url: "https://github.com/daltoniam/Starscream.git", from: "3.0.0"),
.package(name: "Mockingbird", url: "https://github.com/birdrides/mockingbird.git", .upToNextMinor(from: "0.20.0")),
.package(
name: "Mockingbird", url: "https://github.com/birdrides/mockingbird.git",
.upToNextMinor(from: "0.20.0")),
.package(
name: "Promises", url: "https://github.com/google/promises.git", .upToNextMajor(from: "2.0.0")
),
Expand Down
1 change: 0 additions & 1 deletion Sources/JellyfishClientSdk/JellyfishClientInternal.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Foundation
import Starscream


internal class JellyfishClientInternal: MembraneRTCDelegate, WebSocketDelegate {
private var config: Config?
private var webSocket: JellyfishWebsocket?
Expand Down
2 changes: 0 additions & 2 deletions Sources/JellyfishClientSdk/JellyfishTrackContext.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


public class JellyfishTrackContext {
private var trackContext: TrackContext

Expand Down
18 changes: 9 additions & 9 deletions Sources/MembraneRTC/Types/SimulcastConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public enum TrackEncoding: Int, CustomStringConvertible, Codable {
enum TrackEncodingCodingError: Error {
case decoding(String)
}

static func fromString(_ s: String) -> TrackEncoding? {
switch s {
case "l":
Expand All @@ -37,14 +37,14 @@ public enum TrackEncoding: Int, CustomStringConvertible, Codable {
let encodingString = try container.decode(String.self)

switch encodingString {
case "l":
self = .l
case "m":
self = .m
case "h":
self = .h
default:
throw TrackEncodingCodingError.decoding("\(encodingString) is not a valid encoding")
case "l":
self = .l
case "m":
self = .m
case "h":
self = .h
default:
throw TrackEncodingCodingError.decoding("\(encodingString) is not a valid encoding")
}
}

Expand Down
7 changes: 5 additions & 2 deletions Sources/MembraneRTC/Types/TrackContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class TrackContext {

/// The reason of currently selected encoding. Only present for remote tracks.
public private(set) var encodingReason: EncodingReason? = nil

/// Possible encodings that can be requested. Only present for remote tracks.
public internal(set) var simulcastConfig: SimulcastConfig? = nil

Expand All @@ -36,7 +36,10 @@ public class TrackContext {
}
}

init(track: RemoteTrack? = nil, enpoint: Endpoint, trackId: String, metadata: Metadata, simulcastConfig: SimulcastConfig?) {
init(
track: RemoteTrack? = nil, enpoint: Endpoint, trackId: String, metadata: Metadata,
simulcastConfig: SimulcastConfig?
) {
self.track = track
self.endpoint = enpoint
self.trackId = trackId
Expand Down

0 comments on commit 460fb7a

Please sign in to comment.