Skip to content

Commit 6015432

Browse files
committed
change fastlane to look for and upload app bundles
collect app bundles instead of APKs from gradle output
1 parent 9d4df62 commit 6015432

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

fastlane/platforms/android.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
build_status = 0
99
begin
1010
propagate_version(track: options[:track])
11-
gradle(task: 'assemble',
11+
gradle(task: 'bundle',
1212
build_type: 'Release',
1313
print_command: true,
1414
print_command_output: true)
@@ -20,9 +20,9 @@
2020
end
2121

2222
UI.message 'Generated files:'
23-
UI.message lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS]
23+
UI.message lane_context[SharedValues::GRADLE_ALL_AAB_OUTPUT_PATHS]
2424

25-
output = lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS].to_json
25+
output = lane_context[SharedValues::GRADLE_ALL_AAB_OUTPUT_PATHS].to_json
2626
File.open('../logs/products', 'w') { |file| file.write(output) }
2727
end
2828

@@ -38,9 +38,9 @@
3838
matchesque
3939
build(track: track)
4040

41-
lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS] =
42-
lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS].select do |apk|
43-
apk.end_with? '-release.apk'
41+
lane_context[SharedValues::GRADLE_ALL_AAB_OUTPUT_PATHS] =
42+
lane_context[SharedValues::GRADLE_ALL_AAB_OUTPUT_PATHS].select do |apk|
43+
apk.end_with? '-release.aab'
4444
end
4545

4646
supply(track: track, check_superseded_tracks: true)

0 commit comments

Comments
 (0)