验证中...
Languages: Ruby
Categories: iOS 组件
Latest update 2018-12-09 10:01
判断安装私有库的时候是否需要源码
Raw Copy
if ENV['IS_SOURCE'] || ENV['EncodeParm']
s.source_files = 'EncodeParm/Classes/**/*.{h,m}'
else
s.source_files = 'EncodeParm/Classes/**/*.h'
s.vendored_frameworks = 'EncodeParm/Products/EncodeParm.framework'
end
EncodeParm.podspec
Raw Copy
#
# Be sure to run `pod lib lint EncodeParm.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'EncodeParm'
s.version = '0.1.1'
s.summary = 'EncodeParm.'
# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
s.description = <<-DESC
EncodeParm. API secert, very impoprt
DESC
s.homepage = 'https://gitee.com/hexiaoba/EncodeParm'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'bubiqudong' => 'hkn35135@163.com' }
s.source = { :git => 'https://gitee.com/hexiaoba/EncodeParm.git', :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
s.ios.deployment_target = '8.0'
if ENV['IS_SOURCE'] || ENV['EncodeParm']
s.source_files = 'EncodeParm/Classes/**/*.{h,m}'
else
s.source_files = 'EncodeParm/Classes/**/*.h'
s.vendored_frameworks = 'EncodeParm/Products/EncodeParm.framework'
end
# s.resource_bundles = {
# 'EncodeParm' => ['EncodeParm/Assets/*.png']
# }
# s.public_header_files = 'Pod/Classes/**/*.h'
# s.frameworks = 'UIKit', 'MapKit'
# s.dependency 'AFNetworking', '~> 2.3'
end

Comment list( 0 )

You need to Sign in for post a comment

Help Search

183227_9af5e6a8_1826025 111910_4d91f001_1826025