fastlane-plugin-appcircle_enterprise_store 0.0.3 → 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb0a8393f111f6b8f4b293267e1078b9c031b91f8d3ab17c7449e00ee8c38d1e
|
4
|
+
data.tar.gz: da3c9bb31b11fe19a2ee0e50bc2aec35083b0036d02f346192b102c8bada28a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4607751f1bdc94774ddf9b23a996361caefcd0bc3298ec4cd7b445f6ec516c14d1392f43d1d38ecc2879ee0b1e24c7f084f6510a91b249c3c928983a5609f7ed
|
7
|
+
data.tar.gz: 699233c594ab2004568d8df502b0cf9560454d7fa221765ff4508c680da8495c3f7cf7fe65620f8a1602a998a4f7624ee9d99a79558c029a8abad9aea41c77ce
|
data/lib/fastlane/plugin/appcircle_enterprise_store/actions/appcircle_enterprise_store_action.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
161
|
+
description: "Provide the Appcircle access token to authenticate connections to Appcircle services",
|
139
162
|
optional: false,
|
140
163
|
type: String),
|
141
164
|
|
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.
|
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-
|
11
|
+
date: 2024-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: cloud@appcircle.io
|