diff --git a/Sources/xcresultparser/CoberturaCoverageConverter.swift b/Sources/xcresultparser/CoberturaCoverageConverter.swift index 9de3ae6..7537266 100644 --- a/Sources/xcresultparser/CoberturaCoverageConverter.swift +++ b/Sources/xcresultparser/CoberturaCoverageConverter.swift @@ -75,9 +75,7 @@ public class CoberturaCoverageConverter: CoverageConverter, XmlSerializable { guard let covered = lineData.executionCount else { continue } - // If the line coverage count is a MAX_INT, just cap it at MAX_INT - let coveredAsInt = covered > Double(Int.max) ? Int.max : Int(covered) - let line = LineInfo(lineNumber: String(lineNum), coverage: coveredAsInt) + let line = LineInfo(lineNumber: String(lineNum), coverage: covered) fileLines.append(line) } @@ -184,7 +182,7 @@ public class CoberturaCoverageConverter: CoverageConverter, XmlSerializable { private struct LineInfo { let lineNumber: String - let coverage: Int + let coverage: UInt64 } private struct FileInfo { diff --git a/Sources/xcresultparser/Models/Coverage/LineDetail.swift b/Sources/xcresultparser/Models/Coverage/LineDetail.swift index f158763..fb28d95 100644 --- a/Sources/xcresultparser/Models/Coverage/LineDetail.swift +++ b/Sources/xcresultparser/Models/Coverage/LineDetail.swift @@ -10,6 +10,6 @@ import Foundation struct LineDetail: Decodable { let isExecutable: Bool let line: Int - let executionCount: Double? + let executionCount: UInt64? let subranges: [Subrange]? } diff --git a/Sources/xcresultparser/Models/Coverage/Subrange.swift b/Sources/xcresultparser/Models/Coverage/Subrange.swift index 6e2a88a..2cb36c8 100644 --- a/Sources/xcresultparser/Models/Coverage/Subrange.swift +++ b/Sources/xcresultparser/Models/Coverage/Subrange.swift @@ -9,6 +9,6 @@ import Foundation // Subrange information struct struct Subrange: Decodable { let column: Int - let executionCount: Double + let executionCount: UInt64 let length: Int } diff --git a/notarize.sh b/notarize.sh index 3ea1f14..01c22ce 100644 --- a/notarize.sh +++ b/notarize.sh @@ -59,6 +59,9 @@ fi swift build -c release --arch arm64 --arch x86_64 # move the result from the .build folder to the product folder +if [ ! -d product ]; then + mkdir product +fi cp ".build/apple/Products/Release/$productName" "product/$productName" # Now codesign the app with hardening (-o)