Skip to content

Commit dc5ede0

Browse files
authored
Zip: Stop including Swift specific frameworks (#12080)
1 parent 5de0369 commit dc5ede0

File tree

5 files changed

+15
-21
lines changed

5 files changed

+15
-21
lines changed

ReleaseTooling/Sources/FirebaseManifest/FirebaseManifest.swift

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,30 +34,29 @@ public let shared = Manifest(
3434
Pod("FirebaseSessions"),
3535
Pod("GoogleAppMeasurement", isClosedSource: true),
3636
Pod("GoogleAppMeasurementOnDeviceConversion", isClosedSource: true, platforms: ["ios"]),
37-
Pod("FirebaseAnalytics", isClosedSource: true),
37+
Pod("FirebaseAnalytics", isClosedSource: true, zip: true),
3838
Pod("FirebaseAnalyticsOnDeviceConversion", platforms: ["ios"], zip: true),
39-
Pod("FirebaseAnalyticsSwift", allowWarnings: true, zip: true),
39+
Pod("FirebaseAnalyticsSwift", allowWarnings: true),
4040
Pod("FirebaseABTesting", zip: true),
4141
Pod("FirebaseAppCheck", zip: true),
42-
Pod("FirebaseRemoteConfig"),
43-
Pod("FirebaseRemoteConfigSwift", allowWarnings: true, zip: true),
42+
Pod("FirebaseRemoteConfig", zip: true),
43+
Pod("FirebaseRemoteConfigSwift", allowWarnings: true),
4444
Pod("FirebaseAppDistribution", isBeta: true, platforms: ["ios"], zip: true),
4545
Pod("FirebaseAuth", zip: true),
4646
Pod("FirebaseCrashlytics", zip: true),
47-
Pod("FirebaseDatabase"),
48-
Pod("FirebaseDatabaseSwift", allowWarnings: true, zip: true),
47+
Pod("FirebaseDatabase", zip: true),
48+
Pod("FirebaseDatabaseSwift", allowWarnings: true),
4949
Pod("FirebaseDynamicLinks", platforms: ["ios"], zip: true),
5050
Pod("FirebaseFirestoreInternal", allowWarnings: true),
51-
Pod("FirebaseFirestore", allowWarnings: true),
52-
Pod("FirebaseFirestoreSwift", allowWarnings: true, zip: true),
51+
Pod("FirebaseFirestore", allowWarnings: true, zip: true),
52+
Pod("FirebaseFirestoreSwift", allowWarnings: true),
5353
Pod("FirebaseFunctions", zip: true),
54-
Pod("FirebaseInAppMessaging", isBeta: true, platforms: ["ios"]),
54+
Pod("FirebaseInAppMessaging", isBeta: true, platforms: ["ios"], zip: true),
5555
Pod(
5656
"FirebaseInAppMessagingSwift",
5757
isBeta: true,
5858
allowWarnings: true,
59-
platforms: ["ios"],
60-
zip: true
59+
platforms: ["ios"]
6160
),
6261
Pod("FirebaseMessaging", zip: true),
6362
Pod("FirebasePerformance", platforms: ["ios", "tvos"], zip: true),

ReleaseTooling/Sources/ZipBuilder/CarthageUtils.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ extension CarthageUtils {
107107

108108
// Analytics includes all the Core frameworks and Firebase module, do extra work to package
109109
// it.
110-
if product == "FirebaseAnalyticsSwift" {
110+
if product == "FirebaseAnalytics" {
111111
createFirebaseFramework(version: firebaseVersion,
112112
inDir: fullPath,
113113
rootDir: packagedDir,

ReleaseTooling/Sources/ZipBuilder/CocoaPodUtils.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,7 @@ enum CocoaPodUtils {
494494
podfile += " pod '\(pod.name)', :path => '\(localURL.path)'"
495495
} else if let podVersion = pod.version {
496496
// To support Firebase patch versions in the Firebase zip distribution, allow patch updates
497-
// for all pods except Firebase and FirebaseCore. The Firebase Swift pods are not yet in the
498-
// zip distribution.
497+
// for all pods except Firebase and FirebaseCore.
499498
var podfileVersion = podVersion
500499
if pod.name.starts(with: "Firebase"),
501500
!pod.name.hasSuffix("Swift"),

ReleaseTooling/Sources/ZipBuilder/ZipBuilder.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ struct ZipBuilder {
408408
do {
409409
// This returns the Analytics directory and a list of framework names that Analytics requires.
410410
/// Example: ["FirebaseInstallations, "GoogleAppMeasurement", "nanopb", <...>]
411-
let (dir, frameworks) = try installAndCopyFrameworks(forPod: "FirebaseAnalyticsSwift",
411+
let (dir, frameworks) = try installAndCopyFrameworks(forPod: "FirebaseAnalytics",
412412
inFolder: "FirebaseAnalytics",
413413
withInstalledPods: installedPods,
414414
rootZipDir: zipDir,
@@ -420,7 +420,7 @@ struct ZipBuilder {
420420
}
421421

422422
// Start the README dependencies string with the frameworks built in Analytics.
423-
var metadataDeps = dependencyString(for: "FirebaseAnalyticsSwift",
423+
var metadataDeps = dependencyString(for: "FirebaseAnalytics",
424424
in: analyticsDir,
425425
frameworks: analyticsFrameworks)
426426

@@ -437,7 +437,7 @@ struct ZipBuilder {
437437
$0.key == "Google-Mobile-Ads-SDK" ||
438438
$0.key == "GoogleSignIn" ||
439439
(firebaseZipPods.contains($0.key) &&
440-
$0.key != "FirebaseAnalyticsSwift" &&
440+
$0.key != "FirebaseAnalytics" &&
441441
$0.key != "Firebase" &&
442442
podsToInstall.map { $0.name }.contains($0.key))
443443
}.sorted { $0.key < $1.key }

ReleaseTooling/Template/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ To integrate a Firebase SDK with your app:
2727
> ⚠ To disable AdId support, do not copy
2828
> `GoogleAppMeasurementIdentitySupport.xcframework`.
2929
30-
> ⚠ If the app does not use any Firebase Swift specific APIs, you do not need
31-
> to copy any xcframeworks whose name includes `Swift` for this and the next
32-
> step.
33-
3430
6. Drag each framework from the directory named after the SDK into the Project
3531
Navigator pane. Note that there may be no additional frameworks, in which
3632
case this directory will be empty. For instance, if you want the Database

0 commit comments

Comments
 (0)