Skip to content

Commit 65d74c8

Browse files
committed
feat: drop boardcast for logs
1 parent fb9253a commit 65d74c8

8 files changed

Lines changed: 1 addition & 177 deletions

File tree

android_tests/lib/android/specs/common/command/command.rb

Lines changed: 0 additions & 33 deletions
This file was deleted.

appium_lib.gemspec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ Gem::Specification.new do |s|
1313
s.homepage = 'https://github.com/appium/ruby_lib' # published as appium_lib
1414
s.require_paths = ['lib']
1515

16-
# TODO: We must remove start_logs_broadcast/stop_logs_broadcast to bump the appium_lib_core version to v12+.
17-
s.add_dependency 'appium_lib_core', '>= 9.2.1', '< 12.0'
16+
s.add_dependency 'appium_lib_core', '>= 9.2.1', '< 13.0'
1817
s.add_dependency 'nokogiri', '~> 1.8', '>= 1.8.1'
1918
s.add_dependency 'tomlrb', '>= 1.1', '< 3.0'
2019

ios_tests/lib/ios/specs/common/command/command.rb

Lines changed: 0 additions & 38 deletions
This file was deleted.

lib/appium_lib/android/common/command/command.rb

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -30,37 +30,6 @@ def shell(command, arguments)
3030
# --relaxed-security
3131
@driver.execute_script 'mobile: shell', args
3232
end
33-
34-
# @deprecated Please use BiDi implementation via `$driver.driver.bidi` directly instead.
35-
#
36-
# Starts Android logcat broadcast websocket
37-
#
38-
# @param [String] logcat_file A file path to write messages from a logcat WebSocket client
39-
#
40-
# @example
41-
#
42-
# start_logs_broadcast 'outputfile.log' #=> #<Appium::Android::Command::WsLogcat:...>
43-
#
44-
def start_logs_broadcast(logcat_file = 'logcat.log')
45-
@driver.execute_script 'mobile: startLogsBroadcast'
46-
47-
socket_url = "ws://#{URI.parse(server_url).host}:#{@core.port}/ws/session/#{@driver.session_id}/appium/device/logcat"
48-
@logcat_client = ::Appium::Common::Command::WsLogcat.new(url: socket_url, output_file: logcat_file)
49-
end
50-
51-
# @deprecated Please use BiDi implementation directly instead.
52-
#
53-
# Stop Android logcat broadcast websocket
54-
#
55-
# @example
56-
#
57-
# stop_logs_broadcast #=> nil
58-
#
59-
def stop_logs_broadcast
60-
@logcat_client.close
61-
62-
@driver.execute_script 'mobile: stopLogsBroadcast'
63-
end
6433
end
6534
end
6635
end

lib/appium_lib/common/command.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
require_relative 'command/ws_logcat'
16-
1715
module Appium
1816
module Common
1917
module Command

lib/appium_lib/common/command/ws_logcat.rb

Lines changed: 0 additions & 31 deletions
This file was deleted.

lib/appium_lib/ios/xcuitest/bridge.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def self.for(target)
2727
target.extend Appium::Ios::Xcuitest::Gesture
2828
target.extend Appium::Ios::Xcuitest::MultiAppHandler
2929
target.extend Appium::Ios::Xcuitest::Element
30-
target.extend Appium::Ios::Xcuitest::Command
3130
target.extend Appium::Ios::Xcuitest::GetContext
3231
end
3332
end

lib/appium_lib/ios/xcuitest/command.rb

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -17,42 +17,3 @@
1717
require_relative 'command/source'
1818
require_relative 'command/multi_app_handler'
1919
require_relative 'command/get_context'
20-
21-
module Appium
22-
module Ios
23-
module Xcuitest
24-
module Command
25-
# @deprecated Please use BiDi implementation via `$driver.driver.bidi` directly instead.
26-
#
27-
# Starts iOS syslog broadcast websocket
28-
#
29-
# @param [String] syslog_file A file path to write messages from a syslog WebSocket client
30-
#
31-
# @example
32-
#
33-
# start_logs_broadcast 'outputfile.log' #=> #<Appium::Android::Command::WsLogcat:...>
34-
#
35-
def start_logs_broadcast(syslog_file = 'syslog.log')
36-
@driver.execute_script 'mobile: startLogsBroadcast'
37-
38-
socket_url = "ws://#{URI.parse(server_url).host}:#{@core.port}/ws/session/#{@driver.session_id}/appium/device/syslog"
39-
@logcat_client = ::Appium::Common::Command::WsLogcat.new(url: socket_url, output_file: syslog_file)
40-
end
41-
42-
# @deprecated Please use BiDi implementation directly instead.
43-
#
44-
# Stop iOS syslog broadcast websocket
45-
#
46-
# @example
47-
#
48-
# stop_logs_broadcast #=> nil
49-
#
50-
def stop_logs_broadcast
51-
@logcat_client.close
52-
53-
@driver.execute_script 'mobile: stopLogsBroadcast'
54-
end
55-
end
56-
end
57-
end
58-
end

0 commit comments

Comments
 (0)