Compare commits
3 Commits
68bf5a1502
...
27917a1f81
Author | SHA1 | Date | |
---|---|---|---|
27917a1f81 | |||
7ec59a5647 | |||
9813558d32 |
@ -7,7 +7,7 @@ module Fastlane
|
||||
def self.run(params)
|
||||
# Check parameters
|
||||
unless Helper::AndroidCdHelper.is_set(params[:beta_type])
|
||||
UI.error("❌ Parameters beta_type cannot be null")
|
||||
UI.user_error("❌ Parameters beta_type cannot be null")
|
||||
puts("Error on beta type parameter")
|
||||
end
|
||||
|
||||
@ -17,13 +17,13 @@ module Fastlane
|
||||
Helper::AndroidCdHelper.decrypt_android_keys('.')
|
||||
|
||||
# Clean the project before building
|
||||
Fastlane::Actions.gradle(task: "clean")
|
||||
other_action.gradle(task: "clean")
|
||||
|
||||
# Set the build number based on the number of commits
|
||||
build_number = Fastlane::Actions.number_of_commits
|
||||
build_number = other_action.number_of_commits
|
||||
|
||||
# Build the Android App Bundle
|
||||
Actions(GradleAction.run(
|
||||
other_action.gradle(
|
||||
task: "bundle",
|
||||
build_type: "Release",
|
||||
print_command: true,
|
||||
@ -33,7 +33,7 @@ module Fastlane
|
||||
))
|
||||
|
||||
# Upload the Android App Bundle to the Play Store
|
||||
Actions::UploadToPlayStoreAction.run(
|
||||
other_action.upload_to_play_store(
|
||||
track: params[:beta_type],
|
||||
json_key: './service_account_key.json',
|
||||
aab: '../build/app/outputs/bundle/release/app-release.aab',
|
||||
|
@ -7,14 +7,12 @@ module Fastlane
|
||||
def self.run(params)
|
||||
# Check from parameters
|
||||
unless Helper::AndroidCdHelper.is_set(params[:from])
|
||||
UI.error("❌ Parameters from cannot be null")
|
||||
puts("Error on beta type parameter")
|
||||
UI.user_error("❌ Parameters from cannot be null")
|
||||
end
|
||||
|
||||
# Check destination parameters
|
||||
unless Helper::AndroidCdHelper.is_set(params[:destination])
|
||||
UI.error("❌ Parameters destination cannot be null")
|
||||
puts("Error on beta type parameter")
|
||||
UI.user_error("❌ Parameters destination cannot be null")
|
||||
end
|
||||
|
||||
UI.message("⌛️ Promoting to Google Play Store from #{params[:from]} to #{params[:destination]}..")
|
||||
@ -23,7 +21,7 @@ module Fastlane
|
||||
Helper::AndroidCdHelper.decrypt_android_keys('.')
|
||||
|
||||
# Upload the Android App Bundle to the Play Store
|
||||
Fastlane::Actions.upload_to_play_store(
|
||||
other_action.upload_to_play_store(
|
||||
track: params[:from],
|
||||
json_key: './service_account_key.json',
|
||||
skip_upload_apk: true,
|
||||
|
@ -17,7 +17,7 @@ module Fastlane
|
||||
# Move the extracted files to the current directory
|
||||
`jar xvf #{android_directory} && mv #{android_directory}/android_keys/* #{android_directory}`
|
||||
else
|
||||
puts("Erreur lors de la décompression du fichier GPG")
|
||||
UI.user_error("❌ Erreur lors de la décompression du fichier GPG")
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user