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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3402b04c68cdc618eb46e9edcc35a0ceb9c4439
|
4
|
+
data.tar.gz: 5295d34bbfaf3c5028544894ed95a25e76963af9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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
|
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.
|
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-
|
11
|
+
date: 2017-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mini_magick
|