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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f63fd4350578ece6be711c5c65e1276d61f3e4e617fea3ad9665e15131b2848
4
- data.tar.gz: 075a13c25c20648e325692db9327e8e973e95d43addfe9d10b14a79bc713c957
3
+ metadata.gz: 7b0f60660f2ea2b25bf7e0088c9e2a1dd70d009b6d0b63bc1d508bb6721d377e
4
+ data.tar.gz: '0586725d636a2e56a87fc604f6a6c1fb284e22d04d771ba5e85d79a6e341b169'
5
5
  SHA512:
6
- metadata.gz: 1dcb8e9a3b6a26a5c030bb3e0c8b53f5f7bf12fd05f5676e9933ad5393d9aad0d9bca3d6a9732cb63c7083f2b12d78fc28b223f995c0fd001ccc3ad88d3c971d
7
- data.tar.gz: 29302574b57bfed3b1dffb5546e3ba3bf05fa9771013137819ffada9e46196344d8f02a941c9995fbd2065ad4305a953003dc67f2cb694c71e2719f880044d91
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
- raise "Invalid file extension: #{file_extension}. For Android, use .apk or .aab. For iOS, use .ipa or .zip(.xcarchive)."
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
- raise UI.error("Personal API Token is required to authenticate connections to Appcircle services. Please provide a valid access token")
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
- raise UI.error("Distribution profile name is required to distribute applications. Please provide a distribution profile name")
30
+ UI.user_error!("Distribution profile name is required to distribute applications. Please provide a distribution profile name")
31
31
  elsif appPath.nil?
32
- raise UI.error("Application file path is required to distribute applications. Please provide a valid application file path")
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
- raise UI.error("Message field is required. Please provide a valid message")
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
- puts "Login failed: #{e.message}"
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.error("Upload failed with status code #{status_code}, with message '#{e.message}'")
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
- Message: message,
14
- content_type: :multipart
13
+ content_type: :multipart # multipart/form-data
15
14
  }
16
15
  payload = {
17
16
  Message: message,
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AppcircleTestingDistribution
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
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.1
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-01 00:00:00.000000000 Z
11
+ date: 2024-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client