fastlane 2.116.0.beta.20190131200016 → 2.116.0.beta.20190201200019

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: 14a8f56d226c291ee5d34ca5bb64a53b68bac250
4
- data.tar.gz: 4e3b8d9e80c5adc44dff26815c0bc6944b6db3aa
3
+ metadata.gz: 3b190bb3cbf57f3c6c4fbff2c712c71e3c143391
4
+ data.tar.gz: 62fda1dafe44885e078babe3f05b14ff1af34857
5
5
  SHA512:
6
- metadata.gz: 8726254d699ce0e015964994c1bb2d56796a827af3727fee399fee1563769854ff33993c0e747d671f3b8bbe8b90d4a794ace0f6e7443e2ccebdfe8a0341e3dd
7
- data.tar.gz: d3055facc4583dd12fa9f8b524c8d6963db198930541384fa757b5ecfb929c888772767a0a1818e6f445309a61db4706a194e702ec471fcd1f34d12b17eedd44
6
+ metadata.gz: f56a55288d182c8ecd46962902884385c989e764bbd58b2de3a367fd3ad67d19a66cb93253b843e312ce5e83b006ade76caf72cf777cd21c4de2e3175a943b3a
7
+ data.tar.gz: 7887b15558375bd3a0de91f542fd69aa5689808e723f22ee233d22bb7c125e96f8f9b6526980326a438a405f834cfc0f0a7114956a5782d99bf1d7cadd14c9d5
@@ -87,7 +87,7 @@ To download the latest frames
87
87
  fastlane frameit download_frames
88
88
  ```
89
89
 
90
- When using _frameit_ without titles on top, the screenshots will have the full resolution, which means they can't be uploaded to the App Store directly. They are supposed to be used for websites, print media and emails. Check out the section below to use the screenshots for the App Store.
90
+ Note: When using _frameit_ without titles on top, the screenshots will have the full resolution, which means they can't be uploaded to the App Store directly. They are supposed to be used for websites, print media and emails. Check out the section below to use the screenshots for the App Store.
91
91
 
92
92
  ## Advanced Usage (optional)
93
93
 
@@ -100,7 +100,7 @@ A working example can be found in the [fastlane examples](https://github.com/fas
100
100
  ### `Framefile.json`
101
101
 
102
102
  The Framefile allows to define general and screenshot specific information.
103
- It has the following JSON structure:
103
+ It has the following general JSON structure:
104
104
 
105
105
  ```json
