Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
manhpham90vn committed Sep 19, 2024
1 parent 25caa5c commit ff3706e
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 18 deletions.
4 changes: 4 additions & 0 deletions project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,18 @@ targets:
CODE_SIGN_ENTITLEMENTS: Sources/Resources/MyApp.entitlements
preBuildScripts:
- name: "Generate"
shell: /bin/zsh
script: scripts/project/swiftgen.sh
postCompileScripts:
- name: "Swiftlint"
shell: /bin/zsh
script: scripts/project/linter.sh
- name: "GoogleServiceInfo"
shell: /bin/zsh
script: scripts/project/firebase.sh
postBuildScripts:
- name: "Crashlytics"
shell: /bin/zsh
script: |
"${PODS_ROOT}/FirebaseCrashlytics/run"
inputFiles:
Expand Down
2 changes: 1 addition & 1 deletion scripts/brew/brew-cmd.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/zsh

if ! [[ $BREW_CMD ]];
then
Expand Down
2 changes: 1 addition & 1 deletion scripts/brew/brew-install-package.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/zsh

source $(cd $(dirname ${BASH_SOURCE:-$0}); pwd)/brew-install.sh

Expand Down
2 changes: 1 addition & 1 deletion scripts/brew/brew-install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/zsh

source $(cd $(dirname ${BASH_SOURCE:-$0}); pwd)/brew-cmd.sh

Expand Down
2 changes: 1 addition & 1 deletion scripts/common/generate.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/zsh

# generate swiftgen
rm -rf Sources/Resources/Generated/*
Expand Down
2 changes: 1 addition & 1 deletion scripts/common/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/zsh

# install cocoapods
if ! brew list cocoapods &> /dev/null
Expand Down
2 changes: 1 addition & 1 deletion scripts/logs/debug.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
#!/bin/zsh

printf "\033[36mDEBUG\033[0m: $*\n"
2 changes: 1 addition & 1 deletion scripts/logs/error.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/zsh

printf "\033[91mERROR\033[0m: $*\n" 1>&2
exit 1
2 changes: 1 addition & 1 deletion scripts/logs/info.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
#!/bin/zsh

printf "\033[93mINFO\033[0m: $*\n"
2 changes: 1 addition & 1 deletion scripts/project/delete.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/zsh

rm -rf \
./*.xcodeproj \
Expand Down
2 changes: 1 addition & 1 deletion scripts/project/firebase.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/zsh

PATH_TO_GOOGLE_PLISTS="${PROJECT_DIR}/Sources/Configs/GoogleServices"
echo "warning: Copy file from $PATH_TO_GOOGLE_PLISTS in $CONFIGURATION to ${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/GoogleService-Info.plist"
Expand Down
4 changes: 1 addition & 3 deletions scripts/project/linter.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/bin/sh

source ~/.zshrc
#!/bin/zsh

sh $(cd $(dirname ${BASH_SOURCE:-$0}); pwd)/../logs/info.sh "warning: Run swiftlint"

Expand Down
2 changes: 1 addition & 1 deletion scripts/project/swiftgen.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/zsh

source ~/.zshrc

Expand Down
2 changes: 1 addition & 1 deletion scripts/project/unit-test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/zsh

if ! bundle exec fastlane version &> /dev/null
then
Expand Down
2 changes: 1 addition & 1 deletion scripts/project/upload-testflight.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/zsh

source $(cd $(dirname ${BASH_SOURCE:-$0}); pwd)/../ruby/ruby-cmd.sh

Expand Down
2 changes: 1 addition & 1 deletion scripts/slather/slather-cmd.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/zsh

if ! [[ $SLATHER_CMD ]];
then
Expand Down
2 changes: 1 addition & 1 deletion scripts/slather/slather-run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/zsh

source $(cd $(dirname ${BASH_SOURCE:-$0}); pwd)/slather-cmd.sh

Expand Down

0 comments on commit ff3706e

Please sign in to comment.