INNER CODE UNIT · Python

process_file_ref

jpush/jpush-react-native · .claude/skills/update-sdk/scripts/plugin_updater.py:210

def process_file_ref(ref: dict, version: str) -> bool:
    path = ref["path"]
    if "pattern" in ref:
        return update_by_pattern(path, ref["pattern"], version)
    elif "key" in ref:
        if path.endswith(".yaml") or path.endswith(".yml"):
            return update_yaml_version(path, version)
        elif path.endswith(".xml"):
            return update_xml_attribute(path, ref["key"], version)
        else:
            return update_json_field(path, ref["key"], version)
    elif "dep_prefix" in ref:
        return update_config_json_dep(path, ref["dep_prefix"], version)
    return False


def main():
    parser = argparse.ArgumentParser(description="Update SDK version references")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…