fastlane-plugin-react_native_release 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d1ace9366843a8343a0e56082dceacf593f338488189ab5a783ff7288fe345c
|
4
|
+
data.tar.gz: b606e51a740a88e2ee42abcbc2a5793075b65845dd97dc78755f87873c094b4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d3745a573e95e9e6c37bde59ac8e4fe371c1f0cb0f2a34ccff86129406e887e1b40983a3312a871bd6a1611f22f6f90a2f66f033949c77ef0da786117105b6d
|
7
|
+
data.tar.gz: fcab7c228c555b85fd460032fbbe5828d1bf7b0686ee0be3ae9a543d92c0144c369e5fcac3532119566ad6f88771978ab6878b9cba35852543c69caeae05b35a
|
@@ -122,26 +122,26 @@ module Fastlane
|
|
122
122
|
end
|
123
123
|
|
124
124
|
#
|
125
|
-
def self.create_fastlane_session
|
125
|
+
def self.create_fastlane_session
|
126
126
|
require 'fastlane/plugin/cryptex'
|
127
127
|
|
128
|
-
UI.message "Generating a new
|
128
|
+
UI.message "Generating a new fastlane session."
|
129
129
|
|
130
130
|
fastlane_session_git_url = ENV["FASTLANE_ENV_GIT_URL"]
|
131
131
|
fastlane_session_username = ENV["FASTLANE_ENV_USERNAME"]
|
132
|
-
|
132
|
+
fastlane_session_password = ENV["CRYPTEX_PASSWORD"]
|
133
133
|
spaceship_cookie_path = "#{File.expand_path('~')}/.fastlane/spaceship/#{fastlane_session_username}/cookie"
|
134
|
-
|
135
|
-
if File.exists?(spaceship_cookie_path)
|
136
|
-
system `rm #{spaceship_cookie_path}`
|
137
|
-
end
|
138
134
|
|
139
135
|
if !fastlane_session_username;
|
140
136
|
UI.user_error!("No FASTLANE_ENV_USERNAME var at <root>/fastlane/.env\nFASTLANE_ENV_USERNAME is used to authenticate with the App Store for iOS releases.")
|
141
137
|
elsif !fastlane_session_git_url;
|
142
138
|
UI.user_error!("No FASTLANE_ENV_GIT_URL var at <root>/fastlane/.env\nFASTLANE_ENV_GIT_URL is used to store the App Store Connect session to upload releases on CI.")
|
139
|
+
elsif !fastlane_session_password;
|
140
|
+
UI.user_error!("No CRYPTEX_PASSWORD var at <root>/fastlane/.env\nCRYPTEX_PASSWORD is used to encrypt/decrypt the App Store Connect session.")
|
143
141
|
else
|
144
|
-
|
142
|
+
UI.message "Please enter the 6 digit 2FA code if one is sent to your device; otherwise the script will continue automatically."
|
143
|
+
|
144
|
+
`fastlane spaceauth -u #{fastlane_session_username.shellescape}`
|
145
145
|
|
146
146
|
other_action.cryptex(
|
147
147
|
type: "import",
|
@@ -150,7 +150,7 @@ module Fastlane
|
|
150
150
|
git_url: fastlane_session_git_url
|
151
151
|
)
|
152
152
|
|
153
|
-
UI.message "Uploaded FASTLANE_SESSION securely to git repository."
|
153
|
+
UI.message "Uploaded FASTLANE_SESSION variable securely to git repository."
|
154
154
|
end
|
155
155
|
end
|
156
156
|
|