yeokm1 / SwiftSerial

A Swift Linux and Mac library for reading and writing to serial ports.
MIT License
136 stars 40 forks source link

Swift V5 Package Manager Support #11

Closed MotivDev closed 5 years ago

MotivDev commented 5 years ago

I have never done this before so if I have missed something please tell me! ;-)

Repo Package.swift modified to support Swift Package Manager for Swift 5.

Change SPM command to:

Add SwiftSerial as a dependency to your project by editing the Package.swift file.

// swift-tools-version:5.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "MyApp",
    dependencies: [
        .package(
            url: "https://github.com/MotivDev/SwiftSerial", .upToNextMajor(from:"0.1.0")
        ),
...
yeokm1 commented 5 years ago

This is a start to an open-source contribution! To make this PR complete, I need additional changes to be made.

  1. Adjust the main README.md documentation to include instructions on what app developers importing this library have to do. Specifically this section

  2. Adjust the Package.swift files for the 2 sample apps

yeokm1 commented 5 years ago

@MotivDev Do comment here once your PR is ready for review.

yeokm1 commented 5 years ago

Another PR was accepted in lieu of this https://github.com/yeokm1/SwiftSerial/pull/14