fastlane-plugin-appicon 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c20ba209d999b4409c057d83d568290467c9eb7
4
- data.tar.gz: 40456ca83c300573379ff2641bc22c23a9b7a33b
3
+ metadata.gz: a3402b04c68cdc618eb46e9edcc35a0ceb9c4439
4
+ data.tar.gz: 5295d34bbfaf3c5028544894ed95a25e76963af9
5
5
  SHA512:
6
- metadata.gz: 32a524b7f696c78bf7f3f5dd1add57f2e5fcb7649e47151a0b38f3f65a0a850bc13b8fe6ac3ee071e614006293966bd16f28b1eab7380883b28af486deb29f5a
7
- data.tar.gz: b79dc62bb072e8e7a920659f9c79c3dd379c77c0cd4b472e6823f304f1da96df9ab75ce51a956bc0fb731b2992bac725088a96e344beab43c36e19d3484064b7
6
+ metadata.gz: 04ca833bbf2073896bdccee29b0c8c77e0b7cf591a42a140dbb775fbd091a62566151207f951ae1852382db426a17453e087c49ead1d66894e7c466d192eac2c
7
+ data.tar.gz: 0e780465395ca8d099e35f737dfb432241076106ed017cc184186d86fbc330cb4a76a967cb74e6a63a5b960d12143767f7c3e9bc764d5c5734c60c47eab92dba
data/README.md CHANGED
@@ -43,9 +43,11 @@ end
43
43
  # or
44
44
 
45
45
  lane :android do
46
- android_appicon(appicon_image_file: 'spec/fixtures/Themoji.png',
46
+ android_appicon(
47
+ appicon_image_file: 'spec/fixtures/Themoji.png',
47
48
  appicon_devices: [:phone, :tablet],
48
- appicon_path:'app/res/mipmap')
49
+ appicon_path:'app/res/mipmap'
50
+ )
49
51
  end
50
52
  ```
51
53
 
@@ -43,6 +43,11 @@ module Fastlane
43
43
 
44
44
  # downsize icon
45
45
  image.resize "#{width}x#{height}"
46
+
47
+ # Don't write change/created times into the PNG properties
48
+ # so unchanged files don't have different hashes.
49
+ image.define("png:exclude-chunks=date,time")
50
+
46
51
  image.write basepath + filename
47
52
 
48
53
  images << {
@@ -6,6 +6,7 @@ module Fastlane
6
6
  UI.user_error!("Minimum height of input image should be #{size}") if image.height < size
7
7
  UI.user_error!("Input image should be square") if image.width != image.height
8
8
  end
9
+
9
10
  def self.get_needed_icons(devices, needed_icons, is_android = false)
10
11
  icons = []
11
12
  devices.each do |device|
@@ -21,7 +22,7 @@ module Fastlane
21
22
  'width' => width,
22
23
  'height' => height,
23
24
  'size' => size,
24
- 'device' => device,
25
+ 'device' => device.to_s.gsub('_', '-'),
25
26
  'scale' => scale
26
27
  }
27
28
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Appicon
3
- VERSION = "0.8.0"
3
+ VERSION = "0.9.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-appicon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boris Bügling
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-17 00:00:00.000000000 Z
11
+ date: 2017-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mini_magick