xcodeproj_utils 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xcodeproj_utils/version.rb +1 -1
- data/lib/xcodeproj_utils.rb +15 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 321b721013e4dbb38f25d80f2ee42c14162bd481
|
4
|
+
data.tar.gz: 564bd2bd28da5c4d7abd44f723454794e13f9df7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbe36e5917e759e3582a66137c8a5b7860a963180b686c5aa35070cbce13c82468058a51f72d961912fba2b5958fbaa76a1c0ec023de5915726fa10991740761
|
7
|
+
data.tar.gz: 67378381cf1f99add41f245c51335eafb09a997e4850e37c77c3748666f41489ad5a4bc829bb38dc53f6c5a756864e3b1aba875f365c5ad30bb19a5aa0c00b20
|
data/lib/xcodeproj_utils.rb
CHANGED
@@ -68,15 +68,28 @@ module XcodeprojUtils
|
|
68
68
|
for file in @target.source_build_phase.files_references
|
69
69
|
sources += File.read file.real_path
|
70
70
|
end
|
71
|
+
for file in @proj.files
|
72
|
+
if file.path.end_with? ".h"
|
73
|
+
sources += File.read file.real_path
|
74
|
+
end
|
75
|
+
end
|
76
|
+
for file in @target.resources_build_phase.files_references
|
77
|
+
type = file.last_known_file_type
|
78
|
+
if type and type == 'file.xib'
|
79
|
+
sources += File.read file.real_path
|
80
|
+
next
|
81
|
+
end
|
82
|
+
end
|
71
83
|
|
72
84
|
images = []
|
73
85
|
for file in @target.resources_build_phase.files_references
|
74
|
-
|
86
|
+
type = file.last_known_file_type
|
87
|
+
if not type or not type.match /^image/
|
75
88
|
next
|
76
89
|
end
|
77
90
|
|
78
91
|
name = File.basename(file.display_name, '.*')
|
79
|
-
name = name.split('@').first
|
92
|
+
name = name.split('@').first.strip
|
80
93
|
|
81
94
|
if sources.scan(name).count == 0
|
82
95
|
images << file
|