fastlane-plugin-appicon 0.9.0 → 0.10.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: b4b82cd988af7cef9a984891a69708036a160597
|
4
|
+
data.tar.gz: 526865efa72ac309b5613317f4e6e25f020346b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d73209e211816df166ab322cea5d6e0befba6092d068ed0355d942f86ef4addb546d7b347ceb31b39477384bd228173ede8547964e42376f1724d8ea11ce5704
|
7
|
+
data.tar.gz: f40f6ed79dd008463cb087384f9c6e4a2b2ac9481e75cc8bf52e7eacdac4c309b044e6691219a9b95038a936435d1caa569d6bc0d4d3952187fbd80485b14dec
|
data/README.md
CHANGED
@@ -25,14 +25,18 @@ Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plu
|
|
25
25
|
Just specify the source image using the `appicon_image_file`. Optionally specify the devices using `appicon_devices` and the destination path using `appicon_path`.
|
26
26
|
|
27
27
|
```ruby
|
28
|
-
lane :
|
28
|
+
lane :test1 do
|
29
29
|
appicon(appicon_image_file: 'spec/fixtures/Themoji.png',
|
30
30
|
appicon_devices: [:ipad, :iphone, :ios_marketing])
|
31
31
|
end
|
32
32
|
|
33
|
-
# or
|
34
33
|
|
35
34
|
lane :test2 do
|
35
|
+
appicon(appicon_image_file: 'spec/fixtures/Themoji.png',
|
36
|
+
appicon_devices: [:ipad, :iphone, :ios_marketing, :watch, :watch_marketing])
|
37
|
+
end
|
38
|
+
|
39
|
+
lane :test3 do
|
36
40
|
# `appicon_image_file` defaults to "fastlane/metadata/app_icon.png"
|
37
41
|
appicon(
|
38
42
|
appicon_devices: [:iphone],
|
@@ -13,6 +13,13 @@ module Fastlane
|
|
13
13
|
},
|
14
14
|
:ios_marketing => {
|
15
15
|
'1x' => ['1024x1024']
|
16
|
+
},
|
17
|
+
:watch => {
|
18
|
+
'2x' => [['24x24', 'notificationCenter', '38mm'], ['27.5x27.5', 'notificationCenter', '42mm'], ['29x29', 'companionSettings'], ['40x40', 'appLauncher', '38mm'], ['86x86', 'quickLook', '38mm'], ['98x98', 'quickLook', '42mm']],
|
19
|
+
'3x' => [['29x29', 'companionSettings']]
|
20
|
+
},
|
21
|
+
:watch_marketing => {
|
22
|
+
'1x' => ['1024x1024']
|
16
23
|
}
|
17
24
|
}
|
18
25
|
end
|
@@ -50,12 +57,17 @@ module Fastlane
|
|
50
57
|
|
51
58
|
image.write basepath + filename
|
52
59
|
|
53
|
-
|
60
|
+
info = {
|
54
61
|
'size' => icon['size'],
|
55
62
|
'idiom' => icon['device'],
|
56
63
|
'filename' => filename,
|
57
64
|
'scale' => icon['scale']
|
58
65
|
}
|
66
|
+
|
67
|
+
info['role'] = icon['role'] unless icon['role'].nil?
|
68
|
+
info['subtype'] = icon['subtype'] unless icon['subtype'].nil?
|
69
|
+
|
70
|
+
images << info
|
59
71
|
end
|
60
72
|
|
61
73
|
contents = {
|
@@ -12,6 +12,10 @@ module Fastlane
|
|
12
12
|
devices.each do |device|
|
13
13
|
needed_icons[device].each do |scale, sizes|
|
14
14
|
sizes.each do |size|
|
15
|
+
if size.kind_of?(Array)
|
16
|
+
size, role, subtype = size
|
17
|
+
end
|
18
|
+
|
15
19
|
if is_android
|
16
20
|
width, height = size.split('x').map { |v| v.to_f }
|
17
21
|
else
|
@@ -23,8 +27,11 @@ module Fastlane
|
|
23
27
|
'height' => height,
|
24
28
|
'size' => size,
|
25
29
|
'device' => device.to_s.gsub('_', '-'),
|
26
|
-
'scale' => scale
|
30
|
+
'scale' => scale,
|
31
|
+
'role' => role,
|
32
|
+
'subtype' => subtype
|
27
33
|
}
|
34
|
+
|
28
35
|
end
|
29
36
|
end
|
30
37
|
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.10.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-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mini_magick
|