Skip to content

Commit 98057c9

Browse files
author
Brandon Sneed
committed
Prepare for release 2.7.7
1 parent b89857a commit 98057c9

File tree

6 files changed

+85
-66
lines changed

6 files changed

+85
-66
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Change Log
22
==========
33

4+
Version 2.7.7 *(24th May, 2021)*
5+
-------------------------------------------
6+
* Fix incorrect array being used for recursive mapping.
7+
48
Version 2.7.6 *(18th May, 2021)*
59
-------------------------------------------
610
* Use headers instead of module names to address react-native issue.

Example/Podfile.lock

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,24 +59,24 @@ PODS:
5959
- GoogleUtilities/Environment (~> 7.2)
6060
- nanopb (~> 2.30908.0)
6161
- PromisesObjC (~> 1.2)
62-
- GoogleUtilities/AppDelegateSwizzler (7.4.0):
62+
- GoogleUtilities/AppDelegateSwizzler (7.4.1):
6363
- GoogleUtilities/Environment
6464
- GoogleUtilities/Logger
6565
- GoogleUtilities/Network
66-
- GoogleUtilities/Environment (7.4.0):
66+
- GoogleUtilities/Environment (7.4.1):
6767
- PromisesObjC (~> 1.2)
68-
- GoogleUtilities/Logger (7.4.0):
68+
- GoogleUtilities/Logger (7.4.1):
6969
- GoogleUtilities/Environment
70-
- GoogleUtilities/MethodSwizzler (7.4.0):
70+
- GoogleUtilities/MethodSwizzler (7.4.1):
7171
- GoogleUtilities/Logger
72-
- GoogleUtilities/Network (7.4.0):
72+
- GoogleUtilities/Network (7.4.1):
7373
- GoogleUtilities/Logger
7474
- "GoogleUtilities/NSData+zlib"
7575
- GoogleUtilities/Reachability
76-
- "GoogleUtilities/NSData+zlib (7.4.0)"
77-
- GoogleUtilities/Reachability (7.4.0):
76+
- "GoogleUtilities/NSData+zlib (7.4.1)"
77+
- GoogleUtilities/Reachability (7.4.1):
7878
- GoogleUtilities/Logger
79-
- GoogleUtilities/UserDefaults (7.4.0):
79+
- GoogleUtilities/UserDefaults (7.4.1):
8080
- GoogleUtilities/Logger
8181
- nanopb (2.30908.0):
8282
- nanopb/decode (= 2.30908.0)
@@ -87,13 +87,13 @@ PODS:
8787
- OCMockito (6.0.0):
8888
- OCHamcrest (~> 8.0)
8989
- PromisesObjC (1.2.12)
90-
- Segment-Firebase (2.7.2):
90+
- Segment-Firebase (2.7.6):
9191
- Analytics
9292
- Firebase (~> 7.7)
9393
- Firebase/Core (~> 7.7)
9494
- FirebaseAnalytics (~> 7.7)
95-
- Segment-Firebase/Core (= 2.7.2)
96-
- Segment-Firebase/Core (2.7.2):
95+
- Segment-Firebase/Core (= 2.7.6)
96+
- Segment-Firebase/Core (2.7.6):
9797
- Analytics
9898
- Firebase (~> 7.7)
9999
- Firebase/Core (~> 7.7)
@@ -138,12 +138,12 @@ SPEC CHECKSUMS:
138138
FirebaseInstallations: a58d4f72ec5861840b84df489f2668d970df558a
139139
GoogleAppMeasurement: fd19169c3034975cb934e865e5667bfdce59df7f
140140
GoogleDataTransport: cd9db2180fcecd8da1b561aea31e3e56cf834aa7
141-
GoogleUtilities: 284cddc7fffc14ae1907efb6f78ab95c1fccaedc
141+
GoogleUtilities: f8a43108b38a68eebe8b3540e1f4f2d28843ce20
142142
nanopb: a0ba3315591a9ae0a16a309ee504766e90db0c96
143143
OCHamcrest: a613690381f1dac7637c18962c10dbe8feca4bb5
144144
OCMockito: 780f04370226f81a9d972c97d1203864ef609f5b
145145
PromisesObjC: 3113f7f76903778cf4a0586bd1ab89329a0b7b97
146-
Segment-Firebase: 4c04930fd6fac5a10a8011cc38718f6804d37499
146+
Segment-Firebase: 803612e886720f0d7d819871cf279c748ce6e187
147147
Specta: 3e1bd89c3517421982dc4d1c992503e48bd5fe66
148148

