cocoapods-alexandria 0.2.6 → 0.2.9

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: eba5dd06d1fde3d97386d1333d408561de1e7ac99e5bc4699db45b9b7f6ab67a
4
- data.tar.gz: ebc430e13e2fa6c1682487ab7cb1aa886f73cec78b5c8578f643018c179da960
3
+ metadata.gz: 16689da9df218088e945e9bd5190c859f4caa49f7c386ccc494f574d457653cf
4
+ data.tar.gz: 8d0bacb4327067501e4f2a34c4dc31922cfed795d33bf3080cf211dde1c45f16
5
5
  SHA512:
6
- metadata.gz: 50ee3e10c737b7abfed342dd8d9f5d35b94ad32d8750c815122ac04b075a3fc01ce35708a42b55aea181017516bd648259aa0cfacf239e108950121be6754efb
7
- data.tar.gz: 6b22e61d5c6d5e6ba795f69dfc156cdd987c5275ab6395f2ffe5f4f471d4d9a6bc85e838b2fd02da4e280b5dcc0114f21d0bb4f8a09b1c0edab42516fb27ad9f
6
+ metadata.gz: d1cc5ab209cbfc294c14af092d7bec073c48be29392e40e17e0ff6c3eb39f0f53a5a5f2173f7c4c8dc556e0620d3be675645eafc81501c0b8138a9ff0d97cb58
7
+ data.tar.gz: b92845b7f530a63ef5ec257d7794442353fd15bec10c67db797010a6ddfcd04b3683a8445a8ffd600762aa84a927310e9df3994d560279b7247346b912efae4a
@@ -1,3 +1,3 @@
1
1
  module CocoapodsAlexandria
2
- VERSION = '0.2.6'
2
+ VERSION = '0.2.9'
3
3
  end
@@ -22,11 +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
- Pod::UI.puts "Already built '#{target.name}'."
26
- build_path(target, sdk)
25
+ Pod::UI.puts "Already built '#{target.name}', probably by another dependency."
27
26
  else
27
+ Pod::UI.puts "Building '#{target.name}' for #{sdk}..."
28
28
  xcodebuild(target, sdk, deployment_target)
29
29
  end
30
+
31
+ build_path(target, sdk)
30
32
  }.compact
31
33
  end
32
34
 
@@ -44,10 +46,7 @@ module PodAlexandria
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
@@ -55,15 +54,11 @@ module PodAlexandria
55
54
  end
56
55
 
57
56
  def build_path(target, sdk)
58
- # Note: using target.product_name is wrong in some cases (Cocoapods project generation bug)
59
- # See https://github.com/CocoaPods/CocoaPods/issues/8007
60
- "#{build_dir}/#{configuration}-#{sdk}/#{target.name}/#{target.product_reference.name}"
57
+ "#{build_dir}/#{configuration}-#{sdk}/#{target.name}/#{target.product_path}"
61
58
  end
62
59
 
63
60
  def destination_path(target)
64
- # Note: using target.product_name is wrong in some cases (Cocoapods project generation bug)
65
- # See https://github.com/CocoaPods/CocoaPods/issues/8007
66
- "#{destination}/#{target.product_reference.name}"
61
+ "#{destination}/#{target.product_path}"
67
62
  end
68
63
  end
69
64
  end
@@ -88,6 +83,14 @@ module Xcodeproj
88
83
  .map { |d| [d.target] + d.target.all_dependencies }
89
84
  .flatten.uniq
90
85
  end
86
+
87
+ # Note: using target.product_name is wrong in some cases (Cocoapods project generation bug)
88
+ # See https://github.com/CocoaPods/CocoaPods/issues/8007
89
+ def product_path
90
+ extension = File.extname(product_reference.path)
91
+ module_name = resolved_build_setting('PRODUCT_MODULE_NAME', true).values[0]
92
+ "#{module_name}#{extension}"
93
+ end
91
94
  end
92
95
  end
93
96
 
@@ -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.6
4
+ version: 0.2.9
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-12 00:00:00.000000000 Z
11
+ date: 2022-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods