Skip to content

Commit

Permalink
Update Package.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
patryk-sredzinski authored Dec 5, 2024
1 parent b90a2e9 commit 32f2a36
Showing 1 changed file with 62 additions and 9 deletions.
71 changes: 62 additions & 9 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
// swift-tools-version: 5.7
// swift-tools-version:5.7

import PackageDescription

let package = Package(
name: "Texture",
platforms: [
.iOS(.v14),
.iOS(.v14), // Set iOS deployment target to match the podspec
.tvOS(.v14)
],
products: [
.library(name: "Texture", targets: ["Texture"]),

.library(
name: "Texture",
targets: ["Texture"]
)
],
dependencies: [
.package(url: "https://github.com/pinterest/PINRemoteImage.git", from: "3.0.0"),
.package(url: "https://github.com/Instagram/IGListKit.git", from: "4.0.0"),
Expand All @@ -18,12 +22,61 @@ let package = Package(
targets: [
.target(
name: "Texture",
dependencies: [
.target(name: "Core"),
.product(name: "PINRemoteImage", package: "PINRemoteImage"),
.product(name: "IGListKit", package: "IGListKit"),
.product(name: "Yoga", package: "yoga")
],
path: "Source",
publicHeadersPath: "./",
cxxSettings: [
.define("CLANG_CXX_LANGUAGE_STANDARD", to: "c++11"),
.define("CLANG_CXX_LIBRARY", to: "libc++")
exclude: [
"AsyncDisplayKit+Tips",
"Examples",
"Tests"
],
publicHeadersPath: "AsyncDisplayKit",
cSettings: [
.headerSearchPath("Source"),
.headerSearchPath("Source/Details"),
.headerSearchPath("Source/Layout"),
.headerSearchPath("Source/Base"),
.headerSearchPath("Source/Debug"),
.headerSearchPath("Source/TextKit"),
.headerSearchPath("Source/TextExperiment"),
.define("USE_TEXTURE")
]
),
.target(
name: "Core",
dependencies: [],
path: "Source/Core"
),
.testTarget(
name: "TextureTests",
dependencies: ["Texture"],
path: "Tests"
),
.target(
name: "PINRemoteImage",
dependencies: [
.product(name: "PINRemoteImage", package: "PINRemoteImage")
],
path: "Source/PINRemoteImage"
),
.target(
name: "IGListKit",
dependencies: [
.product(name: "IGListKit", package: "IGListKit")
],
path: "Source/IGListKit"
),
.target(
name: "Yoga",
dependencies: [
.product(name: "Yoga", package: "yoga")
],
path: "Source/Yoga"
)
]
],
swiftLanguageVersions: [.v5]
)

0 comments on commit 32f2a36

Please sign in to comment.