xcframework_converter 0.2.1 → 0.3.0
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/bin/xcfpatch +12 -0
- data/lib/xcframework_converter/version.rb +1 -1
- data/lib/xcframework_converter.rb +4 -6
- metadata +8 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81f41d364c13895ffce8f691c7eff5dba6a9f6a4631a5e56bf230c5b0a9df911
|
4
|
+
data.tar.gz: 6ba774fcf8d912ff13a3473b0dcea9e24ee5726045be4d22162e5ac2d0d25ecf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e5afac8eb28eaa70467b4ad73019d5be7f8cfa39e669f24b86a0b803d90e2cd4e3d3a91e84bf6d8062c88ca5ba07fc592997697361988775b05c79f093fa13a
|
7
|
+
data.tar.gz: afab009d7b7115ac48b6c2aadfcd0364efe3f4b4f5ae4db6a3c8dee00a6d5fbdc189e38cff779ae487fa44ce85efffa0f5d66579154aa6ce9838f6caddd1d01f
|
data/bin/xcfpatch
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require 'bundler/setup'
|
5
|
+
require 'xcframework_converter'
|
6
|
+
|
7
|
+
if ARGV.empty?
|
8
|
+
warn 'Usage: xcfpatch <path/to/XCFramework.xcframework>'
|
9
|
+
exit 1
|
10
|
+
end
|
11
|
+
|
12
|
+
XCFrameworkConverter.patch_xcframework(Pathname.new(ARGV[0]).realpath)
|
@@ -19,8 +19,6 @@ module XCFrameworkConverter
|
|
19
19
|
class << self
|
20
20
|
def convert_frameworks_to_xcframeworks!(installer)
|
21
21
|
installer.analysis_result.specifications.each do |spec|
|
22
|
-
next if spec.source && spec.local?
|
23
|
-
|
24
22
|
pod_path = installer.sandbox.pod_dir(Pod::Specification.root_name(spec.name))
|
25
23
|
|
26
24
|
xcframeworks_to_patch = spec.available_platforms.map do |platform|
|
@@ -29,7 +27,7 @@ module XCFrameworkConverter
|
|
29
27
|
.map { |f| pod_path.join(f) }
|
30
28
|
end.flatten.uniq
|
31
29
|
|
32
|
-
patch_xcframeworks_if_needed(
|
30
|
+
patch_xcframeworks_if_needed(xcframeworks_to_patch)
|
33
31
|
|
34
32
|
frameworks_to_convert = spec.available_platforms.map do |platform|
|
35
33
|
consumer = Pod::Specification::Consumer.new(spec, platform)
|
@@ -42,19 +40,19 @@ module XCFrameworkConverter
|
|
42
40
|
before_rename.map { |f| pod_path.join(f) }
|
43
41
|
end.flatten.uniq
|
44
42
|
|
45
|
-
convert_xcframeworks_if_present(
|
43
|
+
convert_xcframeworks_if_present(frameworks_to_convert)
|
46
44
|
|
47
45
|
remove_troublesome_xcconfig_items(spec)
|
48
46
|
end
|
49
47
|
end
|
50
48
|
|
51
|
-
def convert_xcframeworks_if_present(
|
49
|
+
def convert_xcframeworks_if_present(frameworks_to_convert)
|
52
50
|
frameworks_to_convert.each do |path|
|
53
51
|
convert_framework_to_xcframework(path) if Dir.exist?(path)
|
54
52
|
end
|
55
53
|
end
|
56
54
|
|
57
|
-
def patch_xcframeworks_if_needed(
|
55
|
+
def patch_xcframeworks_if_needed(xcframeworks)
|
58
56
|
xcframeworks.each do |path|
|
59
57
|
patch_xcframework(path) if Dir.exist?(path)
|
60
58
|
end
|
metadata
CHANGED
@@ -1,66 +1,56 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcframework_converter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Makarov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 1.10.0
|
20
17
|
- - "~>"
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version: '1'
|
19
|
+
version: '1.10'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 1.10.0
|
30
24
|
- - "~>"
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version: '1'
|
26
|
+
version: '1.10'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: xcodeproj
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
|
-
- - ">="
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: 1.20.0
|
40
31
|
- - "~>"
|
41
32
|
- !ruby/object:Gem::Version
|
42
|
-
version: '1'
|
33
|
+
version: '1.20'
|
43
34
|
type: :runtime
|
44
35
|
prerelease: false
|
45
36
|
version_requirements: !ruby/object:Gem::Requirement
|
46
37
|
requirements:
|
47
|
-
- - ">="
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: 1.20.0
|
50
38
|
- - "~>"
|
51
39
|
- !ruby/object:Gem::Version
|
52
|
-
version: '1'
|
40
|
+
version: '1.20'
|
53
41
|
description: Convert an ancient .framework (dynamic or static) to an .xcframework.
|
54
42
|
Add an arm64 Simulator patch.
|
55
43
|
email:
|
56
44
|
- igormaka@gmail.com
|
57
45
|
executables:
|
58
46
|
- xcfconvert
|
47
|
+
- xcfpatch
|
59
48
|
extensions: []
|
60
49
|
extra_rdoc_files: []
|
61
50
|
files:
|
62
51
|
- README.md
|
63
52
|
- bin/xcfconvert
|
53
|
+
- bin/xcfpatch
|
64
54
|
- lib/arm2sim.swift
|
65
55
|
- lib/xcframework_converter.rb
|
66
56
|
- lib/xcframework_converter/arm_patcher.rb
|