BinUtils icon indicating copy to clipboard operation
BinUtils copied to clipboard

Update project structure and Swift Package definition

Open bvadnai opened this issue 1 year ago • 0 comments

Changes Included:

  • Project Structure: The path for BinUtils within the Xcode project has been updated to reflect a new directory structure. The source file BinUtils.swift has been moved to Sources/BinUtils/BinUtils.swift.
  • Package.swift: The Swift package manifest file has been updated to specify the Swift tools version and to define the library product and its targets. This includes the addition of a test target for BinUtilsTests.
  • Code Formatting: Minor formatting changes have been made to BinUtils.swift to improve readability and maintain consistency throughout the code.
  • Data Conversion: Updated the DataConvertible protocol extension to use withUnsafePointer instead of UnsafeBufferPointer for data conversion, which is a more modern and recommended approach in Swift.

Impact:

These changes organize the project into a more conventional Swift package structure, making it easier to manage and contribute to. The update to Package.swift allows for better integration with the Swift Package Manager and supports future project scalability.

Testing:

  • Ensure that the project builds successfully after the restructure.
  • Verify that all existing tests pass with the new configuration.
  • Check that the updated data conversion method in DataConvertible does not affect the functionality.

Please review the changes and provide your feedback.

Fixes #11

bvadnai avatar Jan 15 '24 20:01 bvadnai