fastlane-plugin-icon_versioning 1.1.0 → 1.1.1
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b3342d869116d96a3f67589c5af009f34ce1793
|
4
|
+
data.tar.gz: 13af54a1b2cc783a587e6d1bd08fcd8ee565803c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9efbb55e5b50519cab73b8609e69b789ffbdb78975c47a0630d549e70dc999dd040a97c04c688fcb297c60daa9f86678397a7d960ddb8b060c21b9d965f52168
|
7
|
+
data.tar.gz: 98355d4430391cb7a43cb72e97dbdc78249acf137cf9bc038cc02e2afd1b7431669df2029b268aadeb8136e754af078458c3d5f3c70bece2b09780b00220cd6d
|
@@ -48,12 +48,16 @@ module Fastlane
|
|
48
48
|
Dir.glob("#{self.appiconset_path}/*.png").each do |original_icon_path|
|
49
49
|
versioned_icon_path = self.class.get_versioned_path(original_icon_path)
|
50
50
|
|
51
|
+
text_sha = Digest::SHA2.hexdigest(self.text)
|
52
|
+
|
51
53
|
unless cache[original_icon_path].nil?
|
52
54
|
if File.exist?(versioned_icon_path)
|
53
55
|
versioned_icon_sha = Digest::SHA2.file(versioned_icon_path).hexdigest
|
54
|
-
cached_icon_sha = cache[original_icon_path]
|
55
56
|
|
56
|
-
|
57
|
+
cached_text_sha = cache[original_icon_path][:text]
|
58
|
+
cached_icon_sha = cache[original_icon_path][:icon]
|
59
|
+
|
60
|
+
next if text_sha == cached_text_sha && versioned_icon_sha == cached_icon_sha
|
57
61
|
end
|
58
62
|
end
|
59
63
|
|
@@ -63,7 +67,10 @@ module Fastlane
|
|
63
67
|
version_icon(original_icon_path, versioned_icon_path)
|
64
68
|
end
|
65
69
|
|
66
|
-
cache[original_icon_path] =
|
70
|
+
cache[original_icon_path] = {}
|
71
|
+
|
72
|
+
cache[original_icon_path][:text] = text_sha
|
73
|
+
cache[original_icon_path][:icon] = Digest::SHA2.file(versioned_icon_path).hexdigest
|
67
74
|
end
|
68
75
|
|
69
76
|
File.open(cache_file_path, 'w') { |file| file.write(cache.to_yaml) }
|