From 859765f7c0fe6ce7a75511964ea3b0972c0f7eb7 Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Wed, 5 Oct 2022 15:08:18 +0300 Subject: [PATCH 01/11] [CI] Upgrade to Xcode 14.0.1 and upgrade deploy setup --- azure-pipelines.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 66b209a..6b6f10d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -42,7 +42,7 @@ stages: WATCHOS_SIMULATOR: 'Apple Watch Series 6 - 44mm' macosSwift57: imageName: 'macOS-12' - DEVELOPER_DIR: '/Applications/Xcode_14.0.app' + DEVELOPER_DIR: '/Applications/Xcode_14.0.1.app' WATCHOS_ACTIONS: 'clean test' WATCHOS_SIMULATOR: 'Apple Watch Series 6 (44mm)' pool: @@ -167,9 +167,9 @@ stages: - job: ghPages displayName: 'Publish API docs to GH Pages' pool: - vmImage: 'macOS-11' + vmImage: 'macOS-12' variables: - DEVELOPER_DIR: '/Applications/Xcode_12.4.app' + DEVELOPER_DIR: '/Applications/Xcode_14.0.1.app' steps: - script: | set -e -o xtrace From 4967d28d6757e5308a742f6dab30ece373c28f79 Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Wed, 12 Oct 2022 14:19:10 +0300 Subject: [PATCH 02/11] Add minimum deployment version for Darwin platforms in SPM manifest --- Package.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Package.swift b/Package.swift index 33a2037..7681cfd 100644 --- a/Package.swift +++ b/Package.swift @@ -3,6 +3,12 @@ import PackageDescription let package = Package( name: "BitByteData", + platforms: [ + .macOS(.v10_13), + .iOS(.v11), + .tvOS(.v11), + .watchOS(.v4) + ], products: [ .library( name: "BitByteData", From 75c6030cbb507c26f6ec921f0e69b4ea8276c766 Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Tue, 7 Feb 2023 15:28:17 +0200 Subject: [PATCH 03/11] Update copyright year to 2023 --- .jazzy.yaml | 2 +- BitByteData.xcodeproj/BitByteData.plist | 2 +- LICENSE | 2 +- Sources/BigEndianByteReader.swift | 2 +- Sources/BitReader.swift | 2 +- Sources/BitWriter.swift | 2 +- Sources/ByteReader.swift | 2 +- Sources/Extensions.swift | 2 +- Sources/LittleEndianByteReader.swift | 2 +- Sources/LsbBitReader.swift | 2 +- Sources/LsbBitWriter.swift | 2 +- Sources/MsbBitReader.swift | 2 +- Sources/MsbBitWriter.swift | 2 +- Sources/SignedNumberRepresentation.swift | 2 +- .../BitByteDataBenchmarks/BigEndianByteReaderBenchmarks.swift | 2 +- .../LittleEndianByteReaderBenchmarks.swift | 2 +- Tests/BitByteDataBenchmarks/LsbBitReaderBenchmarks.swift | 2 +- Tests/BitByteDataBenchmarks/LsbBitReaderByteBenchmarks.swift | 2 +- Tests/BitByteDataBenchmarks/LsbBitWriterBenchmarks.swift | 2 +- Tests/BitByteDataBenchmarks/MsbBitReaderBenchmarks.swift | 2 +- Tests/BitByteDataBenchmarks/MsbBitReaderByteBenchmarks.swift | 2 +- Tests/BitByteDataBenchmarks/MsbBitWriterBenchmarks.swift | 2 +- Tests/BitByteDataTests/BigEndianByteReaderTests.swift | 4 ++-- Tests/BitByteDataTests/LittleEndianByteReaderTests.swift | 2 +- Tests/BitByteDataTests/LsbBitReaderTests.swift | 2 +- Tests/BitByteDataTests/LsbBitWriterTests.swift | 2 +- Tests/BitByteDataTests/MsbBitReaderTests.swift | 2 +- Tests/BitByteDataTests/MsbBitWriterTests.swift | 2 +- Tests/BitByteDataTests/SignedNumberRepresentationTests.swift | 2 +- Tests/BitByteDataTests/TestHelper.swift | 2 +- 30 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.jazzy.yaml b/.jazzy.yaml index 16ac9f3..b26b745 100644 --- a/.jazzy.yaml +++ b/.jazzy.yaml @@ -4,7 +4,7 @@ clean: false author: Timofey Solomko module: BitByteData module_version: 2.0.2 -copyright: '© 2022 Timofey Solomko' +copyright: '© 2023 Timofey Solomko' readme: README.md github_url: https://github.com/tsolomko/BitByteData github_file_prefix: https://github.com/tsolomko/BitByteData/tree/2.0.2 diff --git a/BitByteData.xcodeproj/BitByteData.plist b/BitByteData.xcodeproj/BitByteData.plist index 080db02..71ff6a9 100644 --- a/BitByteData.xcodeproj/BitByteData.plist +++ b/BitByteData.xcodeproj/BitByteData.plist @@ -19,6 +19,6 @@ CFBundleVersion 28 NSHumanReadableCopyright - Copyright © 2022 Timofey Solomko + Copyright © 2023 Timofey Solomko diff --git a/LICENSE b/LICENSE index c7f0a9a..6dec31f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2022 Timofey Solomko +Copyright (c) 2023 Timofey Solomko Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Sources/BigEndianByteReader.swift b/Sources/BigEndianByteReader.swift index 20512c2..2510db7 100644 --- a/Sources/BigEndianByteReader.swift +++ b/Sources/BigEndianByteReader.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Sources/BitReader.swift b/Sources/BitReader.swift index ec3a692..b86640b 100644 --- a/Sources/BitReader.swift +++ b/Sources/BitReader.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Sources/BitWriter.swift b/Sources/BitWriter.swift index 01ca9cc..917c40c 100755 --- a/Sources/BitWriter.swift +++ b/Sources/BitWriter.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Sources/ByteReader.swift b/Sources/ByteReader.swift index ab96c91..c04800d 100644 --- a/Sources/ByteReader.swift +++ b/Sources/ByteReader.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Sources/Extensions.swift b/Sources/Extensions.swift index 4ea1765..d5c7258 100644 --- a/Sources/Extensions.swift +++ b/Sources/Extensions.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Sources/LittleEndianByteReader.swift b/Sources/LittleEndianByteReader.swift index 206369b..eb529d3 100644 --- a/Sources/LittleEndianByteReader.swift +++ b/Sources/LittleEndianByteReader.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Sources/LsbBitReader.swift b/Sources/LsbBitReader.swift index ca41917..81ab79d 100644 --- a/Sources/LsbBitReader.swift +++ b/Sources/LsbBitReader.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Sources/LsbBitWriter.swift b/Sources/LsbBitWriter.swift index 6f48036..775d19c 100644 --- a/Sources/LsbBitWriter.swift +++ b/Sources/LsbBitWriter.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Sources/MsbBitReader.swift b/Sources/MsbBitReader.swift index 47164f4..f24acdd 100644 --- a/Sources/MsbBitReader.swift +++ b/Sources/MsbBitReader.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Sources/MsbBitWriter.swift b/Sources/MsbBitWriter.swift index 561be23..ec88902 100644 --- a/Sources/MsbBitWriter.swift +++ b/Sources/MsbBitWriter.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Sources/SignedNumberRepresentation.swift b/Sources/SignedNumberRepresentation.swift index 7f20573..c33b60f 100644 --- a/Sources/SignedNumberRepresentation.swift +++ b/Sources/SignedNumberRepresentation.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Tests/BitByteDataBenchmarks/BigEndianByteReaderBenchmarks.swift b/Tests/BitByteDataBenchmarks/BigEndianByteReaderBenchmarks.swift index 2267e1c..0235596 100644 --- a/Tests/BitByteDataBenchmarks/BigEndianByteReaderBenchmarks.swift +++ b/Tests/BitByteDataBenchmarks/BigEndianByteReaderBenchmarks.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Tests/BitByteDataBenchmarks/LittleEndianByteReaderBenchmarks.swift b/Tests/BitByteDataBenchmarks/LittleEndianByteReaderBenchmarks.swift index fd2b97f..1c6e252 100644 --- a/Tests/BitByteDataBenchmarks/LittleEndianByteReaderBenchmarks.swift +++ b/Tests/BitByteDataBenchmarks/LittleEndianByteReaderBenchmarks.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Tests/BitByteDataBenchmarks/LsbBitReaderBenchmarks.swift b/Tests/BitByteDataBenchmarks/LsbBitReaderBenchmarks.swift index b8a7203..37343ca 100644 --- a/Tests/BitByteDataBenchmarks/LsbBitReaderBenchmarks.swift +++ b/Tests/BitByteDataBenchmarks/LsbBitReaderBenchmarks.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Tests/BitByteDataBenchmarks/LsbBitReaderByteBenchmarks.swift b/Tests/BitByteDataBenchmarks/LsbBitReaderByteBenchmarks.swift index d650702..ab91eab 100644 --- a/Tests/BitByteDataBenchmarks/LsbBitReaderByteBenchmarks.swift +++ b/Tests/BitByteDataBenchmarks/LsbBitReaderByteBenchmarks.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Tests/BitByteDataBenchmarks/LsbBitWriterBenchmarks.swift b/Tests/BitByteDataBenchmarks/LsbBitWriterBenchmarks.swift index 893cc3b..b28c126 100644 --- a/Tests/BitByteDataBenchmarks/LsbBitWriterBenchmarks.swift +++ b/Tests/BitByteDataBenchmarks/LsbBitWriterBenchmarks.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Tests/BitByteDataBenchmarks/MsbBitReaderBenchmarks.swift b/Tests/BitByteDataBenchmarks/MsbBitReaderBenchmarks.swift index b50ad74..4fa1923 100644 --- a/Tests/BitByteDataBenchmarks/MsbBitReaderBenchmarks.swift +++ b/Tests/BitByteDataBenchmarks/MsbBitReaderBenchmarks.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Tests/BitByteDataBenchmarks/MsbBitReaderByteBenchmarks.swift b/Tests/BitByteDataBenchmarks/MsbBitReaderByteBenchmarks.swift index df4b77a..181baae 100644 --- a/Tests/BitByteDataBenchmarks/MsbBitReaderByteBenchmarks.swift +++ b/Tests/BitByteDataBenchmarks/MsbBitReaderByteBenchmarks.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Tests/BitByteDataBenchmarks/MsbBitWriterBenchmarks.swift b/Tests/BitByteDataBenchmarks/MsbBitWriterBenchmarks.swift index 7454f6a..a2fe0d0 100644 --- a/Tests/BitByteDataBenchmarks/MsbBitWriterBenchmarks.swift +++ b/Tests/BitByteDataBenchmarks/MsbBitWriterBenchmarks.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Tests/BitByteDataTests/BigEndianByteReaderTests.swift b/Tests/BitByteDataTests/BigEndianByteReaderTests.swift index 4f62d55..2b08b63 100644 --- a/Tests/BitByteDataTests/BigEndianByteReaderTests.swift +++ b/Tests/BitByteDataTests/BigEndianByteReaderTests.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information @@ -7,7 +7,7 @@ import XCTest import BitByteData class BigEndianByteReaderTests: XCTestCase { - + func testByte() { let randomByte = UInt8.random(in: 0...UInt8.max) let reader = BigEndianByteReader(data: Data([randomByte, UInt8.min, UInt8.max])) diff --git a/Tests/BitByteDataTests/LittleEndianByteReaderTests.swift b/Tests/BitByteDataTests/LittleEndianByteReaderTests.swift index 1b2320d..03782b1 100644 --- a/Tests/BitByteDataTests/LittleEndianByteReaderTests.swift +++ b/Tests/BitByteDataTests/LittleEndianByteReaderTests.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Tests/BitByteDataTests/LsbBitReaderTests.swift b/Tests/BitByteDataTests/LsbBitReaderTests.swift index 7ad8d04..970aca3 100644 --- a/Tests/BitByteDataTests/LsbBitReaderTests.swift +++ b/Tests/BitByteDataTests/LsbBitReaderTests.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Tests/BitByteDataTests/LsbBitWriterTests.swift b/Tests/BitByteDataTests/LsbBitWriterTests.swift index d3673c3..08b826e 100644 --- a/Tests/BitByteDataTests/LsbBitWriterTests.swift +++ b/Tests/BitByteDataTests/LsbBitWriterTests.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Tests/BitByteDataTests/MsbBitReaderTests.swift b/Tests/BitByteDataTests/MsbBitReaderTests.swift index e565b2e..abfc145 100644 --- a/Tests/BitByteDataTests/MsbBitReaderTests.swift +++ b/Tests/BitByteDataTests/MsbBitReaderTests.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Tests/BitByteDataTests/MsbBitWriterTests.swift b/Tests/BitByteDataTests/MsbBitWriterTests.swift index c3f1760..0799b7b 100644 --- a/Tests/BitByteDataTests/MsbBitWriterTests.swift +++ b/Tests/BitByteDataTests/MsbBitWriterTests.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Tests/BitByteDataTests/SignedNumberRepresentationTests.swift b/Tests/BitByteDataTests/SignedNumberRepresentationTests.swift index d1183c1..29edd3f 100644 --- a/Tests/BitByteDataTests/SignedNumberRepresentationTests.swift +++ b/Tests/BitByteDataTests/SignedNumberRepresentationTests.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information diff --git a/Tests/BitByteDataTests/TestHelper.swift b/Tests/BitByteDataTests/TestHelper.swift index 13278ff..3a7229e 100644 --- a/Tests/BitByteDataTests/TestHelper.swift +++ b/Tests/BitByteDataTests/TestHelper.swift @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Timofey Solomko +// Copyright (c) 2023 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information From f966a0945f49ca27ef98c418abad9e911d96ce55 Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Sat, 15 Apr 2023 16:09:37 +0300 Subject: [PATCH 04/11] Upgrade Xcode project to Xcode 14.3 --- BitByteData.xcodeproj/project.pbxproj | 9 ++++++++- .../xcshareddata/xcschemes/BitByteData.xcscheme | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/BitByteData.xcodeproj/project.pbxproj b/BitByteData.xcodeproj/project.pbxproj index 50e3f20..f70402c 100644 --- a/BitByteData.xcodeproj/project.pbxproj +++ b/BitByteData.xcodeproj/project.pbxproj @@ -246,9 +246,10 @@ 06F065501FFAE9EC00312A82 /* Project object */ = { isa = PBXProject; attributes = { + BuildIndependentTargetsInParallel = YES; DefaultBuildSystemTypeForWorkspace = Latest; LastSwiftUpdateCheck = 1000; - LastUpgradeCheck = 1400; + LastUpgradeCheck = 1430; ORGANIZATIONNAME = "Timofey Solomko"; TargetAttributes = { 065DD5DE21673BC100704028 = { @@ -492,6 +493,7 @@ DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 28; DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = YES; INFOPLIST_FILE = BitByteData.xcodeproj/BitByteData.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = ( @@ -501,6 +503,8 @@ "@loader_path/../Frameworks", "@executable_path/../Frameworks", ); + MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; + MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++14"; PRODUCT_BUNDLE_IDENTIFIER = me.tsolomko.BitByteData; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SKIP_INSTALL = YES; @@ -516,6 +520,7 @@ DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 28; DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = YES; INFOPLIST_FILE = BitByteData.xcodeproj/BitByteData.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = ( @@ -525,6 +530,8 @@ "@loader_path/../Frameworks", "@executable_path/../Frameworks", ); + MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; + MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++14"; PRODUCT_BUNDLE_IDENTIFIER = me.tsolomko.BitByteData; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SKIP_INSTALL = YES; diff --git a/BitByteData.xcodeproj/xcshareddata/xcschemes/BitByteData.xcscheme b/BitByteData.xcodeproj/xcshareddata/xcschemes/BitByteData.xcscheme index bbbccd0..4c277c1 100644 --- a/BitByteData.xcodeproj/xcshareddata/xcschemes/BitByteData.xcscheme +++ b/BitByteData.xcodeproj/xcshareddata/xcschemes/BitByteData.xcscheme @@ -1,6 +1,6 @@ Date: Sat, 15 Apr 2023 16:10:36 +0300 Subject: [PATCH 05/11] [CI] Upgrade swift 5.7 to 5.7.3, add swift 5.8 (except macos where it requires macos 13) --- azure-pipelines.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6b6f10d..1cdac14 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -42,9 +42,14 @@ stages: WATCHOS_SIMULATOR: 'Apple Watch Series 6 - 44mm' macosSwift57: imageName: 'macOS-12' - DEVELOPER_DIR: '/Applications/Xcode_14.0.1.app' + DEVELOPER_DIR: '/Applications/Xcode_14.2.app' WATCHOS_ACTIONS: 'clean test' WATCHOS_SIMULATOR: 'Apple Watch Series 6 (44mm)' + # macosSwift58: + # imageName: 'macOS-13' + # DEVELOPER_DIR: '/Applications/Xcode_14.3.app' + # WATCHOS_ACTIONS: 'clean test' + # WATCHOS_SIMULATOR: 'Apple Watch Series 6 (44mm)' pool: vmImage: $(imageName) steps: @@ -87,7 +92,10 @@ stages: containerImage: 'swift:5.6.3-focal' linuxSwift57: imageName: 'ubuntu-20.04' - containerImage: 'swift:5.7-focal' + containerImage: 'swift:5.7.3-focal' + linuxSwift58: + imageName: 'ubuntu-20.04' + containerImage: 'swift:5.8-focal' pool: vmImage: $(imageName) container: $[ variables['containerImage'] ] @@ -126,7 +134,13 @@ stages: XCTEST_LIB_PATH: '' windowsSwift57: imageName: 'windows-2019' - SWIFT_VERSION: '5.7' + SWIFT_VERSION: '5.7.3' + ICU_PATH: 'C:\Program Files\swift\icu-69.1\usr\bin' + SWIFT_DEV_PATH: 'C:\Program Files\swift\runtime-development\usr\bin' + XCTEST_LIB_PATH: '\x86_64' + windowsSwift58: + imageName: 'windows-2019' + SWIFT_VERSION: '5.8' ICU_PATH: 'C:\Program Files\swift\icu-69.1\usr\bin' SWIFT_DEV_PATH: 'C:\Program Files\swift\runtime-development\usr\bin' XCTEST_LIB_PATH: '\x86_64' @@ -169,7 +183,7 @@ stages: pool: vmImage: 'macOS-12' variables: - DEVELOPER_DIR: '/Applications/Xcode_14.0.1.app' + DEVELOPER_DIR: '/Applications/Xcode_14.2.app' steps: - script: | set -e -o xtrace From cd02280d79864f63f0bbd1db214f6c247a6d3c82 Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Tue, 30 May 2023 18:08:38 +0300 Subject: [PATCH 06/11] [CI] Enable swift 5.8 on macos, upgrade macos versions for swift 5.5 and swift 5.7 --- azure-pipelines.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1cdac14..6dff2ef 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -31,7 +31,7 @@ stages: WATCHOS_ACTIONS: 'clean test' WATCHOS_SIMULATOR: 'Apple Watch Series 6 - 44mm' macosSwift55: - imageName: 'macOS-11' + imageName: 'macOS-12' DEVELOPER_DIR: '/Applications/Xcode_13.2.1.app' WATCHOS_ACTIONS: 'clean test' WATCHOS_SIMULATOR: 'Apple Watch Series 6 - 44mm' @@ -41,15 +41,15 @@ stages: WATCHOS_ACTIONS: 'clean test' WATCHOS_SIMULATOR: 'Apple Watch Series 6 - 44mm' macosSwift57: - imageName: 'macOS-12' + imageName: 'macOS-13' DEVELOPER_DIR: '/Applications/Xcode_14.2.app' WATCHOS_ACTIONS: 'clean test' WATCHOS_SIMULATOR: 'Apple Watch Series 6 (44mm)' - # macosSwift58: - # imageName: 'macOS-13' - # DEVELOPER_DIR: '/Applications/Xcode_14.3.app' - # WATCHOS_ACTIONS: 'clean test' - # WATCHOS_SIMULATOR: 'Apple Watch Series 6 (44mm)' + macosSwift58: + imageName: 'macOS-13' + DEVELOPER_DIR: '/Applications/Xcode_14.3.app' + WATCHOS_ACTIONS: 'clean test' + WATCHOS_SIMULATOR: 'Apple Watch Series 6 (44mm)' pool: vmImage: $(imageName) steps: From b20fdce7e17bd5cf7c752fbc65dcf9e468f944d3 Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Tue, 30 May 2023 18:26:09 +0300 Subject: [PATCH 07/11] [CI] Adjust ios simulator devices --- azure-pipelines.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6dff2ef..b7c5d2b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -18,36 +18,43 @@ stages: macosSwift52: imageName: 'macOS-11' DEVELOPER_DIR: '/Applications/Xcode_11.7.app' + IOS_SIMULATOR: 'iPhone 8' WATCHOS_ACTIONS: 'clean build' WATCHOS_SIMULATOR: 'Apple Watch Series 4 - 44mm' macosSwift53: imageName: 'macOS-11' DEVELOPER_DIR: '/Applications/Xcode_12.4.app' + IOS_SIMULATOR: 'iPhone 8' WATCHOS_ACTIONS: 'clean build' WATCHOS_SIMULATOR: 'Apple Watch Series 4 - 44mm' macosSwift54: imageName: 'macOS-11' DEVELOPER_DIR: '/Applications/Xcode_12.5.1.app' + IOS_SIMULATOR: 'iPhone 8' WATCHOS_ACTIONS: 'clean test' WATCHOS_SIMULATOR: 'Apple Watch Series 6 - 44mm' macosSwift55: imageName: 'macOS-12' DEVELOPER_DIR: '/Applications/Xcode_13.2.1.app' + IOS_SIMULATOR: 'iPhone 8' WATCHOS_ACTIONS: 'clean test' WATCHOS_SIMULATOR: 'Apple Watch Series 6 - 44mm' macosSwift56: imageName: 'macOS-12' DEVELOPER_DIR: '/Applications/Xcode_13.4.1.app' + IOS_SIMULATOR: 'iPhone 8' WATCHOS_ACTIONS: 'clean test' WATCHOS_SIMULATOR: 'Apple Watch Series 6 - 44mm' macosSwift57: imageName: 'macOS-13' DEVELOPER_DIR: '/Applications/Xcode_14.2.app' + IOS_SIMULATOR: 'iPhone 14' WATCHOS_ACTIONS: 'clean test' WATCHOS_SIMULATOR: 'Apple Watch Series 6 (44mm)' macosSwift58: imageName: 'macOS-13' DEVELOPER_DIR: '/Applications/Xcode_14.3.app' + IOS_SIMULATOR: 'iPhone 14' WATCHOS_ACTIONS: 'clean test' WATCHOS_SIMULATOR: 'Apple Watch Series 6 (44mm)' pool: @@ -68,7 +75,7 @@ stages: set -e -o xtrace xcodebuild -version xcodebuild -quiet -project BitByteData.xcodeproj -scheme BitByteData -destination "platform=OS X" clean test - xcodebuild -quiet -project BitByteData.xcodeproj -scheme BitByteData -destination "platform=iOS Simulator,name=iPhone 8" clean test + xcodebuild -quiet -project BitByteData.xcodeproj -scheme BitByteData -destination "platform=iOS Simulator,name=$IOS_SIMULATOR" clean test xcodebuild -quiet -project BitByteData.xcodeproj -scheme BitByteData -destination "platform=watchOS Simulator,name=$WATCHOS_SIMULATOR" $WATCHOS_ACTIONS xcodebuild -quiet -project BitByteData.xcodeproj -scheme BitByteData -destination "platform=tvOS Simulator,name=Apple TV" clean test displayName: 'Build & Test Darwin Platforms' From ec6bac3d0e1795a5f7058bfc541f283597ad3072 Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Sun, 4 Jun 2023 10:06:58 +0300 Subject: [PATCH 08/11] [CI] Use test discovery on linux platform --- azure-pipelines.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b7c5d2b..af162f9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -85,9 +85,11 @@ stages: linuxSwift52: imageName: 'ubuntu-20.04' containerImage: 'swift:5.2.5-focal' + SWIFT_TEST_DISCOVERY: '--enable-test-discovery' linuxSwift53: imageName: 'ubuntu-20.04' containerImage: 'swift:5.3.3-focal' + SWIFT_TEST_DISCOVERY: '--enable-test-discovery' linuxSwift54: imageName: 'ubuntu-20.04' containerImage: 'swift:5.4.3-focal' @@ -110,13 +112,13 @@ stages: - script: | set -e -o xtrace swift --version - swift build - swift test --filter BitByteDataTests + swift build $SWIFT_TEST_DISCOVERY + swift test --filter BitByteDataTests $SWIFT_TEST_DISCOVERY displayName: 'Build & Test' - script: | set -e -o xtrace swift --version - swift build -c release # Check Release build just in case. + swift build -c release $SWIFT_TEST_DISCOVERY # Check Release build just in case. displayName: 'Build Release' - job: windows strategy: From 73eff4a1aa071a45aa0c4169c3849ffaa42e9c23 Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Sun, 4 Jun 2023 10:07:25 +0300 Subject: [PATCH 09/11] Remove redundant files for XCTest on linux --- .../XCTestManifests.swift | 190 ----------------- Tests/BitByteDataTests/XCTestManifests.swift | 199 ------------------ Tests/LinuxMain.swift | 10 - 3 files changed, 399 deletions(-) delete mode 100644 Tests/BitByteDataBenchmarks/XCTestManifests.swift delete mode 100644 Tests/BitByteDataTests/XCTestManifests.swift delete mode 100644 Tests/LinuxMain.swift diff --git a/Tests/BitByteDataBenchmarks/XCTestManifests.swift b/Tests/BitByteDataBenchmarks/XCTestManifests.swift deleted file mode 100644 index e01a034..0000000 --- a/Tests/BitByteDataBenchmarks/XCTestManifests.swift +++ /dev/null @@ -1,190 +0,0 @@ -#if !canImport(ObjectiveC) -import XCTest - -extension BigEndianByteReaderBenchmarks { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__BigEndianByteReaderBenchmarks = [ - ("testByte", testByte), - ("testBytes", testBytes), - ("testIntFromBytes", testIntFromBytes), - ("testUint16", testUint16), - ("testUint16_FB", testUint16_FB), - ("testUint16FromBytes", testUint16FromBytes), - ("testUint32", testUint32), - ("testUint32_FB", testUint32_FB), - ("testUint32FromBytes", testUint32FromBytes), - ("testUint64", testUint64), - ("testUint64_FB", testUint64_FB), - ("testUint64FromBytes", testUint64FromBytes), - ] -} - -extension LittleEndianByteReaderBenchmarks { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__LittleEndianByteReaderBenchmarks = [ - ("testByte", testByte), - ("testBytes", testBytes), - ("testIntFromBytes", testIntFromBytes), - ("testUint16", testUint16), - ("testUint16_FB", testUint16_FB), - ("testUint16FromBytes", testUint16FromBytes), - ("testUint32", testUint32), - ("testUint32_FB", testUint32_FB), - ("testUint32FromBytes", testUint32FromBytes), - ("testUint64", testUint64), - ("testUint64_FB", testUint64_FB), - ("testUint64FromBytes", testUint64FromBytes), - ] -} - -extension LsbBitReaderBenchmarks { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__LsbBitReaderBenchmarks = [ - ("testAdvance", testAdvance), - ("testAdvanceRealistic", testAdvanceRealistic), - ("testBit", testBit), - ("testBits", testBits), - ("testByteFromBits", testByteFromBits), - ("testIntFromBits", testIntFromBits), - ("testSignedInt_1C_neg", testSignedInt_1C_neg), - ("testSignedInt_1C_pos", testSignedInt_1C_pos), - ("testSignedInt_2C_neg", testSignedInt_2C_neg), - ("testSignedInt_2C_pos", testSignedInt_2C_pos), - ("testSignedInt_E127", testSignedInt_E127), - ("testSignedInt_RN2", testSignedInt_RN2), - ("testSignedInt_SM_neg", testSignedInt_SM_neg), - ("testSignedInt_SM_pos", testSignedInt_SM_pos), - ("testUint16FromBits", testUint16FromBits), - ("testUint32FromBits", testUint32FromBits), - ("testUint64FromBits", testUint64FromBits), - ] -} - -extension LsbBitReaderByteBenchmarks { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__LsbBitReaderByteBenchmarks = [ - ("testByte", testByte), - ("testBytes", testBytes), - ("testIntFromBytes", testIntFromBytes), - ("testUint16", testUint16), - ("testUint16_FB", testUint16_FB), - ("testUint16FromBytes", testUint16FromBytes), - ("testUint32", testUint32), - ("testUint32_FB", testUint32_FB), - ("testUint32FromBytes", testUint32FromBytes), - ("testUint64", testUint64), - ("testUint64_FB", testUint64_FB), - ("testUint64FromBytes", testUint64FromBytes), - ] -} - -extension LsbBitWriterBenchmarks { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__LsbBitWriterBenchmarks = [ - ("testAppendByte", testAppendByte), - ("testWriteBit", testWriteBit), - ("testWriteNumberBitsCount", testWriteNumberBitsCount), - ("testWriteSignedNumber_1C_neg", testWriteSignedNumber_1C_neg), - ("testWriteSignedNumber_1C_pos", testWriteSignedNumber_1C_pos), - ("testWriteSignedNumber_2C_neg", testWriteSignedNumber_2C_neg), - ("testWriteSignedNumber_2C_pos", testWriteSignedNumber_2C_pos), - ("testWriteSignedNumber_E127_neg", testWriteSignedNumber_E127_neg), - ("testWriteSignedNumber_E127_pos", testWriteSignedNumber_E127_pos), - ("testWriteSignedNumber_RN2_neg", testWriteSignedNumber_RN2_neg), - ("testWriteSignedNumber_RN2_pos", testWriteSignedNumber_RN2_pos), - ("testWriteSignedNumber_SM_neg", testWriteSignedNumber_SM_neg), - ("testWriteSignedNumber_SM_pos", testWriteSignedNumber_SM_pos), - ("testWriteUnsignedNumberBitsCount", testWriteUnsignedNumberBitsCount), - ] -} - -extension MsbBitReaderBenchmarks { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__MsbBitReaderBenchmarks = [ - ("testAdvance", testAdvance), - ("testAdvanceRealistic", testAdvanceRealistic), - ("testBit", testBit), - ("testBits", testBits), - ("testByteFromBits", testByteFromBits), - ("testIntFromBits", testIntFromBits), - ("testSignedInt_1C_neg", testSignedInt_1C_neg), - ("testSignedInt_1C_pos", testSignedInt_1C_pos), - ("testSignedInt_2C_neg", testSignedInt_2C_neg), - ("testSignedInt_2C_pos", testSignedInt_2C_pos), - ("testSignedInt_E127", testSignedInt_E127), - ("testSignedInt_RN2", testSignedInt_RN2), - ("testSignedInt_SM_neg", testSignedInt_SM_neg), - ("testSignedInt_SM_pos", testSignedInt_SM_pos), - ("testUint16FromBits", testUint16FromBits), - ("testUint32FromBits", testUint32FromBits), - ("testUint64FromBits", testUint64FromBits), - ] -} - -extension MsbBitReaderByteBenchmarks { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__MsbBitReaderByteBenchmarks = [ - ("testByte", testByte), - ("testBytes", testBytes), - ("testIntFromBytes", testIntFromBytes), - ("testUint16", testUint16), - ("testUint16_FB", testUint16_FB), - ("testUint16FromBytes", testUint16FromBytes), - ("testUint32", testUint32), - ("testUint32_FB", testUint32_FB), - ("testUint32FromBytes", testUint32FromBytes), - ("testUint64", testUint64), - ("testUint64_FB", testUint64_FB), - ("testUint64FromBytes", testUint64FromBytes), - ] -} - -extension MsbBitWriterBenchmarks { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__MsbBitWriterBenchmarks = [ - ("testAppendByte", testAppendByte), - ("testWriteBit", testWriteBit), - ("testWriteNumberBitsCount", testWriteNumberBitsCount), - ("testWriteSignedNumber_1C_neg", testWriteSignedNumber_1C_neg), - ("testWriteSignedNumber_1C_pos", testWriteSignedNumber_1C_pos), - ("testWriteSignedNumber_2C_neg", testWriteSignedNumber_2C_neg), - ("testWriteSignedNumber_2C_pos", testWriteSignedNumber_2C_pos), - ("testWriteSignedNumber_E127_neg", testWriteSignedNumber_E127_neg), - ("testWriteSignedNumber_E127_pos", testWriteSignedNumber_E127_pos), - ("testWriteSignedNumber_RN2_neg", testWriteSignedNumber_RN2_neg), - ("testWriteSignedNumber_RN2_pos", testWriteSignedNumber_RN2_pos), - ("testWriteSignedNumber_SM_neg", testWriteSignedNumber_SM_neg), - ("testWriteSignedNumber_SM_pos", testWriteSignedNumber_SM_pos), - ("testWriteUnsignedNumberBitsCount", testWriteUnsignedNumberBitsCount), - ] -} - -public func __allTests() -> [XCTestCaseEntry] { - return [ - testCase(BigEndianByteReaderBenchmarks.__allTests__BigEndianByteReaderBenchmarks), - testCase(LittleEndianByteReaderBenchmarks.__allTests__LittleEndianByteReaderBenchmarks), - testCase(LsbBitReaderBenchmarks.__allTests__LsbBitReaderBenchmarks), - testCase(LsbBitReaderByteBenchmarks.__allTests__LsbBitReaderByteBenchmarks), - testCase(LsbBitWriterBenchmarks.__allTests__LsbBitWriterBenchmarks), - testCase(MsbBitReaderBenchmarks.__allTests__MsbBitReaderBenchmarks), - testCase(MsbBitReaderByteBenchmarks.__allTests__MsbBitReaderByteBenchmarks), - testCase(MsbBitWriterBenchmarks.__allTests__MsbBitWriterBenchmarks), - ] -} -#endif diff --git a/Tests/BitByteDataTests/XCTestManifests.swift b/Tests/BitByteDataTests/XCTestManifests.swift deleted file mode 100644 index 417c49b..0000000 --- a/Tests/BitByteDataTests/XCTestManifests.swift +++ /dev/null @@ -1,199 +0,0 @@ -#if !canImport(ObjectiveC) -import XCTest - -extension BigEndianByteReaderTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__BigEndianByteReaderTests = [ - ("testByte", testByte), - ("testBytes", testBytes), - ("testBytesLeft", testBytesLeft), - ("testBytesRead", testBytesRead), - ("testIntFromBytes", testIntFromBytes), - ("testIsFinished", testIsFinished), - ("testNonZeroStartIndex", testNonZeroStartIndex), - ("testUint16", testUint16), - ("testUint16FromBytes", testUint16FromBytes), - ("testUint32", testUint32), - ("testUint32FromBytes", testUint32FromBytes), - ("testUint64", testUint64), - ("testUint64FromBytes", testUint64FromBytes), - ] -} - -extension LittleEndianByteReaderTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__LittleEndianByteReaderTests = [ - ("testByte", testByte), - ("testBytes", testBytes), - ("testBytesLeft", testBytesLeft), - ("testBytesRead", testBytesRead), - ("testIntFromBytes", testIntFromBytes), - ("testIsFinished", testIsFinished), - ("testNonZeroStartIndex", testNonZeroStartIndex), - ("testUint16", testUint16), - ("testUint16FromBytes", testUint16FromBytes), - ("testUint32", testUint32), - ("testUint32FromBytes", testUint32FromBytes), - ("testUint64", testUint64), - ("testUint64FromBytes", testUint64FromBytes), - ] -} - -extension LsbBitReaderTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__LsbBitReaderTests = [ - ("testAdvance", testAdvance), - ("testAlign", testAlign), - ("testBit", testBit), - ("testBitReaderByte", testBitReaderByte), - ("testBitReaderBytes", testBitReaderBytes), - ("testBitReaderIntFromBytes", testBitReaderIntFromBytes), - ("testBitReaderNonZeroStartIndex", testBitReaderNonZeroStartIndex), - ("testBitReaderUint16", testBitReaderUint16), - ("testBitReaderUint32FromBytes", testBitReaderUint32FromBytes), - ("testBits", testBits), - ("testBitsLeft", testBitsLeft), - ("testBitsRead", testBitsRead), - ("testByteFromBits", testByteFromBits), - ("testBytesLeft", testBytesLeft), - ("testBytesRead", testBytesRead), - ("testConvertedByteReader", testConvertedByteReader), - ("testIntFromBits", testIntFromBits), - ("testIsAligned", testIsAligned), - ("testIsFinished", testIsFinished), - ("testSignedIntFromBits_1C", testSignedIntFromBits_1C), - ("testSignedIntFromBits_2C", testSignedIntFromBits_2C), - ("testSignedIntFromBits_Biased_E1023", testSignedIntFromBits_Biased_E1023), - ("testSignedIntFromBits_Biased_E127", testSignedIntFromBits_Biased_E127), - ("testSignedIntFromBits_Biased_E3", testSignedIntFromBits_Biased_E3), - ("testSignedIntFromBits_RN2", testSignedIntFromBits_RN2), - ("testSignedIntFromBits_SM", testSignedIntFromBits_SM), - ("testUint16FromBits", testUint16FromBits), - ("testUint32FromBits", testUint32FromBits), - ("testUint64FromBits", testUint64FromBits), - ] -} - -extension LsbBitWriterTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__LsbBitWriterTests = [ - ("testAlign", testAlign), - ("testAppendByte", testAppendByte), - ("testIsAligned", testIsAligned), - ("testNamingConsistency", testNamingConsistency), - ("testWriteBit", testWriteBit), - ("testWriteBitsArray", testWriteBitsArray), - ("testWriteNumber", testWriteNumber), - ("testWriteSignedNumber_1C", testWriteSignedNumber_1C), - ("testWriteSignedNumber_2C", testWriteSignedNumber_2C), - ("testWriteSignedNumber_Biased_E1023", testWriteSignedNumber_Biased_E1023), - ("testWriteSignedNumber_Biased_E127", testWriteSignedNumber_Biased_E127), - ("testWriteSignedNumber_Biased_E3", testWriteSignedNumber_Biased_E3), - ("testWriteSignedNumber_RN2", testWriteSignedNumber_RN2), - ("testWriteSignedNumber_SM", testWriteSignedNumber_SM), - ("testWriteUnsignedNumber", testWriteUnsignedNumber), - ] -} - -extension MsbBitReaderTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__MsbBitReaderTests = [ - ("testAdvance", testAdvance), - ("testAlign", testAlign), - ("testBit", testBit), - ("testBitReaderByte", testBitReaderByte), - ("testBitReaderBytes", testBitReaderBytes), - ("testBitReaderIntFromBytes", testBitReaderIntFromBytes), - ("testBitReaderNonZeroStartIndex", testBitReaderNonZeroStartIndex), - ("testBitReaderUint16", testBitReaderUint16), - ("testBitReaderUint32FromBytes", testBitReaderUint32FromBytes), - ("testBits", testBits), - ("testBitsLeft", testBitsLeft), - ("testBitsRead", testBitsRead), - ("testByteFromBits", testByteFromBits), - ("testBytesLeft", testBytesLeft), - ("testBytesRead", testBytesRead), - ("testConvertedByteReader", testConvertedByteReader), - ("testIntFromBits", testIntFromBits), - ("testIsAligned", testIsAligned), - ("testIsFinished", testIsFinished), - ("testSignedIntFromBits_1C", testSignedIntFromBits_1C), - ("testSignedIntFromBits_2C", testSignedIntFromBits_2C), - ("testSignedIntFromBits_Biased_E1023", testSignedIntFromBits_Biased_E1023), - ("testSignedIntFromBits_Biased_E127", testSignedIntFromBits_Biased_E127), - ("testSignedIntFromBits_Biased_E3", testSignedIntFromBits_Biased_E3), - ("testSignedIntFromBits_RN2", testSignedIntFromBits_RN2), - ("testSignedIntFromBits_SM", testSignedIntFromBits_SM), - ("testUint16FromBits", testUint16FromBits), - ("testUint32FromBits", testUint32FromBits), - ("testUint64FromBits", testUint64FromBits), - ] -} - -extension MsbBitWriterTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__MsbBitWriterTests = [ - ("testAlign", testAlign), - ("testAppendByte", testAppendByte), - ("testIsAligned", testIsAligned), - ("testNamingConsistency", testNamingConsistency), - ("testWriteBit", testWriteBit), - ("testWriteBitsArray", testWriteBitsArray), - ("testWriteNumber", testWriteNumber), - ("testWriteSignedNumber_1C", testWriteSignedNumber_1C), - ("testWriteSignedNumber_2C", testWriteSignedNumber_2C), - ("testWriteSignedNumber_Biased_E1023", testWriteSignedNumber_Biased_E1023), - ("testWriteSignedNumber_Biased_E127", testWriteSignedNumber_Biased_E127), - ("testWriteSignedNumber_Biased_E3", testWriteSignedNumber_Biased_E3), - ("testWriteSignedNumber_RN2", testWriteSignedNumber_RN2), - ("testWriteSignedNumber_SM", testWriteSignedNumber_SM), - ("testWriteUnsignedNumber", testWriteUnsignedNumber), - ] -} - -extension SignedNumberRepresentationTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__SignedNumberRepresentationTests = [ - ("testMaxRepresentableNumber_1C", testMaxRepresentableNumber_1C), - ("testMaxRepresentableNumber_2C", testMaxRepresentableNumber_2C), - ("testMaxRepresentableNumber_Biased_E1023", testMaxRepresentableNumber_Biased_E1023), - ("testMaxRepresentableNumber_Biased_E127", testMaxRepresentableNumber_Biased_E127), - ("testMaxRepresentableNumber_Biased_E3", testMaxRepresentableNumber_Biased_E3), - ("testMaxRepresentableNumber_RN2", testMaxRepresentableNumber_RN2), - ("testMaxRepresentableNumber_SM", testMaxRepresentableNumber_SM), - ("testMinRepresentableNumber_1C", testMinRepresentableNumber_1C), - ("testMinRepresentableNumber_2C", testMinRepresentableNumber_2C), - ("testMinRepresentableNumber_Biased_E1023", testMinRepresentableNumber_Biased_E1023), - ("testMinRepresentableNumber_Biased_E127", testMinRepresentableNumber_Biased_E127), - ("testMinRepresentableNumber_Biased_E3", testMinRepresentableNumber_Biased_E3), - ("testMinRepresentableNumber_RN2", testMinRepresentableNumber_RN2), - ("testMinRepresentableNumber_SM", testMinRepresentableNumber_SM), - ] -} - -public func __allTests() -> [XCTestCaseEntry] { - return [ - testCase(BigEndianByteReaderTests.__allTests__BigEndianByteReaderTests), - testCase(LittleEndianByteReaderTests.__allTests__LittleEndianByteReaderTests), - testCase(LsbBitReaderTests.__allTests__LsbBitReaderTests), - testCase(LsbBitWriterTests.__allTests__LsbBitWriterTests), - testCase(MsbBitReaderTests.__allTests__MsbBitReaderTests), - testCase(MsbBitWriterTests.__allTests__MsbBitWriterTests), - testCase(SignedNumberRepresentationTests.__allTests__SignedNumberRepresentationTests), - ] -} -#endif diff --git a/Tests/LinuxMain.swift b/Tests/LinuxMain.swift deleted file mode 100644 index ef9ad7d..0000000 --- a/Tests/LinuxMain.swift +++ /dev/null @@ -1,10 +0,0 @@ -import XCTest - -import BitByteDataBenchmarks -import BitByteDataTests - -var tests = [XCTestCaseEntry]() -tests += BitByteDataBenchmarks.__allTests() -tests += BitByteDataTests.__allTests() - -XCTMain(tests) From c8bcf09057049fe8d4d7b0305438f59cfb5c41e4 Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Thu, 15 Jun 2023 12:41:30 +0300 Subject: [PATCH 10/11] [CI] Upgrade to swift 5.8.1 --- azure-pipelines.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index af162f9..022ea2e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -53,7 +53,7 @@ stages: WATCHOS_SIMULATOR: 'Apple Watch Series 6 (44mm)' macosSwift58: imageName: 'macOS-13' - DEVELOPER_DIR: '/Applications/Xcode_14.3.app' + DEVELOPER_DIR: '/Applications/Xcode_14.3.1.app' IOS_SIMULATOR: 'iPhone 14' WATCHOS_ACTIONS: 'clean test' WATCHOS_SIMULATOR: 'Apple Watch Series 6 (44mm)' @@ -104,7 +104,7 @@ stages: containerImage: 'swift:5.7.3-focal' linuxSwift58: imageName: 'ubuntu-20.04' - containerImage: 'swift:5.8-focal' + containerImage: 'swift:5.8.1-focal' pool: vmImage: $(imageName) container: $[ variables['containerImage'] ] @@ -149,7 +149,7 @@ stages: XCTEST_LIB_PATH: '\x86_64' windowsSwift58: imageName: 'windows-2019' - SWIFT_VERSION: '5.8' + SWIFT_VERSION: '5.8.1' ICU_PATH: 'C:\Program Files\swift\icu-69.1\usr\bin' SWIFT_DEV_PATH: 'C:\Program Files\swift\runtime-development\usr\bin' XCTEST_LIB_PATH: '\x86_64' From 54d673b30a790b3d430ab754e70802f977c00a80 Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Thu, 15 Jun 2023 12:46:51 +0300 Subject: [PATCH 11/11] Prepare for 2.0.3 release --- .jazzy.yaml | 4 ++-- BitByteData.podspec | 2 +- BitByteData.xcodeproj/BitByteData.plist | 4 ++-- BitByteData.xcodeproj/BitByteDataBenchmarks.plist | 4 ++-- BitByteData.xcodeproj/TestBitByteData.plist | 4 ++-- BitByteData.xcodeproj/project.pbxproj | 8 ++++---- CHANGELOG.md | 4 ++++ 7 files changed, 17 insertions(+), 13 deletions(-) diff --git a/.jazzy.yaml b/.jazzy.yaml index b26b745..9dcd1a0 100644 --- a/.jazzy.yaml +++ b/.jazzy.yaml @@ -3,11 +3,11 @@ sourcekitten_sourcefile: docs.json clean: false author: Timofey Solomko module: BitByteData -module_version: 2.0.2 +module_version: 2.0.3 copyright: '© 2023 Timofey Solomko' readme: README.md github_url: https://github.com/tsolomko/BitByteData -github_file_prefix: https://github.com/tsolomko/BitByteData/tree/2.0.2 +github_file_prefix: https://github.com/tsolomko/BitByteData/tree/2.0.3 theme: fullwidth custom_categories: diff --git a/BitByteData.podspec b/BitByteData.podspec index 48fbf06..5f4da60 100644 --- a/BitByteData.podspec +++ b/BitByteData.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "BitByteData" - s.version = "2.0.2" + s.version = "2.0.3" s.summary = "Read and write bits and bytes in Swift." s.description = "A Swift framework with classes for reading and writing bits and bytes." diff --git a/BitByteData.xcodeproj/BitByteData.plist b/BitByteData.xcodeproj/BitByteData.plist index 71ff6a9..59244ce 100644 --- a/BitByteData.xcodeproj/BitByteData.plist +++ b/BitByteData.xcodeproj/BitByteData.plist @@ -15,9 +15,9 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.0.2 + 2.0.3 CFBundleVersion - 28 + 29 NSHumanReadableCopyright Copyright © 2023 Timofey Solomko diff --git a/BitByteData.xcodeproj/BitByteDataBenchmarks.plist b/BitByteData.xcodeproj/BitByteDataBenchmarks.plist index 7780b76..acc2dfd 100644 --- a/BitByteData.xcodeproj/BitByteDataBenchmarks.plist +++ b/BitByteData.xcodeproj/BitByteDataBenchmarks.plist @@ -15,8 +15,8 @@ CFBundlePackageType BNDL CFBundleShortVersionString - 2.0.2 + 2.0.3 CFBundleVersion - 28 + 29 diff --git a/BitByteData.xcodeproj/TestBitByteData.plist b/BitByteData.xcodeproj/TestBitByteData.plist index fa92984..af58194 100644 --- a/BitByteData.xcodeproj/TestBitByteData.plist +++ b/BitByteData.xcodeproj/TestBitByteData.plist @@ -15,8 +15,8 @@ CFBundlePackageType BNDL CFBundleShortVersionString - 2.0.2 + 2.0.3 CFBundleVersion - 28 + 29 diff --git a/BitByteData.xcodeproj/project.pbxproj b/BitByteData.xcodeproj/project.pbxproj index f70402c..b3d5e96 100644 --- a/BitByteData.xcodeproj/project.pbxproj +++ b/BitByteData.xcodeproj/project.pbxproj @@ -409,7 +409,7 @@ CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CURRENT_PROJECT_VERSION = 28; + CURRENT_PROJECT_VERSION = 29; DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = dwarf; EAGER_LINKING = YES; @@ -460,7 +460,7 @@ CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CURRENT_PROJECT_VERSION = 28; + CURRENT_PROJECT_VERSION = 29; DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; EAGER_LINKING = YES; @@ -491,7 +491,7 @@ APPLICATION_EXTENSION_API_ONLY = YES; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 28; + DYLIB_CURRENT_VERSION = 29; DYLIB_INSTALL_NAME_BASE = "@rpath"; ENABLE_MODULE_VERIFIER = YES; INFOPLIST_FILE = BitByteData.xcodeproj/BitByteData.plist; @@ -518,7 +518,7 @@ APPLICATION_EXTENSION_API_ONLY = YES; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 28; + DYLIB_CURRENT_VERSION = 29; DYLIB_INSTALL_NAME_BASE = "@rpath"; ENABLE_MODULE_VERIFIER = YES; INFOPLIST_FILE = BitByteData.xcodeproj/BitByteData.plist; diff --git a/CHANGELOG.md b/CHANGELOG.md index d4af233..f5ee9b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.0.3 + +- There are now minimum deployment targets specified in Swift Package Manager manifest. + ## 2.0.2 - Swift 5.0 and 5.1 is no longer supported.