Skip to content

Commit

Permalink
Do not start auto poll when the SDK is initialized in offline mode
Browse files Browse the repository at this point in the history
  • Loading branch information
z4kn4fein committed Oct 17, 2022
1 parent 3ef0608 commit 2d3b9d3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ConfigCat.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |spec|

spec.name = "ConfigCat"
spec.version = "9.1.0"
spec.version = "9.1.1"
spec.summary = "ConfigCat Swift SDK"
spec.swift_version = "4.2"

Expand Down
2 changes: 1 addition & 1 deletion ConfigCat.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator watchos watchsimulator app
SWIFT_VERSION = 4.2

// ConfigCat SDK version
MARKETING_VERSION = 9.1.0
MARKETING_VERSION = 9.1.1
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ If you want to use ConfigCat in a [SwiftPM](https://swift.org/package-manager/)

``` swift
dependencies: [
.package(url: "https://github.com/configcat/swift-sdk", from: "9.1.0")
.package(url: "https://github.com/configcat/swift-sdk", from: "9.1.1")
]
```

Expand Down
5 changes: 4 additions & 1 deletion Sources/ConfigCat/ConfigService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ class ConfigService {

if let autoPoll = pollingMode as? AutoPollingMode {
initialized = false
startPoll(mode: autoPoll)

if !offline {
startPoll(mode: autoPoll)
}

// Waiting for the client initialization.
// After the maxInitWaitTimeInSeconds timeout the client will be initialized and while the config is not ready
Expand Down
2 changes: 1 addition & 1 deletion Sources/ConfigCat/Utils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ extension Date {
}

class Constants {
static let version: String = "9.1.0"
static let version: String = "9.1.1"
static let configJsonName: String = "config_v5"
static let globalBaseUrl: String = "https://cdn-global.configcat.com"
static let euOnlyBaseUrl: String = "https://cdn-eu.configcat.com"
Expand Down

0 comments on commit 2d3b9d3

Please sign in to comment.