Skip to content

Commit 8bd2005

Browse files
committed
fixes
1 parent 54366b9 commit 8bd2005

File tree

6 files changed

+7
-4
lines changed

6 files changed

+7
-4
lines changed

Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ let package = Package(
4747
],
4848
swiftSettings: [
4949
.enableUpcomingFeature("StrictConcurrency"),
50+
.define("TESTING"),
5051
],
5152
),
5253
],

Sources/ElevenLabs/Conversation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ public final class Conversation: ObservableObject, RoomDelegate {
716716

717717
// MARK: - Testing Hooks
718718

719-
#if DEBUG
719+
#if DEBUG || TESTING
720720
@MainActor
721721
func _testing_handleIncomingEvent(_ event: IncomingEvent) async {
722722
await handleIncomingEvent(event)

Sources/ElevenLabs/ElevenLabs.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import LiveKit
2020
public enum ElevenLabs {
2121
// MARK: - Version
2222

23-
public static let version = "2.0.17"
23+
public static let version = "2.1.0-alpha.1"
2424

2525
// MARK: - Configuration
2626

Sources/ElevenLabs/Version.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
import Foundation
44

55
enum SDKVersion {
6-
static let version = "2.0.17"
6+
static let version = "2.1.0-alpha.1"
77
}

Tests/ElevenLabsTests/Integration/ConversationIntegrationTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ final class ConversationIntegrationTests: XCTestCase {
209209
// Force garbage collection
210210
autoreleasepool {}
211211

212+
XCTAssertNil(weakConversation, "Conversation should be deallocated after scope exit")
213+
212214
// Note: This test might not be reliable without proper test infrastructure
213215
// In a real integration test, we'd use memory profiling tools
214216
}

Tests/ElevenLabsTests/Tests/ElevenLabsSDKTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import XCTest
44

55
final class ElevenLabsSDKTests: XCTestCase {
66
func testSDKVersionExists() {
7-
XCTAssertEqual(ElevenLabs.version, "2.0.17")
7+
XCTAssertEqual(ElevenLabs.version, "2.1.0-alpha.1")
88
XCTAssertFalse(ElevenLabs.version.isEmpty)
99
}
1010

0 commit comments

Comments
 (0)