appium_lib_core 2.3.3 → 2.3.4

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: 211e769114bdcc5cf37b5bdcb6d5665001949de6d8002c98e53bd69fd187f711
4
- data.tar.gz: 22a680d7a6dc2afd7a525bce07b00cef0edc591e901b7dcca08229061878431f
3
+ metadata.gz: bceabea49800493b2a7f3ca6180df16e44c46b931442cfbc34d6e081127d5249
4
+ data.tar.gz: dac898db424d25bf06eee64e3cb8c338f4de8c50b2bccecce46a7e3479f028aa
5
5
  SHA512:
6
- metadata.gz: 3c396a762a44f2158f55dd04baed25642ddc3fbad7a5efec2c610b836c22b448199753a5ce842b9b0584a548068af3aa4636f5aa34b146821e0cc94ed460be9f
7
- data.tar.gz: 8d2baa9487987d4d503133c8d6d41f223d009d54b8350f2cc0ef17bfe07399b052276ce16f8706dfbab81f542e2b410603f1e82a5eb7727dafc1a2d599551b73
6
+ metadata.gz: 7caa9b73f44e35aad52e9226044dc0faa1e9f79d2968ffbf8f51f8783ed1f034a15ea368347ce3bcaa6d97d1cf229ad3f07ced9524a3c12a19445440c7496472
7
+ data.tar.gz: 4c3c9c079d7815c6f515984898aa8d547a613fb929f79081fbba696aff8b1b23190f4a3ac8ed2dc07c4f215ab8c9bedc93b419e6d0d882eec44c4aa7cdf35f6c
@@ -9,6 +9,15 @@ Read `release_notes.md` for commit level details.
9
9
 
10
10
  ### Deprecations
11
11
 
12
+ ## [2.3.4] - 2019-01-31
13
+ ### Enhancements
14
+ - Add 3D touch option for `TouchAction#press` [appium/WebDriverAgent#79](https://github.com/appium/WebDriverAgent/pull/79)
15
+
16
+ ### Bug fixes
17
+ - Stop sending blank value in `start_activity`
18
+
19
+ ### Deprecations
20
+
12
21
  ## [2.3.3] - 2019-01-22
13
22
  ### Enhancements
14
23
 
@@ -303,22 +303,26 @@ module Appium
303
303
  def start_activity(opts)
304
304
  raise 'opts must be a hash' unless opts.is_a? Hash
305
305
 
306
+ option = {}
307
+
306
308
  app_package = opts[:app_package]
307
309
  raise 'app_package is required' unless app_package
308
310
 
309
311
  app_activity = opts[:app_activity]
310
312
  raise 'app_activity is required' unless app_activity
311
313
 
312
- app_wait_package = opts.fetch(:app_wait_package, '')
313
- app_wait_activity = opts.fetch(:app_wait_activity, '')
314
+ option[:appPackage] = app_package
315
+ option[:appActivity] = app_activity
316
+
317
+ app_wait_package = opts.fetch(:app_wait_package, nil)
318
+ app_wait_activity = opts.fetch(:app_wait_activity, nil)
319
+ option[:appWaitPackage] = app_wait_package if app_wait_package
320
+ option[:appWaitActivity] = app_wait_activity if app_wait_activity
314
321
 
315
322
  unknown_opts = opts.keys - %i(app_package app_activity app_wait_package app_wait_activity)
316
323
  raise "Unknown options #{unknown_opts}" unless unknown_opts.empty?
317
324
 
318
- execute :start_activity, {}, appPackage: app_package,
319
- appActivity: app_activity,
320
- appWaitPackage: app_wait_package,
321
- appWaitActivity: app_wait_activity
325
+ execute :start_activity, {}, option
322
326
  end
323
327
  end
324
328
 
@@ -64,9 +64,14 @@ module Appium
64
64
  # @option opts [WebDriver::Element] :element (Optional) Element to press within.
65
65
  # @option opts [integer] :x x co-ordinate to press on
66
66
  # @option opts [integer] :y y co-ordinate to press on
67
+ # @option opts [Float] pressure (iOS Only) press as force touch.
68
+ # See the description of `force` property on Apple's UITouch class
69
+ # (https://developer.apple.com/documentation/uikit/uitouch?language=objc)
70
+ # for more details on possible value ranges.
67
71
  def press(opts)
68
72
  args = opts.select { |k, _v| %i(element x y).include? k }
69
73
  args = args_with_ele_ref(args)
74
+ args[:pressure] = opts.delete(:pressure) unless opts[:pressure].nil?
70
75
  chain_method(:press, args)
71
76
  end
72
77
 
@@ -1,6 +1,6 @@
1
1
  module Appium
2
2
  module Core
3
- VERSION = '2.3.3'.freeze unless defined? ::Appium::Core::VERSION
4
- DATE = '2019-01-22'.freeze unless defined? ::Appium::Core::DATE
3
+ VERSION = '2.3.4'.freeze unless defined? ::Appium::Core::VERSION
4
+ DATE = '2019-01-31'.freeze unless defined? ::Appium::Core::DATE
5
5
  end
6
6
  end
@@ -1,3 +1,11 @@
1
+ #### v2.3.4 2019-01-31
2
+
3
+ - [f217263](https://github.com/appium/ruby_lib_core/commit/f217263febd2bd3d6c8663f440d7959096492f7a) Release 2.3.4
4
+ - [04e5851](https://github.com/appium/ruby_lib_core/commit/04e58517403f215d6d5a27adac815248d15ac23d) add pressure option for touch action (#187)
5
+ - [6676e1f](https://github.com/appium/ruby_lib_core/commit/6676e1fa5ad7dfac4895033ad4a571eeb17697ff) Donotsend unused value start activity (#185)
6
+ - [513400f](https://github.com/appium/ruby_lib_core/commit/513400f087e3091cff7801f924d90e5ee8118213) tweak start activity test
7
+
8
+
1
9
  #### v2.3.3 2019-01-22
2
10
 
3
11
  - [867d55f](https://github.com/appium/ruby_lib_core/commit/867d55f2e77c17c3576a56df687fba0e02063530) Release 2.3.3
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_lib_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuaki MATSUO
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-22 00:00:00.000000000 Z
11
+ date: 2019-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver