fastlane-plugin-appicon 0.2.0 → 0.3.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: aa5dea3b424a09966b8bcc7ba5691c1582f5f19d
4
- data.tar.gz: c2efb4d94f62196c1d0480981f7520ff2b827314
3
+ metadata.gz: 24a0792a488d2de605deff1c9696637c1e21485d
4
+ data.tar.gz: 2e6204b9efd7a591948a4e52a887f3e29059b8db
5
5
  SHA512:
6
- metadata.gz: de13af6a69279ff154a1dbd48f0c4bde8ebea07f238d3d78dc100db9dc9cb07bd035311df4e2a197d78829b8713d93d43f0b8a12d008064761a497f6652633c5
7
- data.tar.gz: 48c00d41b210e2ba9c7e3c4f31aabfa0c622edcbd0c383d7e2fc527c6af4edb642d0162560fa82362c8947d3e0c51c74dc285aa8e697ed584266f83e0f48ffa6
6
+ metadata.gz: 3bedaf6d41c10498e9a920b6241a71ea2f446b8e832e741392789daa367b4369fcea3268773b2468099bb78c32fb91f75e8292725345ec840f917fb8d9885096
7
+ data.tar.gz: 7c32da3f5e58402eff4d543e1f7045a5b2c491addc95a8d884772a840133cfdda0b8d1021b758c45a0adcf467397949732bdae048ddafb4964d300092be13f7f
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-appicon)
4
4
 
5
+ ![Demo image](demo.png)
6
+
5
7
  ## Getting Started
6
8
 
7
9
  This project is a [fastlane](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-appicon`, add it to your project by running:
@@ -12,11 +14,22 @@ fastlane add_plugin appicon
12
14
 
13
15
  ## About appicon
14
16
 
15
- Generate required icon sizes and iconset from a master application icon.
17
+ Generate required icon sizes and iconset from a master application icon.
18
+
19
+ Since many apps use a single 1024x1024 icon to produce all the required sizes from, why not automate the process and save lots of time?
16
20
 
17
21
  ## Example
18
22
 
19
- Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
23
+ Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
24
+
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
+
27
+ ```ruby
28
+ lane :test do
29
+ appicon(appicon_image_file: 'spec/fixtures/Themoji.png',
30
+ appicon_devices: [:ipad, :iphone])
31
+ end
32
+ ```
20
33
 
21
34
  ## Run tests for this plugin
22
35
 
@@ -22,9 +22,9 @@ module Fastlane
22
22
  require 'mini_magick'
23
23
  image = MiniMagick::Image.open(fname)
24
24
 
25
- UI.user_error! "Minimum width of input image should be 1024" if image.width < 1024
26
- UI.user_error! "Minimum height of input image should be 1024" if image.height < 1024
27
- UI.user_error! "Input image should be square" if image.width != image.height
25
+ UI.user_error!("Minimum width of input image should be 1024") if image.width < 1024
26
+ UI.user_error!("Minimum height of input image should be 1024") if image.height < 1024
27
+ UI.user_error!("Input image should be square") if image.width != image.height
28
28
 
29
29
  FileUtils.mkdir_p(basepath)
30
30
 
@@ -55,12 +55,13 @@ module Fastlane
55
55
  'images' => images,
56
56
  'info' => {
57
57
  'version' => 1,
58
- 'author' => 'fastlane' # xcode?
58
+ 'author' => 'fastlane'
59
59
  }
60
60
  }
61
61
 
62
62
  require 'json'
63
- File.write(basepath + 'Contents.json', JSON.dump(contents))
63
+ File.write(File.join(basepath, 'Contents.json'), JSON.dump(contents))
64
+ UI.success("Successfully stored app icon at '#{basepath}'")
64
65
  end
65
66
 
66
67
  def self.description
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Appicon
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.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.2.0
4
+ version: 0.3.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: 2016-07-02 00:00:00.000000000 Z
11
+ date: 2016-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mini_magick