Module: Pod::Podfile::DSL
- Defined in:
- lib/cocoapods-byte-panglem-beta/panglem.rb
Instance Method Summary collapse
- #original_plugin ⇒ Object
-
#original_pod ⇒ Object
result end.
- #pangm_release_target!(option = true) ⇒ Object
- #plugin(name, options = {}) ⇒ Object
- #pod(name = nil, *requirements) ⇒ Object
- #use_pangm_sdk_update!(option = true) ⇒ Object
Instance Method Details
#original_plugin ⇒ Object
150 |
# File 'lib/cocoapods-byte-panglem-beta/panglem.rb', line 150 alias_method :original_plugin, :plugin |
#original_pod ⇒ Object
result end
172 |
# File 'lib/cocoapods-byte-panglem-beta/panglem.rb', line 172 alias_method :original_pod, :pod |
#pangm_release_target!(option = true) ⇒ Object
146 147 148 |
# File 'lib/cocoapods-byte-panglem-beta/panglem.rb', line 146 def pangm_release_target!(option = true) current_target_definition.pangm_release_target!(option) end |
#plugin(name, options = {}) ⇒ Object
151 152 153 154 155 156 157 158 159 160 161 162 163 |
# File 'lib/cocoapods-byte-panglem-beta/panglem.rb', line 151 def plugin(name, = {}) if name == 'cocoapods-byte-panglem-beta' PM::Recorder.instance.set_plugin_load true case when Hash PM::Recorder.instance.set_is_debug [:is_debug] if .has_key?(:is_debug) PM::Recorder.instance.set_is_auto_update [:is_auto_update]if .has_key?(:is_auto_update) end PMPlugin.update end original_plugin(name, ) end |
#pod(name = nil, *requirements) ⇒ Object
173 174 175 176 177 178 179 180 181 182 183 |
# File 'lib/cocoapods-byte-panglem-beta/panglem.rb', line 173 def pod(name = nil, *requirements) ## SDK 场景不需要 PMPlugin.action do |recoder| unless current_target_definition.have_add_dependencys current_target_definition.have_add_dependencys = true pangle_beta = PM::BuildConfig.pangle_sdk_beta current_target_definition.store_pod(pangle_beta, []) end end original_pod(name, *requirements) end |
#use_pangm_sdk_update!(option = true) ⇒ Object
142 143 144 |
# File 'lib/cocoapods-byte-panglem-beta/panglem.rb', line 142 def use_pangm_sdk_update!(option = true) current_target_definition.use_pangm_sdk_update!(option) end |