diff --git a/CHANGELOG.md b/CHANGELOG.md index 17dfb551..b4817782 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to the LaunchDarkly iOS SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org). +## [3.0.2] - 2019-05-15 +### Changed +- Moved the timer that limits how often a client app can set the SDK online onto the main run loop. + ## [3.0.1] - 2019-04-30 ### Changed - Deployed Carthage built DarklyEventSource frameworks as part of the Darkly project. diff --git a/Darkly/DataModels/DarklyConstants.m b/Darkly/DataModels/DarklyConstants.m index a93541f8..d62f31bf 100644 --- a/Darkly/DataModels/DarklyConstants.m +++ b/Darkly/DataModels/DarklyConstants.m @@ -4,7 +4,7 @@ #import "DarklyConstants.h" -NSString * const kClientVersion = @"3.0.0"; +NSString * const kClientVersion = @"3.0.2"; NSString * const kLDPrimaryEnvironmentName = @"LaunchDarkly.EnvironmentName.Primary"; NSString * const kBaseUrl = @"https://app.launchdarkly.com"; NSString * const kEventsUrl = @"https://mobile.launchdarkly.com"; diff --git a/Darkly/Services/LDThrottler.m b/Darkly/Services/LDThrottler.m index c8504f74..f21ee149 100644 --- a/Darkly/Services/LDThrottler.m +++ b/Darkly/Services/LDThrottler.m @@ -76,7 +76,7 @@ -(NSTimer*)delayTimerWithDelayInterval:(NSUInteger)delaySeconds { NSDate *fireDate = [self.timerStartDate dateByAddingTimeInterval:delaySeconds]; NSTimer *delayTimer = [[NSTimer alloc] initWithFireDate:fireDate interval:0 target:self selector:@selector(timerFired) userInfo:nil repeats:NO]; - [[NSRunLoop currentRunLoop] addTimer:delayTimer forMode:NSDefaultRunLoopMode]; + [[NSRunLoop mainRunLoop] addTimer:delayTimer forMode:NSDefaultRunLoopMode]; return delayTimer; } diff --git a/LaunchDarkly.podspec b/LaunchDarkly.podspec index 6cebd00b..fa987d1c 100644 --- a/LaunchDarkly.podspec +++ b/LaunchDarkly.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "LaunchDarkly" - s.version = "3.0.1" + s.version = "3.0.2" s.summary = "iOS SDK for LaunchDarkly" s.description = <<-DESC @@ -23,7 +23,7 @@ Pod::Spec.new do |s| s.tvos.deployment_target = "9.0" s.osx.deployment_target = '10.10' - s.source = { :git => "https://github.com/launchdarkly/ios-client-sdk.git", :tag => "3.0.1" } + s.source = { :git => "https://github.com/launchdarkly/ios-client-sdk.git", :tag => "3.0.2" } s.source_files = 'Darkly/**/*.{h,m}' diff --git a/README.md b/README.md index 8f1e5f98..fe7cb6eb 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ To integrate LaunchDarkly into your Xcode project using CocoaPods, specify it in ```ruby target 'TargetName' do platform :ios, '8.0' - pod 'LaunchDarkly', '~> 3.0.1' + pod 'LaunchDarkly', '~> 3.0.2' end ``` @@ -61,7 +61,7 @@ $ brew install carthage To integrate LaunchDarkly into your Xcode project using Carthage, specify it in your `Cartfile`: ```ogdl -github "launchdarkly/ios-client" "3.0.1" +github "launchdarkly/ios-client" "3.0.2" ``` Run `carthage update` to build the framework. Optionally, specify the `--platform` to build only the frameworks that support your platform(s).