fastlane-plugin-altool 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -6
- data/lib/fastlane/plugin/altool/actions/altool_action.rb +6 -7
- data/lib/fastlane/plugin/altool/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8aaa81cf1e1c20d898fdfd47918fe7e5418949d5
|
4
|
+
data.tar.gz: 19b8cba4ce4dd42fa3ed537bc45ab4b16889af55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d30b521efc02231a05a4af67a98c1d94f4278b4c2325d135c6fe6926d0c5611e690020f14c91dba50d412f6a66f77daa82ad1952257ea4ae3965fabd4294e1a
|
7
|
+
data.tar.gz: 428d57a1f8b2c4e09a7a2ff7c385ca9e483ce0c8cd29cebbbb5f9e4bf808b341398532800f42196dcfc0f2ce2f79708bad634eeb0fe11c70f97df3acb3b8cf61
|
data/README.md
CHANGED
@@ -12,23 +12,37 @@ This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To
|
|
12
12
|
fastlane add_plugin altool
|
13
13
|
```
|
14
14
|
|
15
|
+
## Pre-requisite
|
16
|
+
|
17
|
+
This plaugin has configurable Apple ID and password but you probably don't want to hardcode that. You need to have Fastlane setup with `FASTLANE_USER` and `FASTLANE_PASSWORD` environmenal varibales setup. Fastlane will ask it when you run `fastlane init` but if not you have to set these variables.
|
18
|
+
|
19
|
+
You can set that easily for bash shell
|
20
|
+
|
21
|
+
```
|
22
|
+
$ export FASTLANE_USER="your_apple_id@yourcompany.com";
|
23
|
+
$ export FASTLANE_PASSWORD="your_super_xecret_password";
|
24
|
+
|
25
|
+
```
|
26
|
+
|
27
|
+
You can do the same for your choice of shell if you aren't using bash.
|
28
|
+
|
29
|
+
|
15
30
|
## About altool
|
16
31
|
|
17
|
-
|
32
|
+
This plugin can be used to upload IPA to iTunes Connect using altool.
|
18
33
|
|
19
34
|
Currently Fastlane deliver uses iTMSTransporter to upload an ipa files to iTunes Connect but there is slick way to do this using `altool`
|
20
35
|
|
21
|
-
This plugin can be used for uploading generated ipa file using Gym to iTunes Connect.
|
36
|
+
This plugin can be used for uploading generated `ipa` file using Gym to iTunes Connect.
|
22
37
|
|
23
|
-
This plugin assume that, you already have that Fastlane setup and your details are configured as ENV variables in FASTLANE_USER and FASTLANE_PASSWORD by default.
|
38
|
+
This plugin assume that, you already have that Fastlane setup and your details are configured as ENV variables in `FASTLANE_USER` and `FASTLANE_PASSWORD` by default.
|
24
39
|
|
25
40
|
|
26
|
-
##
|
41
|
+
## Usage
|
27
42
|
|
28
43
|
You can configure this plaugin using
|
29
44
|
|
30
45
|
```
|
31
|
-
lane :upload_ipa_altool do
|
32
46
|
altool(
|
33
47
|
altool_username: ENV["FASTLANE_USER"],
|
34
48
|
altool_password: ENV["FASTLANE_PASSWORD"],
|
@@ -37,9 +51,11 @@ lane :upload_ipa_altool do
|
|
37
51
|
altool_output_format: "xml",
|
38
52
|
)
|
39
53
|
|
40
|
-
end
|
41
54
|
```
|
42
55
|
|
56
|
+
## Example Project Repo
|
57
|
+
|
58
|
+
This is a example project [Altool-Demo](https://github.com/Shashikant86/Altool-Demo) available on Github which has its own README.
|
43
59
|
|
44
60
|
## Run tests for this plugin
|
45
61
|
|
@@ -4,20 +4,19 @@ require_relative '../helper/altool_helper'
|
|
4
4
|
module Fastlane
|
5
5
|
module Actions
|
6
6
|
class AltoolAction < Action
|
7
|
+
ALTOOL= File.expand_path('/Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool')
|
8
|
+
puts ALTOOL
|
7
9
|
def self.run(params)
|
8
|
-
|
9
|
-
unless File.exist? altool_path
|
10
|
-
UI.user_error!("altool binary not found. Please check your Xcode installtion")
|
11
|
-
end
|
10
|
+
UI.message(" ----altool binary exists on your machine----- ")
|
12
11
|
|
13
12
|
altool_app_type = params[:altool_app_type]
|
14
13
|
altool_ipa_path = params[:altool_ipa_path]
|
15
14
|
altool_username = params[:altool_username]
|
16
15
|
altool_password = params[:altool_password]
|
17
16
|
altool_output_format = params[:altool_output_format]
|
18
|
-
|
17
|
+
UI.message("========Validating and Uploading your ipa file to iTunes Connect=========")
|
19
18
|
command = [
|
20
|
-
|
19
|
+
ALTOOL,
|
21
20
|
'--upload-app',
|
22
21
|
'-t',
|
23
22
|
altool_app_type,
|
@@ -30,8 +29,8 @@ module Fastlane
|
|
30
29
|
'--output-format',
|
31
30
|
altool_output_format
|
32
31
|
]
|
33
|
-
|
34
32
|
Actions.sh(command.join(' '))
|
33
|
+
UI.message("========It maight take so long time to fully upload your IPA files=========")
|
35
34
|
end
|
36
35
|
|
37
36
|
def self.description
|