fastlane 2.118.0.beta.20190307200117 → 2.118.0.beta.20190308200057
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: f00659a78dd038033596cc8745944e14031b3671
|
4
|
+
data.tar.gz: 86e48d4991bff2b4318018ace0cc9c235c6a7a5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6993dacbe3234ce05a4dd9c0a7c17b1ad06f59f0210261bdaacf8ca419b829bdf8a7c5d29f9c79711b498ed5ba298b362a43197229071e2620bd134f8ea74e02
|
7
|
+
data.tar.gz: bd7b67a95eb90fe1f35621a4ec1dd8e39b01fbb7a5e6a158a4fd5b889053201a1c6640dcca4e2f3bd0867ab461f1ac94c176b9d7d80e47e2d5546bfa58343401
|
@@ -170,3 +170,90 @@ If you're having trouble getting your device unlocked and the screen activated t
|
|
170
170
|
## Clean Status Bar
|
171
171
|
|
172
172
|
You can use [QuickDemo](https://github.com/PSPDFKit-labs/QuickDemo) to clean up the status bar for your screenshots.
|
173
|
+
|
174
|
+
# Advanced _screengrab_
|
175
|
+
|
176
|
+
<details>
|
177
|
+
<summary>Launch Arguments</summary>
|
178
|
+
|
179
|
+
You can provide additional arguments to your testcases on launch. These strings will be available in your tests through `InstrumentationRegistry.getArguments()`.
|
180
|
+
|
181
|
+
```ruby
|
182
|
+
screengrab(
|
183
|
+
launch_arguments: [
|
184
|
+
"username hjanuschka",
|
185
|
+
"build_number 201"
|
186
|
+
]
|
187
|
+
)
|
188
|
+
```
|
189
|
+
|
190
|
+
```java
|
191
|
+
Bundle extras = InstrumentationRegistry.getArguments();
|
192
|
+
String peerID = null;
|
193
|
+
if (extras != null) {
|
194
|
+
if (extras.containsKey("username")) {
|
195
|
+
username = extras.getString("username");
|
196
|
+
System.out.println("Username: " + username);
|
197
|
+
} else {
|
198
|
+
System.out.println("No username in extras");
|
199
|
+
}
|
200
|
+
} else {
|
201
|
+
System.out.println("No extras");
|
202
|
+
}
|
203
|
+
```
|
204
|
+
</details>
|
205
|
+
|
206
|
+
<details>
|
207
|
+
<summary>Detecting screengrab at runtime</summary>
|
208
|
+
|
209
|
+
For some apps, it is helpful to know when _screengrab_ is running so that you can display specific data for your screenshots. For iOS fastlane users, this is much like "FASTLANE_SNAPSHOT". In order to do this, you'll need to have at least two product flavors of your app.
|
210
|
+
|
211
|
+
Add two product flavors to the app-level build.gradle file:
|
212
|
+
```
|
213
|
+
android {
|
214
|
+
...
|
215
|
+
flavorDimensions "mode"
|
216
|
+
productFlavors {
|
217
|
+
screengrab {
|
218
|
+
dimension "mode"
|
219
|
+
}
|
220
|
+
regular {
|
221
|
+
dimension "mode"
|
222
|
+
}
|
223
|
+
}
|
224
|
+
...
|
225
|
+
}
|
226
|
+
```
|
227
|
+
|
228
|
+
Check for the existence of that flavor (i.e screengrab) in your app code as follows in order to use mock data or customize data for screenshots:
|
229
|
+
```
|
230
|
+
if (BuildConfig.FLAVOR == "screengrab") {
|
231
|
+
System.out.println("screengrab is running!");
|
232
|
+
}
|
233
|
+
```
|
234
|
+
|
235
|
+
When running _screengrab_, do the following to build the flavor you want as well as the test apk. Note that you use "assembleFlavor_name" where Flavor_name is the flavor name, capitalized (i.e. Screengrab).
|
236
|
+
```
|
237
|
+
./gradlew assembleScreengrab assembleAndroidTest
|
238
|
+
```
|
239
|
+
|
240
|
+
Run _screengrab_:
|
241
|
+
```
|
242
|
+
fastlane screengrab
|
243
|
+
```
|
244
|
+
_screengrab_ will ask you to select the debug and test apps (which you can then add to your Screengrabfile to skip this step later).
|
245
|
+
|
246
|
+
The debug apk should be somewhere like this:
|
247
|
+
|
248
|
+
`app/build/outputs/apk/screengrab/debug/app-screengrab-debug.apk`
|
249
|
+
|
250
|
+
The test apk should be somewhere like this:
|
251
|
+
|
252
|
+
`app/build/outputs/apk/androidTest/screengrab/debug/app-screengrab-debug-androidTest.apk`
|
253
|
+
|
254
|
+
Sit back and enjoy your new screenshots!
|
255
|
+
|
256
|
+
Note: while this could also be done by creating a new build variant (i.e. debug, release and creating a new one called screengrab), [Android only allows one build type to be tested](http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Testing) which defaults to debug. That's why we use product flavors.
|
257
|
+
|
258
|
+
</details>
|
259
|
+
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fastlane
|
2
|
-
VERSION = '2.118.0.beta.
|
2
|
+
VERSION = '2.118.0.beta.20190308200057'.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
|
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.118.0.beta.
|
4
|
+
version: 2.118.0.beta.20190308200057
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jimmy Dee
|
@@ -27,7 +27,7 @@ authors:
|
|
27
27
|
autorequire:
|
28
28
|
bindir: bin
|
29
29
|
cert_chain: []
|
30
|
-
date: 2019-03-
|
30
|
+
date: 2019-03-08 00:00:00.000000000 Z
|
31
31
|
dependencies:
|
32
32
|
- !ruby/object:Gem::Dependency
|
33
33
|
name: slack-notifier
|
@@ -1687,24 +1687,24 @@ metadata:
|
|
1687
1687
|
post_install_message:
|
1688
1688
|
rdoc_options: []
|
1689
1689
|
require_paths:
|
1690
|
+
- credentials_manager/lib
|
1691
|
+
- sigh/lib
|
1692
|
+
- snapshot/lib
|
1690
1693
|
- frameit/lib
|
1691
|
-
-
|
1694
|
+
- fastlane/lib
|
1695
|
+
- pilot/lib
|
1692
1696
|
- gym/lib
|
1693
|
-
- cert/lib
|
1694
|
-
- snapshot/lib
|
1695
1697
|
- produce/lib
|
1696
|
-
- match/lib
|
1697
1698
|
- pem/lib
|
1698
|
-
-
|
1699
|
+
- match/lib
|
1700
|
+
- fastlane_core/lib
|
1701
|
+
- cert/lib
|
1702
|
+
- precheck/lib
|
1703
|
+
- deliver/lib
|
1699
1704
|
- scan/lib
|
1700
1705
|
- spaceship/lib
|
1701
|
-
- credentials_manager/lib
|
1702
|
-
- deliver/lib
|
1703
|
-
- precheck/lib
|
1704
|
-
- sigh/lib
|
1705
|
-
- pilot/lib
|
1706
|
-
- fastlane_core/lib
|
1707
1706
|
- supply/lib
|
1707
|
+
- screengrab/lib
|
1708
1708
|
required_ruby_version: !ruby/object:Gem::Requirement
|
1709
1709
|
requirements:
|
1710
1710
|
- - ">="
|