cocoapods-project-gen 0.2.3 → 0.2.4

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: ea8031db47261426a1e1ac999b16ffdcaff6e404fa9ebe8ea790f654720b04b9
4
- data.tar.gz: b9de39c0d6fb2944bcb5be0bab8e175d14ba65a0d5eb865c491e4fd1fcd8bc5d
3
+ metadata.gz: d5b73bdbc608cc776cd5ec6eec0e10f99ed8f84e2f8cf12bfddcb6f673db9d09
4
+ data.tar.gz: bf9ae26f9b2432d607e7927b328a4027d409303e50aead7f5366592194fc028c
5
5
  SHA512:
6
- metadata.gz: b2576574c992dd78e94f3a69a3ed17419c4e09dcf2cfa314190c22b73c7a0227dc22a0b161e0943e62dd21f56e329e05f1e11883a183674e840543a8568124af
7
- data.tar.gz: 23b165ff2623b80e727c0f9d630ebb3321b0d75b261ed7d36115bff4ff60b249e74097b53d61f421125f2c5191d75c8eb088de79f9b674ddca9edce7b3e919c2
6
+ metadata.gz: ef462a8cee6317ecc73ab5846b03b88ea406cf7e5af5c235df5f11db6151f7317c97b76b458ef785b6c04f0bcb5cc5f86f6d132986fc23ba820b4b619cbdb608
7
+ data.tar.gz: 2ca8d8b7ef11ea06e0ec916c92798cac2d0e26bd1e05d9b8d5a1e2850f020def5e4140c5095b66858c6dacbbb95df14c72860afff5bb32f34660c5923aa6ecb6
data/README.md CHANGED
@@ -78,6 +78,17 @@ xc_gen = ProjectGen::XcframeworkGen.new(generator)
78
78
  xc_gen.generate_xcframework(output_dir, build_library_for_distribution: true)
79
79
  ```
80
80
 
81
+ local or no local:
82
+
83
+ ```ruby
84
+ require 'cocoapods-project-gen'
85
+ podspecs = Pathname.glob(File.expand_path('./Resources/Specs', __dir__) + '/*.podspec{.json,}')
86
+ local_podspecs = Pathname.glob(File.expand_path('./Resources/Specs/local/**', __dir__) + '/*.podspec{.json,}').join(',')
87
+ no_local_podspecs = Pathname.glob(File.expand_path('./Resources/Specs/no_local/', __dir__) + '**/*.podspec{.json,}').join(',')
88
+ out_put = File.expand_path('./Resources/output', __dir__)
89
+ vs = ProjectGen::Command.run(['gen', '--use-libraries', '--build-library-for-distribution', '--sources=https://github.com/CocoaPods/Specs.git', *podspecs, "--include-podspecs=#{local_podspecs}", "--external-podspecs=#{no_local_podspecs}", "--output-dir=#{out_put}"])
90
+ ```
91
+
81
92
  other options:
82
93
 
83
94
  ```ruby
@@ -1,3 +1,3 @@
1
1
  module ProjectGen
2
- VERSION = "0.2.3"
2
+ VERSION = '0.2.4'.freeze
3
3
  end
@@ -150,7 +150,7 @@ module ProjectGen
150
150
  end
151
151
 
152
152
  def add_file_accessors_paths_to_products_group(file_accessor_key)
153
- fs = file_accessors.flat_map { |file_accessor| file_accessor.send(file_accessor_key) }
153
+ fs = file_accessors.flat_map { |file_accessor| file_accessor.send(file_accessor_key) }.compact
154
154
  fs.each do |f|
155
155
  relative_path = f.relative_path_from(pod_dir)
156
156
  full_source_path = product_path.join(relative_path)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-project-gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cat1237
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-06 00:00:00.000000000 Z
11
+ date: 2022-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods