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

Commit 86dc687

Browse files
Merge pull request #125 from launchdarkly/lchan/sc-157837/try-0.69.0
Update CircleCI config and Supported range for 0.69.x
2 parents 648e26b + e30dec3 commit 86dc687

File tree

4 files changed

+24
-16
lines changed

4 files changed

+24
-16
lines changed

.circleci/config.yml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,27 @@ jobs:
4545
- run:
4646
name: Create CI test application for RN <<parameters.rn-version>>
4747
command: |
48-
[ -d "CITest" ] || npx react-native init CITest --version <<parameters.rn-version>> --skip-install
48+
cd ..
49+
mkdir -p test
50+
cd test
51+
[ -d "CITest" ] || npx react-native@<<parameters.rn-version>> init CITest --version <<parameters.rn-version>> --skip-install
4952
5053
- save_cache:
5154
name: Save RN project template to cache
5255
key: v1-rn-template-cache-<<parameters.rn-version>>
5356
paths:
54-
- CITest
57+
- ../test/CITest
5558

5659
# See the `patches` directory
5760
- run:
5861
name: Do any necessary patching
5962
command: |
60-
if [ -d ".circleci/patches/<<parameters.rn-version>>" ]; then cp -r .circleci/patches/<<parameters.rn-version>>/* CITest/; fi
61-
if [ -x "CITest/patch.sh" ] ; then cd CITest && ./patch.sh; fi
63+
if [ -d ".circleci/patches/<<parameters.rn-version>>" ]; then cp -r .circleci/patches/<<parameters.rn-version>>/* ../test/CITest/; fi
64+
if [ -x "../test/CITest/patch.sh" ] ; then cd ../test/CITest && ./patch.sh; fi
6265
6366
- run:
6467
name: Add LaunchDarkly dependency
65-
command: cd CITest && npx yarn add file:..
68+
command: cd ../test/CITest && npx yarn add file:../../project
6669

6770
- restore_cache:
6871
name: Restore gem cache
@@ -85,14 +88,14 @@ jobs:
8588

8689
- run:
8790
name: Install iOS Pods
88-
command: cd CITest/ios && pod install
91+
command: cd ../test/CITest/ios && pod install
8992

9093
- run:
9194
name: Build application for iOS (Release)
9295
command: |
9396
mkdir -p artifacts
94-
cd CITest/ios
95-
xcodebuild -workspace CITest.xcworkspace -scheme CITest build -configuration Release -destination "generic/platform=iOS" CODE_SIGNING_ALLOWED=NO GCC_WARN_INHIBIT_ALL_WARNINGS=YES | tee '../../artifacts/xcb-<<parameters.rn-version>>.txt' | xcpretty
97+
cd ../test/CITest/ios
98+
xcodebuild -workspace CITest.xcworkspace -scheme CITest build -configuration Release -destination "generic/platform=iOS" CODE_SIGNING_ALLOWED=NO GCC_WARN_INHIBIT_ALL_WARNINGS=YES | tee '../../../project/artifacts/xcb-<<parameters.rn-version>>.txt' | xcpretty
9699
97100
- when:
98101
# We only care to build Android application and debug iOS Build for a single XCode version
@@ -102,11 +105,11 @@ jobs:
102105
- run:
103106
name: Build application for iOS (Debug)
104107
command: |
105-
cd CITest/ios
106-
xcodebuild -workspace CITest.xcworkspace -scheme CITest build -configuration Debug -destination "generic/platform=iOS" CODE_SIGNING_ALLOWED=NO GCC_WARN_INHIBIT_ALL_WARNINGS=YES | tee '../../artifacts/xcb-<<parameters.rn-version>>.txt' | xcpretty
108+
cd ../test/CITest/ios
109+
xcodebuild -workspace CITest.xcworkspace -scheme CITest build -configuration Debug -destination "generic/platform=iOS" CODE_SIGNING_ALLOWED=NO GCC_WARN_INHIBIT_ALL_WARNINGS=YES | tee '../../../project/artifacts/xcb-<<parameters.rn-version>>.txt' | xcpretty
107110
- run:
108111
name: Build application for Android
109-
command: cd CITest/android && ./gradlew packageRelease
112+
command: cd ../test/CITest/android && ./gradlew packageRelease
110113

111114
- store_artifacts:
112115
path: artifacts
@@ -138,7 +141,12 @@ workflows:
138141
name: rn<<matrix.rn-version>>-xc<<matrix.xcode-version>>-build-apps-using-template
139142
matrix:
140143
parameters:
141-
rn-version: ["0.64.3", "0.65.2", "0.66.4", "0.67.3", "0.68.0"]
142-
xcode-version: ["12.2.0", "12.5.1", "13.2.1"]
144+
rn-version: ["0.64.3", "0.65.2", "0.66.4", "0.67.3", "0.68.0","0.69.4"]
145+
xcode-version: ["12.5.1", "13.2.1", "13.4.1"]
146+
exclude:
147+
- rn-version: "0.64.3"
148+
xcode-version: "13.4.1"
149+
- rn-version: "0.65.2"
150+
xcode-version: "13.4.1"
143151
requires:
144152
- test-javascript

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ LaunchDarkly overview
1414
Supported versions
1515
-------------------------
1616

17-
This SDK is currently compatible with React Native versions `>=0.64 <0.69`, the minimum iOS deployment target is `10.0`, and the minimum Android SDK version is `21`. Builds are tested with XCode 12.2+.
17+
This SDK is currently compatible with React Native versions `>=0.64 <0.70`, the minimum iOS deployment target is `10.0`, and the minimum Android SDK version is `21`. Builds are tested with XCode 12.5+. Please look at the CircleCI test build to see which combination of React Native and XCode works together.
1818

1919
For React Native `0.63.x` support, use the latest [`5.1.x` release](https://github.com/launchdarkly/react-native-client-sdk/releases/tag/5.1.1).
2020

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"homepage": "https://docs.launchdarkly.com/sdk/client-side/react-native",
2525
"peerDependencies": {
26-
"react-native": ">=0.64.0 <0.69.0"
26+
"react-native": ">=0.64.0 <0.70.0"
2727
},
2828
"devDependencies": {
2929
"jest": "^26.6.3",

0 commit comments

Comments
 (0)