cocoapods-ykutility 1.0.2 → 2.0.0
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/gen/yk_gen_create_action.rb +6 -8
- 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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60ff05c2b35fb097b1e4180d1adb1b425ef97a61eb0d342702f3a658ad8d95a2
|
4
|
+
data.tar.gz: b1beca616224f4333f3a927efb3cb0aacd0f1f1b23c381a4f39e4f73e65cd3d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4bbd170262c206a2494fffc589bfe8f3ff64680879c267f72a5165ab6767ba8aed0316011fbb16bc2b8b16b4578c8e913ea94adc59e1d7606051c9a16665b9d
|
7
|
+
data.tar.gz: 0ff1a1f6f0c8ff85b9f2a27e87e5a7db7290b4f2c1af10fb60a5537b0fb27cdb7eaa03c04f68acef85628bb5d4495d4c6a4904e5856081d4bc4b48d4b98b82ef
|
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) }
|
@@ -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) }
|
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.0
|
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-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jazzy
|