@@ -25,16 +25,19 @@ use crate::utils::fs::get_sha1_checksums;
2525use crate :: utils:: fs:: TempDir ;
2626use crate :: utils:: fs:: TempFile ;
2727#[ cfg( all( target_os = "macos" , target_arch = "aarch64" ) ) ]
28- use crate :: utils:: mobile_app:: { handle_asset_catalogs, ipa_to_xcarchive, is_ipa_file} ;
29- use crate :: utils:: mobile_app:: { is_aab_file, is_apk_file, is_apple_app, is_zip_file} ;
28+ use crate :: utils:: mobile_app:: {
29+ handle_asset_catalogs, ipa_to_xcarchive, is_apple_app, is_ipa_file,
30+ } ;
31+ use crate :: utils:: mobile_app:: { is_aab_file, is_apk_file, is_zip_file} ;
3032use crate :: utils:: progress:: ProgressBar ;
3133use crate :: utils:: vcs;
3234
3335pub fn make_command ( command : Command ) -> Command {
3436 #[ cfg( all( target_os = "macos" , target_arch = "aarch64" ) ) ]
3537 const HELP_TEXT : & str = "The path to the mobile app files to upload. Supported files include Apk, Aab, XCArchive, and IPA." ;
3638 #[ cfg( not( all( target_os = "macos" , target_arch = "aarch64" ) ) ) ]
37- const HELP_TEXT : & str = "The path to the mobile app files to upload. Supported files include Apk, Aab, and XCArchive." ;
39+ const HELP_TEXT : & str =
40+ "The path to the mobile app files to upload. Supported files include Apk, and Aab." ;
3841 command
3942 . about ( "[EXPERIMENTAL] Upload mobile app files to a project." )
4043 . org_arg ( )
@@ -201,6 +204,7 @@ fn handle_file(path: &Path, byteview: &ByteView) -> Result<TempFile> {
201204fn validate_is_mobile_app ( path : & Path , bytes : & [ u8 ] ) -> Result < ( ) > {
202205 debug ! ( "Validating mobile app format for: {}" , path. display( ) ) ;
203206
207+ #[ cfg( all( target_os = "macos" , target_arch = "aarch64" ) ) ]
204208 if is_apple_app ( path) {
205209 debug ! ( "Detected XCArchive directory" ) ;
206210 return Ok ( ( ) ) ;
@@ -234,7 +238,7 @@ fn validate_is_mobile_app(path: &Path, bytes: &[u8]) -> Result<()> {
234238 #[ cfg( all( target_os = "macos" , target_arch = "aarch64" ) ) ]
235239 let format_list = "APK, AAB, XCArchive, or IPA" ;
236240 #[ cfg( not( all( target_os = "macos" , target_arch = "aarch64" ) ) ) ]
237- let format_list = "APK, AAB, or XCArchive " ;
241+ let format_list = "APK, or AAB " ;
238242
239243 Err ( anyhow ! (
240244 "File is not a recognized mobile app format ({format_list}): {}" ,
0 commit comments