-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ios): update Firebase Analytics to 8.10.0
- Loading branch information
1 parent
6dcedaf
commit 7d498c0
Showing
193 changed files
with
6,857 additions
and
2,473 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
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
+416 Bytes
(100%)
...rebaseAnalytics.xcframework/ios-arm64_armv7/FirebaseAnalytics.framework/FirebaseAnalytics
Binary file not shown.
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
+0 Bytes
(100%)
...xcframework/ios-arm64_i386_x86_64-simulator/FirebaseAnalytics.framework/FirebaseAnalytics
Binary file not shown.
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
+234 KB
...cs.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseAnalytics.framework/FirebaseAnalytics
Binary file not shown.
62 changes: 62 additions & 0 deletions
62
...s-arm64_x86_64-maccatalyst/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.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,62 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
#import "FIRAnalytics.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** | ||
* Provides App Delegate handlers to be used in your App Delegate. | ||
* | ||
* To save time integrating Firebase Analytics in an application, Firebase Analytics does not | ||
* require delegation implementation from the AppDelegate. Instead this is automatically done by | ||
* Firebase Analytics. Should you choose instead to delegate manually, you can turn off the App | ||
* Delegate Proxy by adding FirebaseAppDelegateProxyEnabled into your app's Info.plist and setting | ||
* it to NO, and adding the methods in this category to corresponding delegation handlers. | ||
* | ||
* To handle Universal Links, you must return YES in | ||
* [UIApplicationDelegate application:didFinishLaunchingWithOptions:]. | ||
*/ | ||
@interface FIRAnalytics (AppDelegate) | ||
|
||
/** | ||
* Handles events related to a URL session that are waiting to be processed. | ||
* | ||
* For optimal use of Firebase Analytics, call this method from the | ||
* [UIApplicationDelegate application:handleEventsForBackgroundURLSession:completionHandler] | ||
* method of the app delegate in your app. | ||
* | ||
* @param identifier The identifier of the URL session requiring attention. | ||
* @param completionHandler The completion handler to call when you finish processing the events. | ||
* Calling this completion handler lets the system know that your app's user interface is | ||
* updated and a new snapshot can be taken. | ||
*/ | ||
+ (void)handleEventsForBackgroundURLSession:(NSString *)identifier | ||
completionHandler:(nullable void (^)(void))completionHandler; | ||
|
||
/** | ||
* Handles the event when the app is launched by a URL. | ||
* | ||
* Call this method from [UIApplicationDelegate application:openURL:options:] (on iOS 9.0 and | ||
* above), or [UIApplicationDelegate application:openURL:sourceApplication:annotation:] (on | ||
* iOS 8.x and below) in your app. | ||
* | ||
* @param url The URL resource to open. This resource can be a network resource or a file. | ||
*/ | ||
+ (void)handleOpenURL:(NSURL *)url; | ||
|
||
/** | ||
* Handles the event when the app receives data associated with user activity that includes a | ||
* Universal Link (on iOS 9.0 and above). | ||
* | ||
* Call this method from [UIApplication continueUserActivity:restorationHandler:] in your app | ||
* delegate (on iOS 9.0 and above). | ||
* | ||
* @param userActivity The activity object containing the data associated with the task the user | ||
* was performing. | ||
*/ | ||
+ (void)handleUserActivity:(id)userActivity; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END | ||
|
33 changes: 33 additions & 0 deletions
33
...k/ios-arm64_x86_64-maccatalyst/FirebaseAnalytics.framework/Headers/FIRAnalytics+Consent.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,33 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
#import "FIRAnalytics.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/// The type of consent to set. Supported consent types are `ConsentType.adStorage` and | ||
/// `ConsentType.analyticsStorage`. Omitting a type retains its previous status. | ||
typedef NSString *FIRConsentType NS_TYPED_ENUM NS_SWIFT_NAME(ConsentType); | ||
extern FIRConsentType const FIRConsentTypeAdStorage; | ||
extern FIRConsentType const FIRConsentTypeAnalyticsStorage; | ||
|
||
/// The status value of the consent type. Supported statuses are `ConsentStatus.granted` and | ||
/// `ConsentStatus.denied`. | ||
typedef NSString *FIRConsentStatus NS_TYPED_ENUM NS_SWIFT_NAME(ConsentStatus); | ||
extern FIRConsentStatus const FIRConsentStatusDenied; | ||
extern FIRConsentStatus const FIRConsentStatusGranted; | ||
|
||
/// Sets the applicable end user consent state. | ||
@interface FIRAnalytics (Consent) | ||
|
||
/// Sets the applicable end user consent state (e.g. for device identifiers) for this app on this | ||
/// device. Use the consent settings to specify individual consent type values. Settings are | ||
/// persisted across app sessions. By default consent types are set to `ConsentStatus.granted`. | ||
/// | ||
/// @param consentSettings An NSDictionary of consent types. Supported consent type keys are | ||
/// `ConsentType.adStorage` and `ConsentType.analyticsStorage`. Valid values are | ||
/// `ConsentStatus.granted` and `ConsentStatus.denied`. | ||
+ (void)setConsent:(NSDictionary<FIRConsentType, FIRConsentStatus> *)consentSettings; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
142 changes: 142 additions & 0 deletions
142
...framework/ios-arm64_x86_64-maccatalyst/FirebaseAnalytics.framework/Headers/FIRAnalytics.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,142 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
#import "FIREventNames.h" | ||
#import "FIRParameterNames.h" | ||
#import "FIRUserPropertyNames.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/// The top level Firebase Analytics singleton that provides methods for logging events and setting | ||
/// user properties. See <a href="http://goo.gl/gz8SLz">the developer guides</a> for general | ||
/// information on using Firebase Analytics in your apps. | ||
/// | ||
/// @note The Analytics SDK uses SQLite to persist events and other app-specific data. Calling | ||
/// certain thread-unsafe global SQLite methods like `sqlite3_shutdown()` can result in | ||
/// unexpected crashes at runtime. | ||
NS_SWIFT_NAME(Analytics) | ||
@interface FIRAnalytics : NSObject | ||
|
||
/// Logs an app event. The event can have up to 25 parameters. Events with the same name must have | ||
/// the same parameters. Up to 500 event names are supported. Using predefined events and/or | ||
/// parameters is recommended for optimal reporting. | ||
/// | ||
/// The following event names are reserved and cannot be used: | ||
/// <ul> | ||
/// <li>ad_activeview</li> | ||
/// <li>ad_click</li> | ||
/// <li>ad_exposure</li> | ||
/// <li>ad_query</li> | ||
/// <li>ad_reward</li> | ||
/// <li>adunit_exposure</li> | ||
/// <li>app_background</li> | ||
/// <li>app_clear_data</li> | ||
/// <li>app_exception</li> | ||
/// <li>app_remove</li> | ||
/// <li>app_store_refund</li> | ||
/// <li>app_store_subscription_cancel</li> | ||
/// <li>app_store_subscription_convert</li> | ||
/// <li>app_store_subscription_renew</li> | ||
/// <li>app_update</li> | ||
/// <li>app_upgrade</li> | ||
/// <li>dynamic_link_app_open</li> | ||
/// <li>dynamic_link_app_update</li> | ||
/// <li>dynamic_link_first_open</li> | ||
/// <li>error</li> | ||
/// <li>firebase_campaign</li> | ||
/// <li>first_open</li> | ||
/// <li>first_visit</li> | ||
/// <li>in_app_purchase</li> | ||
/// <li>notification_dismiss</li> | ||
/// <li>notification_foreground</li> | ||
/// <li>notification_open</li> | ||
/// <li>notification_receive</li> | ||
/// <li>os_update</li> | ||
/// <li>session_start</li> | ||
/// <li>session_start_with_rollout</li> | ||
/// <li>user_engagement</li> | ||
/// </ul> | ||
/// | ||
/// @param name The name of the event. Should contain 1 to 40 alphanumeric characters or | ||
/// underscores. The name must start with an alphabetic character. Some event names are | ||
/// reserved. See FIREventNames.h for the list of reserved event names. The "firebase_", | ||
/// "google_", and "ga_" prefixes are reserved and should not be used. Note that event names are | ||
/// case-sensitive and that logging two events whose names differ only in case will result in | ||
/// two distinct events. To manually log screen view events, use the `screen_view` event name. | ||
/// @param parameters The dictionary of event parameters. Passing nil indicates that the event has | ||
/// no parameters. Parameter names can be up to 40 characters long and must start with an | ||
/// alphabetic character and contain only alphanumeric characters and underscores. Only NSString | ||
/// and NSNumber (signed 64-bit integer and 64-bit floating-point number) parameter types are | ||
/// supported. NSString parameter values can be up to 100 characters long. The "firebase_", | ||
/// "google_", and "ga_" prefixes are reserved and should not be used for parameter names. | ||
+ (void)logEventWithName:(NSString *)name | ||
parameters:(nullable NSDictionary<NSString *, id> *)parameters | ||
NS_SWIFT_NAME(logEvent(_:parameters:)); | ||
|
||
/// Sets a user property to a given value. Up to 25 user property names are supported. Once set, | ||
/// user property values persist throughout the app lifecycle and across sessions. | ||
/// | ||
/// The following user property names are reserved and cannot be used: | ||
/// <ul> | ||
/// <li>first_open_time</li> | ||
/// <li>last_deep_link_referrer</li> | ||
/// <li>user_id</li> | ||
/// </ul> | ||
/// | ||
/// @param value The value of the user property. Values can be up to 36 characters long. Setting the | ||
/// value to nil removes the user property. | ||
/// @param name The name of the user property to set. Should contain 1 to 24 alphanumeric characters | ||
/// or underscores and must start with an alphabetic character. The "firebase_", "google_", and | ||
/// "ga_" prefixes are reserved and should not be used for user property names. | ||
+ (void)setUserPropertyString:(nullable NSString *)value forName:(NSString *)name | ||
NS_SWIFT_NAME(setUserProperty(_:forName:)); | ||
|
||
/// Sets the user ID property. This feature must be used in accordance with | ||
/// <a href="https://www.google.com/policies/privacy">Google's Privacy Policy</a> | ||
/// | ||
/// @param userID The user ID to ascribe to the user of this app on this device, which must be | ||
/// non-empty and no more than 256 characters long. Setting userID to nil removes the user ID. | ||
+ (void)setUserID:(nullable NSString *)userID; | ||
|
||
/// Sets whether analytics collection is enabled for this app on this device. This setting is | ||
/// persisted across app sessions. By default it is enabled. | ||
/// | ||
/// @param analyticsCollectionEnabled A flag that enables or disables Analytics collection. | ||
+ (void)setAnalyticsCollectionEnabled:(BOOL)analyticsCollectionEnabled; | ||
|
||
/// Sets the interval of inactivity in seconds that terminates the current session. The default | ||
/// value is 1800 seconds (30 minutes). | ||
/// | ||
/// @param sessionTimeoutInterval The custom time of inactivity in seconds before the current | ||
/// session terminates. | ||
+ (void)setSessionTimeoutInterval:(NSTimeInterval)sessionTimeoutInterval; | ||
|
||
/// Returns the unique ID for this instance of the application or nil if | ||
/// `ConsentType.analyticsStorage` has been set to `ConsentStatus.denied`. | ||
/// | ||
/// @see `FIRAnalytics+Consent.h` | ||
+ (nullable NSString *)appInstanceID; | ||
|
||
/// Clears all analytics data for this instance from the device and resets the app instance ID. | ||
/// FIRAnalyticsConfiguration values will be reset to the default values. | ||
+ (void)resetAnalyticsData; | ||
|
||
/// Adds parameters that will be set on every event logged from the SDK, including automatic ones. | ||
/// The values passed in the parameters dictionary will be added to the dictionary of default event | ||
/// parameters. These parameters persist across app runs. They are of lower precedence than event | ||
/// parameters, so if an event parameter and a parameter set using this API have the same name, the | ||
/// value of the event parameter will be used. The same limitations on event parameters apply to | ||
/// default event parameters. | ||
/// | ||
/// @param parameters Parameters to be added to the dictionary of parameters added to every event. | ||
/// They will be added to the dictionary of default event parameters, replacing any existing | ||
/// parameter with the same name. Valid parameters are NSString and NSNumber (signed 64-bit | ||
/// integer and 64-bit floating-point number). Setting a key's value to [NSNull null] will clear | ||
/// that parameter. Passing in a nil dictionary will clear all parameters. | ||
+ (void)setDefaultEventParameters:(nullable NSDictionary<NSString *, id> *)parameters; | ||
|
||
/// Unavailable. | ||
- (instancetype)init NS_UNAVAILABLE; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
Oops, something went wrong.