149149
PODFILE CHECKSUM: 6ed9d49cabf18e7f28eb6b1e1c6f84ce781f3324

Example/Tests/Tests-Prefix.pch

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
#import <Specta/Specta.h>
66
#import <Expecta/Expecta.h>
77
#import <OCMockito/OCMockito.h>
8-
#import <Analytics/SEGAnalytics.h>
9-
#import <Segment-Firebase/SEGFirebaseIntegrationFactory.h>
10-
#import <Segment-Firebase/SEGFirebaseIntegration.h>
8+
#import <Segment/Segment.h>
9+
#import <Segment_Firebase/SEGFirebaseIntegrationFactory.h>
10+
//#import <Segment-Firebase/SEGFirebaseIntegrationFactory.h>
11+
#import <Segment_Firebase/SEGFirebaseIntegration.h>
12+
//#import <Segment-Firebase/SEGFirebaseIntegration.h>
1113
#import <Firebase/Firebase.h>
1214

1315
#endif

Example/Tests/Tests.m

Lines changed: 60 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,16 @@
133133
@"currency" : @"USD",
134134
@"category" : @"Games",
135135
@"revenue" : @8,
136-
@"products" : @{
137-
@"product_id" : @"2013294",
138-
@"category" : @"Games",
139-
@"name" : @"Monopoly: 3rd Edition",
140-
@"brand" : @"Hasbros",
141-
@"price" : @"21.99",
142-
@"quantity" : @"1"
143-
}
136+
@"products" : @[
137+
@{
138+
@"product_id" : @"2013294",
139+
@"category" : @"Games",
140+
@"name" : @"Monopoly: 3rd Edition",
141+
@"brand" : @"Hasbros",
142+
@"price" : @"21.99",
143+
@"quantity" : @"1"
144+
}
145+
]
144146
}
145147
context:@{}
146148
integrations:@{}];
@@ -156,14 +158,16 @@
156158
@"tax" : @1.20,
157159
@"currency" : @"USD",
158160
@"item_category" : @"Games",
159-
@"items" : @{
160-
@"item_id" : @"2013294",
161-
@"item_category" : @"Games",
162-
@"item_name" : @"Monopoly: 3rd Edition",
163-
@"item_brand" : @"Hasbros",
164-
@"price" : @"21.99",
165-
@"quantity" : @"1"
166-
}
161+
@"items" : @[
162+
@{
163+
@"item_id" : @"2013294",
164+
@"item_category" : @"Games",
165+
@"item_name" : @"Monopoly: 3rd Edition",
166+
@"item_brand" : @"Hasbros",
167+
@"price" : @"21.99",
168+
@"quantity" : @"1"
169+
}
170+
]
167171
}];
168172
});
169173

