cocoapods-aries-binary 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/.gitignore +3 -0
- data/Gemfile +13 -0
- data/LICENSE.txt +22 -0
- data/README.md +11 -0
- data/Rakefile +13 -0
- data/cocoapods-aries-binary.gemspec +23 -0
- data/lib/cocoapods-aries-binary/command/binary.rb +23 -0
- data/lib/cocoapods-aries-binary/command/install.rb +29 -0
- data/lib/cocoapods-aries-binary/command/package.rb +147 -0
- data/lib/cocoapods-aries-binary/command/source/source_spec_repo.rb +8 -0
- data/lib/cocoapods-aries-binary/command/source.rb +128 -0
- data/lib/cocoapods-aries-binary/command.rb +1 -0
- data/lib/cocoapods-aries-binary/gem_version.rb +3 -0
- data/lib/cocoapods-aries-binary/spec_repo/binary_file.rb +42 -0
- data/lib/cocoapods-aries-binary/spec_repo/spec_repo.rb +12 -0
- data/lib/cocoapods-aries-binary.rb +1 -0
- data/lib/cocoapods_plugin.rb +1 -0
- data/spec/command/binary_spec.rb +12 -0
- data/spec/spec_helper.rb +50 -0
- metadata +92 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: afd7c7c3cc6ceeafc0fd3f783f953ce3619d15b27125e141249f0652ef199f52
|
4
|
+
data.tar.gz: 9f5099218f4b94c4015df6c621a3bbe74495a83e80731de8084483b2efb96894
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6982cd5e47db2f36ead518d3e46869d839bdef49dc6aa2a8a38343b8db862bbd8b4d2f649df682076d212414661ebf9b7aa3a27d818192a2d265d7808da1f6be
|
7
|
+
data.tar.gz: 19e603d7e6cfe00d5ebba3075c08d12672bb23e2879bccd6606689c890feac3b3f590c0bdf620236ac3eaaedc721d43769d77a8477ee87192e15000c63219815
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2024 majiabj01 <majiabj01@kanyun.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-aries-binary/gem_version.rb'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'cocoapods-aries-binary'
|
8
|
+
spec.version = CocoapodsAriesBinary::VERSION
|
9
|
+
spec.authors = ['majiabj01']
|
10
|
+
spec.email = ['majiabj01@kanyun.com']
|
11
|
+
spec.description = %q{A short description of cocoapods-aries-binary.}
|
12
|
+
spec.summary = %q{A longer description of cocoapods-aries-binary.}
|
13
|
+
spec.homepage = 'https://github.com/EXAMPLE/cocoapods-aries-binary'
|
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,23 @@
|
|
1
|
+
require 'cocoapods-aries-binary/command/install'
|
2
|
+
require 'cocoapods-aries-binary/command/source'
|
3
|
+
require 'cocoapods-aries-binary/command/package'
|
4
|
+
|
5
|
+
module Pod
|
6
|
+
autoload :Binaryfile, 'cocoapods-aries-binary/spec_repo/binary_file'
|
7
|
+
class Command
|
8
|
+
class Binary < Command
|
9
|
+
self.abstract_command = true
|
10
|
+
self.summary = 'Short description of cocoapods-aries-binary.'
|
11
|
+
|
12
|
+
self.description = <<-DESC
|
13
|
+
Manage binary pods from a private spec repo.
|
14
|
+
DESC
|
15
|
+
|
16
|
+
def verify_binaryfile_exists!
|
17
|
+
unless Pod::Binaryfile.instance.file_exists?
|
18
|
+
raise Informative, "No `Binaryfile' found in the project directory."
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Pod
|
2
|
+
class Command
|
3
|
+
class Binary < Command
|
4
|
+
class Install < Binary
|
5
|
+
|
6
|
+
include RepoUpdate
|
7
|
+
include ProjectDirectory
|
8
|
+
self.summary = 'Install binary pods.'
|
9
|
+
|
10
|
+
self.description = <<-DESC
|
11
|
+
Install binary pods from a given source.
|
12
|
+
DESC
|
13
|
+
|
14
|
+
def run
|
15
|
+
require 'cocoapods-aries-binary/spec_repo/spec_repo'
|
16
|
+
verify_podfile_exists!
|
17
|
+
verify_binaryfile_exists!
|
18
|
+
installer = installer_for_config
|
19
|
+
installer.repo_update = repo_update?(:default => false)
|
20
|
+
installer.update = false
|
21
|
+
installer.deployment = false
|
22
|
+
installer.clean_install = false
|
23
|
+
installer.install!
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
@@ -0,0 +1,147 @@
|
|
1
|
+
module Pod
|
2
|
+
class Command
|
3
|
+
class Binary < Command
|
4
|
+
class Package < Binary
|
5
|
+
self.summary = 'Package a binary pod.'
|
6
|
+
|
7
|
+
self.description = <<-DESC
|
8
|
+
Package a binary pod with a podspec.
|
9
|
+
DESC
|
10
|
+
|
11
|
+
self.arguments = [ CLAide::Argument.new('NAME.podspec', true) ]
|
12
|
+
|
13
|
+
def self.options
|
14
|
+
[
|
15
|
+
["--sources=#{Pod::TrunkSource::TRUNK_REPO_URL}", 'The sources from which to pull dependent pods ' \
|
16
|
+
"(defaults to #{Pod::TrunkSource::TRUNK_REPO_URL}). Multiple sources must be comma-delimited"],
|
17
|
+
].concat(super)
|
18
|
+
end
|
19
|
+
|
20
|
+
def initialize(argv)
|
21
|
+
@spec_path = argv.shift_argument
|
22
|
+
source_urls = argv.option('sources', Pod::TrunkSource::TRUNK_REPO_URL).split(',')
|
23
|
+
@source_urls = source_urls.map { |url| config.sources_manager.source_with_name_or_url(url) }.map(&:url)
|
24
|
+
super
|
25
|
+
end
|
26
|
+
|
27
|
+
def validate!
|
28
|
+
super
|
29
|
+
help! 'Packaging needs a podspec.' unless @spec_path
|
30
|
+
pathname = Pathname.new(@spec_path)
|
31
|
+
help! 'Podspec not exist.' unless pathname.exist? && @spec_path.include?('.podspec')
|
32
|
+
@linter = Specification::Linter.new(pathname)
|
33
|
+
end
|
34
|
+
|
35
|
+
def run
|
36
|
+
setup_build_environment
|
37
|
+
create_app_project
|
38
|
+
download_pod
|
39
|
+
install_pod
|
40
|
+
end
|
41
|
+
|
42
|
+
def build_dir
|
43
|
+
@build_dir ||= Pathname.getwd + Pathname('aries_binary_build')
|
44
|
+
end
|
45
|
+
|
46
|
+
def spec
|
47
|
+
@linter.spec
|
48
|
+
end
|
49
|
+
|
50
|
+
def file
|
51
|
+
@linter.file
|
52
|
+
end
|
53
|
+
|
54
|
+
DEFAULT_SWIFT_VERSION = '5.0'.freeze
|
55
|
+
DEFAULT_DEPLOY_TARGET = '11.0'.freeze
|
56
|
+
|
57
|
+
def setup_build_environment
|
58
|
+
build_dir.rmtree if build_dir.exist?
|
59
|
+
build_dir.mkpath
|
60
|
+
config.installation_root = build_dir
|
61
|
+
end
|
62
|
+
|
63
|
+
def create_app_project
|
64
|
+
app_project = Xcodeproj::Project.new(build_dir + 'App.xcodeproj')
|
65
|
+
app_target = Pod::Generator::AppTargetHelper.add_app_target(app_project, :ios, DEFAULT_DEPLOY_TARGET)
|
66
|
+
sandbox = Sandbox.new(config.sandbox_root)
|
67
|
+
info_plist_path = app_project.path.dirname.+('App/App-Info.plist')
|
68
|
+
Pod::Installer::Xcode::PodsProjectGenerator::TargetInstallerHelper.create_info_plist_file_with_sandbox(sandbox,
|
69
|
+
info_plist_path,
|
70
|
+
app_target,
|
71
|
+
'1.0.0',
|
72
|
+
Platform.new(:ios),
|
73
|
+
:appl,
|
74
|
+
:build_setting_value => '$(SRCROOT)/App/App-Info.plist')
|
75
|
+
Pod::Generator::AppTargetHelper.add_swift_version(app_target, DEFAULT_SWIFT_VERSION)
|
76
|
+
app_target.build_configurations.each do |config|
|
77
|
+
config.build_settings.delete('ASSETCATALOG_COMPILER_APPICON_NAME')
|
78
|
+
config.build_settings['PRODUCT_BUNDLE_IDENTIFIER'] = 'org.cocoapods.${PRODUCT_NAME:rfc1034identifier}'
|
79
|
+
end
|
80
|
+
app_project.save
|
81
|
+
app_project.recreate_user_schemes
|
82
|
+
end
|
83
|
+
|
84
|
+
def download_pod
|
85
|
+
podfile = podfile_from_spec(true)
|
86
|
+
sandbox = Sandbox.new(config.sandbox_root)
|
87
|
+
@installer = Installer.new(sandbox, podfile)
|
88
|
+
@installer.use_default_plugins = false
|
89
|
+
@installer.has_dependencies = !spec.dependencies.empty?
|
90
|
+
%i(prepare resolve_dependencies download_dependencies write_lockfiles).each { |m| @installer.send(m) }
|
91
|
+
@file_accessor = @installer.pod_targets.flat_map(&:file_accessors).find { |fa| fa.spec.name == spec.name }
|
92
|
+
end
|
93
|
+
|
94
|
+
def podfile_from_spec(use_modular_headers = false)
|
95
|
+
name = spec.name
|
96
|
+
podspec = file.realpath
|
97
|
+
urls = @source_urls
|
98
|
+
project_path = 'App.xcodeproj'
|
99
|
+
|
100
|
+
Pod::Podfile.new do
|
101
|
+
install! 'cocoapods', :deterministic_uuids => false, :warn_for_unused_master_specs_repo => false
|
102
|
+
# By default inhibit warnings for all pods, except the one being validated.
|
103
|
+
inhibit_all_warnings!
|
104
|
+
urls.each { |u| source(u) }
|
105
|
+
project project_path
|
106
|
+
target 'App' do
|
107
|
+
use_frameworks!(:linkage => :static)
|
108
|
+
use_modular_headers! if use_modular_headers
|
109
|
+
platform(:ios, DEFAULT_DEPLOY_TARGET)
|
110
|
+
pod name, :podspec => podspec.to_s, :inhibit_warnings => false
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
def install_pod
|
116
|
+
%i(validate_targets generate_pods_project integrate_user_project
|
117
|
+
perform_post_install_actions).each { |m| @installer.send(m) }
|
118
|
+
|
119
|
+
configure_pod_targets(@installer.target_installation_results)
|
120
|
+
@installer.pods_project.save
|
121
|
+
end
|
122
|
+
|
123
|
+
def configure_pod_targets(target_installation_results)
|
124
|
+
target_installation_results.first.values.each do |pod_target_installation_result|
|
125
|
+
pod_target = pod_target_installation_result.target
|
126
|
+
native_target = pod_target_installation_result.native_target
|
127
|
+
native_target.build_configuration_list.build_configurations.each do |build_configuration|
|
128
|
+
(build_configuration.build_settings['OTHER_CFLAGS'] ||= '$(inherited)') << ' -Wincomplete-umbrella'
|
129
|
+
if pod_target.uses_swift?
|
130
|
+
# The Swift version for the target being validated can be overridden by `--swift-version` or the
|
131
|
+
# `.swift-version` file so we always use the derived Swift version.
|
132
|
+
#
|
133
|
+
# For dependencies, if the derived Swift version is supported then it is the one used. Otherwise, the Swift
|
134
|
+
# version for dependencies is inferred by the target that is integrating them.
|
135
|
+
build_configuration.build_settings['SWIFT_VERSION'] = DEFAULT_SWIFT_VERSION
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
|
147
|
+
|
@@ -0,0 +1,128 @@
|
|
1
|
+
module Pod
|
2
|
+
class Command
|
3
|
+
class Binary < Command
|
4
|
+
class Source < Binary
|
5
|
+
|
6
|
+
include RepoUpdate
|
7
|
+
include ProjectDirectory
|
8
|
+
|
9
|
+
self.summary = 'Download and link the source of the binary pod.'
|
10
|
+
|
11
|
+
self.description = <<-DESC
|
12
|
+
Download and link the source of the binary pod. To make the binary pod debuggable.
|
13
|
+
DESC
|
14
|
+
|
15
|
+
self.arguments = [
|
16
|
+
CLAide::Argument.new('NAME', false)
|
17
|
+
]
|
18
|
+
|
19
|
+
def initialize(argv)
|
20
|
+
@name = argv.shift_argument
|
21
|
+
@config = Pod::Config.instance
|
22
|
+
super
|
23
|
+
end
|
24
|
+
|
25
|
+
def validate!
|
26
|
+
super
|
27
|
+
help! 'Sourcing needs a pod name.' unless @name
|
28
|
+
end
|
29
|
+
|
30
|
+
def run
|
31
|
+
require 'cocoapods-aries-binary/command/source/source_spec_repo'
|
32
|
+
add
|
33
|
+
end
|
34
|
+
|
35
|
+
def add
|
36
|
+
name = @name
|
37
|
+
lib_file = get_lib_path(name)
|
38
|
+
unless File.exist?(lib_file)
|
39
|
+
raise "file not found: #{lib_file}"
|
40
|
+
end
|
41
|
+
UI.puts "Binary path: #{lib_file}".green
|
42
|
+
|
43
|
+
target_path = download_source(name)
|
44
|
+
|
45
|
+
link(lib_file,target_path,name)
|
46
|
+
end
|
47
|
+
|
48
|
+
def download_source(name)
|
49
|
+
target_path = File.join(source_root, name)
|
50
|
+
UI.puts "Source path: #{target_path}".green
|
51
|
+
FileUtils.rm_rf(target_path)
|
52
|
+
|
53
|
+
verify_podfile_exists!
|
54
|
+
installer = installer_for_config
|
55
|
+
installer.repo_update = repo_update?(:default => false)
|
56
|
+
installer.update = false
|
57
|
+
installer.deployment = false
|
58
|
+
installer.clean_install = false
|
59
|
+
installer.prepare
|
60
|
+
installer.resolve_dependencies
|
61
|
+
root_specs = installer.analysis_result.specifications.map(&:root).uniq
|
62
|
+
spec = root_specs.select { |s| s.name == name}.first
|
63
|
+
|
64
|
+
download_request = Pod::Downloader::Request.new(:name => name, :spec => spec)
|
65
|
+
Downloader.download(download_request, Pathname.new(target_path), :can_cache => true)
|
66
|
+
|
67
|
+
target_path
|
68
|
+
end
|
69
|
+
|
70
|
+
def link(lib_file,target_path,basename)
|
71
|
+
dir = (`dwarfdump "#{lib_file}" | grep "AT_comp_dir" | head -1 | cut -d \\" -f2 `)
|
72
|
+
sub_path = "#{basename}/bin-archive/#{basename}"
|
73
|
+
dir = dir.gsub(sub_path, "").chomp
|
74
|
+
|
75
|
+
unless File.exist?(dir)
|
76
|
+
begin
|
77
|
+
FileUtils.mkdir_p(dir)
|
78
|
+
rescue SystemCallError
|
79
|
+
array = dir.split('/')
|
80
|
+
if array.length > 3
|
81
|
+
root_path = '/' + array[1] + '/' + array[2]
|
82
|
+
unless File.exist?(root_path)
|
83
|
+
raise "由于权限不足,请手动创建#{root_path} 后重试"
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
if Pathname.new(lib_file).extname == ".a"
|
90
|
+
FileUtils.rm_rf(File.join(dir,basename))
|
91
|
+
`ln -s #{target_path} #{dir}`
|
92
|
+
else
|
93
|
+
FileUtils.rm_rf(File.join(dir,basename))
|
94
|
+
`ln -s #{target_path} #{dir}/#{basename}`
|
95
|
+
end
|
96
|
+
|
97
|
+
check(lib_file,dir,basename)
|
98
|
+
end
|
99
|
+
|
100
|
+
def check(lib_file,dir,basename)
|
101
|
+
file = `dwarfdump "#{lib_file}" | grep -E "DW_AT_decl_file.*#{basename}.*\\.m|\\.c" | head -1 | cut -d \\" -f2`
|
102
|
+
if File.exist?(file)
|
103
|
+
raise "#{file} 不存在 请检测代码源是否正确~"
|
104
|
+
end
|
105
|
+
UI.puts "link successfully!".green
|
106
|
+
UI.puts "view linked source at path: #{dir}".green
|
107
|
+
end
|
108
|
+
|
109
|
+
def get_lib_path(name)
|
110
|
+
dir = Pathname.new(File.join(Pathname.pwd, "Pods", name, "#{name}.framework"))
|
111
|
+
lib_name = "#{name}"
|
112
|
+
lib_path = File.join(dir, lib_name)
|
113
|
+
|
114
|
+
lib_path
|
115
|
+
end
|
116
|
+
|
117
|
+
private
|
118
|
+
|
119
|
+
def source_root
|
120
|
+
dir = File.join(@config.cache_root, "Source")
|
121
|
+
FileUtils.mkdir_p(dir) unless File.exist? dir
|
122
|
+
dir
|
123
|
+
end
|
124
|
+
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'cocoapods-aries-binary/command/binary'
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module Pod
|
2
|
+
module DSL
|
3
|
+
def binary_source(url)
|
4
|
+
self.repo_url = url
|
5
|
+
end
|
6
|
+
def binary_pods(names)
|
7
|
+
self.pod_names = names
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
module Pod
|
13
|
+
class Binaryfile
|
14
|
+
include DSL
|
15
|
+
|
16
|
+
def self.instance
|
17
|
+
@instance ||= new
|
18
|
+
end
|
19
|
+
|
20
|
+
attr_accessor :pod_names
|
21
|
+
attr_accessor :repo_url
|
22
|
+
|
23
|
+
def initialize
|
24
|
+
@file_path = Config.instance.installation_root + 'Binaryfile'
|
25
|
+
@pod_names = []
|
26
|
+
@repo_url = ''
|
27
|
+
if file_exists?
|
28
|
+
contents = File.open(@file_path, 'r:utf-8', &:read)
|
29
|
+
begin
|
30
|
+
instance_eval(contents)
|
31
|
+
rescue Exception => e
|
32
|
+
message = "Invalid Binaryfile file: #{e.message}"
|
33
|
+
raise DSLError.new(message, @file_path, e, contents)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
def file_exists?
|
39
|
+
@file_path.file?
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module Pod
|
2
|
+
class Lockfile
|
3
|
+
alias_method :spec_repo_old, :spec_repo
|
4
|
+
def spec_repo(pod_name)
|
5
|
+
lock_repo = spec_repo_old(pod_name)
|
6
|
+
if Binaryfile.instance.pod_names.include? pod_name
|
7
|
+
lock_repo = Binaryfile.instance.repo_url
|
8
|
+
end
|
9
|
+
return lock_repo
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'cocoapods-aries-binary/gem_version'
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'cocoapods-aries-binary/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,92 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cocoapods-aries-binary
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- majiabj01
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-06-18 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-aries-binary.
|
42
|
+
email:
|
43
|
+
- majiabj01@kanyun.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-aries-binary.gemspec
|
54
|
+
- lib/cocoapods-aries-binary.rb
|
55
|
+
- lib/cocoapods-aries-binary/command.rb
|
56
|
+
- lib/cocoapods-aries-binary/command/binary.rb
|
57
|
+
- lib/cocoapods-aries-binary/command/install.rb
|
58
|
+
- lib/cocoapods-aries-binary/command/package.rb
|
59
|
+
- lib/cocoapods-aries-binary/command/source.rb
|
60
|
+
- lib/cocoapods-aries-binary/command/source/source_spec_repo.rb
|
61
|
+
- lib/cocoapods-aries-binary/gem_version.rb
|
62
|
+
- lib/cocoapods-aries-binary/spec_repo/binary_file.rb
|
63
|
+
- lib/cocoapods-aries-binary/spec_repo/spec_repo.rb
|
64
|
+
- lib/cocoapods_plugin.rb
|
65
|
+
- spec/command/binary_spec.rb
|
66
|
+
- spec/spec_helper.rb
|
67
|
+
homepage: https://github.com/EXAMPLE/cocoapods-aries-binary
|
68
|
+
licenses:
|
69
|
+
- MIT
|
70
|
+
metadata: {}
|
71
|
+
post_install_message:
|
72
|
+
rdoc_options: []
|
73
|
+
require_paths:
|
74
|
+
- lib
|
75
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
80
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
85
|
+
requirements: []
|
86
|
+
rubygems_version: 3.5.10
|
87
|
+
signing_key:
|
88
|
+
specification_version: 4
|
89
|
+
summary: A longer description of cocoapods-aries-binary.
|
90
|
+
test_files:
|
91
|
+
- spec/command/binary_spec.rb
|
92
|
+
- spec/spec_helper.rb
|