// swift-tools-version:5.9
// Navvo Maps SDK for iOS — Swift Package manifest.
//
// The rendering engine (MapLibre Native) is an internal, compiled-in build
// dependency, exactly like any native map SDK links a renderer. The public
// API of this package exposes only Navvo types, and at runtime every network
// request goes to Navvo endpoints (https://navvo.io/api/v1).
import PackageDescription

let package = Package(
    name: "NavvoMaps",
    platforms: [
        .iOS(.v13)
    ],
    products: [
        .library(name: "NavvoMaps", targets: ["NavvoMaps"])
    ],
    dependencies: [
        // Internal rendering engine (open source), compiled into the app.
        .package(
            url: "https://github.com/maplibre/maplibre-gl-native-distribution.git",
            from: "6.0.0"
        )
    ],
    targets: [
        .target(
            name: "NavvoMaps",
            dependencies: [
                .product(name: "MapLibre", package: "maplibre-gl-native-distribution")
            ],
            path: "Sources/NavvoMaps",
            resources: [
                .copy("PrivacyInfo.xcprivacy")
            ]
        ),
        .testTarget(
            name: "NavvoMapsTests",
            dependencies: ["NavvoMaps"],
            path: "Tests/NavvoMapsTests"
        )
    ]
)
