@react-native-firebase/analytics 18.9.0 → 19.0.1

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [19.0.1](https://github.com/invertase/react-native-firebase/compare/v19.0.0...v19.0.1) (2024-03-07)
7
+
8
+ **Note:** Version bump only for package @react-native-firebase/analytics
9
+
10
+ ## [19.0.0](https://github.com/invertase/react-native-firebase/compare/v18.9.0...v19.0.0) (2024-02-26)
11
+
12
+ ### Features
13
+
14
+ - **analytics, ios:** add Podfile toggle to optionally link AdSupport ([e4db9bb](https://github.com/invertase/react-native-firebase/commit/e4db9bbf0266de658ae3991568f5e04f1fcf7fc7))
15
+
6
16
  ## [18.9.0](https://github.com/invertase/react-native-firebase/compare/v18.8.0...v18.9.0) (2024-02-21)
7
17
 
8
18
  ### Features
@@ -52,6 +52,12 @@ Pod::Spec.new do |s|
52
52
  Pod::UI.puts "#{s.name}: You may set variable `$RNFirebaseAnalyticsWithoutAdIdSupport=true` in Podfile to use analytics without ad ids."
53
53
  end
54
54
  s.dependency 'Firebase/Analytics', firebase_sdk_version
55
+
56
+ # Special pod for on-device conversion
57
+ if defined?($RNFirebaseAnalyticsEnableAdSupport) && ($RNFirebaseAnalyticsEnableAdSupport == true)
58
+ Pod::UI.puts "#{s.name}: Adding Apple AdSupport.framework dependency for optional analytics features"
59
+ s.frameworks = 'AdSupport'
60
+ end
55
61
  end
56
62
 
57
63
  # Special pod for on-device conversion
@@ -66,6 +66,7 @@ describe('Analytics', function () {
66
66
  "'name' expected a string value",
67
67
  );
68
68
  });
69
+
69
70
  it('throws if value is invalid', function () {
70
71
  // @ts-ignore test
71
72
  expect(() => firebase.analytics().setUserProperty('invertase3', 33.3333)).toThrowError(
@@ -79,6 +80,7 @@ describe('Analytics', function () {
79
80
  "'properties' expected an object of key/value pairs",
80
81
  );
81
82
  });
83
+
82
84
  it('throws if property value is invalid', function () {
83
85
  const props = {
84
86
  test: '123',
@@ -91,6 +93,7 @@ describe('Analytics', function () {
91
93
  "'properties' value for parameter 'foo' is invalid",
92
94
  );
93
95
  });
96
+
94
97
  it('throws if value is a number', function () {
95
98
  // @ts-ignore test
96
99
  expect(() => firebase.analytics().setUserProperties({ invertase1: 123 })).toThrowError(
@@ -104,6 +107,7 @@ describe('Analytics', function () {
104
107
  'The supplied arg must be an object of key/values.',
105
108
  );
106
109
  });
110
+
107
111
  it('throws if consentSettings is invalid', function () {
108
112
  const consentSettings = {
109
113
  ad_storage: true,
@@ -116,6 +120,7 @@ describe('Analytics', function () {
116
120
  "'consentSettings' value for parameter 'foo' is invalid, expected a boolean.",
117
121
  );
118
122
  });
123
+
119
124
  it('throws if one value of consentSettings is a number', function () {
120
125
  // @ts-ignore test
121
126
  expect(() => firebase.analytics().setConsent({ ad_storage: 123 })).toThrowError(
@@ -164,6 +169,7 @@ describe('Analytics', function () {
164
169
  'firebase.analytics().logScreenView(*):',
165
170
  );
166
171
  });
172
+
167
173
  it('accepts arbitrary custom event parameters while rejecting defined parameters with wrong types', function () {
168
174
  expect(() => firebase.analytics().logScreenView({ foo: 'bar' })).not.toThrow();
169
175
  expect(() =>
@@ -180,6 +186,7 @@ describe('Analytics', function () {
180
186
  'firebase.analytics().logAddPaymentInfo(*):',
181
187
  );
182
188
  });
189
+
183
190
  it('errors when compound values are not set', function () {
184
191
  expect(() =>
185
192
  firebase.analytics().logAddPaymentInfo({
@@ -206,6 +213,7 @@ describe('Analytics', function () {
206
213
  'firebase.analytics().logAddToCart(*):',
207
214
  );
208
215
  });
216
+
209
217
  it('errors when compound values are not set', function () {
210
218
  expect(() =>
211
219
  firebase.analytics().logAddToCart({
@@ -222,6 +230,7 @@ describe('Analytics', function () {
222
230
  'firebase.analytics().logAddShippingInfo(*):',
223
231
  );
224
232
  });
233
+
225
234
  it('errors when compound values are not set', function () {
226
235
  expect(() =>
227
236
  firebase.analytics().logAddShippingInfo({
@@ -238,6 +247,7 @@ describe('Analytics', function () {
238
247
  'firebase.analytics().logAddToWishlist(*):',
239
248
  );
240
249
  });
250
+
241
251
  it('errors when compound values are not set', function () {
242
252
  expect(() =>
243
253
  firebase.analytics().logAddToWishlist({
@@ -254,6 +264,7 @@ describe('Analytics', function () {
254
264
  'firebase.analytics().logBeginCheckout(*):',
255
265
  );
256
266
  });
267
+
257
268
  it('errors when compound values are not set', function () {
258
269
  expect(() =>
259
270
  firebase.analytics().logBeginCheckout({
@@ -270,6 +281,7 @@ describe('Analytics', function () {
270
281
  'firebase.analytics().logGenerateLead(*):',
271
282
  );
272
283
  });
284
+
273
285
  it('errors when compound values are not set', function () {
274
286
  expect(() =>
275
287
  firebase.analytics().logGenerateLead({
@@ -439,6 +451,7 @@ describe('Analytics', function () {
439
451
  'firebase.analytics().logPurchase(*):',
440
452
  );
441
453
  });
454
+
442
455
  it('errors when compound values are not set', function () {
443
456
  expect(() =>
444
457
  firebase.analytics().logPurchase({
@@ -472,6 +485,7 @@ describe('Analytics', function () {
472
485
  'firebase.analytics().logViewCart(*):',
473
486
  );
474
487
  });
488
+
475
489
  it('errors when compound values are not set', function () {
476
490
  expect(() =>
477
491
  firebase.analytics().logViewCart({
@@ -488,6 +502,7 @@ describe('Analytics', function () {
488
502
  'firebase.analytics().logViewItem(*):',
489
503
  );
490
504
  });
505
+
491
506
  it('errors when compound values are not set', function () {
492
507
  expect(() =>
493
508
  firebase.analytics().logViewItem({
@@ -513,6 +528,7 @@ describe('Analytics', function () {
513
528
  'firebase.analytics().logRemoveFromCart(*):',
514
529
  );
515
530
  });
531
+
516
532
  it('errors when compound values are not set', function () {
517
533
  expect(() =>
518
534
  firebase.analytics().logRemoveFromCart({
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '18.9.0';
2
+ module.exports = '19.0.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/analytics",
3
- "version": "18.9.0",
3
+ "version": "19.0.1",
4
4
  "author": "Invertase <oss@invertase.io> (http://invertase.io)",
5
5
  "description": "React Native Firebase - The analytics module provides out of the box support with Google Analytics for Firebase. Integration with the Android & iOS allows for in-depth analytical insight reporting, such as device information, location, user actions and more.",
6
6
  "main": "lib/index.js",
@@ -22,10 +22,10 @@
22
22
  "analytics"
23
23
  ],
24
24
  "peerDependencies": {
25
- "@react-native-firebase/app": "18.9.0"
25
+ "@react-native-firebase/app": "19.0.1"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "695265641dcf2243ab9f27b25776f11616225f68"
30
+ "gitHead": "fae5966f2220706a5f5375d94dcdafbcc3c37440"
31
31
  }