-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7eb9627
commit b880051
Showing
13 changed files
with
132 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,4 @@ nbproject | |
/metadata.json | ||
/ios/metadata.json | ||
ios/firebase.performance-iphone-*.zip | ||
/ios/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+428 KB
(100%)
ios/platform/FirebasePerformance.framework/FirebasePerformance
Binary file not shown.
68 changes: 68 additions & 0 deletions
68
ios/platform/FirebasePerformance.framework/Headers/FIRHTTPMetric.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
#import "FIRPerformanceAttributable.h" | ||
|
||
/* Different HTTP methods. */ | ||
typedef NS_ENUM(NSInteger, FIRHTTPMethod) { | ||
FIRHTTPMethodGET NS_SWIFT_NAME(get), | ||
FIRHTTPMethodPUT NS_SWIFT_NAME(put), | ||
FIRHTTPMethodPOST NS_SWIFT_NAME(post), | ||
FIRHTTPMethodDELETE NS_SWIFT_NAME(delete), | ||
FIRHTTPMethodHEAD NS_SWIFT_NAME(head), | ||
FIRHTTPMethodPATCH NS_SWIFT_NAME(patch), | ||
FIRHTTPMethodOPTIONS NS_SWIFT_NAME(options), | ||
FIRHTTPMethodTRACE NS_SWIFT_NAME(trace), | ||
FIRHTTPMethodCONNECT NS_SWIFT_NAME(connect) | ||
} NS_SWIFT_NAME(HTTPMethod); | ||
|
||
/** | ||
* FIRHTTPMetric object can be used to make the SDK record information about a HTTP network request. | ||
*/ | ||
NS_SWIFT_NAME(HTTPMetric) | ||
@interface FIRHTTPMetric : NSObject <FIRPerformanceAttributable> | ||
|
||
/** | ||
* Creates HTTPMetric object for a network request. | ||
* @param URL The URL for which the metrics are recorded. | ||
* @param httpMethod HTTP method used by the request. | ||
*/ | ||
- (nullable instancetype)initWithURL:(nonnull NSURL *)URL HTTPMethod:(FIRHTTPMethod)httpMethod | ||
NS_SWIFT_NAME(init(url:httpMethod:)); | ||
|
||
/** | ||
* Use `initWithURL:HTTPMethod:` for Objective-C and `init(url:httpMethod:)` for Swift. | ||
*/ | ||
- (nonnull instancetype)init NS_UNAVAILABLE; | ||
|
||
/** | ||
* @brief HTTP Response code. Values are greater than 0. | ||
*/ | ||
@property(nonatomic, assign) NSInteger responseCode; | ||
|
||
/** | ||
* @brief Size of the request payload. | ||
*/ | ||
@property(nonatomic, assign) long requestPayloadSize; | ||
|
||
/** | ||
* @brief Size of the response payload. | ||
*/ | ||
@property(nonatomic, assign) long responsePayloadSize; | ||
|
||
/** | ||
* @brief HTTP Response content type. | ||
*/ | ||
@property(nonatomic, nullable, copy) NSString *responseContentType; | ||
|
||
/** | ||
* Marks the start time of the request. | ||
*/ | ||
- (void)start; | ||
|
||
/** | ||
* Marks the end time of the response and queues the network request metric on the device for | ||
* transmission. Check the logs if the metric is valid. | ||
*/ | ||
- (void)stop; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
ios/platform/FirebasePerformance.framework/Headers/FIRPerformanceAttributable.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
/** Defines the interface that allows adding/removing attributes to any object. | ||
*/ | ||
NS_SWIFT_NAME(PerformanceAttributable) | ||
@protocol FIRPerformanceAttributable <NSObject> | ||
|
||
/** List of attributes. */ | ||
@property(nonatomic, nonnull, readonly) NSDictionary<NSString *, NSString *> *attributes; | ||
|
||
/** | ||
* Sets a value as a string for the specified attribute. Updates the value of the attribute if a | ||
* value had already existed. | ||
* | ||
* @param value The value that needs to be set/updated for an attribute. If the length of the value | ||
* exceeds the maximum allowed, the value will be truncated to the maximum allowed. | ||
* @param attribute The name of the attribute. If the length of the value exceeds the maximum | ||
* allowed, the value will be truncated to the maximum allowed. | ||
*/ | ||
- (void)setValue:(nonnull NSString *)value forAttribute:(nonnull NSString *)attribute; | ||
|
||
/** | ||
* Reads the value for the specified attribute. If the attribute does not exist, returns nil. | ||
* | ||
* @param attribute The name of the attribute. | ||
* @return The value for the attribute. Returns nil if the attribute does not exist. | ||
*/ | ||
- (nullable NSString *)valueForAttribute:(nonnull NSString *)attribute; | ||
|
||
/** | ||
* Removes an attribute from the list. Does nothing if the attribute does not exist. | ||
* | ||
* @param attribute The name of the attribute. | ||
*/ | ||
- (void)removeAttribute:(nonnull NSString *)attribute; | ||
|
||
@end | ||
|
14 changes: 0 additions & 14 deletions
14
ios/platform/FirebasePerformance.framework/Headers/FIRPerformanceSwiftNameSupport.h
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
ios/platform/FirebasePerformance.framework/Headers/FirebasePerformance.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#import "FIRHTTPMetric.h" | ||
#import "FIRPerformance.h" | ||
#import "FIRPerformanceSwiftNameSupport.h" | ||
#import "FIRPerformanceAttributable.h" | ||
#import "FIRTrace.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+473 KB
ios/platform/FirebaseSwizzlingUtilities.framework/FirebaseSwizzlingUtilities
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
ios/platform/FirebaseSwizzlingUtilities.framework/Modules/module.modulemap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
framework module FirebaseSwizzlingUtilities { | ||
export * | ||
module * { export *} | ||
link "c++"} |