I’m utilizing Firebase Messaging to make my very own Swift Package deal for Push Notification Service. Now whereas I’m including the google bundle – firebase-ios-sdk, then it’s together with all the opposite packages. However I do not need them in my Swift Package deal. So how I can take away all the opposite pointless dependencies or solely can add FirebaseMessaging to it.
My Package deal.Swift file :-
`// swift-tools-version: 5.7
// The swift-tools-version declares the minimal model of Swift required to construct this bundle.
import PackageDescription
let bundle = Package deal(
identify: “PushNotificationDemoPackage”,
merchandise: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: “PushNotificationDemoPackage”,
targets: [“PushNotificationDemoPackage”]),
],
dependencies: [
.package(url: “https://github.com/firebase/firebase-ios-sdk.git”, from: “8.0.0”),
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: “1.0.0”),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: “PushNotificationDemoPackage”,
dependencies: [
.product(name: “FirebaseMessaging”, package: “firebase-ios-sdk”)]),
.testTarget(
identify: “PushNotificationDemoPackageTests”,
dependencies: [“PushNotificationDemoPackage”]),
]
)
`
Package deal file screenshot is included right here with purple markup
I’m utilizing Firebase Messaging to make my very own Swift Package deal for Push Notification Service. Now whereas I’m including the google bundle – firebase-ios-sdk, then it’s together with all the opposite packages. However I do not need them in my Swift Package deal. So how I can take away all the opposite pointless dependencies or solely can add FirebaseMessaging to it.