Skip to content

Commit

Permalink
[Release v2.2.4] QArchive v2.2.4 release.
Browse files Browse the repository at this point in the history
This release has some minor bug fixes and refactoring,
move from Qt's Smart Pointers to C++ Standard Smart Pointers
whenever possible. Optimized IO Reader to reduce bad performance.
Handle libarchive versions properly when using ZSTD to compress and
other minor fixes.

Changelog:

* Refactor, use of more C++ Standard Smart Pointers than Qt's re-inventions whenever
  possible, credits to Rosen Panev (@neheb)

* Refactor, use best practices in C++ whenever possible,
  credits to Rosen Panev (@neheb)

* Bugfix, fallback to ZIP if ZSTD is not supported by libarchive,
  credits to @yosicovich

* Bugfix, improve IO Reader for more performance.

* Bugfix, allow compressing empty files in archive.

* Bugfix, fix removeFiles(QStringList &entry) method,
  credits to Rosen Panev (@neheb)

* CI/CD, use meson for macOS testing,
  credits to Rosen Panev (@neheb)

Signed-off-by: Divya Antony J R <antonyjr@protonmail.com>
  • Loading branch information
antony-jr committed Dec 21, 2022
1 parent 519e3b0 commit 5c174ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# ---

CMAKE_MINIMUM_REQUIRED( VERSION 3.17)
project(QArchive VERSION 2.2.3)
project(QArchive VERSION 2.2.4)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
Expand Down
6 changes: 4 additions & 2 deletions docs/QArchiveMemoryFile.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ Returns file information as QJsonObject. The QJsonObject has the below format w.

Returns a QBuffer pointer. This QBuffer is closed by default. You can read or write by opening this buffer. **Do not try to free this pointer. This pointer will be freed automatically when this class is destructed.**

> This is obsolete since v2.2.4 in favor of sharedBuffer()
### std::shared_ptr\<QBuffer\> sharedBuffer() const

Returns a std::shared_ptr QBuffer. This QBuffer is closed by default. You can read or write by opening this buffer.

> Only available in the master branch, this is recommended since, you can do whatever with the shared pointer. Even if you free it,
> the pointer will take care of itself.
> Only available in v2.2.4 or later, this is recommended since, you can do whatever with the shared pointer.
> Even if you free it, he pointer will take care of itself.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project(
'QArchive',
'cpp',
version: '2.2.3',
version: '2.2.4',
license: 'BSD-3-Clause',
default_options: ['cpp_std=c++17'],
meson_version: '>=0.49.0',
Expand Down

1 comment on commit 5c174ed

@neheb
Copy link
Contributor

@neheb neheb commented on 5c174ed Dec 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Builds fine: mesonbuild/wrapdb#846

Please sign in to comment.