Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
patryk-sredzinski committed Dec 5, 2024
1 parent 1a3ec29 commit ee481aa
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 37 deletions.
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.

32 changes: 32 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"pins" : [
{
"identity" : "pincache",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pinterest/PINCache.git",
"state" : {
"revision" : "2fb85948463292c2e824148cf17dc62a4c217a94",
"version" : "3.0.4"
}
},
{
"identity" : "pinoperation",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pinterest/PINOperation.git",
"state" : {
"revision" : "a74f978733bdaf982758bfa23d70a189f4b4c1b6",
"version" : "1.2.3"
}
},
{
"identity" : "pinremoteimage",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pinterest/PINRemoteImage.git",
"state" : {
"branch" : "master",
"revision" : "26818dc4ad9ca5ce3064e23524c4ac06e873076b"
}
}
],
"version" : 2
}
46 changes: 9 additions & 37 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

// swift-tools-version:5.7
import PackageDescription

let headersSearchPath: [CSetting] = [.headerSearchPath("."),
Expand All @@ -27,51 +25,25 @@ let sharedDefines: [CSetting] = [
// always disabled
.define("IG_LIST_COLLECTION_VIEW", to: "0"),]

func IGListKit(enabled: Bool) -> [CSetting] {
let state: String = enabled ? "1" : "0"
return [
.define("AS_IG_LIST_KIT", to: state),
.define("AS_IG_LIST_DIFF_KIT", to: state),
]
}


let package = Package(
name: "Texture",
name: "AsyncDisplayKit",
platforms: [
.macOS(.v10_15),
.iOS(.v10),
.tvOS(.v10)
],
.iOS(.v8)
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "AsyncDisplayKit",
type: .static,
targets: ["AsyncDisplayKit"]),
.library(
name: "AsyncDisplayKitIGListKit",
type: .static,
targets: ["AsyncDisplayKitIGListKit"]),
targets: ["AsyncDisplayKit"]
)
],
dependencies: [
.package(url: "https://github.com/pinterest/PINRemoteImage.git", .branch("master")),
.package(url: "https://github.com/3a4oT/IGListKit", .branch("spmNumber10")),
],
targets: [
.target(
name: "AsyncDisplayKit",
dependencies: ["PINRemoteImage"],
path: "spm/Sources/AsyncDisplayKit",
cSettings: headersSearchPath + sharedDefines + IGListKit(enabled: false)
),
.target(
name: "AsyncDisplayKitIGListKit",
dependencies: ["IGListKit", "PINRemoteImage"],
path: "spm/Sources/AsyncDisplayKitIGListKit/AsyncDisplayKit",
cSettings: headersSearchPath + sharedDefines + IGListKit(enabled: true)
),
],
cLanguageStandard: .c11,
cxxLanguageStandard: .cxx11
path: "Source"
)
]
)
20 changes: 20 additions & 0 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
PODS:
- iOSSnapshotTestCase/Core (8.0.0)
- OCMock (3.9.4)

DEPENDENCIES:
- iOSSnapshotTestCase/Core (~> 8.0)
- OCMock (~> 3.9)

SPEC REPOS:
trunk:
- iOSSnapshotTestCase
- OCMock

SPEC CHECKSUMS:
iOSSnapshotTestCase: a670511f9ee3829c2b9c23e6e68f315fd7b6790f
OCMock: 589f2c84dacb1f5aaf6e4cec1f292551fe748e74

PODFILE CHECKSUM: 3b874fa5a23281754f91a64090a82ef01ee76cc7

COCOAPODS: 1.15.2

0 comments on commit ee481aa

Please sign in to comment.