screengrab 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -13
- data/lib/screengrab/options.rb +2 -2
- data/lib/screengrab/version.rb +1 -1
- data/version.properties +1 -1
- metadata +7 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c415d70be1b03c74b4fd03602ecd089ff420f30f
|
4
|
+
data.tar.gz: fa0960e2b982a1b2b79afd3f164a0722b4d2cebf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81942b671886db7d0b804d3bd74b78b77d21fa068491b03a5f7a8ff3a640e9e4ad9f2fe186095fe5fe2ed9c16b585a031f8b941650c006e00b902367f0971e4d
|
7
|
+
data.tar.gz: ca35f6e3d153c772e763600621ce27f0eedb1277e5ea928c870052bb3938d0655f50bb957afb8142070da0c367893462554539e86556d0f45d19a5d4f6429443
|
data/README.md
CHANGED
@@ -33,9 +33,7 @@ screengrab
|
|
33
33
|
[![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/fastlane/screengrab/blob/master/LICENSE)
|
34
34
|
[![Gem](https://img.shields.io/gem/v/screengrab.svg?style=flat)](http://rubygems.org/gems/screengrab)
|
35
35
|
|
36
|
-
|
37
|
-
|
38
|
-
Screengrab is a commandline tool that automates taking localized screenshots of your Android app.
|
36
|
+
###### Automated localized screenshots of your Android app on every device
|
39
37
|
|
40
38
|
<img src="assets/running-screengrab.gif" width="640">
|
41
39
|
|
@@ -47,19 +45,15 @@ Screengrab is a commandline tool that automates taking localized screenshots of
|
|
47
45
|
- Fully integrates with [`fastlane`](https://fastlane.tools) and [`supply`](https://github.com/fastlane/supply)
|
48
46
|
|
49
47
|
# Installation
|
48
|
+
Install the gem
|
50
49
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
1. Clone the repo with `git clone git@github.com:fastlane/screengrab.git`
|
55
|
-
1. `cd` into your screengrab repo directory and run `rake install`
|
56
|
-
- You may need to `gem install bundler` if you don't already have bundler
|
57
|
-
- If you're using the default Ruby on Mac OS you may need to use `sudo`
|
58
|
-
1. Run `screengrab init` to complete installation
|
50
|
+
```
|
51
|
+
sudo gem install screengrab
|
52
|
+
```
|
59
53
|
|
60
54
|
##### Gradle dependency
|
61
55
|
```java
|
62
|
-
androidTestCompile 'tools.fastlane:screengrab:0.
|
56
|
+
androidTestCompile 'tools.fastlane:screengrab:0.2.0'
|
63
57
|
```
|
64
58
|
|
65
59
|
##### Configuring your Manifest Permissions
|
@@ -144,7 +138,7 @@ public class JUnit4StyleTests {
|
|
144
138
|
}
|
145
139
|
|
146
140
|
```
|
147
|
-
There is an [example project](https://github.com/fastlane/screengrab/tree/master/example/src/androidTest/java/
|
141
|
+
There is an [example project](https://github.com/fastlane/screengrab/tree/master/example/src/androidTest/java/tools/fastlane/localetester) showing how to use use JUnit 3 or 4 and Espresso with the screengrab Java library to capture screenshots during a UI test run.
|
148
142
|
|
149
143
|
Using JUnit 4 is preferable because of its ability to perform actions before and after the entire test class is run. This means you will change the device's locale far fewer times when compared with JUnit 3 running those commands before and after each test method.
|
150
144
|
|
data/lib/screengrab/options.rb
CHANGED
@@ -6,7 +6,7 @@ module Screengrab
|
|
6
6
|
DEVICE_TYPES = ["phone", "sevenInch", "tenInch", "tv", "wear"].freeze
|
7
7
|
|
8
8
|
def self.available_options
|
9
|
-
|
9
|
+
@options ||= [
|
10
10
|
FastlaneCore::ConfigItem.new(key: :android_home,
|
11
11
|
short_option: "-n",
|
12
12
|
optional: true,
|
@@ -40,7 +40,7 @@ module Screengrab
|
|
40
40
|
env_name: 'SCREENGRAB_APP_PACKAGE_NAME',
|
41
41
|
short_option: "-a",
|
42
42
|
description: "The package name of the app under test (e.g. com.yourcompany.yourapp)",
|
43
|
-
default_value:
|
43
|
+
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:package_name)),
|
44
44
|
FastlaneCore::ConfigItem.new(key: :tests_package_name,
|
45
45
|
env_name: 'SCREENGRAB_TESTS_PACKAGE_NAME',
|
46
46
|
optional: true,
|
data/lib/screengrab/version.rb
CHANGED
@@ -23,5 +23,5 @@ module Screengrab
|
|
23
23
|
end
|
24
24
|
|
25
25
|
VERSION = determine_version.freeze
|
26
|
-
DESCRIPTION = "
|
26
|
+
DESCRIPTION = "Automated localized screenshots of your Android app on every device".freeze
|
27
27
|
end
|
data/version.properties
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: screengrab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrea Falcone
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-02-
|
12
|
+
date: 2016-02-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fastlane_core
|
@@ -17,7 +17,7 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.36.
|
20
|
+
version: 0.36.8
|
21
21
|
- - "<"
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: 1.0.0
|
@@ -27,7 +27,7 @@ dependencies:
|
|
27
27
|
requirements:
|
28
28
|
- - ">="
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version: 0.36.
|
30
|
+
version: 0.36.8
|
31
31
|
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 1.0.0
|
@@ -171,8 +171,7 @@ dependencies:
|
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: 1.19.0
|
174
|
-
description:
|
175
|
-
or emulators
|
174
|
+
description: Automated localized screenshots of your Android app on every device
|
176
175
|
email:
|
177
176
|
- screengrab@fabric.io
|
178
177
|
executables:
|
@@ -214,10 +213,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
213
|
version: '0'
|
215
214
|
requirements: []
|
216
215
|
rubyforge_project:
|
217
|
-
rubygems_version: 2.4.
|
216
|
+
rubygems_version: 2.4.6
|
218
217
|
signing_key:
|
219
218
|
specification_version: 4
|
220
|
-
summary:
|
221
|
-
or emulators
|
219
|
+
summary: Automated localized screenshots of your Android app on every device
|
222
220
|
test_files: []
|
223
221
|
has_rdoc:
|