fastlane-plugin-testappio 1.0.0 → 1.0.1
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: 6b0950314e816dce7063d2e41c6d60fb9eecbe32bcacbf6b2f50ed5263cf7d73
|
|
4
|
+
data.tar.gz: 4f5c270ea7b0daa6eb0b2219d081c5427b5deab3b7114bd055103ae056850c1a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3336879b4e26c8e3e7fc76686f2e38147c095cca73c2a82097a0cacdd416717c2b2f86f5959b80c02ed123d9e8f8c393af19946761d868fd1c0e7093540c788
|
|
7
|
+
data.tar.gz: 30ce02cb25454ab214560540c827051181fcd2f26804a3210b76e26add0547881fd78fb41a83030debfdd3f776268b526f01b662185f69ce1b1658a5a5ccc594
|
data/README.md
CHANGED
|
@@ -1,86 +1,107 @@
|
|
|
1
1
|
# [<img src="https://assets.testapp.io/logo/blue.svg" alt="TestApp.io"/>](https://testapp.io/) Fastlane Plugin
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> BETA mode. Your feedback is highly appreciated.
|
|
4
4
|
|
|
5
|
-
A
|
|
5
|
+
A Fastlane plugin to upload both Android & iOS apps to TestApp.io to notify everyone for testing and feedback.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<!-- [](https://rubygems.org/gems/fastlane-plugin-testappio) -->
|
|
10
|
-
|
|
11
|
-
- [TestApp.io plugin](#testappio-plugin)
|
|
12
|
-
- [Getting started](#getting-started)
|
|
13
|
-
- [TestApp.io actions](#testappio-actions)
|
|
14
|
-
- [Action **upload_to_testappio**](#action-upload_to_testappio)
|
|
15
|
-
- [Issues and feedback](#issues-and-feedback)
|
|
16
|
-
- [Troubleshooting](#troubleshooting)
|
|
17
|
-
- [Using _fastlane_ plugins](#using-fastlane-plugins)
|
|
18
|
-
- [About _fastlane_](#about-fastlane)
|
|
7
|
+
[](https://rubygems.org/gems/fastlane-plugin-testappio) [](https://badge.fury.io/rb/fastlane-plugin-testappio)
|
|
19
8
|
|
|
20
9
|
## Getting started
|
|
21
10
|
|
|
22
|
-
This project is a [
|
|
11
|
+
This project is a [_Fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-testappio`, add it to your project by running:
|
|
23
12
|
|
|
24
13
|
```bash
|
|
25
14
|
fastlane add_plugin testappio
|
|
26
15
|
```
|
|
27
16
|
|
|
17
|
+
## Configuration
|
|
18
|
+
|
|
19
|
+
_More info here: [https://help.testapp.io/ta-cli](https://help.testapp.io/ta-cli/)_
|
|
20
|
+
|
|
21
|
+
| Key | Description | Env Var(s) | Default |
|
|
22
|
+
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------ | --------------------------- | ------- |
|
|
23
|
+
| api_token | You can get it from https://portal.testapp.io/settings/api-credentials | TESTAPPIO_API_TOKEN | |
|
|
24
|
+
| app_id | You can get it from your app page at [https://portal.testapp.io/apps](https://portal.testapp.io/apps?action=select-for-integrations) | TESTAPPIO_APP_ID | |
|
|
25
|
+
| release | It can be either both or Android or iOS | TESTAPPIO_RELEASE | |
|
|
26
|
+
| apk_file | Path to the Android APK file | TESTAPPIO_ANDROID_PATH | |
|
|
27
|
+
| ipa_file | Path to the iOS IPA file | TESTAPPIO_IOS_PATH | |
|
|
28
|
+
| release_notes | Manually add the release notes to be displayed for the testers | TESTAPPIO_RELEASE_NOTES | |
|
|
29
|
+
| git_release_notes | Collect release notes from the latest git commit message to be displayed for the testers: true or false | TESTAPPIO_GIT_RELEASE_NOTES | true |
|
|
30
|
+
| git_commit_id | Include the last commit ID in the release notes (works with both release notes options): true or false | TESTAPPIO_GIT_COMMIT_ID | false |
|
|
31
|
+
| notify | Send notifications to your team members about this release: true or false | TESTAPPIO_NOTIFY | false |
|
|
32
|
+
|
|
28
33
|
## TestApp.io actions
|
|
29
34
|
|
|
30
|
-
Actions provided by the CLI: [ta-cli](https://
|
|
35
|
+
Actions provided by the CLI: [ta-cli](https://help.testapp.io/ta-cli/)
|
|
36
|
+
|
|
37
|
+
Check out the [example Fastfile](https://github.com/testappio/fastlane-plugin-testappio/blob/main/fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
|
|
31
38
|
|
|
32
|
-
|
|
39
|
+
To upload after the Fastlane `gym` action:
|
|
33
40
|
|
|
34
|
-
|
|
41
|
+
##### iOS
|
|
35
42
|
|
|
36
43
|
```ruby
|
|
37
|
-
lane :
|
|
38
|
-
|
|
39
|
-
|
|
44
|
+
lane :beta do
|
|
45
|
+
|
|
46
|
+
increment_build_number
|
|
47
|
+
match(type: "adhoc")
|
|
48
|
+
gym(export_method: "ad-hoc")
|
|
49
|
+
|
|
40
50
|
upload_to_testappio(
|
|
41
51
|
api_token: "Your API Token",
|
|
42
52
|
app_id: "Your App ID",
|
|
43
|
-
|
|
44
|
-
apk_file: "/full/path/to/app.apk",
|
|
45
|
-
ipa_file: "/full/path/to/app.ipa",
|
|
46
|
-
release_notes: "release notes go here",
|
|
53
|
+
release_notes: "My release notes here...",
|
|
47
54
|
git_release_notes: true,
|
|
48
55
|
git_commit_id: false,
|
|
49
|
-
notify:
|
|
56
|
+
notify: true
|
|
50
57
|
)
|
|
58
|
+
|
|
59
|
+
clean_build_artifacts #optional
|
|
60
|
+
|
|
51
61
|
end
|
|
52
62
|
```
|
|
53
63
|
|
|
54
|
-
|
|
64
|
+
##### Android
|
|
55
65
|
|
|
56
|
-
|
|
66
|
+
```ruby
|
|
67
|
+
lane :beta do
|
|
57
68
|
|
|
58
|
-
|
|
59
|
-
| ----------------- | ------------------------------------------------------------------------------------------------------- | --------------------------- | ------- |
|
|
60
|
-
| api_token | You can get it from https://portal.testapp.io/settings/api-credentials | TESTAPPIO_API_TOKEN | |
|
|
61
|
-
| app_id | You can get it from your app page in https://portal.testapp.io/apps | TESTAPPIO_APP_ID | |
|
|
62
|
-
| release | It can be either both or android or ios | TESTAPPIO_RELEASE | |
|
|
63
|
-
| apk_file | Path to the android apk file | TESTAPPIO_ANDROID_PATH | |
|
|
64
|
-
| ipa_file | Path to the ios ipa file | TESTAPPIO_IOS_PATH | |
|
|
65
|
-
| release_notes | Manually add the release notes to be displayed for the testers | TESTAPPIO_RELEASE_NOTES | |
|
|
66
|
-
| git_release_notes | Collect release notes from the latest git commit message to be displayed for the testers: true or false | TESTAPPIO_GIT_RELEASE_NOTES | true |
|
|
67
|
-
| git_commit_id | Include the last commit ID in the release notes (works with both release notes option): true or false | TESTAPPIO_GIT_COMMIT_ID | false |
|
|
68
|
-
| notify | Send notificaitons to your team members about this release: true or false | TESTAPPIO_NOTIFY | false |
|
|
69
|
+
increment_version_code #[Optional] fastlane add_plugin increment_version_code
|
|
69
70
|
|
|
70
|
-
|
|
71
|
+
gradle(task: "clean assembleDebug") #or clean assembleRelease
|
|
71
72
|
|
|
72
|
-
|
|
73
|
+
upload_to_testappio(
|
|
74
|
+
api_token: "Your API Token", #You can get it from https://portal.testapp.io/settings/api-credentials
|
|
75
|
+
app_id: "Your App ID", #You can get it from your app page in https://portal.testapp.io/apps
|
|
76
|
+
release_notes: "My release notes here...",
|
|
77
|
+
git_release_notes: true,
|
|
78
|
+
git_commit_id: false,
|
|
79
|
+
notify: true
|
|
80
|
+
)
|
|
73
81
|
|
|
74
|
-
|
|
82
|
+
end
|
|
83
|
+
```
|
|
75
84
|
|
|
76
85
|
## Troubleshooting
|
|
77
86
|
|
|
78
87
|
If you have trouble using plugins, check out the [Plugins Troubleshooting](https://docs.fastlane.tools/plugins/plugins-troubleshooting/) guide.
|
|
79
88
|
|
|
80
|
-
## Using
|
|
89
|
+
## Using _Fastlane_ plugins
|
|
90
|
+
|
|
91
|
+
Check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/) for more information about how the plugin system works.
|
|
92
|
+
|
|
93
|
+
## About _Fastlane_
|
|
94
|
+
|
|
95
|
+
_Fastlane_ is the easiest way to automate beta deployments and releases for iOS and Android apps. To learn more, check out [fastlane.tools](https://fastlane.tools).
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## Feedback & Support
|
|
100
|
+
|
|
101
|
+
Developers built [TestApp.io](https://testapp.io) to solve the pain of app distribution for mobile app development teams.
|
|
81
102
|
|
|
82
|
-
|
|
103
|
+
Join our [Slack](https://join.slack.com/t/testappio/shared_invite/zt-pvpoj3l2-epGYwGTaV3~3~0f7udNWoA) channel for feedback and support.
|
|
83
104
|
|
|
84
|
-
|
|
105
|
+
Check out our [Help Center](https://help.testapp.io/) for more info and other integrations.
|
|
85
106
|
|
|
86
|
-
|
|
107
|
+
Happy releasing 🎉
|
|
@@ -81,7 +81,7 @@ module Fastlane
|
|
|
81
81
|
end),
|
|
82
82
|
FastlaneCore::ConfigItem.new(key: :app_id,
|
|
83
83
|
env_name: "TESTAPPIO_APP_ID",
|
|
84
|
-
description: "You can get it from your app page in https://portal.testapp.io/apps",
|
|
84
|
+
description: "You can get it from your app page in https://portal.testapp.io/apps?action=select-for-integrations",
|
|
85
85
|
is_string: false),
|
|
86
86
|
FastlaneCore::ConfigItem.new(key: :release,
|
|
87
87
|
env_name: "TESTAPPIO_RELEASE",
|
|
@@ -30,6 +30,19 @@ module Fastlane
|
|
|
30
30
|
UI.user_error!('Error while calling ta-cli') if fatal
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
+
def self.handle_force_update(outs, command)
|
|
34
|
+
fatal = false
|
|
35
|
+
outs.each do |error|
|
|
36
|
+
if error
|
|
37
|
+
if error =~ /Update is required because of breaking changes/
|
|
38
|
+
UI.command(`curl -Ls https://github.com/testappio/cli/releases/latest/download/install | bash`)
|
|
39
|
+
call_ta_cli(command)
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
UI.user_error!('Error while updating ta-cli') if fatal
|
|
44
|
+
end
|
|
45
|
+
|
|
33
46
|
# Run the given command
|
|
34
47
|
def self.call_ta_cli(command)
|
|
35
48
|
UI.message("Starting ta-cli...")
|
|
@@ -54,6 +67,7 @@ module Fastlane
|
|
|
54
67
|
unless exit_status.success? && error.empty?
|
|
55
68
|
handle_error(error)
|
|
56
69
|
end
|
|
70
|
+
handle_force_update(out, command)
|
|
57
71
|
end
|
|
58
72
|
out.join
|
|
59
73
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fastlane-plugin-testappio
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- TestApp.io
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-12-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -150,7 +150,7 @@ dependencies:
|
|
|
150
150
|
- - ">="
|
|
151
151
|
- !ruby/object:Gem::Version
|
|
152
152
|
version: '0'
|
|
153
|
-
description:
|
|
153
|
+
description:
|
|
154
154
|
email: support@testapp.io
|
|
155
155
|
executables: []
|
|
156
156
|
extensions: []
|
|
@@ -166,7 +166,7 @@ homepage: https://github.com/testappio/fastlane-plugin-testappio
|
|
|
166
166
|
licenses:
|
|
167
167
|
- MIT
|
|
168
168
|
metadata: {}
|
|
169
|
-
post_install_message:
|
|
169
|
+
post_install_message:
|
|
170
170
|
rdoc_options: []
|
|
171
171
|
require_paths:
|
|
172
172
|
- lib
|
|
@@ -181,8 +181,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
181
181
|
- !ruby/object:Gem::Version
|
|
182
182
|
version: '0'
|
|
183
183
|
requirements: []
|
|
184
|
-
rubygems_version: 3.3.
|
|
185
|
-
signing_key:
|
|
184
|
+
rubygems_version: 3.0.3.1
|
|
185
|
+
signing_key:
|
|
186
186
|
specification_version: 4
|
|
187
187
|
summary: Deploy your Android & iOS to TestApp.io
|
|
188
188
|
test_files: []
|