Skip to content

Commit

Permalink
Merge pull request #2 from newspicks/feature/package
Browse files Browse the repository at this point in the history
Swift Packageに対応
  • Loading branch information
takehilo authored Nov 22, 2024
2 parents daabd0c + 677738d commit e787fbe
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"pins" : [
{
"identity" : "alamofire",
"kind" : "remoteSourceControl",
"location" : "https://github.com/Alamofire/Alamofire",
"state" : {
"revision" : "e16d3481f5ed35f0472cb93350085853d754913f",
"version" : "5.10.1"
}
},
{
"identity" : "objectmapper",
"kind" : "remoteSourceControl",
"location" : "https://github.com/tristanhimmelman/ObjectMapper",
"state" : {
"revision" : "6021c6035e83a306047348666f6400dc61445d3b",
"version" : "4.4.3"
}
}
],
"version" : 2
}
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.9

import PackageDescription

let package = Package(
name: "AlamofireObjectMapper",
platforms: [
.macOS(.v12),
.iOS(.v13),
.tvOS(.v9),
.watchOS(.v2)
],
products: [
.library(name: "AlamofireObjectMapper", targets: ["AlamofireObjectMapper"])
],
dependencies: [
.package(url: "https://github.com/Alamofire/Alamofire", from: "5.9.0"),
.package(url: "https://github.com/tristanhimmelman/ObjectMapper", from: "4.2.0")
],
targets: [
.target(
name: "AlamofireObjectMapper",
dependencies: [
.product(name: "Alamofire", package: "Alamofire"),
.product(name: "ObjectMapper", package: "ObjectMapper")
],
path: "AlamofireObjectMapper"
)
],
swiftLanguageVersions: [.v5]
)

0 comments on commit e787fbe

Please sign in to comment.