Exemplo n.º 1
0
    def execute(self):
        # reload project info
        from dispatcher import read_freeline_config
        config = read_freeline_config()

        write_json_cache(os.path.join(config['build_cache_dir'], 'project_info_cache.json'),
                         get_project_info(config))
Exemplo n.º 2
0
    def execute(self):
        # reload project info
        from dispatcher import read_freeline_config
        config = read_freeline_config()

        write_json_cache(os.path.join(config['build_cache_dir'], 'project_info_cache.json'),
                         get_project_info(config))
Exemplo n.º 3
0
 def check_build_environment(self):
     CleanBuilder.check_build_environment(self)
     if self._project_info is None:
         project_info_cache_path = os.path.join(self._config['build_cache_dir'], 'project_info_cache.json')
         if os.path.exists(project_info_cache_path):
             self._project_info = load_json_cache(project_info_cache_path)
         else:
             self._project_info = get_project_info(self._config)
Exemplo n.º 4
0
 def check_build_environment(self):
     CleanBuilder.check_build_environment(self)
     if self._project_info is None:
         project_info_cache_path = os.path.join(self._config['build_cache_dir'], 'project_info_cache.json')
         if os.path.exists(project_info_cache_path):
             self._project_info = load_json_cache(project_info_cache_path)
         else:
             self._project_info = get_project_info(self._config)
Exemplo n.º 5
0
    def check_build_environment(self):
        if not self._project_info:
            self._project_info = get_project_info(self._config)

        self._all_modules = self._project_info.keys()

        for item in self._project_info.values():
            self._module_dir_map[item['name']] = item['relative_dir']

        for key, value in self._project_info.iteritems():
            self._module_dependencies[key] = [item for item in value['local_module_dep']]

        self._is_art = android_tools.get_device_sdk_version_by_adb(Builder.get_adb(self._config)) > 20
        # merge all resources modified files to main resources
        self.__merge_res_files()
Exemplo n.º 6
0
    def check_build_environment(self):
        if not self._project_info:
            self._project_info = get_project_info(self._config)

        self._all_modules = self._project_info.keys()

        for item in self._project_info.values():
            self._module_dir_map[item['name']] = item['relative_dir']

        for key, value in self._project_info.iteritems():
            self._module_dependencies[key] = [item for item in value['local_module_dep']]

        self._is_art = android_tools.get_device_sdk_version_by_adb(Builder.get_adb(self._config)) > 20
        # merge all resources modified files to main resources
        self.__merge_res_files()
Exemplo n.º 7
0
 def execute(self):
     write_json_cache(
         os.path.join(self._config['build_cache_dir'],
                      'project_info_cache.json'),
         get_project_info(self._config))