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

Version Path
solara-0.7.4 solara/lib/core/scripts/platform/ios/ios_plist_manager.rb
solara-0.7.3 solara/lib/core/scripts/platform/ios/ios_plist_manager.rb
solara-0.7.2 solara/lib/core/scripts/platform/ios/ios_plist_manager.rb
solara-0.7.1 solara/lib/core/scripts/platform/ios/ios_plist_manager.rb
solara-0.7.0 solara/lib/core/scripts/platform/ios/ios_plist_manager.rb
solara-0.6.0 solara/lib/core/scripts/platform/ios/ios_plist_manager.rb
solara-0.5.0 solara/lib/core/scripts/platform/ios/ios_plist_manager.rb
solara-0.4.0 solara/lib/core/scripts/platform/ios/ios_plist_manager.rb
solara-0.3.0 solara/lib/core/scripts/platform/ios/ios_plist_manager.rb
solara-0.2.4 solara/lib/core/scripts/platform/ios/ios_plist_manager.rb
solara-0.2.3 solara/lib/core/scripts/platform/ios/ios_plist_manager.rb
solara-0.2.2 solara/lib/core/scripts/platform/ios/ios_plist_manager.rb
solara-0.2.1 solara/lib/core/scripts/platform/ios/ios_plist_manager.rb