Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
50 changes: 32 additions & 18 deletions .github/workflows/testing-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,10 @@ jobs:
fail-fast: false
matrix:
include:
# https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md
- os: macos-13
xcode: 14.2
platform: "iOS Simulator,OS=17.2,name=iPhone 14 Pro"
- os: macos-13
xcode: 14.2
platform: "macOS"
- os: macos-13
xcode: 14.2
platform: "macOS,variant=Mac Catalyst"
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md
- os: macos-14
xcode: 15.4
platform: "iOS Simulator,OS=17.5,name=iPhone 15 Pro"
platform: "iOS Simulator,name=iPhone 15 Pro,OS=17.5"
- os: macos-14
xcode: 15.4
platform: "macOS"
Expand All @@ -39,20 +29,44 @@ jobs:
platform: "macOS,variant=Mac Catalyst"
- os: macos-14
xcode: 15.4
platform: "visionOS Simulator,name=Apple Vision Pro" # visionOS 1.2
platform: "visionOS Simulator,name=Apple Vision Pro,OS=1.2"
- os: macos-14
xcode: 15.4
platform: "tvOS Simulator,name=Apple TV"
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md
platform: "tvOS Simulator,name=Apple TV,OS=17.5"

# https://github.com/actions/runner-images/blob/main/images/macos/macos-15-Readme.md
- os: macos-15
xcode: 16.1
platform: "iOS Simulator,OS=18.1,name=iPhone 16 Pro"
xcode: 16.4
platform: "iOS Simulator,name=iPhone 16 Pro,OS=18.5"
- os: macos-15
xcode: 16.1
xcode: 16.4
platform: "macOS"
- os: macos-15
xcode: 16.1
xcode: 16.4
platform: "macOS,variant=Mac Catalyst"
- os: macos-15
xcode: 16.4
platform: "visionOS Simulator,name=Apple Vision Pro,OS=2.5"
- os: macos-15
xcode: 16.4
platform: "tvOS Simulator,name=Apple TV,OS=18.5"

# https://github.com/actions/runner-images/tree/main/images/macos
# - os: macos-15
# xcode: latest
# platform: "iOS Simulator,name=iPhone 16 Pro,OS=26.0"
- os: macos-15
xcode: latest
platform: "macOS"
# - os: macos-15
# xcode: latest
# platform: "macOS,variant=Mac Catalyst"
# - os: macos-15
# xcode: latest
# platform: "visionOS Simulator,name=Apple Vision Pro,OS=26.0"
# - os: macos-15
# xcode: latest
# platform: "tvOS Simulator,name=Apple TV,OS=26.0"

runs-on: ${{ matrix.os }}
timeout-minutes: 30
Expand Down
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.7 # Xcode 14
5.9
9 changes: 7 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// swift-tools-version:5.7
// (Xcode14.0+)
// swift-tools-version:5.9
// (Xcode15.0+)

import PackageDescription

Expand All @@ -9,6 +9,8 @@ let package = Package(
.iOS(.v14),
.macOS(.v11),
.macCatalyst(.v14),
.visionOS(.v1),
.tvOS(.v17),
],
products: [
.library(
Expand All @@ -32,5 +34,8 @@ let package = Package(
name: "LiveKitComponentsTests",
dependencies: ["LiveKitComponents"]
),
],
swiftLanguageVersions: [
.v5,
]
)
38 changes: 0 additions & 38 deletions [email protected]

This file was deleted.

2 changes: 1 addition & 1 deletion [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ let package = Package(
.iOS(.v14),
.macOS(.v11),
.macCatalyst(.v14),
.tvOS(.v17),
.visionOS(.v1),
.tvOS(.v17),
],
products: [
.library(
Expand Down
20 changes: 10 additions & 10 deletions Sources/LiveKitComponents/UI/Visualizer/BarAudioVisualizer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -180,21 +180,21 @@ extension BarAudioVisualizer {

func duration(agentState: AgentState) -> TimeInterval {
switch agentState {
case .connecting, .initializing: return 2 / Double(barCount)
case .listening: return 0.5
case .thinking: return 0.15
case .speaking: return veryLongDuration
default: return veryLongDuration
case .connecting, .initializing: 2 / Double(barCount)
case .listening: 0.5
case .thinking: 0.15
case .speaking: veryLongDuration
default: veryLongDuration
}
}

func highlightingSequence(agentState: AgentState) -> [HighlightedBars] {
switch agentState {
case .connecting, .initializing: return (0 ..< barCount).map { HighlightedBars([$0, barCount - 1 - $0]) }
case .thinking: return Array((0 ..< barCount) + (0 ..< barCount).reversed()).map { HighlightedBars([$0]) }
case .listening: return barCount % 2 == 0 ? [[(barCount / 2) - 1, barCount / 2], []] : [[barCount / 2], []]
case .speaking, .unknown: return [HighlightedBars(0 ..< barCount)]
case .disconnected: return [[]]
case .connecting, .initializing: (0 ..< barCount).map { HighlightedBars([$0, barCount - 1 - $0]) }
case .thinking: Array((0 ..< barCount) + (0 ..< barCount).reversed()).map { HighlightedBars([$0]) }
case .listening: barCount % 2 == 0 ? [[(barCount / 2) - 1, barCount / 2], []] : [[barCount / 2], []]
case .speaking, .unknown: [HighlightedBars(0 ..< barCount)]
case .disconnected: [[]]
}
}
}
Expand Down