Use fastlane for deployment

This commit is contained in:
Geoffroy Bonneville
2025-11-09 15:27:11 -05:00
parent b48655e40a
commit 92dc0ffa2d
4 changed files with 29 additions and 55 deletions

View File

@@ -1,26 +1,23 @@
default_platform(:android)
platform :android do
desc "Run all unit tests"
lane :test do
gradle(task: "testDebugUnitTest")
end
desc "Build a release APK or AAB for beta testing"
lane :beta do
gradle(task: "clean bundleRelease")
upload_to_play_store(
track: "beta",
aab: "app/build/outputs/bundle/release/app-release.aab"
)
end
desc "Deploy the production version to Google Play"
desc "Build, test, and deploy the production version to Google Play"
lane :deploy do
gradle(task: "clean bundleRelease")
gradle(task: "testDebugUnitTest")
gradle(task: "clean :donextv2:bundleRelease")
upload_to_play_store(
track: "production",
aab: "app/build/outputs/bundle/release/app-release.aab"
aab: "donextv2/build/outputs/bundle/release/donextv2-release.aab"
)
end
end
desc "Build, test, and deploy to Google Play"
lane :internal do
gradle(task: "testDebugUnitTest")
gradle(task: "clean :donextv2:bundleRelease")
upload_to_play_store(
track: "internal",
aab: "donextv2/build/outputs/bundle/release/donextv2-release.aab"
)
end
end