calabash-android 0.9.10 → 0.9.17

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
  SHA256:
3
- metadata.gz: 9dbf446282b5d6073cdc07581d8161165344134e84be20f80638acad22029412
4
- data.tar.gz: ce68ebe18e5931bf2b964d213da17833289b6b5ec5314bbf3bcbc658f6459175
3
+ metadata.gz: dc890c3b58db519b1dff71b2eef30617890328c3968b1fa42dcd2dc362c34969
4
+ data.tar.gz: a72e70efb669b1b38fa06826eb58669891732e7a3ae53231301f800e2feb2389
5
5
  SHA512:
6
- metadata.gz: bf6526052ea6f27cb91f9bb41c326fbcb59c8d2148cabe7a0a8d050e937c155e6ef34682e897c288f10c677229999e08a9d3d5773ff7562cf9f881c9b6463dbd
7
- data.tar.gz: bbf579382868f40252c6c6526968712ba0f9f659ba982c5245274daa56b8f47f83cd2d205251f502e3a5d8e3c997c6546fc42a9014b60763fa752436d36c36f8
6
+ metadata.gz: 9dd6bce0932009c9f73f7addd0191f4cb8338e9a8bd0b8497021a099bda7019eeaa16efdf25e654d54aca4a1b0b183ecbde6312bed14afd103a6f3816c38772a
7
+ data.tar.gz: 8744291cd16e36b87655dc70fa2f17087cae61c0195b385073b89af1f639601865786946849f5073dc387befd8d7196af65987cb2c6157b82110f33ea77408fd
@@ -51,6 +51,10 @@ class JavaKeystore
51
51
 
52
52
  # E.g. MD5withRSA or MD5withRSAandMGF1
53
53
  encryption = signature_algorithm_name.split('with')[1].split('and')[0]
54
+
55
+ # keytool with newer java versions has "Signature algorithm name: SHA1withRSA (weak)"
56
+ encryption.gsub!(' (weak)', '')
57
+
54
58
  signing_algorithm = "SHA1with#{encryption}"
55
59
  digest_algorithm = 'SHA1'
56
60
 
@@ -1,10 +1,11 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
+
2
3
  <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
4
  package="#testPackage#"
4
- android:versionCode="10"
5
- android:versionName="0.9.10">
5
+ android:versionCode="15"
6
+ android:versionName="0.9.15">
6
7
 
7
- <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="28" />
8
+ <uses-sdk android:minSdkVersion="18" android:targetSdkVersion="28" />
8
9
 
9
10
  <application android:label="instrumentation_backend"
10
11
  android:largeHeap="true"
@@ -43,6 +44,7 @@
43
44
  <instrumentation android:targetPackage="#targetPackage#" android:name="sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner" />
44
45
  <instrumentation android:targetPackage="#targetPackage#" android:name="sh.calaba.instrumentationbackend.ClearAppData" />
45
46
  <instrumentation android:targetPackage="#targetPackage#" android:name="sh.calaba.instrumentationbackend.ClearAppData2" />
47
+ <instrumentation android:targetPackage="#targetPackage#" android:name="sh.calaba.instrumentationbackend.ClearAppData3" />
46
48
  <instrumentation android:targetPackage="#targetPackage#" android:name="sh.calaba.instrumentationbackend.ClearPreferences" />
47
49
  <instrumentation android:targetPackage="#targetPackage#" android:name="sh.calaba.instrumentationbackend.SetPreferences" />
48
50
  <instrumentation android:targetPackage="#targetPackage#" android:name="sh.calaba.instrumentationbackend.GetPreferences" />
@@ -733,11 +733,17 @@ module Calabash module Android
733
733
 
734
734
  cmd_arr << "#{package_name(@test_server_path)}/sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner"
735
735
 
736
- cmd = cmd_arr.join(" ")
736
+ if options[:with_uiautomator]
737
+ cmd_arr.insert(2, "-w")
738
+ shutdown_test_server
739
+ @adb_shell_pid = Process.spawn(cmd_arr.join(" "), :in => '/dev/null') rescue "Could not execute command to start test server with uiautomator"
740
+ else
741
+ cmd = cmd_arr.join(" ")
737
742
 
