Swiftpack.co - timroesner/SPM-Acknowledgments as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by timroesner.
timroesner/SPM-Acknowledgments 1.0.0
📦 A Swift Package Manager utility to create an Acknowledgments list of all packages used.
⭐️ 35
🕓 50 weeks ago
iOS
.package(url: "https://github.com/timroesner/SPM-Acknowledgments.git", from: "1.0.0")

📦 SPM-Acknowledgments

A Swift Package Manager utility to create an Acknowledgments list of all packages used, by parsing the Package.resolved file and displaying all your SPM packages in a Table View with their linked licenses.

Installation

In Xcode 11 select File > Swift Packages > Add Package Dependency. From there you can add the package through the GitHub repo URL: https://github.com/timroesner/SPM-Acknowledgments

Setup

For the parsing to properly work, you need to add the Package.resolved file to your project. The easiest way to keep this file up to date is by adding the following as a Build Phase:
cp ${PROJECT_FILE_PATH}/project.xcworkspace/xcshareddata/swiftpm/Package.resolved ${PROJECT_DIR}. build phase

Once you build your project at least once you should now have a Package.resolved file in your project directory. Drag this file into your Xcode project and import it. Important, do not copy this file, but simply create a reference to it, as it will be automatically updated with each build. This is mainly so changes to your dependencies are automatically reflected, without you having to do any updates to the Package.resovled file. import package.resolved

Usage

import SPM_Acknowledgments

let acknowledgmentList = AcknowledgmentsTableViewController(style: .grouped)
navigationController?.pushViewController(acknowledgmentList, animated: true)

Screenshots

Table ViewLicense View

GitHub

link
Stars: 35
Last commit: 50 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

4 years ago

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