Sha256: e437ba27949cd5786a9b5529a13ff0990d0bd46fd26f8ea4354ab13fb2a30252

Contents?: true

Size: 647 Bytes

Versions: 2

Compression:

Stored size: 647 Bytes

Contents

module BinaryPrebuild
    class PreInstall
        def initialize(installer_context)
            @installer_context = installer_context
        end

        def run
            # [Check Environment]
            podfile = @installer_context.podfile
            podfile.target_definition_list.each do |target_definition|
                if not target_definition.uses_frameworks?
                    STDERR.puts "[!] Cocoapods-binary requires `use_frameworks!`".red
                    exit
                end
            end

            require_relative '../targets/pod_target'
            require_relative '../Intergation'
        end
    end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cocoapods-util-0.2.1 lib/cocoapods-util/binary/hooks/pre_install.rb
cocoapods-util-0.2.0 lib/cocoapods-util/binary/hooks/pre_install.rb