Sha256: dbea6decab5ebe45c24dd7e91db22bf6099fcd995bad836dcbfcb7da36a59fc2
Contents?: true
Size: 736 Bytes
Versions: 13
Compression:
Stored size: 736 Bytes
Contents
require 'xcodeproj' require 'plist' class IOSPlistManager def initialize(project, info_plist_path) @project = project @info_plist_path = info_plist_path end def set_info_plist_in_build_settings path = FileManager.get_relative_path(FilePath.xcode_project_directory, @info_plist_path) main_target.build_configurations.each do |config| config.build_settings['INFOPLIST_FILE'] = path end end def add_fonts(font_names) font_manager = PlistFontManager.new(FilePath.info_plist) font_manager.add_fonts(font_names) end private def save_project @project.save end def main_target @project.targets.first end end
Version data entries
13 entries across 13 versions & 1 rubygems