cocoapods-alexandria 0.2.5 → 0.2.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c19c80e81e9b4539ec08ffbdb7396994387f4573489366c6448e7faa47fedef9
|
4
|
+
data.tar.gz: d0e271ac412f94fd696ed6c5cf804eef6399550ddff808f29afe0da1e622d0c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4833167107e4c4417dbfee798e3586040beded30746a44194a20a4b76c29d887a537063cbdf8a75c7b9dde36f12dd942a5655fb22c0e76d486aad24592155dbd
|
7
|
+
data.tar.gz: '092626723d276d12c32c7dd739ef19c1357d664b34cb26ef06eeafdce6420999198ee20b6eb634fc4f6ac4cefd18241d4f711b5740b3df2b61fe7237df00a7f9'
|
@@ -22,10 +22,13 @@ module PodAlexandria
|
|
22
22
|
|
23
23
|
# may already be built (by another target)
|
24
24
|
if File.directory?(build_path(target, sdk))
|
25
|
-
|
25
|
+
Pod::UI.puts "Already built '#{target.name}', probably by another dependency."
|
26
26
|
else
|
27
|
+
Pod::UI.puts "Building '#{target.name}' for #{sdk}..."
|
27
28
|
xcodebuild(target, sdk, deployment_target)
|
28
29
|
end
|
30
|
+
|
31
|
+
build_path(target, sdk)
|
29
32
|
}.compact
|
30
33
|
end
|
31
34
|
|
@@ -36,18 +39,14 @@ module PodAlexandria
|
|
36
39
|
end
|
37
40
|
|
38
41
|
def skip_build?(target, sdk)
|
39
|
-
File.directory?(destination_path(target))
|
40
|
-
File.directory?(build_path(target, sdk))
|
42
|
+
File.directory?(destination_path(target))
|
41
43
|
end
|
42
44
|
|
43
45
|
def xcodebuild(target, sdk, deployment_target)
|
44
46
|
args = %W(-project #{sandbox.project_path.realdirpath} -scheme #{target.name} -configuration #{configuration} -sdk #{sdk})
|
45
47
|
args += flags unless flags.nil?
|
46
48
|
|
47
|
-
Pod::UI.puts "Building '#{target.name}' for #{sdk}..."
|
48
49
|
Pod::Executable.execute_command 'xcodebuild', args, true
|
49
|
-
|
50
|
-
build_path(target, sdk)
|
51
50
|
end
|
52
51
|
|
53
52
|
def project
|
@@ -57,13 +56,13 @@ module PodAlexandria
|
|
57
56
|
def build_path(target, sdk)
|
58
57
|
# Note: using target.product_name is wrong in some cases (Cocoapods project generation bug)
|
59
58
|
# See https://github.com/CocoaPods/CocoaPods/issues/8007
|
60
|
-
"#{build_dir}/#{configuration}-#{sdk}/#{target.name}/#{target.product_reference.
|
59
|
+
"#{build_dir}/#{configuration}-#{sdk}/#{target.name}/#{target.product_reference.path}"
|
61
60
|
end
|
62
61
|
|
63
62
|
def destination_path(target)
|
64
63
|
# Note: using target.product_name is wrong in some cases (Cocoapods project generation bug)
|
65
64
|
# See https://github.com/CocoaPods/CocoaPods/issues/8007
|
66
|
-
"#{destination}/#{target.product_reference.
|
65
|
+
"#{destination}/#{target.product_reference.path}"
|
67
66
|
end
|
68
67
|
end
|
69
68
|
end
|
@@ -49,7 +49,7 @@ module PodAlexandria
|
|
49
49
|
compiler = Compiler.new(sandbox, build_dir, destination, configuration, flags)
|
50
50
|
frameworks = umbrella_targets.select { |t| t.specs.any? }.flat_map { |target|
|
51
51
|
compiler.build(target)
|
52
|
-
}
|
52
|
+
}.uniq
|
53
53
|
|
54
54
|
Pod::UI.info "🔥 Built #{frameworks.count} #{'frameworks'.pluralize(frameworks.count)}" unless frameworks.empty?
|
55
55
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-alexandria
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Jennes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|