// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "Closer",
    platforms: [
        .iOS(.v17)
    ],
    dependencies: [
        // Firebase
        .package(url: "https://github.com/firebase/firebase-ios-sdk.git", from: "11.0.0"),
        
        // RevenueCat
        .package(url: "https://github.com/RevenueCat/purchases-ios.git", from: "5.0.0"),
        
        // Google Sign-In
        .package(url: "https://github.com/google/GoogleSignIn-iOS.git", from: "8.0.0"),
    ],
    targets: [
        .target(
            name: "Closer",
            dependencies: [
                .product(name: "FirebaseAuth", package: "firebase-ios-sdk"),
                .product(name: "FirebaseFirestore", package: "firebase-ios-sdk"),
                .product(name: "FirebaseFunctions", package: "firebase-ios-sdk"),
                .product(name: "FirebaseMessaging", package: "firebase-ios-sdk"),
                .product(name: "FirebaseStorage", package: "firebase-ios-sdk"),
                .product(name: "RevenueCat", package: "purchases-ios"),
                .product(name: "RevenueCatUI", package: "purchases-ios"),
                .product(name: "GoogleSignIn", package: "GoogleSignIn-iOS"),
            ],
            path: "Closer",
            exclude: ["Info.plist", "Closer.entitlements"],
            resources: [
                .process("Resources")
            ]
        ),
        .testTarget(
            name: "CloserTests",
            dependencies: ["Closer"],
            path: "CloserTests"
        ),
        .testTarget(
            name: "CloserUITests",
            dependencies: ["Closer"],
            path: "CloserUITests"
        ),
    ]
)
