def _refresh_public_files(self, module): finder = GradleDirectoryFinder(module, self._project_info[module]['path'], self._cache_dir, package_name=self._project_info[module]['packagename']) public_xml_path = finder.get_public_xml_path() ids_xml_path = finder.get_ids_xml_path() rpath = finder.get_backup_r_path() if os.path.exists(public_xml_path) and os.path.exists(ids_xml_path) and os.path.exists(rpath): # self.debug('refresh {} public.xml and ids.xml'.format(dirpath)) # android_tools.generate_public_files_by_r(rpath, public_xml_path, ids_xml_path) # android_tools.merge_public_file_with_old(public_xml_path, ids_xml_path, dirpath) self.debug('refresh {} ids.xml'.format(module)) android_tools.generate_id_file_by_public(public_xml_path, ids_xml_path)
def _refresh_public_files(self, module): finder = GradleDirectoryFinder(module, self._project_info[module]['path'], self._cache_dir, package_name=self._project_info[module]['packagename']) public_xml_path = finder.get_public_xml_path() ids_xml_path = finder.get_ids_xml_path() rpath = finder.get_backup_r_path() if os.path.exists(public_xml_path) and os.path.exists(ids_xml_path) and os.path.exists(rpath): # self.debug('refresh {} public.xml and ids.xml'.format(dirpath)) # android_tools.generate_public_files_by_r(rpath, public_xml_path, ids_xml_path) # android_tools.merge_public_file_with_old(public_xml_path, ids_xml_path, dirpath) self.debug('refresh {} ids.xml'.format(module)) android_tools.generate_id_file_by_public(public_xml_path, ids_xml_path)
def keep_ids(self): public_keep_path = os.path.join(self._config['build_cache_dir'], 'public_keeper.xml') if os.path.exists(public_keep_path): self.debug('{} exists, move to dst: {}'.format(public_keep_path, self._public_xml_path)) import shutil shutil.copy(public_keep_path, self._public_xml_path) self.debug('generating ids.xml from public.xml...') android_tools.generate_id_file_by_public(self._public_xml_path, self._ids_xml_path) else: self.debug('generating public.xml and ids.xml...') rpath = self._finder.get_dst_r_path(config=self._config) self.debug('origin R.java path: ' + rpath) android_tools.generate_public_files_by_r(rpath, self._public_xml_path, self._ids_xml_path)
def keep_ids(self): public_keep_path = os.path.join(self._config['build_cache_dir'], 'public_keeper.xml') if os.path.exists(public_keep_path): self.debug('{} exists, move to dst: {}'.format(public_keep_path, self._public_xml_path)) import shutil shutil.copy(public_keep_path, self._public_xml_path) self.debug('generating ids.xml from public.xml...') android_tools.generate_id_file_by_public(self._public_xml_path, self._ids_xml_path) else: self.debug('generating public.xml and ids.xml...') rpath = self._finder.get_dst_r_path(config=self._config) self.debug('origin R.java path: ' + rpath) android_tools.generate_public_files_by_r(rpath, self._public_xml_path, self._ids_xml_path)