Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ firebase-debug.log
/flutter/fastlane/Preview.html
# "scan" action temporary files.
/flutter/fastlane/test_output
# fastlane updates the README templates way too often, resulting in CI failures.
/**/fastlane/README.md

# File created by "flutter generate".
/flutter/.packages.generated
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"dart.flutterSdkPath": "flutter/.flutter"
}
25 changes: 10 additions & 15 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,11 @@ lane :update do
update_analysis_options
Dir.chdir('..') do
Dir.chdir('flutter') do
# This will automatically upgrade flutter, if necessary. It won't run
# "flutter update-packages", but we don't need it.
flutter_root = flutter_bootstrap(flutter_channel: 'stable')

# Copy over .gitignore from official templates.
FileUtils.cp(
File.join(
flutter_root,
'packages/flutter_tools/templates/app/.gitignore.tmpl',
),
'.gitignore',
)

Dir.chdir('fastlane') do
# This will automatically upgrade flutter, if necessary. It won't run
# "flutter update-packages", but we don't need it.
flutter_bootstrap(flutter_channel: 'stable')

# Upgrade current application packages (within pubspec.yaml spec).
flutter(args: %w(packages upgrade))
end
Expand All @@ -44,7 +35,9 @@ lane :update do
if RUBY_PLATFORM.include? 'darwin'
# These files will be automatically re-generated by the build.
podfile_path = 'ios/Podfile'
File.delete(podfile_path, "#{podfile_path}.lock")
[podfile_path, "#{podfile_path}.lock"].each do |fn|
File.delete(fn) if File.exist?(fn)
end
Dir.chdir('fastlane') do
flutter_build(
build: 'ios',
Expand Down Expand Up @@ -136,7 +129,9 @@ INFO

project_id = "#{product}-debug-#{_github_fork_name()}"
sh %w(npm install)
Dir.chdir('functions') { sh %w(npm install) }
if File.directory?('functions')
Dir.chdir('functions') { sh %w(npm install) }
end
fastlane_require 'shellwords'
# Give Firebase login interactive mode and do not crop lines.
exec %W(npm start -- #{project_id}).shelljoin
Expand Down
6 changes: 6 additions & 0 deletions flutter/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,12 @@ platform :ios do
if lane_context[SharedValues::PROMOTE_RELEASE]
retry_on_exception do
upload_to_app_store(
# Publishing to AppStore fails with message
# Precheck cannot check In-app purchases with the App Store
# Connect API Key
# Therefore we set this property to false as described here:
# https://github.com/fastlane/fastlane/issues/18250
precheck_include_in_app_purchases: false,
app_identifier: APP_IDENTIFIER,
overwrite_screenshots: true,
submit_for_review: true,
Expand Down