Skip to content

Commit

Permalink
Remove SwiftPMSupport.
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo4405 committed Sep 7, 2024
1 parent 4d72f06 commit 278bb11
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 50 deletions.
3 changes: 1 addition & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ let package = Package(
name: "libsrt",
path: "Vendor/SRT/libsrt.xcframework"
),
.target(name: "SwiftPMSupport"),
.target(name: "HaishinKit",
dependencies: ["Logboard", "SwiftPMSupport"],
dependencies: ["Logboard"],
path: "Sources",
sources: [
"Codec",
Expand Down
17 changes: 0 additions & 17 deletions Platforms/HaishinKit.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,3 @@
static NSString *const __nonnull HaishinKitIdentifier = @"com.haishinkit.HaishinKit";
FOUNDATION_EXPORT double HaishinKitVersionNumber;
FOUNDATION_EXPORT const unsigned char HaishinKitVersionString[];

// @see http://stackoverflow.com/questions/35119531/catch-objective-c-exception-in-swift
NS_INLINE void nstry(void(^_Nonnull lambda)(void), void(^_Nullable error)(NSException *_Nonnull exception)) {
@try {
lambda();
}
@catch (NSException *exception) {
if (error != NULL) {
@try {
error(exception);
}@catch(NSException *exception) {

}
}
}
}

3 changes: 0 additions & 3 deletions Sources/HKStream/HKStreamRecorder.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
@preconcurrency import AVFoundation
#if canImport(SwiftPMSupport)
import SwiftPMSupport
#endif

// MARK: -
/// An actor represents video and audio recorder.
Expand Down
3 changes: 0 additions & 3 deletions Sources/SwiftPMSupport/dummy.m

This file was deleted.

21 changes: 0 additions & 21 deletions Sources/SwiftPMSupport/include/HaishinKit.h

This file was deleted.

4 changes: 0 additions & 4 deletions Sources/Util/Constants.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import Logboard

#if canImport(SwiftPMSupport)
import SwiftPMSupport
#endif

nonisolated(unsafe) let logger = LBLogger.with(HaishinKitIdentifier)

0 comments on commit 278bb11

Please sign in to comment.