-
-
Notifications
You must be signed in to change notification settings - Fork 620
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
53 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
Pod::Spec.new do |s| | ||
|
||
s.name = "HaishinKit" | ||
s.version = "1.5.7" | ||
s.version = "1.6.0" | ||
s.summary = "Camera and Microphone streaming library via RTMP, HLS for iOS, macOS and tvOS." | ||
s.swift_version = "5.7" | ||
s.swift_version = "5.8" | ||
|
||
s.description = <<-DESC | ||
HaishinKit. Camera and Microphone streaming library via RTMP, HLS for iOS, macOS and tvOS. | ||
|
@@ -15,16 +15,16 @@ Pod::Spec.new do |s| | |
s.authors = { "shogo4405" => "[email protected]" } | ||
s.source = { :git => "https://github.com/shogo4405/HaishinKit.swift.git", :tag => "#{s.version}" } | ||
|
||
s.ios.deployment_target = "11.0" | ||
s.ios.deployment_target = "12.0" | ||
s.ios.source_files = "Platforms/iOS/*.{h,swift}" | ||
|
||
s.osx.deployment_target = "10.13" | ||
s.osx.source_files = "Platforms/iOS/*.{h,swift}" | ||
|
||
s.tvos.deployment_target = "11.0" | ||
s.tvos.deployment_target = "12.0" | ||
s.tvos.source_files = "Platforms/iOS/*.{h,swift}" | ||
|
||
s.source_files = "Sources/**/*.swift" | ||
s.dependency 'Logboard', '~> 2.3.1' | ||
s.dependency 'Logboard', '~> 2.4.1' | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
Tests/Extension/ExpressibleByIntegerLiteral+ExtensionTests.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import Foundation | ||
import XCTest | ||
|
||
@testable import HaishinKit | ||
|
||
final class ExpressibleByIntegerLiteralTests: XCTestCase { | ||
func testInt32() { | ||
XCTAssertEqual(Int32.min.bigEndian.data, Data([128, 0, 0, 0])) | ||
XCTAssertEqual(Int32(32).bigEndian.data, Data([0, 0, 0, 32])) | ||
XCTAssertEqual(Int32.max.bigEndian.data, Data([127, 255, 255, 255])) | ||
} | ||
|
||
func testUInt32() { | ||
XCTAssertEqual(UInt32.min.bigEndian.data, Data([0, 0, 0, 0])) | ||
XCTAssertEqual(UInt32(32).bigEndian.data, Data([0, 0, 0, 32])) | ||
XCTAssertEqual(UInt32.max.bigEndian.data, Data([255, 255, 255, 255])) | ||
} | ||
|
||
func testInt64() { | ||
XCTAssertEqual(Int64.min.bigEndian.data, Data([128, 0, 0, 0, 0, 0, 0, 0])) | ||
XCTAssertEqual(Int64(32).bigEndian.data, Data([0, 0, 0, 0, 0, 0, 0, 32])) | ||
XCTAssertEqual(Int64.max.bigEndian.data, Data([127,255,255, 255, 255, 255, 255, 255])) | ||
} | ||
|
||
func testUInt64() { | ||
XCTAssertEqual(UInt64.min.bigEndian.data, Data([0, 0, 0, 0, 0, 0, 0, 0])) | ||
XCTAssertEqual(UInt64(32).bigEndian.data, Data([0, 0, 0, 0, 0, 0, 0, 32])) | ||
XCTAssertEqual(UInt64.max.bigEndian.data, Data([255, 255, 255, 255, 255, 255, 255, 255])) | ||
} | ||
} |