@@ -13,17 +13,17 @@ platform :android do
1313
1414 ### Build lanes
1515
16- desc "Build IPA file with specified parameters"
17- # Usage: bundle exec fastlane android build_ipa build_number:123 build_name:"1.0.0"
18- lane :build_aab do |options |
16+ desc "Build APK file with specified parameters"
17+ # Usage: bundle exec fastlane android build_apk build_number:123 build_name:"1.0.0"
18+ lane :build_apk do |options |
1919 # Fetch dependencies
2020 fetch_dependencies
2121
2222 build_name = options [ :build_name ]
2323 build_number = options [ :build_number ]
2424
2525 # Generate the full command
26- command = "flutter build aab --suppress-analytics"
26+ command = "flutter build apk --suppress-analytics"
2727 command += " --build-name=#{ build_name } " if build_name . to_s != ""
2828 command += " --build-number=#{ build_number } " if build_number . to_s != ""
2929
@@ -40,12 +40,12 @@ platform :android do
4040 )
4141
4242 build_number = ( latest_release &.dig ( :buildVersion ) || 0 ) . to_i + 1
43- build_aab ( build_number : build_number )
43+ build_apk ( build_number : build_number )
4444
4545 firebase_app_distribution (
4646 app : app_id ,
47- android_artifact_type : "AAB " ,
48- android_artifact_path : "#{ root_path } /build/app/outputs/bundle/release/ app-release.aab " ,
47+ android_artifact_type : "APK " ,
48+ android_artifact_path : "#{ root_path } /build/app/outputs/flutter-apk/ app-release.apk " ,
4949 groups : "stream-testers, ios-stream-testers" ,
5050 release_notes : "Lots of amazing new features to test out!" ,
5151 service_credentials_file : "#{ root_path } /android/firebase-service-account.json"
0 commit comments