Skip to content

Commit

Permalink
Merge pull request #14 from NijiDigital/bugfix/swiftgen
Browse files Browse the repository at this point in the history
"Fixing" swiftgen integration for now
  • Loading branch information
niji-mathieu-viel authored Feb 27, 2024
2 parents 024e1c1 + 92e9c8c commit 3c78f0b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions Forge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
fastlane_require 'fastlane-plugin-badge'
fastlane_require 'fastlane-plugin-brew'
fastlane_require 'fastlane-plugin-changelog'
fastlane_require 'fastlane-plugin-dependency_check_ios_analyzer'
fastlane_require 'fastlane-plugin-firebase_app_distribution'
fastlane_require 'fastlane-plugin-xcconfig'
fastlane_require 'fastlane-plugin-xcodegen'
fastlane_require 'fastlane-plugin-dependency_check_ios_analyzer'
end

after_all do |lane|
Expand Down Expand Up @@ -375,7 +375,11 @@
desc 'Generate assets with SwiftGen'
lane :swiftgen do
Dir.chdir("..") do
brew(command: 'install swiftgen')
# SwiftGen - GitHub issues : https://github.com/SwiftGen/SwiftGen/issues/1104
if `which swiftgen`.empty?
sh('curl -Lo /tmp/swiftgen.rb https://raw.githubusercontent.com/iMichka/homebrew-core/17ae00b4bf1640cc544eae5f6eec03775c09420b/Formula/swiftgen.rb')
sh('brew install /tmp/swiftgen.rb && rm /tmp/swiftgen.rb')
end
sh("swiftgen config run --config #{ENV['SWIFTGEN_PATH']}")
end
end
Expand Down
4 changes: 2 additions & 2 deletions Forgefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gem 'danger-xcov'
gem 'fastlane-plugin-badge'
gem 'fastlane-plugin-brew'
gem 'fastlane-plugin-changelog'
gem 'fastlane-plugin-dependency_check_ios_analyzer'
gem 'fastlane-plugin-firebase_app_distribution'
gem 'fastlane-plugin-xcconfig'
gem 'fastlane-plugin-xcodegen'
gem 'fastlane-plugin-dependency_check_ios_analyzer'
gem 'fastlane-plugin-xcodegen'

0 comments on commit 3c78f0b

Please sign in to comment.