cocoapods-ykutility 1.0.2 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/configPodTemplate/register/objc/YKRPC_POD_NAME/Private/Register/YKRPC_POD_NAMERegisterRouter.m +5 -5
- data/configPodTemplate/register/objc/YKRPC_POD_NAME/Private/Register/YKRPC_POD_NAMERegisterService.m +4 -4
- data/configPodTemplate/register/swift/YKRPC_POD_NAME/Private/register/YKRPC_POD_NAMERegisterRouter.swift +4 -4
- data/configPodTemplate/register/swift/YKRPC_POD_NAME/Private/register/YKRPC_POD_NAMERegisterService.swift +5 -4
- data/lib/cocoapods-ykutility/command/create/yk_create_pod_action.rb +6 -8
- data/lib/cocoapods-ykutility/command/create/yk_create_pod_config.rb +1 -1
- data/lib/cocoapods-ykutility/command/create.rb +10 -4
- data/lib/cocoapods-ykutility/command/gen/yk_gen_create_action.rb +6 -8
- data/lib/cocoapods-ykutility/command/gen.rb +11 -4
- data/lib/cocoapods-ykutility/gem_version.rb +1 -1
- data/podTemplate/register/objc/YKRPC_POD_NAME/Private/Register/YKRPC_POD_NAMERegisterRouter.m +4 -4
- data/podTemplate/register/objc/YKRPC_POD_NAME/Private/Register/YKRPC_POD_NAMERegisterService.m +4 -4
- data/podTemplate/register/swift/YKRPC_POD_NAME/Private/register/YKRPC_POD_NAMERegisterRouter.swift +4 -4
- data/podTemplate/register/swift/YKRPC_POD_NAME/Private/register/YKRPC_POD_NAMERegisterService.swift +5 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2edfd4f3d874a31e6f45882f890a432edfad16942958f2eb3c4de451722180f7
|
4
|
+
data.tar.gz: '0771699b838d9fbc3f9f202d31151551d2cca2b503bf5f9ad6e10549b9d10b0e'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d74de998d0da8726358d14bbcb9bdc47d8418f96ac5658e203e57d60a168bf01e416c980dbe1ca0f9d5f384051f3b870d48d3b3250ceb002405e2c153feba4c6
|
7
|
+
data.tar.gz: 96b3510f35aaa538e2773b58cf51e145e9bdf851df59638f9643842456fba2acf19b0482b0a87ac9ccb8bbab6f679b765721f13fb3fa74604715af9d9a1a7243
|
data/configPodTemplate/register/objc/YKRPC_POD_NAME/Private/Register/YKRPC_POD_NAMERegisterRouter.m
CHANGED
@@ -6,20 +6,20 @@
|
|
6
6
|
//
|
7
7
|
|
8
8
|
#import "YKRPC_POD_NAMERegisterRouter.h"
|
9
|
-
#import <
|
9
|
+
#import <STComponentTools/STRouterHeader.h>
|
10
10
|
|
11
|
-
@interface YKRPC_POD_NAMERegisterRouter()<
|
11
|
+
@interface YKRPC_POD_NAMERegisterRouter()<STRouterRegisterProtocol>
|
12
12
|
|
13
13
|
@end
|
14
14
|
|
15
15
|
@implementation YKRPC_POD_NAMERegisterRouter
|
16
16
|
|
17
|
-
+ (void)
|
18
|
-
|
17
|
+
+ (void)stRouterRegisterExecute {
|
18
|
+
// [[STRouter shareInstance] stRegisterUrlPartterns:@"XXXRouterStr" error:nil action:^(STRouterUrlRequest * _Nonnull urlRequest, STRouterUrlCompletion _Nonnull completetion) {
|
19
19
|
// xxxVC *vc = [[xxxVC alloc] init];
|
20
20
|
// UIViewController *topVC = urlRequest.fromVC ? urlRequest.fromVC : [UIViewController topController];
|
21
21
|
// [topVC.navigationController pushViewController:vc animated:YES];
|
22
|
-
|
22
|
+
// }];
|
23
23
|
}
|
24
24
|
|
25
25
|
|
data/configPodTemplate/register/objc/YKRPC_POD_NAME/Private/Register/YKRPC_POD_NAMERegisterService.m
CHANGED
@@ -6,14 +6,14 @@
|
|
6
6
|
//
|
7
7
|
|
8
8
|
#import "YKRPC_POD_NAMERegisterService.h"
|
9
|
-
#import <
|
9
|
+
#import <STComponentTools/STModuleServiceHeader.h>
|
10
10
|
|
11
|
-
@interface YKRPC_POD_NAMERegisterService()<
|
11
|
+
@interface YKRPC_POD_NAMERegisterService()<STModuleServiceRegisterProtocol> //xxxxServiceProtocol
|
12
12
|
@end
|
13
13
|
@implementation SUAdvertisementServiceRegister
|
14
14
|
|
15
|
-
+ (void)
|
16
|
-
|
15
|
+
+ (void)stModuleServiceRegistAction {
|
16
|
+
// stModuleServiceRegisterExecute(SUAdvertisementServiceRegister.class, @protocol(SUAdvertisementServiceProtocol), nil);
|
17
17
|
}
|
18
18
|
|
19
19
|
@end
|
@@ -5,11 +5,11 @@
|
|
5
5
|
// Created by YKRPC_AUTHOR_NAME on YKRPC_CREATE_DATE.
|
6
6
|
//
|
7
7
|
|
8
|
-
import
|
8
|
+
import STComponentTools.STRouter
|
9
9
|
|
10
|
-
private class YKRPC_POD_NAMERegisterRouter: NSObject,
|
11
|
-
public static func
|
12
|
-
//
|
10
|
+
private class YKRPC_POD_NAMERegisterRouter: NSObject, STRouterRegisterProtocol {
|
11
|
+
public static func stRouterRegisterExecute() {
|
12
|
+
// stRouterRegisterUrlParttern("xxxxxxRouterString", nil) { (req: STRouterUrlRequest, com: STRouterUrlCompletion?) in
|
13
13
|
// let topVC = req.fromVC ?? UIViewController.getTopVC()
|
14
14
|
// let vc = REUserProfileVC()
|
15
15
|
// topVC?.navigationController?.pushViewController(vc, animated: true)
|
@@ -4,11 +4,12 @@
|
|
4
4
|
//
|
5
5
|
// Created by YKRPC_AUTHOR_NAME on YKRPC_CREATE_DATE.
|
6
6
|
//
|
7
|
-
import
|
7
|
+
import STModuleServiceSwift
|
8
8
|
|
9
|
-
private class YKRPC_POD_NAMERegisterService: NSObject,
|
10
|
-
static func
|
11
|
-
|
9
|
+
private class YKRPC_POD_NAMERegisterService: NSObject, STModuleServiceRegisterProtocol {
|
10
|
+
static func stModuleServiceRegistAction() {
|
11
|
+
//注册服务 NSObject --> NSObjectProtocol NSObjectProtocol为 swift 协议
|
12
|
+
// STModuleService().stRegistModule(YKRPC_POD_NAMERegisterService.self, protocol: NSObjectProtocol.self, err: nil)
|
12
13
|
}
|
13
14
|
}
|
14
15
|
|
@@ -94,14 +94,12 @@ module YKPod
|
|
94
94
|
spec_file_path = File.join(pod_dir_cache, "YKRPC_POD_NAME.podspec")
|
95
95
|
|
96
96
|
# 在倒数第二行插入新语句
|
97
|
-
# s.dependency "
|
98
|
-
# s.dependency "
|
99
|
-
de_router = "spec.dependency \"
|
100
|
-
de_service = "spec.dependency \"
|
97
|
+
# s.dependency "STComponentTools/STRouter"
|
98
|
+
# s.dependency "STModuleService.swift" #swift 服务中间件, 如果是纯oc组件,请注释此中间件
|
99
|
+
de_router = "spec.dependency \"STComponentTools/STRouter\"\n"
|
100
|
+
de_service = "spec.dependency \"STComponentTools/STModuleService\" #oc 服务中间件\n"
|
101
101
|
if @config.language == "swift"
|
102
|
-
de_service
|
103
|
-
else
|
104
|
-
de_service += "\" #oc 服务中间件\n"
|
102
|
+
de_service = "spec.dependency \"STModuleService.swift\" #swift 服务中间件\n"
|
105
103
|
end
|
106
104
|
|
107
105
|
lines = File.readlines(spec_file_path)
|
@@ -136,7 +134,7 @@ module YKPod
|
|
136
134
|
|
137
135
|
|
138
136
|
# 在第二行插入新语句
|
139
|
-
source_pri = "
|
137
|
+
source_pri = "https://github.com/STTechnology5652/STSpecs.git"
|
140
138
|
lines = File.readlines(pod_file_cache)
|
141
139
|
lines.insert(2, "source \"#{source_pri}\"\n")
|
142
140
|
File.open(pod_file_cache, 'w') { |file| file.puts(lines.join) }
|
@@ -38,9 +38,15 @@ module Pod
|
|
38
38
|
@config.language = (["objc", "oc"].include? argv.option('language', "swift").downcase) ? "objc" : "swift"
|
39
39
|
@config.with_demo = !argv.flag?('no-demo', false)
|
40
40
|
@config.with_register = argv.flag?('business', false)
|
41
|
-
|
42
|
-
|
43
|
-
@config.
|
41
|
+
author = argv.option('author', open("|git config --global user.name").gets)
|
42
|
+
author = author.blank? ? "defualt_author" : author
|
43
|
+
@config.author = author.strip.gsub('.', '')
|
44
|
+
|
45
|
+
email = argv.option('email', open("|git config --global user.email").gets)
|
46
|
+
email = email.blank? ? "defualt_email" : email
|
47
|
+
@config.author_email = email.strip
|
48
|
+
|
49
|
+
@config.prefix = argv.option('prefix', "ST")
|
44
50
|
@config.path = File.expand_path(argv.option('pod-path', Dir.getwd.to_s))
|
45
51
|
super
|
46
52
|
@additional_args = argv.remainder!
|
@@ -73,4 +79,4 @@ module Pod
|
|
73
79
|
|
74
80
|
end
|
75
81
|
end
|
76
|
-
end
|
82
|
+
end
|
@@ -96,14 +96,12 @@ module YKPod
|
|
96
96
|
spec_file_path = File.join(pod_dir_cache, "YKRPC_POD_NAME.podspec")
|
97
97
|
|
98
98
|
# 在倒数第二行插入新语句
|
99
|
-
# s.dependency "
|
100
|
-
# s.dependency "
|
101
|
-
de_router = "
|
102
|
-
de_service = "
|
99
|
+
# s.dependency "STComponentTools/STRouter"
|
100
|
+
# s.dependency "STModuleService.swift" #swift 服务中间件, 如果是纯oc组件,请注释此中间件
|
101
|
+
de_router = "spec.dependency \"STComponentTools/STRouter\"\n"
|
102
|
+
de_service = "spec.dependency \"STComponentTools/STModuleService\" #oc 服务中间件\n"
|
103
103
|
if @config.language == "swift"
|
104
|
-
de_service
|
105
|
-
else
|
106
|
-
de_service += "\" #oc 服务中间件\n"
|
104
|
+
de_service = "spec.dependency \"STModuleService.swift\" #swift 服务中间件\n"
|
107
105
|
end
|
108
106
|
|
109
107
|
lines = File.readlines(spec_file_path)
|
@@ -141,7 +139,7 @@ module YKPod
|
|
141
139
|
|
142
140
|
|
143
141
|
# 在第二行插入新语句
|
144
|
-
source_pri = "
|
142
|
+
source_pri = "https://github.com/STTechnology5652/STSpecs.git"
|
145
143
|
lines = File.readlines(pod_file_cache)
|
146
144
|
lines.insert(2, "source \"#{source_pri}\"\n")
|
147
145
|
File.open(pod_file_cache, 'w') { |file| file.puts(lines.join) }
|
@@ -38,9 +38,16 @@ module Pod
|
|
38
38
|
@config.language = (["objc", "oc"].include? argv.option('language', "swift").downcase) ? "objc" : "swift"
|
39
39
|
@config.with_demo = !argv.flag?('no-demo', false)
|
40
40
|
@config.with_register = argv.flag?('business', false)
|
41
|
-
|
42
|
-
|
43
|
-
|
41
|
+
|
42
|
+
author = argv.option('author', open("|git config --global user.name").gets)
|
43
|
+
author = author.blank? ? "defualt_author" : author
|
44
|
+
@config.author = author.strip.gsub('.', '')
|
45
|
+
|
46
|
+
email = argv.option('email', open("|git config --global user.email").gets)
|
47
|
+
email = email.blank? ? "defualt_email" : email
|
48
|
+
@config.author_email = email.strip
|
49
|
+
|
50
|
+
@config.prefix = argv.option('prefix', "ST")
|
44
51
|
@config.path = File.expand_path(argv.option('pod-path', Dir.getwd.to_s))
|
45
52
|
super
|
46
53
|
@additional_args = argv.remainder!
|
@@ -71,4 +78,4 @@ module Pod
|
|
71
78
|
|
72
79
|
end
|
73
80
|
end
|
74
|
-
end
|
81
|
+
end
|
data/podTemplate/register/objc/YKRPC_POD_NAME/Private/Register/YKRPC_POD_NAMERegisterRouter.m
CHANGED
@@ -6,16 +6,16 @@
|
|
6
6
|
//
|
7
7
|
|
8
8
|
#import "YKRPC_POD_NAMERegisterRouter.h"
|
9
|
-
#import <
|
9
|
+
#import <STComponentTools/STRouterHeader.h>
|
10
10
|
|
11
|
-
@interface YKRPC_POD_NAMERegisterRouter()<
|
11
|
+
@interface YKRPC_POD_NAMERegisterRouter()<STRouterRegisterProtocol>
|
12
12
|
|
13
13
|
@end
|
14
14
|
|
15
15
|
@implementation YKRPC_POD_NAMERegisterRouter
|
16
16
|
|
17
|
-
+ (void)
|
18
|
-
[[
|
17
|
+
+ (void)stRouterRegisterExecute {
|
18
|
+
[[STRouterComponent shareInstance] ykRegisterUrlPartterns:@"XXXRouterStr" error:nil action:^(STRouterUrlRequest * _Nonnull urlRequest, STRouterUrlCompletion _Nonnull completetion) {
|
19
19
|
// xxxVC *vc = [[xxxVC alloc] init];
|
20
20
|
// UIViewController *topVC = urlRequest.fromVC ? urlRequest.fromVC : [UIViewController topController];
|
21
21
|
// [topVC.navigationController pushViewController:vc animated:YES];
|
data/podTemplate/register/objc/YKRPC_POD_NAME/Private/Register/YKRPC_POD_NAMERegisterService.m
CHANGED
@@ -6,14 +6,14 @@
|
|
6
6
|
//
|
7
7
|
|
8
8
|
#import "YKRPC_POD_NAMERegisterService.h"
|
9
|
-
#import <
|
9
|
+
#import <STComponentTools/STModuleServiceHeader.h>
|
10
10
|
|
11
|
-
@interface YKRPC_POD_NAMERegisterService()<
|
11
|
+
@interface YKRPC_POD_NAMERegisterService()<STModuleServiceRegisterProtocol> //xxxxServiceProtocol
|
12
12
|
@end
|
13
13
|
@implementation SUAdvertisementServiceRegister
|
14
14
|
|
15
|
-
+ (void)
|
16
|
-
|
15
|
+
+ (void)stModuleServiceRegistAction {
|
16
|
+
// stModuleServiceRegisterExecute(SUAdvertisementServiceRegister.class, @protocol(SUAdvertisementServiceProtocol), nil);
|
17
17
|
}
|
18
18
|
|
19
19
|
@end
|
data/podTemplate/register/swift/YKRPC_POD_NAME/Private/register/YKRPC_POD_NAMERegisterRouter.swift
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
// Created by YKRPC_AUTHOR_NAME on YKRPC_CREATE_DATE.
|
6
6
|
//
|
7
7
|
|
8
|
-
import
|
8
|
+
import STComponentTools.STRouter
|
9
9
|
|
10
|
-
private class YKRPC_POD_NAMERegisterRouter: NSObject,
|
11
|
-
public static func
|
12
|
-
//
|
10
|
+
private class YKRPC_POD_NAMERegisterRouter: NSObject, STRouterRegisterProtocol {
|
11
|
+
public static func stRouterRegisterExecute() {
|
12
|
+
// stRouterRegisterUrlParttern("xxxxxxRouterString", nil) { (req: STRouterUrlRequest, com: STRouterUrlCompletion?) in
|
13
13
|
// let topVC = req.fromVC ?? UIViewController.getTopVC()
|
14
14
|
// let vc = REUserProfileVC()
|
15
15
|
// topVC?.navigationController?.pushViewController(vc, animated: true)
|
data/podTemplate/register/swift/YKRPC_POD_NAME/Private/register/YKRPC_POD_NAMERegisterService.swift
CHANGED
@@ -4,11 +4,12 @@
|
|
4
4
|
//
|
5
5
|
// Created by YKRPC_AUTHOR_NAME on YKRPC_CREATE_DATE.
|
6
6
|
//
|
7
|
-
import
|
7
|
+
import STModuleServiceSwift
|
8
8
|
|
9
|
-
private class YKRPC_POD_NAMERegisterService: NSObject,
|
10
|
-
static func
|
11
|
-
|
9
|
+
private class YKRPC_POD_NAMERegisterService: NSObject, STModuleServiceProtocol {
|
10
|
+
static func stModuleServiceRegistAction() {
|
11
|
+
//注册服务 NSObject --> NSObjectProtocol NSObjectProtocol为 swift 协议
|
12
|
+
// STModuleService().stRegistModule(YKRPC_POD_NAMERegisterService.self, protocol: NSObjectProtocol.self, err: nil)
|
12
13
|
}
|
13
14
|
}
|
14
15
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-ykutility
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- stephen.chen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jazzy
|
@@ -255,7 +255,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
255
255
|
- !ruby/object:Gem::Version
|
256
256
|
version: '0'
|
257
257
|
requirements: []
|
258
|
-
rubygems_version: 3.
|
258
|
+
rubygems_version: 3.2.3
|
259
259
|
signing_key:
|
260
260
|
specification_version: 4
|
261
261
|
summary: 一款cocoapods插件,用于创建定制化标准组件.
|