cocoapods-deintegrate 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/cocoapods/deintegrate/gem_version.rb +1 -1
- data/lib/cocoapods/deintegrator.rb +16 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: '097f7501f9d413be9da30b27513287cec2afeae63d6545515a57052b0785a3d7'
|
4
|
+
data.tar.gz: ba2dbebd9e6af00c6462f573f69bb9f96fcadf03a187d6737af8a55a79a371f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6765ce96359ed1e95755f6c97bfbb7cf3c5740621d5a0a009e190f03ffead53ce711a5b866da3c55dd6d6ac257cc853df1e68b961a39952bdb8e27f0192f919
|
7
|
+
data.tar.gz: fbc3fbb6f61527aa07a16766a39280d2085e1f9ec84033a5fd0ebd40e563b3d4591f602adc0607255f682be790d3499cca0a731e35ef8c4f07210bd89d7cc74e
|
@@ -22,6 +22,7 @@ module Pod
|
|
22
22
|
deintegrate_shell_script_phase(target, 'Copy Pods Resources')
|
23
23
|
deintegrate_shell_script_phase(target, 'Check Pods Manifest.lock')
|
24
24
|
deintegrate_shell_script_phase(target, 'Embed Pods Frameworks')
|
25
|
+
deintegrate_user_shell_script_phases(target)
|
25
26
|
deintegrate_pods_libraries(target)
|
26
27
|
deintegrate_configuration_file_references(target)
|
27
28
|
end
|
@@ -52,6 +53,21 @@ module Pod
|
|
52
53
|
end
|
53
54
|
end
|
54
55
|
|
56
|
+
def deintegrate_user_shell_script_phases(target)
|
57
|
+
user_script_phases = target.shell_script_build_phases.select do |phase|
|
58
|
+
next unless phase.name
|
59
|
+
phase.name.start_with?('[CP-User] ')
|
60
|
+
end
|
61
|
+
|
62
|
+
unless user_script_phases.empty?
|
63
|
+
user_script_phases.each do |phase|
|
64
|
+
target.build_phases.delete(phase)
|
65
|
+
end
|
66
|
+
|
67
|
+
UI.puts("Deleted #{user_script_phases.count} user build phases.")
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
55
71
|
def deintegrate_shell_script_phase(target, phase_name)
|
56
72
|
phases = target.shell_script_build_phases.select do |phase|
|
57
73
|
phase.name && phase.name =~ /#{Regexp.escape(phase_name)}\z$/
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-deintegrate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Fuller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -44,7 +44,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
44
44
|
version: '0'
|
45
45
|
requirements: []
|
46
46
|
rubyforge_project:
|
47
|
-
rubygems_version: 2.4
|
47
|
+
rubygems_version: 2.7.4
|
48
48
|
signing_key:
|
49
49
|
specification_version: 4
|
50
50
|
summary: A CocoaPods plugin to remove and de-integrate CocoaPods from your project.
|