fastlane-plugin-appcircle_enterprise_store 0.0.2 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 861bd48606de4765efd8b69eee68bcadd87e58dcd708aea22e0e15d55770d08d
4
- data.tar.gz: 58dd4586505eff465a0c8a22459a2da0b16fa41befbb00006f433f0ccb35174a
3
+ metadata.gz: bb0a8393f111f6b8f4b293267e1078b9c031b91f8d3ab17c7449e00ee8c38d1e
4
+ data.tar.gz: da3c9bb31b11fe19a2ee0e50bc2aec35083b0036d02f346192b102c8bada28a9
5
5
  SHA512:
6
- metadata.gz: 805728e12d8b13c03476c634dbfd6c46489d16ea0d6df11383c673326edc938c06b481d2ef0b589e0a3e503bbb14c212ca196dc190a61de36c7d44f31ba2f964
7
- data.tar.gz: dcb4a63936a0b9453a049714cd83d5b7645721517cbb030c35762bd737d9380eb8c3726d9a99614bcb8903d355091d3a3de8aea2cc0bcb776a7a321712447af2
6
+ metadata.gz: 4607751f1bdc94774ddf9b23a996361caefcd0bc3298ec4cd7b445f6ec516c14d1392f43d1d38ecc2879ee0b1e24c7f084f6510a91b249c3c928983a5609f7ed
7
+ data.tar.gz: 699233c594ab2004568d8df502b0cf9560454d7fa221765ff4508c680da8495c3f7cf7fe65620f8a1602a998a4f7624ee9d99a79558c029a8abad9aea41c77ce
data/README.md CHANGED
@@ -8,7 +8,7 @@ Appcircle Enterprise Mobile App Store is your own mobile app store for providing
8
8
  - **Secure Distribution:** Everything you need for secure, streamlined distribution of your in-house apps.
9
9
  - **No MDM Required:** Allows distribution of B2B and B2E applications without the need for an MDM solution and enrollment.
10
10
 
11
- Learn more about [Appcircle Enterprise App Store](https://appcircle.io/enterprise-app-store).
11
+ Learn more about [Appcircle Enterprise App Store](https://appcircle.io/enterprise-app-store?utm_source=fastlane&utm_medium=plugin&utm_campaign=enterprise_app_store).
12
12
 
13
13
  ## What Sets Apart Appcircle Enterprise Mobile App Store
14
14
 
@@ -68,7 +68,7 @@ After adding the plugin to your project, configure your Fastfile as follows:
68
68
 
69
69
  Utilize environment variables seamlessly by substituting the parameters with $(VARIABLE_NAME) in your task inputs. The extension automatically retrieves values from the specified environment variables within your pipeline.
70
70
 
71
- If you would like to learn more about this extension and how to utilize it in your projects, please [contact us](https://appcircle.io/contact)
71
+ If you would like to learn more about this extension and how to utilize it in your projects, please [contact us](https://appcircle.io/contact?utm_source=fastlane&utm_medium=plugin&utm_campaign=enterprise_app_store)
72
72
 
73
73
  ## Issues and Feedback
74
74
 
@@ -15,6 +15,23 @@ module Fastlane
15
15
  releaseNotes = params[:releaseNotes]
16
16
  publishType = params[:publishType]
17
17
 
18
+ if accessToken.nil?
19
+ raise UI.error("Please provide the Appcircle access token to authenticate connections to Appcircle services")
20
+ elsif entProfileId.nil?
21
+ raise UI.error("Please provide the Appcircle Enterprise App Store Mobile Profile ID to specify the profile to be used for the publishment. This ID can be found in the Enterprise App Store Mobile module dashboard")
22
+ elsif appPath.nil?
23
+ raise UI.error("Please specify the path to your application file. For iOS, this can be a .ipa or .xcarchive file path. For Android, specify the .apk or .appbundle file path")
24
+ elsif summary.nil?
25
+ raise UI.error("Please provide a summary for the application to be published. This summary will be displayed in the Appcircle Enterprise App Store")
26
+ elsif releaseNotes.nil?
27
+ raise UI.error("Please provide release notes for the application to be published. These notes will be displayed in the Appcircle Enterprise App Store")
28
+ elsif publishType.nil?
29
+ raise UI.error("Please specify the publish type for the application. This can be 0: None, 1: Beta, 2: Live. Default is 0: None. For more information, provide the number of the publish type")
30
+ elsif publishType != "0" && publishType != "1" && publishType != "2"
31
+ raise UI.error("Please provide a valid publish type. This can be 0: None, 1: Beta, 2: Live. Default is 0: None. For more information, provide the number of the publish type")
32
+ end
33
+
34
+
18
35
  self.ac_login(accessToken)
19
36
  self.uploadToProfile(entProfileId, appPath, summary, releaseNotes, publishType)
20
37
  self.get_version_list(entProfileId)
@@ -39,10 +56,13 @@ module Fastlane
39
56
  response = self.send_request(uri, apiAccessToken["AC_ACCESS_TOKEN"])
40
57
  if response.is_a?(Net::HTTPSuccess)
41
58
  stateValue = JSON.parse(response.body)["stateValue"]
42
-
43
59
  if stateValue == 1
60
+ sleep(1)
44
61
  return checkTaskStatus(taskId)
45
- else
62
+ elsif stateValue == 2
63
+ UI.error("Task Id #{taskId} failed with state value #{stateValue}")
64
+ raise "Upload could not completed successfully"
65
+ else
46
66
  return true
47
67
  end
48
68
  else
@@ -64,7 +84,11 @@ module Fastlane
64
84
  result = self.checkTaskStatus(taskId)
65
85
  if result
66
86
  appVersionId = self.get_version_list(entProfileId)
67
- self.publishToStore(entProfileId, appVersionId, summary, releaseNotes, publishType)
87
+ if publishType != "0"
88
+ self.publishToStore(entProfileId, appVersionId, summary, releaseNotes, publishType)
89
+ else
90
+ UI.success("#{appPath} uploaded to the Appcircle Enterprise Store successfully")
91
+ end
68
92
  end
69
93
  else
70
94
  raise "Error executing command of uploading the application to the Appcircle Enterprise Store. Please make sure you have provided a valid profile ID and application path.#{ac_upload_profile}"
@@ -92,7 +116,6 @@ module Fastlane
92
116
  def self.get_version_list(entProfileId)
93
117
  store_version_list = `appcircle enterprise-app-store version list --entProfileId #{entProfileId} -o json`;
94
118
  appVersionId = self.getVersionId(store_version_list)
95
- UI.message("Uploaded App ID: #{appVersionId}")
96
119
  return appVersionId
97
120
  end
98
121
 
@@ -135,7 +158,7 @@ module Fastlane
135
158
  [
136
159
  FastlaneCore::ConfigItem.new(key: :accessToken,
137
160
  env_name: "AC_ACCESS_TOKEN",
138
- description: "Provide the Appcircle access token to authenticate connections to Appcircle services. This token allows your Azure DevOps pipeline to interact with Appcircle for distributing applications",
161
+ description: "Provide the Appcircle access token to authenticate connections to Appcircle services",
139
162
  optional: false,
140
163
  type: String),
141
164
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AppcircleEnterpriseStore
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-appcircle_enterprise_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - appcircleio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-12 00:00:00.000000000 Z
11
+ date: 2024-07-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: cloud@appcircle.io