Remy Moll a7e3553246
Some checks failed
Build and release debug APK / build (pull_request) Failing after 13m49s
Build and release debugging app to ios testflight / build (pull_request) Failing after 17m7s
rename lanes
2025-03-24 12:14:12 +01:00

54 lines
1.3 KiB
Ruby

default_platform(:android)
platform :android do
desc "Deploy a new version to closed testing (play store)"
lane :deploy_beta do
build_name = ENV["BUILD_NAME"]
build_number = ENV["BUILD_NUMBER"]
sh(
"flutter",
"build",
"appbundle",
"--release",
"--build-name=#{build_name}",
"--build-number=#{build_number}",
)
upload_to_play_store(
track: 'alpha',
# upload aab files intstead
skip_upload_apk: true,
skip_upload_changelogs: true,
aab: "../build/app/outputs/bundle/release/app-release.aab",
# this is the default output of flutter build ... --release
# in particular this the build folder lies in the flutter root folder
# this is the parent folder for the android folder
)
end
desc "Deploy a new version as a full release"
lane :deploy_release do
build_name = ENV["BUILD_NAME"]
build_number = ENV["BUILD_NUMBER"]
sh(
"flutter",
"build",
"appbundle",
"--release",
"--build-name=#{build_name}",
"--build-number=#{build_number}",
)
upload_to_play_store(
track: 'production',
skip_upload_apk: true,
skip_upload_changelogs: true,
aab: "../build/app/outputs/bundle/release/app-release.aab",
)
end
end