Skip to content

Commit f2a9bc6

Browse files
authored
Prepare 2.0.0 release (launchdarkly#22)
* Version 2.0.0 * Bumped Android version and corrected package name, downgraded iOS version, updated CHANGELOG * Bumped iOS SDK to 4.0.0, bumped React Native to 0.59.9 * Changed react peer dependency to 16.8.3 * Fixes polling mode not able to be set * Bump iOS client version * Moved npm i rn cli to fix permissions * Updated Android client to 2.8.4 * Update CHANGELOG 2.0.0 release date * Fix circleci iOS build error * Updated CHANGELOG and README, fixed 2 errant SWIFT_VERSIONs * Added CircleCI status badge to README
1 parent 45d80ce commit f2a9bc6

10 files changed

+39
-24
lines changed

.circleci/config.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@ jobs:
3636

3737
ios:
3838
macos:
39-
xcode: "10.1.0"
39+
xcode: "10.2.0"
4040
steps:
4141
- checkout
4242

43-
- run: xcrun simctl create rn-ios com.apple.CoreSimulator.SimDeviceType.iPhone-X com.apple.CoreSimulator.SimRuntime.iOS-12-1
43+
- run: xcrun simctl create rn-ios com.apple.CoreSimulator.SimDeviceType.iPhone-X com.apple.CoreSimulator.SimRuntime.iOS-12-2
4444
- run: xcrun simctl boot rn-ios
45-
- run: sudo npm install -g react-native-cli
4645
- run: cd .. && git clone https://github.com/launchdarkly/hello-react-native.git
4746
- run: cd ../hello-react-native && npm install
47+
- run: sudo npm install -g react-native-cli
4848
- run: cp -r ../project/ ../hello-react-native/node_modules/launchdarkly-react-native-client-sdk/
49-
- run: cd ../hello-react-native && react-native run-ios --configuration Release
49+
- run: cd ../hello-react-native && react-native run-ios --configuration Release --simulator rn-ios
5050

5151
workflows:
5252
version: 2

CHANGELOG.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,21 @@
22

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

5+
## [2.0.0] - 2019-06-27
6+
### Fixed
7+
- Changes polling mode to not be ignored in config.
8+
9+
### Changed
10+
- Updated Android Client SDK to version 2.8.4
11+
- Updated iOS Client SDK to version 4.1.0
12+
- Updated React Native to version 0.59.9 and updated React to version 16.8.3
13+
- Updated to allow usage with Xcode 10.2.1
14+
- Updated Swift to version 5.0
15+
16+
This is a major version because of breaking version updates.
17+
518
## [1.0.1] - 2019-05-03
6-
## Changed
19+
### Changed
720
- Changed the package name from `launchdarkly-react-native-client` to `launchdarkly-react-native-client-sdk`
821
- Changed repository references to use the new URL
922

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ You can modify and verify changes by developing within the LaunchDarkly React Na
2626

2727
1. In your `react-native-client-sdk` directory, run `npm link`.
2828
2. Clone and setup the [`hello-react-native`](https://github.com/launchdarkly/hello-react-native) repository.
29-
3. In your `hello-react-native` directory, run `npm link react-native-client-sdk`.
29+
3. In your `hello-react-native` directory, copy your `react-native-client-sdk` into `node_modules` or use [wml](https://github.com/wix/wml) to monitor and copy files.
3030
4. Test your changes in `hello-react-native` by running either `react-native run-ios` or `react-native run-android` depending on your desired runtime environment.

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
LaunchDarkly Client-side SDK for React Native
22
===========================
33

4+
[![CircleCI](https://circleci.com/gh/launchdarkly/react-native-client-sdk.svg?style=svg)](https://circleci.com/gh/launchdarkly/react-native-client-sdk)
5+
46
LaunchDarkly overview
57
-------------------------
68
[LaunchDarkly](https://www.launchdarkly.com) is a feature management platform that serves over 100 billion feature flags daily to help teams build better software, faster. [Get started](https://docs.launchdarkly.com/docs/getting-started) using LaunchDarkly today!
@@ -10,7 +12,7 @@ LaunchDarkly overview
1012
Supported versions
1113
-------------------------
1214

13-
This SDK is compatible with React Native 0.57.7 and is tested in Android 27 and iOS 12.1.
15+
This SDK is compatible with React Native 0.59.9 and Xcode 10.2.1 and is tested in Android 27 and iOS 12.2. Earlier versions of this SDK are compatible with prior versions of React Native, Android, and iOS.
1416

1517
Getting started
1618
---------------

android/build.gradle

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11

22
buildscript {
33
ext {
4-
buildToolsVersion = "27.0.3"
4+
buildToolsVersion = "28.0.2"
55
minSdkVersion = 16
6-
compileSdkVersion = 27
7-
targetSdkVersion = 26
8-
supportLibVersion = "27.1.1"
6+
compileSdkVersion = 28
7+
targetSdkVersion = 27
8+
supportLibVersion = "28.0.0"
99
}
1010
repositories {
1111
jcenter()
1212
google()
1313
}
1414

1515
dependencies {
16-
classpath 'com.android.tools.build:gradle:3.1.4'
16+
classpath 'com.android.tools.build:gradle:3.3.2'
1717
}
1818
}
1919

@@ -48,7 +48,7 @@ allprojects {
4848

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

android/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip

ios/LaunchdarklyReactNativeClient.podspec

+3-3
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.1"
4+
s.version = "2.0.0"
55
s.summary = "LaunchdarklyReactNativeClient"
66
s.description = <<-DESC
77
LaunchdarklyReactNativeClient
@@ -13,9 +13,9 @@ Pod::Spec.new do |s|
1313
s.platform = :ios, "9.0"
1414
s.source = { :git => "https://github.com/launchdarkly/react-native-client-sdk.git", :tag => "master" }
1515
s.source_files = "**/*.{h,m,swift}"
16-
s.swift_version = "3.0"
16+
s.swift_version = "5.0"
1717

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

2121
end

ios/LaunchdarklyReactNativeClient.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class LaunchdarklyReactNativeClient: RCTEventEmitter {
8080
}
8181

8282
if config["stream"] != nil {
83-
ldConfig.streamingMode = (config["stream"] != nil) ? LDStreamingMode.streaming : LDStreamingMode.polling
83+
ldConfig.streamingMode = (config["stream"] as! Bool) ? LDStreamingMode.streaming : LDStreamingMode.polling
8484
}
8585

8686
if config["disableBackgroundUpdating"] != nil {
@@ -295,7 +295,7 @@ class LaunchdarklyReactNativeClient: RCTEventEmitter {
295295
}
296296

297297
extension NSDictionary {
298-
var swiftDictionary: Dictionary<String, Any> {
298+
@objc var swiftDictionary: Dictionary<String, Any> {
299299
var swiftDictionary = Dictionary<String, Any>()
300300

301301
for key : Any in self.allKeys {

ios/LaunchdarklyReactNativeClient.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
SKIP_INSTALL = YES;
254254
SWIFT_OBJC_BRIDGING_HEADER = "LaunchdarklyReactNativeClient-Bridging-Header.h";
255255
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
256-
SWIFT_VERSION = 3.0;
256+
SWIFT_VERSION = 5.0;
257257
};
258258
name = Debug;
259259
};
@@ -280,7 +280,7 @@
280280
PRODUCT_NAME = LaunchdarklyReactNativeClient;
281281
SKIP_INSTALL = YES;
282282
SWIFT_OBJC_BRIDGING_HEADER = "LaunchdarklyReactNativeClient-Bridging-Header.h";
283-
SWIFT_VERSION = 3.0;
283+
SWIFT_VERSION = 5.0;
284284
};
285285
name = Release;
286286
};

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "launchdarkly-react-native-client-sdk",
3-
"version": "1.0.1",
3+
"version": "2.0.0",
44
"description": "",
55
"main": "index.js",
66
"scripts": {
@@ -20,8 +20,8 @@
2020
},
2121
"homepage": "https://docs.launchdarkly.com/docs/react-native-sdk-reference",
2222
"peerDependencies": {
23-
"react-native": "^0.57.7",
24-
"react": "^16.6.1"
23+
"react-native": "0.59.9",
24+
"react": "16.8.3"
2525
},
2626
"devDependencies": {
2727
"metro-react-native-babel-preset": "0.50.0"

0 commit comments

Comments
 (0)