calabash-android 0.9.1.pre2 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/calabash-android/lib/AndroidManifest.xml +2 -2
- data/lib/calabash-android/lib/TestServer.apk +0 -0
- data/lib/calabash-android/monkey_helpers.rb +2 -0
- data/lib/calabash-android/operations.rb +18 -9
- data/lib/calabash-android/version.rb +1 -1
- data/lib/calabash-android/wait_helpers.rb +1 -1
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee0598b0e7e5ea11cbb374d47394738872ff46a2
|
4
|
+
data.tar.gz: 1f17e6fd74a29735e83eef0760eb1f989fc924a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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="
|
55
|
-
android:targetSdkVersion="
|
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" />
|
Binary file
|
@@ -408,14 +408,20 @@ module Calabash module Android
|
|
408
408
|
end
|
409
409
|
|
410
410
|
def uninstall_app(package_name)
|
411
|
-
|
412
|
-
|
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
|
-
|
417
|
+
succeeded = !application_installed?(package_name)
|
415
418
|
|
416
|
-
|
417
|
-
|
418
|
-
|
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
|
793
|
-
# No private data (like ip addresses)
|
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
|
-
|
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)
|
@@ -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.
|
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-
|
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:
|
390
|
+
version: '0'
|
391
391
|
requirements: []
|
392
392
|
rubyforge_project:
|
393
|
-
rubygems_version: 2.
|
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:
|