cocoapods-deintegrate 1.0.2 → 1.0.3
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 +6 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 20ce8d2ea9deb7024f0b04c02f784317cc1f0aaf
|
4
|
+
data.tar.gz: cac8053d65182b01e0225af9b8541269326ab8de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42d68c1659f854366abd419de31c330cd1167efe80505ffada675407e25bcc2ea4177a31be201918b169aacea5936a9691af6327a22dc7421d3f1dfa8311352e
|
7
|
+
data.tar.gz: eb331307179f09d91a06e74eb3ba8a18cc7848fb99854a818d0efede34bfabde474e3cff1cfa7b3b4a29e962d8056b13a429a9e14f0ec72220a5c94f022356cc
|
@@ -2,6 +2,9 @@ module Pod
|
|
2
2
|
class Deintegrator
|
3
3
|
include Config::Mixin
|
4
4
|
|
5
|
+
FRAMEWORK_NAMES = /^(libPods.*\.a)|(Pods.*\.framework)$/i
|
6
|
+
XCCONFIG_NAMES = /^Pods.*\.xcconfig$/i
|
7
|
+
|
5
8
|
def deintegrate_project(project)
|
6
9
|
UI.section("Deintegrating #{UI.path project.path}") do
|
7
10
|
project.native_targets.each do |target|
|
@@ -40,7 +43,7 @@ module Pod
|
|
40
43
|
frameworks_build_phase = target.frameworks_build_phase
|
41
44
|
|
42
45
|
pods_build_files = frameworks_build_phase.files.select do |build_file|
|
43
|
-
build_file.display_name =~
|
46
|
+
build_file.display_name =~ FRAMEWORK_NAMES
|
44
47
|
end
|
45
48
|
|
46
49
|
unless pods_build_files.empty?
|
@@ -96,7 +99,7 @@ module Pod
|
|
96
99
|
def deintegrate_configuration_file_references(target)
|
97
100
|
config_files = target.build_configurations.map do |config|
|
98
101
|
config_file = config.base_configuration_reference
|
99
|
-
config_file if config_file && config_file.name =~
|
102
|
+
config_file if config_file && config_file.name =~ XCCONFIG_NAMES
|
100
103
|
end.compact
|
101
104
|
unless config_files.empty?
|
102
105
|
UI.section('Deleting configuration file references') do
|
@@ -117,7 +120,7 @@ module Pod
|
|
117
120
|
|
118
121
|
pod_files = groups.flat_map do |group|
|
119
122
|
group.files.select do |obj|
|
120
|
-
obj.name =~
|
123
|
+
obj.name =~ XCCONFIG_NAMES ||
|
121
124
|
obj.path =~ /^(libPods.*\.a)|(Pods_.*\.framework)$/i
|
122
125
|
end
|
123
126
|
end
|
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.3
|
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: 2019-02-21 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.
|
47
|
+
rubygems_version: 2.6.14
|
48
48
|
signing_key:
|
49
49
|
specification_version: 4
|
50
50
|
summary: A CocoaPods plugin to remove and de-integrate CocoaPods from your project.
|