8000 GitHub - cute/cocoapods-prefer: cocoapods plugin work with sources
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cute/cocoapods-prefer

8000
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cocoapods-prefer

A cocoapods plugin to work with pod sources

Installation

Just install it

gem install cocoapods-prefer 

or use Gemfile with bundle install

source 'https://rubygems.org/'

gem 'cocoapods', '>= 1.8.4'
gem 'colored2','~> 3.1'
gem 'neatjson','~> 0.9'
gem 'cocoapods-prefer','~ 1.0'

Usage

  • only work with git ssh url

in Podfile

require "cocoapods-prefer"

# only source it
source "git@github.com:DanboDuan/Test_Dislike_Specs.git"
source "git@github.com:DanboDuan/Test_Prefer_Specs.git"



plugin 'cocoapods-prefer'

prefer_source("Test_Prefer","git@github.com:DanboDuan/Test_Prefer_Specs.git")

target 'Example' do

  lock_source_with_url("git@github.com:DanboDuan/Test_Prefer_Specs.git") do
    prefer_source_pod 'AFNetworking'
  end
  
  lock_source_with_url("git@github.com:DanboDuan/Test_Dislike_Specs.git") do
    dislike_source_pod 'FMDB'
  end
  
  pod 'Godzippa'
  pod 'XcodeCoverage'
  
end

rules

  • AFNetworking then will prefer the source if it meets requirement
    • if it does not meet requirement, the preferred source does not work
  • FMDB then will prefer other sources unless only the source meets requirement
  • prefer_source work for all the pods if it meets requirement
  • Godzippa is not in the preferred source, so it does not work

Example

see TestExample

About

cocoapods plugin work with sources

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%
0