appium_instrumenter 0.1.1 → 0.1.2
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 +4 -4
- data/Gemfile.lock +1 -1
- data/exe/appium_instrumenter +4 -15
- data/lib/appium_instrumenter.rb +2 -1
- data/lib/appium_instrumenter/resources/appium-uiautomator2-server-debug-androidTest.apk +0 -0
- data/lib/appium_instrumenter/resources/appium-uiautomator2-server-v0.3.0.apk +0 -0
- data/lib/appium_instrumenter/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 593903dc2c6fd3b01a51ceb465d771a72db02999
|
4
|
+
data.tar.gz: 55c4b97cc1fdb88f529ba512f5de921ea4328c02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7962abdf9379b6064ac4d8c8633ef013751b5ba4f1febaa7be26f74feacc2ff285550e046bb64d248dcbf696e3700b76cc6ef9c21e31ca32c5c733500082452a
|
7
|
+
data.tar.gz: 8f0405860fe5e371ba157ca249f3c3252df00d77cb096860ad4dc1aa6a962e4a616d3cad4f95d6c8b761f274f1d347993637e73661b0a422f4882c6f92adcb10
|
data/Gemfile.lock
CHANGED
data/exe/appium_instrumenter
CHANGED
@@ -4,7 +4,7 @@ require "appium_instrumenter"
|
|
4
4
|
|
5
5
|
|
6
6
|
def print_usage
|
7
|
-
puts "appium_instrumenter instrument <
|
7
|
+
puts "appium_instrumenter instrument <app_under_test_path>"
|
8
8
|
puts "OR"
|
9
9
|
puts "appium_instrumenter resign <apk-path>"
|
10
10
|
end
|
@@ -23,27 +23,16 @@ else
|
|
23
23
|
cmd = ARGV.shift
|
24
24
|
case cmd
|
25
25
|
when 'instrument'
|
26
|
-
|
27
|
-
app_under_test
|
28
|
-
if ARGV.size < 2
|
29
|
-
puts "Please see usage below. Specify two arguments"
|
30
|
-
print_usage
|
31
|
-
elsif !File.exist?(app_to_instrument)
|
32
|
-
puts "Could not find file '#{app_to_instrument}'"
|
33
|
-
exit 1
|
34
|
-
elsif !is_apk_file?(app_to_instrument)
|
35
|
-
puts "'#{app_to_instrument}' is not a valid android application"
|
36
|
-
exit 1
|
37
|
-
elsif !File.exist?(app_under_test)
|
26
|
+
app_under_test = ARGV[0]
|
27
|
+
if !File.exist?(app_under_test)
|
38
28
|
puts "Could not find file '#{app_under_test}'"
|
39
29
|
exit 1
|
40
30
|
elsif !is_apk_file?(app_under_test)
|
41
31
|
puts "'#{app_under_test}' is not a valid android application"
|
42
32
|
exit 1
|
43
33
|
else
|
44
|
-
app_to_instrument_path = relative_to_full_path(app_to_instrument)
|
45
34
|
app_under_test_path = relative_to_full_path(app_under_test)
|
46
|
-
AppiumInstrumenter.instrument(
|
35
|
+
AppiumInstrumenter.instrument(app_under_test_path)
|
47
36
|
end
|
48
37
|
|
49
38
|
when 'resign'
|
data/lib/appium_instrumenter.rb
CHANGED
@@ -3,7 +3,8 @@ require "appium_instrumenter/helpers"
|
|
3
3
|
require "appium_instrumenter/java_keystore"
|
4
4
|
|
5
5
|
module AppiumInstrumenter
|
6
|
-
def self.instrument(
|
6
|
+
def self.instrument(app_under_test)
|
7
|
+
test_server_apk = File.join(File.dirname(__FILE__), 'appium_instrumenter/resources/appium-uiautomator2-server-debug-androidTest.apk')
|
7
8
|
apk_fingerprint = fingerprint_from_apk(app_under_test)
|
8
9
|
log "#{app_under_test} was signed with a certificate with fingerprint #{apk_fingerprint}"
|
9
10
|
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appium_instrumenter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajdeep Varma
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -139,6 +139,8 @@ files:
|
|
139
139
|
- lib/appium_instrumenter/helpers.rb
|
140
140
|
- lib/appium_instrumenter/java_keystore.rb
|
141
141
|
- lib/appium_instrumenter/resources/AndroidManifest.xml
|
142
|
+
- lib/appium_instrumenter/resources/appium-uiautomator2-server-debug-androidTest.apk
|
143
|
+
- lib/appium_instrumenter/resources/appium-uiautomator2-server-v0.3.0.apk
|
142
144
|
- lib/appium_instrumenter/utils.rb
|
143
145
|
- lib/appium_instrumenter/version.rb
|
144
146
|
homepage: https://github.com/rajdeepv/appium_instrumenter
|