async def run_with_client(self, args: Namespace, client: Client) -> None: async for install_response in client.install_dsym(args.dsym_path): if install_response.progress != 0.0 and not args.json: print("Installed {install_response.progress}%") elif args.json: print(json.dumps({"dsym": install_response.name})) else: print(f"Installed: {install_response.name}")
async def run_with_client(self, args: Namespace, client: Client) -> None: compression = (Compression[args.compression] if args.compression is not None else None) bundle_type = FileContainerType.APPLICATION if args.bundle_id else None async for install_response in client.install_dsym( args.dsym_path, args.bundle_id, compression, bundle_type, ): if install_response.progress != 0.0 and not args.json: print("Installed {install_response.progress}%") elif args.json: print(json.dumps({"dsym": install_response.name})) else: print(f"Installed: {install_response.name}")
async def install_dsym_test_bundle( self, args: Namespace, client: Client, test_bundle_location: str) -> Optional[str]: dsym_name = None dsym_path_location = args.install_dsym_test_bundle if args.install_dsym_test_bundle == NO_SPECIFIED_PATH: dsym_path_location = test_bundle_location + ".dSYM" if not os.path.exists(dsym_path_location): raise IdbException( "XCTest run failed! Error: --install-dsym flag was used but there is no file at location {}." .format(dsym_path_location)) async for install_response in client.install_dsym( dsym=dsym_path_location, bundle_id=args.test_bundle_id, bundle_type=FileContainerType.XCTEST, compression=None, ): if install_response.progress == 0.0: dsym_name = install_response.name return dsym_name