diff --git a/.circleci/config.yml b/.circleci/config.yml index b7e2021c62..3182d4f04c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1191,7 +1191,7 @@ jobs: danger: docker: - - image: cimg/ruby:3.1.2 + - image: cimg/ruby:3.2.0 working_directory: ~/purchases-ios shell: /bin/bash --login -o pipefail steps: @@ -1203,7 +1203,7 @@ jobs: tag-release-branch: docker: - - image: cimg/ruby:3.1.2 + - image: cimg/ruby:3.2.0 working_directory: ~/purchases-ios shell: /bin/bash --login -o pipefail steps: diff --git a/Contributing/CONTRIBUTING.md b/Contributing/CONTRIBUTING.md index a1dd3ebac7..4422409eba 100644 --- a/Contributing/CONTRIBUTING.md +++ b/Contributing/CONTRIBUTING.md @@ -51,10 +51,16 @@ We use fastlane 🚀 for all our automation, including setting up out dev enviro $brew install fastlane ``` +Install gem dependencies + +```bash +$bundle install --frozen +``` + ##### Run the setup lane. ```bash -$fastlane setup_dev +$bundle exec fastlane setup_dev ``` This installs [Homebrew](https://brew.sh/), and then [SwiftLint](https://github.com/realm/SwiftLint). After, it links in our pre-commit hook to run swiftlint. That saves you time so you don't have to wait for our CI to do it ⏱. diff --git a/Gemfile b/Gemfile index dedb13630e..431472ef8e 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,7 @@ source "https://rubygems.org" +ruby '~> 3.2.0' + gem 'fastlane' gem 'cocoapods' gem 'cocoapods-trunk' diff --git a/Gemfile.lock b/Gemfile.lock index f06690193c..f0e48b05ef 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -364,6 +364,7 @@ PLATFORMS arm64-darwin-21 arm64-darwin-22 arm64-darwin-23 + arm64-darwin-24 x86_64-darwin-22 x86_64-linux diff --git a/fastlane/Fastfile b/fastlane/Fastfile index be150d1d7b..e8322df90d 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -125,6 +125,7 @@ platform :ios do else UI.message("Linking pre-commit script 🔗") Dir.chdir ".." do + Dir.mkdir(".git/hooks") sh("ln -s -f ../../scripts/pre-commit.sh .git/hooks/pre-commit") end end