MCPcopy
hub / github.com/alibaba/freeline / run_dex_task

Method run_dex_task

freeline_core/android_tools.py:609–627  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

607 return False
608
609 def run_dex_task(self):
610 patch_classes_cache_dir = self._finder.get_patch_classes_cache_dir()
611 # dex_path = self._finder.get_dst_dex_path()
612 dex_path = self._finder.get_patch_dex_dir()
613 add_path = None
614 if is_windows_system():
615 add_path = str(os.path.abspath(os.path.join(self._javac, os.pardir)))
616 dex_args = [self._dx, '--dex', '--multi-dex', '--output=' + dex_path, patch_classes_cache_dir]
617 else:
618 dex_args = [self._dx, '--dex', '--no-optimize', '--force-jumbo', '--multi-dex', '--output=' + dex_path,
619 patch_classes_cache_dir]
620
621 self.debug('dex exec: ' + ' '.join(dex_args))
622 output, err, code = cexec(dex_args, add_path=add_path)
623
624 if code != 0:
625 raise FreelineException('incremental dex compile failed.', '{}\n{}'.format(output, err))
626 else:
627 mark_restart_flag(self._cache_dir)
628
629 def _handle_with_backup_files(self, is_success):
630 res_dir = self._finder.get_dst_res_dir()

Callers 2

executeMethod · 0.80
executeMethod · 0.80

Calls 7

debugMethod · 0.95
is_windows_systemFunction · 0.90
cexecFunction · 0.90
FreelineExceptionClass · 0.90
mark_restart_flagFunction · 0.85
get_patch_dex_dirMethod · 0.80

Tested by

no test coverage detected