This commit is contained in:
Михаил Капелько
2023-12-28 14:04:37 +03:00
parent d893364ff4
commit 853686f441
5 changed files with 124 additions and 170 deletions

View File

@@ -4,6 +4,9 @@ def generateImports(c):
if c.path != c.module:
parent = c.path.split("/")[0]
fileName = fileName.replace(f"{c.module}/src/../{c.module}", parent)
# Для обычного модуля с окончание X учитываем такое же название podspec.
if c.path[-1] == "X":
fileName = fileName.replace(f"{c.module}.podspec", f"{c.module}X.podspec")
lines = c.readFile(fileName)
items = ["Combine", "Foundation", "UIKit"]