cocoapods-xcremotecache 0.0.11 → 0.0.12
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/README.md +0 -4
- data/lib/cocoapods-xcremotecache/command/hooks.rb +12 -4
- data/lib/cocoapods-xcremotecache/gem_version.rb +1 -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: 44c934e165d3bedbc93841e34cc60738b7108e04e89cc6bd15da4aa5b404f7a2
|
4
|
+
data.tar.gz: c29b65d77ac3843d0c8c6caa4253c6168fd1fb19467b9d1cce643e35a111022c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bdf484d34a827187b7b6f8fb06153111f2d28ad568579d04737900d96c9cc7f4883e4eb38a9e592642e36900907beb4a7b171f7a5d3455206ac3fa8f8aaf46a
|
7
|
+
data.tar.gz: 2e5b3744bdeecbb01109b308af832b1d38312e73c050f5f46ae78dc6a6b7c3909055b4539980293026612bbca2f79dcecd6d481545aab1fe7c455b7bb1705593
|
data/README.md
CHANGED
@@ -63,7 +63,3 @@ To fully uninstall the plugin, call:
|
|
63
63
|
```bash
|
64
64
|
gem uninstall cocoapods-xcremotecache
|
65
65
|
```
|
66
|
-
|
67
|
-
## Limitations
|
68
|
-
|
69
|
-
* When `generate_multiple_pod_projects` mode is enabled, only first-party targets are cached by XCRemoteCache (all dependencies are compiled locally).
|
@@ -27,8 +27,9 @@ module CocoapodsXCRemoteCacheModifier
|
|
27
27
|
LLDB_INIT_COMMENT="#RemoteCacheCustomSourceMap"
|
28
28
|
LLDB_INIT_PATH = "#{ENV['HOME']}/.lldbinit"
|
29
29
|
FAT_ARCHIVE_NAME_INFIX = 'arm64-x86_64'
|
30
|
+
XCRC_COOCAPODS_ROOT_KEY = 'XCRC_COOCAPODS_ROOT'
|
30
31
|
|
31
|
-
# List of plugins' user properties that should be copied to .rcinfo
|
32
|
+
# List of plugins' user properties that should not be copied to .rcinfo
|
32
33
|
CUSTOM_CONFIGURATION_KEYS = [
|
33
34
|
'enabled',
|
34
35
|
'xcrc_location',
|
@@ -38,9 +39,7 @@ module CocoapodsXCRemoteCacheModifier
|
|
38
39
|
'check_build_configuration',
|
39
40
|
'check_platform',
|
40
41
|
'modify_lldb_init',
|
41
|
-
'prettify_meta_files',
|
42
42
|
'fake_src_root',
|
43
|
-
'disable_certificate_verification'
|
44
43
|
]
|
45
44
|
|
46
45
|
class XCRemoteCache
|
@@ -64,9 +63,14 @@ module CocoapodsXCRemoteCacheModifier
|
|
64
63
|
'exclude_targets' => [],
|
65
64
|
'prettify_meta_files' => false,
|
66
65
|
'fake_src_root' => "/#{'x' * 10 }",
|
67
|
-
'disable_certificate_verification' => false
|
66
|
+
'disable_certificate_verification' => false,
|
67
|
+
'custom_rewrite_envs' => []
|
68
68
|
}
|
69
69
|
@@configuration.merge! default_values.select { |k, v| !@@configuration.key?(k) }
|
70
|
+
# Always include XCRC_COOCAPODS_ROOT_KEY in custom_rewrite_envs
|
71
|
+
unless @@configuration['custom_rewrite_envs'].include?(XCRC_COOCAPODS_ROOT_KEY)
|
72
|
+
@@configuration['custom_rewrite_envs'] << XCRC_COOCAPODS_ROOT_KEY
|
73
|
+
end
|
70
74
|
end
|
71
75
|
|
72
76
|
def self.validate_configuration()
|
@@ -109,6 +113,8 @@ module CocoapodsXCRemoteCacheModifier
|
|
109
113
|
# @param final_target [String] name of target that should trigger marking
|
110
114
|
def self.enable_xcremotecache(target, repo_distance, xc_location, xc_cc_path, mode, exclude_build_configurations, final_target, fake_src_root)
|
111
115
|
srcroot_relative_xc_location = parent_dir(xc_location, repo_distance)
|
116
|
+
# location of the entrite CocoaPods project, relative to SRCROOT
|
117
|
+
srcroot_relative_project_location = parent_dir('', repo_distance)
|
112
118
|
|
113
119
|
target.build_configurations.each do |config|
|
114
120
|
# apply only for relevant Configurations
|
@@ -124,6 +130,7 @@ module CocoapodsXCRemoteCacheModifier
|
|
124
130
|
|
125
131
|
config.build_settings['XCREMOTE_CACHE_FAKE_SRCROOT'] = fake_src_root
|
126
132
|
config.build_settings['XCRC_PLATFORM_PREFERRED_ARCH'] = ["$(LINK_FILE_LIST_$(CURRENT_VARIANT)_$(PLATFORM_PREFERRED_ARCH):dir:standardizepath:file:default=arm64)"]
|
133
|
+
config.build_settings[XCRC_COOCAPODS_ROOT_KEY] = ["$SRCROOT/#{srcroot_relative_project_location}"]
|
127
134
|
debug_prefix_map_replacement = '$(SRCROOT' + ':dir:standardizepath' * repo_distance + ')'
|
128
135
|
add_cflags!(config.build_settings, '-fdebug-prefix-map', "#{debug_prefix_map_replacement}=$(XCREMOTE_CACHE_FAKE_SRCROOT)")
|
129
136
|
add_swiftflags!(config.build_settings, '-debug-prefix-map', "#{debug_prefix_map_replacement}=$(XCREMOTE_CACHE_FAKE_SRCROOT)")
|
@@ -204,6 +211,7 @@ module CocoapodsXCRemoteCacheModifier
|
|
204
211
|
# Remove Fake src root for ObjC & Swift
|
205
212
|
config.build_settings.delete('XCREMOTE_CACHE_FAKE_SRCROOT')
|
206
213
|
config.build_settings.delete('XCRC_PLATFORM_PREFERRED_ARCH')
|
214
|
+
config.build_settings.delete(XCRC_COOCAPODS_ROOT_KEY)
|
207
215
|
remove_cflags!(config.build_settings, '-fdebug-prefix-map')
|
208
216
|
remove_swiftflags!(config.build_settings, '-debug-prefix-map')
|
209
217
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-xcremotecache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bartosz Polaczyk
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-05-
|
12
|
+
date: 2022-05-19 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: CocoaPods plugin that enables XCRemoteCache with the project.
|
15
15
|
email:
|