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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 556e32baa39d80ffa498aa9d64e7c1e4c0a9e83c
4
- data.tar.gz: 1ad3e0cff7ac54986cfe9ca35959a0f4963ed0a1
3
+ metadata.gz: 593903dc2c6fd3b01a51ceb465d771a72db02999
4
+ data.tar.gz: 55c4b97cc1fdb88f529ba512f5de921ea4328c02
5
5
  SHA512:
6
- metadata.gz: 825ab427750d0134b858f36f17527fa0c2ed9d1a8bdc1a71ded63300ab1ed23946c1cd81428c9b5ed6a719e468791fc96d84e59fd1463945356d36113c92b506
7
- data.tar.gz: 2330433639a0de81ca468783fc706c8ae29ef8e928b8d7f972281b344f25ebf26d4209ef5911d9e481df51ff0d58ecc0f02b2c4fe2f777d8e7b0a09e307cf6d0
6
+ metadata.gz: 7962abdf9379b6064ac4d8c8633ef013751b5ba4f1febaa7be26f74feacc2ff285550e046bb64d248dcbf696e3700b76cc6ef9c21e31ca32c5c733500082452a
7
+ data.tar.gz: 8f0405860fe5e371ba157ca249f3c3252df00d77cb096860ad4dc1aa6a962e4a616d3cad4f95d6c8b761f274f1d347993637e73661b0a422f4882c6f92adcb10
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- appium_instrumenter (0.1.0)
4
+ appium_instrumenter (0.1.2)
5
5
  escape (~> 0.0.4)
6
6
  luffa
7
7
  rubyzip (~> 1.1)
@@ -4,7 +4,7 @@ require "appium_instrumenter"
4
4
 
5
5
 
6
6
  def print_usage
7
- puts "appium_instrumenter instrument <appium-server-apk-path> <app_under_test_path>"
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
- app_to_instrument = ARGV[0]
27
- app_under_test = ARGV[1]
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(app_to_instrument_path, app_under_test_path)
35
+ AppiumInstrumenter.instrument(app_under_test_path)
47
36
  end
48
37
 
49
38
  when 'resign'
@@ -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(test_server_apk, app_under_test)
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
 
@@ -1,3 +1,3 @@
1
1
  module AppiumInstrumenter
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-25 00:00:00.000000000 Z
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