From e1c6270107ee835a601d9ba6980aeee63176c799 Mon Sep 17 00:00:00 2001 From: Engin Kurutepe Date: Wed, 8 Jan 2025 23:31:17 +0100 Subject: [PATCH 1/3] add latest macOS to bundler platforms --- Gemfile.lock | 1 + 1 file changed, 1 insertion(+) 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 From e94a3795bcb587d7bec3c006a01608460e4eff1e Mon Sep 17 00:00:00 2001 From: Engin Kurutepe Date: Thu, 9 Jan 2025 12:18:17 +0100 Subject: [PATCH 2/3] improve dev setup --- Contributing/CONTRIBUTING.md | 8 +++++++- Gemfile | 2 ++ fastlane/Fastfile | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) 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/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 From 4686427e03f7d0cbe2ac0eefcc584d27987fc86a Mon Sep 17 00:00:00 2001 From: Engin Kurutepe Date: Thu, 9 Jan 2025 12:29:15 +0100 Subject: [PATCH 3/3] fix circleci ruby version --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: