mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
57aa70c06c
Summary: Implement par of the discussion https://github.com/react-native-community/discussions-and-proposals/discussions/411, except the `.nvmrc` part, this includes: - Setting `.ruby-version` in the main project and also `template/` - Fixing the CocoaPods version with a project-level `Gemfile` and also `template/Gemfile` - Using all `pod` executions from `bundle exec pod`, using the determined version - Script to manage and update the ruby version ## Changelog [iOS] [Added] - Gemfile with CocoaPods 1.11 and ruby-version (2.7.4) Pull Request resolved: https://github.com/facebook/react-native/pull/32303 Test Plan: Build for iOS and run all CircleCI tests to see if nothing changed Reviewed By: RSNara Differential Revision: D31344686 Pulled By: fkgozali fbshipit-source-id: 25c63131ca9b16d3cf6341019548e0d63bdcaefe
27 lines
754 B
Bash
Executable File
27 lines
754 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
# This script updates RNTester Podfile.lock after verifying the CocoaPods environment.
|
|
# Usage:
|
|
# source scripts/update_podfile_lock && update_pods
|
|
|
|
THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd)
|
|
RNTESTER_DIR="$THIS_DIR/../packages/rn-tester"
|
|
|
|
# Keep this separate for FB internal access.
|
|
validate_env () {
|
|
cd "$RNTESTER_DIR" || exit
|
|
bundle check || exit
|
|
cd "$THIS_DIR" || exit
|
|
}
|
|
|
|
update_pods () {
|
|
cd "$RNTESTER_DIR" || exit
|
|
bundle check || exit
|
|
bundle exec pod install
|
|
cd "$THIS_DIR" || exit
|
|
}
|