cocoapods-modularization 0.0.7 → 0.1.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ee10ad58a6c83686efce98768bcfd218848787e73df099ee7210707578d1d56
|
4
|
+
data.tar.gz: 8047f47a4e39fc5900eb0e65dd023958741f5ff4fa0e295aad8e456d53f60046
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0c5b2dab63f8ed40f380ba342f38808507359a0d1a2ed7c955acfca7ebe2f848284c121259e5be3b3082cb7767a1e1a1d4ab13b48c365d8b67131f583e44c2d
|
7
|
+
data.tar.gz: 2654d8020b867004a6662bd2732953ea4c682d3051a5f795608d05397608f4a24777e4ce2e3d8f03149298e2d74212fa1404e704738bb33fbc293b5f5deb4656
|
@@ -37,6 +37,7 @@ module Pod
|
|
37
37
|
['--clean-install', 'Ignore the contents of the project cache and force a full pod installation. This only ' \
|
38
38
|
'applies to projects that have enabled incremental installation'],
|
39
39
|
['--enable-branch', 'Enable branch dependency'],
|
40
|
+
['--original', 'Run pod install ignore cocoapods-modularization']
|
40
41
|
].concat(super).reject { |(name, _)| name == '--no-repo-update' }
|
41
42
|
end
|
42
43
|
|
@@ -45,14 +46,17 @@ module Pod
|
|
45
46
|
@deployment = argv.flag?('deployment', false)
|
46
47
|
@clean_install = argv.flag?('clean-install', false)
|
47
48
|
@enable_branch = argv.flag?('enable-branch', false)
|
49
|
+
@original = argv.flag?('original', false)
|
48
50
|
end
|
49
51
|
|
50
52
|
def run
|
51
53
|
# encode podfile
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
54
|
+
unless @original
|
55
|
+
begin
|
56
|
+
Meta::MetaReference.encode_podfile(@enable_branch)
|
57
|
+
rescue Exception => e
|
58
|
+
UI.puts "pod install error: #{e}"
|
59
|
+
end
|
56
60
|
end
|
57
61
|
|
58
62
|
# install
|
@@ -64,10 +68,12 @@ module Pod
|
|
64
68
|
installer.clean_install = @clean_install
|
65
69
|
installer.install!
|
66
70
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
+
unless @original
|
72
|
+
begin
|
73
|
+
add_modularization_into_xcode_reference
|
74
|
+
rescue Exception => e
|
75
|
+
UI.puts e
|
76
|
+
end
|
71
77
|
end
|
72
78
|
end
|
73
79
|
|
@@ -91,6 +91,7 @@ module Pod
|
|
91
91
|
|
92
92
|
def hash_from(e, data, enable_branch)
|
93
93
|
dependency_data = data[e]
|
94
|
+
raise "dependency_data is empty for element: #{e}" unless dependency_data.kind_of?(Hash)
|
94
95
|
|
95
96
|
git_branch_hash = try_git_branch(e, dependency_data) if enable_branch
|
96
97
|
return git_branch_hash if git_branch_hash.kind_of?(Hash)
|
@@ -121,7 +122,7 @@ module Pod
|
|
121
122
|
binary = dependency_data[MetaConstants.binary_key]
|
122
123
|
source_url = dependency_data[MetaConstants.source_key]
|
123
124
|
|
124
|
-
if binary && source_url == Private::PrivateCache.source_repo_url
|
125
|
+
if binary && (source_url == Private::PrivateCache.source_repo_url || source_url == nil)
|
125
126
|
source_url = Private::PrivateCache.binary_repo_url
|
126
127
|
else
|
127
128
|
source_url ||= Private::PrivateCache.source_repo_url
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-modularization
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lazy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|