Skip to content

Commit

Permalink
code output
Browse files Browse the repository at this point in the history
  • Loading branch information
mrehan27 committed Aug 6, 2024
1 parent 49766b5 commit d775ad3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/amiapp_flutter/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ lane :generate_new_version do |options|
app_version_code = time_in_millis
UI.message("Generated new versions => SDK: #{sdk_version_name}, App: #{app_version_name} (#{app_version_code})")

puts SDK_VERSION_NAME: sdk_version_name, APP_VERSION_NAME: app_version_name, APP_VERSION_CODE: app_version_code.to_s
puts "::set-output name=SDK_VERSION_NAME::#{sdk_version_name}"
puts "::set-output name=APP_VERSION_NAME::#{app_version_name}"
puts "::set-output name=APP_VERSION_CODE::#{app_version_code}"
end

# Helper method to update pubspec version
Expand Down Expand Up @@ -85,7 +87,7 @@ lane :update_flutter_sdk_version do |options|
project_path = options[:project_path] || File.join(Dir.pwd, '../../..')
version_name = options[:version_name] || ENV['SDK_VERSION_NAME']

UI.message("Updating sdk version to #{sdk_version_name} in #{project_path}")
UI.message("Updating sdk version to #{version_name} in #{project_path}")
UI.message("Env vars => SDK_VERSION_NAME: #{ENV['SDK_VERSION_NAME']}, APP_VERSION_NAME: #{ENV['APP_VERSION_NAME']}, APP_VERSION_CODE: #{ENV['APP_VERSION_CODE']}")

update_pubspec_version(project_path, version_name)
Expand Down

0 comments on commit d775ad3

Please sign in to comment.