Skip to content

Instantly share code, notes, and snippets.

@FromAtom
Created September 29, 2025 15:31
Show Gist options
  • Save FromAtom/3faaf2bfc75ec69ddfda29eb11590754 to your computer and use it in GitHub Desktop.
Save FromAtom/3faaf2bfc75ec69ddfda29eb11590754 to your computer and use it in GitHub Desktop.
let package = Package(
name: "SamplePackage",
platforms: [.iOS(.v17)],
products: [
.library(
name: "iOS",
targets: ["iOS"]
),
],
dependencies: ExternalPackage.allCases.map { $0.dependency },
targets: [
.target(
name: "iOS",
dependencies: [
.product(.firebaseCrashlytics),
.product(.firebaseAnalytics),
.product(.firebaseRemoteConfig),
.target(name: "Search"),
.target(name: "Setting"),
.target(name: "Welcome")
]
),
.target(
name: "Search",
dependencies: [
.product(.rswift),
.product(.firebaseCrashlytics),
.product(.firebaseAnalytics)
],
plugins: [
.plugin(name: "RswiftGenerateInternalResources", package: "R.swift")
]
),
.target(
name: "Setting",
dependencies: [
.product(.rswift),
.product(.firebaseCrashlytics),
.product(.firebaseAnalytics)
],
plugins: [
.plugin(name: "RswiftGenerateInternalResources", package: "R.swift")
]
),
.target(
name: "Welcome",
dependencies: [
.product(.rswift),
.product(.firebaseCrashlytics),
.product(.firebaseAnalytics)
],
plugins: [
.plugin(name: "RswiftGenerateInternalResources", package: "R.swift")
]
)
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment