ReSwift / ReactiveReSwift

Unidirectional Data Flow in Swift via FRP - Inspired by Elm
http://reswift.github.io/ReactiveReSwift
MIT License
136 stars 22 forks source link

Update your swift package manifest please. #24

Open jonah-neugass-ck opened 4 years ago

jonah-neugass-ck commented 4 years ago

Your swift package manifest doesn't work with new versions of Xcode.

DivineDominion commented 4 years ago

Beats me to fix the Package.swift. I think one would have to re-organize the code folder for multi-platform manifests, or change the project to have 1 target for all platforms. That seems to work for ReSwift.

Here's how far I came in my experiments, in case someone wants to pick this up in a PR:

// swift-tools-version:5.1
import PackageDescription

let package = Package(
    name: "ReactiveReSwift",
    products: [
        .library(
            name: "ReactiveReSwift",
            targets: ["ReactiveReSwift-iOS"]),
        .library(
            name: "ReactiveReSwift",
            targets: ["ReactiveReSwift-macOS"]),
        .library(
            name: "ReactiveReSwift",
            targets: ["ReactiveReSwift-tvOS"]),
        .library(
            name: "ReactiveReSwift",
            targets: ["ReactiveReSwift-watchOS"])
    ],
    targets: [
        .target(
            name: "ReactiveReSwift-iOS",
            path: "Sources",
            sources: ["."]
        ),
        .target(
            name: "ReactiveReSwift-macOS",
            path: "Sources",
            sources: ["."]
        ),
        .target(
            name: "ReactiveReSwift-tvOS",
            path: "Sources",
            sources: ["."]
        ),
        .target(
            name: "ReactiveReSwift-watchOS",
            path: "Sources",
            sources: ["."]
        ),

        .testTarget(
            name: "ReactiveReSwift-iOSTests",
            dependencies: ["ReactiveReSwift-iOS"],
            path: "Tests",
            sources: ["."]
        ),
        .testTarget(
            name: "ReactiveReSwift-macOSTests",
            dependencies: ["ReactiveReSwift-macOS"],
            path: "Tests",
            sources: ["."]
        ),
        .testTarget(
            name: "ReactiveReSwift-tvOSTests",
            dependencies: ["ReactiveReSwift-tvOS"],
            path: "Tests",
            sources: ["."]
        ),
        .testTarget(
            name: "ReactiveReSwift-watchOSTests",
            dependencies: ["ReactiveReSwift-watchOS"],
            path: "Tests",
            sources: ["."]
        ),
    ]
)