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: 693da95436e682f5233e4ea491c6e8432aa7f10c6e5b0fa9f2b23a506c1747e5
4
- data.tar.gz: 40783862e8e508483b2cabb6e93a1b33d12459f4150bffab15e641b9aeee8f98
3
+ metadata.gz: 5d1ace9366843a8343a0e56082dceacf593f338488189ab5a783ff7288fe345c
4
+ data.tar.gz: b606e51a740a88e2ee42abcbc2a5793075b65845dd97dc78755f87873c094b4b
5
5
  SHA512:
6
- metadata.gz: 87773a38a7f687c56d21336ce497446d77b49d42ced974affe5df64b0b5b126fbeddbba0a12f23938a266e2341220388374952c2d59db15699f42815a39bc722
7
- data.tar.gz: ab68b057b194da0573a44151a2bbc2f397475aeb6f4a0533896b096cced172c3ae7fcca2b81226fb559db960210b1ab5e38f79463399ac0ffc5cad6392ed369f
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 FASTLANE_SESSION."
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
- system "fastlane spaceauth -u #{fastlane_session_username}";
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
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module ReactNativeRelease
3
- VERSION = "0.4.0"
3
+ VERSION = "0.5.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-react_native_release
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Ball