Skip to content

Commit

Permalink
Merge pull request #27 from yoheimuta/swift-package-manager
Browse files Browse the repository at this point in the history
Swift package manager support
  • Loading branch information
yoheimuta authored Apr 25, 2021
2 parents b992280 + 296b911 commit f734a9d
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"object": {
"pins": [
{
"package": "RxSwift",
"repositoryURL": "https://github.com/ReactiveX/RxSwift",
"state": {
"branch": null,
"revision": "7e01c05f25c025143073eaa3be3532f9375c614b",
"version": "6.1.0"
}
}
]
},
"version": 1
}
32 changes: 32 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "RxMusicPlayer",
platforms: [
.iOS(.v10)
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "RxMusicPlayer",
targets: ["RxMusicPlayer"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/ReactiveX/RxSwift", from: "6.1.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 this package depends on.
.target(
name: "RxMusicPlayer",
dependencies: [
"RxSwift",
.product(name: "RxCocoa", package: "RxSwift")
],
path: "RxMusicPlayer")
]
)
1 change: 1 addition & 0 deletions RxMusicPlayer/RxMusicPlayer+Rx.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import AVFoundation
import RxCocoa
import RxSwift
import UIKit

extension Reactive where Base: RxMusicPlayer {
/**
Expand Down
2 changes: 1 addition & 1 deletion RxMusicPlayer/RxMusicPlayerItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
//

import AVFoundation
import Foundation
import RxCocoa
import RxSwift
import UIKit

open class RxMusicPlayerItem: NSObject {
/**
Expand Down

0 comments on commit f734a9d

Please sign in to comment.