yk_command 0.5.7 → 0.5.91
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/sonarlint/issuestore/0/d/0d7a5f844cb7a763c4b02c8788a45a497537e9d4 +0 -0
- data/.idea/sonarlint/issuestore/1/9/19beed89439e4bbf29ca633ebffb0979a334a05d +0 -0
- data/.idea/sonarlint/issuestore/2/2/2264693887a1513e6c4ed16a6231e00d3045ec4e +0 -0
- data/.idea/sonarlint/issuestore/2/4/2461a61a84d866812e64ff95d40bd7836fb136ea +0 -0
- data/.idea/sonarlint/issuestore/2/e/2e113f2d3dc9bee6a98073d85966fbd9773c044f +0 -0
- data/.idea/sonarlint/issuestore/3/4/3423fb39097dbf652818678b749434eb36867bdf +0 -0
- data/.idea/sonarlint/issuestore/4/4/44b7fa1ba50397e71d88bd69389f1ec917165cfb +0 -0
- data/.idea/sonarlint/issuestore/4/6/460ee6442cf29ef54774da00475d1b5a4bd35a75 +0 -0
- data/.idea/sonarlint/issuestore/5/1/512554f10221132e2995f116a1bc380edc569ec4 +0 -0
- data/.idea/sonarlint/issuestore/6/e/6e1b71034e8e2f84d8f8236b269fef92a4a51797 +0 -0
- data/.idea/sonarlint/issuestore/7/1/71fc201a1096db97453882ad1da5120a71f77bb5 +0 -0
- data/.idea/sonarlint/issuestore/7/e/7ed8a0c3d2507e911337de44fdef07f89e35091a +0 -0
- data/.idea/sonarlint/issuestore/9/5/95a45210972238034e9fed522811176fe20117d3 +0 -0
- data/.idea/sonarlint/issuestore/9/7/97c2c9c7adeb7fa2e6ffbf07cba2418868ac9739 +0 -0
- data/.idea/sonarlint/issuestore/9/a/9ac8606ab5816ca6769cd53216a107d7d06ca971 +0 -0
- data/.idea/sonarlint/issuestore/a/6/a67e5ecfa13044750ab8599881f66237821a8b38 +0 -0
- data/.idea/sonarlint/issuestore/a/7/a7f1546c0b6a93fd23b7fc1506b2eb0d13e011c2 +0 -0
- data/.idea/sonarlint/issuestore/a/d/ad7bffefc6248a8f673a10e668a82bdbbe38a3e3 +0 -0
- data/.idea/sonarlint/issuestore/b/a/ba47c112fc95dd748a99abb0290610022df254a7 +0 -0
- data/.idea/sonarlint/issuestore/b/e/be2bfbadd6efe69882507c3a03b1b96c46f3dcbe +0 -0
- data/.idea/sonarlint/issuestore/c/f/cf949c4c054253d95250aa9644f2b805b2aa0d2a +0 -0
- data/.idea/sonarlint/issuestore/d/5/d594a688a538c9bebe38deb974bd46055c65a93c +0 -0
- data/.idea/sonarlint/issuestore/d/e/de3150c01c3a946a6168173c4116741379fe3579 +0 -0
- data/.idea/sonarlint/issuestore/e/5/e5580d669a0c327c5b0897ba7dd8465a3d4db45a +0 -0
- data/.idea/sonarlint/issuestore/e/e/ee825dc90668e04039ee525c5858c5736562c9f5 +0 -0
- data/.idea/sonarlint/issuestore/f/6/f6e109e4c314cef09022792f4b88dd267a682d28 +3 -0
- data/.idea/sonarlint/issuestore/index.pb +53 -0
- data/.idea/yk_command.iml +5 -5
- data/Gemfile.lock +2 -2
- data/lib/yk_command/analyze/request.rb +11 -6
- data/lib/yk_command/commands.rb +32 -1
- data/lib/yk_command/component_manage/component_manage_platform.rb +73 -4
- data/lib/yk_command/gitlab/yk_gitlab.rb +23 -2
- data/lib/yk_command/module/module_handler.rb +1 -4
- data/lib/yk_command/module/yk_module.rb +57 -63
- data/lib/yk_command/project/YKProjectTemplate/NAME.podspec +142 -18
- data/lib/yk_command/project/setup/ConfigureSwift.rb +2 -0
- data/lib/yk_command/project/setup/TemplateConfigurator.rb +8 -4
- data/lib/yk_command/project/simple_project_template/.gitignore +37 -0
- data/lib/yk_command/project/simple_project_template/CODE_OF_CONDUCT.md +40 -0
- data/lib/yk_command/project/simple_project_template/LICENSE +21 -0
- data/lib/yk_command/project/simple_project_template/NAME-osx.podspec +43 -0
- data/lib/yk_command/project/simple_project_template/NAME.podspec +140 -0
- data/lib/yk_command/project/simple_project_template/POD_LICENSE +19 -0
- data/lib/yk_command/project/simple_project_template/POD_README.md +29 -0
- data/lib/yk_command/project/simple_project_template/Pod/Assets/.gitkeep +0 -0
- data/lib/yk_command/project/simple_project_template/Pod/Classes/.gitkeep +0 -0
- data/lib/yk_command/project/simple_project_template/README.md +22 -0
- data/lib/yk_command/project/simple_project_template/configure +13 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/Base.lproj/LaunchScreen.storyboard +31 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/Base.lproj/Main.storyboard +79 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/CPDAppDelegate.h +15 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/CPDAppDelegate.m +46 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/CPDViewController.h +13 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/CPDViewController.m +37 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/Images.xcassets/AppIcon.appiconset/Contents.json +98 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/PROJECT-Info.plist +49 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/PROJECT-Prefix.pch +16 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/en.lproj/InfoPlist.strings +2 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/main.m +17 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT.xcodeproj/project.pbxproj +500 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +101 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/Podfile +19 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/Tests/Tests-Info.plist +22 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/Tests/Tests-Prefix.pch +7 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/Tests/Tests.m +9 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/Tests/en.lproj/InfoPlist.strings +2 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/PROJECT/AppDelegate.swift +26 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/PROJECT/Assets.xcassets/AppIcon.appiconset/Contents.json +58 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/PROJECT/Base.lproj/Main.storyboard +717 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/PROJECT/Info.plist +30 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/PROJECT/PROJECT.entitlements +10 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/PROJECT/ViewController.swift +27 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/PROJECT.xcodeproj/project.pbxproj +444 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +103 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/Podfile +11 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/Tests/Info.plist +22 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/Tests/Tests.swift +1 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/PROJECT/AppDelegate.swift +46 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/PROJECT/Base.lproj/LaunchScreen.xib +46 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/PROJECT/Base.lproj/Main.storyboard +86 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/PROJECT/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/PROJECT/Info.plist +39 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/PROJECT/ViewController.swift +30 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/PROJECT.xcodeproj/project.pbxproj +468 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +117 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/Podfile +20 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/Tests/Info.plist +24 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/Tests/Tests.swift +1 -0
- data/lib/yk_command/project/yk_project.rb +14 -9
- data/lib/yk_command/version.rb +1 -1
- metadata +82 -2
@@ -1,27 +1,151 @@
|
|
1
|
+
#
|
2
|
+
# Be sure to run `pod spec lint NAME.podspec' to ensure this is a
|
3
|
+
# valid spec and to remove all comments including this before submitting the spec.
|
4
|
+
#
|
5
|
+
# To learn more about Podspec attributes see https://guides.cocoapods.org/syntax/podspec.html
|
6
|
+
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
|
7
|
+
#
|
1
8
|
|
2
|
-
Pod::Spec.new do |
|
3
|
-
s.name = '${POD_NAME}'
|
4
|
-
s.version = '0.1.0'
|
5
|
-
s.summary = 'A short description of ${POD_NAME}.'
|
6
|
-
s.description = <<-DESC
|
7
|
-
TODO: Add long description of the pod here.
|
8
|
-
DESC
|
9
|
+
Pod::Spec.new do |spec|
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
s
|
14
|
-
|
11
|
+
# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
12
|
+
#
|
13
|
+
# These will help people to find your library, and whilst it
|
14
|
+
# can feel like a chore to fill in it's definitely to your advantage. The
|
15
|
+
# summary should be tweet-length, and the description more in depth.
|
16
|
+
#
|
15
17
|
|
16
|
-
|
18
|
+
spec.name = "${POD_NAME}"
|
19
|
+
spec.version = "0.0.1"
|
20
|
+
spec.summary = "A short description of ${POD_NAME}."
|
17
21
|
|
22
|
+
# This description is used to generate tags and improve search results.
|
23
|
+
# * Think: What does it do? Why did you write it? What is the focus?
|
24
|
+
# * Try to keep it short, snappy and to the point.
|
25
|
+
# * Write the description between the DESC delimiters below.
|
26
|
+
# * Finally, don't worry about the indent, CocoaPods strips it!
|
27
|
+
spec.description = <<-DESC
|
28
|
+
TODO: Add long description of the pod here.
|
29
|
+
DESC
|
18
30
|
|
19
|
-
|
31
|
+
spec.homepage = 'http://gitlab.yeahka.com/App/iOS/YKComponents/${POD_NAME}'
|
32
|
+
# spec.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif"
|
20
33
|
|
21
34
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
35
|
+
# ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
36
|
+
#
|
37
|
+
# Licensing your code is important. See https://choosealicense.com for more info.
|
38
|
+
# CocoaPods will detect a license file if there is a named LICENSE*
|
39
|
+
# Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'.
|
40
|
+
#
|
41
|
+
|
42
|
+
#spec.license = "MIT (example)"
|
43
|
+
# spec.license = { :type => "MIT", :file => "FILE_LICENSE" }
|
44
|
+
|
45
|
+
|
46
|
+
# ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
47
|
+
#
|
48
|
+
# Specify the authors of the library, with email addresses. Email addresses
|
49
|
+
# of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also
|
50
|
+
# accepts just a name if you'd rather not provide an email address.
|
51
|
+
#
|
52
|
+
# Specify a social_media_url where others can refer to, for example a twitter
|
53
|
+
# profile URL.
|
54
|
+
#
|
55
|
+
|
56
|
+
spec.author = { "${USER_NAME}" => "${USER_EMAIL}" }
|
57
|
+
# Or just: spec.author = "${USER_NAME}"
|
58
|
+
# spec.authors = { "${USER_NAME}" => "${USER_EMAIL}" }
|
59
|
+
# spec.social_media_url = "https://twitter.com/${USER_NAME}"
|
60
|
+
|
61
|
+
# ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
62
|
+
#
|
63
|
+
# If this Pod runs only on iOS or OS X, then specify the platform and
|
64
|
+
# the deployment target. You can optionally include the target after the platform.
|
65
|
+
#
|
66
|
+
|
67
|
+
# spec.platform = :ios
|
68
|
+
# spec.platform = :ios, "5.0"
|
69
|
+
spec.ios.deployment_target = '9.0'
|
70
|
+
# When using multiple platforms
|
71
|
+
# spec.ios.deployment_target = "5.0"
|
72
|
+
# spec.osx.deployment_target = "10.7"
|
73
|
+
# spec.watchos.deployment_target = "2.0"
|
74
|
+
# spec.tvos.deployment_target = "9.0"
|
75
|
+
|
76
|
+
|
77
|
+
# ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
78
|
+
#
|
79
|
+
# Specify the location from where the source should be retrieved.
|
80
|
+
# Supports git, hg, bzr, svn and HTTP.
|
81
|
+
#
|
82
|
+
|
83
|
+
spec.source = { :git => "http://gitlab.yeahka.com/App/iOS/YKComponents/${POD_NAME}.git", :tag => "#{spec.version}" }
|
84
|
+
|
85
|
+
|
86
|
+
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
87
|
+
#
|
88
|
+
# CocoaPods is smart about how it includes source code. For source files
|
89
|
+
# giving a folder will include any swift, h, m, mm, c & cpp files.
|
90
|
+
# For header files it will include any header in the folder.
|
91
|
+
# Not including the public_header_files will make all headers public.
|
92
|
+
#
|
93
|
+
|
94
|
+
spec.source_files = '${POD_NAME}/Classes/**/*'
|
95
|
+
spec.exclude_files = "Classes/Exclude"
|
96
|
+
spec.prefix_header_file = '${POD_NAME}/Classes/Private/Business/${POD_NAME}PrefixHeader.pch'
|
97
|
+
spec.public_header_files = '${POD_NAME}/Classes/Public/**/*.h'
|
98
|
+
|
99
|
+
# spec.public_header_files = "Classes/**/*.h"
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
# ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
105
|
+
#
|
106
|
+
# A list of resources included with the Pod. These are copied into the
|
107
|
+
# target bundle with a build phase script. Anything else will be cleaned.
|
108
|
+
# You can preserve files from being cleaned, please don't preserve
|
109
|
+
# non-essential files like tests, examples and documentation.
|
110
|
+
#
|
111
|
+
|
112
|
+
# spec.resource = "icon.png"
|
113
|
+
# spec.resources = "Resources/*.png"
|
114
|
+
# spec.resource_bundles = {
|
115
|
+
# '${POD_NAME}' => ['${POD_NAME}/**/*.{xib,png,json}']
|
116
|
+
# }
|
117
|
+
# spec.preserve_paths = "FilesToSave", "MoreFilesToSave"
|
118
|
+
|
119
|
+
|
120
|
+
# ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
121
|
+
#
|
122
|
+
# Link your library with frameworks, or libraries. Libraries do not include
|
123
|
+
# the lib prefix of their name.
|
124
|
+
#
|
125
|
+
|
126
|
+
# spec.framework = "SomeFramework"
|
127
|
+
# spec.frameworks = "SomeFramework", "AnotherFramework"
|
128
|
+
|
129
|
+
# spec.library = "iconv"
|
130
|
+
# spec.libraries = "iconv", "xml2"
|
131
|
+
|
132
|
+
|
133
|
+
# ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
134
|
+
#
|
135
|
+
# If your library depends on compiler flags you can set them in the xcconfig hash
|
136
|
+
# where they will only apply to your library. If you depend on other Podspecs
|
137
|
+
# you can include multiple dependencies to ensure it works.
|
138
|
+
|
139
|
+
# spec.requires_arc = true
|
140
|
+
|
141
|
+
# spec.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
|
142
|
+
# spec.dependency "JSONKit", "~> 1.4"
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
spec.dependency "YKCategoryComponent"
|
147
|
+
spec.dependency "YKModuleLifeCircleComponent"
|
148
|
+
spec.dependency "YKRouterComponent"
|
149
|
+
spec.dependency "YKModuleServiceComponent"
|
26
150
|
|
27
151
|
end
|
@@ -10,8 +10,10 @@ module Pod
|
|
10
10
|
|
11
11
|
def initialize(options)
|
12
12
|
@configurator = options.fetch(:configurator)
|
13
|
+
$current_dir = @configurator.temp_path
|
13
14
|
end
|
14
15
|
|
16
|
+
|
15
17
|
def perform
|
16
18
|
# keep_demo = configurator.ask_with_answers("Would you like to include a demo application with your library", ["Yes", "No"]).to_sym
|
17
19
|
|
@@ -3,6 +3,7 @@ require 'colored2'
|
|
3
3
|
|
4
4
|
require_relative 'MessageBank'
|
5
5
|
require_relative 'ConfigureIOS'
|
6
|
+
require_relative 'ConfigureSwift'
|
6
7
|
require_relative 'ProjectManipulator'
|
7
8
|
|
8
9
|
module Pod
|
@@ -10,13 +11,13 @@ module Pod
|
|
10
11
|
|
11
12
|
attr_reader :pod_name, :pods_for_podfile, :prefix,:prefixes, :test_example_file, :username, :email,:temp_path
|
12
13
|
|
13
|
-
def initialize(pod_name,framework,prefix,author,temp_path)
|
14
|
+
def initialize(pod_name,framework,prefix,author,temp_path,is_simple)
|
14
15
|
@temp_path = temp_path
|
15
16
|
@pod_name = pod_name
|
16
17
|
@framework = framework
|
17
18
|
@prefix = prefix
|
18
19
|
@author = author
|
19
|
-
|
20
|
+
@is_simple = is_simple
|
20
21
|
@pods_for_podfile = []
|
21
22
|
@prefixes = []
|
22
23
|
@message_bank = MessageBank.new(self)
|
@@ -88,8 +89,11 @@ module Pod
|
|
88
89
|
replace_variables_in_files
|
89
90
|
clean_template_files
|
90
91
|
rename_template_files
|
91
|
-
|
92
|
-
|
92
|
+
|
93
|
+
if @is_simple != true
|
94
|
+
add_yk_pods
|
95
|
+
end
|
96
|
+
|
93
97
|
|
94
98
|
add_pods_to_podfile
|
95
99
|
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# macOS
|
2
|
+
.DS_Store
|
3
|
+
|
4
|
+
# Xcode
|
5
|
+
build/
|
6
|
+
*.pbxuser
|
7
|
+
!default.pbxuser
|
8
|
+
*.mode1v3
|
9
|
+
!default.mode1v3
|
10
|
+
*.mode2v3
|
11
|
+
!default.mode2v3
|
12
|
+
*.perspectivev3
|
13
|
+
!default.perspectivev3
|
14
|
+
xcuserdata/
|
15
|
+
*.xccheckout
|
16
|
+
profile
|
17
|
+
*.moved-aside
|
18
|
+
DerivedData
|
19
|
+
*.hmap
|
20
|
+
*.ipa
|
21
|
+
|
22
|
+
# Bundler
|
23
|
+
.bundle
|
24
|
+
|
25
|
+
# Add this line if you want to avoid checking in source code from Carthage dependencies.
|
26
|
+
# Carthage/Checkouts
|
27
|
+
|
28
|
+
Carthage/Build
|
29
|
+
|
30
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
31
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
32
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
|
33
|
+
#
|
34
|
+
# Note: if you ignore the Pods directory, make sure to uncomment
|
35
|
+
# `pod install` in .travis.yml
|
36
|
+
#
|
37
|
+
# Pods/
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# CocoaPods Code of Conduct
|
2
|
+
|
3
|
+
CocoaPods strongly values contributors from anywhere, regardless of gender, sexual orientation, disability, physical appearance, body size, race, or religion. As a result, the CocoaPods team has agreed to and enforces this code of conduct in order to provide a harassment-free experience for everyone who participates in the development of CocoaPods.
|
4
|
+
|
5
|
+
### Summary
|
6
|
+
|
7
|
+
Harassment in code and discussion or violation of physical boundaries is completely unacceptable anywhere in CocoaPods’ codebases, issue trackers, Slack, Campfire, mailing lists, meetups, and other events. Violators will be warned and then blocked or banned by the core team at or before the 3rd violation.
|
8
|
+
|
9
|
+
### In detail
|
10
|
+
|
11
|
+
Harassment includes offensive verbal comments related to gender, sexual orientation, disability, physical appearance, body size, race, ethnicity, religion, sexual images, deliberate intimidation, stalking, sustained disruption, and unwelcome sexual attention.
|
12
|
+
|
13
|
+
Individuals asked to stop any harassing behavior are expected to comply immediately.
|
14
|
+
|
15
|
+
Maintainers, including the core team, are also subject to the anti-harassment policy.
|
16
|
+
|
17
|
+
If anyone engages in harassing behavior, including maintainers, we may take appropriate action, up to and including warning the offender, deletion of comments, removal from the project’s codebase and communication systems, and escalation to Github support.
|
18
|
+
|
19
|
+
If you are being harassed, notice that someone else is being harassed, or have any other concerns, please contact a member of [the core team](https://cocoapods.org/about) or [email the core team](mailto:info@cocoapods.org) immediately.
|
20
|
+
|
21
|
+
We expect everyone to follow these rules anywhere in the CocoaPods project’s codebases, issue trackers, IRC channel, group chat, and mailing lists.
|
22
|
+
|
23
|
+
This code of conduct applies both within project spaces and in public spaces when an individual is actively representing the project or its community. Due to their strong association with the project, core contributors are always seen as actively representing it.
|
24
|
+
|
25
|
+
Finally, don't forget that it is human to make mistakes! We all do. Let’s work together to help each other, resolve issues, and learn from the mistakes that we will all inevitably make from time to time.
|
26
|
+
|
27
|
+
### Thanks
|
28
|
+
|
29
|
+
Thanks to the [Bundler Code of Conduct](https://github.com/bundler/bundler/blob/e3ce14f5ecd9b729338435c8689553ef209d83aa/CODE_OF_CONDUCT.md), [JSConf Code of Conduct](https://jsconf.com/codeofconduct.html), [Fedora Code of Conduct](https://fedoraproject.org/code-of-conduct), and [Contributor Covenant](https://www.contributor-covenant.org), version 1.2.0 for inspiration and ideas.
|
30
|
+
|
31
|
+
### License
|
32
|
+
|
33
|
+
<p class="license" xmlns:dct="http://purl.org/dc/terms/" xmlns:vcard="http://www.w3.org/2001/vcard-rdf/3.0#">
|
34
|
+
To the extent possible under law, <a rel="dct:publisher" href="https://cocoapods.org/about">The CocoaPods Team</a> has waived all copyright and related or neighboring rights to the <span property="dct:title">CocoaPods Code of Conduct</span>. This work is published from the <span property="vcard:Country" datatype="dct:ISO3166" content="US" about="https://cocoapods.org">United States.</span>
|
35
|
+
<br>
|
36
|
+
<br>
|
37
|
+
<a rel="license" href="http://creativecommons.org/publicdomain/zero/1.0/">
|
38
|
+
<img src="http://i.creativecommons.org/p/zero/1.0/88x31.png" style="border-style: none;" alt="CC0">
|
39
|
+
</a>
|
40
|
+
</p>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
This project is licensed under the MIT license.
|
2
|
+
|
3
|
+
Copyright (c) 2013 - 2014 CocoaPods Dev Team
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
@@ -0,0 +1,43 @@
|
|
1
|
+
#
|
2
|
+
# Be sure to run `pod lib lint ${POD_NAME}.podspec' to ensure this is a
|
3
|
+
# valid spec before submitting.
|
4
|
+
#
|
5
|
+
# Any lines starting with a # are optional, but their use is encouraged
|
6
|
+
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
|
7
|
+
#
|
8
|
+
|
9
|
+
Pod::Spec.new do |s|
|
10
|
+
s.name = '${POD_NAME}'
|
11
|
+
s.version = '0.1.0'
|
12
|
+
s.summary = 'A short description of ${POD_NAME}.'
|
13
|
+
|
14
|
+
# This description is used to generate tags and improve search results.
|
15
|
+
# * Think: What does it do? Why did you write it? What is the focus?
|
16
|
+
# * Try to keep it short, snappy and to the point.
|
17
|
+
# * Write the description between the DESC delimiters below.
|
18
|
+
# * Finally, don't worry about the indent, CocoaPods strips it!
|
19
|
+
|
20
|
+
s.description = <<-DESC
|
21
|
+
TODO: Add long description of the pod here.
|
22
|
+
DESC
|
23
|
+
|
24
|
+
s.homepage = 'https://github.com/${USER_NAME}/${POD_NAME}'
|
25
|
+
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
|
26
|
+
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
27
|
+
s.author = { '${USER_NAME}' => '${USER_EMAIL}' }
|
28
|
+
s.source = { :git => 'https://github.com/${USER_NAME}/${POD_NAME}.git', :tag => s.version.to_s }
|
29
|
+
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
|
30
|
+
|
31
|
+
s.platform = :osx
|
32
|
+
s.osx.deployment_target = "10.10"
|
33
|
+
|
34
|
+
s.source_files = '${POD_NAME}/Classes/**/*'
|
35
|
+
|
36
|
+
# s.resource_bundles = {
|
37
|
+
# '${POD_NAME}' => ['${POD_NAME}/Assets/*.png']
|
38
|
+
# }
|
39
|
+
|
40
|
+
# s.public_header_files = 'Pod/Classes/**/*.h'
|
41
|
+
# s.frameworks = 'Cocoa'
|
42
|
+
# s.dependency 'AFNetworking', '~> 2.3'
|
43
|
+
end
|
@@ -0,0 +1,140 @@
|
|
1
|
+
#
|
2
|
+
# Be sure to run `pod spec lint NAME.podspec' to ensure this is a
|
3
|
+
# valid spec and to remove all comments including this before submitting the spec.
|
4
|
+
#
|
5
|
+
# To learn more about Podspec attributes see https://guides.cocoapods.org/syntax/podspec.html
|
6
|
+
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
|
7
|
+
#
|
8
|
+
|
9
|
+
Pod::Spec.new do |spec|
|
10
|
+
|
11
|
+
# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
12
|
+
#
|
13
|
+
# These will help people to find your library, and whilst it
|
14
|
+
# can feel like a chore to fill in it's definitely to your advantage. The
|
15
|
+
# summary should be tweet-length, and the description more in depth.
|
16
|
+
#
|
17
|
+
|
18
|
+
spec.name = "${POD_NAME}"
|
19
|
+
spec.version = "0.0.1"
|
20
|
+
spec.summary = "A short description of ${POD_NAME}."
|
21
|
+
|
22
|
+
# This description is used to generate tags and improve search results.
|
23
|
+
# * Think: What does it do? Why did you write it? What is the focus?
|
24
|
+
# * Try to keep it short, snappy and to the point.
|
25
|
+
# * Write the description between the DESC delimiters below.
|
26
|
+
# * Finally, don't worry about the indent, CocoaPods strips it!
|
27
|
+
spec.description = <<-DESC
|
28
|
+
TODO: Add long description of the pod here.
|
29
|
+
DESC
|
30
|
+
|
31
|
+
spec.homepage = 'http://gitlab.yeahka.com/App/iOS/YKComponents/${POD_NAME}'
|
32
|
+
# spec.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif"
|
33
|
+
|
34
|
+
|
35
|
+
# ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
36
|
+
#
|
37
|
+
# Licensing your code is important. See https://choosealicense.com for more info.
|
38
|
+
# CocoaPods will detect a license file if there is a named LICENSE*
|
39
|
+
# Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'.
|
40
|
+
#
|
41
|
+
|
42
|
+
#spec.license = "MIT (example)"
|
43
|
+
# spec.license = { :type => "MIT", :file => "FILE_LICENSE" }
|
44
|
+
|
45
|
+
|
46
|
+
# ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
47
|
+
#
|
48
|
+
# Specify the authors of the library, with email addresses. Email addresses
|
49
|
+
# of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also
|
50
|
+
# accepts just a name if you'd rather not provide an email address.
|
51
|
+
#
|
52
|
+
# Specify a social_media_url where others can refer to, for example a twitter
|
53
|
+
# profile URL.
|
54
|
+
#
|
55
|
+
|
56
|
+
spec.author = { "${USER_NAME}" => "${USER_EMAIL}" }
|
57
|
+
# Or just: spec.author = "${USER_NAME}"
|
58
|
+
# spec.authors = { "${USER_NAME}" => "${USER_EMAIL}" }
|
59
|
+
# spec.social_media_url = "https://twitter.com/${USER_NAME}"
|
60
|
+
|
61
|
+
# ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
62
|
+
#
|
63
|
+
# If this Pod runs only on iOS or OS X, then specify the platform and
|
64
|
+
# the deployment target. You can optionally include the target after the platform.
|
65
|
+
#
|
66
|
+
|
67
|
+
# spec.platform = :ios
|
68
|
+
# spec.platform = :ios, "5.0"
|
69
|
+
|
70
|
+
# When using multiple platforms
|
71
|
+
# spec.ios.deployment_target = "5.0"
|
72
|
+
# spec.osx.deployment_target = "10.7"
|
73
|
+
# spec.watchos.deployment_target = "2.0"
|
74
|
+
# spec.tvos.deployment_target = "9.0"
|
75
|
+
|
76
|
+
|
77
|
+
# ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
78
|
+
#
|
79
|
+
# Specify the location from where the source should be retrieved.
|
80
|
+
# Supports git, hg, bzr, svn and HTTP.
|
81
|
+
#
|
82
|
+
|
83
|
+
spec.source = { :git => "http://gitlab.yeahka.com/App/iOS/YKComponents/${POD_NAME}.git", :tag => "#{spec.version}" }
|
84
|
+
|
85
|
+
|
86
|
+
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
87
|
+
#
|
88
|
+
# CocoaPods is smart about how it includes source code. For source files
|
89
|
+
# giving a folder will include any swift, h, m, mm, c & cpp files.
|
90
|
+
# For header files it will include any header in the folder.
|
91
|
+
# Not including the public_header_files will make all headers public.
|
92
|
+
#
|
93
|
+
|
94
|
+
spec.source_files = "Classes", "Classes/**/*.{h,m}"
|
95
|
+
spec.exclude_files = "Classes/Exclude"
|
96
|
+
|
97
|
+
# spec.public_header_files = "Classes/**/*.h"
|
98
|
+
|
99
|
+
|
100
|
+
# ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
101
|
+
#
|
102
|
+
# A list of resources included with the Pod. These are copied into the
|
103
|
+
# target bundle with a build phase script. Anything else will be cleaned.
|
104
|
+
# You can preserve files from being cleaned, please don't preserve
|
105
|
+
# non-essential files like tests, examples and documentation.
|
106
|
+
#
|
107
|
+
|
108
|
+
# spec.resource = "icon.png"
|
109
|
+
# spec.resources = "Resources/*.png"
|
110
|
+
# spec.resource_bundles = {
|
111
|
+
# '${POD_NAME}' => ['${POD_NAME}/**/*.{xib,png,json}']
|
112
|
+
# }
|
113
|
+
# spec.preserve_paths = "FilesToSave", "MoreFilesToSave"
|
114
|
+
|
115
|
+
|
116
|
+
# ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
117
|
+
#
|
118
|
+
# Link your library with frameworks, or libraries. Libraries do not include
|
119
|
+
# the lib prefix of their name.
|
120
|
+
#
|
121
|
+
|
122
|
+
# spec.framework = "SomeFramework"
|
123
|
+
# spec.frameworks = "SomeFramework", "AnotherFramework"
|
124
|
+
|
125
|
+
# spec.library = "iconv"
|
126
|
+
# spec.libraries = "iconv", "xml2"
|
127
|
+
|
128
|
+
|
129
|
+
# ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
130
|
+
#
|
131
|
+
# If your library depends on compiler flags you can set them in the xcconfig hash
|
132
|
+
# where they will only apply to your library. If you depend on other Podspecs
|
133
|
+
# you can include multiple dependencies to ensure it works.
|
134
|
+
|
135
|
+
# spec.requires_arc = true
|
136
|
+
|
137
|
+
# spec.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
|
138
|
+
# spec.dependency "JSONKit", "~> 1.4"
|
139
|
+
|
140
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) ${YEAR} ${USER_NAME} <${USER_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,29 @@
|
|
1
|
+
# ${POD_NAME}
|
2
|
+
|
3
|
+
[![CI Status](https://img.shields.io/travis/${USER_NAME}/${REPO_NAME}.svg?style=flat)](https://travis-ci.org/${USER_NAME}/${REPO_NAME})
|
4
|
+
[![Version](https://img.shields.io/cocoapods/v/${POD_NAME}.svg?style=flat)](https://cocoapods.org/pods/${POD_NAME})
|
5
|
+
[![License](https://img.shields.io/cocoapods/l/${POD_NAME}.svg?style=flat)](https://cocoapods.org/pods/${POD_NAME})
|
6
|
+
[![Platform](https://img.shields.io/cocoapods/p/${POD_NAME}.svg?style=flat)](https://cocoapods.org/pods/${POD_NAME})
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
To run the example project, clone the repo, and run `pod install` from the Example directory first.
|
11
|
+
|
12
|
+
## Requirements
|
13
|
+
|
14
|
+
## Installation
|
15
|
+
|
16
|
+
${POD_NAME} is available through [CocoaPods](https://cocoapods.org). To install
|
17
|
+
it, simply add the following line to your Podfile:
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
pod '${POD_NAME}'
|
21
|
+
```
|
22
|
+
|
23
|
+
## Author
|
24
|
+
|
25
|
+
${USER_NAME}, ${USER_EMAIL}
|
26
|
+
|
27
|
+
## License
|
28
|
+
|
29
|
+
${POD_NAME} is available under the MIT license. See the LICENSE file for more info.
|
File without changes
|
File without changes
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# 组件化命令行工具
|
2
|
+
|
3
|
+
在命令行使用统一的模版创建新的Module项目,创建过程中交互式的选择要安装的组件。
|
4
|
+
|
5
|
+
## 使用方法
|
6
|
+
|
7
|
+
`pod lib create` + <你的App工程名,例如 `ShouYinTongAgent` > + `--template-url=http://gitlab.yeahka.com/App/iOS/YKComponents/YKProjectTemplate.git`
|
8
|
+
|
9
|
+
```shell
|
10
|
+
pod lib create ShellProject --template-url=http://gitlab.yeahka.com/App/iOS/YKComponents/YKProjectTemplate.git
|
11
|
+
|
12
|
+
```
|
13
|
+
|
14
|
+
交互式过程如图:
|
15
|
+
|
16
|
+
![命令行创建新的App项目](http://ww1.sinaimg.cn/large/6de36fdcgy1gnsw227nzdj21ba0jatd4.jpg)
|
17
|
+
|
18
|
+
新创建的App工程的目录结构如下面的图片:
|
19
|
+
|
20
|
+
以工程名字为 `ShellProject` 作为例子
|
21
|
+
|
22
|
+
![移卡壳工程的目录结构,图1](http://ww1.sinaimg.cn/large/6de36fdcgy1gnsvnnzoe2j20l41587nr.jpg)
|
@@ -0,0 +1,13 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
$current_dir = File.dirname(File.expand_path(__FILE__))
|
4
|
+
Dir[File.join($current_dir, "setup/*.rb")].each do |file|
|
5
|
+
require_relative(file)
|
6
|
+
end
|
7
|
+
|
8
|
+
pod_name = ARGV.shift
|
9
|
+
framework = ARGV.shift
|
10
|
+
prefix = ARGV.shift
|
11
|
+
author = ARGV.shift
|
12
|
+
is_simple = ARGV.shift
|
13
|
+
Pod::TemplateConfigurator.new(pod_name,framework,prefix,author,is_simple).run
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
3
|
+
<device id="retina4_7" orientation="portrait">
|
4
|
+
<adaptation id="fullscreen"/>
|
5
|
+
</device>
|
6
|
+
<dependencies>
|
7
|
+
<deployment identifier="iOS"/>
|
8
|
+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
|
9
|
+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
10
|
+
</dependencies>
|
11
|
+
<scenes>
|
12
|
+
<!--View Controller-->
|
13
|
+
<scene sceneID="EHf-IW-A2E">
|
14
|
+
<objects>
|
15
|
+
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
|
16
|
+
<layoutGuides>
|
17
|
+
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
|
18
|
+
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
|
19
|
+
</layoutGuides>
|
20
|
+
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
21
|
+
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
22
|
+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
23
|
+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
24
|
+
</view>
|
25
|
+
</viewController>
|
26
|
+
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
27
|
+
</objects>
|
28
|
+
<point key="canvasLocation" x="53" y="375"/>
|
29
|
+
</scene>
|
30
|
+
</scenes>
|
31
|
+
</document>
|