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: 6d3e818c908ebf093b15067e862eb0aa6b0c4a576023b07596014806386d605b
4
- data.tar.gz: 064c89f49a1d7ffe73c8e8c2f45df3bd56550fbb594388f26b92e77bedfee02f
3
+ metadata.gz: c19c80e81e9b4539ec08ffbdb7396994387f4573489366c6448e7faa47fedef9
4
+ data.tar.gz: d0e271ac412f94fd696ed6c5cf804eef6399550ddff808f29afe0da1e622d0c8
5
5
  SHA512:
6
- metadata.gz: a5cb6e45538fa2b455bd4772a0a2abeab086624ec7f597c220f19b1590346234e08cfd039c8bb10b12479a46b0c2392efc5a055aa39cf9c6c24ce1311101febc
7
- data.tar.gz: b0942db92ebf9f9eac042c07ddf84ee7a7f0548b6720869abe391f973a105d6de2dd6a04560241c945232f7c247ea63d9f2421f3cbe6294edc5860ecbf66f73c
6
+ metadata.gz: 4833167107e4c4417dbfee798e3586040beded30746a44194a20a4b76c29d887a537063cbdf8a75c7b9dde36f12dd942a5655fb22c0e76d486aad24592155dbd
7
+ data.tar.gz: '092626723d276d12c32c7dd739ef19c1357d664b34cb26ef06eeafdce6420999198ee20b6eb634fc4f6ac4cefd18241d4f711b5740b3df2b61fe7237df00a7f9'
@@ -1,3 +1,3 @@
1
1
  module CocoapodsAlexandria
2
- VERSION = '0.2.5'
2
+ VERSION = '0.2.8'
3
3
  end
@@ -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
- build_path(target, sdk)
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.name}"
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.name}"
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.5
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-12 00:00:00.000000000 Z
11
+ date: 2022-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods