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: 31cce154dfee7397c16e0e1295b5c1770b3425e4
4
- data.tar.gz: e30ab7f0478bf482830e97fe6aab54d2526b95e9
3
+ metadata.gz: 9b3342d869116d96a3f67589c5af009f34ce1793
4
+ data.tar.gz: 13af54a1b2cc783a587e6d1bd08fcd8ee565803c
5
5
  SHA512:
6
- metadata.gz: 65ea28e3206d72be7d9d25a58dabb5f40971345e1df0bed1e5649052a471dafb38d92fa5bb769b763854b9d084b4ff1bfa474fb80ce862ed55d60422bd7a529f
7
- data.tar.gz: af218c9e33c31c1abb032698afbeb568c614c0c16fe12c9a288ca648fd90e9f5d84754fe32afe31b5aa3b1edeb030726f2149f6e2f0d48884afe984cad8b66b2
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
- next if versioned_icon_sha == cached_icon_sha
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] = Digest::SHA2.file(versioned_icon_path).hexdigest
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) }
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module IconVersioning
3
- VERSION = '1.1.0'
3
+ VERSION = '1.1.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-icon_versioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Iulian Onofrei