No commit activity in last 3 years
No release in over 3 years
cocoapods plugin work with source urls.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 2.1
~> 12.3

Runtime

 Project Readme

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