Skip to content

Commit

Permalink
add objc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshihorie committed Feb 24, 2024
1 parent b6b5be3 commit a62ed50
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,9 @@ let package = Package(
name: "LiveKitTests",
dependencies: ["LiveKit"]
),
.testTarget(
name: "LiveKitTestsObjC",
dependencies: ["LiveKit"]
),
]
)
3 changes: 1 addition & 2 deletions Tests/LiveKitTests/Basic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@
@testable import LiveKit
import XCTest

class Basic: XCTestCase {
}
class Basic: XCTestCase {}
29 changes: 29 additions & 0 deletions Tests/LiveKitTestsObjC/Basic.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* Copyright 2024 LiveKit
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#import <XCTest/XCTest.h>
@import LiveKit;

@interface Basic : XCTestCase
@end

@implementation Basic

- (void)sdkVersion {
NSLog(@"%@", LiveKitSDK.sdkVersion);
}

@end

0 comments on commit a62ed50

Please sign in to comment.