106
106
  {
@@ -120,7 +120,7 @@ The general parameters are defined in the `default` key and can be:
120
120
 
121
121
  | Key | Description | Default value |
122
122
  |-----|-------------|---------------|
123
- | `background` | The background that should be used for the framed screenshot. Specify the (relative) path to the image file (e.g. *.jpg). This parameter is mandatory. | NA |
123
+ | `background` | The background that should be used for the framed screenshot. Specify the (relative) path to the image file (e.g. `*.jpg`). This parameter is mandatory. | NA |
124
124
  | `keyword` | An object that contains up to 3 keys to describe the optional keyword. See [table](#keyword-and-title-parameters) below. | NA |
125
125
  | `title` | An object that contains up to 3 keys to describe the mandatory title. See [table](#keyword-and-title-parameters) below. | NA |
126
126
  | `stack_title` | Specifies whether _frameit_ should display the keyword above the title when both keyword and title are defined. If it is false, the title and keyword will be displayed side by side when both keyword and title are defined. | `false` |
@@ -129,6 +129,7 @@ The general parameters are defined in the `default` key and can be:
129
129
  | `padding` | The content of the framed screenshot will be resized to match the specified `padding` around all edges. The vertical padding is also applied between the text and the top or bottom (depending on `title_below_image`) of the device frame. <p> There are 3 different options of specyfying the padding: <p> 1. Default: An integer value that defines both horizontal and vertical padding in pixels. <br> 2. A string that defines (different) padding values in pixels for horizontal and vertical padding. The syntax is `"<horizontal>x<vertical>"`, e.g. `"30x60"`. <br> 3. A string that defines (different) padding values in percentage for horizontal and vertical padding. The syntax is `"<horizontal>%x<vertical>%"`, e.g. `"5%x10%"`. <br> **Note:** The percentage is calculated from the smallest image dimension (height or width). <p> A combination of option 2 and 3 is possible, e.g. `"5%x40"`. | `50` |
130
130
  | `interline_spacing` | Specifies whether _frameit_ should add or subtract this many pixels between the individual lines of text. This only applies to a multi-line `title` and/or `keyword` to expand or squash together the individual lines of text. | `0` |
131
131
  | `font_scale_factor` | Specifies whether _frameit_ should increase or decrease the font size of the text. | `0.1` |
132
+ | `frame` | Overrides the color of the frame to be used. (Valid values are `BLACK, `WHITE`, `GOLD` and `ROSE_GOLD`) | NA |
132
133
 
133
134
  ### Specific parameters
134
135
 
@@ -140,6 +141,7 @@ These are defined in the `data` key. This is an array with the following keys fo
140
141
  | `filter` | This is mandatory to link the individual configuration to the screenshot, based on part of the file name. <p>Example:<br>If a screenshot is named `iPhone 8-Brainstorming.png` you can use value `Brainstorming` for `filter`. If there are more than one `filter` matching an entry, they will all be applied in order (which means that the last one has the highest precedence). All other keys from that array element will only be applied on this specific screenshot. |
141
142
  | `keyword` | Similar use as in `default`, except that parameter `text` can be used here because it is screenshot specific. |
142
143
  | `title` | Similar use as in `default`, except that parameter `text` can be used here because it is screenshot specific. |
144
+ | `frame` | Overrides the color of the frame to be used. (Valid values are `BLACK, `WHITE`, `GOLD` and `ROSE_GOLD`) | NA |
143
145
 
144
146
  ### <a name="keyword-and-title-parameters"></a>Framefile `keyword` and `title` parameters
145
147
 
@@ -168,7 +170,8 @@ The `keyword` and `title` parameters are both used in `default` and `data`. They
168
170
  "padding": 50,
169
171
  "show_complete_frame": false,
170
172
  "stack_title" : false,
171
- "title_below_image": true
173
+ "title_below_image": true,
174
+ "frame": "WHITE"
172
175
  },
173
176
 
174
177
  "data": [
@@ -182,7 +185,8 @@ The `keyword` and `title` parameters are both used in `default` and `data`. They
182
185
  "filter": "Organizing",
183
186
  "keyword": {
184
187
  "color": "#feb909"
185
- }
188
+ },
189
+ "frame": "ROSE_GOLD"
186
190
  },
187
191
  {
188
192
  "filter": "Sharing",
@@ -215,6 +219,48 @@ The `keyword.strings` and `title.strings` are standard `.strings` file you alrea
215
219
  - These `.strings` files **MUST** be utf-8 (UTF-8) or utf-16 encoded (UTF-16 BE with BOM). They also must begin with an empty line. If you are having trouble see [issue #1740](https://github.com/fastlane/fastlane/issues/1740)
216
220
  - You **MUST** provide a background if you want titles. _frameit_ will not add the tiles if a background is not specified.
217
221
 
222
+ ### Screenshot orientation
223
+
224
+ By default _frameit_ adds a frame to your screenshot based on an orientation you took it. For a portrait (vertical orientation) it is going to add portrait frame and for a landscape (horizontal orientation) - landscape left (= [Home button on the left side](https://developer.apple.com/documentation/uikit/uiinterfaceorientation/landscapeleft)).
225
+
226
+ One way to override the default behavior is editing the file name by adding `force_landscaperight` to the end.
227
+
228
+ ### `force_orientation_block`
229
+
230
+ If the default behavior doesn't fit your needs and you don't want or can't rename your screenshots, you can customize _frameit_'s orientation behavior by setting a `force_orientation_block` parameter. The valid values are: `:landscape_left` (home button on the left side), `:landscape_right` (home button on the right side), `:portrait` (home button on the bottom), `nil` (home button on the right side).
231
+
232
+ ### Examples
233
+
234
+ ```ruby
235
+ # It matches the filename to the framed device orientation
236
+ frameit(
237
+ path: "./fastlane/screenshots",
238
+ force_orientation_block: proc do |filename|
239
+ case filename
240
+ when "iPad Pro (12.9-inch)-01LoginScreen"
241
+ :landscape_right
242
+ when "iPhone 6 Plus-01LoginScreen"
243
+ :portrait
244
+ # and so on
245
+ end
246
+ end
247
+ )
248
+ ```
249
+
250
+ ```ruby
251
+ # It frames the screenshots in landscape right whenever the filename contains `landscape` word
252
+ frameit(
253
+ silver: true,
254
+ path: "./fastlane/screenshots",
255
+ force_orientation_block: proc do |filename|
256
+ f = filename.downcase
257
+ if f.include?("landscape")
258
+ :landscape_right
259
+ end
260
+ end
261
+ )
262
+ ```
263
+
218
264
  # Mac
219
265
 
220
266
  With _frameit_ it's possible to also frame macOS Application screenshots. You have to provide the following:
@@ -260,14 +306,6 @@ Check out [_snapshot_](https://docs.fastlane.tools/actions/snapshot/) to automat
260
306
 
261
307
  Use [_deliver_](https://docs.fastlane.tools/actions/deliver/) to upload iOS screenshots to App Store Connect, or [_supply_](https://docs.fastlane.tools/actions/supply/) to upload Android screenshots to Play Store completely automatically 🚀
262
308
 
263
- ## Alternative location to store device_frames
264
-
265
- Device frames can also be stored in a ```./fastlane/screenshots/devices_frames``` directory if you prefer rather than in the ```~/.frameit/device_frames``` directory. If doing so please be aware that Apple's images are copyrighted and should not be redistributed as part of a repository so you may want to include them in your .gitignore file.
266
-
267
- ## White background of frames
268
-
269
- Some stock images provided by Apple still have a white background instead of a transparent one. You'll have to edit the Photoshop file to remove the white background, delete the generated `.png` file and run `fastlane frameit` again.
270
-
271
309
  ## Use a clean status bar
272
310
 
273
311
  You can use [SimulatorStatusMagic](https://github.com/shinydevelopment/SimulatorStatusMagic) to clean up the status bar.
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.116.0.beta.20190131200016'.freeze
2
+ VERSION = '2.116.0.beta.20190201200019'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  MINIMUM_XCODE_RELEASE = "7.0".freeze
5
5
  RUBOCOP_REQUIREMENT = '0.49.1'.freeze
@@ -595,6 +595,22 @@ module Spaceship
595
595
  ENV["FASTLANE_SESSION"] || ENV["SPACESHIP_SESSION"]
596
596
  end
597
597
 
598
+ # Get contract messages from App Store Connect's "olympus" endpoint
599
+ def fetch_program_license_agreement_messages
600
+ all_messages = []
601
+
602
+ messages_request = request(:get, "https://olympus.itunes.apple.com/v1/contractMessages")
603
+ body = messages_request.body
604
+ if body
605
+ body = JSON.parse(body) if body.kind_of?(String)
606
+ body.map do |messages|
607
+ all_messages.push(messages["message"])
608
+ end
609
+ end
610
+
611
+ return all_messages
612
+ end
613
+
598
614
  #####################################################
599
615
  # @!group Helpers
600
616
  #####################################################
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.116.0.beta.20190131200016
4
+ version: 2.116.0.beta.20190201200019
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Ellis
@@ -27,7 +27,7 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2019-01-31 00:00:00.000000000 Z
30
+ date: 2019-02-01 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: slack-notifier
@@ -1691,19 +1691,19 @@ require_paths:
1691
1691
  - match/lib
1692
1692
  - produce/lib
1693
1693
  - sigh/lib
1694
- - credentials_manager/lib
1694
+ - scan/lib
1695
1695
  - cert/lib
1696
- - screengrab/lib
1697
- - spaceship/lib
1698
1696
  - pilot/lib
1697
+ - spaceship/lib
1699
1698
  - pem/lib
1700
- - deliver/lib
1701
1699
  - frameit/lib
1702
- - scan/lib
1703
- - snapshot/lib
1704
- - fastlane_core/lib
1705
1700
  - fastlane/lib
1701
+ - deliver/lib
1706
1702
  - supply/lib
1703
+ - screengrab/lib
1704
+ - snapshot/lib
1705
+ - fastlane_core/lib
1706
+ - credentials_manager/lib
1707
1707
  - precheck/lib
1708
1708
  required_ruby_version: !ruby/object:Gem::Requirement
1709
1709
  requirements: