cocoapods-soul-component-plugin 0.0.4 → 0.0.6
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce6b57121b7fc51be564b7532e7ea361c2ee0226e75a0cd0edf35d636ab05a66
|
4
|
+
data.tar.gz: f6157e2ab76a60a161ac1f9406676fd719e144f3600d1af3669908bae0da2971
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da2e70e89937eacdae81800af75524afe984a3dc52964ff02f95f09589293c7a15faf3133adc7bb320fda126ebc660247ce0f2962144e5e6020e45874c475e27
|
7
|
+
data.tar.gz: 81f9e21bf89ec98f801b76f1c50abf3f9dcb0cc91fe45fee2a329453c5b314d8730c5e909dcb3ccfc33ab0727d86c77548cd9b03cbbb6518f2f01f135b939b6b
|
@@ -3,6 +3,7 @@ require 'fileutils'
|
|
3
3
|
require 'json'
|
4
4
|
require 'xcodeproj'
|
5
5
|
require 'cocoapods-downloader'
|
6
|
+
require_relative '../gem_version'
|
6
7
|
|
7
8
|
module Pod
|
8
9
|
class Command
|
@@ -50,11 +51,11 @@ module CocoapodsSoulComponentPlugin
|
|
50
51
|
end
|
51
52
|
|
52
53
|
def self.podfile_path
|
53
|
-
root_path
|
54
|
+
"#{root_path}/Podfile"
|
54
55
|
end
|
55
56
|
|
56
57
|
def self.component_file_path
|
57
|
-
root_path
|
58
|
+
"#{root_path}/devops/component.json"
|
58
59
|
end
|
59
60
|
|
60
61
|
Pod::HooksManager.register('cocoapods-soul-component-plugin', :pre_install) do |_context|
|
@@ -74,7 +75,7 @@ module CocoapodsSoulComponentPlugin
|
|
74
75
|
group = project.main_group
|
75
76
|
group.set_source_tree('SOURCE_ROOT')
|
76
77
|
# 向group中添加 文件引用
|
77
|
-
file_ref = group.new_reference(Pod::Config.instance.sandbox.root
|
78
|
+
file_ref = group.new_reference("#{Pod::Config.instance.sandbox.root}../devops/component.json")
|
78
79
|
# podfile_local排序
|
79
80
|
podfile_local_group = group.children.last
|
80
81
|
group.children.pop
|
@@ -83,7 +84,7 @@ module CocoapodsSoulComponentPlugin
|
|
83
84
|
end
|
84
85
|
|
85
86
|
def self.pre_run
|
86
|
-
puts
|
87
|
+
puts "当前版本:#{CocoapodsSoulComponentPlugin::VERSION}"
|
87
88
|
json = File.read(self.component_file_path)
|
88
89
|
obj = JSON.parse(json)
|
89
90
|
dependencies = obj['dependencies']
|
@@ -105,7 +106,7 @@ module CocoapodsSoulComponentPlugin
|
|
105
106
|
local_path += '-'
|
106
107
|
local_path += each.commit.to_s
|
107
108
|
end
|
108
|
-
target_path = root_path
|
109
|
+
target_path = "#{root_path}/LocalPods/#{local_path}"
|
109
110
|
each.path = target_path
|
110
111
|
|
111
112
|
if File.exist?(target_path) == false
|