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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3497a90c150e14d70cdbe85e12933e2146ce59bb61801b0cf4099170c8f5444c
|
|
4
|
+
data.tar.gz: 0a60e50657dc78dd8a0303bdcadc5ffd176001bff5c0489653d23166659ff48f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
[](https://rubygems.org/gems/fastlane-plugin-validate_ipa)
|
|
4
|
+
[](https://rubygems.org/gems/fastlane-plugin-validate_ipa)
|
|
4
5
|
|
|
5
|
-
##
|
|
6
|
+
## About
|
|
6
7
|
|
|
7
|
-
|
|
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
|
-
|
|
18
|
+
Or add to your `Gemfile`:
|
|
14
19
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
```ruby
|
|
21
|
+
gem 'fastlane-plugin-validate_ipa'
|
|
22
|
+
```
|
|
18
23
|
|
|
19
|
-
|
|
24
|
+
## Usage
|
|
20
25
|
|
|
21
26
|
```ruby
|
|
22
|
-
lane :
|
|
27
|
+
lane :validate do
|
|
23
28
|
validate_ipa(
|
|
24
|
-
path: "
|
|
29
|
+
path: "build/MyApp.ipa",
|
|
25
30
|
platform: "ios",
|
|
26
|
-
username: "
|
|
27
|
-
password: "password"
|
|
31
|
+
username: "your@apple.id",
|
|
32
|
+
password: "app-specific-password"
|
|
28
33
|
)
|
|
29
34
|
end
|
|
30
35
|
```
|
|
31
36
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
To run both the tests, and code style validation, run
|
|
37
|
+
### Parameters
|
|
35
38
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
|
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
|
-
##
|
|
50
|
+
## License
|
|
58
51
|
|
|
59
|
-
|
|
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
|