calabash-android 0.9.1.pre2 → 0.9.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: bb527ede0676e2c566700c53984572883dde21ae
4
- data.tar.gz: 9b13e1012370185f9c2369e0e65631354bb13fe7
3
+ metadata.gz: ee0598b0e7e5ea11cbb374d47394738872ff46a2
4
+ data.tar.gz: 1f17e6fd74a29735e83eef0760eb1f989fc924a4
5
5
  SHA512:
6
- metadata.gz: 372f5ce062f0176201a9b67205020a70b959cfbfb89ccd2053fb223bec88739b4ac816be027110b52f87f5066a816eb2cfc03f6bf62e49eed431f15fa6d7ab8f
7
- data.tar.gz: 6b2ecd546dfb0db66dfdfaa62735d9af30f103b5596d910ee6980015b6b580168f6fdd5187af6fb6aff376482c97564baa4cc48d84659fdfe7fe2b6b0270f9ba
6
+ metadata.gz: f8d09b172d60359b7f1e09e85a04da4b1f5a2457098281e8381530f6a8475702cb428e283461daac707d5cf599085aa04fabace0229f77c57012fe8e8d9b30e0
7
+ data.tar.gz: d489447e43b0a99e279a1e64dd529635935819d9de678a1f5f92b632254e69422ff1a6044a9ef98af26f2a9b28193939b3b755467756eecb01870e92b115d6a5
@@ -51,8 +51,8 @@
51
51
  android:noHistory="true"
52
52
  android:excludeFromRecents="true"/>
53
53
  </application>
54
- <uses-sdk android:minSdkVersion="4"
55
- android:targetSdkVersion="21"/>
54
+ <uses-sdk android:minSdkVersion="8"
55
+ android:targetSdkVersion="22"/>
56
56
  <instrumentation android:targetPackage="#targetPackage#" android:name="sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner" />
57
57
  <instrumentation android:targetPackage="#targetPackage#" android:name="sh.calaba.instrumentationbackend.ClearAppData" />
58
58
  <instrumentation android:targetPackage="#targetPackage#" android:name="sh.calaba.instrumentationbackend.ClearAppData2" />
@@ -99,6 +99,8 @@ module Calabash
99
99
  def kill_existing_monkey_processes
100
100
  kill_monkey_processes_on_host
101
101
  kill_monkey_processes_on_device
102
+ @@monkey_port = nil
103
+ @@monkey_pid = nil
102
104
  end
103
105
 
104
106
  def monkey_tap(x, y, should_start_monkey=true)
@@ -408,14 +408,20 @@ module Calabash module Android
408
408
  end
409
409
 
410
410
  def uninstall_app(package_name)
411
- log "Uninstalling: #{package_name}"
412
- log `#{adb_command} uninstall #{package_name}`
411
+ exists = application_installed?(package_name)
412
+
413
+ if exists
414
+ log "Uninstalling: #{package_name}"
415
+ log `#{adb_command} uninstall #{package_name}`
413
416
 
414
- succeeded = !application_installed?(package_name)
417
+ succeeded = !application_installed?(package_name)
415
418
 
416
- unless succeeded
417
- ::Cucumber.wants_to_quit = true
418
- raise "#{package_name} was not uninstalled. Aborting!"
419
+ unless succeeded
420
+ ::Cucumber.wants_to_quit = true
421
+ raise "#{package_name} was not uninstalled. Aborting!"
422
+ end
423
+ else
424
+ log "Package not installed: #{package_name}. Skipping uninstall."
419
425
  end
420
426
  end
421
427
 
@@ -789,10 +795,13 @@ module Calabash module Android
789
795
 
790
796
  start_application(options[:intent])
791
797
 
792
- # What is Calabash tracking? Read this post for information
793
- # No private data (like ip addresses) are collected
798
+ # What was Calabash tracking? Read this post for information
799
+ # No private data (like ip addresses) were collected
794
800
  # https://github.com/calabash/calabash-android/issues/655
795
- Calabash::Android::UsageTracker.new.post_usage_async
801
+ #
802
+ # Removing usage tracking to avoid problems with EU General Data
803
+ # Protection Regulation which takes effect in 2018.
804
+ # Calabash::Android::UsageTracker.new.post_usage_async
796
805
  end
797
806
 
798
807
  def start_application(intent)
@@ -1,5 +1,5 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.9.1.pre2"
3
+ VERSION = "0.9.2"
4
4
  end
5
5
  end
@@ -18,8 +18,8 @@ module Calabash
18
18
 
19
19
  def wait_for(options_or_timeout=DEFAULT_OPTS, &block)
20
20
  #note Hash is preferred, number acceptable for backwards compat
21
- timeout = options_or_timeout || default_timeout
22
21
  default_timeout = DEFAULT_OPTS[:timeout]
22
+ timeout = options_or_timeout || default_timeout
23
23
  post_timeout = DEFAULT_OPTS[:post_timeout]
24
24
  retry_frequency = DEFAULT_OPTS[:retry_frequency]
25
25
  timeout_message = DEFAULT_OPTS[:timeout_message]
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-android
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1.pre2
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Maturana Larsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-04 00:00:00.000000000 Z
11
+ date: 2017-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '2.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -385,14 +385,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
385
385
  version: '0'
386
386
  required_rubygems_version: !ruby/object:Gem::Requirement
387
387
  requirements:
388
- - - ">"
388
+ - - ">="
389
389
  - !ruby/object:Gem::Version
390
- version: 1.3.1
390
+ version: '0'
391
391
  requirements: []
392
392
  rubyforge_project:
393
- rubygems_version: 2.5.1
393
+ rubygems_version: 2.6.14
394
394
  signing_key:
395
395
  specification_version: 4
396
396
  summary: Client for calabash-android for automated functional testing on Android
397
397
  test_files: []
398
- has_rdoc: