calabash-android 0.7.2 → 0.7.3.pre1

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: 0b87f4ad737c2b594be18aad28981d8d46a51543
4
- data.tar.gz: 39939908d527e49c6543d2d1939d4fc2b0ecb58d
3
+ metadata.gz: 541833cd4aab716bb1621126180c8a3ae53f31a8
4
+ data.tar.gz: 317a101f4b510b68e4a5d6bb356f77e2742b32fe
5
5
  SHA512:
6
- metadata.gz: 5300345c449907a6adcbe20e0eda0c363ee3d735e81b4565a609c7ba1598fd89943f41796555cd4bce7f743c44627ca3070034fc15df9e137bd63398111bb1c3
7
- data.tar.gz: 828a9e98efa99bcaf9b9d34e8000547acdc468fa840a2e4465bd5ddd404d6bd074607333b601a45324463c5955be412a20535d6ad4716382ae6dbbe1fa153b17
6
+ metadata.gz: b35c526e1eecd71dc82a752846d01d19d4e0828f0f262d31403d4a7d6fbb0c84f3da6787eecb4aa8bdde5aded4200d41640fa1923487a9b4b0b8c7e297614ff2
7
+ data.tar.gz: 36538f904d3f82a2a440861bdfc7507941a50f7ed99bf6d017b5e75428384897720cb6bb181c952bc0de33a322a2f4ddf33ac26b9749e85a804f61f6a07fbffd
@@ -332,6 +332,15 @@ module Calabash module Android
332
332
  ::Cucumber.wants_to_quit = true
333
333
  raise "#{pn} did not get installed. Reason: '#{result.lines.last.chomp}'. Aborting!"
334
334
  end
335
+
336
+ # Enable GPS location mocking on Android Marshmallow+
337
+ if _sdk_version >= 23
338
+ cmd = "#{adb_command} shell appops set #{package_name(app_path)} 58 allow"
339
+ log("Enabling GPS mocking using '#{cmd}'")
340
+ `#{cmd}`
341
+ end
342
+
343
+ true
335
344
  end
336
345
 
337
346
  def update_app(app_path)
@@ -1,5 +1,5 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.7.2"
3
+ VERSION = "0.7.3.pre1"
4
4
  end
5
5
  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.7.2
4
+ version: 0.7.3.pre1
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: 2016-03-19 00:00:00.000000000 Z
11
+ date: 2016-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -389,9 +389,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
389
389
  version: '0'
390
390
  required_rubygems_version: !ruby/object:Gem::Requirement
391
391
  requirements:
392
- - - ">="
392
+ - - ">"
393
393
  - !ruby/object:Gem::Version
394
- version: '0'
394
+ version: 1.3.1
395
395
  requirements: []
396
396
  rubyforge_project:
397
397
  rubygems_version: 2.4.5.1