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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cef97d3e56c2f2731b6f72df8b51404344c6b19436e8b07aeeffb90d78f20b07
4
- data.tar.gz: e4dc506bede873274e5d52ca4094bc9e801fc9559111d3318a757018e2332cc1
3
+ metadata.gz: 2edfd4f3d874a31e6f45882f890a432edfad16942958f2eb3c4de451722180f7
4
+ data.tar.gz: '0771699b838d9fbc3f9f202d31151551d2cca2b503bf5f9ad6e10549b9d10b0e'
5
5
  SHA512:
6
- metadata.gz: a30fbc00095f720e24726dc9979119a3ed2ac44a20e04518964a1dd7151c80e27e812d07edfc4f460ec279a802c7052790087a8f377c273e18ad269a16111362
7
- data.tar.gz: 2ef798a71e349627f4c79115ba1420236f684358bf4b78fdc32897f137db276e6f8dfafed503a687f9a6e041958c4f805b7f44b8e401b485d3370d8e5bee2939
6
+ metadata.gz: d74de998d0da8726358d14bbcb9bdc47d8418f96ac5658e203e57d60a168bf01e416c980dbe1ca0f9d5f384051f3b870d48d3b3250ceb002405e2c153feba4c6
7
+ data.tar.gz: 96b3510f35aaa538e2773b58cf51e145e9bdf851df59638f9643842456fba2acf19b0482b0a87ac9ccb8bbab6f679b765721f13fb3fa74604715af9d9a1a7243
@@ -6,20 +6,20 @@
6
6
  //
7
7
 
8
8
  #import "YKRPC_POD_NAMERegisterRouter.h"
9
- #import <YKRouterComponent/YKRouterComponentHeader.h>
9
+ #import <STComponentTools/STRouterHeader.h>
10
10
 
11
- @interface YKRPC_POD_NAMERegisterRouter()<YKRouterComponentRegisterProtocol>
11
+ @interface YKRPC_POD_NAMERegisterRouter()<STRouterRegisterProtocol>
12
12
 
13
13
  @end
14
14
 
15
15
  @implementation YKRPC_POD_NAMERegisterRouter
16
16
 
17
- + (void)ykRouterRegisterExecute {
18
- [[YKRouterComponent shareInstance] ykRegisterUrlPartterns:@"XXXRouterStr" error:nil action:^(YKRouterUrlRequest * _Nonnull urlRequest, YKRouterUrlCompletion _Nonnull completetion) {
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
 
@@ -6,14 +6,14 @@
6
6
  //
7
7
 
8
8
  #import "YKRPC_POD_NAMERegisterService.h"
9
- #import <YKModuleServiceComponent/YKModuleServiceComponentHeader.h>
9
+ #import <STComponentTools/STModuleServiceHeader.h>
10
10
 
11
- @interface YKRPC_POD_NAMERegisterService()<YKModuleServiceRegisterProtocol, SUAdvertisementServiceProtocol>
11
+ @interface YKRPC_POD_NAMERegisterService()<STModuleServiceRegisterProtocol> //xxxxServiceProtocol
12
12
  @end
13
13
  @implementation SUAdvertisementServiceRegister
14
14
 
15
- + (void)ykModuleServiceRegistAction {
16
- YKModuleServiceRegisterExecute(SUAdvertisementServiceRegister.class, @protocol(SUAdvertisementServiceProtocol), nil);
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 YKRouterComponent
8
+ import STComponentTools.STRouter
9
9
 
10
- private class YKRPC_POD_NAMERegisterRouter: NSObject, YKRouterComponentRegisterProtocol {
11
- public static func ykRouterRegisterExecute() {
12
- // YKRouterRegisterUrlParttern("xxxxxxRouterString", nil) { (req: YKRouterUrlRequest, com: YKRouterUrlCompletion?) in
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 YKModuleServiceComponentSwift
7
+ import STModuleServiceSwift
8
8
 
9
- private class YKRPC_POD_NAMERegisterService: NSObject, YKModuleServiceRegisterProtocol {
10
- static func ykModuleServiceRegistAction() {
11
- // YKModuleServiceComponent().ykRegistModule(REHomeServiceRegist.self, protocol: XXXXProtocol.self, err: nil)
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 "YKRouterComponent"
98
- # s.dependency "YKModuleServiceComponent.swift" #swift 服务中间件, 如果是纯oc组件,请注释此中间件
99
- de_router = "spec.dependency \"YKRouterComponent\"\n"
100
- de_service = "spec.dependency \"YKModuleServiceComponent"
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 += ".swift\" #swift 服务中间件\n"
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 = "http://gitlab.y" + "ea" + "hk" + "a.com/App/iOS/YeahkaNativeComSpecsIndex.git"
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) }
@@ -16,7 +16,7 @@ module YKPod
16
16
  user_email = user_email.blank? ? 'xxx@xxx.com' : user_email
17
17
  @author = user_name.strip.gsub('.', '')
18
18
  @author_email = user_email.strip
19
- @prefix = 'YK'
19
+ @prefix = 'ST'
20
20
  @path = File.expand_path(Dir.getwd.to_s)
21
21
  end
22
22
 
@@ -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
- @config.author = argv.option('author', open("|git config --global user.name").gets).strip.gsub('.', '')
42
- @config.author_email = argv.option('email', open("|git config --global user.email").gets).strip
43
- @config.prefix = argv.option('prefix', "YK")
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 "YKRouterComponent"
100
- # s.dependency "YKModuleServiceComponent.swift" #swift 服务中间件, 如果是纯oc组件,请注释此中间件
101
- de_router = " spec.dependency \"YKRouterComponent\"\n"
102
- de_service = " spec.dependency \"YKModuleServiceComponent"
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 += ".swift\" #swift 服务中间件\n"
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 = "http://gitlab.y" + "ea" + "hk" + "a.com/App/iOS/YeahkaNativeComSpecsIndex.git"
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
- @config.author = argv.option('author', open("|git config --global user.name").gets).strip.gsub('.', '')
42
- @config.author_email = argv.option('email', open("|git config --global user.email").gets).strip
43
- @config.prefix = argv.option('prefix', "YK")
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
@@ -1,5 +1,5 @@
1
1
  module CocoapodsYkPodUtility
2
- VERSION = '1.0.2'
2
+ VERSION = '2.0.1'
3
3
  YK_POD_TEMPLATE_PATH = File.expand_path(File.join(__FILE__, '../../../podTemplate'))
4
4
  YK_POD_BUSINESS_REGISTER_PATH = File.expand_path(File.join(__FILE__, '../../../podTemplate/register'))
5
5
 
@@ -6,16 +6,16 @@
6
6
  //
7
7
 
8
8
  #import "YKRPC_POD_NAMERegisterRouter.h"
9
- #import <YKRouterComponent/YKRouterComponentHeader.h>
9
+ #import <STComponentTools/STRouterHeader.h>
10
10
 
11
- @interface YKRPC_POD_NAMERegisterRouter()<YKRouterComponentRegisterProtocol>
11
+ @interface YKRPC_POD_NAMERegisterRouter()<STRouterRegisterProtocol>
12
12
 
13
13
  @end
14
14
 
15
15
  @implementation YKRPC_POD_NAMERegisterRouter
16
16
 
17
- + (void)ykRouterRegisterExecute {
18
- [[YKRouterComponent shareInstance] ykRegisterUrlPartterns:@"XXXRouterStr" error:nil action:^(YKRouterUrlRequest * _Nonnull urlRequest, YKRouterUrlCompletion _Nonnull completetion) {
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];
@@ -6,14 +6,14 @@
6
6
  //
7
7
 
8
8
  #import "YKRPC_POD_NAMERegisterService.h"
9
- #import <YKModuleServiceComponent/YKModuleServiceComponentHeader.h>
9
+ #import <STComponentTools/STModuleServiceHeader.h>
10
10
 
11
- @interface YKRPC_POD_NAMERegisterService()<YKModuleServiceRegisterProtocol, SUAdvertisementServiceProtocol>
11
+ @interface YKRPC_POD_NAMERegisterService()<STModuleServiceRegisterProtocol> //xxxxServiceProtocol
12
12
  @end
13
13
  @implementation SUAdvertisementServiceRegister
14
14
 
15
- + (void)ykModuleServiceRegistAction {
16
- YKModuleServiceRegisterExecute(SUAdvertisementServiceRegister.class, @protocol(SUAdvertisementServiceProtocol), nil);
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 YKRouterComponent
8
+ import STComponentTools.STRouter
9
9
 
10
- private class YKRPC_POD_NAMERegisterRouter: NSObject, YKRouterComponentRegisterProtocol {
11
- public static func ykRouterRegisterExecute() {
12
- // YKRouterRegisterUrlParttern("xxxxxxRouterString", nil) { (req: YKRouterUrlRequest, com: YKRouterUrlCompletion?) in
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 YKModuleServiceComponentSwift
7
+ import STModuleServiceSwift
8
8
 
9
- private class YKRPC_POD_NAMERegisterService: NSObject, YKModuleServiceRegisterProtocol {
10
- static func ykModuleServiceRegistAction() {
11
- // YKModuleServiceComponent().ykRegistModule(REHomeServiceRegist.self, protocol: XXXXProtocol.self, err: nil)
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: 1.0.2
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-12 00:00:00.000000000 Z
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.1.6
258
+ rubygems_version: 3.2.3
259
259
  signing_key:
260
260
  specification_version: 4
261
261
  summary: 一款cocoapods插件,用于创建定制化标准组件.