Skip to content

Commit d8a0748

Browse files
markpokornycosarun251
authored andcommitted
Version 2.13.1 (#138)
* Removed early tests for reaching event capacity that caused benign Thread Sanitizer warnings * Changed pointer nil tests to clear Static Analyzer pointer comparison warnings
1 parent d59170e commit d8a0748

File tree

17 files changed

+34
-49
lines changed

17 files changed

+34
-49
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to the LaunchDarkly iOS SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
44

5+
## [2.13.1] - 2018-06-25
6+
### Changed
7+
- Removed early tests for reaching event capacity that caused benign Thread Sanitizer warnings
8+
- Changed pointer nil tests to clear Static Analyzer pointer comparison warnings
9+
510
## [2.13.0] - 2018-06-01
611
### Added
712
- To reduce the network bandwidth used for analytics events, feature request events are now sent as counters rather than individual events, and user details are now sent only at intervals rather than in each event. These behaviors can be modified through the LaunchDarkly UI and with the new configuration option `inlineUsersInEvents`. For more details, see [Analytics Data Stream Reference](https://docs.launchdarkly.com/v2.0/docs/analytics-data-stream-reference).

Cartfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "launchdarkly/ios-eventsource" >= 3.2.3
1+
github "launchdarkly/ios-eventsource" >= 3.2.5

Cartfile.resolved

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "launchdarkly/ios-eventsource" "3.2.3"
1+
github "launchdarkly/ios-eventsource" "3.2.5"

Darkly/DarklyConstants.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#import "DarklyConstants.h"
66

7-
NSString * const kClientVersion = @"2.13.0";
7+
NSString * const kClientVersion = @"2.13.1";
88
NSString * const kBaseUrl = @"https://app.launchdarkly.com";
99
NSString * const kEventsUrl = @"https://mobile.launchdarkly.com";
1010
NSString * const kStreamUrl = @"https://clientstream.launchdarkly.com";

Darkly/LDDataManager.m

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,6 @@ -(void)createFeatureEventWithFlagKey:(NSString*)flagKey
168168
defaultFlagValue:(id)defaultFlagValue
169169
user:(LDUserModel*)user
170170
config:(LDConfig*)config {
171-
if ([self isAtEventCapacity:self.eventsArray]) {
172-
DEBUG_LOG(@"Events have surpassed capacity. Discarding feature event %@", flagKey);
173-
return;
174-
}
175171
if (!flagConfigValue.eventTrackingContext || (flagConfigValue.eventTrackingContext && !flagConfigValue.eventTrackingContext.trackEvents)) {
176172
DEBUG_LOG(@"Tracking is off. Discarding feature event %@", flagKey);
177173
return;
@@ -187,28 +183,16 @@ -(void)createFeatureEventWithFlagKey:(NSString*)flagKey
187183
}
188184

189185
-(void)createCustomEventWithKey:(NSString *)eventKey customData:(NSDictionary *)customData user:(LDUserModel*)user config:(LDConfig*)config {
190-
if ([self isAtEventCapacity:self.eventsArray]) {
191-
DEBUG_LOG(@"Events have surpassed capacity. Discarding custom event %@ with customData %@", eventKey, customData);
192-
return;
193-
}
194186
DEBUG_LOG(@"Creating custom event for custom key:%@ and customData:%@", eventKey, customData);
195187
[self addEventDictionary:[[LDEventModel customEventWithKey:eventKey customData:customData userValue:user inlineUser:config.inlineUserInEvents] dictionaryValueUsingConfig:config]];
196188
}
197189

198190
-(void)createIdentifyEventWithUser:(LDUserModel*)user config:(LDConfig*)config {
199-
if ([self isAtEventCapacity:self.eventsArray]) {
200-
DEBUG_LOG(@"Events have surpassed capacity. Discarding identify event for user key:%@", user.key);
201-
return;
202-
}
203191
DEBUG_LOG(@"Creating identify event for user key:%@", user.key);
204192
[self addEventDictionary:[[LDEventModel identifyEventWithUser:user] dictionaryValueUsingConfig:config]];
205193
}
206194

207195
-(void)createSummaryEventWithTracker:(LDFlagConfigTracker*)tracker config:(LDConfig*)config {
208-
if ([self isAtEventCapacity:self.eventsArray]) {
209-
DEBUG_LOGX(@"Events have surpassed capacity. Discarding summary event.");
210-
return;
211-
}
212196
if (tracker.flagCounters.count == 0) {
213197
DEBUG_LOGX(@"Tracker has no flag counters. Discarding summary event.");
214198
return;
@@ -223,10 +207,6 @@ -(void)createDebugEventWithFlagKey:(NSString *)flagKey
223207
defaultFlagValue:(id)defaultFlagValue
224208
user:(LDUserModel*)user
225209
config:(LDConfig*)config {
226-
if ([self isAtEventCapacity:self.eventsArray]) {
227-
DEBUG_LOG(@"Events have surpassed capacity. Discarding debug event %@", flagKey);
228-
return;
229-
}
230210
if (![self shouldCreateDebugEventForContext:flagConfigValue.eventTrackingContext lastEventResponseDate:self.lastEventResponseDate]) {
231211
DEBUG_LOG(@"LDDataManager createDebugEventWithFlagKey aborting, debug events are turned off. Discarding debug event %@", flagKey);
232212
return;

Darkly/LDFlagConfig/LDFlagConfigValue.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ -(NSDictionary*)dictionaryValueUseFlagVersionForVersion:(BOOL)useFlagVersion inc
7878
if (self.modelVersion != kLDFlagConfigValueItemDoesNotExist) {
7979
dictionaryValue[kLDFlagConfigValueKeyVersion] = @(self.modelVersion);
8080
}
81-
if (self.flagVersion) {
81+
if (self.flagVersion != nil) {
8282
NSString *versionKey = useFlagVersion ? kLDFlagConfigValueKeyVersion : kLDFlagConfigValueKeyFlagVersion;
8383
dictionaryValue[versionKey] = self.flagVersion;
8484
}
@@ -150,6 +150,6 @@ -(BOOL)hasPropertiesMatchingDictionary:(NSDictionary*)dictionary {
150150
}
151151

152152
-(NSString*)description {
153-
return [NSString stringWithFormat:@"<LDFlagConfigValue: %p, value: %@, modelVersion: %ld, variation: %ld, flagVersion: %@, eventTrackingContext: %@>", self, [self.value description], (long)self.modelVersion, (long)self.variation, self.flagVersion ? [self.flagVersion description] : @"nil", self.eventTrackingContext ?: @"nil"];
153+
return [NSString stringWithFormat:@"<LDFlagConfigValue: %p, value: %@, modelVersion: %ld, variation: %ld, flagVersion: %@, eventTrackingContext: %@>", self, [self.value description], (long)self.modelVersion, (long)self.variation, self.flagVersion != nil ? [self.flagVersion description] : @"nil", self.eventTrackingContext ?: @"nil"];
154154
}
155155
@end

LaunchDarkly.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "LaunchDarkly"
4-
s.version = "2.13.0"
4+
s.version = "2.13.1"
55
s.summary = "iOS SDK for LaunchDarkly"
66

77
s.description = <<-DESC
@@ -23,7 +23,7 @@ Pod::Spec.new do |s|
2323
s.tvos.deployment_target = "9.0"
2424
s.osx.deployment_target = '10.10'
2525

26-
s.source = { :git => "https://github.com/launchdarkly/ios-client.git", :tag => "2.13.0" }
26+
s.source = { :git => "https://github.com/launchdarkly/ios-client.git", :tag => "2.13.1" }
2727

2828
s.source_files = 'Darkly/**/*.{h,m}'
2929

@@ -32,6 +32,6 @@ Pod::Spec.new do |s|
3232
s.xcconfig = { 'CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS' => 'NO' }
3333

3434
s.subspec 'Core' do |eventSource|
35-
eventSource.dependency 'DarklyEventSource', '~>3.2.4'
35+
eventSource.dependency 'DarklyEventSource', '~>3.2.5'
3636
end
3737
end

Podfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
use_frameworks!
22
target 'Darkly_iOS' do
33
platform :ios, '8.0'
4-
pod 'DarklyEventSource', '~> 3.2.4'
4+
pod 'DarklyEventSource', '~> 3.2.5'
55
end
66

77
target 'Darkly_tvOS' do
88
platform :tvos, '9.0'
9-
pod 'DarklyEventSource', '~> 3.2.4'
9+
pod 'DarklyEventSource', '~> 3.2.5'
1010
end
1111

1212
target 'Darkly_watchOS' do
1313
platform :watchos, '2.0'
14-
pod 'DarklyEventSource', '~> 3.2.4'
14+
pod 'DarklyEventSource', '~> 3.2.5'
1515
end
1616

1717
target 'Darkly_osx' do
1818
platform :osx, '10.10'
19-
pod 'DarklyEventSource', '~> 3.2.4'
19+
pod 'DarklyEventSource', '~> 3.2.5'
2020
end
2121

2222
target 'DarklyTests' do

Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- DarklyEventSource (3.2.4)
2+
- DarklyEventSource (3.2.5)
33
- OCMock (3.4.1)
44
- OHHTTPStubs (4.8.0):
55
- OHHTTPStubs/Default (= 4.8.0)
@@ -16,15 +16,15 @@ PODS:
1616
- OHHTTPStubs/OHPathHelpers (4.8.0)
1717

1818
DEPENDENCIES:
19-
- DarklyEventSource (~> 3.2.4)
19+
- DarklyEventSource (~> 3.2.5)
2020
- OCMock (~> 3.1)
2121
- OHHTTPStubs (~> 4.2)
2222

2323
SPEC CHECKSUMS:
24-
DarklyEventSource: 82340541afe6251d11767eb6f3ce53f4257729ba
24+
DarklyEventSource: 3c31d126137713d61b92ab05923ca0c09c4033a6
2525
OCMock: 2cd0716969bab32a2283ff3a46fd26a8c8b4c5e3
2626
OHHTTPStubs: b393565822317305b87a1440d4c7aff131679f66
2727

28-
PODFILE CHECKSUM: 464d91876b1e18746c3732341dc0518520c165f3
28+
PODFILE CHECKSUM: 18a66b3a27725c10fefbd197e97fb666f2797d2e
2929

3030
COCOAPODS: 1.4.0

Pods/DarklyEventSource/LDEventSource/LDEventSource.m

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)