Skip to content

Commit

Permalink
Fix boilerplate setup script replacing false positives (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcantoinefortier authored Nov 10, 2023
1 parent 96b3930 commit 0d56f4b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion boilerplate-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ content=$(find . -type f \( \
-name "*.plist" -or \
-name "*.pbxproj" \
\) \
-and ! -path "./build/*" \
-and ! -path "./boilerplate-setup.sh" \
-and ! -path "./.idea/*" \
-and ! -path "./.git/*" \
Expand Down Expand Up @@ -95,7 +96,9 @@ success "Done!\n"
header "Updating iOS Framework name..."
frameworkName="Shared"
for file in $content; do
run "/usr/bin/sed -i .bak s/$frameworkName/$FRAMEWORK_NAME/g $file"
if [[ $file != *.kt ]]; then
run "/usr/bin/sed -i .bak s/$frameworkName/$FRAMEWORK_NAME/g $file"
fi
done
mv shared/"${frameworkName}".podspec shared/"${FRAMEWORK_NAME}".podspec
success "Done!\n"
Expand Down

0 comments on commit 0d56f4b

Please sign in to comment.