Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit a0c861a

Browse files
committed
Release version 1.0.0
1 parent aeb3f91 commit a0c861a

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ allprojects {
4848

4949
dependencies {
5050
implementation 'com.facebook.react:react-native:+'
51-
implementation 'com.launchdarkly:launchdarkly-android-client:2.6.0'
51+
implementation 'com.launchdarkly:launchdarkly-android-client:2.7.0'
5252
implementation 'com.jakewharton.timber:timber:4.7.1'
5353
implementation "com.google.code.gson:gson:2.8.5"
5454
}

ios/LaunchdarklyReactNativeClient.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Pod::Spec.new do |s|
33
s.name = "LaunchdarklyReactNativeClient"
4-
s.version = "1.0.0-beta.1"
4+
s.version = "1.0.0"
55
s.summary = "LaunchdarklyReactNativeClient"
66
s.description = <<-DESC
77
LaunchdarklyReactNativeClient
@@ -16,6 +16,6 @@ Pod::Spec.new do |s|
1616
s.swift_version = "3.0"
1717

1818
s.dependency "React"
19-
s.dependency "LaunchDarkly", "~> 3.0.0-beta.2"
19+
s.dependency "LaunchDarkly", "~> 3.0.0-beta.3"
2020

2121
end

ios/LaunchdarklyReactNativeClient.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import LaunchDarkly
44

55
@objc(LaunchdarklyReactNativeClient)
66
class LaunchdarklyReactNativeClient: RCTEventEmitter {
7-
private var listenerKeys: [String:LDFlagChangeOwner] = [:]
7+
private var listenerKeys: [String:LDObserverOwner] = [:]
88

99
private let EVENT_PREFIX = "LaunchDarkly--"
1010
private let ERROR_INIT = "E_INITIALIZE"
@@ -119,7 +119,7 @@ class LaunchdarklyReactNativeClient: RCTEventEmitter {
119119
}
120120

121121
if userConfig["anonymous"] != nil {
122-
user.isAnonymous = userConfig["isAnonymous"] as! Bool
122+
user.isAnonymous = userConfig["anonymous"] as! Bool
123123
}
124124

125125
if userConfig["privateAttributeNames"] != nil {
@@ -242,11 +242,11 @@ class LaunchdarklyReactNativeClient: RCTEventEmitter {
242242
let user = userBuild(userConfig: options)
243243
if let usr = user {
244244
LDClient.shared.observeFlagsUnchanged(owner: self) {
245-
LDClient.shared.stopObserving(owner: self as LDFlagChangeOwner)
245+
LDClient.shared.stopObserving(owner: self as LDObserverOwner)
246246
resolve(nil)
247247
}
248248
LDClient.shared.observeAll(owner: self) {_ in
249-
LDClient.shared.stopObserving(owner: self as LDFlagChangeOwner)
249+
LDClient.shared.stopObserving(owner: self as LDObserverOwner)
250250
resolve(nil)
251251
}
252252
LDClient.shared.user = usr
@@ -266,7 +266,7 @@ class LaunchdarklyReactNativeClient: RCTEventEmitter {
266266
}
267267

268268
@objc func registerFeatureFlagListener(_ flagKey: String) -> Void {
269-
let flagChangeOwner = flagKey as LDFlagChangeOwner
269+
let flagChangeOwner = flagKey as LDObserverOwner
270270
if listenerKeys[flagKey] == nil {
271271
listenerKeys[flagKey] = flagChangeOwner
272272
} else {
@@ -280,7 +280,7 @@ class LaunchdarklyReactNativeClient: RCTEventEmitter {
280280
}
281281

282282
@objc func unregisterFeatureFlagListener(_ flagKey: String) -> Void {
283-
let flagChangeOwner = flagKey as LDFlagChangeOwner
283+
let flagChangeOwner = flagKey as LDObserverOwner
284284
if listenerKeys[flagKey] == nil {
285285
listenerKeys.removeValue(forKey: flagKey)
286286
} else {

package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "launchdarkly-react-native-client",
3-
"version": "1.0.0-beta.1",
3+
"version": "1.0.0",
44
"description": "",
55
"main": "index.js",
66
"scripts": {
@@ -20,12 +20,8 @@
2020
},
2121
"homepage": "https://docs.launchdarkly.com/v2.0/docs/react-native-sdk-reference",
2222
"peerDependencies": {
23-
"react-native": "0.57.7",
24-
"react": "16.6.1"
25-
},
26-
"dependencies": {
27-
"react": "^16.6.1",
28-
"react-native": "^0.57.7"
23+
"react-native": "^0.57.7",
24+
"react": "^16.6.1"
2925
},
3026
"devDependencies": {
3127
"metro-react-native-babel-preset": "0.50.0"

0 commit comments

Comments
 (0)