cocoapods-soul-component-plugin 0.0.2 → 0.0.4
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: 0e41b1c9c7d00553e6fa8e71154757bd51e3825f9fd4e66ba8949c3ec714b8fe
|
4
|
+
data.tar.gz: d99d0437af8d21add060f52be73898a3c9c83da5afe08d0d5d51a131edb187c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6122fdab51c62198eb4005aa2cd6d80eaf509124eb2c23f4ec7235e4eff6a1ca5726f4c4e37e3b70eb3d6462659a4315a5c8ff06fe21631a91108a8027deb575
|
7
|
+
data.tar.gz: 75f3a8880417c98c2d16d2ec4e1b893289756193ae25ae84cbcd3f131f8adb1fe4922f1955a750b097cd86059889d5fb35291bbc468794828a8f8d80888ee010
|
@@ -68,8 +68,6 @@ module CocoapodsSoulComponentPlugin
|
|
68
68
|
end
|
69
69
|
|
70
70
|
def self.post_run
|
71
|
-
return if use_components == false
|
72
|
-
|
73
71
|
Pod::UI.puts '添加component.json文件引用'
|
74
72
|
project = Xcodeproj::Project.open(Pod::Config.instance.sandbox.project_path)
|
75
73
|
# 获取主group
|
@@ -85,8 +83,7 @@ module CocoapodsSoulComponentPlugin
|
|
85
83
|
end
|
86
84
|
|
87
85
|
def self.pre_run
|
88
|
-
|
89
|
-
|
86
|
+
puts '当前版本:' + CocoapodsSoulComponentPlugin::VERSION
|
90
87
|
json = File.read(self.component_file_path)
|
91
88
|
obj = JSON.parse(json)
|
92
89
|
dependencies = obj['dependencies']
|
@@ -99,7 +96,15 @@ module CocoapodsSoulComponentPlugin
|
|
99
96
|
if each.path == nil
|
100
97
|
if each.submodule == false
|
101
98
|
if each.local == true
|
102
|
-
local_path = each.name
|
99
|
+
local_path = each.name
|
100
|
+
if each.branch != nil
|
101
|
+
local_path += '-'
|
102
|
+
local_path += each.branch.to_s.tr('/','-')
|
103
|
+
end
|
104
|
+
if each.commit != nil
|
105
|
+
local_path += '-'
|
106
|
+
local_path += each.commit.to_s
|
107
|
+
end
|
103
108
|
target_path = root_path + '/LocalPods/' + local_path
|
104
109
|
each.path = target_path
|
105
110
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-soul-component-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|