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

Commit

Permalink
Re-introduce compatibility for React Native 0.63 (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwoskow-ld authored Sep 20, 2021
1 parent c4a98d7 commit 4511f91
Show file tree
Hide file tree
Showing 4 changed files with 156 additions and 393 deletions.
29 changes: 25 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
version: 2
version: 2.1
jobs:
android:
parameters:
hello-app-branch:
type: string
docker:
- image: circleci/android@sha256:9d2e4571898fd9b1dc97bfb9da942aaeea46859eb5b1e4cfc85a44c42733643c
environment:
Expand All @@ -26,7 +29,7 @@ jobs:
no_output_timeout: 20m
- run: sudo npm install -g react-native-cli
- run: cd .. && git clone https://github.com/launchdarkly/hello-react-native.git
- run: cd ../hello-react-native && npm install
- run: cd ../hello-react-native && git checkout <<parameters.hello-app-branch>> && npm install
- run: cp -r ../project/ ../hello-react-native/node_modules/launchdarkly-react-native-client-sdk/
- run: circle-android wait-for-boot
- run:
Expand All @@ -35,6 +38,9 @@ jobs:
timeout: 1200

ios:
parameters:
hello-app-branch:
type: string
macos:
xcode: "11.4"
steps:
Expand All @@ -43,14 +49,14 @@ jobs:
- run: xcrun simctl create rn-ios com.apple.CoreSimulator.SimDeviceType.iPhone-X com.apple.CoreSimulator.SimRuntime.iOS-12-2
- run: xcrun simctl boot rn-ios
- run: cd .. && git clone https://github.com/launchdarkly/hello-react-native.git
- run: cd ../hello-react-native && npm install
- run: cd ../hello-react-native && git checkout <<parameters.hello-app-branch>> && npm install
- run: sudo npm install -g react-native-cli
- run: cp -r ../project/ ../hello-react-native/node_modules/launchdarkly-react-native-client-sdk/
# Newer cocoapods required for following pod install
- run: sudo gem install cocoapods
# RN 0.64 has an issue with embedding absolute paths in the cocoapods generated build files, so must regenerate.
# https://github.com/facebook/react-native/issues/31121
- run: cd ../hello-react-native/ios && pod install
- run: cd ../hello-react-native/ios && pod update && pod install
- run: cd ../hello-react-native && react-native run-ios --configuration Release --simulator rn-ios

common:
Expand All @@ -77,8 +83,23 @@ workflows:
jobs:
- common
- android:
name: Android + RN 0.63
hello-app-branch: rn-0.63
requires:
- common
- ios:
name: iOS + RN 0.63
hello-app-branch: rn-0.63
requires:
- common
- android:
name: Android + RN 0.64
hello-app-branch: rn-0.64
requires:
- common
- ios:
name: iOS + RN 0.64
hello-app-branch: rn-0.64
requires:
- common

12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ LaunchDarkly overview
Supported versions
-------------------------

This SDK is currently compatible with React Native 0.64.x and Xcode 12 and is tested in Android 30 and iOS 14. Earlier versions of this SDK are compatible with prior versions of React Native, Android, and iOS.
This SDK is currently compatible with React Native 0.63.x - 0.64.x and Xcode 12 and is tested in Android 30 and iOS 14. Earlier versions of this SDK are compatible with prior versions of React Native, Android, and iOS.

| SDK version | React Native version |
|-----------------|----------------------|
| 4.1.x - current | 0.64.x |
| 3.2.x - 4.0.x | 0.63.x |
| 3.1.x | 0.62.x |
| SDK version | React Native version |
|----------------------------------|----------------------|
| 4.1.x - current | 0.64.x |
| 5.0.2 - current<br>3.2.x - 4.0.x | 0.63.x |
| 3.1.x | 0.62.x |

Getting started
---------------
Expand Down
Loading

0 comments on commit 4511f91

Please sign in to comment.