fastlane-plugin-appforshare 1.2.0 → 1.3.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: 997bd1bba9545b7966145f8a913ddc13d1131af2987435a6c1773a952bc29f17
|
|
4
|
+
data.tar.gz: ed7d5e5f2a57408a234378bfb3134d42c067e995519bbce15d14681b9b7494d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5701bff050817b5ebf2aef2459365c464e77c5f30c88ac32594d9a43aff3d474ddc7f104f80cf4e7983f7cc236d175b0d9a13cd16a09014b7e824f3601dac86e
|
|
7
|
+
data.tar.gz: 49842d13f44b27f3e47dcf678445063f880fc2e578b3a60fb9202c22a1e102186dc5c8fc1f046a09eafaa3953b96d2b209ef4801fc25308b7f7d622d0dd06196
|
data/README.md
CHANGED
|
@@ -26,6 +26,8 @@ the build from gym (`IPA_OUTPUT_PATH`) or gradle (`GRADLE_APK_OUTPUT_PATH`).
|
|
|
26
26
|
| `channel` | `APPFORSHARE_CHANNEL` | Put the build into a channel (`beta`, `live`), created on first use. Its link always opens the newest build in it (Pro and Team) |
|
|
27
27
|
| `groups` | `APPFORSHARE_GROUPS` | Share the build with these tester groups when it is ready (Team) |
|
|
28
28
|
| `testers` | `APPFORSHARE_TESTERS` | Share the build with these tester emails when it is ready (Team) |
|
|
29
|
+
| `email` | `APPFORSHARE_EMAIL` | Email the install link to up to 5 addresses when it is ready (Pro and Team) |
|
|
30
|
+
| `password` | `APPFORSHARE_PASSWORD` | Protect the install link with a password (4 to 128 characters) |
|
|
29
31
|
| `fail_on` | `APPFORSHARE_FAIL_ON` | `blocked` or `review`: fail the lane on the store readiness check. The build stays uploaded. |
|
|
30
32
|
|
|
31
33
|
Lane context after the action: `APPFORSHARE_URL`, `APPFORSHARE_SLUG`, `APPFORSHARE_READINESS`, and with `channel:`
|
|
@@ -17,7 +17,8 @@ module Fastlane
|
|
|
17
17
|
UI.user_error!('No build to upload. Pass file: or run gym / gradle first.') unless file && File.exist?(file)
|
|
18
18
|
client = Helper::AppforshareClient.new(token: params[:api_token], api: params[:api_url], log: ->(m) { UI.message(m) })
|
|
19
19
|
status = client.upload(file, notes: params[:release_notes], channel: params[:channel],
|
|
20
|
-
groups: Helper::AppforshareShared.list(params[:groups]), testers: Helper::AppforshareShared.list(params[:testers])
|
|
20
|
+
groups: Helper::AppforshareShared.list(params[:groups]), testers: Helper::AppforshareShared.list(params[:testers]),
|
|
21
|
+
emails: Helper::AppforshareShared.list(params[:email]), password: params[:password])
|
|
21
22
|
readiness = 'unknown'
|
|
22
23
|
findings = []
|
|
23
24
|
begin
|
|
@@ -83,6 +84,8 @@ module Fastlane
|
|
|
83
84
|
FastlaneCore::ConfigItem.new(key: :channel, env_name: 'APPFORSHARE_CHANNEL', description: 'Put the build into this channel (Beta, Live), created on first use (Pro and Team)', optional: true),
|
|
84
85
|
FastlaneCore::ConfigItem.new(key: :groups, env_name: 'APPFORSHARE_GROUPS', description: 'Share the build with these tester groups when ready (Team)', optional: true, type: Array),
|
|
85
86
|
FastlaneCore::ConfigItem.new(key: :testers, env_name: 'APPFORSHARE_TESTERS', description: 'Share the build with these tester emails when ready (Team)', optional: true, type: Array),
|
|
87
|
+
FastlaneCore::ConfigItem.new(key: :email, env_name: 'APPFORSHARE_EMAIL', description: 'Email the install link to up to 5 addresses when ready (Pro and Team)', optional: true, type: Array),
|
|
88
|
+
FastlaneCore::ConfigItem.new(key: :password, env_name: 'APPFORSHARE_PASSWORD', description: 'Protect the install link with a password (4 to 128 characters)', optional: true, sensitive: true),
|
|
86
89
|
FastlaneCore::ConfigItem.new(key: :fail_on, env_name: 'APPFORSHARE_FAIL_ON', description: 'Fail the lane when store readiness is "blocked", or "review"', optional: true,
|
|
87
90
|
verify_block: proc { |v| UI.user_error!('fail_on takes "blocked" or "review"') unless %w[blocked review].include?(v) }),
|
|
88
91
|
FastlaneCore::ConfigItem.new(key: :api_url, env_name: 'APPFORSHARE_API', description: 'API origin', optional: true, default_value: 'https://appforshare.io')
|
|
@@ -14,13 +14,15 @@ module Fastlane
|
|
|
14
14
|
@log = log || ->(_msg) {}
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
def upload(path, notes: nil, channel: nil, groups: [], testers: [])
|
|
17
|
+
def upload(path, notes: nil, channel: nil, groups: [], testers: [], emails: [], password: nil)
|
|
18
18
|
size = File.size(path)
|
|
19
19
|
body = { fileName: File.basename(path), size: size }
|
|
20
20
|
body[:releaseNotes] = notes[0, 5000] if notes && !notes.empty?
|
|
21
21
|
body[:channel] = channel if channel && !channel.empty?
|
|
22
22
|
body[:groups] = groups unless groups.empty?
|
|
23
23
|
body[:testers] = testers unless testers.empty?
|
|
24
|
+
body[:emails] = emails unless emails.empty?
|
|
25
|
+
body[:password] = password if password && !password.empty?
|
|
24
26
|
created = request(:post, '/uploads', json: body)
|
|
25
27
|
@log.call("Uploading #{File.basename(path)} (#{format('%.1f', size / 1024.0 / 1024)} MB)")
|
|
26
28
|
offset = created['offset'] || 0
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fastlane-plugin-appforshare
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- AppForShare
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Fastlane action that uploads an .ipa or .apk to AppForShare (appforshare.io),
|
|
14
14
|
waits for it to be ready, returns the install link and the store readiness status,
|