|
| 1 | +// swift-tools-version: 5.9 |
| 2 | +// The swift-tools-version declares the minimum version of Swift required to build this package. |
| 3 | + |
| 4 | +import PackageDescription |
| 5 | + |
| 6 | +let version = "4.0.2" |
| 7 | +let package = Package( |
| 8 | + name: "ZohoDeskPortalCore", |
| 9 | + platforms: [ |
| 10 | + .iOS(.v13) |
| 11 | + ], |
| 12 | + products: [ |
| 13 | + // Products define the executables and libraries a package produces, making them visible to other packages. |
| 14 | + .library( |
| 15 | + name: "ZohoDeskPortalCore", |
| 16 | + targets: ["ZohoDeskPortalCore", "ZohoDeskPortalCorePackage"]), |
| 17 | + ], |
| 18 | + dependencies: [ |
| 19 | + .package(url: "https://github.com/zoho/ZohoDeskPortalKB", exact: "4.0.2"), |
| 20 | + .package(url: "https://github.com/zoho/ZohoDeskPortalCommunity", exact: "4.0.2"), |
| 21 | + .package(url: "https://github.com/zoho/ZohoDeskPortalTicket", exact: "4.0.2") |
| 22 | + ], |
| 23 | + targets: [ |
| 24 | + // Targets are the basic building blocks of a package, defining a module or a test suite. |
| 25 | + // Targets can depend on other targets in this package and products from dependencies. |
| 26 | + .binaryTarget(name: "ZohoDeskPortalCore", url: "https://maven.zohodl.com/ZohoDesk/ZohoDeskPortalCore/\(version)/ZohoDeskPortalCore.zip", checksum: "0228ddb191dc9fd4faffc2f7f67b3efb6f71f4f21497b54e69635648df589d3c"), |
| 27 | + |
| 28 | + .target( |
| 29 | + name: "ZohoDeskPortalCorePackage", |
| 30 | + dependencies: [ |
| 31 | + .product(name: "ZohoDeskPortalKB", package: "ZohoDeskPortalKB"), |
| 32 | + .product(name: "ZohoDeskPortalCommunity", package: "ZohoDeskPortalCommunity"), |
| 33 | + .product(name: "ZohoDeskPortalTicket", package: "ZohoDeskPortalTicket") |
| 34 | + ] |
| 35 | + ) |
| 36 | + ] |
| 37 | +) |
0 commit comments