cocoapods-lzspeed 0.0.1
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/.gitignore +3 -0
- data/Gemfile +13 -0
- data/LICENSE.txt +22 -0
- data/README.md +11 -0
- data/Rakefile +13 -0
- data/cocoapods-lzspeed.gemspec +23 -0
- data/lib/cocoapods-lzspeed/command/lzspeed.rb +77 -0
- data/lib/cocoapods-lzspeed/command.rb +1 -0
- data/lib/cocoapods-lzspeed/gem_version.rb +3 -0
- data/lib/cocoapods-lzspeed.rb +1 -0
- data/lib/cocoapods_plugin.rb +1 -0
- data/spec/command/lzspeed_spec.rb +12 -0
- data/spec/spec_helper.rb +50 -0
- metadata +86 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2e55cb95cd0e6a66ff34175929bf124c19bf73022e5e23dea50f0874d7ebf5fc
|
4
|
+
data.tar.gz: 3ac823200efd8afc96ed220cb375861087c07042a3c7eb048d47b8a2d64930c8
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c4ecbcb533879539dbb6b8fe7f6e49cbd5c26eeec5776303e0f96876e7e1084a9a86e01d325b358ee6a3acfdcce4eb2288e36dd253a2f85bfd22184ed99da45f
|
7
|
+
data.tar.gz: 18f84b7d4f5f5dd96f4a5bbd140d60bfcf79da742d4506453aad58f2143be5fc456b5154823e21472abc829b5231e8e4e22d1e3848cd9e15fd9e4d5e0babeed9
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2021 ningyuan <ningyuan@qiyi.com>
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'cocoapods-lzspeed/gem_version.rb'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'cocoapods-lzspeed'
|
8
|
+
spec.version = CocoapodsLzspeed::VERSION
|
9
|
+
spec.authors = ['ningyuan']
|
10
|
+
spec.email = ['m13811217138@gmail.com']
|
11
|
+
spec.description = 'cocoapods-lzspeed'
|
12
|
+
spec.summary = 'cocoapods-lzspeed'
|
13
|
+
spec.homepage = 'https://github.com/Jeremi-LZ/LZSpeed/'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ['lib']
|
20
|
+
|
21
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
22
|
+
spec.add_development_dependency 'rake'
|
23
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
require 'xcodeproj'
|
2
|
+
|
3
|
+
module CocoapodsLZSpeed
|
4
|
+
|
5
|
+
Pod::HooksManager.register('cocoapods-lzspeed', :pre_install) do |context|
|
6
|
+
|
7
|
+
context.podfile.installation_options.generate_multiple_pod_projects = true
|
8
|
+
context.podfile.installation_options.incremental_installation = true
|
9
|
+
Pod::UI.puts 'cocoapods-lzspeed:executed successfully!'
|
10
|
+
|
11
|
+
end
|
12
|
+
|
13
|
+
class Tools
|
14
|
+
|
15
|
+
def get_project(file_path)
|
16
|
+
|
17
|
+
projPath = 'unknow'
|
18
|
+
|
19
|
+
Dir.foreach(file_path) do |file|
|
20
|
+
|
21
|
+
extn = File.extname file
|
22
|
+
|
23
|
+
if extn == '.xcodeproj'
|
24
|
+
|
25
|
+
projPath = file_path+file
|
26
|
+
|
27
|
+
break
|
28
|
+
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
return projPath
|
34
|
+
|
35
|
+
end
|
36
|
+
|
37
|
+
def get_target(path)
|
38
|
+
|
39
|
+
targets = Array.new
|
40
|
+
|
41
|
+
project = Xcodeproj::Project.open(path)
|
42
|
+
|
43
|
+
target = project.targets[0]
|
44
|
+
|
45
|
+
if target != nil
|
46
|
+
|
47
|
+
target.build_phases.each do |phase|
|
48
|
+
|
49
|
+
if phase.instance_of? Xcodeproj::Project::Object::PBXShellScriptBuildPhase
|
50
|
+
|
51
|
+
if phase.name == '[CP] Copy Pods Resources'
|
52
|
+
|
53
|
+
files = phase.output_paths
|
54
|
+
if files != nil
|
55
|
+
files.clear
|
56
|
+
Pod::UI.puts 'Clean Output Files!'
|
57
|
+
end
|
58
|
+
|
59
|
+
paths = phase.output_file_list_paths
|
60
|
+
if paths != nil
|
61
|
+
paths.clear
|
62
|
+
Pod::UI.puts 'Clean Output File Lists!'
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
end
|
70
|
+
|
71
|
+
project.save
|
72
|
+
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'cocoapods-lzspeed/command/lzspeed'
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'cocoapods-lzspeed/gem_version'
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'cocoapods-lzspeed/command'
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
require 'pathname'
|
2
|
+
ROOT = Pathname.new(File.expand_path('../../', __FILE__))
|
3
|
+
$:.unshift((ROOT + 'lib').to_s)
|
4
|
+
$:.unshift((ROOT + 'spec').to_s)
|
5
|
+
|
6
|
+
require 'bundler/setup'
|
7
|
+
require 'bacon'
|
8
|
+
require 'mocha-on-bacon'
|
9
|
+
require 'pretty_bacon'
|
10
|
+
require 'pathname'
|
11
|
+
require 'cocoapods'
|
12
|
+
|
13
|
+
Mocha::Configuration.prevent(:stubbing_non_existent_method)
|
14
|
+
|
15
|
+
require 'cocoapods_plugin'
|
16
|
+
|
17
|
+
#-----------------------------------------------------------------------------#
|
18
|
+
|
19
|
+
module Pod
|
20
|
+
|
21
|
+
# Disable the wrapping so the output is deterministic in the tests.
|
22
|
+
#
|
23
|
+
UI.disable_wrap = true
|
24
|
+
|
25
|
+
# Redirects the messages to an internal store.
|
26
|
+
#
|
27
|
+
module UI
|
28
|
+
@output = ''
|
29
|
+
@warnings = ''
|
30
|
+
|
31
|
+
class << self
|
32
|
+
attr_accessor :output
|
33
|
+
attr_accessor :warnings
|
34
|
+
|
35
|
+
def puts(message = '')
|
36
|
+
@output << "#{message}\n"
|
37
|
+
end
|
38
|
+
|
39
|
+
def warn(message = '', actions = [])
|
40
|
+
@warnings << "#{message}\n"
|
41
|
+
end
|
42
|
+
|
43
|
+
def print(message)
|
44
|
+
@output << message
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
#-----------------------------------------------------------------------------#
|
metadata
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cocoapods-lzspeed
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- ningyuan
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-09-27 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: cocoapods-lzspeed
|
42
|
+
email:
|
43
|
+
- m13811217138@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- ".gitignore"
|
49
|
+
- Gemfile
|
50
|
+
- LICENSE.txt
|
51
|
+
- README.md
|
52
|
+
- Rakefile
|
53
|
+
- cocoapods-lzspeed.gemspec
|
54
|
+
- lib/cocoapods-lzspeed.rb
|
55
|
+
- lib/cocoapods-lzspeed/command.rb
|
56
|
+
- lib/cocoapods-lzspeed/command/lzspeed.rb
|
57
|
+
- lib/cocoapods-lzspeed/gem_version.rb
|
58
|
+
- lib/cocoapods_plugin.rb
|
59
|
+
- spec/command/lzspeed_spec.rb
|
60
|
+
- spec/spec_helper.rb
|
61
|
+
homepage: https://github.com/Jeremi-LZ/LZSpeed/
|
62
|
+
licenses:
|
63
|
+
- MIT
|
64
|
+
metadata: {}
|
65
|
+
post_install_message:
|
66
|
+
rdoc_options: []
|
67
|
+
require_paths:
|
68
|
+
- lib
|
69
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
74
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
requirements: []
|
80
|
+
rubygems_version: 3.0.3
|
81
|
+
signing_key:
|
82
|
+
specification_version: 4
|
83
|
+
summary: cocoapods-lzspeed
|
84
|
+
test_files:
|
85
|
+
- spec/command/lzspeed_spec.rb
|
86
|
+
- spec/spec_helper.rb
|