fastlane-plugin-applivery 2.3.1 → 2.4.0
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: 896d1a5cf3e8bd2ca4026553c73b1260341495dc78ad9768e9e51f36f88a8ebe
|
4
|
+
data.tar.gz: 88b8923a87645ae48eaf99c6b9d542a5b4685aa66cb0b59cd9cab08b913a6ad5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4e5bbeed4475c9f4c5b01dcac9c780adcc24c8c018059f0dff02cc5fbfe8bed96ae2509f539471d547f32fe8e42e85cc07e4787a0ab43c1b4fdeb72dd1f0a0c
|
7
|
+
data.tar.gz: e7c02526e3305c6d27e733f4ebda50c8729a0102ced57c4cf609d86b7ab5f316557f8ba61ff2efa0fdb2cceb53347842a1e110530e10ed64e43a600e6717e581
|
data/README.md
CHANGED
@@ -61,13 +61,14 @@ The above examples are the most simple configuration you can have but you can ad
|
|
61
61
|
|--------------------------|--------------------------------------|-----------|--------------|
|
62
62
|
| `app_token` | Applivery App Token | YES | string -> Available in the App Settings |
|
63
63
|
| `name` | Applivery Build name | NO | string-> i.e.: "RC 1.0" |
|
64
|
-
| `notify_collaborators` | Notify Collaborators after deploy | NO |
|
65
|
-
| `notify_employees` | Notify Employees after deploy | NO |
|
64
|
+
| `notify_collaborators` | Notify Collaborators after deploy | NO | boolean -> i.e.: `true` / `false` |
|
65
|
+
| `notify_employees` | Notify Employees after deploy | NO | boolean -> i.e.: `true` / `false` |
|
66
66
|
| `notify_message` | Notification message | NO | string -> i.e.: "Enjoy the new version!" |
|
67
67
|
| `changelog` | Release notes | NO | string -> i.e.: "Bug fixing" |
|
68
68
|
| `tags` | Tags to identify the build | NO | string -> comma separated. i.e.: `"RC1, QA"` |
|
69
69
|
| `filter` | List of groups that will be notified | NO | string -> comma separated + special chars. i.e.: `"group1,group2\|group3"` = (grupo1 AND grupo2) OR (grupo3) |
|
70
|
-
| `build_path` | Build path to the APK
|
70
|
+
| `build_path` | Build path to the APK/AAB/IPA file | NO | string -> by default it takes the IPA/APK build path |
|
71
|
+
| `tenant` | Private tenant name or base domain | NO | string -> i.e.: `mycompany` or `mycompany-apps.com` |
|
71
72
|
|
72
73
|
## Shared Value
|
73
74
|
Once your build is uploaded successfuly, the new generated build ID is provided by a Shared Value `APPLIVERY_BUILD_ID` that can be accesed in your lane with `lane_context[SharedValues::APPLIVERY_BUILD_ID]`
|
@@ -85,10 +86,16 @@ lane :applivery_ios do
|
|
85
86
|
end
|
86
87
|
```
|
87
88
|
|
88
|
-
You could use this id to open your build information in
|
89
|
+
You could use this id to open your build information in Applivery like:
|
89
90
|
|
90
91
|
```
|
91
|
-
https://dashboard.applivery.io/
|
92
|
+
https://dashboard.applivery.io/{YOUR_WORKSPACE_SLUG}/apps/{YOUR_APP_SLUG}/builds?id={THIS_BUILD_ID}
|
93
|
+
```
|
94
|
+
|
95
|
+
Or to create a direct link to a specific build in your enterprise store:
|
96
|
+
|
97
|
+
```
|
98
|
+
"https://{YOUR_WORKSPACE_SLUG}.applivery.io/#{YOUR_APP_SLUG}?os={YOUR_APP_OS}&build=#{THIS_BUILD_ID}"
|
92
99
|
```
|
93
100
|
|
94
101
|
## Run tests for this plugin
|
@@ -13,7 +13,10 @@ module Fastlane
|
|
13
13
|
build_path = params[:build_path]
|
14
14
|
build = Faraday::UploadIO.new(build_path, 'application/octet-stream') if build_path && File.exist?(build_path)
|
15
15
|
|
16
|
-
|
16
|
+
base_domain = Helper::AppliveryHelper.get_base_domain(params[:tenant])
|
17
|
+
upload_api_url = "https://upload.#{base_domain}"
|
18
|
+
|
19
|
+
conn = Faraday.new(url: upload_api_url) do |faraday|
|
17
20
|
faraday.request :multipart
|
18
21
|
faraday.request :url_encoded
|
19
22
|
# faraday.response :logger
|
@@ -56,7 +59,7 @@ module Fastlane
|
|
56
59
|
UI.verbose "Response Body: #{response.body}"
|
57
60
|
status = response.body["status"]
|
58
61
|
if status
|
59
|
-
UI.success "Build uploaded
|
62
|
+
UI.success "Build uploaded successfully! 💪"
|
60
63
|
Actions.lane_context[SharedValues::APPLIVERY_BUILD_ID] = response.body["data"]["id"]
|
61
64
|
else
|
62
65
|
UI.error "Oops! Something went wrong.... 🔥"
|
@@ -149,6 +152,12 @@ module Fastlane
|
|
149
152
|
description: "List of groups that will be notified",
|
150
153
|
optional: true,
|
151
154
|
type: String),
|
155
|
+
|
156
|
+
FastlaneCore::ConfigItem.new(key: :tenant,
|
157
|
+
env_name: "APPLIVERY_TENANT",
|
158
|
+
description: "Your private tenant name or base domain",
|
159
|
+
optional: true,
|
160
|
+
type: String),
|
152
161
|
]
|
153
162
|
end
|
154
163
|
|
@@ -17,6 +17,13 @@ module Fastlane
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
+
def self.get_base_domain(tenant = nil)
|
21
|
+
default_domain = "applivery.io"
|
22
|
+
return default_domain if tenant.nil? || tenant.strip.empty?
|
23
|
+
return tenant if tenant.include?(".")
|
24
|
+
return "#{tenant}.#{default_domain}"
|
25
|
+
end
|
26
|
+
|
20
27
|
def self.get_integration_number
|
21
28
|
xcodeIntegrationNumber = ENV["XCS_INTEGRATION_NUMBER"] # XCode Server
|
22
29
|
jenkinsIntegrationNumber = ENV["BUILD_NUMBER"] # Jenkins
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-applivery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alejandro Jimenez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|