Skip to content

Commit 6e5dc12

Browse files
committed
Prepare for release 4.1.5
1 parent 3a392e9 commit 6e5dc12

File tree

5 files changed

+19
-14
lines changed

5 files changed

+19
-14
lines changed

Analytics.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = "Analytics"
33
s.module_name = "Segment"
4-
s.version = "4.1.4"
4+
s.version = "4.1.5"
55
s.summary = "The hassle-free way to add analytics to your iOS app."
66

77
s.description = <<-DESC

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
Change Log
22
==========
3+
Version 4.1.5 *(9 July, 2021)*
4+
-----------------------------
5+
* [Fix](https://github.com/segmentio/analytics-ios/pull/999) Add missing nullability identifier
6+
* [Fix](https://github.com/segmentio/analytics-ios/pull/1002) Update Readme with SPM guide
7+
38
Version 4.1.4 *(3 May, 2021)*
49
-----------------------------
510
* [Fix](https://github.com/segmentio/analytics-ios/pull/994) Add missing import in Segment.h for Xcode 12.5

Examples/CarthageExample/Cartfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
github "segmentio/analytics-ios" "4.1.3"
1+
github "segmentio/analytics-ios" "4.1.5"
22
# Use a local project when debugging
33
# git "~/Code/segmentio/analytics-ios/" "master"

Segment/Classes/SEGAnalytics.m

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ - (instancetype)initWithConfiguration:(SEGAnalyticsConfiguration *)configuration
5353
// In swift this would not have been OK... But hey.. It's objc
5454
// TODO: Figure out if this is really the best way to do things here.
5555
self.integrationsManager = [[SEGIntegrationsManager alloc] initWithAnalytics:self];
56-
56+
5757
self.runner = [[SEGMiddlewareRunner alloc] initWithMiddleware:
5858
[configuration.sourceMiddleware ?: @[] arrayByAddingObject:self.integrationsManager]];
5959

@@ -110,7 +110,7 @@ - (instancetype)initWithConfiguration:(SEGAnalyticsConfiguration *)configuration
110110
}
111111
}
112112
#endif
113-
113+
114114
[SEGState sharedInstance].configuration = configuration;
115115
[[SEGState sharedInstance].context updateStaticContext];
116116
}
@@ -229,7 +229,7 @@ - (void)_applicationWillEnterForeground
229229
@"version" : currentVersion ?: @"",
230230
@"build" : currentBuild ?: @"",
231231
}];
232-
232+
233233
[[SEGState sharedInstance].context updateStaticContext];
234234
}
235235

@@ -270,7 +270,7 @@ - (void)identify:(NSString *)userId traits:(NSDictionary *)traits
270270
- (void)identify:(NSString *)userId traits:(NSDictionary *)traits options:(NSDictionary *)options
271271
{
272272
NSCAssert2(userId.length > 0 || traits.count > 0, @"either userId (%@) or traits (%@) must be provided.", userId, traits);
273-
273+
274274
// this is done here to match functionality on android where these are inserted BEFORE being spread out amongst destinations.
275275
// it will be set globally later when it runs through SEGIntegrationManager.identify.
276276
NSString *anonId = [options objectForKey:@"anonymousId"];
@@ -297,7 +297,7 @@ - (void)identify:(NSString *)userId traits:(NSDictionary *)traits options:(NSDic
297297
// merge w/ existing traits and set them.
298298
[existingTraitsCopy addEntriesFromDictionary:traitsCopy];
299299
[SEGState sharedInstance].userInfo.traits = existingTraitsCopy;
300-
300+
301301
[self run:SEGEventTypeIdentify payload:
302302
[[SEGIdentifyPayload alloc] initWithUserId:userId
303303
anonymousId:anonId
@@ -483,7 +483,7 @@ - (void)openURL:(NSURL *)url options:(NSDictionary *)options
483483
if (!self.oneTimeConfiguration.trackDeepLinks) {
484484
return;
485485
}
486-
486+
487487
NSString *urlString = url.absoluteString;
488488
[SEGState sharedInstance].context.referrer = @{
489489
@"url" : urlString,
@@ -549,7 +549,7 @@ + (NSString *)version
549549
{
550550
// this has to match the actual version, NOT what's in info.plist
551551
// because Apple only accepts X.X.X as versions in the review process.
552-
return @"4.1.4";
552+
return @"4.1.5";
553553
}
554554

555555
#pragma mark - Helpers
@@ -559,7 +559,7 @@ - (void)run:(SEGEventType)eventType payload:(SEGPayload *)payload
559559
if (!self.enabled) {
560560
return;
561561
}
562-
562+
563563
if (getAdTrackingEnabled(self.oneTimeConfiguration)) {
564564
// if idfa has changed since last we looked, we need to rebuild
565565
// the static context to pick up the change.
@@ -569,13 +569,13 @@ - (void)run:(SEGEventType)eventType payload:(SEGPayload *)payload
569569
[[SEGState sharedInstance].context updateStaticContext];
570570
}
571571
}
572-
572+
573573
if (self.oneTimeConfiguration.experimental.nanosecondTimestamps) {
574574
payload.timestamp = iso8601NanoFormattedString([NSDate date]);
575575
} else {
576576
payload.timestamp = iso8601FormattedString([NSDate date]);
577577
}
578-
578+
579579
SEGContext *context = [[[SEGContext alloc] initWithAnalytics:self] modify:^(id<SEGMutableContext> _Nonnull ctx) {
580580
ctx.eventType = eventType;
581581
ctx.payload = payload;
@@ -587,7 +587,7 @@ - (void)run:(SEGEventType)eventType payload:(SEGPayload *)payload
587587
ctx.payload.anonymousId = [SEGState sharedInstance].userInfo.anonymousId;
588588
}
589589
}];
590-
590+
591591
// Could probably do more things with callback later, but we don't use it yet.
592592
[self.runner run:context callback:nil];
593593
}

Segment/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>4.1.4</string>
18+
<string>4.1.5</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSPrincipalClass</key>

0 commit comments

Comments
 (0)