calabash-android 0.9.9 → 0.9.16

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: ffee0c3a564354c2caec0ab6a8d6a313b2166b2f04c381c52708eb98e4d9d3cc
4
- data.tar.gz: 0b4d4c9b52e6380a9f5990e69a61fa1e9c9b8514079d34a2387a48ffcd763c84
3
+ metadata.gz: 5c9d04b019926835a04fbc8b2a6ceb564330f3edf856714f6c29eea0503c5a51
4
+ data.tar.gz: 438bc3d451e570d80acaeb5120f38b3bf4037c1812fc6125ce4a710a836ad85f
5
5
  SHA512:
6
- metadata.gz: 0d9e35881dac6ca416cb357572ba337e6276412210e32bb2fe8e4e58e94f0e14b0b91c27a7f3111c8dc1c0d3077a9c9637329590ba03ec37bb562f591f98acf8
7
- data.tar.gz: 0029141008ce6f26a324e316b4b60b46b0103b56ba1b0cc94fd461c660383a71a9d846b5f7c5df926eadee1b0b7da6998c580f1fe919d826906ee9df7fe878ab
6
+ metadata.gz: 2efd50e4d2b63e59f0e5c6efca391deebbff7c528b702570f871add5735ea7d61a72f793788719bfd029e6041391d6b6f07daedbf40bd3907f1e409adc6ad427
7
+ data.tar.gz: 93c14fc2ba44719060b022242bd6d6ded10d4a0664319496a2e32ca6f309ed6d17901e617ee191fd688462e3255f9e5eedae8169c3ca4378377a9d9f61211126
@@ -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="4"
5
- android:versionName="0.4.0">
5
+ android:versionCode="15"
6
+ android:versionName="0.9.15">
6
7
 
7
- <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="22" />
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" />
@@ -58,5 +60,4 @@
58
60
  <uses-permission android:name="android.permission.GET_ACCOUNTS" />
59
61
  <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
60
62
  <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
61
-
62
63
  </manifest>
@@ -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.9"
3
+ VERSION = "0.9.16"
4
4
 
5
5
  # A model of a software release version that can be used to compare two versions.
6
6
  #
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.9
4
+ version: 0.9.16
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-04-17 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'
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'
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
@@ -294,7 +288,7 @@ dependencies:
294
288
  - - ">="
295
289
  - !ruby/object:Gem::Version
296
290
  version: '0'
297
- description: 'calabash-android drives tests for native and hybrid Android apps. '
291
+ description: 'calabash-android drives tests for native and hybrid Android apps. '
298
292
  email:
299
293
  - jonas@lesspainful.com
300
294
  executables:
@@ -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.3
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: []