cocoapods-packager-ext 0.0.39 → 0.0.44

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b16d76f32b0b7b59eb3b83e52d11ab527aa43a8e69e3e7c143e12940490c0f08
4
- data.tar.gz: e247f9e36013617ebdb8838a8e41fc6e84b03091a0e2d036327113aeea824076
3
+ metadata.gz: 1850ca16aa903e3c0885840eb138b259319414fb3a944a2709bcff4f83177e1e
4
+ data.tar.gz: 2b483c112904b60b0cf5b71a3e54115cf7b17a2e9955f3ffc153179096635647
5
5
  SHA512:
6
- metadata.gz: 355011736958b8e2806766ed83d77a17dfa89b11e227b2d5db3fba04358fccac38be736f11943d555fc6579ee33f00ea6ad6e54d9108153246fd3ee5c8bfb1b7
7
- data.tar.gz: 833e373bef5a9cccb689cf659688953d6af73a6849603725da17d10539d26f993a5c5ef6320b4ae2d45e221df5798bde1415ddcdb25d991255a809be98293916
6
+ metadata.gz: 5350a0b64b6eb9571d42835daec4f87b59c92f0109dd06a2b99772767d72641cae8e67c5c9051b830e6266ba29cd0ff0b79e379b031afcc9ec80057eff7def38
7
+ data.tar.gz: 8129e366a5633e332998e87cd36203a6e18b94841d16037c1d532a18e4d4da31ce527be0c7f24850aea4baa7265858baa3e03aac7ec53458d2c402c40c5e7c5d
@@ -8,8 +8,15 @@ Gem::Specification.new do |spec|
8
8
  spec.version = CocoapodsPackagerExt::VERSION
9
9
  spec.authors = ['kyle.zhou']
10
10
  spec.email = ['kyle.zhou@qq.com']
11
- spec.description = %q{A short description of cocoapods-packager-ext.}
12
- spec.summary = %q{A longer description of cocoapods-packager-ext.}
11
+ spec.description = %q{cocoapods-packager extension.}
12
+ spec.summary = %q{
13
+ --Podfile: supports analyze version dependencies from a Podfile
14
+ --Archs: supports specified arch
15
+ --exclude-deps: excludes the specified dependent libraries
16
+ --Update: Update sources are supported
17
+ ENV[ENABLE_BACKUP_WORKSPACE] == YES: The compile workspace will be saved
18
+ ENV['ENABLE_CLEAN_DUMMY_FILE'] == YES: clean all dymmy file, avoid dymmy symbols being defined repeatedly.
19
+ }
13
20
  spec.homepage = 'https://github.com/EXAMPLE/cocoapods-packager-ext'
14
21
  spec.license = 'MIT'
15
22
 
@@ -20,6 +27,6 @@ Gem::Specification.new do |spec|
20
27
 
21
28
  spec.add_development_dependency 'bundler', '~> 1.3'
22
29
  spec.add_development_dependency 'rake'
23
- spec.add_runtime_dependency(%q<cocoapods-packager>.freeze,["1.5.1"])
30
+ spec.add_runtime_dependency(%q<cocoapods-packager-master>.freeze,["1.5.2"])
24
31
 
25
32
  end
@@ -31,6 +31,7 @@ module Pod
31
31
  o.push(['--archs','select archs'])
32
32
  o.push(['--podfile','select deps version from podfile'])
33
33
  o.push(['--platform','select platform'])
34
+ o.push(['--update','update all source'])
34
35
  o.concat(super)
35
36
  end
36
37
  rescue
@@ -46,6 +47,7 @@ module Pod
46
47
  @select_archs = argv.option('archs','').split(',')
47
48
  @podfile = argv.option('podfile','')
48
49
  @platform = argv.option('platform','')
50
+ @update = argv.flag?('update',false )
49
51
  initialize_t argv
50
52
  end
51
53
 
@@ -190,6 +192,92 @@ RB
190
192
  end
191
193
  end
192
194
 
