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