cocoapods-panglePackager 1.5.0.1 → 1.5.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3058fefc5f3ba9e085856bd8d59d00f78c8f45ece6004bc002f8026f3066366d
|
4
|
+
data.tar.gz: 1a8a9f2cf7caf23a65833db25bccc9dd1353f2819d9db0c378985f1da8fe8062
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d6d8008db76c09f8b20215c1b42c18ea3137cb9487adf210348666619243969bf3604456331f87e6e60e40baa7bc2b27c8fdc23d2b96a5c234a2e75d8319347
|
7
|
+
data.tar.gz: cc937b8a4cb9b1adceefd370c37b003ddd0b6d292e1130855f331c05edd50f6143d9959a230b8908e361bfd0f951c9002e1c647ce92ebc50fbca29310fcf9b8b
|
@@ -2,7 +2,7 @@ require 'fileutils'
|
|
2
2
|
|
3
3
|
module Pod
|
4
4
|
class PangleBuilder
|
5
|
-
def initialize(source_dir, static_sandbox_root, dynamic_sandbox_root, public_headers_root, spec, embedded, mangle, dynamic, config, bundle_identifier, exclude_deps, toolchain, logpath)
|
5
|
+
def initialize(source_dir, static_sandbox_root, dynamic_sandbox_root, public_headers_root, spec, embedded, mangle, dynamic, config, bundle_identifier, exclude_deps, toolchain, logpath, symbols)
|
6
6
|
@source_dir = source_dir
|
7
7
|
@static_sandbox_root = static_sandbox_root
|
8
8
|
@dynamic_sandbox_root = dynamic_sandbox_root
|
@@ -26,6 +26,8 @@ module Pod
|
|
26
26
|
UI.puts("BUILD_CONFIG: logpath = #{@logpath};")
|
27
27
|
UI.puts(FileUtils.rm_rf(@logpath))
|
28
28
|
UI.puts(FileUtils.mkdir_p(@logpath))
|
29
|
+
|
30
|
+
@symbols = symbols
|
29
31
|
end
|
30
32
|
|
31
33
|
def build(platform, library)
|
@@ -12,7 +12,7 @@ module Pod
|
|
12
12
|
Sandbox.new(static_sandbox_root)
|
13
13
|
end
|
14
14
|
|
15
|
-
def install_pod(platform_name, sandbox)
|
15
|
+
def install_pod(platform_name, sandbox, symbols)
|
16
16
|
podfile = podfile_from_spec(
|
17
17
|
File.basename(@path),
|
18
18
|
@spec.name,
|
@@ -29,7 +29,11 @@ module Pod
|
|
29
29
|
static_installer.pods_project.targets.each do |target|
|
30
30
|
target.build_configurations.each do |config|
|
31
31
|
config.build_settings['CLANG_MODULES_AUTOLINK'] = 'NO'
|
32
|
-
|
32
|
+
if symbols then
|
33
|
+
config.build_settings['GCC_GENERATE_DEBUGGING_SYMBOLS'] = 'YES'
|
34
|
+
else
|
35
|
+
config.build_settings['GCC_GENERATE_DEBUGGING_SYMBOLS'] = 'NO'
|
36
|
+
end
|
33
37
|
end
|
34
38
|
end
|
35
39
|
static_installer.pods_project.save
|
@@ -21,8 +21,9 @@ module Pod
|
|
21
21
|
['--subspecs', 'Only include the given subspecs'],
|
22
22
|
['--spec-sources=private,https://github.com/CocoaPods/Specs.git', 'The sources to pull dependant ' \
|
23
23
|
'pods from (defaults to https://github.com/CocoaPods/Specs.git)'],
|
24
|
-
['--toolchain', 'xcodebuild toolchain (e.g. --toolchain=
|
25
|
-
['--logpath', 'Logs path (e.g. --logpath=/Users/username/Desktop/pangle-package/Logs)']
|
24
|
+
['--toolchain', 'xcodebuild toolchain (e.g. --toolchain=Byteguard_Bitcode)'],
|
25
|
+
['--logpath', 'Logs path (e.g. --logpath=/Users/username/Desktop/pangle-package/Logs)'],
|
26
|
+
['--symbols', 'Fanqie customization, GCC_GENERATE_DEBUGGING_SYMBOLS=YES']
|
26
27
|
]
|
27
28
|
end
|
28
29
|
|
@@ -48,6 +49,7 @@ module Pod
|
|
48
49
|
@spec = spec_with_name(@name) unless @spec
|
49
50
|
@toolchain = argv.option('toolchain', '')
|
50
51
|
@logpath = argv.option('logpath', "#{Dir.home}/pangle-package/Logs")
|
52
|
+
@symbols = argv.flag?('symbols')
|
51
53
|
super
|
52
54
|
end
|
53
55
|
|
@@ -80,7 +82,7 @@ module Pod
|
|
80
82
|
config.sandbox_root = 'Pods'
|
81
83
|
|
82
84
|
static_sandbox = build_static_sandbox(@dynamic)
|
83
|
-
static_installer = install_pod(platform.name, static_sandbox)
|
85
|
+
static_installer = install_pod(platform.name, static_sandbox, @symbols)
|
84
86
|
|
85
87
|
if @dynamic
|
86
88
|
dynamic_sandbox = build_dynamic_sandbox(static_sandbox, static_installer)
|
@@ -156,7 +158,8 @@ module Pod
|
|
156
158
|
@bundle_identifier,
|
157
159
|
@exclude_deps,
|
158
160
|
@toolchain,
|
159
|
-
@logpath
|
161
|
+
@logpath,
|
162
|
+
@symbols
|
160
163
|
)
|
161
164
|
|
162
165
|
builder.build(platform, @library)
|
data/spec/pod/utils_spec.rb
CHANGED
@@ -14,7 +14,7 @@ module Pod
|
|
14
14
|
}
|
15
15
|
|
16
16
|
command = Command.parse(%w{ pangle-package spec/fixtures/KFData.podspec --spec-sources=foo,bar})
|
17
|
-
command.send(:install_pod, :osx, nil)
|
17
|
+
command.send(:install_pod, :osx, nil, false)
|
18
18
|
|
19
19
|
end
|
20
20
|
|
@@ -26,7 +26,7 @@ module Pod
|
|
26
26
|
}
|
27
27
|
|
28
28
|
command = Command.parse(%w{ pangle-package spec/fixtures/KFData.podspec })
|
29
|
-
command.send(:install_pod, :osx, nil)
|
29
|
+
command.send(:install_pod, :osx, nil, false)
|
30
30
|
end
|
31
31
|
|
32
32
|
it "creates seperate static and dynamic target if dynamic is passed" do
|
@@ -41,7 +41,7 @@ module Pod
|
|
41
41
|
command.config.sandbox_root = 'Pods'
|
42
42
|
|
43
43
|
static_sandbox = command.send(:build_static_sandbox, true)
|
44
|
-
static_installer = command.send(:install_pod, :ios, static_sandbox)
|
44
|
+
static_installer = command.send(:install_pod, :ios, static_sandbox, false)
|
45
45
|
|
46
46
|
dynamic_sandbox = command.send(:build_dynamic_sandbox, static_sandbox, static_installer)
|
47
47
|
command.send(:install_dynamic_pod, dynamic_sandbox, static_sandbox, static_installer)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-panglePackager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.0.
|
4
|
+
version: 1.5.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- houcong
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|