Skip to content

Commit 154e6ef

Browse files
committed
fix: shallow clone repo in backend wrapper tracy Podspec in prepare_command phase
1 parent 37577ff commit 154e6ef

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

packages/backend-wrapper-tracy/ReactNativeOttreliteBackendTracy.podspec

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,13 @@ Pod::Spec.new do |s|
3636

3737
project_dir = File.absolute_path("./ios/")
3838

39-
s.script_phase = {
40-
:name => "Build Tracy client",
41-
:execution_position => :before_compile,
42-
:script => <<-SCRIPT
43-
cd #{project_dir}
44-
if [ ! -d tracy ]; then
45-
echo "Cloning Tracy..."
46-
git clone -b v0.12.2 https://github.com/wolfpld/tracy.git
47-
fi
48-
SCRIPT
49-
}
39+
s.prepare_command = <<-SCRIPT
40+
cd #{project_dir}
41+
if [ ! -d tracy ]; then
42+
echo "Cloning Tracy..."
43+
git clone --depth 1 -b v0.12.2 https://github.com/wolfpld/tracy.git
44+
fi
45+
SCRIPT
5046

5147
load 'nitrogen/generated/ios/ReactNativeOttreliteBackendTracy+autolinking.rb'
5248
add_nitrogen_files(s)

0 commit comments

Comments
 (0)