@@ -329,14 +333,16 @@
329333
@"currency" : @"USD",
330334
@"category" : @"Games",
331335
@"revenue" : @8,
332-
@"products" : @{
333-
@"product_id" : @"2013294",
334-
@"category" : @"Games",
335-
@"name" : @"Monopoly: 3rd Edition",
336-
@"brand" : @"Hasbros",
337-
@"price" : @"21.99",
338-
@"quantity" : @"1"
339-
}
336+
@"products" : @[
337+
@{
338+
@"product_id" : @"2013294",
339+
@"category" : @"Games",
340+
@"name" : @"Monopoly: 3rd Edition",
341+
@"brand" : @"Hasbros",
342+
@"price" : @"21.99",
343+
@"quantity" : @"1"
344+
}
345+
]
340346
}
341347
context:@{}
342348
integrations:@{}];
@@ -351,14 +357,16 @@
351357
@"tax" : @1.20,
352358
@"currency" : @"USD",
353359
@"item_category" : @"Games",
354-
@"items" : @{
355-
@"item_id" : @"2013294",
356-
@"item_category" : @"Games",
357-
@"item_name" : @"Monopoly: 3rd Edition",
358-
@"item_brand" : @"Hasbros",
359-
@"price" : @"21.99",
360-
@"quantity" : @"1"
361-
}
360+
@"items" : @[
361+
@{
362+
@"item_id" : @"2013294",
363+
@"item_category" : @"Games",
364+
@"item_name" : @"Monopoly: 3rd Edition",
365+
@"item_brand" : @"Hasbros",
366+
@"price" : @"21.99",
367+
@"quantity" : @"1"
368+
}
369+
]
362370
}];
363371
});
364372

@@ -428,14 +436,16 @@
428436
properties:@{
429437
@"list_id" : @"hot_deals_1",
430438
@"category" : @"Deals",
431-
@"products" : @{
432-
@"product_id" : @"2013294",
433-
@"category" : @"Games",
434-
@"name" : @"Monopoly: 3rd Edition",
435-
@"brand" : @"Hasbros",
436-
@"price" : @"21.99",
437-
@"quantity" : @"1"
438-
}
439+
@"products" : @[
440+
@{
441+
@"product_id" : @"2013294",
442+
@"category" : @"Games",
443+
@"name" : @"Monopoly: 3rd Edition",
444+
@"brand" : @"Hasbros",
445+
@"price" : @"21.99",
446+
@"quantity" : @"1"
447+
}
448+
]
439449
}
440450
context:@{}
441451
integrations:@{}];
@@ -444,14 +454,16 @@
444454
[verify(mockFirebase) logEventWithName:@"view_item_list" parameters:@{
445455
@"list_id" : @"hot_deals_1",
446456
@"item_category" : @"Deals",
447-
@"items" : @{
448-
@"item_id" : @"2013294",
449-
@"item_category" : @"Games",
450-
@"item_name" : @"Monopoly: 3rd Edition",
451-
@"item_brand" : @"Hasbros",
452-
@"price" : @"21.99",
453-
@"quantity" : @"1"
454-
}
457+
@"items" : @[
458+
@{
459+
@"item_id" : @"2013294",
460+
@"item_category" : @"Games",
461+
@"item_name" : @"Monopoly: 3rd Edition",
462+
@"item_brand" : @"Hasbros",
463+
@"price" : @"21.99",
464+
@"quantity" : @"1"
465+
}
466+
]
455467
}];
456468
});
457469

Segment-Firebase.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Segment-Firebase"
3-
s.version = "2.7.6"
3+
s.version = "2.7.7"
44
s.summary = "Firebase Integration for Segment's analytics-ios library."
55

66
s.description = <<-DESC

Segment-Firebase/Classes/SEGFirebaseIntegration.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,9 @@ + (NSDictionary *)mapToFirebaseParameters:(NSDictionary *)properties withMap:(NS
176176
if ([data isKindOfClass:[NSDictionary class]]) {
177177
data = [self mapToFirebaseParameters:data withMap:mapper];
178178
} else if ([data isKindOfClass: [NSArray class]]) {
179+
NSArray *originalData = (NSArray *)data;
179180
NSMutableArray *newArray = [NSMutableArray array];
180-
for (id entry in newArray) {
181+
for (id entry in originalData) {
181182
if ([entry isKindOfClass:[NSDictionary class]]) {
182183
id newEntry = [self mapToFirebaseParameters:entry withMap:mapper];
183184
[newArray addObject:newEntry];

0 commit comments

Comments
 (0)