Some checks failed
Deploy Flutter to Firebase / deploy-android (push) Failing after 13m51s
28 lines
927 B
Ruby
28 lines
927 B
Ruby
default_platform(:android)
|
|
|
|
platform :android do
|
|
desc "Déploiement AAB vers Firebase"
|
|
lane :deploy_firebase do
|
|
# 1. Décoder le Keystore
|
|
if ENV['ANDROID_KEYSTORE_BASE64']
|
|
File.open("upload-keystore.jks", "wb") do |f|
|
|
f.write(Base64.decode64(ENV['ANDROID_KEYSTORE_BASE64']))
|
|
end
|
|
end
|
|
|
|
# 2. Construire l'App Bundle (.aab) au lieu de l'APK
|
|
# Note : Cela prend souvent un peu plus de RAM
|
|
sh("flutter build appbundle --release")
|
|
|
|
# 3. Envoyer vers Firebase
|
|
firebase_app_distribution(
|
|
app: ENV["FIREBASE_ANDROID_APP_ID"],
|
|
service_credentials_file: "firebase_credentials.json",
|
|
groups: "testers",
|
|
# --- CHANGEMENT IMPORTANT ICI ---
|
|
# On pointe vers le fichier AAB généré
|
|
android_artifact_path: "../build/app/outputs/bundle/release/app-release.aab",
|
|
release_notes: "Version AAB via Gitea. Commit: #{ENV['GITHUB_SHA']}"
|
|
)
|
|
end
|
|
end |