Skip to content

Commit 6dcbd0d

Browse files
committed
fix: fix workflow
1 parent b1843ec commit 6dcbd0d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/stream_flutter_workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ jobs:
151151
- platform: android
152152
os: ubuntu-latest
153153
working-directory: sample_app/android
154-
build-command: bundle exec fastlane build_aab
154+
build-command: bundle exec fastlane build_apk
155155
- platform: ios
156156
os: macos-latest
157157
working-directory: sample_app/ios

sample_app/android/fastlane/Fastfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)