Skip to content

Commit

Permalink
fix(POM-346): SwiftGen integration (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-vysotskyi-cko authored Feb 27, 2024
1 parent 9dae7a6 commit 4b236a9
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ tap "lokalise/cli-2"

brew "xcodegen"
brew "swiftlint"
brew "swiftgen"
brew "sourcery"
brew "lokalise2"
brew "mint"
2 changes: 1 addition & 1 deletion Example/Brewfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
brew "xcodegen"
brew "swiftlint"
brew "swiftgen"
brew "mint"
3 changes: 3 additions & 0 deletions Example/Scripts/BootstrapProject.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ set -euo pipefail
# Installs brew dependencies
brew bundle -q

# SwiftGen is broken with Brew so installed with Mint instead
mint install SwiftGen/SwiftGen

# Generates project
xcodegen generate

Expand Down
2 changes: 1 addition & 1 deletion Example/Scripts/SwiftGen/SwiftGen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ set -euo pipefail
export PATH="/opt/homebrew/bin:$PATH"

# Run SwiftGen
swiftgen config run
mint run swiftgen config run
3 changes: 3 additions & 0 deletions Scripts/BootstrapProject.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ export CURRENT_VERSION="$(cat Version.resolved)"
# Installs brew dependencies
brew bundle -q

# SwiftGen is broken with Brew so installed with Mint instead
mint install SwiftGen/SwiftGen

# Creates project
xcodegen generate
2 changes: 1 addition & 1 deletion Scripts/SwiftGen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ set -euo pipefail
export PATH="/opt/homebrew/bin:$PATH"

# Run SwiftGen
swiftgen config run --config "${TARGET_ROOT}/swiftgen.yml"
mint run swiftgen config run --config "${TARGET_ROOT}/swiftgen.yml"

0 comments on commit 4b236a9

Please sign in to comment.