fastlane-plugin-appicon 0.9.0 → 0.10.0

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: a3402b04c68cdc618eb46e9edcc35a0ceb9c4439
4
- data.tar.gz: 5295d34bbfaf3c5028544894ed95a25e76963af9
3
+ metadata.gz: b4b82cd988af7cef9a984891a69708036a160597
4
+ data.tar.gz: 526865efa72ac309b5613317f4e6e25f020346b9
5
5
  SHA512:
6
- metadata.gz: 04ca833bbf2073896bdccee29b0c8c77e0b7cf591a42a140dbb775fbd091a62566151207f951ae1852382db426a17453e087c49ead1d66894e7c466d192eac2c
7
- data.tar.gz: 0e780465395ca8d099e35f737dfb432241076106ed017cc184186d86fbc330cb4a76a967cb74e6a63a5b960d12143767f7c3e9bc764d5c5734c60c47eab92dba
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 :test do
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
- images << {
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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Appicon
3
- VERSION = "0.9.0"
3
+ VERSION = "0.10.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.9.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-21 00:00:00.000000000 Z
11
+ date: 2017-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mini_magick