195
+ def pre_podfile(path,sandbox)
196
+ path = Pathname.new(path)
197
+ unless path.exist?
198
+ raise Informative, "No Podfile exists at path `#{path}`."
199
+ end
200
+
201
+ retpath = sandbox.root.to_s+'/podfile'
202
+ contents = ''
203
+ File.foreach(path) do |line|
204
+ contents += line unless line.include? '<!SKIP_PATCH_LINE>'
205
+ end
206
+ File.write(retpath,contents)
207
+ retpath
208
+ end
209
+
210
+ def podfile_from_spec_sandbox(path, spec_name, platform_name, deployment_target, subspecs, sources,sandbox)
211
+ options = {}
212
+ if path
213
+ if @local
214
+ options[:path] = path
215
+ else
216
+ options[:podspec] = path
217
+ end
218
+ end
219
+ options[:subspecs] = subspecs if subspecs
220
+ podfile_path = pre_podfile @podfile,sandbox
221
+ podfile = Pod::Podfile.from_file(podfile_path)
222
+ sources.each { |s| podfile.source s }
223
+ # podfile.platform(platform_name, deployment_target)
224
+ podfile.pod(spec_name, options)
225
+ podfile.install!('cocoapods',
226
+ :integrate_targets => false,
227
+ :deterministic_uuids => false)
228
+ podfile.target('packager') do
229
+ podfile.inherit! :complete
230
+ end
231
+ podfile
232
+ end
233
+
234
+ alias install_pod_t install_pod
235
+ def install_pod(platform_name, sandbox)
236
+ if !@podfile && !@update
237
+ install_pod_t platform_name,sandbox
238
+ else
239
+ if not @podfile
240
+ podfile = podfile_from_spec(
241
+ @path,
242
+ @spec.name,
243
+ platform_name,
244
+ @spec.deployment_target(platform_name),
245
+ @subspecs,
246
+ @spec_sources
247
+ )
248
+ else
249
+ podfile = podfile_from_spec_sandbox(
250
+ @path,
251
+ @spec.name,
252
+ platform_name,
253
+ @spec.deployment_target(platform_name),
254
+ @subspecs,
255
+ @spec_sources,
256
+ sandbox
257
+ )
258
+ end
259
+
260
+ static_installer = Installer.new(sandbox, podfile)
261
+ if @update
262
+ static_installer.repo_update = true
263
+ end
264
+ static_installer.install!
265
+
266
+ unless static_installer.nil?
267
+ static_installer.pods_project.targets.each do |target|
268
+ target.build_configurations.each do |config|
269
+ config.build_settings['CLANG_MODULES_AUTOLINK'] = 'NO'
270
+ config.build_settings['GCC_GENERATE_DEBUGGING_SYMBOLS'] = 'NO'
271
+ end
272
+ end
273
+ static_installer.pods_project.save
274
+ end
275
+
276
+ static_installer
277
+ end
278
+
279
+ end
280
+
193
281
  end
194
282
  end
195
283
  end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsPackagerExt
2
- VERSION = "0.0.39"
2
+ VERSION = "0.0.44"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-packager-ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.39
4
+ version: 0.0.44
5
5
  platform: ruby
6
6
  authors:
7
7
  - kyle.zhou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-20 00:00:00.000000000 Z
11
+ date: 2021-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -39,20 +39,20 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: cocoapods-packager
42
+ name: cocoapods-packager-master
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 1.5.1
47
+ version: 1.5.2
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 1.5.1
55
- description: A short description of cocoapods-packager-ext.
54
+ version: 1.5.2
55
+ description: cocoapods-packager extension.
56
56
  email:
57
57
  - kyle.zhou@qq.com
58
58
  executables: []
@@ -100,7 +100,11 @@ requirements: []
100
100
  rubygems_version: 3.0.8
101
101
  signing_key:
102
102
  specification_version: 4
103
- summary: A longer description of cocoapods-packager-ext.
103
+ summary: "--Podfile: supports analyze version dependencies from a Podfile --Archs:
104
+ supports specified arch --exclude-deps: excludes the specified dependent libraries
105
+ --Update: Update sources are supported ENV[ENABLE_BACKUP_WORKSPACE] == YES: The
106
+ compile workspace will be saved ENV['ENABLE_CLEAN_DUMMY_FILE'] == YES: clean all
107
+ dymmy file, avoid dymmy symbols being defined repeatedly."
104
108
  test_files:
105
109
  - spec/command/ext_spec.rb
106
110
  - spec/spec_helper.rb