cocoapods-ykutility 2.0.1 → 2.0.3
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: 1263c27bfc794451db4c0479d89b49f4ec8397e0bbff5f4c05f29566fb898c8c
|
4
|
+
data.tar.gz: 19d3426ac5f347149840c29c0c2b7bfd9f3862c0b2c95f0facbd98bbc7e75544
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 367d9129c599ac9b6356a617f9633c4e2e1077a64326b75c6a80ff0028e46c4936ddfec8dcc197de250eb0070e1e0d197fa9919d6ac96e42bbf0043c2dca815f
|
7
|
+
data.tar.gz: 99b84dccb596e46cedd299a86e8d9aed648ba254ae89c55dd31afeb4aa1959e945acdb1ddf261af020543a2543c71765820682497b1bc68a621c0eceaff3cf33
|
@@ -12,10 +12,25 @@ inhibit_all_warnings!
|
|
12
12
|
use_frameworks! :linkage => :static # 使用 framework形势的静态库, 注释可变为.a 静态库
|
13
13
|
use_modular_headers! #此字段用于pod自动生成 swift module 伞文件
|
14
14
|
|
15
|
+
|
16
|
+
def st_installLocalPods(dir, arr)
|
17
|
+
arr.each do |onePod|
|
18
|
+
pod onePod, :path => File.join(dir, onePod)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def pod_develop
|
23
|
+
dir = '../'
|
24
|
+
arr = [
|
25
|
+
'YKRPC_POD_NAME'
|
26
|
+
]
|
27
|
+
st_installLocalPods(dir, arr)
|
28
|
+
end
|
29
|
+
|
15
30
|
project 'YKRPC_POD_NAME_Example.xcodeproj'
|
16
31
|
target 'YKRPC_POD_NAME_Example' do
|
17
32
|
# Pods for YKRPC_POD_NAME_Example
|
18
|
-
|
33
|
+
pod_develop
|
19
34
|
|
20
35
|
end
|
21
36
|
|
@@ -50,4 +65,4 @@ post_install do |installer|
|
|
50
65
|
config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
|
51
66
|
end
|
52
67
|
end
|
53
|
-
end
|
68
|
+
end
|
data/podTemplate/example/Podfile
CHANGED
@@ -12,10 +12,24 @@ inhibit_all_warnings!
|
|
12
12
|
use_frameworks! :linkage => :static # 使用 framework形势的静态库, 注释可变为.a 静态库
|
13
13
|
use_modular_headers! #此字段用于pod自动生成 swift module 伞文件
|
14
14
|
|
15
|
+
def st_installLocalPods(dir, arr)
|
16
|
+
arr.each do |onePod|
|
17
|
+
pod onePod, :path => File.join(dir, onePod)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
def pod_develop
|
22
|
+
dir = '../'
|
23
|
+
arr = [
|
24
|
+
'YKRPC_POD_NAME'
|
25
|
+
]
|
26
|
+
st_installLocalPods(dir, arr)
|
27
|
+
end
|
28
|
+
|
15
29
|
project 'YKRPC_POD_NAME_Example.xcodeproj'
|
16
30
|
target 'YKRPC_POD_NAME_Example' do
|
17
31
|
# Pods for YKRPC_POD_NAME_Example
|
18
|
-
|
32
|
+
pod_develop
|
19
33
|
|
20
34
|
end
|
21
35
|
|
@@ -41,4 +55,4 @@ post_install do |installer|
|
|
41
55
|
config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
|
42
56
|
end
|
43
57
|
end
|
44
|
-
end
|
58
|
+
end
|
data/podTemplate/register/swift/YKRPC_POD_NAME/Private/register/YKRPC_POD_NAMERegisterService.swift
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
//
|
7
7
|
import STModuleServiceSwift
|
8
8
|
|
9
|
-
private class YKRPC_POD_NAMERegisterService: NSObject,
|
9
|
+
private class YKRPC_POD_NAMERegisterService: NSObject, STModuleServiceRegisterProtocol {
|
10
10
|
static func stModuleServiceRegistAction() {
|
11
11
|
//注册服务 NSObject --> NSObjectProtocol NSObjectProtocol为 swift 协议
|
12
12
|
// STModuleService().stRegistModule(YKRPC_POD_NAMERegisterService.self, protocol: NSObjectProtocol.self, err: nil)
|
@@ -18,4 +18,4 @@ private class YKRPC_POD_NAMERegisterService: NSObject, STModuleServiceProtocol {
|
|
18
18
|
// static func xxxxx() -> xxxxxObjc {
|
19
19
|
// return XXXXX()
|
20
20
|
// }
|
21
|
-
// }
|
21
|
+
// }
|