cocoapods-bb-bin 0.2.10.3 → 0.2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4f51ce2893ada809b89311ad03da700570c3083ff606b0c6cd75be5aa7ce6e1
4
- data.tar.gz: 86271e6db12464449ff97cdb5a68bdce3bf76fac993347ecaaa11ba5449f3a4d
3
+ metadata.gz: 3bbdaa7c4a01e82ccfe315a0393892e112930c6eeb60f5c9be70dad5db4f2bc1
4
+ data.tar.gz: 28cb9d9c2a550785e211f829dbd235a9b63fddbe8f5ef1cecdd0f62c06ca63d1
5
5
  SHA512:
6
- metadata.gz: 5566ed63c60e4e2759a7627bbe190dc21b8beef163b2ca660807a64a0719006df0715347d28c115593dddc67b4e5ef25ea06ee6af09790375fcfaa86c73a260b
7
- data.tar.gz: f47b7a8eb2daa9af8a53a6ff572a258322ee4c0364b2cad60a8de1a9f7ff2aeffdea371c2e8e36b966188f00f1c0f29de741710b4f036b32994cca535e9f5f82
6
+ metadata.gz: 39979f4ad9dcab81c5873ed026e9a229c71453c465f849e3b669a2ba7e1ba1d038d29de27c87a1963e3aae3406d82a1a98645cd6f37e05f848b0d267dc9f736f
7
+ data.tar.gz: 58c299b507e278edce13689d41dcd014518b1fc08cda18e410e26a53dc2a3267c879ab155877f504fbbbf16ee84421bb461a8c8964ff7ebbd90664cf2ba2c805
@@ -61,7 +61,7 @@ module Pod
61
61
  end
62
62
  if is_build_ok && !@is_debug
63
63
  # step.2 工程编译ok,进行标签推送
64
- push_helper = CBin::Push::Helper.new()
64
+ push_helper = CBin::Push::Helper.new(@sources)
65
65
  push_helper.push_source_repo(@podspec)
66
66
  end
67
67
  end
@@ -121,17 +121,33 @@ module Pod
121
121
  project.save
122
122
  end
123
123
 
124
+ private def podfile
125
+ podfile_path = Pod::Config.instance.podfile_path
126
+ if podfile_path && File.exist?(podfile_path)
127
+ return podfile_path
128
+ else
129
+ worksppace_path = Pathname.pwd
130
+ podfile_path = File.join(worksppace_path, "Example/Podfile")
131
+ if podfile_path && File.exist?(podfile_path)
132
+ return podfile_path
133
+ end
134
+ end
135
+ return ""
136
+ end
137
+
124
138
  def generate_project
139
+ podfile_path = podfile
125
140
  Podfile.execute_with_bin_plugin do
126
141
  Podfile.execute_with_use_binaries(!@code_dependencies) do
142
+ # pod gen --help
127
143
  argvs = [
128
144
  "--sources=#{sources_option(@code_dependencies, @sources)}",
129
145
  "--gen-directory=#{CBin::Config::Builder.instance.gen_dir}",
130
146
  '--clean',
131
147
  "--verbose",
148
+ "--podfile-path=#{podfile}",
132
149
  *@additional_args
133
150
  ]
134
- podfile_path = Pod::Config.instance.podfile_path
135
151
  if podfile_path && File.exist?(podfile_path)
136
152
  argvs += ['--use-podfile']
137
153
  end
@@ -141,7 +157,7 @@ module Pod
141
157
  end
142
158
 
143
159
  argvs << @podspec if @podspec
144
- # UI.puts "argvs:#{argvs}"
160
+ UI.puts "argvs:#{argvs}"
145
161
  gen = Pod::Command::Gen.new(CLAide::ARGV.new(argvs))
146
162
  gen.validate!
147
163
  gen.run
@@ -1,7 +1,7 @@
1
1
  require 'cocoapods'
2
2
 
3
3
  module CBin
4
- VERSION = '0.2.10.3'
4
+ VERSION = '0.2.11.0'
5
5
  end
6
6
 
7
7
  module Pod
@@ -165,7 +165,8 @@ module CBin
165
165
  # iphone5,iphone5s以下的模拟器
166
166
  # >x86_64
167
167
  # iphone6以上的模拟器
168
- archs = %w[arm64 armv7]
168
+ # archs = %w[arm64 armv7]
169
+ archs = %w[arm64]
169
170
  # archs = %w[x86_64 arm64 armv7s i386]
170
171
  # @vendored_libraries.each do |library|
171
172
  # archs = `lipo -info #{library}`.split & archs
@@ -64,12 +64,22 @@ module CBin
64
64
 
65
65
  # 二进制优先
66
66
  def sources_option(code_dependencies, additional_sources)
67
- (valid_sources(code_dependencies).map(&:url) + Array(additional_sources)).join(',')
67
+ # 传入源地址需要http开头
68
+ url = nil
69
+ if additional_sources && additional_sources.include?("http")
70
+ url = additional_sources
71
+ end
72
+ (valid_sources(code_dependencies).map(&:url) + Array(url)).join(',')
68
73
  end
69
74
 
70
75
  # 源码优先
71
76
  def sources_optionV2(code_dependencies, additional_sources)
72
- (valid_sourcesV2(code_dependencies).map(&:url) + Array(additional_sources)).join(',')
77
+ # 传入源地址需要http开头
78
+ url = nil
79
+ if additional_sources && additional_sources.include?("http")
80
+ url = additional_sources
81
+ end
82
+ (valid_sourcesV2(code_dependencies).map(&:url) + Array(url)).join(',')
73
83
  end
74
84
 
75
85
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-bb-bin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10.3
4
+ version: 0.2.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - humin
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-09 00:00:00.000000000 Z
10
+ date: 2025-04-01 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: parallel
@@ -218,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
218
  - !ruby/object:Gem::Version
219
219
  version: '0'
220
220
  requirements: []
221
- rubygems_version: 3.6.2
221
+ rubygems_version: 3.6.5
222
222
  specification_version: 4
223
223
  summary: cocoapods-bb-bin is a plugin which helps develpers switching pods between
224
224
  source code and binary.