738
- log "Starting test server using:"
739
- log cmd
740
- raise "Could not execute command to start test server" unless system("#{cmd} 2>&1")
743
+ log "Starting test server using:"
744
+ log cmd
745
+ raise "Could not execute command to start test server" unless system("#{cmd} 2>&1")
746
+ end
741
747
 
742
748
  Calabash::Android::Retry.retry :tries => 600, :interval => 0.1 do
743
749
  raise "App did not start see adb logcat for details" unless app_running?
@@ -832,6 +838,10 @@ Run 'reinstall_test_server' to make sure you have the correct version
832
838
 
833
839
  def shutdown_test_server
834
840
  begin
841
+ unless @adb_shell_pid.nil?
842
+ Process.kill("HUP",@adb_shell_pid)
843
+ @adb_shell_pid = nil
844
+ end
835
845
  http("/kill")
836
846
  Timeout::timeout(3) do
837
847
  sleep 0.3 while app_running?
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.9.10"
3
+ VERSION = "0.9.17"
4
4
 
5
5
  # A model of a software release version that can be used to compare two versions.
6
6
  #
@@ -61,7 +61,12 @@ module Calabash
61
61
  FileUtils.rm_f(path)
62
62
  return res
63
63
  else
64
- embed(path, 'image/png', msg)
64
+ begin
65
+ embed(path, 'image/png', msg)
66
+ rescue => NoMethodError
67
+ attach(path, 'image/png')
68
+ end
69
+
65
70
  raise wait_error(msg)
66
71
  end
67
72
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-android
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.10
4
+ version: 0.9.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Maturana Larsen
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-08 00:00:00.000000000 Z
11
+ date: 2021-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -56,22 +56,16 @@ dependencies:
56
56
  name: rubyzip
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: 1.2.2
62
- - - "<"
59
+ - - '='
63
60
  - !ruby/object:Gem::Version
64
- version: '1.3'
61
+ version: 1.3.0
65
62
  type: :runtime
66
63
  prerelease: false
67
64
  version_requirements: !ruby/object:Gem::Requirement
68
65
  requirements:
69
- - - ">="
70
- - !ruby/object:Gem::Version
71
- version: 1.2.2
72
- - - "<"
66
+ - - '='
73
67
  - !ruby/object:Gem::Version
74
- version: '1.3'
68
+ version: 1.3.0
75
69
  - !ruby/object:Gem::Dependency
76
70
  name: awesome_print
77
71
  requirement: !ruby/object:Gem::Requirement
@@ -124,16 +118,16 @@ dependencies:
124
118
  name: rake
125
119
  requirement: !ruby/object:Gem::Requirement
126
120
  requirements:
127
- - - "~>"
121
+ - - '='
128
122
  - !ruby/object:Gem::Version
129
- version: '10.3'
123
+ version: 13.0.3
130
124
  type: :development
131
125
  prerelease: false
132
126
  version_requirements: !ruby/object:Gem::Requirement
133
127
  requirements:
134
- - - "~>"
128
+ - - '='
135
129
  - !ruby/object:Gem::Version
136
- version: '10.3'
130
+ version: 13.0.3
137
131
  - !ruby/object:Gem::Dependency
138
132
  name: yard
139
133
  requirement: !ruby/object:Gem::Requirement
@@ -372,7 +366,7 @@ homepage: http://github.com/calabash
372
366
  licenses:
373
367
  - EPL-1.0
374
368
  metadata: {}
375
- post_install_message:
369
+ post_install_message:
376
370
  rdoc_options: []
377
371
  require_paths:
378
372
  - lib
@@ -387,8 +381,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
387
381
  - !ruby/object:Gem::Version
388
382
  version: '0'
389
383
  requirements: []
390
- rubygems_version: 3.0.1
391
- signing_key:
384
+ rubygems_version: 3.1.4
385
+ signing_key:
392
386
  specification_version: 4
393
387
  summary: Client for calabash-android for automated functional testing on Android
394
388
  test_files: []