cocoapods-generate 2.2.1 → 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/cocoapods/generate/configuration.rb +8 -1
- data/lib/cocoapods/generate/installer.rb +14 -1
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4bfa2c31a2e64dd3923f9413cac796a3857e8693c1e4b437dd8d6caa118cfd5
|
4
|
+
data.tar.gz: 83a3ab70639016cfb600c0958d79288dfbaad3d9df8a43d0f50e11edfc52fc53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5ac204b50794cb297184858ddba52a80357dd6da2c5f22654a27e8baabbca14e5903837b6c4789385c3fa5d11b9de3f00fb2089e27c06fb0102bc5652720e4f
|
7
|
+
data.tar.gz: 62ec11956e6af98a32665665f9db92fd9b57175edeb4d17dace834e248025060afdf1e68758bad6b0b5e7ab959a91cf4b6f92c8ff0901d3b47ab3d0de61bed58
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2.
|
1
|
+
2.2.3
|
@@ -363,8 +363,15 @@ module Pod
|
|
363
363
|
end
|
364
364
|
elsif path.directory?
|
365
365
|
glob = Pathname.glob(path.expand_path + '**/*.podspec{.json,}').select { |f| f.relative_path_from(gen_directory).to_s.start_with?('..') }
|
366
|
+
glob.reject! { |f| File.basename(f.dirname) == 'Local Podspecs' && f.parent.parent.join('Manifest.lock').file? }
|
366
367
|
next StandardError.new "no specs found in #{UI.path path}" if glob.empty?
|
367
|
-
glob.map { |f| Pod::Specification.from_file(f) }
|
368
|
+
podspecs = glob.map { |f| Pod::Specification.from_file(f) }
|
369
|
+
podspecs.group_by(&:name).sort_by(&:first).flat_map do |name, specs|
|
370
|
+
if specs.size != 1
|
371
|
+
Pod::UI.warn("Multiple podspecs found for pod #{name}, which one will be used is undefined:#{specs.map { |s| "\n - #{s.defined_in_file}" }.join}")
|
372
|
+
end
|
373
|
+
specs
|
374
|
+
end
|
368
375
|
else
|
369
376
|
Pod::Specification.from_file(path)
|
370
377
|
end
|
@@ -234,9 +234,13 @@ module Pod
|
|
234
234
|
bc.build_settings['PRODUCT_BUNDLE_IDENTIFIER'] = 'org.cocoapods-generate.${PRODUCT_NAME:rfc1034identifier}'
|
235
235
|
end
|
236
236
|
|
237
|
-
case native_app_target.platform_name
|
237
|
+
case native_app_target.platform_name.to_sym
|
238
238
|
when :ios
|
239
239
|
make_ios_app_launchable(app_project, native_app_target)
|
240
|
+
when :osx
|
241
|
+
generate_infoplist_file(app_project, native_app_target)
|
242
|
+
when :tvos
|
243
|
+
generate_infoplist_file(app_project, native_app_target)
|
240
244
|
end
|
241
245
|
|
242
246
|
swift_version = pod_targets.map { |pt| Pod::Version.new(pt.swift_version) }.max.to_s
|
@@ -391,6 +395,15 @@ module Pod
|
|
391
395
|
native_app_target.resources_build_phase.add_file_reference(launch_storyboard_file_ref)
|
392
396
|
end
|
393
397
|
|
398
|
+
def generate_infoplist_file(app_project, native_app_target)
|
399
|
+
# Starting in Xcode 14, there is an error when you build the macOS or
|
400
|
+
# tvOS app that is generated from cocoapods-generate. This implements
|
401
|
+
# the suggested change.
|
402
|
+
native_app_target.build_configurations.each do |bc|
|
403
|
+
bc.build_settings['GENERATE_INFOPLIST_FILE'] = "YES"
|
404
|
+
end
|
405
|
+
end
|
406
|
+
|
394
407
|
def group_for_platform_name(project, platform_name, should_create = true)
|
395
408
|
project.main_group.find_subpath("App-#{platform_name}", should_create)
|
396
409
|
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-generate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Giddins
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods-disable-podfile-validations
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.1.1
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.3.0
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 0.1.1
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.3.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: bundler
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
107
|
- !ruby/object:Gem::Version
|
102
108
|
version: '0'
|
103
109
|
requirements: []
|
104
|
-
rubygems_version: 3.
|
110
|
+
rubygems_version: 3.2.3
|
105
111
|
signing_key:
|
106
112
|
specification_version: 4
|
107
113
|
summary: Generates Xcode workspaces from a podspec.
|