Проверка шаблона шины для iOS
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

15 行
461B

  1. def sectionFunctions(name, c):
  2. path = f"{c.src}/{c.module}.Section{name}.swift"
  3. lines = c.readFile(path)
  4. items = []
  5. for ln in lines:
  6. if ln.startswith(" static func destroyCore"):
  7. items.append("destroyCore")
  8. elif ln.startswith(" static func setupCore"):
  9. items.append("setupCore")
  10. elif ln.startswith(" static func setupService"):
  11. items.append("setupService")
  12. return items