Skip to content

Commit c6328a0

Browse files
authored
Cherry-picks for M94 (#7913)
1 parent 05f796c commit c6328a0

File tree

26 files changed

+90
-36
lines changed

26 files changed

+90
-36
lines changed

Firebase/InstanceID/Public/FIRInstanceID.h

+9
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ NS_ASSUME_NONNULL_BEGIN
2424
*
2525
* The scope to be used when fetching/deleting a token for Firebase Messaging.
2626
*/
27+
// clang-format off
28+
// clang-format12 merges the next two lines.
2729
FOUNDATION_EXPORT NSString *const kFIRInstanceIDScopeFirebaseMessaging
2830
NS_SWIFT_NAME(InstanceIDScopeFirebaseMessaging) DEPRECATED_ATTRIBUTE;
31+
// clang-format on
2932

3033
#if defined(__IPHONE_10_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
3134
/**
@@ -36,8 +39,11 @@ FOUNDATION_EXPORT NSString *const kFIRInstanceIDScopeFirebaseMessaging
3639
* Instance ID service will throttle the refresh event across all devices
3740
* to control the rate of token updates on application servers.
3841
*/
42+
// clang-format off
43+
// clang-format12 merges the next two lines.
3944
FOUNDATION_EXPORT const NSNotificationName kFIRInstanceIDTokenRefreshNotification
4045
NS_SWIFT_NAME(InstanceIDTokenRefresh) DEPRECATED_ATTRIBUTE;
46+
// clang-format on
4147
#else
4248
/**
4349
* Called when the system determines that tokens need to be refreshed.
@@ -47,8 +53,11 @@ FOUNDATION_EXPORT const NSNotificationName kFIRInstanceIDTokenRefreshNotificatio
4753
* Instance ID service will throttle the refresh event across all devices
4854
* to control the rate of token updates on application servers.
4955
*/
56+
// clang-format off
57+
// clang-format12 merges the next two lines.
5058
FOUNDATION_EXPORT NSString *const kFIRInstanceIDTokenRefreshNotification
5159
NS_SWIFT_NAME(InstanceIDTokenRefreshNotification) DEPRECATED_ATTRIBUTE;
60+
// clang-format on
5261
#endif // defined(__IPHONE_10_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
5362

5463
/**

FirebaseABTesting/Sources/Public/FirebaseABTesting/FIRLifecycleEvents.h

+3
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@ NS_ASSUME_NONNULL_BEGIN
1919
/// Default event name for when an experiment is set.
2020
extern NSString *const FIRSetExperimentEventName NS_SWIFT_NAME(DefaultSetExperimentEventName);
2121
/// Default event name for when an experiment is activated.
22+
// clang-format off
23+
// clang-format12 will merge lines and exceed 100 character limit.
2224
extern NSString *const FIRActivateExperimentEventName
2325
NS_SWIFT_NAME(DefaultActivateExperimentEventName);
2426
/// Default event name for when an experiment is cleared.
2527
extern NSString *const FIRClearExperimentEventName NS_SWIFT_NAME(DefaultClearExperimentEventName);
2628
/// Default event name for when an experiment times out for being activated.
2729
extern NSString *const FIRTimeoutExperimentEventName
2830
NS_SWIFT_NAME(DefaultTimeoutExperimentEventName);
31+
// clang-format on
2932
/// Default event name for when an experiment is expired as it reaches the end of TTL.
3033
extern NSString *const FIRExpireExperimentEventName NS_SWIFT_NAME(DefaultExpireExperimentEventName);
3134

FirebaseAppDistribution/Sources/Public/FirebaseAppDistribution/FIRAppDistribution.h

+3
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,15 @@ NS_SWIFT_NAME(AppDistribution)
6363
@end
6464

6565
/// The error domain for codes in the `FIRAppDistributionError` enum.
66+
// clang-format off
67+
// clang-format12 will merge lines and exceed 100 character limit.
6668
FOUNDATION_EXPORT NSString *const FIRAppDistributionErrorDomain
6769
NS_SWIFT_NAME(AppDistributionErrorDomain);
6870

6971
/// The key for finding error details in the `NSError`'s `userInfo`.
7072
FOUNDATION_EXPORT NSString *const FIRAppDistributionErrorDetailsKey
7173
NS_SWIFT_NAME(FunctionsErrorDetailsKey);
74+
// clang-format on
7275

7376
/**
7477
* Error codes representing sign in or version check failure reasons.

FirebaseAuth/Sources/Public/FirebaseAuth/FIRAuth.h

+9
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ typedef void (^FIRUserUpdateCallback)(NSError *_Nullable error) NS_SWIFT_NAME(Us
4444
/** @typedef FIRAuthStateDidChangeListenerHandle
4545
@brief The type of handle returned by `FIRAuth.addAuthStateDidChangeListener:`.
4646
*/
47+
// clang-format off
48+
// clang-format12 merges the next two lines.
4749
typedef id<NSObject> FIRAuthStateDidChangeListenerHandle
4850
NS_SWIFT_NAME(AuthStateDidChangeListenerHandle);
51+
// clang-format on
4952

5053
/** @typedef FIRAuthStateDidChangeListenerBlock
5154
@brief The type of block which can be registered as a listener for auth state did change events.
@@ -59,8 +62,11 @@ typedef void (^FIRAuthStateDidChangeListenerBlock)(FIRAuth *auth, FIRUser *_Null
5962
/** @typedef FIRIDTokenDidChangeListenerHandle
6063
@brief The type of handle returned by `FIRAuth.addIDTokenDidChangeListener:`.
6164
*/
65+
// clang-format off
66+
// clang-format12 merges the next two lines.
6267
typedef id<NSObject> FIRIDTokenDidChangeListenerHandle
6368
NS_SWIFT_NAME(IDTokenDidChangeListenerHandle);
69+
// clang-format on
6470

6571
/** @typedef FIRIDTokenDidChangeListenerBlock
6672
@brief The type of block which can be registered as a listener for ID token did change events.
@@ -95,8 +101,11 @@ extern const NSNotificationName FIRAuthStateDidChangeNotification NS_SWIFT_NAME(
95101
changes (for example, a new token has been produced, a user signs in or signs out). The
96102
object parameter of the notification is the sender `FIRAuth` instance.
97103
*/
104+
// clang-format off
105+
// clang-format12 merges the next two lines.
98106
extern NSString *const FIRAuthStateDidChangeNotification
99107
NS_SWIFT_NAME(AuthStateDidChangeNotification);
108+
// clang-format off
100109
#endif // defined(__IPHONE_10_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
101110

102111
/** @typedef FIRAuthResultCallback

FirebaseAuth/Sources/Public/FirebaseAuth/FIRAuthErrors.h

+3
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ extern NSString *const FIRAuthErrorUserInfoEmailKey NS_SWIFT_NAME(AuthErrorUserI
6565
NSError object returned. This is the updated auth credential the developer should use for
6666
recovery if applicable.
6767
*/
68+
// clang-format off
69+
// clang-format12 will merge lines and exceed 100 character limit.
6870
extern NSString *const FIRAuthErrorUserInfoUpdatedCredentialKey
6971
NS_SWIFT_NAME(AuthErrorUserInfoUpdatedCredentialKey);
7072

@@ -74,6 +76,7 @@ extern NSString *const FIRAuthErrorUserInfoUpdatedCredentialKey
7476
*/
7577
extern NSString *const FIRAuthErrorUserInfoMultiFactorResolverKey
7678
NS_SWIFT_NAME(AuthErrorUserInfoMultiFactorResolverKey);
79+
// clang-format on
7780

7881
/**
7982
@brief Error codes used by Firebase Auth.

FirebaseAuth/Sources/Public/FirebaseAuth/FIREmailAuthProvider.h

+3
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@ extern NSString *const FIREmailLinkAuthSignInMethod NS_SWIFT_NAME(EmailLinkAuthS
3333
/**
3434
@brief A string constant identifying the email & password sign-in method.
3535
*/
36+
// clang-format off
37+
// clang-format12 merges the next two lines.
3638
extern NSString *const FIREmailPasswordAuthSignInMethod
3739
NS_SWIFT_NAME(EmailPasswordAuthSignInMethod);
40+
// clang-format on
3841

3942
/** @class FIREmailAuthProvider
4043
@brief A concrete implementation of `FIRAuthProvider` for Email & Password Sign In.

FirebaseAuth/Tests/Unit/FIRAuthAppCredentialManagerTests.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#import "FirebaseAuth/Sources/SystemService/FIRAuthAppCredential.h"
2525
#import "FirebaseAuth/Sources/SystemService/FIRAuthAppCredentialManager.h"
2626

27-
#define ANY_ERROR_POINTER ((NSError * __autoreleasing * _Nullable)[OCMArg anyPointer])
27+
#define ANY_ERROR_POINTER ((NSError * __autoreleasing *_Nullable)[OCMArg anyPointer])
2828
#define SAVE_TO(var) \
2929
[OCMArg checkWithBlock:^BOOL(id arg) { \
3030
var = arg; \

FirebaseDatabase/Sources/Api/Private/FTypedefs_Private.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ typedef NS_ENUM(NSInteger, FTransactionStatus) {
3838
typedef void (^fbt_void_nserror_bool_datasnapshot)(NSError *error,
3939
BOOL committed,
4040
FIRDataSnapshot *snapshot);
41-
typedef FIRTransactionResult * (^fbt_transactionresult_mutabledata)(
42-
FIRMutableData *currentData);
41+
typedef FIRTransactionResult * (
42+
^fbt_transactionresult_mutabledata)(FIRMutableData *currentData);
4343
typedef void (^fbt_void_path_node)(FPath *, id<FNode>);
4444
typedef void (^fbt_void_nsstring)(NSString *);
4545
typedef BOOL (^fbt_bool_nsstring_node)(NSString *, id<FNode>);

FirebaseDatabase/Sources/Core/FWriteTree.m

+8-8
Original file line numberDiff line numberDiff line change
@@ -256,14 +256,14 @@ - (NSArray *)removeAllWrites {
256256
return nil;
257257
} else {
258258
BOOL (^filter)(FWriteRecord *) = ^(FWriteRecord *record) {
259-
return (BOOL)(
260-
(record.visible || includeHiddenWrites) &&
261-
(writeIdsToExclude == nil ||
262-
![writeIdsToExclude
263-
containsObject:
264-
[NSNumber numberWithInteger:record.writeId]]) &&
265-
([record.path contains:treePath] ||
266-
[treePath contains:record.path]));
259+
return (BOOL)((record.visible || includeHiddenWrites) &&
260+
(writeIdsToExclude == nil ||
261+
![writeIdsToExclude
262+
containsObject:[NSNumber
263+
numberWithInteger:
264+
record.writeId]]) &&
265+
([record.path contains:treePath] ||
266+
[treePath contains:record.path]));
267267
};
268268
FCompoundWrite *mergeAtPath =
269269
[FWriteTree layerTreeFromWrites:self.allWrites

FirebaseDatabase/Tests/Integration/FIRDatabaseTests.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ @interface FIRDatabaseTests : FTestBase
3737
@implementation FIRDatabaseTests
3838

3939
- (void)testFIRDatabaseForNilApp {
40-
XCTAssertThrowsSpecificNamed([FIRDatabase databaseForApp:(FIRApp * _Nonnull) nil], NSException,
40+
XCTAssertThrowsSpecificNamed([FIRDatabase databaseForApp:(FIRApp *_Nonnull)nil], NSException,
4141
@"InvalidFIRApp");
4242
}
4343

@@ -92,7 +92,7 @@ - (void)testDifferentInstanceForAppWithURL {
9292
- (void)testDatabaseForAppWithInvalidCustomURLs {
9393
id app = [[FIRFakeApp alloc] initWithName:@"testDatabaseForAppWithInvalidCustomURLs"
9494
URL:kFirebaseTestAltNamespace];
95-
XCTAssertThrows([FIRDatabase databaseForApp:app URL:(NSString * _Nonnull) nil]);
95+
XCTAssertThrows([FIRDatabase databaseForApp:app URL:(NSString *_Nonnull)nil]);
9696
XCTAssertThrows([FIRDatabase databaseForApp:app URL:@"not-a-url"]);
9797
XCTAssertThrows([FIRDatabase databaseForApp:app URL:@"http://x.fblocal.com:9000/paths/are/bad"]);
9898
}

FirebaseInAppMessaging.podspec

+1-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ See more product details at https://firebase.google.com/products/in-app-messagin
6363

6464
s.ios.resource_bundles = {
6565
'InAppMessagingDisplayResources' => [
66-
base_dir + 'iOS/Resources/FIRInAppMessageDisplayStoryboard.storyboard',
67-
base_dir + 'Sources/Resources/Shared/*.png'
66+
base_dir + 'iOS/Resources/*.{storyboard,png}',
6867
]
6968
}
7069

FirebaseInstallations/Source/Library/Public/FirebaseInstallations/FIRInstallations.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@
2222
NS_ASSUME_NONNULL_BEGIN
2323

2424
/** A notification with this name is sent each time an installation is created or deleted. */
25+
// clang-format off
26+
// clang-format12 merges the next two lines.
2527
FOUNDATION_EXPORT const NSNotificationName FIRInstallationIDDidChangeNotification
2628
NS_SWIFT_NAME(InstallationIDDidChange);
2729
/** `userInfo` key for the `FirebaseApp.name` in `FIRInstallationIDDidChangeNotification`. */
2830
FOUNDATION_EXPORT NSString *const kFIRInstallationIDDidChangeNotificationAppNameKey
2931
NS_SWIFT_NAME(InstallationIDDidChangeAppNameKey);
32+
// clang-format on
3033

3134
/**
3235
* An installation ID handler block.
@@ -73,7 +76,8 @@ NS_SWIFT_NAME(Installations)
7376
* @returns An instance of `Installations` corresponding to the passed application.
7477
* @throw Throws an exception if required `FirebaseApp` options are missing.
7578
*/
76-
+ (FIRInstallations *)installationsWithApp:(FIRApp *)application NS_SWIFT_NAME(installations(app:));
79+
+ (FIRInstallations *)installationsWithApp:(FIRApp *)application
80+
NS_SWIFT_NAME(installations(app:));
7781

7882
/**
7983
* The method creates or retrieves an installation ID. The installation ID is a stable identifier

FirebaseMessaging/Sources/Public/FirebaseMessaging/FIRMessaging.h

+3
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ typedef void (^FIRMessagingTopicOperationCompletion)(NSError *_Nullable error);
6161
* FIRMessaging delegate method `messaging:didReceiveRegistrationToken:` to receive current and
6262
* updated tokens.
6363
*/
64+
// clang-format off
65+
// clang-format12 merges the next two lines.
6466
FOUNDATION_EXPORT const NSNotificationName FIRMessagingRegistrationTokenRefreshedNotification
6567
NS_SWIFT_NAME(MessagingRegistrationTokenRefreshed);
68+
// clang-format on
6669

6770
/**
6871
* @enum FIRMessagingError

FirebasePerformance/Sources/Public/FIRHTTPMetric.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
#import "FIRPerformanceAttributable.h"
1818

19+
// clang-format off
20+
// clang-format12 does a weird cascading indent of this enum.
1921
/* Different HTTP methods. */
2022
typedef NS_ENUM(NSInteger, FIRHTTPMethod) {
2123
/** HTTP Method GET */
@@ -37,6 +39,7 @@ typedef NS_ENUM(NSInteger, FIRHTTPMethod) {
3739
/** HTTP Method CONNECT */
3840
FIRHTTPMethodCONNECT NS_SWIFT_NAME(connect)
3941
} NS_SWIFT_NAME(HTTPMethod);
42+
// clang-format on
4043

4144
/**
4245
* FIRHTTPMetric object can be used to make the SDK record information about a HTTP network request.
@@ -50,7 +53,8 @@ NS_SWIFT_NAME(HTTPMetric)
5053
* @param httpMethod HTTP method used by the request.
5154
*/
5255
- (nullable instancetype)initWithURL:(nonnull NSURL *)URL
53-
HTTPMethod:(FIRHTTPMethod)httpMethod NS_SWIFT_NAME(init(url:httpMethod:));
56+
HTTPMethod:(FIRHTTPMethod)httpMethod
57+
NS_SWIFT_NAME(init(url:httpMethod:));
5458

5559
/**
5660
* Use `initWithURL:HTTPMethod:` for Objective-C and `init(url:httpMethod:)` for Swift.

FirebasePerformance/Sources/Public/FIRPerformance.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ NS_SWIFT_NAME(Performance)
6262
* @param name The name of the Trace.
6363
* @return The FIRTrace object.
6464
*/
65-
+ (nullable FIRTrace *)startTraceWithName:(nonnull NSString *)name NS_SWIFT_NAME(startTrace(name:));
65+
+ (nullable FIRTrace *)startTraceWithName:(nonnull NSString *)name
66+
NS_SWIFT_NAME(startTrace(name:));
6667

6768
/**
6869
* Creates an instance of FIRTrace. This API does not start the trace. To start the trace, use the

FirebasePerformance/Tests/Unit/Instruments/FPRNSURLSessionInstrumentTest.m

+7-7
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,13 @@ - (void)testProxyWrappedSharedSession {
227227
- (void)testProxyWrappedSessionWithConfiguration {
228228
Method method = class_getClassMethod([NSURLSession class], @selector(sessionWithConfiguration:));
229229
IMP originalImp = method_getImplementation(method);
230-
IMP swizzledImp =
231-
imp_implementationWithBlock(^(id session, NSURLSessionConfiguration *configuration) {
232-
typedef NSURLSession *(*OriginalImp)(id, SEL, NSURLSessionConfiguration *);
233-
NSURLSession *originalSession = ((OriginalImp)originalImp)(
234-
session, @selector(sessionWithConfiguration:), configuration);
235-
return [[FPRNSURLSessionProxy alloc] initWithSession:originalSession];
236-
});
230+
IMP swizzledImp = imp_implementationWithBlock(^(id session,
231+
NSURLSessionConfiguration *configuration) {
232+
typedef NSURLSession *(*OriginalImp)(id, SEL, NSURLSessionConfiguration *);
233+
NSURLSession *originalSession =
234+
((OriginalImp)originalImp)(session, @selector(sessionWithConfiguration:), configuration);
235+
return [[FPRNSURLSessionProxy alloc] initWithSession:originalSession];
236+
});
237237
method_setImplementation(method, swizzledImp);
238238
NSURLSessionConfiguration *config = [NSURLSessionConfiguration defaultSessionConfiguration];
239239
XCTAssertEqual([[NSURLSession sessionWithConfiguration:config] class],

Firestore/Source/Public/FirebaseFirestore/FIRFirestore.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,8 @@ NS_SWIFT_NAME(Firestore)
292292
* @return A `FIRLoadBundleTask` (`LoadBundleTask` in Swift) which allows registered observers
293293
* to receive progress updates and completion or error events.
294294
*/
295-
- (FIRLoadBundleTask *)loadBundleStream:(NSInputStream *)bundleStream NS_SWIFT_NAME(loadBundle(_:));
295+
- (FIRLoadBundleTask *)loadBundleStream:(NSInputStream *)bundleStream
296+
NS_SWIFT_NAME(loadBundle(_:));
296297

297298
/**
298299
* Loads a Firestore bundle into the local cache.

Firestore/Source/Public/FirebaseFirestore/FIRFirestoreSettings.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
NS_ASSUME_NONNULL_BEGIN
2020

2121
/** Used to set on-disk cache size to unlimited. Garbage collection will not run. */
22-
FOUNDATION_EXTERN const int64_t kFIRFirestoreCacheSizeUnlimited
23-
NS_SWIFT_NAME(FirestoreCacheSizeUnlimited);
22+
FOUNDATION_EXTERN const int64_t
23+
kFIRFirestoreCacheSizeUnlimited NS_SWIFT_NAME(FirestoreCacheSizeUnlimited);
2424

2525
/** Settings used to configure a `FIRFirestore` instance. */
2626
NS_SWIFT_NAME(FirestoreSettings)

Firestore/Source/Public/FirebaseFirestore/FIRQuery.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,8 @@ NS_SWIFT_NAME(Query)
283283
* @return The created `FIRQuery`.
284284
*/
285285
- (FIRQuery *)queryWhereField:(NSString *)field
286-
arrayContainsAny:(NSArray<id> *)values NS_SWIFT_NAME(whereField(_:arrayContainsAny:));
286+
arrayContainsAny:(NSArray<id> *)values
287+
NS_SWIFT_NAME(whereField(_:arrayContainsAny:));
287288

288289
/**
289290
* Creates and returns a new `FIRQuery` with the additional filter that documents must contain
@@ -525,7 +526,8 @@ NS_SWIFT_NAME(Query)
525526
*
526527
* @return The created `FIRQuery`.
527528
*/
528-
- (FIRQuery *)queryEndingAtDocument:(FIRDocumentSnapshot *)document NS_SWIFT_NAME(end(atDocument:));
529+
- (FIRQuery *)queryEndingAtDocument:(FIRDocumentSnapshot *)document
530+
NS_SWIFT_NAME(end(atDocument:));
529531

530532
/**
531533
* Creates and returns a new `FIRQuery` that ends at the provided fields relative to the order of

Firestore/core/src/util/error_apple.h

+3
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@ NS_ASSUME_NONNULL_BEGIN
3434
// The Cloud Firestore error domain. Keep in sync with FIRFirestoreErrors.h.
3535
// Exposed here to make it possible to build in CMake without bringing in the
3636
// sources under Firestore/Source.
37+
// clang-format off
38+
// clang-format12 merges the next two lines.
3739
FOUNDATION_EXPORT NSString* const FIRFirestoreErrorDomain
3840
NS_SWIFT_NAME(FirestoreErrorDomain);
41+
// clang-format on
3942

4043
namespace firebase {
4144
namespace firestore {

Functions/FirebaseFunctions/Public/FirebaseFunctions/FIRError.h

+3
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ NS_ASSUME_NONNULL_BEGIN
2020
FOUNDATION_EXPORT NSString *const FIRFunctionsErrorDomain NS_SWIFT_NAME(FunctionsErrorDomain);
2121

2222
// The key for finding error details in the NSError userInfo.
23+
// clang-format off
24+
// clang-format12 merges the next two lines.
2325
FOUNDATION_EXPORT NSString *const FIRFunctionsErrorDetailsKey
2426
NS_SWIFT_NAME(FunctionsErrorDetailsKey);
27+
// clang-format on
2528

2629
/**
2730
* The set of error status codes that can be returned from a Callable HTTPS tigger. These are the

Interop/Analytics/Public/FIRInteropParameterNames.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static NSString *const kFIRIParameterMedium NS_SWIFT_NAME(AnalyticsParameterMedi
5252
/// };
5353
/// </pre>
5454
static NSString *const kFIRIParameterCampaign NS_SWIFT_NAME(AnalyticsParameterCampaign) =
55-
@"campaign";
55+
@"campaign";
5656

5757
/// Message identifier.
5858
static NSString *const kFIRIParameterMessageIdentifier = @"_nmid";

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ GitHub Actions will verify that any code changes are done in a style compliant
169169
way. Install `clang-format` and `mint`:
170170

171171
```console
172-
brew install clang-format@11
172+
brew install clang-format@12
173173
brew install mint
174174
```
175175

ReleaseTooling/Sources/ZipBuilder/ZipBuilder.swift

+5-1
Original file line numberDiff line numberDiff line change
@@ -626,9 +626,13 @@ struct ZipBuilder {
626626
frameworks: [String]) {
627627
let podsToCopy = [podName] +
628628
CocoaPodUtils.transitiveMasterPodDependencies(for: podName, in: installedPods)
629+
// Remove any duplicates from the `podsToCopy` array. The easiest way to do this is to wrap it
630+
// in a set then back to an array.
631+
let dedupedPods = Array(Set(podsToCopy))
632+
629633
// Copy the frameworks into the proper product directory.
630634
let productDir = rootZipDir.appendingPathComponent(podName)
631-
let namedFrameworks = try copyFrameworks(fromPods: podsToCopy,
635+
let namedFrameworks = try copyFrameworks(fromPods: dedupedPods,
632636
toDirectory: productDir,
633637
frameworkLocations: builtFrameworks,
634638
podsToIgnore: podsToIgnore)

0 commit comments

Comments
 (0)