Skip to content

Commit 7d498c0

Browse files
committed
feat(ios): update Firebase Analytics to 8.10.0
1 parent 6dcedaf commit 7d498c0

File tree

193 files changed

+6857
-2473
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+6857
-2473
lines changed

ios/manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# this is your module manifest and used by Titanium
33
# during compilation, packaging, distribution, etc.
44
#
5-
version: 6.0.0
5+
version: 6.1.0
66
apiversion: 2
77
architectures: arm64 x86_64
88
description: titanium-firebase-analytics

ios/platform/FirebaseAnalytics.xcframework/Info.plist

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,59 @@
66
<array>
77
<dict>
88
<key>LibraryIdentifier</key>
9-
<string>ios-arm64_i386_x86_64-simulator</string>
9+
<string>ios-arm64_x86_64-maccatalyst</string>
1010
<key>LibraryPath</key>
1111
<string>FirebaseAnalytics.framework</string>
1212
<key>SupportedArchitectures</key>
1313
<array>
1414
<string>arm64</string>
15-
<string>i386</string>
1615
<string>x86_64</string>
1716
</array>
1817
<key>SupportedPlatform</key>
1918
<string>ios</string>
2019
<key>SupportedPlatformVariant</key>
20+
<string>maccatalyst</string>
21+
</dict>
22+
<dict>
23+
<key>LibraryIdentifier</key>
24+
<string>tvos-arm64_x86_64-simulator</string>
25+
<key>LibraryPath</key>
26+
<string>FirebaseAnalytics.framework</string>
27+
<key>SupportedArchitectures</key>
28+
<array>
29+
<string>arm64</string>
30+
<string>x86_64</string>
31+
</array>
32+
<key>SupportedPlatform</key>
33+
<string>tvos</string>
34+
<key>SupportedPlatformVariant</key>
2135
<string>simulator</string>
2236
</dict>
37+
<dict>
38+
<key>LibraryIdentifier</key>
39+
<string>macos-arm64_x86_64</string>
40+
<key>LibraryPath</key>
41+
<string>FirebaseAnalytics.framework</string>
42+
<key>SupportedArchitectures</key>
43+
<array>
44+
<string>arm64</string>
45+
<string>x86_64</string>
46+
</array>
47+
<key>SupportedPlatform</key>
48+
<string>macos</string>
49+
</dict>
50+
<dict>
51+
<key>LibraryIdentifier</key>
52+
<string>tvos-arm64</string>
53+
<key>LibraryPath</key>
54+
<string>FirebaseAnalytics.framework</string>
55+
<key>SupportedArchitectures</key>
56+
<array>
57+
<string>arm64</string>
58+
</array>
59+
<key>SupportedPlatform</key>
60+
<string>tvos</string>
61+
</dict>
2362
<dict>
2463
<key>LibraryIdentifier</key>
2564
<string>ios-arm64_armv7</string>
@@ -33,6 +72,22 @@
3372
<key>SupportedPlatform</key>
3473
<string>ios</string>
3574
</dict>
75+
<dict>
76+
<key>LibraryIdentifier</key>
77+
<string>ios-arm64_i386_x86_64-simulator</string>
78+
<key>LibraryPath</key>
79+
<string>FirebaseAnalytics.framework</string>
80+
<key>SupportedArchitectures</key>
81+
<array>
82+
<string>arm64</string>
83+
<string>i386</string>
84+
<string>x86_64</string>
85+
</array>
86+
<key>SupportedPlatform</key>
87+
<string>ios</string>
88+
<key>SupportedPlatformVariant</key>
89+
<string>simulator</string>
90+
</dict>
3691
</array>
3792
<key>CFBundlePackageType</key>
3893
<string>XFWK</string>

ios/platform/FirebaseAnalytics.xcframework/ios-arm64_armv7/FirebaseAnalytics.framework/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<key>CFBundlePackageType</key>
1414
<string>FMWK</string>
1515
<key>CFBundleVersion</key>
16-
<string>8.8.0</string>
16+
<string>8.9.1</string>
1717
<key>DTSDKName</key>
1818
<string>iphonesimulator11.2</string>
1919
</dict>

