Skip to content

Commit 4dd6cc8

Browse files
committed
Prepare for 2.0.0 release
1 parent 34bbcea commit 4dd6cc8

7 files changed

Lines changed: 56 additions & 13 deletions

File tree

.jazzy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ sourcekitten_sourcefile: docs.json
33
clean: false
44
author: Timofey Solomko
55
module: BitByteData
6-
module_version: 2.0.0-test.2
6+
module_version: 2.0.0
77
copyright: '© 2021 Timofey Solomko'
88
readme: README.md
99
github_url: https://github.com/tsolomko/BitByteData
10-
github_file_prefix: https://github.com/tsolomko/BitByteData/tree/2.0.0-test.2
10+
github_file_prefix: https://github.com/tsolomko/BitByteData/tree/2.0.0
1111
theme: fullwidth
1212

1313
custom_categories:

BitByteData.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "BitByteData"
4-
s.version = "2.0.0-test.2"
4+
s.version = "2.0.0"
55
s.summary = "Read and write bits and bytes in Swift."
66

77
s.description = "A Swift framework with classes for reading and writing bits and bytes."

BitByteData.xcodeproj/BitByteData.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>2.0.0-test.2</string>
18+
<string>2.0.0</string>
1919
<key>CFBundleVersion</key>
20-
<string>25</string>
20+
<string>26</string>
2121
<key>NSHumanReadableCopyright</key>
2222
<string>Copyright © 2021 Timofey Solomko</string>
2323
</dict>

BitByteData.xcodeproj/BitByteDataBenchmarks.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
<key>CFBundlePackageType</key>
1616
<string>BNDL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>2.0.0-test.2</string>
18+
<string>2.0.0</string>
1919
<key>CFBundleVersion</key>
20-
<string>25</string>
20+
<string>26</string>
2121
</dict>
2222
</plist>

BitByteData.xcodeproj/TestBitByteData.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
<key>CFBundlePackageType</key>
1616
<string>BNDL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>2.0.0-test.2</string>
18+
<string>2.0.0</string>
1919
<key>CFBundleVersion</key>
20-
<string>25</string>
20+
<string>26</string>
2121
</dict>
2222
</plist>

BitByteData.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@
406406
CLANG_WARN_SUSPICIOUS_MOVE = YES;
407407
CLANG_WARN_UNREACHABLE_CODE = YES;
408408
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
409-
CURRENT_PROJECT_VERSION = 25;
409+
CURRENT_PROJECT_VERSION = 26;
410410
DEBUG_INFORMATION_FORMAT = dwarf;
411411
ENABLE_STRICT_OBJC_MSGSEND = YES;
412412
ENABLE_TESTABILITY = YES;
@@ -455,7 +455,7 @@
455455
CLANG_WARN_SUSPICIOUS_MOVE = YES;
456456
CLANG_WARN_UNREACHABLE_CODE = YES;
457457
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
458-
CURRENT_PROJECT_VERSION = 25;
458+
CURRENT_PROJECT_VERSION = 26;
459459
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
460460
ENABLE_STRICT_OBJC_MSGSEND = YES;
461461
GCC_NO_COMMON_BLOCKS = YES;
@@ -484,7 +484,7 @@
484484
APPLICATION_EXTENSION_API_ONLY = YES;
485485
DEFINES_MODULE = YES;
486486
DYLIB_COMPATIBILITY_VERSION = 1;
487-
DYLIB_CURRENT_VERSION = 25;
487+
DYLIB_CURRENT_VERSION = 26;
488488
DYLIB_INSTALL_NAME_BASE = "@rpath";
489489
INFOPLIST_FILE = BitByteData.xcodeproj/BitByteData.plist;
490490
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
@@ -508,7 +508,7 @@
508508
APPLICATION_EXTENSION_API_ONLY = YES;
509509
DEFINES_MODULE = YES;
510510
DYLIB_COMPATIBILITY_VERSION = 1;
511-
DYLIB_CURRENT_VERSION = 25;
511+
DYLIB_CURRENT_VERSION = 26;
512512
DYLIB_INSTALL_NAME_BASE = "@rpath";
513513
INFOPLIST_FILE = BitByteData.xcodeproj/BitByteData.plist;
514514
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,48 @@
11
# Changelog
22

3+
## 2.0.0
4+
5+
- Swift 4.2 is no longer supported.
6+
- Minimum iOS deployment version (when installed via CocoaPods or Carthage) is now 9.0.
7+
- Renamed the `ByteReader` class to `LittleEndianByteReader`.
8+
- `LittleEndianByteReader` (ex-`ByteReader`) is now a final class.
9+
- `LsbBitReader` and `MsbBitReader` are no longer its subclasses.
10+
- Added a new `BigEndianByteReader` class with the same set of APIs as `LittleEndianByteReader`.
11+
- Added a `ByteReader` protocol which inherits `AnyObject`.
12+
- Most of the methods and properties of the previously existing `ByteReader` _class_ are now requirements of the new
13+
protocol.
14+
- `ByteReader` provides a default implementation for the initializer which implements conversion from a `BitReader`
15+
(this initializer is not a protocol requirement).
16+
- `ByteReader` provides default implementations for the `bytesLeft`, `bytesRead`, and `isFinished` properties (these
17+
properties are not protocol requirements).
18+
- `ByteReader` provides a default implementation for the `int(fromBytes:)` method.
19+
- Both `LittleEndianByteReader` and `BigEndianByteReader` now conform to the `ByteReader` protocol.
20+
- Added a `SignedNumberRepresentation` enum with five cases and two instance methods.
21+
- The `BitReader` protocol now inherits the `ByteReader` protocol.
22+
- Two new method requirements have been added to the `BitReader` protocol: `signedInt(fromBits:representation:)` and
23+
`advance(by:)`.
24+
- `BitReader` now provides a default implementation for `int(fromBits:)`.
25+
- It is no longer possible to set the `offset` property of the `LsbBitReader` and `MsbBitReader` classes if they are not
26+
aligned (a precondition crash occurs instead).
27+
- The `signedInt(fromBits:representation:)` function has been added to the `LsbBitReader` and `MsbBitReader` classes
28+
with the default value of `SignedNumberRepresentation.twoComplementNegatives` for the `representation` argument.
29+
- Two new method requirements have been added to the `BitWriter` protocol: `write(unsignedNumber:bitsCount:)` and
30+
`write(signedNumber:bitsCount:representation:)`.
31+
- `BitWriter` now provides default implementations for `write(signedNumber:bitsCount:representation:)` and
32+
`write(number:bitsCount:)`.
33+
- The default implementation of the `write(number:bitsCount:)` function has a precondition crash if the `bitsCount`
34+
argument exceeds the bit width of the integer type on the current platform.
35+
- The `write(unsignedNumber:bitsCount:)` function of the `LsbBitWriter` and `MsbBitWriter` classes functions now have a
36+
precondition crash if the `bitsCount` argument exceeds the bit width of the integer type on the current platform.
37+
- Documentation has been updated.
38+
- Added documentation for new APIs.
39+
- A couple of missing precondition checks are now properly documented.
40+
- Existing documentation has been made more concise and slightly more grammatically correct.
41+
42+
## 1.4.4
43+
44+
- Fixed a compilation warning about "deprecated class keyword" appearing when using Swift 5.4.
45+
346
## 1.4.3
447

548
- Fixed incompatibility with Swift Package Manager from Swift 4.2.

0 commit comments

Comments
 (0)