Skip to content

Commit 2cba375

Browse files
authored
Redesign (#20)
1 parent 72b88b1 commit 2cba375

File tree

82 files changed

+3444
-541
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+3444
-541
lines changed

.github/workflows/ci.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: CI
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
build-and-test:
16+
name: Build & Test
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
include:
21+
# https://github.com/actions/runner-images/blob/main/images/macos/macos-15-Readme.md
22+
- os: macos-15
23+
xcode: 16.2
24+
platform: "iOS Simulator,OS=18.1,name=iPhone 16 Pro"
25+
# - os: macos-15
26+
# xcode: 16.2
27+
# platform: "macOS"
28+
29+
runs-on: ${{ matrix.os }}
30+
timeout-minutes: 30
31+
defaults:
32+
run:
33+
shell: bash
34+
steps:
35+
- uses: actions/checkout@v4
36+
37+
- uses: maxim-lobanov/setup-xcode@v1
38+
with:
39+
xcode-version: ${{ matrix.xcode }}
40+
41+
- name: Xcode Version
42+
run: xcodebuild -version
43+
44+
- name: Swift Version
45+
run: xcrun swift --version
46+
47+
- name: Setup .env
48+
run: cat VoiceAssistant/.env.example.xcconfig > VoiceAssistant/.env.xcconfig
49+
50+
- name: Run Tests
51+
run: |
52+
set -o pipefail && xcodebuild test \
53+
-scheme VoiceAssistant \
54+
-destination 'platform=${{ matrix.platform }}' | xcbeautify --renderer github-actions
55+
56+
lint:
57+
name: Lint
58+
runs-on: macos-latest
59+
steps:
60+
- uses: actions/checkout@v4
61+
- name: SwiftFormat Lint
62+
run: swiftformat --lint . --reporter github-actions-log
63+
# Comes pre-installed on macOS runners

.swiftformat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
--header ""
12
--ifdef no-indent
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.application-groups</key>
6+
<array>
7+
<string>group.com.livekit.example.VoiceAssistant</string>
8+
</array>
9+
</dict>
10+
</plist>

BroadcastExtension/Info.plist

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>NSExtension</key>
6+
<dict>
7+
<key>NSExtensionPointIdentifier</key>
8+
<string>com.apple.broadcast-services-upload</string>
9+
<key>NSExtensionPrincipalClass</key>
10+
<string>$(PRODUCT_MODULE_NAME).SampleHandler</string>
11+
<key>RPBroadcastProcessMode</key>
12+
<string>RPBroadcastProcessModeSampleBuffer</string>
13+
</dict>
14+
</dict>
15+
</plist>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#if os(iOS)
2+
import LiveKit
3+
4+
class SampleHandler: LKSampleHandler, @unchecked Sendable {
5+
override var enableLogging: Bool { true }
6+
}
7+
#endif

0 commit comments

Comments
 (0)