appium_lib_core 14.5.0 → 14.5.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: 7733c41a55bb95a81f5268b8c387c8938f4af7454a474ace1f3d21ad5ffd2b31
4
- data.tar.gz: 631d675f7669f1aaa20c4bef9e2c25c5112982a02e03a160dcacec853d4a0c9f
3
+ metadata.gz: 5d430af275150b1b6cb52e2773931b7f4d3134244a0bc8aba9bd513bf72eba30
4
+ data.tar.gz: '07889f8f8ab28e22641ffde6d3c4a96769f379f808e81d18257a2f88ac575969'
5
5
  SHA512:
6
- metadata.gz: 0631d91ba92c5844085833261aec3091176f846859c5dd7daabf465bb7b7b0f175e5878f51cf223facdc6c04336835069c499a3bdbc219b072147f274294e364
7
- data.tar.gz: bf9789782aa620645c2c95ce37f5806809e6415084ac7859bd275213ac4341b0e4d35748aa74593d156d4417a14423151fd58e36065582a3dee01832d9378690
6
+ metadata.gz: 8ad3b428aca8d8dc5ab657ce42e1dc6929ba2e9a3e630fae5775554c6e66923511ac81c2c0aac31bfe0fd611a4770a25c4f02b5e0c9d4fa062e1939fca3ac411
7
+ data.tar.gz: 77b4d680808ddbba192ef2613279de1055c4c8e64236cefa659d718a7876fff470642cd56a80038ef48d987614e134044a658290ed8fc9eedb6cd680e234f6fd
data/CHANGELOG.md CHANGED
@@ -117,6 +117,13 @@ relax the core version constraint. Applications using
117
117
  `appium_console` or `appium_capybara` through `appium_lib` should upgrade with that
118
118
  compatible release. Direct users of `appium_lib_core` can migrate as described above.
119
119
 
