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: 45a858285aceb1aa48afb0a85e362a35309aad321f02bd150651009c3c2985c3
4
- data.tar.gz: 3d56ec9f6e88bb9596d2ba61870163fb134c17e34045d76b15182be1a084013f
3
+ metadata.gz: 6b0950314e816dce7063d2e41c6d60fb9eecbe32bcacbf6b2f50ed5263cf7d73
4
+ data.tar.gz: 4f5c270ea7b0daa6eb0b2219d081c5427b5deab3b7114bd055103ae056850c1a
5
5
  SHA512:
6
- metadata.gz: a9a542f8eb7b7c23eed9d2846650d8a24ee1c55c567499e985f2e92681cdaeaf9f82c4ce91a19310e929531682711d30360a467321a545ba4c5685e317f93191
7
- data.tar.gz: 77ae25bcbef573d9d898db7739f66be4ac6d06adacfbd284fab2c7ddaa3d7fa40fb381556eff1bed362d12483f6584074df93d13fd9857740226ad3fa3a39974
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
- > This is in BETA mode. Your feedback is highly appreciated.
3
+ > BETA mode. Your feedback is highly appreciated.
4
4
 
5
- A fastlane plugin to upload both Android & iOS apps to TestApp.io to notify everyone for testing and feedback.
5
+ A Fastlane plugin to upload both Android & iOS apps to TestApp.io to notify everyone for testing and feedback.
6
6
 
7
- #### Version 1.0
8
-
9
- <!-- [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](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
+ [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-testappio) [![Gem Version](https://badge.fury.io/rb/fastlane-plugin-testappio.svg)](https://badge.fury.io/rb/fastlane-plugin-testappio)
19
8
 
20
9
  ## Getting started
21
10
 
22
- 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:
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://github.com/testappio/cli)
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
- Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
39
+ To upload after the Fastlane `gym` action:
33
40
 
34
- To upload after the fastlane `gym` action:
41
+ ##### iOS
35
42
 
36
43
  ```ruby
37
- lane :development do
38
- match(type: "development")
39
- gym(export_method: "development")
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
- release: "both",
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: false
56
+ notify: true
50
57
  )
58
+
59
+ clean_build_artifacts #optional
60
+
51
61
  end
52
62
  ```
53
63
 
54
- ### Action **upload_to_testappio**
64
+ ##### Android
55
65
 
56
- Upload Android (APK) & iOS (IPA) files to TestApp.io and notify your team members
66
+ ```ruby
67
+ lane :beta do
57
68
 
58
- | Key | Description | Env Var(s) | Default |
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
- ## Issues and feedback
71
+ gradle(task: "clean assembleDebug") #or clean assembleRelease
71
72
 
72
- For any other issues and feedback about this plugin, please submit it to this repository.
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
- Join our [Slack](https://join.slack.com/t/testappio/shared_invite/zt-pvpoj3l2-epGYwGTaV3~3~0f7udNWoA) channel for feedback and support or you can contact us at support@testapp.io and we'll gladly help you out!
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 _fastlane_ plugins
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
- For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/).
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
- ## About _fastlane_
105
+ Check out our [Help Center](https://help.testapp.io/) for more info and other integrations.
85
106
 
86
- _fastlane_ is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out [fastlane.tools](https://fastlane.tools).
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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Testappio
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  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.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-03-16 00:00:00.000000000 Z
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.7
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: []