diff --git a/android/fastlane/Fastfile b/android/fastlane/Fastfile index 4d51933..57f9e95 100644 --- a/android/fastlane/Fastfile +++ b/android/fastlane/Fastfile @@ -31,6 +31,10 @@ platform :android do desc "```" lane :deployInternalFirebase do |options| release_notes = options[:release_notes] + if release_notes.nil? + commit = last_git_commit + release_notes = "Last commit with hash: #{commit[:commit_hash]} and message: #{commit[:message]}" + end buildReleaseApk() internal_apk = lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS].find{ |i| i[/app-*release*.apk/] } diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile index 183f6f3..38db66a 100644 --- a/ios/fastlane/Fastfile +++ b/ios/fastlane/Fastfile @@ -33,7 +33,13 @@ platform :ios do end desc "Description of what the lane does" - lane :deployInternalFirebase do + lane :deployInternalFirebase do |options| + release_notes = options[:release_notes] + if release_notes.nil? + commit = last_git_commit + release_notes = "Last commit with hash: #{commit[:commit_hash]} and message: #{commit[:message]}" + end + ipa_name = "Internal.ipa" buildReleaseIPA(ipa_name: ipa_name, method: "ad-hoc") @@ -42,6 +48,7 @@ platform :ios do app: FIREBASE_APP_DISTRIBUTION_APP_STAGING, groups: FIREBASE_APP_DISTRIBUTION_GROUPS_QA, ipa_path: "builds/#{ipa_name}", + release_notes: "#{release_notes}", ) cleanupKeyChain() end