Sha256: 4f3a18ca986bbb9cd33982d1651875f1677d55f8d4f2f5a588289e938b2ef484

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 KB

Contents

module Xcake
  class Target
    def parent_configurable
      @project
    end

    # TODO: Move this to a constant, maybe Xcodeproj ones should be brought
    # into here?
    #
    # Perhaps these could be made into a Gem itself?
    def default_settings
      {
        'INFOPLIST_FILE' => "#{name}/Supporting Files/Info.plist"
      }
    end

    def default_debug_settings
      Xcodeproj::Project::ProjectHelper
        .common_build_settings(:debug,
                               platform,
                               deployment_target.to_s,
                               type,
                               language)
        .merge!(default_settings)
        .merge('SWIFT_OPTIMIZATION_LEVEL' => '-Onone')
    end

    def default_release_settings
      Xcodeproj::Project::ProjectHelper
        .common_build_settings(:release,
                               platform,
                               deployment_target.to_s,
                               type,
                               language)
        .merge!(default_settings)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xcake-0.7.1 lib/xcake/target/configurable.rb
xcake-0.7.0 lib/xcake/target/configurable.rb