cocoapods-alexandria 0.2.8 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cocoapods-alexandria/env_ci/post_install.rb +5 -2
- data/lib/cocoapods-alexandria/gem_version.rb +1 -1
- data/lib/cocoapods-alexandria/helper/user_options.rb +3 -1
- data/lib/cocoapods-alexandria/helper/xcodeproj.rb +10 -1
- data/lib/cocoapods-alexandria/rome/compiler.rb +10 -6
- 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: d14087c2b2f1d05bb410c616e2cb6c518fdea5f267fcf287804b316d884f24be
|
4
|
+
data.tar.gz: 562dc7e56b4b2bf69e9966c79fdd79f52e2a72dbc6e305218b3cac897f05a34c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b24f3b39733aea2b1db05514b65d3d78cb0f7766f0d27e2578124a53f6d7c309a9bb05a74b37f61e6a56a70d260da4b1324b9a52fe89014aa372396ea23659d
|
7
|
+
data.tar.gz: 6b68e71f259e6cc56bb4fe80b4fa8428d2fe973d280be7013964975dee4fc8222359a54f24fa4ed4c1b24894c27dccbd7c5a6c6cf7ac96d68640c28248188c3b
|
@@ -12,8 +12,11 @@ module PodAlexandria
|
|
12
12
|
def run
|
13
13
|
Pod::UI.title "Compile dependencies"
|
14
14
|
|
15
|
-
if options.
|
16
|
-
Pod::UI.puts "
|
15
|
+
if options.disable_bitcode
|
16
|
+
Pod::UI.puts "Disabling bitcode generation"
|
17
|
+
pods_project.disable_bitcode_generation
|
18
|
+
elsif options.force_bitcode
|
19
|
+
Pod::UI.puts "!!DEPRECTATED!! Forcing bitcode generation"
|
17
20
|
pods_project.force_bitcode_generation
|
18
21
|
end
|
19
22
|
cache.delete_changed_frameworks
|
@@ -1,13 +1,15 @@
|
|
1
1
|
module PodAlexandria
|
2
2
|
class UserOptions
|
3
3
|
attr_reader :environment_configs
|
4
|
+
attr_reader :disable_bitcode
|
4
5
|
attr_reader :force_bitcode
|
5
6
|
attr_reader :xcodegen_dependencies_file
|
6
7
|
attr_reader :do_not_embed_dependencies_in_targets
|
7
8
|
|
8
9
|
def initialize(installer_context, user_options)
|
9
10
|
@environment_configs = user_options.fetch('environment_configs', default_configurations(installer_context))
|
10
|
-
@
|
11
|
+
@disable_bitcode = user_options.fetch('disable_bitcode', true)
|
12
|
+
@force_bitcode = user_options.fetch('force_bitcode', false)
|
11
13
|
@xcodegen_dependencies_file = user_options.fetch('xcodegen_dependencies_file', 'projectDependencies.yml')
|
12
14
|
@do_not_embed_dependencies_in_targets = user_options.fetch('do_not_embed_dependencies_in_targets', [])
|
13
15
|
end
|
@@ -9,7 +9,16 @@ module Xcodeproj
|
|
9
9
|
def fix_deployment_target_warnings
|
10
10
|
targets.each do |target|
|
11
11
|
target.build_configurations.each do |config|
|
12
|
-
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '
|
12
|
+
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0' if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] == '8.0'
|
13
|
+
end
|
14
|
+
end
|
15
|
+
save
|
16
|
+
end
|
17
|
+
|
18
|
+
def disable_bitcode_generation
|
19
|
+
targets.each do |target|
|
20
|
+
target.build_configurations.each do |config|
|
21
|
+
config.build_settings['ENABLE_BITCODE'] = 'NO'
|
13
22
|
end
|
14
23
|
end
|
15
24
|
save
|
@@ -54,15 +54,11 @@ module PodAlexandria
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def build_path(target, sdk)
|
57
|
-
#
|
58
|
-
# See https://github.com/CocoaPods/CocoaPods/issues/8007
|
59
|
-
"#{build_dir}/#{configuration}-#{sdk}/#{target.name}/#{target.product_reference.path}"
|
57
|
+
"#{build_dir}/#{configuration}-#{sdk}/#{target.name}/#{target.product_path}"
|
60
58
|
end
|
61
59
|
|
62
60
|
def destination_path(target)
|
63
|
-
#
|
64
|
-
# See https://github.com/CocoaPods/CocoaPods/issues/8007
|
65
|
-
"#{destination}/#{target.product_reference.path}"
|
61
|
+
"#{destination}/#{target.product_path}"
|
66
62
|
end
|
67
63
|
end
|
68
64
|
end
|
@@ -87,6 +83,14 @@ module Xcodeproj
|
|
87
83
|
.map { |d| [d.target] + d.target.all_dependencies }
|
88
84
|
.flatten.uniq
|
89
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
|
90
94
|
end
|
91
95
|
end
|
92
96
|
|
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.
|
4
|
+
version: 0.3.0
|
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-
|
11
|
+
date: 2022-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|