"""
        Вставляет новые файлы в проект

"insert_new": {
  "enabled": true
}
"""

priority = 0

# imports
import os
import shutil
from utils.public import insert_after_public


# Patch
def apply(config: dict) -> bool:
    # Mod first launch window
    shutil.copy("./resources/avatar.png", "./decompiled/assets/avatar.png")
    shutil.copy(
        "./resources/OpenSans-Regular.ttf",
        "./decompiled/assets/OpenSans-Regular.ttf",
    )
    shutil.copytree(
        "./resources/smali_classes4/", "./decompiled/smali_classes4/"
    )

    # Mod assets
    shutil.copy(
        "./resources/ytsans_medium.ttf",
        "./decompiled/res/font/ytsans_medium.ttf",
    )
    os.remove("./decompiled/res/font/ytsans_medium.otf")

    return True
