Skip to content

Commit

Permalink
ci-cd: Setup fastlane
Browse files Browse the repository at this point in the history
  • Loading branch information
roxk committed Sep 9, 2024
1 parent 97a2874 commit 8167138
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flutter-example/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source "https://rubygems.org"

gem "fastlane", "2.199.0"
29 changes: 29 additions & 0 deletions flutter-example/fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

default_platform(:ios)

platform :ios do
desc "Deploy app"
lane :app_deploy do |options|
app_build options
app_testflight options
end

desc "Build app"
lane :app_build do |options|
cocoapods()

build_app(
workspace: "app.xcworkspace",
scheme: "app",
xcargs: "CURRENT_PROJECT_VERSION='#{options[:version]}'"
)
end

desc "Upload app to testflight"
lane :app_testflight do |options|
upload_to_testflight(
api_key_path: ENV['APP_STORE_CONNECT_API_KEY_FILE'],
skip_waiting_for_build_processing: true
)
end
end

0 comments on commit 8167138

Please sign in to comment.