fastlane-plugin-lambdatest 0.1.3 → 0.1.4
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c0820213456b0a834ee874c54bdad4b98758ff5ae52943bf82dd14ad3fb86d83
|
|
4
|
+
data.tar.gz: 8b788abac827cfb8c488e66bf34acc183ec9ff60dde6c41dec0b3bd936b4bfab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ee73db67bb89db27f4573d3b553335eac53d93231468e6538c0fbe2e1b24bc55f1e5337f587883d290c78225ae710bcc6f0c23d6420c5cbcbca6ba3e4a0d2d09
|
|
7
|
+
data.tar.gz: 2733158773c44769f062dd6d6175c8c5c94733ec1fc4380c4da252ba1c756f22bef3b478090c19bba3dffc726cc98aceefa4c5c2226bac2f39f977ce2ff0cb95
|
|
@@ -17,12 +17,14 @@ module Fastlane
|
|
|
17
17
|
lt_access_key = params[:lt_access_key] # Required
|
|
18
18
|
file_path = params[:file_path].to_s # Required
|
|
19
19
|
custom_id = params[:custom_id] # Optional
|
|
20
|
+
app_name = params[:app_name] #Optional
|
|
21
|
+
visibility = params[:visibility] #Optional
|
|
20
22
|
|
|
21
23
|
validate_file_path(file_path)
|
|
22
24
|
|
|
23
25
|
UI.message("Started Uploading app to Lambdatest...")
|
|
24
26
|
|
|
25
|
-
lt_app_url = Helper::LambdatestHelper.upload_file(lt_username, lt_access_key, file_path, API_ENDPOINT,custom_id)
|
|
27
|
+
lt_app_url = Helper::LambdatestHelper.upload_file(lt_username, lt_access_key, file_path, API_ENDPOINT, custom_id, app_name, visibility)
|
|
26
28
|
|
|
27
29
|
# Set 'APP_URL' environment variable, if app upload was successful.
|
|
28
30
|
ENV['APP_URL'] = lt_app_url
|
|
@@ -85,14 +87,25 @@ module Fastlane
|
|
|
85
87
|
UI.user_error!("No lt_access_key given.") if value.to_s.empty?
|
|
86
88
|
end),
|
|
87
89
|
FastlaneCore::ConfigItem.new(key: :file_path,
|
|
88
|
-
description: "
|
|
90
|
+
description: "App file path",
|
|
89
91
|
optional: true,
|
|
90
92
|
is_string: true,
|
|
91
93
|
default_value: default_file_path),
|
|
92
94
|
FastlaneCore::ConfigItem.new(key: :custom_id,
|
|
93
95
|
description: "Custom ID",
|
|
94
96
|
optional: true,
|
|
95
|
-
is_string: false
|
|
97
|
+
is_string: false,
|
|
98
|
+
default_value: nil),
|
|
99
|
+
FastlaneCore::ConfigItem.new(key: :app_name,
|
|
100
|
+
description: "App name",
|
|
101
|
+
optional: true,
|
|
102
|
+
is_string: true,
|
|
103
|
+
default_value: "app"),
|
|
104
|
+
FastlaneCore::ConfigItem.new(key: :visibility,
|
|
105
|
+
description: "Visibility",
|
|
106
|
+
optional: true,
|
|
107
|
+
is_string: true,
|
|
108
|
+
default_value: "individual")
|
|
96
109
|
]
|
|
97
110
|
end
|
|
98
111
|
|
|
@@ -112,7 +125,15 @@ module Fastlane
|
|
|
112
125
|
'upload_to_lambdatest(
|
|
113
126
|
lt_username: ENV["LT_USERNAME"],
|
|
114
127
|
lt_access_key: ENV["LT_ACCESS_KEY"],
|
|
115
|
-
file_path: "path_to_app_file"
|
|
128
|
+
file_path: "path_to_app_file",
|
|
129
|
+
app_name: "android_app"
|
|
130
|
+
)',
|
|
131
|
+
'upload_to_lambdatest(
|
|
132
|
+
lt_username: ENV["LT_USERNAME"],
|
|
133
|
+
lt_access_key: ENV["LT_ACCESS_KEY"],
|
|
134
|
+
file_path: "path_to_app_file",
|
|
135
|
+
app_name: "android_app",
|
|
136
|
+
visibility: "team",
|
|
116
137
|
)'
|
|
117
138
|
]
|
|
118
139
|
end
|
|
@@ -20,10 +20,11 @@ module Fastlane
|
|
|
20
20
|
# +custom_id+:: Custom id for app upload.
|
|
21
21
|
# +file_path+:: Path to the file to be uploaded.
|
|
22
22
|
# +url+:: Lambdatest's app upload endpoint.
|
|
23
|
-
def self.upload_file(lt_username, lt_access_key, file_path, url, custom_id
|
|
23
|
+
def self.upload_file(lt_username, lt_access_key, file_path, url, custom_id,app_name, visibility)
|
|
24
24
|
payload = {
|
|
25
|
-
name:
|
|
26
|
-
appFile: File.new(file_path, 'rb')
|
|
25
|
+
name: app_name,
|
|
26
|
+
appFile: File.new(file_path, 'rb'),
|
|
27
|
+
visibility: visibility
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
unless custom_id.nil?
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fastlane-plugin-lambdatest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- LambdaTest
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-09-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|