Swiftpack.co -  klassen-software-solutions/KSSCore as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
klassen-software-solutions/KSSCore
Miscellaneous Swift utilities
.package(url: "https://github.com/klassen-software-solutions/KSSCore.git", from: "5.0.0")

KSSCore

Miscellaneous non-UI Swift utilities

Description

This package is divided into a number of Swift Modules providing utility methods related to both UI and non-UI classes. At present only KSSFoundation and KSSTest are available on both Mac and Linux. The remaining modules are only available on Mac.

The modules provided by this package are the following:

  • KSSFoundation - items that depend on nothing but the Foundation classes
  • KSSTest - items that depend on XCTest

API Documentation

What Has Changed In Version 5

This was only going to be a minor change bringing us to V4.1, however the logging was becoming more and more cumbersome due to the limitations is OSX pre 10.12. So we have made 10.12 the new minimum for this library.

In addition this version includes the following:

  • Made the XCTest extension for expect more general and removed the older version of the API.
  • Added the ability to watch a file and obtain the change notifications. This is a wrapper around the Apple Core Services, hence is not available on Linux.
  • Added a simple version of os_log for Linux for internal use only. (So some items that were previously logged in OSX and silent on Linux, are now logged on Linux as well.)
  • Added an additional duration version that computes a duration from a given date. This is more accurate than the previous version, which still exists, which does not require a given date but uses approximate values for the length of a month and year.

What Has Changed In Version 4

The primary change from version 3 to 4 is that all the UI related items have been removed from this package into a separate package, KSSCoreUI. The primarily reason for this was to make it easier to deal with both Linux and Mac systems in the same library, without a lot of exceptions to our standard development tools.

In particular this eliminates the need for manually maintaining the Makefile when new modules are added since we no longer need to distinguish between Linux supported and non-Linux supported modules.

Module Availability

At present we support all modules in macOS, iOS, and Linux. Note that the only Linux we have tested on is Ubuntu.

GitHub

link
Stars: 0
Last commit: 4 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

Version 5.0.0
40 weeks ago

This version changed the minimum OSX version to be 10.12. This was done as the pre-10.12 support was becoming more and more cumbersome.

In addition, we added some more items from HTTPMonitor:

  • #28 Added some internal os_log support for Linux
  • #48 Added a more accurate version of duration
  • #51 Added the ability to watch a file or directory
  • #52 Improved the expect tests and simplified the API

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API