ios/platform/FirebaseAnalytics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseAnalytics.framework/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<key>CFBundlePackageType</key>
1414
<string>FMWK</string>
1515
<key>CFBundleVersion</key>
16-
<string>8.8.0</string>
16+
<string>8.9.1</string>
1717
<key>DTSDKName</key>
1818
<string>iphonesimulator11.2</string>
1919
</dict>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#import <Foundation/Foundation.h>
2+
3+
#import "FIRAnalytics.h"
4+
5+
NS_ASSUME_NONNULL_BEGIN
6+
7+
/**
8+
* Provides App Delegate handlers to be used in your App Delegate.
9+
*
10+
* To save time integrating Firebase Analytics in an application, Firebase Analytics does not
11+
* require delegation implementation from the AppDelegate. Instead this is automatically done by
12+
* Firebase Analytics. Should you choose instead to delegate manually, you can turn off the App
13+
* Delegate Proxy by adding FirebaseAppDelegateProxyEnabled into your app's Info.plist and setting
14+
* it to NO, and adding the methods in this category to corresponding delegation handlers.
15+
*
16+
* To handle Universal Links, you must return YES in
17+
* [UIApplicationDelegate application:didFinishLaunchingWithOptions:].
18+
*/
19+
@interface FIRAnalytics (AppDelegate)
20+
21+
/**
22+
* Handles events related to a URL session that are waiting to be processed.
23+
*
24+
* For optimal use of Firebase Analytics, call this method from the
25+
* [UIApplicationDelegate application:handleEventsForBackgroundURLSession:completionHandler]
26+
* method of the app delegate in your app.
27+
*
28+
* @param identifier The identifier of the URL session requiring attention.
29+
* @param completionHandler The completion handler to call when you finish processing the events.
30+
* Calling this completion handler lets the system know that your app's user interface is
31+
* updated and a new snapshot can be taken.
32+
*/
33+
+ (void)handleEventsForBackgroundURLSession:(NSString *)identifier
34+
completionHandler:(nullable void (^)(void))completionHandler;
35+
36+
/**
37+
* Handles the event when the app is launched by a URL.
38+
*
39+
* Call this method from [UIApplicationDelegate application:openURL:options:] &#40;on iOS 9.0 and
40+
* above&#41;, or [UIApplicationDelegate application:openURL:sourceApplication:annotation:] &#40;on
41+
* iOS 8.x and below&#41; in your app.
42+
*
43+
* @param url The URL resource to open. This resource can be a network resource or a file.
44+
*/
45+
+ (void)handleOpenURL:(NSURL *)url;
46+
47+
/**
48+
* Handles the event when the app receives data associated with user activity that includes a
49+
* Universal Link (on iOS 9.0 and above).
50+
*
51+
* Call this method from [UIApplication continueUserActivity:restorationHandler:] in your app
52+
* delegate (on iOS 9.0 and above).
53+
*
54+
* @param userActivity The activity object containing the data associated with the task the user
55+
* was performing.
56+
*/
57+
+ (void)handleUserActivity:(id)userActivity;
58+
59+
@end
60+
61+
NS_ASSUME_NONNULL_END
62+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#import <Foundation/Foundation.h>
2+
3+
#import "FIRAnalytics.h"
4+
5+
NS_ASSUME_NONNULL_BEGIN
6+
7+
/// The type of consent to set. Supported consent types are `ConsentType.adStorage` and
8+
/// `ConsentType.analyticsStorage`. Omitting a type retains its previous status.
9+
typedef NSString *FIRConsentType NS_TYPED_ENUM NS_SWIFT_NAME(ConsentType);
10+
extern FIRConsentType const FIRConsentTypeAdStorage;
11+
extern FIRConsentType const FIRConsentTypeAnalyticsStorage;
12+
13+
/// The status value of the consent type. Supported statuses are `ConsentStatus.granted` and
14+
/// `ConsentStatus.denied`.
15+
typedef NSString *FIRConsentStatus NS_TYPED_ENUM NS_SWIFT_NAME(ConsentStatus);
16+
extern FIRConsentStatus const FIRConsentStatusDenied;
17+
extern FIRConsentStatus const FIRConsentStatusGranted;
18+
19+
/// Sets the applicable end user consent state.
20+
@interface FIRAnalytics (Consent)
21+
22+
/// Sets the applicable end user consent state (e.g. for device identifiers) for this app on this
23+
/// device. Use the consent settings to specify individual consent type values. Settings are
24+
/// persisted across app sessions. By default consent types are set to `ConsentStatus.granted`.
25+
///
26+
/// @param consentSettings An NSDictionary of consent types. Supported consent type keys are
27+
/// `ConsentType.adStorage` and `ConsentType.analyticsStorage`. Valid values are
28+
/// `ConsentStatus.granted` and `ConsentStatus.denied`.
29+
+ (void)setConsent:(NSDictionary<FIRConsentType, FIRConsentStatus> *)consentSettings;
30+
31+
@end
32+
33+
NS_ASSUME_NONNULL_END
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
#import <Foundation/Foundation.h>
2+
3+
#import "FIREventNames.h"
4+
#import "FIRParameterNames.h"
5+
#import "FIRUserPropertyNames.h"
6+
7+
NS_ASSUME_NONNULL_BEGIN
8+
9+
/// The top level Firebase Analytics singleton that provides methods for logging events and setting
10+
/// user properties. See <a href="http://goo.gl/gz8SLz">the developer guides</a> for general
11+
/// information on using Firebase Analytics in your apps.
12+
///
13+
/// @note The Analytics SDK uses SQLite to persist events and other app-specific data. Calling
14+
/// certain thread-unsafe global SQLite methods like `sqlite3_shutdown()` can result in
15+
/// unexpected crashes at runtime.
16+
NS_SWIFT_NAME(Analytics)
17+
@interface FIRAnalytics : NSObject
18+
19+
/// Logs an app event. The event can have up to 25 parameters. Events with the same name must have
20+
/// the same parameters. Up to 500 event names are supported. Using predefined events and/or
21+
/// parameters is recommended for optimal reporting.
22+
///
23+
/// The following event names are reserved and cannot be used:
24+
/// <ul>
25+
/// <li>ad_activeview</li>
26+
/// <li>ad_click</li>
27+
/// <li>ad_exposure</li>
28+
/// <li>ad_query</li>
29+
/// <li>ad_reward</li>
30+
/// <li>adunit_exposure</li>
31+
/// <li>app_background</li>
32+
/// <li>app_clear_data</li>
33+
/// <li>app_exception</li>
34+
/// <li>app_remove</li>
35+
/// <li>app_store_refund</li>
36+
/// <li>app_store_subscription_cancel</li>
37+
/// <li>app_store_subscription_convert</li>
38+
/// <li>app_store_subscription_renew</li>
39+
/// <li>app_update</li>
40+
/// <li>app_upgrade</li>
41+
/// <li>dynamic_link_app_open</li>
42+
/// <li>dynamic_link_app_update</li>
43+
/// <li>dynamic_link_first_open</li>
44+
/// <li>error</li>
45+
/// <li>firebase_campaign</li>
46+
/// <li>first_open</li>
47+
/// <li>first_visit</li>
48+
/// <li>in_app_purchase</li>
49+
/// <li>notification_dismiss</li>
50+
/// <li>notification_foreground</li>
51+
/// <li>notification_open</li>
52+
/// <li>notification_receive</li>
53+
/// <li>os_update</li>
54+
/// <li>session_start</li>
55+
/// <li>session_start_with_rollout</li>
56+
/// <li>user_engagement</li>
57+
/// </ul>
58+
///
59+
/// @param name The name of the event. Should contain 1 to 40 alphanumeric characters or
60+
/// underscores. The name must start with an alphabetic character. Some event names are
61+
/// reserved. See FIREventNames.h for the list of reserved event names. The "firebase_",
62+
/// "google_", and "ga_" prefixes are reserved and should not be used. Note that event names are
63+
/// case-sensitive and that logging two events whose names differ only in case will result in
64+
/// two distinct events. To manually log screen view events, use the `screen_view` event name.
65+
/// @param parameters The dictionary of event parameters. Passing nil indicates that the event has
66+
/// no parameters. Parameter names can be up to 40 characters long and must start with an
67+
/// alphabetic character and contain only alphanumeric characters and underscores. Only NSString
68+
/// and NSNumber (signed 64-bit integer and 64-bit floating-point number) parameter types are
69+
/// supported. NSString parameter values can be up to 100 characters long. The "firebase_",
70+
/// "google_", and "ga_" prefixes are reserved and should not be used for parameter names.
71+
+ (void)logEventWithName:(NSString *)name
72+
parameters:(nullable NSDictionary<NSString *, id> *)parameters
73+
NS_SWIFT_NAME(logEvent(_:parameters:));
74+
75+
/// Sets a user property to a given value. Up to 25 user property names are supported. Once set,
76+
/// user property values persist throughout the app lifecycle and across sessions.
77+
///
78+
/// The following user property names are reserved and cannot be used:
79+
/// <ul>
80+
/// <li>first_open_time</li>
81+
/// <li>last_deep_link_referrer</li>
82+
/// <li>user_id</li>
83+
/// </ul>
84+
///
85+
/// @param value The value of the user property. Values can be up to 36 characters long. Setting the
86+
/// value to nil removes the user property.
87+
/// @param name The name of the user property to set. Should contain 1 to 24 alphanumeric characters
88+
/// or underscores and must start with an alphabetic character. The "firebase_", "google_", and
89+
/// "ga_" prefixes are reserved and should not be used for user property names.
90+
+ (void)setUserPropertyString:(nullable NSString *)value forName:(NSString *)name
91+
NS_SWIFT_NAME(setUserProperty(_:forName:));
92+
93+
/// Sets the user ID property. This feature must be used in accordance with
94+
/// <a href="https://www.google.com/policies/privacy">Google's Privacy Policy</a>
95+
///
96+
/// @param userID The user ID to ascribe to the user of this app on this device, which must be
97+
/// non-empty and no more than 256 characters long. Setting userID to nil removes the user ID.
98+
+ (void)setUserID:(nullable NSString *)userID;
99+
100+
/// Sets whether analytics collection is enabled for this app on this device. This setting is
101+
/// persisted across app sessions. By default it is enabled.
102+
///
103+
/// @param analyticsCollectionEnabled A flag that enables or disables Analytics collection.
104+
+ (void)setAnalyticsCollectionEnabled:(BOOL)analyticsCollectionEnabled;
105+
106+
/// Sets the interval of inactivity in seconds that terminates the current session. The default
107+
/// value is 1800 seconds (30 minutes).
108+
///
109+
/// @param sessionTimeoutInterval The custom time of inactivity in seconds before the current
110+
/// session terminates.
111+
+ (void)setSessionTimeoutInterval:(NSTimeInterval)sessionTimeoutInterval;
112+
113+
/// Returns the unique ID for this instance of the application or nil if
114+
/// `ConsentType.analyticsStorage` has been set to `ConsentStatus.denied`.
115+
///
116+
/// @see `FIRAnalytics+Consent.h`
117+
+ (nullable NSString *)appInstanceID;
118+
119+
/// Clears all analytics data for this instance from the device and resets the app instance ID.
120+
/// FIRAnalyticsConfiguration values will be reset to the default values.
121+
+ (void)resetAnalyticsData;
122+
123+
/// Adds parameters that will be set on every event logged from the SDK, including automatic ones.
124+
/// The values passed in the parameters dictionary will be added to the dictionary of default event
125+
/// parameters. These parameters persist across app runs. They are of lower precedence than event
126+
/// parameters, so if an event parameter and a parameter set using this API have the same name, the
127+
/// value of the event parameter will be used. The same limitations on event parameters apply to
128+
/// default event parameters.
129+
///
130+
/// @param parameters Parameters to be added to the dictionary of parameters added to every event.
131+
/// They will be added to the dictionary of default event parameters, replacing any existing
132+
/// parameter with the same name. Valid parameters are NSString and NSNumber (signed 64-bit
133+
/// integer and 64-bit floating-point number). Setting a key's value to [NSNull null] will clear
134+
/// that parameter. Passing in a nil dictionary will clear all parameters.
135+
+ (void)setDefaultEventParameters:(nullable NSDictionary<NSString *, id> *)parameters;
136+
137+
/// Unavailable.
138+
- (instancetype)init NS_UNAVAILABLE;
139+
140+
@end
141+
142+
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)