| 
8 | 8 | 		build_status = 0  | 
9 | 9 | 		begin  | 
10 | 10 | 			propagate_version(track: options[:track])  | 
11 |  | -			gradle(task: 'assemble',  | 
 | 11 | +			gradle(task: 'bundle',  | 
12 | 12 | 			       build_type: 'Release',  | 
13 | 13 | 			       print_command: true,  | 
14 | 14 | 			       print_command_output: true)  | 
 | 
20 | 20 | 		end  | 
21 | 21 | 
 
  | 
22 | 22 | 		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]  | 
24 | 24 | 
 
  | 
25 |  | -		output = lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS].to_json  | 
 | 25 | +		output = lane_context[SharedValues::GRADLE_ALL_AAB_OUTPUT_PATHS].to_json  | 
26 | 26 | 		File.open('../logs/products', 'w') { |file| file.write(output) }  | 
27 | 27 | 	end  | 
28 | 28 | 
 
  | 
 | 
38 | 38 | 		matchesque  | 
39 | 39 | 		build(track: track)  | 
40 | 40 | 
 
  | 
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'  | 
44 |  | -		end  | 
 | 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'  | 
 | 44 | +			end  | 
45 | 45 | 
 
  | 
46 |  | -		supply(track: track,  | 
47 |  | -		       check_superseded_tracks: true)  | 
 | 46 | +		supply(track: track, check_superseded_tracks: true)  | 
48 | 47 | 
 
  | 
49 | 48 | 		generate_sourcemap  | 
50 | 49 | 		upload_sourcemap_to_bugsnag  | 
 | 
84 | 83 | 		dest = File.expand_path('..', '.')  | 
85 | 84 | 
 
  | 
86 | 85 | 		# we export this variable so that Gradle knows where to find the .properties file  | 
87 |  | -		signing_props_dest = "#{dest}/android/app/signing.properties"  | 
 | 86 | +		signing_props_dest = "#{dest}/android/app/upload-keystore.properties"  | 
88 | 87 | 		ENV['KEYSTORE_FILE'] = signing_props_dest  | 
89 | 88 | 
 
  | 
90 | 89 | 		pairs = [  | 
91 |  | -			{:from => "#{src}/signing.properties", :to => signing_props_dest},  | 
92 |  | -			{:from => "#{src}/my-release-key.keystore", :to => "#{dest}/android/app/my-release-key.keystore"},  | 
 | 90 | +			{:from => "#{src}/upload-keystore.properties", :to => signing_props_dest},  | 
 | 91 | +			{:from => "#{src}/upload-keystore.keystore", :to => "#{dest}/android/app/upload-keystore.keystore"},  | 
93 | 92 | 			{:from => "#{src}/play-private-key.json", :to => "#{dest}/fastlane/play-private-key.json"},  | 
94 | 93 | 		]  | 
95 | 94 | 
 
  | 
 | 
0 commit comments