INNER CODE UNIT · Python

file_path

poingstudios/godot-admob-plugin · .github/scripts/update_docs_dependencies.py:47

        file_path = root_dir / self.CONFIG_PATH
        if not file_path.is_file():
            return []

        match = self.VERSION_REGEX.search(file_path.read_text(encoding="utf-8"))
        if not match:
            return []

        version = match.group(1)
        return [
            VersionRule(
                pattern=r"(com\.google\.android\.libraries\.ads\.mobile\.sdk:ads-mobile-sdk:)\d+\.\d+\.\d+",
                replacement=rf"\g<1>{version}",
            ),
            VersionRule(
                pattern=r"(com\.google\.android\.libraries\.ads\.mobile\.sdk/ads-mobile-sdk/)\d+\.\d+\.\d+",
                replacement=rf"\g<1>{version}",
            ),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…