RxSwiftCommunity / RxRealm

RxSwift extension for RealmSwift's types
MIT License
1.15k stars 263 forks source link

Add support for SwiftPM based dependency managers #126

Closed pogramos closed 4 years ago

pogramos commented 5 years ago

This adds support for SwiftPM manifest based dependency managers. I tested using it with Accio pointing out to my fork of the repo.

Currently, there's an open pull request (#6127) on realm repo to add support for SPM based dependency managers too.

if/once it is integrated into the main repository, the dependency to RealmSwift will be changed to

.package(url: "https://github.com/realm/realm-cocoa.git", .upToNextMajor(from: "3.15.0"))

to install it using Accio, just add the dependency on your Package.swift

[dependencies]

.package(url: "https://github.com/RxSwiftCommunity/RxRealm.git", .upToNextMajor(from: "1.0.0"))

[targets]

.target(
    name: "AppName",
    dependencies: [
        ... [Assuming you already have Realm and RxSwift here] ...,
        "RxRealm"
    ]
)
mariohahn commented 5 years ago

+1

freak4pc commented 5 years ago

Hey there @pogramos - the Package.swift needs to be updated to 5.0 and use realm-cocoa's SPM configuration instead of a specific revision.

pogramos commented 4 years ago

Hello @freak4pc I've made the proper changes to the Package.swift file!

rxswiftcommunity[bot] commented 4 years ago

Thanks a lot for contributing @pogramos! I've invited you to join the RxSwiftCommunity GitHub organization – no pressure to accept! If you'd like more information on what this means, check out our contributor guidelines and feel free to reach out with any questions.

Generated by :no_entry_sign: dangerJS