text: import logging
  import os
  
  logger = logging.getLogger(__name__)
  dir_path = os.path.dirname(os.path.realpath(__file__))
  TEMPLATES_DIR = dir_path + "/../templates/ios/"
  
  
  class Template(object):
      def __init__(self, templates: list) -> None:
          self.templates = templates
  
      def merge_templates(self, platform: str = "ios") -> str:
          result = []
          for template in self.templates:
              file = str(template)
              path = f"{dir_path}/../templates/{platform}/"
              filename = f"{path}{file}"
              with open(filename, "r") as f:
                  lines = f.read()
              result.append(lines)
          template = "\n".join(result)
          return template
  
      def create_final_template(self, platform: str = "ios") -> None:
          file = "final.j2"
          path = f"{dir_path}/../templates/{platform}/"
          filename = f"{path}{file}"
  
          with open(filename, "w") as f:
              f.write(self.merge_templates(platform))
  