cocoapods-packager-ext 0.0.2 → 0.0.7
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4bad259dc0746ae906431514b2126827e20dc5200189579fa12915fca3bf108
|
4
|
+
data.tar.gz: a4561a6da30021012b4041fdb7db3af01b37851c052d734ffc0d9916ef895508
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9df54ee2110513b071651c90fb158e569cd8e844f7372ebd9d367e9fcc9eeb72926750cd7697e6f5db2e5366021e6dced8bd941056c27f808b082704b07cc8ea
|
7
|
+
data.tar.gz: 9dd8d0adef67e41ec63e7cbcc080e829d2f9ee3592f7a84e94d55eb0d6e21bb90aa8f07e0ccb21f7c198a01b07c05c107192e3adb22a652f330929eacfbe394d
|
@@ -23,6 +23,9 @@ module Pod
|
|
23
23
|
def options
|
24
24
|
o = options_t
|
25
25
|
o.push(['--all-deps','add all-depends'])
|
26
|
+
o.push(['--archs','select archs'])
|
27
|
+
o.push(['--black-deps','select exclude deps'])
|
28
|
+
|
26
29
|
end
|
27
30
|
|
28
31
|
end
|
@@ -30,6 +33,8 @@ module Pod
|
|
30
33
|
alias initialize_t initialize
|
31
34
|
def initialize(argv)
|
32
35
|
@all_deps = argv.flag?('all-deps',false)
|
36
|
+
@select_archs = argv.option('archs','').split(',')
|
37
|
+
@black_deps = argv.option('black-deps','').split(',')
|
33
38
|
initialize_t argv
|
34
39
|
end
|
35
40
|
|
@@ -56,7 +61,9 @@ module Pod
|
|
56
61
|
@config,
|
57
62
|
@bundle_identifier,
|
58
63
|
@exclude_deps,
|
59
|
-
@all_deps
|
64
|
+
@all_deps,
|
65
|
+
@black_deps,
|
66
|
+
@select_archs
|
60
67
|
)
|
61
68
|
|
62
69
|
builder.build(platform, @library)
|
@@ -6,6 +6,15 @@ module Pod
|
|
6
6
|
def deal_target(path)
|
7
7
|
for item in @target_type_ext
|
8
8
|
if File.extname(path) == item
|
9
|
+
isBlack = false
|
10
|
+
for black in @black_deps
|
11
|
+
if File.basename(path).include? black
|
12
|
+
isBlack = true
|
13
|
+
end
|
14
|
+
end
|
15
|
+
if isBlack
|
16
|
+
return
|
17
|
+
end
|
9
18
|
if File.directory? path
|
10
19
|
FileUtils.copy_entry(path,"#{@target_dir_ext_ext}/#{File.basename(path)}", false,false, true)
|
11
20
|
else
|
@@ -42,6 +51,25 @@ module Pod
|
|
42
51
|
build_library_t platform,defines,output
|
43
52
|
end
|
44
53
|
|
54
|
+
alias ios_build_options_t ios_build_options
|
55
|
+
def ios_build_options
|
56
|
+
if @select_archs.size != 0
|
57
|
+
return "ARCHS=\'#{@select_archs.join(' ')}\' OTHER_CFLAGS=\'-fembed-bitcode -Qunused-arguments\'"
|
58
|
+
else
|
59
|
+
return "ARCHS=\'x86_64 i386 arm64 armv7\' OTHER_CFLAGS=\'-fembed-bitcode -Qunused-arguments\'"
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
alias build_sim_libraries_t build_sim_libraries
|
64
|
+
def build_sim_libraries(platform, defines)
|
65
|
+
if @select_archs.size != 0 && !@select_archs.include?('i386') && !@select_archs.include?('x86_64')
|
66
|
+
return
|
67
|
+
else
|
68
|
+
UI.puts 'start build sim'
|
69
|
+
build_sim_libraries_t platform,defines
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
45
73
|
alias build_static_lib_for_ios_t build_static_lib_for_ios
|
46
74
|
def build_static_lib_for_ios(static_libs, _defines, output)
|
47
75
|
if @all_deps
|
@@ -55,8 +83,10 @@ module Pod
|
|
55
83
|
end
|
56
84
|
|
57
85
|
alias initialize_t initialize
|
58
|
-
def initialize(source_dir, static_sandbox_root, dynamic_sandbox_root, public_headers_root, spec, embedded, mangle, dynamic, config, bundle_identifier, exclude_deps, all_deps)
|
86
|
+
def initialize(source_dir, static_sandbox_root, dynamic_sandbox_root, public_headers_root, spec, embedded, mangle, dynamic, config, bundle_identifier, exclude_deps, all_deps,black_deps,select_archs)
|
59
87
|
@all_deps = all_deps
|
88
|
+
@black_deps = black_deps
|
89
|
+
@select_archs = select_archs
|
60
90
|
@target_type_ext = ['.a','.bundle']
|
61
91
|
@target_dir_ext_ext = "#{static_sandbox_root}/build"
|
62
92
|
@black_list_ext = ["#{static_sandbox_root}/build","#{static_sandbox_root}/build-sim"]
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kyle.zhou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-19 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
|