29 lines
839 B
Swift
29 lines
839 B
Swift
// swift-tools-version: 5.9
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "CapacitorCamera",
|
|
platforms: [.iOS(.v14)],
|
|
products: [
|
|
.library(
|
|
name: "CapacitorCamera",
|
|
targets: ["CameraPlugin"])
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "7.0.0")
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "CameraPlugin",
|
|
dependencies: [
|
|
.product(name: "Capacitor", package: "capacitor-swift-pm"),
|
|
.product(name: "Cordova", package: "capacitor-swift-pm")
|
|
],
|
|
path: "ios/Sources/CameraPlugin"),
|
|
.testTarget(
|
|
name: "CameraPluginTests",
|
|
dependencies: ["CameraPlugin"],
|
|
path: "ios/Tests/CameraPluginTests")
|
|
]
|
|
)
|