appium_lib_core 3.6.0 → 3.6.1

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
  SHA256:
3
- metadata.gz: f19bd603ecc28d38a5ea210d846167130279bd12e0e59b8355af66877921f212
4
- data.tar.gz: 509fa209cc410bcf9160e70905ad3b4ea439fda7f280128e210b20b1dca9b9b6
3
+ metadata.gz: 1011b8828b2d0dca338df3813ecb9f4b5e43464cff713c23b5a3c144a6ccdeba
4
+ data.tar.gz: b120ea9cae3e309ea11b00f9a87861db272aa4c3bd422e184f9b7ac4e01c84d3
5
5
  SHA512:
6
- metadata.gz: d955248f477098d7127d61a9319195bf7a5ac361780bce4f475621d160f067789de1ca5280b4330285623e893f04542cc51c767fd12655579322ed6354b0dfa3
7
- data.tar.gz: a7c26d5b16b2bf9b8166aee1b87185b27a0b8d889307c10674239f70da64ce96ce99140c75032a16a8d631e7076884ecbce522e549c098c93aa3aa0c72e57b3c
6
+ metadata.gz: 7c0abe1f60c93f5c32d3ed9597180c863e52dc3ddc3b1277ddcec37e07b872f679cd7f4f6f7cd14c16724f4664e38ca2d18ac598c9773241bcd3cbf83ffe33b5
7
+ data.tar.gz: 19d0aa306e8a1956365cda6fe589a2d3e4ebca3a5fe62b69c1fa9702d85b7389dacaadb26d24500b73c00d1462bf46a0eff53aa853621221dacf814862810e2c
@@ -10,7 +10,7 @@ Read `release_notes.md` for commit level details.
10
10
 
11
11
  ### Deprecations
12
12
 
13
- ## [3.6.0] - 2020-03-15
13
+ ## [3.6.1, 3.6.0] - 2020-03-15
14
14
 
15
15
  ### Enhancements
16
16
  - Add screen record feature for Windows driver (https://github.com/appium/appium-windows-driver/pull/66)
@@ -245,6 +245,8 @@ module Appium
245
245
  # @param [Boolean] bug_report Set it to +true+ in order to display additional information on the video overlay,
246
246
  # such as a timestamp, that is helpful in videos captured to illustrate bugs.
247
247
  # This option is only supported since API level 27 (Android P).
248
+ # @return [String] Base64 encoded content of the recorded media file or an empty string
249
+ # if the file has been successfully uploaded to a remote location (depends on the actual options)
248
250
  #
249
251
  # @example
250
252
  #
@@ -91,6 +91,8 @@ module Appium
91
91
  # - https://www.reddit.com/r/linux4noobs/comments/671z6b/width_not_divisible_by_2_error_when_using_ffmpeg/
92
92
  # @param [String] pixel_format Output pixel format. Run +ffmpeg -pix_fmts+ to list possible values.
93
93
  # For Quicktime compatibility, set to "yuv420p" along with videoType: "libx264".
94
+ # @return [String] Base64 encoded content of the recorded media file or an empty string
95
+ # if the file has been successfully uploaded to a remote location (depends on the actual options)
94
96
  #
95
97
  # @example
96
98
  #
@@ -14,7 +14,7 @@
14
14
 
15
15
  module Appium
16
16
  module Core
17
- VERSION = '3.6.0' unless defined? ::Appium::Core::VERSION
18
- DATE = '2020-03-15' unless defined? ::Appium::Core::DATE
17
+ VERSION = '3.6.1' unless defined? ::Appium::Core::VERSION
18
+ DATE = '2020-03-16' unless defined? ::Appium::Core::DATE
19
19
  end
20
20
  end
@@ -29,21 +29,8 @@ module Appium
29
29
  # This method requires FFMPEG (https://www.ffmpeg.org/download.html) to be installed and present in PATH.
30
30
  # The resulting video uses H264 codec and is ready to be played by media players built-in into web browsers.
31
31
  #
32
- # @param [String] remote_path The path to the remote location, where the resulting video should be uploaded.
33
- # The following protocols are supported: http/https, ftp.
34
- # Null or empty string value (the default setting) means the content of resulting
35
- # file should be encoded as Base64 and passed as the endpount response value.
36
- # An exception will be thrown if the generated media file is too big to
37
- # fit into the available process memory.
38
- # This option only has an effect if there is screen recording process in progreess
39
- # and +forceRestart+ parameter is not set to +true+.
40
- # @param [String] user The name of the user for the remote authentication.
41
- # @param [String] pass The password for the remote authentication.
42
- # @param [String] method The http multipart upload method name. The 'PUT' one is used by default.
43
- # @param [Boolean] force_restart Whether to try to catch and upload/return the currently running screen recording
44
- # (+false+, the default setting on server) or ignore the result of it
45
- # and start a new recording immediately (+true+).
46
- # @param [String] time_limit Recording time. 180 seconds is by default.
32
+ # @param [Boolean] force_restart Whether to stop existing recording process forcefully and start a new recording process.
33
+ # @param [String] time_limit Recording time. 600 seconds is by default.
47
34
  # @param [Number|String] fps The count of frames per second in the resulting video.
48
35
  # Increasing fps value also increases the size of the resulting
49
36
  # video file and the CPU usage. Defaults to 15.
@@ -73,6 +60,7 @@ module Appium
73
60
  # @param [String] audio_input If provided then the given audio input will be used to record the computer audio
74
61
  # along with the desktop video. The list of available devices could be retrieved using
75
62
  # +ffmpeg -list_devices true -f dshow -i dummy+ command.
63
+ # @return [String] Base64 encoded content of the recorded media file
76
64
  #
77
65
  # @example
78
66
  #
@@ -20,14 +20,11 @@ module Appium
20
20
  def self.add_methods
21
21
  ::Appium::Core::Device.add_endpoint_method(:start_recording_screen) do
22
22
  # rubocop:disable Metrics/ParameterLists
23
- def start_recording_screen(remote_path: nil, user: nil, pass: nil, method: 'PUT',
24
- force_restart: nil, time_limit: nil,
23
+ def start_recording_screen(force_restart: nil, time_limit: nil,
25
24
  fps: nil, preset: nil, video_filter: nil,
26
25
  capture_clicks: nil, capture_cursor: nil, audio_input: nil)
27
- option = ::Appium::Core::Base::Device::ScreenRecord.new(
28
- remote_path: remote_path, user: user, pass: pass, method: method, force_restart: force_restart
29
- ).upload_option
30
-
26
+ option = {}
27
+ option[:forceRestart] = force_restart unless force_restart.nil?
31
28
  option[:timeLimit] = time_limit unless time_limit.nil?
32
29
  option[:fps] = fps unless fps.nil?
33
30
  option[:preset] = preset unless preset.nil?
@@ -1,3 +1,9 @@
1
+ #### v3.6.1 2020-03-16
2
+
3
+ - [46a2277](https://github.com/appium/ruby_lib_core/commit/46a2277e792cc583c9978db3ebd548bfee343942) Release 3.6.1
4
+ - [2e28b32](https://github.com/appium/ruby_lib_core/commit/2e28b3205e83358e0aaba79d844c30ac7e29917d) fix: Tweak screen option (#256)
5
+
6
+
1
7
  #### v3.6.0 2020-03-15
2
8
 
3
9
  - [260d45e](https://github.com/appium/ruby_lib_core/commit/260d45e28a36e99e3dedbe8d41e2703c4d3fbdc8) Release 3.6.0
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: 3.6.0
4
+ version: 3.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuaki MATSUO
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-15 00:00:00.000000000 Z
11
+ date: 2020-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver