Sha256: ae53dfac663160b99bc57f8a58ff54f7e6deb0db9766cce20333496095e34b49
Contents?: true
Size: 1.28 KB
Versions: 3
Compression:
Stored size: 1.28 KB
Contents
require 'singleton' require 'cocoapods' require 'cocoapods-core' module LgPodPlugin class LProject include Singleton attr_reader :podfile attr_reader :lockfile attr_reader :update attr_reader :targets attr_reader :workspace attr_reader :repo_update attr_reader :external_pods attr_reader :need_update_pods attr_accessor :cache_specs # attr_accessor :redirect_url_hash def setup(workspace,podfile_path, update, repo_update) @podfile = Pod::Podfile.from_file(podfile_path) @update = update @workspace = workspace @repo_update = repo_update lockfile_path = workspace.join("Podfile.lock") @lockfile = Pod::Lockfile.from_file(lockfile_path) if lockfile_path.exist? target = @podfile.send(:current_target_definition) children = target.children @targets = Array.new external_pods = Hash.new children.each do |s| target = LPodTarget.new(s) external_pods.merge!(target.dependencies) @targets.append(target) end @cache_specs = Hash.new @external_pods = Hash.new.merge!(external_pods) @need_update_pods = Hash.new # @redirect_url_hash = Hash.new return self end def self.shared return LProject.instance end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lg_pod_plugin-1.1.6.7 | lib/lg_pod_plugin/installer/project.rb |
lg_pod_plugin-1.1.6.6 | lib/lg_pod_plugin/installer/project.rb |
lg_pod_plugin-1.1.6.5 | lib/lg_pod_plugin/installer/project.rb |