diff --git a/.circleci/config.yml b/.circleci/config.yml index ad5778c..54dc2c1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -45,24 +45,27 @@ jobs: - run: name: Create CI test application for RN <> command: | - [ -d "CITest" ] || npx react-native init CITest --version <> --skip-install + cd .. + mkdir -p test + cd test + [ -d "CITest" ] || npx react-native@<> init CITest --version <> --skip-install - save_cache: name: Save RN project template to cache key: v1-rn-template-cache-<> paths: - - CITest + - ../test/CITest # See the `patches` directory - run: name: Do any necessary patching command: | - if [ -d ".circleci/patches/<>" ]; then cp -r .circleci/patches/<>/* CITest/; fi - if [ -x "CITest/patch.sh" ] ; then cd CITest && ./patch.sh; fi + if [ -d ".circleci/patches/<>" ]; then cp -r .circleci/patches/<>/* ../test/CITest/; fi + if [ -x "../test/CITest/patch.sh" ] ; then cd ../test/CITest && ./patch.sh; fi - run: name: Add LaunchDarkly dependency - command: cd CITest && npx yarn add file:.. + command: cd ../test/CITest && npx yarn add file:../../project - restore_cache: name: Restore gem cache @@ -85,14 +88,14 @@ jobs: - run: name: Install iOS Pods - command: cd CITest/ios && pod install + command: cd ../test/CITest/ios && pod install - run: name: Build application for iOS (Release) command: | mkdir -p artifacts - cd CITest/ios - 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-<>.txt' | xcpretty + cd ../test/CITest/ios + 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-<>.txt' | xcpretty - when: # We only care to build Android application and debug iOS Build for a single XCode version @@ -102,11 +105,11 @@ jobs: - run: name: Build application for iOS (Debug) command: | - cd CITest/ios - 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-<>.txt' | xcpretty + cd ../test/CITest/ios + 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-<>.txt' | xcpretty - run: name: Build application for Android - command: cd CITest/android && ./gradlew packageRelease + command: cd ../test/CITest/android && ./gradlew packageRelease - store_artifacts: path: artifacts @@ -138,7 +141,12 @@ workflows: name: rn<>-xc<>-build-apps-using-template matrix: parameters: - rn-version: ["0.64.3", "0.65.2", "0.66.4", "0.67.3", "0.68.0"] - xcode-version: ["12.2.0", "12.5.1", "13.2.1"] + rn-version: ["0.64.3", "0.65.2", "0.66.4", "0.67.3", "0.68.0","0.69.4"] + xcode-version: ["12.5.1", "13.2.1", "13.4.1"] + exclude: + - rn-version: "0.64.3" + xcode-version: "13.4.1" + - rn-version: "0.65.2" + xcode-version: "13.4.1" requires: - test-javascript diff --git a/README.md b/README.md index 092cb63..17d3a73 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ LaunchDarkly overview Supported versions ------------------------- -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+. +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. 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). diff --git a/package-lock.json b/package-lock.json index d18f970..f3fade2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "typescript": ">=3.8.3 <4.5.0" }, "peerDependencies": { - "react-native": ">=0.64.0 <0.69.0" + "react-native": ">=0.64.0 <0.70.0" } }, "node_modules/@ampproject/remapping": { diff --git a/package.json b/package.json index ff6e7b4..e80bc2f 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ }, "homepage": "https://docs.launchdarkly.com/sdk/client-side/react-native", "peerDependencies": { - "react-native": ">=0.64.0 <0.69.0" + "react-native": ">=0.64.0 <0.70.0" }, "devDependencies": { "jest": "^26.6.3",