120
+ ## [14.5.1](https://github.com/appium/ruby_lib_core/compare/v14.5.0...v14.5.1) (2026-11-30)
121
+
122
+
123
+ ### Bug Fixes
124
+
125
+ * Revert "refactor: wincore namespace ([#752](https://github.com/appium/ruby_lib_core/issues/752))" ([#755](https://github.com/appium/ruby_lib_core/issues/755)) ([3211cc8](https://github.com/appium/ruby_lib_core/commit/3211cc8fb60f81f085297d194c651f3079f29b65))
126
+
120
127
  ## [14.5.0](https://github.com/appium/ruby_lib_core/compare/v14.4.0...v14.5.0) (2026-11-30)
121
128
 
122
129
 
@@ -34,7 +34,6 @@ module Appium
34
34
 
35
35
  autoload :Mac2, 'appium_lib_core/mac2'
36
36
 
37
- autoload :WinCore, 'appium_lib_core/wincore'
38
37
  autoload :Windows, 'appium_lib_core/windows'
39
38
 
40
39
  # This options affects only client side as <code>:appium_lib</code> key.<br>
@@ -624,8 +623,6 @@ module Appium
624
623
  end
625
624
  when :windows
626
625
  case sym_automation_name
627
- when :wincore
628
- ::Appium::Core::WinCore::Bridge.for self
629
626
  when :gecko
630
627
  ::Appium::Logger.debug('Gecko Driver for Windows')
631
628
  else
@@ -14,7 +14,7 @@
14
14
 
15
15
  module Appium
16
16
  module Core
17
- VERSION = '14.5.0' unless defined? ::Appium::Core::VERSION
17
+ VERSION = '14.5.1' unless defined? ::Appium::Core::VERSION
18
18
  DATE = '2026-11-30' unless defined? ::Appium::Core::DATE # x-release-please-date
19
19
  end
20
20
  end
@@ -18,21 +18,33 @@ module Appium
18
18
  module Device
19
19
  module Screen
20
20
  def self.add_methods(target)
21
+ wincore = target.automation_name == :wincore
21
22
  ::Appium::Core::Device.add_endpoint_method(:start_recording_screen, bridge: target.bridge_extensions) do
22
- def start_recording_screen(force_restart: nil, time_limit: nil,
23
- fps: nil, preset: nil, video_filter: nil,
24
- capture_clicks: nil, capture_cursor: nil, audio_input: nil)
23
+ define_method(:start_recording_screen) do |force_restart: nil, time_limit: nil, fps: nil, preset: nil, video_filter: nil, capture_clicks: nil, capture_cursor: nil, audio_input: nil|
25
24
  option = {}
26
25
  option[:forceRestart] = force_restart unless force_restart.nil?
27
26
  option[:timeLimit] = time_limit unless time_limit.nil?
28
- option[:fps] = fps unless fps.nil?
27
+ option[wincore ? :videoFps : :fps] = fps unless fps.nil?
29
28
  option[:preset] = preset unless preset.nil?
30
29
  option[:videoFilter] = video_filter unless video_filter.nil?
31
30
  option[:captureClicks] = capture_clicks unless capture_clicks.nil?
32
31
  option[:captureCursor] = capture_cursor unless capture_cursor.nil?
33
32
  option[:audioInput] = audio_input unless audio_input.nil?
34
33
 
35
- execute(:start_recording_screen, {}, { options: option })
34
+ if wincore
35
+ execute_script('windows: startRecordingScreen', option)
36
+ else
37
+ execute(:start_recording_screen, {}, { options: option })
38
+ end
39
+ end
40
+ end
41
+
42
+ return unless wincore
43
+
44
+ ::Appium::Core::Device.add_endpoint_method(:stop_recording_screen, bridge: target.bridge_extensions) do
45
+ def stop_recording_screen(**kwargs)
46
+ options = ::Appium::Core::Base::Device::ScreenRecord.new(**kwargs).upload_option
47
+ execute_script('windows: stopRecordingScreen', options)
36
48
  end
37
49
  end
38
50
  end
@@ -54,6 +54,7 @@ module Appium
54
54
  # Disabled by default.
55
55
  # @param [Bool] capture_clicks Whether to capture the click gestures while recording the screen.
56
56
  # Disabled by default.
57
+ # With WinCore, leave both capture_clicks and capture_cursor unset.
57
58
  # @param [String] audio_input If provided then the given audio input will be used to record the computer audio
58
59
  # along with the desktop video. The list of available devices could be retrieved using
59
60
  # +ffmpeg -list_devices true -f dshow -i dummy+ command.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_lib_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.5.0
4
+ version: 14.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuaki MATSUO
@@ -103,10 +103,6 @@ files:
103
103
  - lib/appium_lib_core/mac2/device/screen.rb
104
104
  - lib/appium_lib_core/support/event_firing_bridge.rb
105
105
  - lib/appium_lib_core/version.rb
106
- - lib/appium_lib_core/wincore.rb
107
- - lib/appium_lib_core/wincore/bridge.rb
108
- - lib/appium_lib_core/wincore/device.rb
109
- - lib/appium_lib_core/wincore/device/screen.rb
110
106
  - lib/appium_lib_core/windows.rb
111
107
  - lib/appium_lib_core/windows/bridge.rb
112
108
  - lib/appium_lib_core/windows/device.rb
@@ -226,10 +222,6 @@ files:
226
222
  - sig/lib/appium_lib_core/mac2/device/screen.rbs
227
223
  - sig/lib/appium_lib_core/support/event_firing_bridge.rbs
228
224
  - sig/lib/appium_lib_core/version.rbs
229
- - sig/lib/appium_lib_core/wincore.rbs
230
- - sig/lib/appium_lib_core/wincore/bridge.rbs
231
- - sig/lib/appium_lib_core/wincore/device.rbs
232
- - sig/lib/appium_lib_core/wincore/device/screen.rbs
233
225
  - sig/lib/appium_lib_core/windows.rbs
234
226
  - sig/lib/appium_lib_core/windows/bridge.rbs
235
227
  - sig/lib/appium_lib_core/windows/device.rbs
@@ -1,25 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- module Appium
16
- module Core
17
- module WinCore
18
- module Bridge
19
- def self.for(target)
20
- target.extend Appium::Core::WinCore::Device
21
- end
22
- end
23
- end
24
- end
25
- end
@@ -1,50 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- module Appium
16
- module Core
17
- module WinCore
18
- module Device
19
- module Screen
20
- def self.add_methods(target)
21
- ::Appium::Core::Device.add_endpoint_method(:start_recording_screen, bridge: target.bridge_extensions) do
22
- def start_recording_screen(force_restart: nil, time_limit: nil,
23
- fps: nil, preset: nil, video_filter: nil,
24
- capture_clicks: nil, capture_cursor: nil, audio_input: nil)
25
- option = {}
26
- option[:forceRestart] = force_restart unless force_restart.nil?
27
- option[:timeLimit] = time_limit unless time_limit.nil?
28
- option[:videoFps] = fps unless fps.nil?
29
- option[:preset] = preset unless preset.nil?
30
- option[:videoFilter] = video_filter unless video_filter.nil?
31
- option[:captureClicks] = capture_clicks unless capture_clicks.nil?
32
- option[:captureCursor] = capture_cursor unless capture_cursor.nil?
33
- option[:audioInput] = audio_input unless audio_input.nil?
34
-
35
- execute_script('windows: startRecordingScreen', option)
36
- end
37
- end
38
-
39
- ::Appium::Core::Device.add_endpoint_method(:stop_recording_screen, bridge: target.bridge_extensions) do
40
- def stop_recording_screen(**kwargs)
41
- option = ::Appium::Core::Base::Device::ScreenRecord.new(**kwargs).upload_option
42
- execute_script('windows: stopRecordingScreen', option)
43
- end
44
- end
45
- end
46
- end # module Screen
47
- end # module Device
48
- end # module WinCore
49
- end # module Core
50
- end # module Appium
@@ -1,36 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require_relative 'device/screen'
16
-
17
- module Appium
18
- module Core
19
- module WinCore
20
- module Device
21
- extend Forwardable
22
-
23
- # @!method start_recording_screen(force_restart: nil, time_limit: nil, fps: nil, preset: nil, video_filter: nil, capture_clicks: nil, capture_cursor: nil, audio_input: nil)
24
- # Record the Windows desktop. Leave capture_clicks and capture_cursor unset or false for WinCore's ffmpeg backend.
25
- # @!method stop_recording_screen(remote_path: nil, user: nil, pass: nil, method: 'PUT')
26
- # Return the base64-encoded recording, or upload it to remote_path.
27
-
28
- class << self
29
- def extended(target)
30
- Screen.add_methods(target)
31
- end
32
- end # class << self
33
- end # module Device
34
- end # module WinCore
35
- end # module Core
36
- end # module Appium
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require_relative 'wincore/device'
16
- require_relative 'wincore/bridge'
@@ -1,9 +0,0 @@
1
- module Appium
2
- module Core
3
- module WinCore
4
- module Bridge
5
- def self.for: (untyped target) -> untyped
6
- end
7
- end
8
- end
9
- end
@@ -1,13 +0,0 @@
1
- module Appium
2
- module Core
3
- module WinCore
4
- module Device
5
- module Screen
6
- include _Bridge
7
-
8
- def self.add_methods: (untyped target) -> untyped
9
- end
10
- end
11
- end
12
- end
13
- end
@@ -1,11 +0,0 @@
1
- module Appium
2
- module Core
3
- module WinCore
4
- module Device
5
- extend Forwardable
6
-
7
- def self.extended: (untyped _mod) -> untyped
8
- end
9
- end
10
- end
11
- end
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # This file only contains require statements and does not define any classes or modules.
4
- # No type signatures needed.