cocoapods-ykutility 0.0.18 → 1.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/example/CommonFiles/.gitkeep +0 -0
- data/configPodTemplate/example/CommonFiles/CommonFile.swift +9 -0
- data/configPodTemplate/example/NotificationContent/Base.lproj/MainInterface.storyboard +43 -0
- data/configPodTemplate/example/NotificationContent/Info.plist +40 -0
- data/configPodTemplate/example/NotificationContent/NotificationViewController.swift +25 -0
- data/configPodTemplate/example/NotificationService/Info.plist +38 -0
- data/configPodTemplate/example/NotificationService/NotificationService.swift +36 -0
- data/configPodTemplate/example/Podfile +53 -0
- data/configPodTemplate/example/READ.md +76 -0
- data/configPodTemplate/example/README_resource/appExtensionNameDiscussion.png +0 -0
- data/configPodTemplate/example/TargetMain/AppDelegate.swift +32 -0
- data/configPodTemplate/example/TargetMain/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
- data/configPodTemplate/example/TargetMain/Assets.xcassets/AppIcon.appiconset/Contents.json +13 -0
- data/configPodTemplate/example/TargetMain/Assets.xcassets/Contents.json +6 -0
- data/configPodTemplate/example/TargetMain/Base.lproj/LaunchScreen.storyboard +45 -0
- data/configPodTemplate/example/TargetMain/Info.plist +47 -0
- data/configPodTemplate/example/TargetMain/ViewController.swift +29 -0
- data/configPodTemplate/example/TargetMain/ViewController.xib +46 -0
- data/configPodTemplate/example/TargetMain/YKRPC_POD_NAMEEmptyOC.h +16 -0
- data/configPodTemplate/example/TargetMain/YKRPC_POD_NAMEEmptyOC.m +18 -0
- data/configPodTemplate/example/TargetMain/YKRPC_POD_NAME_Example-Bridging-Header.h +4 -0
- data/configPodTemplate/example/config/iOS-config/target-main/Shared.xcconfig +105 -0
- data/configPodTemplate/example/config/iOS-config/target-main/config-custom/Shared.xcconfig +2 -0
- data/configPodTemplate/example/config/iOS-config/target-main/config-custom/debug.xcconfig +9 -0
- data/configPodTemplate/example/config/iOS-config/target-main/config-custom/release.xcconfig +9 -0
- data/configPodTemplate/example/config/iOS-config/target-main/config-enterprise/Shared.xcconfig +1 -0
- data/configPodTemplate/example/config/iOS-config/target-main/config-enterprise/debug.xcconfig +9 -0
- data/configPodTemplate/example/config/iOS-config/target-main/config-enterprise/release.xcconfig +9 -0
- data/configPodTemplate/example/config/iOS-config/target-main-Q/Shared.xcconfig +105 -0
- data/configPodTemplate/example/config/iOS-config/target-main-Q/config-custom/Shared.xcconfig +2 -0
- data/configPodTemplate/example/config/iOS-config/target-main-Q/config-custom/debug.xcconfig +9 -0
- data/configPodTemplate/example/config/iOS-config/target-main-Q/config-custom/release.xcconfig +9 -0
- data/configPodTemplate/example/config/iOS-config/target-main-Q/config-enterprise/Shared.xcconfig +1 -0
- data/configPodTemplate/example/config/iOS-config/target-main-Q/config-enterprise/debug.xcconfig +9 -0
- data/configPodTemplate/example/config/iOS-config/target-main-Q/config-enterprise/release.xcconfig +9 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationContent/Shared.xcconfig +5 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationContent/config-custom/Shared.xcconfig +2 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationContent/config-custom/debug.xcconfig +129 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationContent/config-custom/release.xcconfig +9 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationContent/config-enterprise/Shared.xcconfig +2 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationContent/config-enterprise/debug.xcconfig +129 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationContent/config-enterprise/release.xcconfig +9 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationContent-Q/Shared.xcconfig +5 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationContent-Q/config-custom/Shared.xcconfig +2 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationContent-Q/config-custom/debug.xcconfig +129 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationContent-Q/config-custom/release.xcconfig +9 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationContent-Q/config-enterprise/Shared.xcconfig +2 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationContent-Q/config-enterprise/debug.xcconfig +129 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationContent-Q/config-enterprise/release.xcconfig +9 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationService/Shared.xcconfig +7 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationService/config-custom/Shared.xcconfig +2 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationService/config-custom/debug.xcconfig +129 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationService/config-custom/release.xcconfig +9 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationService/config-enterprise/Shared.xcconfig +3 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationService/config-enterprise/debug.xcconfig +129 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationService/config-enterprise/release.xcconfig +9 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationService-Q/Shared.xcconfig +7 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationService-Q/config-custom/Shared.xcconfig +2 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationService-Q/config-custom/debug.xcconfig +129 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationService-Q/config-custom/release.xcconfig +9 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationService-Q/config-enterprise/Shared.xcconfig +3 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationService-Q/config-enterprise/debug.xcconfig +129 -0
- data/configPodTemplate/example/config/iOS-config/target-notificationService-Q/config-enterprise/release.xcconfig +9 -0
- data/configPodTemplate/example/config/iOS-targets-Q.yml +137 -0
- data/configPodTemplate/example/config/iOS-targets.yml +135 -0
- data/configPodTemplate/example/config/project-config/Shared.xcconfig +470 -0
- data/configPodTemplate/example/config/project-config/config-custom/Shared.xcconfig +8 -0
- data/configPodTemplate/example/config/project-config/config-custom/debug.xcconfig +127 -0
- data/configPodTemplate/example/config/project-config/config-custom/release.xcconfig +60 -0
- data/configPodTemplate/example/config/project-config/config-enterprise/Shared.xcconfig +20 -0
- data/configPodTemplate/example/config/project-config/config-enterprise/debug.xcconfig +127 -0
- data/configPodTemplate/example/config/project-config/config-enterprise/release.xcconfig +59 -0
- data/configPodTemplate/example/project.yml +37 -0
- data/configPodTemplate/objc/LICENSE +19 -0
- data/configPodTemplate/objc/README.md +60 -0
- data/configPodTemplate/objc/YKRPC_POD_NAME/Assets/Images.xcassets/.gitkeep +0 -0
- data/configPodTemplate/objc/YKRPC_POD_NAME/Private/.gitkeep +0 -0
- data/configPodTemplate/objc/YKRPC_POD_NAME/Public/YKRPC_POD_NAME.h +16 -0
- data/configPodTemplate/objc/YKRPC_POD_NAME/Public/YKRPC_POD_NAME.m +12 -0
- data/configPodTemplate/objc/YKRPC_POD_NAME.podspec +62 -0
- data/configPodTemplate/register/objc/YKRPC_POD_NAME/Private/Register/YKRPC_POD_NAMERegisterRouter.h +16 -0
- data/configPodTemplate/register/objc/YKRPC_POD_NAME/Private/Register/YKRPC_POD_NAMERegisterRouter.m +27 -0
- data/configPodTemplate/register/objc/YKRPC_POD_NAME/Private/Register/YKRPC_POD_NAMERegisterService.h +15 -0
- data/configPodTemplate/register/objc/YKRPC_POD_NAME/Private/Register/YKRPC_POD_NAMERegisterService.m +27 -0
- data/configPodTemplate/register/swift/YKRPC_POD_NAME/Private/.gitkeep +0 -0
- data/configPodTemplate/register/swift/YKRPC_POD_NAME/Private/register/YKRPC_POD_NAMERegisterRouter.swift +19 -0
- data/configPodTemplate/register/swift/YKRPC_POD_NAME/Private/register/YKRPC_POD_NAMERegisterService.swift +20 -0
- data/configPodTemplate/swift/LICENSE +19 -0
- data/configPodTemplate/swift/README.md +60 -0
- data/configPodTemplate/swift/YKRPC_POD_NAME/Assets/Images.xcassets/.gitkeep +0 -0
- data/configPodTemplate/swift/YKRPC_POD_NAME/Private/.gitkeep +0 -0
- data/configPodTemplate/swift/YKRPC_POD_NAME/Public/YKRPC_POD_NAME.swift +6 -0
- data/configPodTemplate/swift/YKRPC_POD_NAME.podspec +61 -0
- data/lib/cocoapods-ykutility/command/Ykutility.rb +1 -0
- data/lib/cocoapods-ykutility/command/create/yk_create_pod_action.rb +7 -7
- data/lib/cocoapods-ykutility/command/create/yk_exchange_tool.rb +1 -0
- data/lib/cocoapods-ykutility/command/gen/yk_gen_create_action.rb +162 -0
- data/lib/cocoapods-ykutility/command/gen.rb +74 -0
- data/lib/cocoapods-ykutility/gem_version.rb +4 -1
- data/podTemplate/example/Podfile +1 -1
- data/podTemplate/example/YKRPC_POD_NAME_Example/AppDelegate.swift +1 -1
- data/podTemplate/example/YKRPC_POD_NAME_Example/Base.lproj/LaunchScreen.storyboard +1 -1
- data/podTemplate/example/YKRPC_POD_NAME_Example/Base.lproj/Main.storyboard +1 -1
- data/podTemplate/example/YKRPC_POD_NAME_Example/SceneDelegate.swift +1 -1
- data/podTemplate/example/YKRPC_POD_NAME_Example/ViewController.swift +1 -1
- data/podTemplate/example/YKRPC_POD_NAME_Example.xcodeproj/project.pbxproj +1 -1
- data/podTemplate/objc/LICENSE +1 -1
- data/podTemplate/objc/README.md +4 -4
- data/podTemplate/objc/YKRPC_POD_NAME/Public/YKRPC_POD_NAME.h +1 -1
- data/podTemplate/objc/YKRPC_POD_NAME/Public/YKRPC_POD_NAME.m +1 -1
- data/podTemplate/objc/YKRPC_POD_NAME.podspec +3 -3
- data/podTemplate/register/objc/YKRPC_POD_NAME/Private/Register/YKRPC_POD_NAMERegisterRouter.h +1 -1
- data/podTemplate/register/objc/YKRPC_POD_NAME/Private/Register/YKRPC_POD_NAMERegisterRouter.m +1 -1
- data/podTemplate/register/objc/YKRPC_POD_NAME/Private/Register/YKRPC_POD_NAMERegisterService.h +1 -1
- data/podTemplate/register/objc/YKRPC_POD_NAME/Private/Register/YKRPC_POD_NAMERegisterService.m +1 -1
- data/podTemplate/register/swift/YKRPC_POD_NAME/Private/register/YKRPC_POD_NAMERegisterRouter.swift +1 -1
- data/podTemplate/register/swift/YKRPC_POD_NAME/Private/register/YKRPC_POD_NAMERegisterService.swift +1 -1
- data/podTemplate/swift/README.md +4 -4
- data/podTemplate/swift/YKRPC_POD_NAME/Public/YKRPC_POD_NAME.swift +1 -1
- data/podTemplate/swift/YKRPC_POD_NAME.podspec +3 -3
- metadata +98 -3
@@ -0,0 +1,127 @@
|
|
1
|
+
//
|
2
|
+
// Debug.xcconfig
|
3
|
+
//
|
4
|
+
// Generated by BuildSettingExtractor on 2023/12/27
|
5
|
+
// https://buildsettingextractor.com
|
6
|
+
//
|
7
|
+
|
8
|
+
#include "Shared.xcconfig"
|
9
|
+
|
10
|
+
// Enable Testability
|
11
|
+
//
|
12
|
+
// Enabling this setting will build the target with options appropriate for running
|
13
|
+
// automated tests against its product.
|
14
|
+
//
|
15
|
+
// This setting can be enabled when building targets for debugging if their products will
|
16
|
+
// be tested. This may result in tests running slower than otherwise.
|
17
|
+
//
|
18
|
+
// When this setting is enabled:
|
19
|
+
//
|
20
|
+
// * `GCC_SYMBOLS_PRIVATE_EXTERN` is disabled (`-fvisibility=hidden` will not be passed
|
21
|
+
// to `clang`).
|
22
|
+
// * `-enable-testing` is passed to the Swift compiler.
|
23
|
+
// * `-export_dynamic` is passed to the linker.
|
24
|
+
// * `STRIP_INSTALLED_PRODUCT` is disabled (`strip` will not be run on the produced
|
25
|
+
// binary).
|
26
|
+
|
27
|
+
ENABLE_TESTABILITY = YES
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
// Generate Position-Dependent Code
|
32
|
+
//
|
33
|
+
// Faster function calls for applications. Not appropriate for shared libraries, which
|
34
|
+
// need to be position-independent.
|
35
|
+
|
36
|
+
GCC_DYNAMIC_NO_PIC = NO
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
// Optimization Level
|
41
|
+
//
|
42
|
+
// Specifies the degree to which the generated code is optimized for speed and binary
|
43
|
+
// size.
|
44
|
+
//
|
45
|
+
// * None: Do not optimize. [-O0]
|
46
|
+
// With this setting, the compiler's goal is to reduce the cost of compilation and to
|
47
|
+
// make debugging produce the expected results. Statements are independent—if you stop
|
48
|
+
// the program with a breakpoint between statements, you can then assign a new value to
|
49
|
+
// any variable or change the program counter to any other statement in the function and
|
50
|
+
// get exactly the results you would expect from the source code.
|
51
|
+
// * Fast: Optimizing compilation takes somewhat more time, and a lot more memory for a
|
52
|
+
// large function. [-O1]
|
53
|
+
// With this setting, the compiler tries to reduce code size and execution time,
|
54
|
+
// without performing any optimizations that take a great deal of compilation time. In
|
55
|
+
// Apple's compiler, strict aliasing, block reordering, and inter-block scheduling are
|
56
|
+
// disabled by default when optimizing.
|
57
|
+
// * Faster: The compiler performs nearly all supported optimizations that do not
|
58
|
+
// involve a space-speed tradeoff. [-O2]
|
59
|
+
// With this setting, the compiler does not perform loop unrolling or function
|
60
|
+
// inlining, or register renaming. As compared to the `Fast` setting, this setting
|
61
|
+
// increases both compilation time and the performance of the generated code.
|
62
|
+
// * Fastest: Turns on all optimizations specified by the `Faster` setting and also
|
63
|
+
// turns on function inlining and register renaming options. This setting may result in a
|
64
|
+
// larger binary. [-O3]
|
65
|
+
// * Fastest, Smallest: Optimize for size. This setting enables all `Faster`
|
66
|
+
// optimizations that do not typically increase code size. It also performs further
|
67
|
+
// optimizations designed to reduce code size. [-Os]
|
68
|
+
// * Fastest, Aggressive Optimizations: This setting enables `Fastest` but also enables
|
69
|
+
// aggressive optimizations that may break strict standards compliance but should work
|
70
|
+
// well on well-behaved code. [-Ofast]
|
71
|
+
// * Smallest, Aggressive Size Optimizations: This setting enables additional size
|
72
|
+
// savings by isolating repetitive code patterns into a compiler generated function.
|
73
|
+
// [-Oz]
|
74
|
+
|
75
|
+
GCC_OPTIMIZATION_LEVEL = 0
|
76
|
+
|
77
|
+
|
78
|
+
// Preprocessor Macros
|
79
|
+
//
|
80
|
+
// Space-separated list of preprocessor macros of the form `foo` or `foo=bar`.
|
81
|
+
|
82
|
+
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) DEBUG=1
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
// Symbols Hidden by Default
|
87
|
+
//
|
88
|
+
// When enabled, all symbols are declared `private extern` unless explicitly marked to be
|
89
|
+
// exported using `\_\_attribute\_\_((visibility("default")))` in code. If not enabled,
|
90
|
+
// all symbols are exported unless explicitly marked as `private extern`. See
|
91
|
+
// [Controlling Symbol
|
92
|
+
// Visibility](https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/CppRuntimeEnv/Articles/SymbolVisibility.html#//apple_ref/doc/uid/TP40001670-CJBGBHEJ)
|
93
|
+
// in [C++ Runtime Environment Programming
|
94
|
+
// Guide](https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/CppRuntimeEnv/CPPRuntimeEnv.html).
|
95
|
+
|
96
|
+
GCC_SYMBOLS_PRIVATE_EXTERN = NO
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
// Produce Debugging Information
|
101
|
+
//
|
102
|
+
// Debugging information is required for shader debugging and profiling.
|
103
|
+
|
104
|
+
MTL_ENABLE_DEBUG_INFO = YES
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
// Build Active Architecture Only
|
109
|
+
//
|
110
|
+
// If enabled, only the active architecture is built. This setting will be ignored when
|
111
|
+
// building with a run destination which does not define a specific architecture, such as
|
112
|
+
// a 'Generic Device' run destination.
|
113
|
+
|
114
|
+
ONLY_ACTIVE_ARCH = YES
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
// Swift Optimization Level
|
119
|
+
//
|
120
|
+
// * None: Compile without any optimization. [-Onone]
|
121
|
+
// * Optimize for Speed: [-O]
|
122
|
+
// * Optimize for Size: [-Osize]
|
123
|
+
// * Whole Module Optimization: [-O -whole-module-optimization]
|
124
|
+
|
125
|
+
SWIFT_OPTIMIZATION_LEVEL = -Onone
|
126
|
+
|
127
|
+
CODE_SIGN_IDENTITY = iPhone Developer
|
@@ -0,0 +1,59 @@
|
|
1
|
+
//
|
2
|
+
// Project-Release.xcconfig
|
3
|
+
//
|
4
|
+
// Generated by BuildSettingExtractor on 2023/12/27
|
5
|
+
// https://buildsettingextractor.com
|
6
|
+
//
|
7
|
+
|
8
|
+
#include "Shared.xcconfig"
|
9
|
+
|
10
|
+
// Enable Foundation Assertions
|
11
|
+
//
|
12
|
+
// Controls whether assertion logic provided by `NSAssert` is included in the
|
13
|
+
// preprocessed source code or is elided during preprocessing. Disabling assertions can
|
14
|
+
// improve code performance.
|
15
|
+
|
16
|
+
ENABLE_NS_ASSERTIONS = NO
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
// Produce Debugging Information
|
21
|
+
//
|
22
|
+
// Debugging information is required for shader debugging and profiling.
|
23
|
+
|
24
|
+
MTL_ENABLE_DEBUG_INFO = NO
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
// Swift Compilation Mode
|
29
|
+
//
|
30
|
+
// This setting controls the way the Swift files in a module are rebuilt.
|
31
|
+
//
|
32
|
+
// * Incremental: Only rebuild the Swift source files in the module that are out of
|
33
|
+
// date, running multiple compiler processes as needed.
|
34
|
+
// * Whole Module: Always rebuild all Swift source files in the module, in a single
|
35
|
+
// compiler process.
|
36
|
+
|
37
|
+
SWIFT_COMPILATION_MODE = wholemodule
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
// Swift Optimization Level
|
42
|
+
//
|
43
|
+
// * None: Compile without any optimization. [-Onone]
|
44
|
+
// * Optimize for Speed: [-O]
|
45
|
+
// * Optimize for Size: [-Osize]
|
46
|
+
// * Whole Module Optimization: [-O -whole-module-optimization]
|
47
|
+
|
48
|
+
SWIFT_OPTIMIZATION_LEVEL = -O
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
// Validate Built Product
|
53
|
+
//
|
54
|
+
// If enabled, perform validation checks on the product as part of the build process.
|
55
|
+
|
56
|
+
VALIDATE_PRODUCT = YES
|
57
|
+
|
58
|
+
CODE_SIGN_IDENTITY = Apple Distribution
|
59
|
+
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Distribution
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# read document if you don't understand something :)
|
2
|
+
# https://github.com/yonaskolb/XcodeGen/blob/master/Docs/ProjectSpec.md
|
3
|
+
|
4
|
+
name: YKRPC_POD_NAME_Example
|
5
|
+
|
6
|
+
options:
|
7
|
+
minimumXcodeGenVersion: 2.10
|
8
|
+
generateEmptyDirectories: true
|
9
|
+
bundleIdPrefix: come.YKRPC_POD_Name.example
|
10
|
+
developmentLanguage: en
|
11
|
+
# postGenCommand: pod install
|
12
|
+
|
13
|
+
deploymentTarget:
|
14
|
+
iOS: "10.0"
|
15
|
+
|
16
|
+
fileGroups:
|
17
|
+
- config/iOS-config
|
18
|
+
- config/project-config
|
19
|
+
|
20
|
+
configs:
|
21
|
+
Debug: DEBUG-NAME
|
22
|
+
Release: RELEASE-NAME
|
23
|
+
DebugQ: DEBUGQ-NAME
|
24
|
+
ReleaseQ: RELEASEQ-NAME
|
25
|
+
|
26
|
+
configFiles:
|
27
|
+
Debug: config/project-config/config-custom/debug.xcconfig
|
28
|
+
Release: config/project-config/config-custom/release.xcconfig
|
29
|
+
DebugQ: config/project-config/config-enterprise/debug.xcconfig
|
30
|
+
ReleaseQ: config/project-config/config-enterprise/release.xcconfig
|
31
|
+
|
32
|
+
include:
|
33
|
+
- path: config/iOS-targets.yml
|
34
|
+
relativePaths: false
|
35
|
+
|
36
|
+
- path: config/iOS-targets-Q.yml
|
37
|
+
relativePaths: false
|
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) YKRPC_CREATE_YEAR YKRPC_AUTHOR_NAME <YKRPC_AUTHOR_EMAIL>
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
THE SOFTWARE.
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# YKRPC_POD_NAME
|
2
|
+
|
3
|
+
[![CI Status](https://img.shields.io/travis/YKRPC_AUTHOR_NAME/YKRPC_POD_NAME.svg?style=flat)](https://travis-ci.org/YKRPC_AUTHOR_NAME/YKRPC_POD_NAME)
|
4
|
+
[![Version](https://img.shields.io/cocoapods/v/YKRPC_POD_NAME.svg?style=flat)](https://cocoapods.org/pods/YKRPC_POD_NAME)
|
5
|
+
[![License](https://img.shields.io/cocoapods/l/YKRPC_POD_NAME.svg?style=flat)](https://github.com/YKRPC_AUTHOR_NAME/YKRPC_POD_NAME/blob/701ff106db3caa805f9dab12df7749c03c889c47/LICENSE)
|
6
|
+
[![Platform](https://img.shields.io/cocoapods/p/YKRPC_POD_NAME.svg?style=flat)](https://cocoapods.org/pods/YKRPC_POD_NAME)
|
7
|
+
|
8
|
+
## 摘要
|
9
|
+
|
10
|
+
YKRPC_POD_NAME 组件主要用于:
|
11
|
+
|
12
|
+
- 1
|
13
|
+
- 2
|
14
|
+
|
15
|
+
## 用法
|
16
|
+
|
17
|
+
### 集成
|
18
|
+
|
19
|
+
pod 'YKRPC_POD_NAME', '~> x.x.x'
|
20
|
+
|
21
|
+
## 调用
|
22
|
+
|
23
|
+
### 引用
|
24
|
+
|
25
|
+
- objc
|
26
|
+
|
27
|
+
```objc
|
28
|
+
#import <YKRPC_POD_NAME/YKRPC_POD_NAME.h>
|
29
|
+
```
|
30
|
+
|
31
|
+
- swift
|
32
|
+
|
33
|
+
```swift
|
34
|
+
import YKRPC_POD_NAME
|
35
|
+
```
|
36
|
+
|
37
|
+
### 调用接口
|
38
|
+
|
39
|
+
- objc
|
40
|
+
```objc
|
41
|
+
//objc 代码
|
42
|
+
```
|
43
|
+
|
44
|
+
- swift
|
45
|
+
|
46
|
+
```swift
|
47
|
+
//siwft 代码
|
48
|
+
```
|
49
|
+
|
50
|
+
## 历史版本
|
51
|
+
|
52
|
+
- [1.0.0](http://github/YKRPC_AUTHOR_NAME/YKRPC_POD_NAME/tag/1.0.0)
|
53
|
+
|
54
|
+
- 初始化版本
|
55
|
+
- 提供: xxx, xxx 功能
|
56
|
+
|
57
|
+
- [1.0.1](http://github/YKRPC_AUTHOR_NAME/YKRPC_POD_NAME/tag/1.0.1)
|
58
|
+
|
59
|
+
- 修复
|
60
|
+
- 提供: xxx, xxx 功能
|
File without changes
|
File without changes
|
@@ -0,0 +1,62 @@
|
|
1
|
+
Pod::Spec.new do |spec|
|
2
|
+
|
3
|
+
spec.name = "YKRPC_POD_NAME"
|
4
|
+
spec.version = "0.0.1"
|
5
|
+
spec.summary = "YKRPC_POD_NAME 说明."
|
6
|
+
spec.description = <<-DESC
|
7
|
+
YKRPC_POD_NAME long description of the pod here.
|
8
|
+
DESC
|
9
|
+
|
10
|
+
spec.homepage = 'http://github.com/YKRPC_AUTHOR_NAME/YKRPC_POD_NAME'
|
11
|
+
spec.license = { :type => "MIT", :file => "LICENSE" }
|
12
|
+
spec.author = { "YKRPC_AUTHOR_NAME" => "YKRPC_AUTHOR_EMAIL" }
|
13
|
+
spec.ios.deployment_target = '9.0'
|
14
|
+
|
15
|
+
spec.source = { :git => "http://github/YKRPC_AUTHOR_NAME/YKRPC_POD_NAME.git", :tag => "#{spec.version}" }
|
16
|
+
|
17
|
+
|
18
|
+
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
19
|
+
spec.source_files = 'YKRPC_POD_NAME/{Public,Private}/**/*.{h,m,mm,c,cpp,swift}'
|
20
|
+
# spec.exclude_files = "YKRPC_POD_NAME/Exclude" #排除文件
|
21
|
+
|
22
|
+
spec.project_header_files = 'YKRPC_POD_NAME/Private/**/*.{h}'
|
23
|
+
spec.public_header_files = 'YKRPC_POD_NAME/Public/**/*.h' #此处放置组件的对外暴漏的头文件
|
24
|
+
|
25
|
+
# ――― binary framework/lib ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
26
|
+
#spec.vendored_frameworks = 'YKRPC_POD_NAME/Private/**/*.framework'
|
27
|
+
#spec.vendored_libraries = 'YKRPC_POD_NAME/Private/**/*.a'
|
28
|
+
|
29
|
+
# ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
30
|
+
# 放置 json,font,jpg,png等资源
|
31
|
+
|
32
|
+
# spec.resources = ["YKRPC_POD_NAME/{Public,Private}/**/*.{xib}"]
|
33
|
+
# spec.resource_bundles = {
|
34
|
+
# 'YKRPC_POD_NAME' => ['YKRPC_POD_NAME/Assets/*.xcassets', "YKRPC_POD_NAME/{Public,Private}/**/*.{png,jpg,font,json}"]
|
35
|
+
# }
|
36
|
+
|
37
|
+
|
38
|
+
# ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
39
|
+
# spec.framework = "SomeFramework"
|
40
|
+
# spec.frameworks = "SomeFramework", "AnotherFramework"
|
41
|
+
# spec.library = "iconv"
|
42
|
+
# spec.libraries = "iconv", "xml2"
|
43
|
+
|
44
|
+
|
45
|
+
# ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
46
|
+
# spec.requires_arc = true
|
47
|
+
|
48
|
+
# spec.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
|
49
|
+
|
50
|
+
# 其他依赖pod
|
51
|
+
# spec.dependency "XXXXXXXX"
|
52
|
+
|
53
|
+
# spec.subspec 'WithLoad' do |ss|
|
54
|
+
# ss.source_files = 'YKHawkeye/Src/MethodUseTime/**/*{.h,.m}'
|
55
|
+
# ss.pod_target_xcconfig = {
|
56
|
+
# 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) YKHawkeyeWithLoad'
|
57
|
+
# }
|
58
|
+
# ss.dependency 'YKHawkeye/Core'
|
59
|
+
# ss.vendored_frameworks = 'YKHawkeye/Framework/*.framework'
|
60
|
+
# end
|
61
|
+
|
62
|
+
end
|
data/configPodTemplate/register/objc/YKRPC_POD_NAME/Private/Register/YKRPC_POD_NAMERegisterRouter.h
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
//
|
2
|
+
// YKRPC_POD_NAMERegisterRouter.h
|
3
|
+
// YKRPC_POD_NAME
|
4
|
+
//
|
5
|
+
// Created by YKRPC_AUTHOR_NAME on YKRPC_CREATE_DATE.
|
6
|
+
//
|
7
|
+
|
8
|
+
#import <Foundation/Foundation.h>
|
9
|
+
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
11
|
+
|
12
|
+
@interface YKRPC_POD_NAMERegisterRouter : NSObject
|
13
|
+
|
14
|
+
@end
|
15
|
+
|
16
|
+
NS_ASSUME_NONNULL_END
|
data/configPodTemplate/register/objc/YKRPC_POD_NAME/Private/Register/YKRPC_POD_NAMERegisterRouter.m
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
//
|
2
|
+
// YKRPC_POD_NAMERegisterRouter.m
|
3
|
+
// YKRPC_POD_NAME
|
4
|
+
//
|
5
|
+
// Created by YKRPC_AUTHOR_NAME on YKRPC_CREATE_DATE.
|
6
|
+
//
|
7
|
+
|
8
|
+
#import "YKRPC_POD_NAMERegisterRouter.h"
|
9
|
+
#import <YKRouterComponent/YKRouterComponentHeader.h>
|
10
|
+
|
11
|
+
@interface YKRPC_POD_NAMERegisterRouter()<YKRouterComponentRegisterProtocol>
|
12
|
+
|
13
|
+
@end
|
14
|
+
|
15
|
+
@implementation YKRPC_POD_NAMERegisterRouter
|
16
|
+
|
17
|
+
+ (void)ykRouterRegisterExecute {
|
18
|
+
[[YKRouterComponent shareInstance] ykRegisterUrlPartterns:@"XXXRouterStr" error:nil action:^(YKRouterUrlRequest * _Nonnull urlRequest, YKRouterUrlCompletion _Nonnull completetion) {
|
19
|
+
// xxxVC *vc = [[xxxVC alloc] init];
|
20
|
+
// UIViewController *topVC = urlRequest.fromVC ? urlRequest.fromVC : [UIViewController topController];
|
21
|
+
// [topVC.navigationController pushViewController:vc animated:YES];
|
22
|
+
}];
|
23
|
+
}
|
24
|
+
|
25
|
+
|
26
|
+
@end
|
27
|
+
|
data/configPodTemplate/register/objc/YKRPC_POD_NAME/Private/Register/YKRPC_POD_NAMERegisterService.h
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
//
|
2
|
+
// YKRPC_POD_NAMERegisterService.h
|
3
|
+
// YKRPC_POD_NAME
|
4
|
+
//
|
5
|
+
// Created by YKRPC_AUTHOR_NAME on YKRPC_CREATE_DATE.
|
6
|
+
//
|
7
|
+
|
8
|
+
#import <Foundation/Foundation.h>
|
9
|
+
|
10
|
+
/**
|
11
|
+
Service Register for the module.
|
12
|
+
*/
|
13
|
+
@interface YKRPC_POD_NAMERegisterService : NSObject
|
14
|
+
|
15
|
+
@end
|
data/configPodTemplate/register/objc/YKRPC_POD_NAME/Private/Register/YKRPC_POD_NAMERegisterService.m
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
//
|
2
|
+
// YKRPC_POD_NAMERegisterService.m
|
3
|
+
// YKRPC_POD_NAME
|
4
|
+
//
|
5
|
+
// Created by YKRPC_AUTHOR_NAME on YKRPC_CREATE_DATE.
|
6
|
+
//
|
7
|
+
|
8
|
+
#import "YKRPC_POD_NAMERegisterService.h"
|
9
|
+
#import <YKModuleServiceComponent/YKModuleServiceComponentHeader.h>
|
10
|
+
|
11
|
+
@interface YKRPC_POD_NAMERegisterService()<YKModuleServiceRegisterProtocol, SUAdvertisementServiceProtocol>
|
12
|
+
@end
|
13
|
+
@implementation SUAdvertisementServiceRegister
|
14
|
+
|
15
|
+
+ (void)ykModuleServiceRegistAction {
|
16
|
+
YKModuleServiceRegisterExecute(SUAdvertisementServiceRegister.class, @protocol(SUAdvertisementServiceProtocol), nil);
|
17
|
+
}
|
18
|
+
|
19
|
+
@end
|
20
|
+
|
21
|
+
#pragma mark - xxxxServiceProtocol method
|
22
|
+
// @interface YKRPC_POD_NAMERegisterService(serProtocol)<xxxxServiceProtocol>
|
23
|
+
// +(void)xxxxAction {
|
24
|
+
// // service execute code
|
25
|
+
//
|
26
|
+
// }
|
27
|
+
// @end
|
File without changes
|
@@ -0,0 +1,19 @@
|
|
1
|
+
//
|
2
|
+
// YKRPC_POD_NAMERegisterRouter.swift
|
3
|
+
// YKRPC_POD_NAME
|
4
|
+
//
|
5
|
+
// Created by YKRPC_AUTHOR_NAME on YKRPC_CREATE_DATE.
|
6
|
+
//
|
7
|
+
|
8
|
+
import YKRouterComponent
|
9
|
+
|
10
|
+
private class YKRPC_POD_NAMERegisterRouter: NSObject, YKRouterComponentRegisterProtocol {
|
11
|
+
public static func ykRouterRegisterExecute() {
|
12
|
+
// YKRouterRegisterUrlParttern("xxxxxxRouterString", nil) { (req: YKRouterUrlRequest, com: YKRouterUrlCompletion?) in
|
13
|
+
// let topVC = req.fromVC ?? UIViewController.getTopVC()
|
14
|
+
// let vc = REUserProfileVC()
|
15
|
+
// topVC?.navigationController?.pushViewController(vc, animated: true)
|
16
|
+
// }
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
//
|
2
|
+
// YKRPC_POD_NAMERegisterService.swift
|
3
|
+
// YKRPC_POD_NAME
|
4
|
+
//
|
5
|
+
// Created by YKRPC_AUTHOR_NAME on YKRPC_CREATE_DATE.
|
6
|
+
//
|
7
|
+
import YKModuleServiceComponentSwift
|
8
|
+
|
9
|
+
private class YKRPC_POD_NAMERegisterService: NSObject, YKModuleServiceRegisterProtocol {
|
10
|
+
static func ykModuleServiceRegistAction() {
|
11
|
+
// YKModuleServiceComponent().ykRegistModule(REHomeServiceRegist.self, protocol: XXXXProtocol.self, err: nil)
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
// extension YKRPC_POD_NAMERegisterService: XXXXProtocol {
|
16
|
+
// static mehtod for XXXXProtocol
|
17
|
+
// static func xxxxx() -> xxxxxObjc {
|
18
|
+
// return XXXXX()
|
19
|
+
// }
|
20
|
+
// }
|
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2023 stephen.chen <stephenchen@yeahka.com>
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
THE SOFTWARE.
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# YKRPC_POD_NAME
|
2
|
+
|
3
|
+
[![CI Status](https://img.shields.io/travis/YKRPC_AUTHOR_NAME/YKRPC_POD_NAME.svg?style=flat)](https://travis-ci.org/YKRPC_AUTHOR_NAME/YKRPC_POD_NAME)
|
4
|
+
[![Version](https://img.shields.io/cocoapods/v/YKRPC_POD_NAME.svg?style=flat)](https://cocoapods.org/pods/YKRPC_POD_NAME)
|
5
|
+
[![License](https://img.shields.io/cocoapods/l/YKRPC_POD_NAME.svg?style=flat)](https://github.com/YKRPC_AUTHOR_NAME/YKRPC_POD_NAME/blob/701ff106db3caa805f9dab12df7749c03c889c47/LICENSE)
|
6
|
+
[![Platform](https://img.shields.io/cocoapods/p/YKRPC_POD_NAME.svg?style=flat)](https://cocoapods.org/pods/YKRPC_POD_NAME)
|
7
|
+
|
8
|
+
## 摘要
|
9
|
+
|
10
|
+
YKRPC_POD_NAME 组件主要用于:
|
11
|
+
|
12
|
+
- 1
|
13
|
+
- 2
|
14
|
+
|
15
|
+
## 用法
|
16
|
+
|
17
|
+
### 集成
|
18
|
+
|
19
|
+
pod 'YKRPC_POD_NAME', '~> x.x.x'
|
20
|
+
|
21
|
+
## 调用
|
22
|
+
|
23
|
+
### 引用
|
24
|
+
|
25
|
+
- objc
|
26
|
+
|
27
|
+
```objc
|
28
|
+
#import <YKRPC_POD_NAME/YKRPC_POD_NAME-Swift.h>
|
29
|
+
```
|
30
|
+
|
31
|
+
- swift
|
32
|
+
|
33
|
+
```swift
|
34
|
+
import YKRPC_POD_NAME
|
35
|
+
```
|
36
|
+
|
37
|
+
### 调用接口
|
38
|
+
|
39
|
+
- objc
|
40
|
+
```objc
|
41
|
+
//objc 代码
|
42
|
+
```
|
43
|
+
|
44
|
+
- swift
|
45
|
+
|
46
|
+
```swift
|
47
|
+
//siwft 代码
|
48
|
+
```
|
49
|
+
|
50
|
+
## 历史版本
|
51
|
+
|
52
|
+
- [1.0.0](http://github/YKRPC_AUTHOR_NAME/YKRPC_POD_NAME/tag/1.0.0)
|
53
|
+
|
54
|
+
- 初始化版本
|
55
|
+
- 提供: xxx, xxx 功能
|
56
|
+
|
57
|
+
- - [1.0.1](http://github/YKRPC_AUTHOR_NAME/YKRPC_POD_NAME/tag/1.0.1)
|
58
|
+
|
59
|
+
- 修复
|
60
|
+
- 提供: xxx, xxx 功能
|
File without changes
|
File without changes
|