fastlane-plugin-validate_ipa 1.0.3 → 1.0.4

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: 1d3337d4e7227f864a4b647a22950e03e7a881846757a0801b57888b17a757b9
4
- data.tar.gz: e466eaaebb6f04fee0935064d3b267e7fdf15b7a3d633c334c22f6d507266efa
3
+ metadata.gz: 3497a90c150e14d70cdbe85e12933e2146ce59bb61801b0cf4099170c8f5444c
4
+ data.tar.gz: 0a60e50657dc78dd8a0303bdcadc5ffd176001bff5c0489653d23166659ff48f
5
5
  SHA512:
6
- metadata.gz: f8a4390928714d98da1b82ac614c9d0ac2f153217567be1ff1d3798b2051730165cf49254ec7dc0c0d25de538e60e14db01a7c0582aa856af05bbd18f0f0d479
7
- data.tar.gz: 3066dc3d1ac55be220ee238d6df817bc0c826d216a64042072f545b8e4c53968592071d8d993ec6f2f97eafe7fd0d8e17a6b8a99646b50c5f835262ed8f87c8f
6
+ metadata.gz: bb8c48e7411e67a46204a8cc3e73cd4848c43ba01c8166e3fc6b5eb6165762d40bee818830b32aff05433bcac22cba83369a76f50322abdbcf66fbda40f7d95c
7
+ data.tar.gz: 9f1b241d071c8f4c5096c31978faab09e8fce74748c89e366d72e8fad1eae407741a20f936b71f04c922a7695aeb8d6b7d6cc99aa47e03dd7fa37113a3cc8743
data/README.md CHANGED
@@ -1,59 +1,52 @@
1
1
  # validate_ipa plugin
2
2
 
3
3
  [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-validate_ipa)
4
+ [![Gem Version](https://badge.fury.io/rb/fastlane-plugin-validate_ipa.svg)](https://rubygems.org/gems/fastlane-plugin-validate_ipa)
4
5
 
5
- ## Getting Started
6
+ ## About
6
7
 
7
- This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-validate_ipa`, add it to your project by running:
8
+ A [fastlane](https://github.com/fastlane/fastlane) plugin that validates IPA files using Apple's `altool`.
9
+
10
+ This plugin improves upon the [validate_app](https://github.com/fastlane-community/fastlane-plugin-validate_app) plugin, which is no longer maintained. If your Apple ID uses two-factor authentication, pass an [app-specific password](https://support.apple.com/en-us/102654).
11
+
12
+ ## Installation
8
13
 
9
14
  ```bash
10
15
  fastlane add_plugin validate_ipa
11
16
  ```
12
17
 
13
- ## About validate_ipa
18
+ Or add to your `Gemfile`:
14
19
 
15
- Validate the IPA using altool. Improved the [validate_app](https://github.com/fastlane-community/fastlane-plugin-validate_app) plugin, which is no longer maintained. If your Apple ID is using Two-factor authentication, you will need to pass an app-specific password.
16
-
17
- ## Example
20
+ ```ruby
21
+ gem 'fastlane-plugin-validate_ipa'
22
+ ```
18
23
 
19
- 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`.
24
+ ## Usage
20
25
 
21
26
  ```ruby
22
- lane :test do
27
+ lane :validate do
23
28
  validate_ipa(
24
- path: "result/test.ipa",
29
+ path: "build/MyApp.ipa",
25
30
  platform: "ios",
26
- username: "username",
27
- password: "password"
31
+ username: "your@apple.id",
32
+ password: "app-specific-password"
28
33
  )
29
34
  end
30
35
  ```
31
36
 
32
- ## Run tests for this plugin
33
-
34
- To run both the tests, and code style validation, run
37
+ ### Parameters
35
38
 
36
- ```
37
- rake
38
- ```
39
-
40
- To automatically fix many of the styling issues, use
41
- ```
42
- rubocop -a
43
- ```
39
+ | Key | Description | Env Var | Required |
40
+ |-----|-------------|---------|----------|
41
+ | `path` | Path to the IPA file | `FL_VALIDATE_IPA_PATH` | Yes |
42
+ | `platform` | Target platform (`ios` or `macos`) | `FL_VALIDATE_IPA_PLATFORM` | Yes |
43
+ | `username` | Apple ID | `FL_VALIDATE_IPA_USERNAME` | Yes |
44
+ | `password` | Apple ID or app-specific password | `FL_VALIDATE_IPA_PASSWORD` | Yes |
44
45
 
45
46
  ## Issues and Feedback
46
47
 
47
- For any other issues and feedback about this plugin, please submit it to this repository.
48
-
49
- ## Troubleshooting
50
-
51
- If you have trouble using plugins, check out the [Plugins Troubleshooting](https://docs.fastlane.tools/plugins/plugins-troubleshooting/) guide.
52
-
53
- ## Using _fastlane_ Plugins
54
-
55
- For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/).
48
+ For any issues and feedback, please [open an issue](https://github.com/binaryloader/fastlane-plugin-validate_ipa/issues).
56
49
 
57
- ## About _fastlane_
50
+ ## License
58
51
 
59
- _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).
52
+ This plugin is available under the MIT license. See the [LICENSE](LICENSE) file for details.
@@ -24,8 +24,13 @@ module Fastlane
24
24
  split_result = output.split("\n")
25
25
  result = split_result[-1]
26
26
  plist = Plist.parse_xml(result)
27
+
28
+ if plist.nil?
29
+ UI.user_error!("Failed to parse altool output. Raw output:\n#{output}")
30
+ end
31
+
27
32
  errors = plist["product-errors"]
28
-
33
+
29
34
  if errors.nil?
30
35
  UI.success("IPA validation success => " + plist["success-message"])
31
36
  else
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module ValidateIpa
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-validate_ipa
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - binaryloader