fastlane-plugin-appcircle_testing_distribution 0.2.1 → 0.2.2
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/fastlane/plugin/appcircle_testing_distribution/actions/appcircle_testing_distribution_action.rb +7 -7
- data/lib/fastlane/plugin/appcircle_testing_distribution/helper/TDUploadService.rb +1 -2
- data/lib/fastlane/plugin/appcircle_testing_distribution/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b0f60660f2ea2b25bf7e0088c9e2a1dd70d009b6d0b63bc1d508bb6721d377e
|
4
|
+
data.tar.gz: '0586725d636a2e56a87fc604f6a6c1fb284e22d04d771ba5e85d79a6e341b169'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cab5c11069fb4c70abcfdc0ec747670ec043f9efaf9f0635dc7f896fd6a3188ae80ecc68eabc9d401bd4d789ee02c535a32a826569423cfd8d3643462f1dcd6
|
7
|
+
data.tar.gz: 173f6f699f45551e550b98a2585ea72c8d14bb8c1023b66cfa890d573584379b3e73521f1bcfcec51a7d1fa4e2541f45c94b3a491a28efc7f696f10d74344dad
|
@@ -21,17 +21,17 @@ module Fastlane
|
|
21
21
|
|
22
22
|
file_extension = File.extname(appPath).downcase
|
23
23
|
unless valid_extensions.include?(file_extension)
|
24
|
-
|
24
|
+
UI.user_error!("Invalid file extension: #{file_extension}. For Android, use .apk or .aab. For iOS, use .ipa or .zip(.xcarchive).")
|
25
25
|
end
|
26
26
|
|
27
27
|
if personalAPIToken.nil?
|
28
|
-
|
28
|
+
UI.user_error!("Personal API Token is required to authenticate connections to Appcircle services. Please provide a valid access token")
|
29
29
|
elsif profileName.nil?
|
30
|
-
|
30
|
+
UI.user_error!("Distribution profile name is required to distribute applications. Please provide a distribution profile name")
|
31
31
|
elsif appPath.nil?
|
32
|
-
|
32
|
+
UI.user_error!("Application file path is required to distribute applications. Please provide a valid application file path")
|
33
33
|
elsif message.nil?
|
34
|
-
|
34
|
+
UI.user_error!("Message field is required. Please provide a valid message")
|
35
35
|
end
|
36
36
|
|
37
37
|
|
@@ -47,7 +47,7 @@ module Fastlane
|
|
47
47
|
UI.success("Login is successful.")
|
48
48
|
return user.accessToken
|
49
49
|
rescue => e
|
50
|
-
|
50
|
+
UI.user_error!("Login failed: #{e.message}")
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
@@ -92,7 +92,7 @@ module Fastlane
|
|
92
92
|
end
|
93
93
|
rescue => e
|
94
94
|
status_code = e.respond_to?(:response) && e.response ? e.response.code : 'unknown'
|
95
|
-
UI.
|
95
|
+
UI.user_error!("Upload failed with status code #{status_code}, with message '#{e.message}'")
|
96
96
|
end
|
97
97
|
end
|
98
98
|
|
@@ -10,8 +10,7 @@ module TDUploadService
|
|
10
10
|
url = "https://api.appcircle.io/distribution/v2/profiles/#{dist_profile_id}/app-versions"
|
11
11
|
headers = {
|
12
12
|
Authorization: "Bearer #{token}",
|
13
|
-
|
14
|
-
content_type: :multipart
|
13
|
+
content_type: :multipart # multipart/form-data
|
15
14
|
}
|
16
15
|
payload = {
|
17
16
|
Message: message,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-appcircle_testing_distribution
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- appcircleio
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|