bmichotte / RegexUtil

Library to simplify regex in swift
MIT License
0 stars 1 forks source link

Add Swift Package Manager support #1

Closed fmoraes74 closed 3 years ago

fmoraes74 commented 3 years ago

Can you add Package.swift to enable SPM support in Xcode?

bmichotte commented 3 years ago

Yes, sure. I’ll try to do it but in the meantime, you can PR it

fmoraes74 commented 3 years ago

I think all you need to do is add a Package.swift such as:

// 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: "FMDB",
    products: [
        // Products define the executables and libraries produced by a package, and make them visible to other packages.
        .library(name: "FMDB", targets: ["FMDB"]),
    ],
    dependencies: [
        // Dependencies declare other packages that this package depends on.
        // .package(url: /* package url */, from: "1.0.0"),
    ],
    targets: [
        // Targets are the basic building blocks of a package. A target can define a module or a test suite.
        // Targets can depend on other targets in this package, and on products in packages which this package depends on.
        .target(
            name: "FMDB",
            dependencies: [],
            path: "src/fmdb",
            publicHeadersPath: "."),
    ]
)
bmichotte commented 3 years ago

Here you go, you should now be able to add the lib with SwiftPM

Closed by bcea6b4779e505ef54cbdc09096f5dd7e0d1be86

fmoraes74 commented 3 years ago

Thanks!