Skip to content

Commit

Permalink
Merge pull request #5 from MeetYouDevs/master
Browse files Browse the repository at this point in the history
SyncMaster
  • Loading branch information
dabing1022 authored Jan 19, 2021
2 parents 4d439a4 + 1abeaa5 commit e923621
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<img src="./img/Podfile.png" alt="Podfile" style="zoom:30%;" />

</br>

### 特色:

1. **无入侵、无感知、不影响现有业务,不影响现有代码框架、完全绿色产品~**
Expand Down
2 changes: 0 additions & 2 deletions cocoapods-imy-bin/lib/cocoapods-imy-bin/command/bin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ class Bin < Command
include CBin::SpecFilesHelper

self.abstract_command = true

self.default_subcommand = 'open'
self.summary = '组件二进制化插件.'
self.description = <<-DESC
组件二进制化插件。利用源码私有源与二进制私有源实现对组件依赖类型的切换。
Expand Down
9 changes: 6 additions & 3 deletions cocoapods-imy-bin/lib/cocoapods-imy-bin/command/bin/update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,12 @@ def self.load_local_podfile
end

target_dependencies.each do |target_dependency|
next unless target_dependency.is_a?(Hash) &&
target_dependency.keys.first &&
target_dependency.keys.first == local_dependency.keys.first
dp_hash_equal = target_dependency.is_a?(Hash) &&
target_dependency.keys.first &&
target_dependency.keys.first == local_dependency.keys.first
dp_str_equal = target_dependency.is_a?(String) &&
target_dependency == local_dependency.keys.first
next unless dp_hash_equal || dp_str_equal

target_dependencies.delete target_dependency
break
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def build_static_library_for_ios(output)

# if is_debug_model
libs = (ios_architectures + ios_architectures_sim) .map do |arch|
library = "build-#{arch}/lib#{target_name}.a"
library = "build-#{arch}/lib#{@spec.name}.a"
library
end
# else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def podfile_for_spec(spec)
plugin(*[name, options].compact)
end

use_frameworks!(generator.configuration.use_frameworks?)
use_frameworks!(generator.use_frameworks_value)

if (supported_swift_versions = generator.supported_swift_versions)
supports_swift_versions(supported_swift_versions)
Expand Down

0 comments on commit e923621

Please sign in to comment.