Files
LCEssentials/Package.swift

44 lines
1.2 KiB
Swift
Raw Permalink Normal View History

2025-03-23 00:27:49 -03:00
// swift-tools-version: 6.0
import PackageDescription
2025-07-29 11:59:11 -03:00
import Foundation
2026-05-24 10:26:25 -03:00
let isLocalDevelopment = false //FileManager.default.fileExists(atPath: "../LCECryptoKit/PrivateLib/LCECryptoKitBinary")
2026-02-06 12:25:34 -03:00
let enableCryptoBinary = ProcessInfo.processInfo.environment["LCE_ENABLE_CRYPTO_BINARY"] != "0"
let cryptoPackageURL = isLocalDevelopment
? "../LCECryptoKit/PrivateLib/LCECryptoKitBinary"
: "https://60c260c85d3a2fe840411b0ff98f521b5eca3c56@git.loverde.com.br/Loverde-Company-LTDA/LCECryptoKitBinary.git"
let packageDependencies: [Package.Dependency] = enableCryptoBinary
? [
.package(url: cryptoPackageURL, exact: "1.0.4")
2026-02-06 12:25:34 -03:00
]
: []
let targetDependencies: [Target.Dependency] = enableCryptoBinary
? [
.product(name: "LCECryptoKit", package: "lcecryptokitbinary")
]
: []
2025-03-23 00:27:49 -03:00
let package = Package(
name: "LCEssentials",
2025-07-29 11:59:11 -03:00
platforms: [
.iOS(.v13),
.macOS(.v10_15),
.tvOS(.v13),
.watchOS(.v6)
],
2025-03-23 00:27:49 -03:00
products: [
.library(
name: "LCEssentials",
targets: ["LCEssentials"]),
],
2026-02-06 12:25:34 -03:00
dependencies: packageDependencies,
2025-03-23 00:27:49 -03:00
targets: [
.target(
2025-07-05 12:34:25 -03:00
name: "LCEssentials",
2026-02-06 12:25:34 -03:00
dependencies: targetDependencies),
2025-03-23 00:27:49 -03:00
]
)