eyes_appium 4.6.2 → 4.6.3
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 +4 -4
- data/lib/applitools/appium/eyes.rb +35 -0
- data/lib/applitools/version.rb +4 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a462ad9c1ceca6e313a5d1a86548a6e47f26eaa94450007723c2c9891f438a5
|
4
|
+
data.tar.gz: 87742bb1021bc2e4dd7ee72f3953b6bff5f8ffd5a9cc793fd6907c9bf9a6afb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d32f901a24e42aae6b6afdb0d80758dcc13af916ccb5202559f2eb11c3312767708c2b27f6717e047e357ffab171b5da2c9026f5490c8cfbe4d97edd89f370ba
|
7
|
+
data.tar.gz: 2d0c542e1ce41a2138d600bc53625e60e21ef3fd25afac8ef1491742c8570926385f0e3cf4c2f009946298168b105f0214ed1e76df1d97421c93e63b81eea726
|
@@ -120,6 +120,41 @@ class Applitools::Appium::Eyes < Applitools::Selenium::SeleniumEyes
|
|
120
120
|
check(options[:tag], target)
|
121
121
|
end
|
122
122
|
|
123
|
+
def set_mobile_capabilities(nmg_caps, nml_api_key, eyes_server_url, proxy_settings)
|
124
|
+
new_caps = {}
|
125
|
+
|
126
|
+
if nml_api_key.nil? || nml_api_key.empty?
|
127
|
+
nml_api_key = ENV['APPLITOOLS_API_KEY']
|
128
|
+
if nml_api_key.nil? || nml_api_key.empty?
|
129
|
+
raise Applitools::EyesError.new('No API key was given, or is an empty string.')
|
130
|
+
end
|
131
|
+
end
|
132
|
+
new_caps[:NML_API_KEY] = nml_api_key
|
133
|
+
|
134
|
+
if eyes_server_url.nil? || eyes_server_url.empty?
|
135
|
+
eyes_server_url = ENV['APPLITOOLS_SERVER_URL']
|
136
|
+
end
|
137
|
+
new_caps[:NML_SERVER_URL] = eyes_server_url if eyes_server_url
|
138
|
+
|
139
|
+
if proxy_settings.nil? || proxy_settings.empty?
|
140
|
+
proxy_settings = ENV['APPLITOOLS_HTTP_PROXY']
|
141
|
+
end
|
142
|
+
new_caps[:NML_PROXY_URL] = proxy_settings if proxy_settings
|
143
|
+
|
144
|
+
nmg_caps[:optionalIntentArguments] = "--es APPLITOOLS '" + new_caps.to_json + "'"
|
145
|
+
nmg_caps[:processArguments] = {
|
146
|
+
args: [],
|
147
|
+
env: new_caps.merge(DYLD_INSERT_LIBRARIES: "@executable_path/Frameworks/UFG_lib.xcframework/ios-arm64/UFG_lib.framework/UFG_lib:@executable_path/Frameworks/UFG_lib.xcframework/ios-arm64_x86_64-simulator/UFG_lib.framework/UFG_lib")
|
148
|
+
}
|
149
|
+
end
|
150
|
+
|
151
|
+
alias set_nmg_capabilities set_mobile_capabilities
|
152
|
+
|
153
|
+
def use_system_screenshot(value = true)
|
154
|
+
self.screenshot_mode = !value ? 'applitools-lib' : 'default'
|
155
|
+
self
|
156
|
+
end
|
157
|
+
|
123
158
|
private
|
124
159
|
|
125
160
|
def viewport_screenshot
|
data/lib/applitools/version.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# frozen_string_literal: false
|
2
2
|
|
3
3
|
module Applitools
|
4
|
-
VERSION = '4.6.
|
5
|
-
IMAGES_VERSION = '4.2.
|
6
|
-
UNIVERSAL_VERSION = '3.3.
|
7
|
-
UNIVERSAL_CORE_VERSION = '
|
4
|
+
VERSION = '4.6.3'.freeze
|
5
|
+
IMAGES_VERSION = '4.2.3'.freeze
|
6
|
+
UNIVERSAL_VERSION = '3.3.3'.freeze
|
7
|
+
UNIVERSAL_CORE_VERSION = '3.4.0'.freeze
|
8
8
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eyes_appium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.6.
|
4
|
+
version: 4.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Applitools Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05
|
11
|
+
date: 2023-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eyes_selenium
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.6.
|
19
|
+
version: 4.6.3
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.6.
|
26
|
+
version: 4.6.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: appium_lib
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|