Swiftpack.co - fair-ground/Fair as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by fair-ground.
fair-ground/Fair 0.4.20
An independent distribution platform for free and open-source macOS & iOS apps
⭐️ 4
🕓 21 hours ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/fair-ground/Fair.git", from: "0.4.20")

Fair

This project contains the engine for a fair-ground. It consists of:

  1. fairtool: a command-line tool for creating & managing fair-grounds
  2. FairCore & FairApp: Swift modules for including runtime support for a fair-ground app

A fair-ground is an independent distribution platform for free and open-source native apps written in SwiftUI.

Browse the API documentation for details.

Note that until version 1.0 is released, minor releases may include API-breaking changes.

fairtool

The fairtool is a command-line executable for macOS12. It is used to manage all aspects of an App distribution fair-ground.

Read the fairtool documentation.

Runtime support

Swift Package Manager usage:

// swift-tools-version:5.5
import PackageDescription

let package = Package(
    name: "App",
    defaultLocalization: "en",
    platforms: [ .macOS(.v12), .iOS(.v15) ],
    products: [ .library(name: "App", targets: ["App"]) ],
    dependencies: [
        .package(name: "Fair", url: "https://fair-ground.org/Fair.git", .branch("main")), 
    ],
    targets: [
        .target(name: "App", dependencies: [ .product(name: "FairApp", package: "Fair") ], resources: [.process("Resources"), .copy("Bundle")]),
        .testTarget(name: "AppTests", dependencies: ["App"]),
    ]
)

Building documentation

swift package --allow-writing-to-directory ./docs generate-documentation --target FairCore --disable-indexing --transform-for-static-hosting --hosting-base-path Fair --output-path docs/

GitHub

link
Stars: 4
Last commit: 4 Just Now
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

0.4.21
2 minutes ago

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