Package.swift 2.4 KB
// swift-tools-version: 5.9
//
//  Package.swift
//  SwiftWarplyFramework
//
//  Created by Manos Chorianopoulos on 17/6/25.
//

import PackageDescription

let package = Package(
    name: "SwiftWarplyFramework",
    platforms: [
        .iOS(.v17)
    ],
    products: [
        .library(
            name: "SwiftWarplyFramework",
            targets: ["SwiftWarplyFramework"]
        ),
    ],
    dependencies: [
        .package(url: "https://github.com/yeahdongcn/RSBarcodes_Swift", from: "5.2.0"),
        .package(url: "https://github.com/cesarferreira/SwiftEventBus", from: "5.0.0")
    ],
    targets: [
        .target(
            name: "SwiftWarplyFramework",
            dependencies: [
                .product(name: "RSBarcodes_Swift", package: "RSBarcodes_Swift"),
                .product(name: "SwiftEventBus", package: "SwiftEventBus")
            ],
            path: "SwiftWarplyFramework/SwiftWarplyFramework",
            exclude: [
                "Helpers/WarplyReactMethods.h",
                "Helpers/WarplyReactMethods.m",
                "Info.plist"
            ],
            resources: [
                .process("Media.xcassets"),
                .process("fonts"),
                .process("Main.storyboard"),
                .copy("cells/ProfileCouponFiltersTableViewCell/ProfileCouponFiltersTableViewCell.xib"),
                .copy("cells/ProfileHeaderTableViewCell/ProfileHeaderTableViewCell.xib"),
                .copy("cells/ProfileQuestionnaireTableViewCell/ProfileQuestionnaireTableViewCell.xib"),
                .copy("screens/MyRewardsViewController/MyRewardsViewController.xib"),
                .copy("cells/MyRewardsBannerOfferCollectionViewCell/MyRewardsBannerOfferCollectionViewCell.xib"),
                .copy("cells/MyRewardsOffersScrollTableViewCell/MyRewardsOffersScrollTableViewCell.xib"),
                .copy("cells/ProfileCouponTableViewCell/ProfileCouponTableViewCell.xib"),
                .copy("cells/ProfileFilterCollectionViewCell/ProfileFilterCollectionViewCell.xib"),
                .copy("screens/CouponViewController/CouponViewController.xib"),
                .copy("screens/ProfileViewController/ProfileViewController.xib"),
                .copy("cells/MyRewardsOfferCollectionViewCell/MyRewardsOfferCollectionViewCell.xib"),
                .copy("cells/MyRewardsBannerOffersScrollTableViewCell/MyRewardsBannerOffersScrollTableViewCell.xib")
            ]
        ),
    ]
)