diff --git a/android/fastlane/Fastfile b/android/fastlane/Fastfile index 63d6088225..f3f523549b 100644 --- a/android/fastlane/Fastfile +++ b/android/fastlane/Fastfile @@ -29,6 +29,13 @@ platform :android do end end +platform :android do + desc "Upload a production version to Google Play" + lane :production do + deploy_to_play_store('production') + end +end + def deploy_to_play_store(track) sh "flutter build appbundle -v --obfuscate --split-debug-info=./build/app/outputs/bundle/release/symbols --dart-define=cronetHttpNoPlay=true --dart-define=LICHESS_HOST=lichess.org --dart-define=LICHESS_WS_HOST=socket.lichess.org --dart-define=LICHESS_WS_SECRET=#{ENV['WS_SECRET']}" upload_to_play_store(