cocoapods-jingxi 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/cocoapods-jingxi/command/jingxi.rb +44 -0
- data/lib/cocoapods-jingxi/command.rb +1 -0
- data/lib/cocoapods-jingxi/gem_version.rb +3 -0
- data/lib/cocoapods-jingxi.rb +1 -0
- data/lib/cocoapods_plugin.rb +39 -0
- metadata +76 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: cf8f4ef3090480ed50ec43ed7e117fb80e0d8ecb40bde89f288b918cae4ef06d
|
4
|
+
data.tar.gz: e41800fbab3b9a0d1660ba4f1e27596bb98ff7d80fcd47004f4ba9d678520e12
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a4c68c8750346bbabd3193d62f65be72327f39212190715513916beabf15a401858275875f8d73e5e98d85a488a6305e771cbffb565d931a87ef311e9a38cf31
|
7
|
+
data.tar.gz: 3dd9bb20fb0a11efd7bebe17fdbbc5688bcad56e1e264097e81b0d4325bea972d568cfa3d6955d9143aea1e93161f15a5dfbaaa20dea4994143acdff26f235e9
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module Pod
|
2
|
+
class Command
|
3
|
+
# This is an example of a cocoapods plugin adding a top-level subcommand
|
4
|
+
# to the 'pod' command.
|
5
|
+
#
|
6
|
+
# You can also create subcommands of existing or new commands. Say you
|
7
|
+
# wanted to add a subcommand to `list` to show newly deprecated pods,
|
8
|
+
# (e.g. `pod list deprecated`), there are a few things that would need
|
9
|
+
# to change.
|
10
|
+
#
|
11
|
+
# - move this file to `lib/pod/command/list/deprecated.rb` and update
|
12
|
+
# the class to exist in the the Pod::Command::List namespace
|
13
|
+
# - change this class to extend from `List` instead of `Command`. This
|
14
|
+
# tells the plugin system that it is a subcommand of `list`.
|
15
|
+
# - edit `lib/cocoapods_plugins.rb` to require this file
|
16
|
+
#
|
17
|
+
# @todo Create a PR to add your plugin to CocoaPods/cocoapods.org
|
18
|
+
# in the `plugins.json` file, once your plugin is released.
|
19
|
+
#
|
20
|
+
class Jingxi < Command
|
21
|
+
self.summary = 'Short description of cocoapods-jingxi.'
|
22
|
+
|
23
|
+
self.description = <<-DESC
|
24
|
+
Longer description of cocoapods-jingxi.
|
25
|
+
DESC
|
26
|
+
|
27
|
+
self.arguments = 'NAME'
|
28
|
+
|
29
|
+
def initialize(argv)
|
30
|
+
@name = argv.shift_argument
|
31
|
+
super
|
32
|
+
end
|
33
|
+
|
34
|
+
def validate!
|
35
|
+
super
|
36
|
+
help! 'A Pod name is required.' unless @name
|
37
|
+
end
|
38
|
+
|
39
|
+
def run
|
40
|
+
UI.puts "Add your implementation for the cocoapods-jingxi plugin in #{__FILE__}"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'cocoapods-jingxi/command/jingxi'
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'cocoapods-jingxi/gem_version'
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'cocoapods-jingxi/command'
|
2
|
+
|
3
|
+
module CocoapodsJingxi
|
4
|
+
Pod::HooksManager.register('cocoapods-jingxi', :post_install) do |install_context|
|
5
|
+
Pod::UI.puts "处理开始"
|
6
|
+
# Pod::UI.puts "处理结束#{install_context.umbrella_targets}"
|
7
|
+
install_context.umbrella_targets.each do |target|
|
8
|
+
target.user_targets.each do |target|
|
9
|
+
Pod::UI.puts "处理结束#{target.name}"
|
10
|
+
# 不生成 DSYM
|
11
|
+
target.build_configurations.each do |config|
|
12
|
+
config.build_settings['DEBUG_INFORMATION_FORMAT'] = 'dwarf'
|
13
|
+
end
|
14
|
+
# App-Lint 工程移除 [CP] Copy Pods Resources
|
15
|
+
if target.name == 'App-Lint'
|
16
|
+
copy_pods_resources_phase = target.build_phases.find { |bp| bp.display_name == '[CP] Copy Pods Resources' }
|
17
|
+
target.build_phases.delete(copy_pods_resources_phase) if copy_pods_resources_phase.present?
|
18
|
+
end
|
19
|
+
end
|
20
|
+
# 保存配置修改
|
21
|
+
target.user_project.save
|
22
|
+
end
|
23
|
+
# 修改 pod buildsetting,提高发布速度
|
24
|
+
install_context.pods_project.targets.each do |target|
|
25
|
+
target.build_configurations.each do |config|
|
26
|
+
# config.build_settings['GCC_WARN_INHIBIT_ALL_WARNINGS'] = 'YES'
|
27
|
+
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
|
28
|
+
if true
|
29
|
+
config.build_settings['EXCLUDED_ARCHS'] = 'i386 armv7'
|
30
|
+
else
|
31
|
+
config.build_settings['EXCLUDED_ARCHS'] = 'i386'
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
install_context.pods_project.save
|
36
|
+
#
|
37
|
+
Pod::UI.puts "处理结束"
|
38
|
+
end
|
39
|
+
end
|
metadata
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cocoapods-jingxi
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- He Xiao
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-10-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: A short description of cocoapods-jingxi.
|
42
|
+
email:
|
43
|
+
- 297359127@qq.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- lib/cocoapods-jingxi.rb
|
49
|
+
- lib/cocoapods-jingxi/command.rb
|
50
|
+
- lib/cocoapods-jingxi/command/jingxi.rb
|
51
|
+
- lib/cocoapods-jingxi/gem_version.rb
|
52
|
+
- lib/cocoapods_plugin.rb
|
53
|
+
homepage: https://github.com/EXAMPLE/cocoapods-jingxi
|
54
|
+
licenses:
|
55
|
+
- MIT
|
56
|
+
metadata: {}
|
57
|
+
post_install_message:
|
58
|
+
rdoc_options: []
|
59
|
+
require_paths:
|
60
|
+
- lib
|
61
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
requirements: []
|
72
|
+
rubygems_version: 3.0.3
|
73
|
+
signing_key:
|
74
|
+
specification_version: 4
|
75
|
+
summary: A longer description of cocoapods-jingxi.
|
76
|
+
test_files: []
|