WrathChaos / StompClientLib

Simple STOMP Client library, Swift 3 and 4, 4.2, 5 compatible
https://www.freakycoder.com
MIT License
154 stars 81 forks source link

Swift Package Manager Support #128

Open fred-bowker opened 3 months ago

fred-bowker commented 3 months ago

There is an issue ticket for this but it is closed https://github.com/WrathChaos/StompClientLib/issues/122 Can we add the Swift Package manager support I don't see any Packages.swift. If you're ok with adding this, I'm happy to put in a pull request for this.

Cheers for creating StompClientLib

teendream commented 1 month ago

@fred-bowker great idea, looking for this!

WrathChaos commented 1 month ago

Hey @fred-bowker Thank you so much for the contribution. If you can create a PR for it, it would be awesome.

teendream commented 1 month ago

Hi @fred-bowker @WrathChaos any updates?

teendream commented 1 month ago

Hi @WrathChaos can you review https://github.com/WrathChaos/StompClientLib/pull/130 , please?

WrathChaos commented 1 month ago

Hi @teendream There are too many changes in your PR, please take a look at it

fred-bowker commented 1 month ago

@WrathChaos Hi, it looks like @teendream is looking into implementing the swift package manager support, if it is not done by the end of August, I'll do the change and put up a pull request, cheers Fred

teendream commented 1 month ago

@fred-bowker yes I need spm implementation, I forked it and experimenting it. So I'm in the stage where I need add SocketRocket as dependency to the StompClient. But SocketRocket also does not have SPM implementation, so I'm wrapping it too. Problems with headers in objc. Would be great if somebody helps me with direction where I need to dig. Thanks beforehand.

fatal error: 'NSRunLoop+SRWebSocketPrivate.h' file not found
#import "NSRunLoop+SRWebSocketPrivate.h"
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fatal error: 'NSURLRequest+SRWebSocketPrivate.h' file not found
#import "NSURLRequest+SRWebSocketPrivate.h"
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 let package = Package(
    name: "SocketRocket",
    platforms: [.iOS(.v12)],
    products: [
        .library(
            name: "SocketRocket",
            targets: ["SocketRocket"]
        ),
    ],
    targets: [
        .target(
            name: "SocketRocket",
            path: "SocketRocket",
            publicHeadersPath: "include"
        ),
        .testTarget(
            name: "SocketRocketTests",
            dependencies: ["SocketRocket"]
        ),
    ],
    cLanguageStandard: .c11,
    cxxLanguageStandard: .cxx11
)