Skip to content

Commit

Permalink
Initial implementation (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdepinet authored Oct 18, 2024
1 parent d27b432 commit 1a72a8e
Show file tree
Hide file tree
Showing 6 changed files with 551 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
check:
runs-on: macos-15 # As of Oct 16, 2024 this is actually later than "latest" and consequently has Swift 6.0.0
steps:
- uses: actions/checkout@v4

- name: format
run: swiftformat . --lint --reporter github-actions-log

- name: build
run: |
xcodebuild \
-scheme Ultravox \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 16 Pro Max,OS=18.0' \
build || exit 1
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Don't commit user-specific workspace files for any IDE
.vscode/
.swiftpm/
1 change: 1 addition & 0 deletions .swift-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.0
42 changes: 42 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"originHash" : "38eb6a55f3158e06f9828647b24881cce8e69adf37182856310efc3b71d301eb",
"pins" : [
{
"identity" : "client-sdk-swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/livekit/client-sdk-swift.git",
"state" : {
"revision" : "471a1b3d97d59de80027f44c975cd40bb72e67e0",
"version" : "2.0.16"
}
},
{
"identity" : "swift-log",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-log.git",
"state" : {
"revision" : "9cb486020ebf03bfa5b5df985387a14a98744537",
"version" : "1.6.1"
}
},
{
"identity" : "swift-protobuf",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-protobuf.git",
"state" : {
"revision" : "ebc7251dd5b37f627c93698e4374084d98409633",
"version" : "1.28.2"
}
},
{
"identity" : "webrtc-xcframework",
"kind" : "remoteSourceControl",
"location" : "https://github.com/livekit/webrtc-xcframework.git",
"state" : {
"revision" : "9b8d54b203247a84d5f2a9f682d75f4129d0b09b",
"version" : "125.6422.7"
}
}
],
"version" : 3
}
30 changes: 30 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "Ultravox",

platforms: [
.iOS(.v13),
.macOS(.v10_15), // No way to only build for iOS. WTF Apple.
],
products: [
.library(
name: "Ultravox",
targets: ["Ultravox"]
),
],
dependencies: [
.package(url: "https://github.com/livekit/client-sdk-swift.git", .upToNextMajor(from: "2.0.16")),
],
targets: [
.target(
name: "Ultravox",
dependencies: [
.product(name: "LiveKit", package: "client-sdk-swift"),
]
),
]
)
Loading

0 comments on commit 1a72a8e

Please sign in to comment.