Skip to content

Commit

Permalink
Package json
Browse files Browse the repository at this point in the history
  • Loading branch information
Patryk Średziński committed Dec 5, 2024
1 parent ee481aa commit 86b55b9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 69 deletions.
32 changes: 0 additions & 32 deletions Package.resolved

This file was deleted.

63 changes: 26 additions & 37 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,49 +1,38 @@
// swift-tools-version:5.7
import PackageDescription
// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

let headersSearchPath: [CSetting] = [.headerSearchPath("."),
.headerSearchPath("Base"),
.headerSearchPath("Debug"),
.headerSearchPath("Details"),
.headerSearchPath("Details/Transactions"),
.headerSearchPath("Layout"),
.headerSearchPath("Private"),
.headerSearchPath("Private/Layout"),
.headerSearchPath("TextExperiment/Component"),
.headerSearchPath("TextExperiment/String"),
.headerSearchPath("TextExperiment/Utility"),
.headerSearchPath("TextKit"),
.headerSearchPath("tvOS"),]
import PackageDescription

let sharedDefines: [CSetting] = [
// Disable "old" textnode by default for SPM
.define("AS_ENABLE_TEXTNODE", to: "0"),

// PINRemoteImage always available for Texture
.define("AS_PIN_REMOTE_IMAGE", to: "1"),

// always disabled
.define("IG_LIST_COLLECTION_VIEW", to: "0"),]
let headersSearchPath: [CSetting] = [
.headerSearchPath("."),
.headerSearchPath("Base"),
.headerSearchPath("Debug"),
.headerSearchPath("Details"),
.headerSearchPath("Details/Transactions"),
.headerSearchPath("Layout"),
.headerSearchPath("Private"),
.headerSearchPath("Private/Layout"),
.headerSearchPath("TextExperiment/Component"),
.headerSearchPath("TextExperiment/String"),
.headerSearchPath("TextExperiment/Utility"),
.headerSearchPath("TextKit"),
.headerSearchPath("tvOS"),
]

let package = Package(
name: "AsyncDisplayKit",
platforms: [
.iOS(.v8)
],
name: "Texture",
products: [
.library(
name: "AsyncDisplayKit",
targets: ["AsyncDisplayKit"]
)
],
dependencies: [
.package(url: "https://github.com/pinterest/PINRemoteImage.git", .branch("master")),
name: "Texture",
targets: ["Texture"]
),
],
targets: [
.target(
name: "AsyncDisplayKit",
dependencies: ["PINRemoteImage"],
path: "Source"
name: "Texture",
path: "Source",
publicHeadersPath: ".",
cSettings: headersSearchPath
)
]
)

0 comments on commit 86b55b9

Please sign in to comment.