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 +4 -4
- data/README.md +11 -0
- data/lib/cocoapods-project-gen/gem_version.rb +1 -1
- data/lib/cocoapods-project-gen/gen/product.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5b73bdbc608cc776cd5ec6eec0e10f99ed8f84e2f8cf12bfddcb6f673db9d09
|
4
|
+
data.tar.gz: bf9ae26f9b2432d607e7927b328a4027d409303e50aead7f5366592194fc028c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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.
|
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-
|
11
|
+
date: 2022-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|