Sha256: d46c8fafe4fe73f7a2674737231bb0a62957e0bf5db48c20cae981f1bd6a7fa8

Contents?: true

Size: 769 Bytes

Versions: 4

Compression:

Stored size: 769 Bytes

Contents

# frozen_string_literal: true

module Motion
  module Project
    class Sparkle
      def vendored_sparkle_path
        vendor_path.join('Pods/Sparkle')
      end

      def vendored_sparkle_framework_path
        vendored_sparkle_path.join('Sparkle.framework')
      end

      def vendored_sparkle_xpc_path
        vendored_sparkle_path.join('XPCServices')
      end

      def installed?
        File.directory?(vendored_sparkle_framework_path)
      end

      def verify_installation
        if installed?
          App.info 'Sparkle', "Framework installed in #{vendored_sparkle_framework_path}"
        else
          App.fail "Sparkle Cocoapod not correctly installed to #{vendored_sparkle_path}. Run `rake pod:install`."
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
motion-sparkle-sandbox-2.2 lib/motion/project/install.rb
motion-sparkle-sandbox-2.1.1 lib/motion/project/install.rb
motion-sparkle-sandbox-2.1.0 lib/motion/project/install.rb
motion-sparkle-sandbox-2.0.1 lib/motion/project/install.rb