fastlane-plugin-yalantis_ci 0.2.0 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastlane/plugin/yalantis_ci/actions/app_store_connect_api_key_add_to_remote.rb +9 -2
- data/lib/fastlane/plugin/yalantis_ci/actions/app_store_connect_api_key_remove_from_remote.rb +8 -1
- data/lib/fastlane/plugin/yalantis_ci/actions/app_store_connect_api_key_set_from_remote.rb +8 -1
- data/lib/fastlane/plugin/yalantis_ci/actions/ci_setup.rb +7 -3
- data/lib/fastlane/plugin/yalantis_ci/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d91a158d988a0fd569af544f547374138d2ce69cfa38b00ee56945e56bd5501
|
4
|
+
data.tar.gz: 423f3c2c40de0ad65cfedf1cd6acc5476288784553378f9e68f7f351e0cb0b83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2233be131a1669857409731337330134b4d71b51c29aa32157a1228d59461b5b0af59694cca9069458444a40df1d554f5555f0e80f634df072ac908a696f93d
|
7
|
+
data.tar.gz: 4df17f0a749272ba71eedc1ee135ffa6ce87e796b201fffbaee1de9a2dff29c3a3ead0454aa6482df9a5bc12e94398d2090e43047902c33cec72a09214efe0ac
|
@@ -7,7 +7,7 @@ module Fastlane
|
|
7
7
|
class AppStoreConnectApiKeyAddToRemoteAction < Action
|
8
8
|
def self.run(options)
|
9
9
|
git_repo_url = options[:git_repo_url]
|
10
|
-
git_repo_branch =
|
10
|
+
git_repo_branch = options[:git_repo_branch]
|
11
11
|
key_filepath = options[:key_filepath]
|
12
12
|
key_id = options[:key_id]
|
13
13
|
key_content = options[:key_content]
|
@@ -22,7 +22,7 @@ module Fastlane
|
|
22
22
|
target_filepath = File.join(dir, target_filename)
|
23
23
|
|
24
24
|
if key_filepath.nil? == false
|
25
|
-
FileUtils.cp(File.
|
25
|
+
FileUtils.cp(File.expand_path(key_filepath), target_filepath)
|
26
26
|
else
|
27
27
|
File.open(target_filepath, 'w') do |file|
|
28
28
|
if is_key_content_base64
|
@@ -63,6 +63,13 @@ module Fastlane
|
|
63
63
|
description: "Git repo URL where AppStore Connect's Api Key should be stored in",
|
64
64
|
type: String
|
65
65
|
),
|
66
|
+
FastlaneCore::ConfigItem.new(
|
67
|
+
key: :git_repo_branch,
|
68
|
+
env_name: "APP_STORE_CONNECT_API_KEY_GIT_REPO_BRANCH",
|
69
|
+
description: "Git repo branch where AppStore Connect's Api Key should be stored in",
|
70
|
+
type: String,
|
71
|
+
default_value: 'master'
|
72
|
+
),
|
66
73
|
FastlaneCore::ConfigItem.new(
|
67
74
|
key: :key_filepath,
|
68
75
|
env_name: "APP_STORE_CONNECT_API_KEY_KEY_FILEPATH",
|
data/lib/fastlane/plugin/yalantis_ci/actions/app_store_connect_api_key_remove_from_remote.rb
CHANGED
@@ -7,7 +7,7 @@ module Fastlane
|
|
7
7
|
class AppStoreConnectApiKeyRemoveFromRemoteAction < Action
|
8
8
|
def self.run(options)
|
9
9
|
git_repo_url = options[:git_repo_url]
|
10
|
-
git_repo_branch =
|
10
|
+
git_repo_branch = options[:git_repo_branch]
|
11
11
|
key_id = options[:key_id]
|
12
12
|
|
13
13
|
Helper::GitHelper.clone_repo_in_tmp(git_repo_url, git_repo_branch, false) do |dir|
|
@@ -42,6 +42,13 @@ module Fastlane
|
|
42
42
|
description: "Git repo URL where AppStore Connect's Api Key should be stored in",
|
43
43
|
type: String
|
44
44
|
),
|
45
|
+
FastlaneCore::ConfigItem.new(
|
46
|
+
key: :git_repo_branch,
|
47
|
+
env_name: "APP_STORE_CONNECT_API_KEY_GIT_REPO_BRANCH",
|
48
|
+
description: "Git repo branch where AppStore Connect's Api Key should be stored in",
|
49
|
+
type: String,
|
50
|
+
default_value: 'master'
|
51
|
+
),
|
45
52
|
FastlaneCore::ConfigItem.new(
|
46
53
|
key: :key_id,
|
47
54
|
env_name: "APP_STORE_CONNECT_API_KEY_KEY_ID",
|
@@ -6,7 +6,7 @@ module Fastlane
|
|
6
6
|
class AppStoreConnectApiKeySetFromRemoteAction < Action
|
7
7
|
def self.run(options)
|
8
8
|
git_repo_url = options[:git_repo_url]
|
9
|
-
git_repo_branch =
|
9
|
+
git_repo_branch = options[:git_repo_branch]
|
10
10
|
|
11
11
|
key_id = options[:key_id]
|
12
12
|
issuer_id = options[:issuer_id]
|
@@ -48,6 +48,13 @@ module Fastlane
|
|
48
48
|
description: "Git repo URL where AppStore Connect's Api Key should be stored in",
|
49
49
|
type: String
|
50
50
|
),
|
51
|
+
FastlaneCore::ConfigItem.new(
|
52
|
+
key: :git_repo_branch,
|
53
|
+
env_name: "APP_STORE_CONNECT_API_KEY_GIT_REPO_BRANCH",
|
54
|
+
description: "Git repo branch where AppStore Connect's Api Key should be stored in",
|
55
|
+
type: String,
|
56
|
+
default_value: 'master'
|
57
|
+
),
|
51
58
|
FastlaneCore::ConfigItem.new(
|
52
59
|
key: :key_id,
|
53
60
|
env_name: "APP_STORE_CONNECT_API_KEY_KEY_ID",
|
@@ -71,8 +71,12 @@ module Fastlane
|
|
71
71
|
# We need to setup a unique name for Match Repo to not interfere with any other
|
72
72
|
# project. Project name includes normalized xcodeproj name and team id.
|
73
73
|
# This ensures that same project can use different teams simultaniously.
|
74
|
-
|
75
|
-
|
74
|
+
if ENV['MATCH_GIT_BRANCH'].nil?
|
75
|
+
UI.message("Setting Match repo branch to: \"#{branch_name}\"")
|
76
|
+
ENV['MATCH_GIT_BRANCH'] = branch_name
|
77
|
+
else
|
78
|
+
UI.message("Skipping Match being set to: \"#{ENV['MATCH_GIT_BRANCH']}\"")
|
79
|
+
end
|
76
80
|
end
|
77
81
|
|
78
82
|
def self.setup_temp_keychain(id)
|
@@ -94,7 +98,7 @@ module Fastlane
|
|
94
98
|
end
|
95
99
|
|
96
100
|
UI.message("Setting temporary keychain path to: \"#{path}\"")
|
97
|
-
other_action.create_keychain(unlock: true, timeout:
|
101
|
+
other_action.create_keychain(unlock: true, timeout: 0, add_to_search_list: true)
|
98
102
|
end
|
99
103
|
|
100
104
|
#####################################################
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-yalantis_ci
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dima Vorona
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane-plugin-firebase_app_distribution
|