Skip to content

Commit 33a5c20

Browse files
Fix Xcode 13 beta 4 build issues for Firebase Performance (#8516)
* Fix Xcode 13 beta 4 build issues * Update to NS_EXTENSION_UNAVAILABLE instead of NS_EXTENSION_UNAVAILABLE_IOS
1 parent ec193d0 commit 33a5c20

33 files changed

+72
-3
lines changed

FirebasePerformance/Sources/AppActivity/FPRAppActivityTracker.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ typedef NS_ENUM(NSInteger, FPRApplicationState) {
3838
/** This class is used to track the app activity and create internal traces to capture the
3939
* performance metrics.
4040
*/
41+
NS_EXTENSION_UNAVAILABLE("Firebase Performance is not supported for extensions.")
4142
@interface FPRAppActivityTracker : NSObject
4243

4344
/** The trace that tracks the currently active session of the app. *Do not stop this trace*. This is

FirebasePerformance/Sources/AppActivity/FPRScreenTraceTracker.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ NS_ASSUME_NONNULL_BEGIN
2020
* frames and slow frames, and if it has been registered as a delegate of FIRAScreenViewReporter,
2121
* it also automatically creates screen traces for each UIViewController.
2222
*/
23+
NS_EXTENSION_UNAVAILABLE("Firebase Performance is not supported for extensions.")
2324
@interface FPRScreenTraceTracker : NSObject
2425

2526
/** Singleton instance of FPRScreenTraceTracker.

FirebasePerformance/Sources/AppActivity/FPRSessionManager.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ FOUNDATION_EXTERN NSString *_Nonnull const kFPRSessionIdUpdatedNotification;
2222
/** This class manages the current active sessionId of the application and provides mechanism for
2323
* propagating the session Id.
2424
*/
25+
NS_EXTENSION_UNAVAILABLE("Firebase Performance is not supported for extensions.")
2526
@interface FPRSessionManager : NSObject
2627

2728
/** The current active session managed by the session manager. */

FirebasePerformance/Sources/AppActivity/FPRTraceBackgroundActivityTracker.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ typedef NS_ENUM(NSInteger, FPRTraceState) {
3333
* object. This object will be used by a trace to determine its application state if the lifecycle
3434
* of the trace is backgrounded, foregrounded or both.
3535
*/
36+
NS_EXTENSION_UNAVAILABLE("Firebase Performance is not supported for extensions.")
3637
@interface FPRTraceBackgroundActivityTracker : NSObject
3738

3839
/** Background state of the tracker. */

FirebasePerformance/Sources/FPRClient.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ typedef NS_ENUM(NSInteger, FPRClientErrorCode) {
3030
/** This class is not exposed to the public and internally provides the primary entry point into
3131
* the Firebase Performance module's functionality.
3232
*/
33+
NS_EXTENSION_UNAVAILABLE("Firebase Performance is not supported for extensions.")
3334
@interface FPRClient : NSObject
3435

3536
/** YES if SDK is configured, otherwise NO. */

FirebasePerformance/Sources/FPRNanoPbUtils.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,21 +107,25 @@ extern StringToNumberMap* _Nullable FPREncodeStringToNumberMap(NSDictionary* _Nu
107107
* @param appID The Google app id to put into the message
108108
* @return A firebase_perf_v1_PerfMetric struct.
109109
*/
110+
NS_EXTENSION_UNAVAILABLE("Firebase Performance is not supported for extensions.")
110111
extern firebase_perf_v1_PerfMetric FPRGetPerfMetricMessage(NSString* _Nonnull appID);
111112

112113
/** Creates a new firebase_perf_v1_ApplicationInfo struct populated with system metadata.
113114
* @return A firebase_perf_v1_ApplicationInfo struct.
114115
*/
116+
NS_EXTENSION_UNAVAILABLE("Firebase Performance is not supported for extensions.")
115117
extern firebase_perf_v1_ApplicationInfo FPRGetApplicationInfoMessage(void);
116118

117119
/** Converts the FIRTrace object to a firebase_perf_v1_TraceMetric struct.
118120
* @return A firebase_perf_v1_TraceMetric struct.
119121
*/
122+
NS_EXTENSION_UNAVAILABLE("Firebase Performance is not supported for extensions.")
120123
extern firebase_perf_v1_TraceMetric FPRGetTraceMetric(FIRTrace* _Nonnull trace);
121124

122125
/** Converts the FPRNetworkTrace object to a firebase_perf_v1_NetworkRequestMetric struct.
123126
* @return A firebase_perf_v1_NetworkRequestMetric struct.
124127
*/
128+
NS_EXTENSION_UNAVAILABLE("Firebase Performance is not supported for extensions.")
125129
extern firebase_perf_v1_NetworkRequestMetric FPRGetNetworkRequestMetric(
126130
FPRNetworkTrace* _Nonnull trace);
127131

FirebasePerformance/Sources/Gauges/CPU/FPRCPUGaugeCollector.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ NS_ASSUME_NONNULL_BEGIN
2323
@class FPRCPUGaugeCollector;
2424

2525
/** Delegate method for the CPU Gauge collector to report back the CPU gauge data. */
26+
NS_EXTENSION_UNAVAILABLE("Firebase Performance is not supported for extensions.")
2627
@protocol FPRCPUGaugeCollectorDelegate
2728

2829
/**
@@ -38,6 +39,7 @@ NS_ASSUME_NONNULL_BEGIN
3839
/** CPU Gauge collector implementation. This class collects the CPU utilitization and reports back
3940
* to the delegate.
4041
*/
42+
NS_EXTENSION_UNAVAILABLE("Firebase Performance is not supported for extensions.")
4143
@interface FPRCPUGaugeCollector : NSObject <FPRGaugeCollector>
4244

4345
/** Reference to the delegate object. */

FirebasePerformance/Sources/Gauges/FPRGaugeManager+Private.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#import "FirebasePerformance/Sources/Gauges/Memory/FPRMemoryGaugeCollector.h"
1919

2020
/** This extension should only be used for testing. */
21+
NS_EXTENSION_UNAVAILABLE("Firebase Performance is not supported for extensions.")
2122
@interface FPRGaugeManager ()
2223

2324
/** @brief Tracks if gauge collection is enabled. */

FirebasePerformance/Sources/Gauges/FPRGaugeManager.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ typedef NS_OPTIONS(NSUInteger, FPRGauges) {
2727

2828
/** This class controls different gauge collection in the system. List of the gauges this class
2929
manages are listed above. */
30+
NS_EXTENSION_UNAVAILABLE("Firebase Performance is not supported for extensions.")
3031
@interface FPRGaugeManager : NSObject
3132

3233
/** @brief List of gauges that are currently being actively captured. */

FirebasePerformance/Sources/Gauges/FPRGaugeManager.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
// Number of gauge data information after which that gets flushed to Google Data Transport.
2727
NSInteger const kGaugeDataBatchSize = 25;
2828

29+
NS_EXTENSION_UNAVAILABLE("Firebase Performance is not supported for extensions.")
2930
@interface FPRGaugeManager () <FPRCPUGaugeCollectorDelegate, FPRMemoryGaugeCollectorDelegate>
3031

3132
/** @brief List of gauges that are currently being actively captured. */

0 commit comments

Comments
 (0)