cocoapods-packager-ext 0.0.5 → 0.0.10
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 +4 -4
- data/cocoapods-packager-ext.gemspec +1 -0
- data/lib/cocoapods-packager-ext/command.rb +2 -1
- data/lib/cocoapods-packager-ext/command/install_ext.rb +71 -0
- data/lib/cocoapods-packager-ext/command/{ext.rb → package_ext.rb} +1 -1
- data/lib/cocoapods-packager-ext/ext/builder.rb +11 -1
- data/lib/cocoapods-packager-ext/gem_version.rb +1 -1
- metadata +18 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b528b82748243fe242fdd5de031d79a94f501900c45c31fc27a055600d33db5
|
4
|
+
data.tar.gz: 06e6ce8b5a4563a51a470cce8164a5c03845996b39b5fc624875afdb1942770d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9dc5b6c3327b3ad93d2424f82f7dd25e26de28f34dfc6a374fa0608153f54c7a7c30a2c7f210aa784ae9f2472c6c5a5ad9122cbe3f7b29a655681bd7933c57d
|
7
|
+
data.tar.gz: 3344d225c8bb06e167c79a312a65f9e9a95f8a35abc8e735921e6dfb22325f312c2243142de30e3235ea0fd956a102170e86319c348b36934b583383e748b511
|
@@ -1 +1,2 @@
|
|
1
|
-
require 'cocoapods-packager-ext/command/
|
1
|
+
require 'cocoapods-packager-ext/command/install_ext'
|
2
|
+
require 'cocoapods-packager-ext/command/package_ext'
|
@@ -0,0 +1,71 @@
|
|
1
|
+
module Pod
|
2
|
+
class Installer
|
3
|
+
attr_accessor :dry_deps
|
4
|
+
alias install_t! install!
|
5
|
+
def install!()
|
6
|
+
if @dry_deps
|
7
|
+
prepare
|
8
|
+
resolve_dependencies
|
9
|
+
else
|
10
|
+
install_t!
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
|
16
|
+
class Command
|
17
|
+
|
18
|
+
# This is an example of a cocoapods plugin adding a top-level subcommand
|
19
|
+
# to the 'pod' command.
|
20
|
+
#
|
21
|
+
# You can also create subcommands of existing or new commands. Say you
|
22
|
+
# wanted to add a subcommand to `list` to show newly deprecated pods,
|
23
|
+
# (e.g. `pod list deprecated`), there are a few things that would need
|
24
|
+
# to change.
|
25
|
+
#
|
26
|
+
# - move this file to `lib/pod/command/list/deprecated.rb` and update
|
27
|
+
# the class to exist in the the Pod::Command::List namespace
|
28
|
+
# - change this class to extend from `List` instead of `Command`. This
|
29
|
+
# tells the plugin system that it is a subcommand of `list`.
|
30
|
+
# - edit `lib/cocoapods_plugins.rb` to require this file
|
31
|
+
#
|
32
|
+
# @todo Create a PR to add your plugin to CocoaPods/cocoapods.org
|
33
|
+
# in the `plugins.json` file, once your plugin is released.
|
34
|
+
#
|
35
|
+
class Install
|
36
|
+
class << self
|
37
|
+
alias options_t options
|
38
|
+
def options
|
39
|
+
o = options_t
|
40
|
+
o.push(['--dry-deps','only test depend'])
|
41
|
+
o.concat(super)
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
def initialize(argv)
|
47
|
+
super
|
48
|
+
@deployment = argv.flag?('deployment', false)
|
49
|
+
@clean_install = argv.flag?('clean-install', false)
|
50
|
+
@dry_deps = argv.flag?('dry-deps',false)
|
51
|
+
end
|
52
|
+
|
53
|
+
alias run_t run
|
54
|
+
def run
|
55
|
+
if @dry_deps
|
56
|
+
verify_podfile_exists!
|
57
|
+
installer = installer_for_config
|
58
|
+
installer.repo_update = repo_update?(:default => false)
|
59
|
+
installer.update = false
|
60
|
+
installer.deployment = @deployment
|
61
|
+
installer.clean_install = @clean_install
|
62
|
+
installer.dry_deps = @dry_deps
|
63
|
+
installer.install!
|
64
|
+
else
|
65
|
+
run_t
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -56,7 +56,7 @@ module Pod
|
|
56
56
|
if @select_archs.size != 0
|
57
57
|
return "ARCHS=\'#{@select_archs.join(' ')}\' OTHER_CFLAGS=\'-fembed-bitcode -Qunused-arguments\'"
|
58
58
|
else
|
59
|
-
return
|
59
|
+
return "ARCHS=\'x86_64 i386 arm64 armv7\' OTHER_CFLAGS=\'-fembed-bitcode -Qunused-arguments\'"
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
@@ -65,6 +65,7 @@ module Pod
|
|
65
65
|
if @select_archs.size != 0 && !@select_archs.include?('i386') && !@select_archs.include?('x86_64')
|
66
66
|
return
|
67
67
|
else
|
68
|
+
UI.puts 'start build sim'
|
68
69
|
build_sim_libraries_t platform,defines
|
69
70
|
end
|
70
71
|
end
|
@@ -74,6 +75,15 @@ module Pod
|
|
74
75
|
if @all_deps
|
75
76
|
return if static_libs.count == 0
|
76
77
|
sim_libs = static_libs_in_sandbox('build-sim')
|
78
|
+
for item in @black_deps
|
79
|
+
static_libs.delete_if do |obj|
|
80
|
+
obj.include? item
|
81
|
+
end
|
82
|
+
sim_libs.delete_if do |obj|
|
83
|
+
obj.include? item
|
84
|
+
end
|
85
|
+
end
|
86
|
+
UI.puts "links statics:#{static_libs.join(' ')}, sim_libs:#{sim_libs.join(' ')}"
|
77
87
|
`xcrun -r libtool -no_warning_for_no_symbols -static -o #{output} #{static_libs.join(' ')} #{sim_libs.join(' ')}`
|
78
88
|
else
|
79
89
|
build_static_lib_for_ios static_libs,_defines,output
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-packager-ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kyle.zhou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: cocoapods-packager
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
description: A short description of cocoapods-packager-ext.
|
42
56
|
email:
|
43
57
|
- kyle.zhou@qq.com
|
@@ -53,7 +67,8 @@ files:
|
|
53
67
|
- cocoapods-packager-ext.gemspec
|
54
68
|
- lib/cocoapods-packager-ext.rb
|
55
69
|
- lib/cocoapods-packager-ext/command.rb
|
56
|
-
- lib/cocoapods-packager-ext/command/
|
70
|
+
- lib/cocoapods-packager-ext/command/install_ext.rb
|
71
|
+
- lib/cocoapods-packager-ext/command/package_ext.rb
|
57
72
|
- lib/cocoapods-packager-ext/ext/builder.rb
|
58
73
|
- lib/cocoapods-packager-ext/gem_version.rb
|
59
74
|
- lib/cocoapods_plugin.rb
|