xccache 1.0.0 → 1.0.1.rc15407754136
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/lib/xccache/assets/templates/xccache.yml.template +2 -0
- data/lib/xccache/command/base.rb +1 -1
- data/lib/xccache/core/config.rb +4 -0
- data/lib/xccache/installer.rb +2 -1
- data/lib/xccache/spm/macro.rb +1 -4
- data/lib/xccache/spm/pkg/proxy_executable.rb +1 -1
- data/lib/xccache/swift/sdk.rb +14 -2
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a6699dffd7c9b049f8526d73b9d6af0efc9db18c9cfe7d0a24a977d9f347666
|
4
|
+
data.tar.gz: f5d1962a30bb16212ea8093e8d627f60ae81e51d787368238dfca4a1cb7db47f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddbf3700063a5b4fb2090a3ab9a84be93fec1c525d13f4960df4731e720f800f42f8fc2716f00b7dfd82facff5c6b7762aac978b97e2cc9bc75ea0e4b77e2a3a
|
7
|
+
data.tar.gz: 9ea880c83a1e2ac3cf12de39b74b696dbd2f31fc6d861710d1cb5ade3d973f915f22038fca91df99d518a3e68cfb8135126feeae605c0e3a4716b7c3893e8a75
|
data/lib/xccache/command/base.rb
CHANGED
@@ -3,7 +3,7 @@ require "xccache/installer"
|
|
3
3
|
module XCCache
|
4
4
|
class Command
|
5
5
|
class Options
|
6
|
-
SDK = ["--sdk=foo,bar", "SDKs (iphonesimulator, iphoneos, etc.)"].freeze
|
6
|
+
SDK = ["--sdk=foo,bar", "SDKs (iphonesimulator, iphoneos, macos, etc.)"].freeze
|
7
7
|
CONFIG = ["--config=foo", "Configuration (debug, release) (default: debug)"].freeze
|
8
8
|
MERGE_SLICES = [
|
9
9
|
"--merge-slices/--no-merge-slices",
|
data/lib/xccache/core/config.rb
CHANGED
data/lib/xccache/installer.rb
CHANGED
@@ -19,6 +19,7 @@ module XCCache
|
|
19
19
|
verify_projects!
|
20
20
|
projects.each { |project| migrate_umbrella_to_proxy(project) }
|
21
21
|
UI.message("Using cache dir: #{config.spm_cache_dir}")
|
22
|
+
config.ensure_file!
|
22
23
|
config.in_installation = true
|
23
24
|
sync_lockfile
|
24
25
|
proxy_pkg.prepare(@install_options)
|
@@ -99,7 +100,7 @@ module XCCache
|
|
99
100
|
add_file = proc { |p| group[p.basename.to_s] || group.new_file(p) }
|
100
101
|
add_file.call(config.spm_proxy_sandbox / "Package.swift")
|
101
102
|
add_file.call(config.lockfile.path)
|
102
|
-
add_file.call(config.path)
|
103
|
+
add_file.call(config.path)
|
103
104
|
group.ensure_synced_group(name: "local-packages", path: config.spm_local_pkgs_dir)
|
104
105
|
end
|
105
106
|
|
data/lib/xccache/spm/macro.rb
CHANGED
@@ -3,12 +3,9 @@ require_relative "build"
|
|
3
3
|
module XCCache
|
4
4
|
module SPM
|
5
5
|
class Macro < Buildable
|
6
|
-
attr_reader :macosx_sdk
|
7
|
-
|
8
6
|
def initialize(options = {})
|
9
7
|
super
|
10
8
|
@library_evolution = false # swift-syntax is not compatible with library evolution
|
11
|
-
@macosx_sdk = Swift::Sdk.new(:macosx)
|
12
9
|
end
|
13
10
|
|
14
11
|
def build(_options = {})
|
@@ -37,7 +34,7 @@ module XCCache
|
|
37
34
|
end
|
38
35
|
|
39
36
|
def products_dir
|
40
|
-
@products_dir ||= pkg_dir / ".build" /
|
37
|
+
@products_dir ||= pkg_dir / ".build" / "arm64-apple-macosx" / config
|
41
38
|
end
|
42
39
|
end
|
43
40
|
end
|
@@ -4,7 +4,7 @@ module XCCache
|
|
4
4
|
class Proxy < Package
|
5
5
|
class Executable
|
6
6
|
REPO_URL = "https://github.com/trinhngocthuyen/xccache-proxy".freeze
|
7
|
-
VERSION_OR_SHA = "
|
7
|
+
VERSION_OR_SHA = "1.0.0rc1".freeze
|
8
8
|
|
9
9
|
def run(cmd)
|
10
10
|
env = { "FORCE_OUTPUT" => "console", "FORCE_COLOR" => "1" } if Config.instance.ansi?
|
data/lib/xccache/swift/sdk.rb
CHANGED
@@ -8,11 +8,19 @@ module XCCache
|
|
8
8
|
NAME_TO_TRIPLE = {
|
9
9
|
:iphonesimulator => "arm64-apple-ios-simulator",
|
10
10
|
:iphoneos => "arm64-apple-ios",
|
11
|
-
:
|
11
|
+
:macos => "arm64-apple-macos",
|
12
|
+
:watchos => "arm64-apple-watchos",
|
13
|
+
:watchsimulator => "arm64-apple-watchos-simulator",
|
14
|
+
:appletvos => "arm64-apple-tvos",
|
15
|
+
:appletvsimulator => "arm64-apple-tvos-simulator",
|
16
|
+
:xros => "arm64-apple-xros",
|
17
|
+
:xrsimulator => "arm64-apple-xros-simulator",
|
12
18
|
}.freeze
|
13
19
|
|
14
20
|
def initialize(name)
|
15
21
|
@name = name
|
22
|
+
return if NAME_TO_TRIPLE.key?(name.to_sym)
|
23
|
+
raise GeneralError, "Unknown sdk: #{name}. Must be one of #{NAME_TO_TRIPLE.keys}"
|
16
24
|
end
|
17
25
|
|
18
26
|
def to_s
|
@@ -25,11 +33,15 @@ module XCCache
|
|
25
33
|
res
|
26
34
|
end
|
27
35
|
|
36
|
+
def sdk_name
|
37
|
+
name == "macos" ? "macosx" : name
|
38
|
+
end
|
39
|
+
|
28
40
|
def sdk_path
|
29
41
|
# rubocop:disable Layout/LineLength
|
30
42
|
# /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk
|
31
43
|
# rubocop:enable Layout/LineLength
|
32
|
-
@sdk_path ||= Pathname(Sh.capture_output("xcrun --sdk #{
|
44
|
+
@sdk_path ||= Pathname(Sh.capture_output("xcrun --sdk #{sdk_name} --show-sdk-path")).realpath
|
33
45
|
end
|
34
46
|
|
35
47
|
def sdk_platform_developer_path
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xccache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1.rc15407754136
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thuyen Trinh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: claide
|
@@ -69,6 +69,7 @@ files:
|
|
69
69
|
- lib/xccache/assets/templates/framework.modulemap.template
|
70
70
|
- lib/xccache/assets/templates/resource_bundle_accessor.m.template
|
71
71
|
- lib/xccache/assets/templates/resource_bundle_accessor.swift.template
|
72
|
+
- lib/xccache/assets/templates/xccache.yml.template
|
72
73
|
- lib/xccache/cache/cachemap.rb
|
73
74
|
- lib/xccache/command.rb
|
74
75
|
- lib/xccache/command/base.rb
|
@@ -161,9 +162,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
161
162
|
version: '0'
|
162
163
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
164
|
requirements:
|
164
|
-
- - "
|
165
|
+
- - ">"
|
165
166
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
167
|
+
version: 1.3.1
|
167
168
|
requirements: []
|
168
169
|
rubygems_version: 3.2.33
|
169
170
|
signing_key:
|