cocoapods-core 1.12.0 → 1.13.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 +4 -4
- data/lib/cocoapods-core/gem_version.rb +1 -1
- data/lib/cocoapods-core/platform.rb +10 -1
- data/lib/cocoapods-core/podfile/dsl.rb +7 -3
- data/lib/cocoapods-core/podfile/target_definition.rb +3 -3
- data/lib/cocoapods-core/specification/dsl.rb +13 -2
- data/lib/cocoapods-core/yaml_helper.rb +12 -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: 014e0c494cb3fbaa3cf22c0c67779de4fea4c913da936390f90a1e885fd241e1
|
4
|
+
data.tar.gz: 972cc7a0888373e3136347d2c6d6df05e55b966bb5a0c1bd0440160519c7563e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6f64110d2957bea2488051ed8bd859856b3c017543f7c15e55051a68d7b8527fbe886fc4a0484d8b876e1362a90021459ac8e4ee8999f6a0e385dbf20dca23a
|
7
|
+
data.tar.gz: 01b05cece5e45ae56ad8da66a3c35e0090be902f581df2ad73b8e0acabc6783702623e61c235b6adf7935ce3de48890af27565f3806efc8845bc5259fff10978
|
@@ -87,6 +87,14 @@ module Pod
|
|
87
87
|
new :tvos
|
88
88
|
end
|
89
89
|
|
90
|
+
# Convenience method to initialize a visionOS platform.
|
91
|
+
#
|
92
|
+
# @return [Platform] a visionOS platform.
|
93
|
+
#
|
94
|
+
def self.visionos
|
95
|
+
new :visionos
|
96
|
+
end
|
97
|
+
|
90
98
|
# Convenience method to initialize a watchOS platform.
|
91
99
|
#
|
92
100
|
# @return [Platform] a watchOS platform.
|
@@ -100,7 +108,7 @@ module Pod
|
|
100
108
|
# @return [Array<Platform>] list of platforms.
|
101
109
|
#
|
102
110
|
def self.all
|
103
|
-
[ios, osx, watchos, tvos]
|
111
|
+
[ios, osx, watchos, visionos, tvos]
|
104
112
|
end
|
105
113
|
|
106
114
|
# Checks if a platform is equivalent to another one or to a symbol
|
@@ -239,6 +247,7 @@ module Pod
|
|
239
247
|
when :osx then 'macOS'
|
240
248
|
when :watchos then 'watchOS'
|
241
249
|
when :tvos then 'tvOS'
|
250
|
+
when :visionos then 'visionOS'
|
242
251
|
else symbolic_name.to_s
|
243
252
|
end
|
244
253
|
end
|
@@ -455,6 +455,10 @@ module Pod
|
|
455
455
|
# @option options [String] :dependency_file
|
456
456
|
# specifies the dependency file to use for this script phase.
|
457
457
|
#
|
458
|
+
# @option options [String] :always_out_of_date
|
459
|
+
# specifies whether or not this run script will be forced to
|
460
|
+
# run even on incremental builds
|
461
|
+
#
|
458
462
|
# @return [void]
|
459
463
|
#
|
460
464
|
def script_phase(options)
|
@@ -566,15 +570,15 @@ module Pod
|
|
566
570
|
# Specifies the platform for which a static library should be built.
|
567
571
|
#
|
568
572
|
# CocoaPods provides a default deployment target if one is not specified.
|
569
|
-
# The current default values are `4.3` for iOS, `10.6` for OS X, `9.0` for tvOS
|
570
|
-
# and `2.0` for watchOS.
|
573
|
+
# The current default values are `4.3` for iOS, `10.6` for OS X, `9.0` for tvOS,
|
574
|
+
# `1.0` for visionOS and `2.0` for watchOS.
|
571
575
|
#
|
572
576
|
# If the deployment target requires it (iOS < `4.3`), `armv6`
|
573
577
|
# architecture will be added to `ARCHS`.
|
574
578
|
#
|
575
579
|
# @param [Symbol] name
|
576
580
|
# the name of platform, can be either `:osx` for OS X, `:ios`
|
577
|
-
# for iOS, `:tvos` for tvOS, or `:watchos` for watchOS.
|
581
|
+
# for iOS, `:tvos` for tvOS, `:visionos` for visionOS, or `:watchos` for watchOS.
|
578
582
|
#
|
579
583
|
# @param [String, Version] target
|
580
584
|
# The optional deployment. If not provided a default value
|
@@ -611,7 +611,7 @@ module Pod
|
|
611
611
|
|
612
612
|
#--------------------------------------#
|
613
613
|
|
614
|
-
PLATFORM_DEFAULTS = { :ios => '4.3', :osx => '10.6', :tvos => '9.0', :watchos => '2.0' }.freeze
|
614
|
+
PLATFORM_DEFAULTS = { :ios => '4.3', :osx => '10.6', :tvos => '9.0', :visionos => '1.0', :watchos => '2.0' }.freeze
|
615
615
|
|
616
616
|
# @return [Platform] the platform of the target definition.
|
617
617
|
#
|
@@ -648,9 +648,9 @@ module Pod
|
|
648
648
|
#
|
649
649
|
def set_platform(name, target = nil)
|
650
650
|
name = :osx if name == :macos
|
651
|
-
unless [:ios, :osx, :tvos, :watchos].include?(name)
|
651
|
+
unless [:ios, :osx, :tvos, :visionos, :watchos].include?(name)
|
652
652
|
raise StandardError, "Unsupported platform `#{name}`. Platform " \
|
653
|
-
'must be `:ios`, `:osx`, `:macos`, `:tvos`, or `:watchos`.'
|
653
|
+
'must be `:ios`, `:osx`, `:macos`, `:tvos`, :visionos, or `:watchos`.'
|
654
654
|
end
|
655
655
|
|
656
656
|
if target
|
@@ -583,7 +583,7 @@ module Pod
|
|
583
583
|
|
584
584
|
# The names of the platforms supported by the specification class.
|
585
585
|
#
|
586
|
-
PLATFORMS = [:osx, :ios, :tvos, :watchos].freeze
|
586
|
+
PLATFORMS = [:osx, :ios, :tvos, :visionos, :watchos].freeze
|
587
587
|
|
588
588
|
# @todo This currently is not used in the Ruby DSL.
|
589
589
|
#
|
@@ -1075,7 +1075,7 @@ module Pod
|
|
1075
1075
|
SCRIPT_PHASE_REQUIRED_KEYS = [:name, :script].freeze
|
1076
1076
|
|
1077
1077
|
SCRIPT_PHASE_OPTIONAL_KEYS = [:shell_path, :input_files, :output_files, :input_file_lists, :output_file_lists,
|
1078
|
-
:show_env_vars_in_log, :execution_position, :dependency_file].freeze
|
1078
|
+
:show_env_vars_in_log, :execution_position, :dependency_file, :always_out_of_date].freeze
|
1079
1079
|
|
1080
1080
|
EXECUTION_POSITION_KEYS = [:before_compile, :after_compile, :before_headers, :after_headers, :any].freeze
|
1081
1081
|
|
@@ -1880,6 +1880,17 @@ module Pod
|
|
1880
1880
|
PlatformProxy.new(self, :tvos)
|
1881
1881
|
end
|
1882
1882
|
|
1883
|
+
# Provides support for specifying visionOS attributes.
|
1884
|
+
#
|
1885
|
+
# @example
|
1886
|
+
# spec.visionos.source_files = 'Classes/visionos/**/*.{h,m}'
|
1887
|
+
#
|
1888
|
+
# @return [PlatformProxy] the proxy that will set the attributes.
|
1889
|
+
#
|
1890
|
+
def visionos
|
1891
|
+
PlatformProxy.new(self, :visionos)
|
1892
|
+
end
|
1893
|
+
|
1883
1894
|
# Provides support for specifying watchOS attributes.
|
1884
1895
|
#
|
1885
1896
|
# @example
|
@@ -54,7 +54,7 @@ module Pod
|
|
54
54
|
# @return [Hash, Array] the Ruby YAML representaton
|
55
55
|
#
|
56
56
|
def load_string(yaml_string, file_path = nil)
|
57
|
-
YAML.
|
57
|
+
YAML.safe_load(yaml_string, :permitted_classes => [Date, Time, Symbol])
|
58
58
|
rescue
|
59
59
|
if yaml_has_merge_error?(yaml_string)
|
60
60
|
raise Informative, yaml_merge_conflict_msg(yaml_string, file_path)
|
@@ -284,6 +284,17 @@ module Pod
|
|
284
284
|
'true', 'True', 'TRUE', 'false', 'False', 'FALSE', # bool
|
285
285
|
'yes', 'Yes', 'YES', 'no', 'No', 'NO', # yes/no
|
286
286
|
'on', 'On', 'ON', 'off', 'Off', 'OFF', # no/off
|
287
|
+
Regexp.new(%{
|
288
|
+
[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] # (ymd)
|
289
|
+
|[0-9][0-9][0-9][0-9] # (year)
|
290
|
+
-[0-9][0-9]? # (month)
|
291
|
+
-[0-9][0-9]? # (day)
|
292
|
+
([Tt]|[ \t]+)[0-9][0-9]? # (hour)
|
293
|
+
:[0-9][0-9] # (minute)
|
294
|
+
:[0-9][0-9] # (second)
|
295
|
+
(\.[0-9]*)? # (fraction)
|
296
|
+
(([ \t]*)(Z|[-+][0-9][0-9]?(:[0-9][0-9])?))? # (time zone)
|
297
|
+
}, Regexp::EXTENDED), # https://yaml.org/type/timestamp.html
|
287
298
|
/[-+]?[0-9]+/, # base 10 int
|
288
299
|
/00[0-7]+/, # base 8 int
|
289
300
|
/0x[0-9a-fA-F]+/, # base 16 int
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eloy Duran
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-09-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|