-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
29 lines (27 loc) · 1.37 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// swift-tools-version: 5.9
// This is a Skip (https://skip.tools) package,
// containing a Swift Package Manager project
// that will use the Skip build plugin to transpile the
// Swift Package, Sources, and Tests into an
// Android Gradle Project with Kotlin sources and JUnit tests.
import PackageDescription
import Foundation
// Set SKIP_ZERO=1 to build without Skip libraries
let zero = ProcessInfo.processInfo.environment["SKIP_ZERO"] != nil
let skipstone = !zero ? [Target.PluginUsage.plugin(name: "skipstone", package: "skip")] : []
let package = Package(
name: "photo-analyser",
defaultLocalization: "en",
platforms: [.iOS(.v16), .macOS(.v13), .tvOS(.v16), .watchOS(.v9), .macCatalyst(.v16)],
products: [
.library(name: "PhotoAnalyserApp", type: .dynamic, targets: ["PhotoAnalyser"]),
],
dependencies: [
.package(url: "https://source.skip.tools/skip.git", from: "0.8.42"),
.package(url: "https://source.skip.tools/skip-ui.git", from: "0.0.0")
],
targets: [
.target(name: "PhotoAnalyser", dependencies: (zero ? [] : [.product(name: "SkipUI", package: "skip-ui")]), resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "PhotoAnalyserTests", dependencies: ["PhotoAnalyser"] + (zero ? [] : [.product(name: "SkipTest", package: "skip")]), resources: [.process("Resources")], plugins: skipstone),
]
)