Code Monkey home page Code Monkey logo

Comments (9)

tib avatar tib commented on May 19, 2024 1

Please also update your Swift package dependencies, UAParser dep is lowered to v10_15. ;)

from feather.

mkll avatar mkll commented on May 19, 2024

feather 1.0.0-beta.2

// swift-tools-version:5.3
import PackageDescription

let package = Package(
    name: "feather",
    platforms: [
       .macOS(.v10_15)
    ],
    products: [
        .executable(name: "Run", targets: ["Run"]),
        .library(name: "App", targets: ["App"]),
    ],
    dependencies: [
        .package(url: "https://github.com/vapor/vapor", from: "4.34.0"),
        .package(url: "https://github.com/binarybirds/feather-core", from: "1.0.0-beta"),
//        .package(url: "https://github.com/binarybirds/feather-core", .branch("main")),
        .package(url: "https://github.com/binarybirds/leaf-foundation", from: "1.0.0-beta"),
        /// drivers
        .package(url: "https://github.com/vapor/fluent-sqlite-driver", from: "4.0.0"),
        .package(url: "https://github.com/binarybirds/liquid-local-driver", from: "1.0.0"),

//        .package(name: "redirect-module", url: "https://github.com/feather-modules/redirect", .branch("main")),
//        .package(name: "sponsor-module", url: "https://github.com/feather-modules/sponsor", .branch("main")),
//        .package(name: "static-module", url: "https://github.com/feather-modules/static", .branch("main")),
//        .package(name: "blog-module", url: "https://github.com/feather-modules/blog", .branch("main")),
//        .package(name: "swifty-module", url: "https://github.com/feather-modules/swifty", .branch("main")),
//        .package(name: "markdown-module", url: "https://github.com/feather-modules/markdown", .branch("main")),

        .package(url: "https://github.com/malcommac/UAParserSwift", from: "1.2.0"),
        .package(name: "ALanguageParser", url: "https://github.com/matsoftware/accept-language-parser", from: "1.0.0"),
 
        .package(url: "https://github.com/JohnSundell/Splash", from: "0.15.0"),
        .package(url: "https://github.com/JohnSundell/Ink", from: "0.5.0"),
    ],
    targets: [
        .target(name: "App", dependencies: [
            .product(name: "FeatherCore", package: "feather-core"),
            .product(name: "LeafFoundation", package: "leaf-foundation"),
            
            /// drivers
            .product(name: "FluentSQLiteDriver", package: "fluent-sqlite-driver"),
            .product(name: "LiquidLocalDriver", package: "liquid-local-driver"),

            /// modules
//            .product(name: "RedirectModule", package: "redirect-module"),
//            .product(name: "SponsorModule", package: "sponsor-module"),
//            .product(name: "StaticModule", package: "static-module"),
//            .product(name: "BlogModule", package: "blog-module"),
//            .product(name: "SwiftyModule", package: "swifty-module"),
//            .product(name: "MarkdownModule", package: "markdown-module"),

            .product(name: "UAParserSwift", package: "UAParserSwift"),
            .product(name: "ALanguageParser", package: "ALanguageParser"),
            
            .product(name: "Splash", package: "Splash"),
            .product(name: "Ink", package: "Ink"),

            .product(name: "Vapor", package: "vapor"),
        ], exclude: [
            "Modules/Analytics/Bundle",
            "Modules/Blog/Bundle",
            "Modules/Menu/Bundle",
            "Modules/Redirect/Bundle",
            "Modules/Site/Bundle",
            "Modules/Sponsor/Bundle",
            "Modules/Static/Bundle",
        ], swiftSettings: [
            .unsafeFlags(["-cross-module-optimization"], .when(configuration: .release))
        ]),
        .target(name: "Run", dependencies: [
             .target(name: "App"),
        ]),
//        .testTarget(name: "AppTests", dependencies: [
//            .target(name: "App"),
//            .product(name: "XCTVapor", package: "vapor"),
//        ])
    ]
)

from feather.

mkll avatar mkll commented on May 19, 2024

Looks like I was in a hurry. I cloned main and it was built fine.

from feather.

mkll avatar mkll commented on May 19, 2024

Hmm, no, it still doesn't build.

from feather.

tib avatar tib commented on May 19, 2024

As I can see you're trying to build the project through a generated Xcode project file, but that's not going to work at all.

You should open the project via the Package.swift file, please don't generate an xcodeproj file, that's a deprecated way.

Please, let me know if this was / fixes your issue. Thanks.

from feather.

mkll avatar mkll commented on May 19, 2024

Oh, thanks, I'l try. I've been experimenting a lot over the past few days, both with and without a project file, so I may not have tried it.

from feather.

mkll avatar mkll commented on May 19, 2024

Ah! UAParser requires Big Sur, that's why I generated the project file, so at least I can fix the requirements manually. And if I try to compile through Patskage.swift, it cannot be fixed due to lock.

from feather.

mkll avatar mkll commented on May 19, 2024

Found the checkout directory for UAParser and fixed requirements manually. Trying to build.

from feather.

mkll avatar mkll commented on May 19, 2024

Voila! Feather is up and running!
Thanks for advice. :)

from feather.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.