fastlane-plugin-connected 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +9 -0
- data/README.md +82 -0
- data/lib/fastlane/plugin/connected.rb +16 -0
- data/lib/fastlane/plugin/connected/actions/connected_auth_action.rb +73 -0
- data/lib/fastlane/plugin/connected/actions/connected_certs_action.rb +68 -0
- data/lib/fastlane/plugin/connected/actions/connected_upload_action.rb +99 -0
- data/lib/fastlane/plugin/connected/helper/connected_helper.rb +130 -0
- data/lib/fastlane/plugin/connected/version.rb +5 -0
- metadata +176 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 76d03b60e1e363d721f9ea61cafc6624bd58cfc3bda1c34ac52b754e45cef2b1
|
4
|
+
data.tar.gz: a6cf1b9fe31377c6d129ab93db808ee07a530cf3bcb7a6dfe284b5fa2da65600
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4bf8d9b9682d13c6a16ca517310de53f71fbf2678b11963c624a95a151f9ca83a39b69749978cadc20e9834262fa37df735687fbd3fe4b56ae495a4440324e10
|
7
|
+
data.tar.gz: 346db59258616ceaa58808974cc029dce87fb3f0a4ffa8a3f139733d05aa5d957ee4b21125fa9f06f6e25bd5513f17623b4520250cb3438ff2f494950f9c7e20
|
data/LICENSE
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) Blitzm System Pty Ltd
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
6
|
+
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
8
|
+
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
![fastlane Plugin Badge](./readme_assets/logo.png)
|
2
|
+
|
3
|
+
# Connected Fastlane Plugin
|
4
|
+
|
5
|
+
[![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-connected)
|
6
|
+
|
7
|
+
## About connected
|
8
|
+
|
9
|
+
A fastlane plugin which interacts with a 3rd party ruby App Store Connect sdk (https://github.com/kyledecot/app_store_connect).
|
10
|
+
|
11
|
+
This plugin is used for all interactions with the app store connect api except for uploading apps. This plugin uses `altool` (an XCode command line tool) and your app store connect api key to upload apps.
|
12
|
+
|
13
|
+
This plugin has [3 actions](lib/fastlane/plugin/connected/actions)
|
14
|
+
|
15
|
+
- **connected_auth**
|
16
|
+
|
17
|
+
- Retrieves app store connect api session data
|
18
|
+
|
19
|
+
- **connected_certs**
|
20
|
+
|
21
|
+
- Fetches all the provisioning profiles for a given app and installs their certificates
|
22
|
+
- Requires you to have create your provisioning profile for your app manually
|
23
|
+
|
24
|
+
- **connected_upload**
|
25
|
+
- Uploads your app to TestFlight
|
26
|
+
|
27
|
+
Please post requests for new features for this plugin as it is still very barebones.
|
28
|
+
|
29
|
+
## Getting Started
|
30
|
+
|
31
|
+
This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-connected`, add it to your project by running:
|
32
|
+
|
33
|
+
```shell
|
34
|
+
fastlane add_plugin connected
|
35
|
+
```
|
36
|
+
|
37
|
+
I recommend setting up these env variable in your CI
|
38
|
+
|
39
|
+
```shell
|
40
|
+
# The content of your app store key .p8 file
|
41
|
+
CONNECT_API_KEY=""
|
42
|
+
|
43
|
+
# Your app store connect key id
|
44
|
+
CONNECT_KEY_ID=""
|
45
|
+
|
46
|
+
# Your app store connect key issuer id
|
47
|
+
CONNECT_KEY_ISSUER_ID=""
|
48
|
+
```
|
49
|
+
|
50
|
+
## Example
|
51
|
+
|
52
|
+
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`.
|
53
|
+
|
54
|
+
## Run tests for this plugin
|
55
|
+
|
56
|
+
To run both the tests, and code style validation, run
|
57
|
+
|
58
|
+
```
|
59
|
+
rake
|
60
|
+
```
|
61
|
+
|
62
|
+
To automatically fix many of the styling issues, use
|
63
|
+
|
64
|
+
```
|
65
|
+
rubocop -a
|
66
|
+
```
|
67
|
+
|
68
|
+
## Issues and Feedback
|
69
|
+
|
70
|
+
For any other issues and feedback about this plugin, please submit it to this repository.
|
71
|
+
|
72
|
+
## Troubleshooting
|
73
|
+
|
74
|
+
If you have trouble using plugins, check out the [Plugins Troubleshooting](https://docs.fastlane.tools/plugins/plugins-troubleshooting/) guide.
|
75
|
+
|
76
|
+
## Using _fastlane_ Plugins
|
77
|
+
|
78
|
+
For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/).
|
79
|
+
|
80
|
+
## About _fastlane_
|
81
|
+
|
82
|
+
_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).
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'fastlane/plugin/connected/version'
|
2
|
+
|
3
|
+
module Fastlane
|
4
|
+
module Connected
|
5
|
+
# Return all .rb files inside the "actions" and "helper" directory
|
6
|
+
def self.all_classes
|
7
|
+
Dir[File.expand_path('**/{actions,helper}/*.rb', File.dirname(__FILE__))]
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
# By default we want to import all available actions and helpers
|
13
|
+
# A plugin can contain any number of actions and plugins
|
14
|
+
Fastlane::Connected.all_classes.each do |current|
|
15
|
+
require current
|
16
|
+
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
require 'fastlane/action'
|
2
|
+
require_relative '../helper/connected_helper'
|
3
|
+
require "app_store_connect"
|
4
|
+
|
5
|
+
module Fastlane
|
6
|
+
module Actions
|
7
|
+
class ConnectedAuthAction < Action
|
8
|
+
def self.run(params)
|
9
|
+
api_key = params.values[:api_key]
|
10
|
+
key_id = params.values[:key_id]
|
11
|
+
issuer_id = params.values[:issuer_id]
|
12
|
+
|
13
|
+
if api_key == '*'
|
14
|
+
UI.success("Successfully Authenticated with App Store Connect!")
|
15
|
+
return
|
16
|
+
end
|
17
|
+
|
18
|
+
AppStoreConnect.config = {
|
19
|
+
issuer_id: issuer_id,
|
20
|
+
key_id: key_id,
|
21
|
+
private_key: api_key
|
22
|
+
}
|
23
|
+
|
24
|
+
UI.success("Successfully Authenticated with App Store Connect!")
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.description
|
28
|
+
"App Store Connect API Authentication Module"
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.authors
|
32
|
+
["Abgier Avraha"]
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.return_value
|
36
|
+
# If your method provides a return value, you can describe here what it does
|
37
|
+
end
|
38
|
+
|
39
|
+
def self.details
|
40
|
+
# Optional:
|
41
|
+
""
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.available_options
|
45
|
+
[
|
46
|
+
FastlaneCore::ConfigItem.new(key: :api_key,
|
47
|
+
env_name: "CONNECT_API_KEY",
|
48
|
+
description: "You app store connect api key",
|
49
|
+
optional: false,
|
50
|
+
type: String),
|
51
|
+
FastlaneCore::ConfigItem.new(key: :key_id,
|
52
|
+
env_name: "CONNECT_KEY_ID",
|
53
|
+
description: "You app store connect key id",
|
54
|
+
optional: false,
|
55
|
+
type: String),
|
56
|
+
FastlaneCore::ConfigItem.new(key: :issuer_id,
|
57
|
+
env_name: "CONNECT_KEY_ISSUER_ID",
|
58
|
+
description: "You app store connect issuer id key",
|
59
|
+
optional: false,
|
60
|
+
type: String)
|
61
|
+
]
|
62
|
+
end
|
63
|
+
|
64
|
+
def self.is_supported?(platform)
|
65
|
+
# Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
|
66
|
+
# See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
|
67
|
+
#
|
68
|
+
# [:ios, :mac, :android].include?(platform)
|
69
|
+
true
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
require 'fastlane/action'
|
2
|
+
require_relative '../helper/connected_helper'
|
3
|
+
require "app_store_connect"
|
4
|
+
|
5
|
+
module Fastlane
|
6
|
+
module Actions
|
7
|
+
class ConnectedCertsAction < Action
|
8
|
+
def self.run(params)
|
9
|
+
app_id = params.values[:app_id]
|
10
|
+
|
11
|
+
if app_id == '*'
|
12
|
+
UI.success("Successfully Downloaded Certificates!")
|
13
|
+
return
|
14
|
+
end
|
15
|
+
app_store_connect = AppStoreConnect::Client.new
|
16
|
+
|
17
|
+
# Download profiles
|
18
|
+
UI.message("Downloading Provisioning Profiles for app: #{app_id}")
|
19
|
+
profiles = Helper::CertsHelper.download_provisioning_profiles_for_app(app_store_connect, app_id)
|
20
|
+
|
21
|
+
# Install profiles and profile certificates
|
22
|
+
profiles.each do |profile|
|
23
|
+
profile_name = profile['name']
|
24
|
+
|
25
|
+
UI.message("Installing Provisioning Profile: #{profile_name}")
|
26
|
+
installed_profile = Helper::CertsHelper.install_provisioning_profile(app_store_connect, profile)
|
27
|
+
UI.success("Succesfully Installed Provisioning Profile: #{profile_name}")
|
28
|
+
|
29
|
+
UI.message("Installing Certificates from Provisioning Profile: #{profile_name}")
|
30
|
+
Helper::CertsHelper.install_certificates_from_provisioning_profile(app_store_connect, installed_profile)
|
31
|
+
UI.success("Successfully Installed Certificates for Provisioning Profile: #{profile_name}\n")
|
32
|
+
end
|
33
|
+
|
34
|
+
UI.success("Action connected_certs completed successfully!")
|
35
|
+
end
|
36
|
+
|
37
|
+
def self.description
|
38
|
+
"App Store Connect API Certificates Module"
|
39
|
+
end
|
40
|
+
|
41
|
+
def self.authors
|
42
|
+
["Abgier Avraha"]
|
43
|
+
end
|
44
|
+
|
45
|
+
def self.return_value
|
46
|
+
# If your method provides a return value, you can describe here what it does
|
47
|
+
end
|
48
|
+
|
49
|
+
def self.details
|
50
|
+
# Optional:
|
51
|
+
""
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.available_options
|
55
|
+
[
|
56
|
+
FastlaneCore::ConfigItem.new(key: :app_id,
|
57
|
+
description: "You app's bundle identifier",
|
58
|
+
optional: false,
|
59
|
+
type: String)
|
60
|
+
]
|
61
|
+
end
|
62
|
+
|
63
|
+
def self.is_supported?(platform)
|
64
|
+
[:ios].include?(platform)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,99 @@
|
|
1
|
+
require 'fastlane/action'
|
2
|
+
require_relative '../helper/connected_helper'
|
3
|
+
require "app_store_connect"
|
4
|
+
|
5
|
+
module Fastlane
|
6
|
+
module Actions
|
7
|
+
class ConnectedUploadAction < Action
|
8
|
+
def self.run(params)
|
9
|
+
xcode_path = params.values[:xcode_dir]
|
10
|
+
ipa_file = params.values[:ipa_file]
|
11
|
+
api_key = params.values[:api_key]
|
12
|
+
issuer_id = params.values[:issuer_id]
|
13
|
+
key_id = params.values[:key_id]
|
14
|
+
|
15
|
+
if ipa_file == '*'
|
16
|
+
UI.success("Successfully Uploaded IPA File!")
|
17
|
+
return
|
18
|
+
end
|
19
|
+
|
20
|
+
# Check that ipa file exists
|
21
|
+
unless File.exist?(ipa_file)
|
22
|
+
UI.error("Could not find ipa file in #{File.expand_path(ipa_file)}")
|
23
|
+
UI.error("You can change the path to a different ipa file using the ipa_file command or IPA_FILE env variable")
|
24
|
+
raise 'Connected Fastlane plugin failed to find your ipa file'
|
25
|
+
end
|
26
|
+
|
27
|
+
# Check for xcode installation
|
28
|
+
unless File.exist?(xcode_path)
|
29
|
+
UI.error("Could not find XCode in #{File.expand_path(xcode_path)}")
|
30
|
+
UI.error("You can change the path to a different xcode installation using the xcode_dir command or DEVELOPER_DIR env variable")
|
31
|
+
raise 'Connected Fastlane plugin failed to find your xcode installation'
|
32
|
+
end
|
33
|
+
|
34
|
+
# Upload app
|
35
|
+
Helper::UploadHelper.upload_app(
|
36
|
+
ipa_file,
|
37
|
+
api_key,
|
38
|
+
issuer_id,
|
39
|
+
key_id,
|
40
|
+
xcode_path
|
41
|
+
)
|
42
|
+
|
43
|
+
UI.success("Successfully Uploaded .ipa File!")
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.description
|
47
|
+
"App Store Connect API Uploader Module"
|
48
|
+
end
|
49
|
+
|
50
|
+
def self.authors
|
51
|
+
["Abgier Avraha"]
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.return_value
|
55
|
+
# If your method provides a return value, you can describe here what it does
|
56
|
+
end
|
57
|
+
|
58
|
+
def self.details
|
59
|
+
# Optional:
|
60
|
+
""
|
61
|
+
end
|
62
|
+
|
63
|
+
def self.available_options
|
64
|
+
[
|
65
|
+
FastlaneCore::ConfigItem.new(key: :ipa_file,
|
66
|
+
env_name: "IPA_FILE",
|
67
|
+
description: "The path to your compiled .ipa file",
|
68
|
+
optional: false,
|
69
|
+
type: String),
|
70
|
+
FastlaneCore::ConfigItem.new(key: :xcode_dir,
|
71
|
+
env_name: "DEVELOPER_DIR",
|
72
|
+
description: "The path to your xcode directory",
|
73
|
+
default_value: "/Applications/Xcode.app",
|
74
|
+
optional: true,
|
75
|
+
type: String),
|
76
|
+
FastlaneCore::ConfigItem.new(key: :api_key,
|
77
|
+
env_name: "CONNECT_API_KEY",
|
78
|
+
description: "You app store connect api key",
|
79
|
+
optional: false,
|
80
|
+
type: String),
|
81
|
+
FastlaneCore::ConfigItem.new(key: :issuer_id,
|
82
|
+
env_name: "CONNECT_KEY_ISSUER_ID",
|
83
|
+
description: "You app store connect issuer id key",
|
84
|
+
optional: false,
|
85
|
+
type: String),
|
86
|
+
FastlaneCore::ConfigItem.new(key: :key_id,
|
87
|
+
env_name: "CONNECT_KEY_ID",
|
88
|
+
description: "You app store connect key id",
|
89
|
+
optional: false,
|
90
|
+
type: String)
|
91
|
+
]
|
92
|
+
end
|
93
|
+
|
94
|
+
def self.is_supported?(platform)
|
95
|
+
[:ios].include?(platform)
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
@@ -0,0 +1,130 @@
|
|
1
|
+
require 'fastlane_core/ui/ui'
|
2
|
+
require "base64"
|
3
|
+
require 'plist'
|
4
|
+
|
5
|
+
module Fastlane
|
6
|
+
UI = FastlaneCore::UI unless Fastlane.const_defined?("UI")
|
7
|
+
|
8
|
+
module Helper
|
9
|
+
class CertsHelper
|
10
|
+
# class methods that you define here become available in your action
|
11
|
+
# as `Helper::CertsHelper.your_method`
|
12
|
+
#
|
13
|
+
def self.download_provisioning_profiles_for_app(app_store_connect, app_id)
|
14
|
+
# Get profiles for bundle id
|
15
|
+
response = app_store_connect.profiles(
|
16
|
+
include: 'bundleId',
|
17
|
+
fields: {
|
18
|
+
profiles: 'bundleId',
|
19
|
+
bundle_ids: 'identifier'
|
20
|
+
}
|
21
|
+
)
|
22
|
+
|
23
|
+
unless response['errors'].nil?
|
24
|
+
response['errors'].each do |e|
|
25
|
+
UI.error("ERROR: #{e['title']} - #{e['detail']}")
|
26
|
+
end
|
27
|
+
raise "Connected Fastlane plugin couldn't fetch your provisioning profiles"
|
28
|
+
end
|
29
|
+
|
30
|
+
bundle_id = response['included']
|
31
|
+
.select { |i| i['type'] == 'bundleIds' }
|
32
|
+
.detect({}) { |i| i.dig('attributes', 'identifier') == app_id }
|
33
|
+
|
34
|
+
profiles_shallow = response['data']
|
35
|
+
.select { |d| bundle_id['id'] == d.dig('relationships', 'bundleId', 'data', 'id') }
|
36
|
+
|
37
|
+
profiles = []
|
38
|
+
profiles_shallow.each do |p|
|
39
|
+
# Get provisioning profile file content
|
40
|
+
profile_data = app_store_connect.profile(id: p['id'])
|
41
|
+
profile_id = profile_data['data']['id']
|
42
|
+
profile_name = profile_data['data']['attributes']['name'].gsub(/\s/, '')
|
43
|
+
profile_content = Base64.decode64(profile_data['data']['attributes']['profileContent'])
|
44
|
+
|
45
|
+
# Save provisioning profile to file
|
46
|
+
directory = ".temp"
|
47
|
+
Dir.mkdir(directory) unless File.exist?(directory)
|
48
|
+
profile_path = File.join(directory, "#{profile_name}_#{profile_id}.mobileprovision")
|
49
|
+
out_file = File.new(profile_path, "w+")
|
50
|
+
out_file.puts(profile_content)
|
51
|
+
out_file.close
|
52
|
+
|
53
|
+
profiles.push({ 'id' => profile_id, 'name' => profile_name, 'path' => profile_path })
|
54
|
+
end
|
55
|
+
|
56
|
+
return profiles
|
57
|
+
end
|
58
|
+
|
59
|
+
def self.install_provisioning_profile(app_store_connect, profile)
|
60
|
+
# Copy to XCode Provisioning Profiles Directory
|
61
|
+
destination = File.join(ENV['HOME'], "Library/MobileDevice/Provisioning Profiles", "#{profile['id']}.mobileprovision")
|
62
|
+
FileUtils.copy_file(profile['path'], destination)
|
63
|
+
|
64
|
+
return { 'id' => profile['id'], 'name' => profile['name'], 'path' => destination }
|
65
|
+
end
|
66
|
+
|
67
|
+
def self.install_certificates_from_provisioning_profile(app_store_connect, installed_profile)
|
68
|
+
profile_name = installed_profile['name']
|
69
|
+
profile_path = installed_profile['path']
|
70
|
+
|
71
|
+
# Decode profile
|
72
|
+
readable_profile_path = "#{profile_path}.readable"
|
73
|
+
decoded_profile = Fastlane::Actions.sh("security", "cms", "-D", "-i", profile_path)
|
74
|
+
out_file = File.new(readable_profile_path, "w+")
|
75
|
+
out_file.puts(decoded_profile)
|
76
|
+
out_file.close
|
77
|
+
|
78
|
+
profile_plist = Plist.parse_xml(readable_profile_path)
|
79
|
+
|
80
|
+
# Get certificates from profile
|
81
|
+
certificates = profile_plist["DeveloperCertificates"]
|
82
|
+
|
83
|
+
# Install certificates
|
84
|
+
directory = ".temp"
|
85
|
+
i = 1
|
86
|
+
certificates.each do |certificate|
|
87
|
+
certificate_name = "#{profile_name}_cert_#{i}.cer"
|
88
|
+
certificate_path = File.join(directory, certificate_name)
|
89
|
+
out_file = File.new(certificate_path, "w+")
|
90
|
+
out_file.puts(certificate.string)
|
91
|
+
out_file.close
|
92
|
+
self.install_certificate(certificate_path)
|
93
|
+
i += 1
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
def self.install_certificate(certificate_path)
|
98
|
+
certificate_name = File.basename(certificate_path)
|
99
|
+
Fastlane::Actions.sh("security", "import", certificate_path, "-k", File.expand_path("~/Library/Keychains/login.keychain-db"))
|
100
|
+
UI.success("Successfully installed Certificate: #{certificate_name}")
|
101
|
+
rescue StandardError => e
|
102
|
+
if e.message.include?("already exists in the keychain.")
|
103
|
+
UI.message("Certificate already exists in keychain: #{certificate_name}")
|
104
|
+
else
|
105
|
+
UI.error("Failed to install Certificate: #{certificate_name}")
|
106
|
+
raise e
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
class UploadHelper
|
112
|
+
def self.upload_app(ipa_file, api_key, issuer_id, key_id, xcode_path)
|
113
|
+
# Save auth key to file
|
114
|
+
connect_keys_dir = "#{ENV['HOME']}/.appstoreconnect"
|
115
|
+
Dir.mkdir(connect_keys_dir) unless File.exist?(connect_keys_dir)
|
116
|
+
key_dir = "#{connect_keys_dir}/private_keys"
|
117
|
+
Dir.mkdir(key_dir) unless File.exist?(key_dir)
|
118
|
+
|
119
|
+
key_path = "#{key_dir}/AuthKey_#{key_id}.p8"
|
120
|
+
out_file = File.new(key_path, "w+")
|
121
|
+
out_file.puts(api_key)
|
122
|
+
out_file.close
|
123
|
+
|
124
|
+
# Start upload
|
125
|
+
altool_path = "#{xcode_path}/Contents/Developer/usr/bin/altool"
|
126
|
+
Fastlane::Actions.sh(altool_path, "--upload-app", "--type", "ios", "--file", ipa_file, "--apiKey", key_id, "--apiIssuer", issuer_id)
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
metadata
ADDED
@@ -0,0 +1,176 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fastlane-plugin-connected
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Abgier Avraha
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-02-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: pry
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec_junit_formatter
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.49.1
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.49.1
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop-require_tools
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: simplecov
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: fastlane
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 2.134.0
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 2.134.0
|
139
|
+
description:
|
140
|
+
email: abgier@blitzm.com
|
141
|
+
executables: []
|
142
|
+
extensions: []
|
143
|
+
extra_rdoc_files: []
|
144
|
+
files:
|
145
|
+
- LICENSE
|
146
|
+
- README.md
|
147
|
+
- lib/fastlane/plugin/connected.rb
|
148
|
+
- lib/fastlane/plugin/connected/actions/connected_auth_action.rb
|
149
|
+
- lib/fastlane/plugin/connected/actions/connected_certs_action.rb
|
150
|
+
- lib/fastlane/plugin/connected/actions/connected_upload_action.rb
|
151
|
+
- lib/fastlane/plugin/connected/helper/connected_helper.rb
|
152
|
+
- lib/fastlane/plugin/connected/version.rb
|
153
|
+
homepage: https://github.com/blitzm-systems/Connected
|
154
|
+
licenses:
|
155
|
+
- MIT
|
156
|
+
metadata: {}
|
157
|
+
post_install_message:
|
158
|
+
rdoc_options: []
|
159
|
+
require_paths:
|
160
|
+
- lib
|
161
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - ">="
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
|
+
requirements:
|
168
|
+
- - ">="
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: '0'
|
171
|
+
requirements: []
|
172
|
+
rubygems_version: 3.0.3
|
173
|
+
signing_key:
|
174
|
+
specification_version: 4
|
175
|
+
summary: App Store Connect API Plugin
|
176
|
+
test_files: []
|