fastlane-plugin-react_native_release 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 693da95436e682f5233e4ea491c6e8432aa7f10c6e5b0fa9f2b23a506c1747e5
|
|
4
|
+
data.tar.gz: 40783862e8e508483b2cabb6e93a1b33d12459f4150bffab15e641b9aeee8f98
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 87773a38a7f687c56d21336ce497446d77b49d42ced974affe5df64b0b5b126fbeddbba0a12f23938a266e2341220388374952c2d59db15699f42815a39bc722
|
|
7
|
+
data.tar.gz: ab68b057b194da0573a44151a2bbc2f397475aeb6f4a0533896b096cced172c3ae7fcca2b81226fb559db960210b1ab5e38f79463399ac0ffc5cad6392ed369f
|
data/README.md
CHANGED
|
@@ -33,19 +33,10 @@ To enable the fastlane session add an `.env` file at `<root>/fastlane/.env` with
|
|
|
33
33
|
|-----|------|-------------|
|
|
34
34
|
| FASTLANE_ENV_GIT_URL | String | The repository where the hashed session token will be stored. **Ensure this repository before running the release script!** (Must be a separate repository solely for securely storing the session token). |
|
|
35
35
|
| FASTLANE_ENV_USERNAME | String | The Apple Developer Account email to authenticate with 2FA and generate a session token for. |
|
|
36
|
+
| CRYPTEX_PASSWORD | String | The secret key used to encrypt/decrypt the `FASTLANE_SESSION` value. |
|
|
36
37
|
|
|
37
|
-
Note: Apple requires 2FA on all accounts now and the IOS build steps will fail if you attempt to upload to TestFlight or AppStore Connect without a session token.
|
|
38
|
-
|
|
39
|
-
#### Important!
|
|
40
|
-
|
|
41
|
-
Before running the release script, we will need to authenticate locally and generate an initial token to store credentials in the keychain to be used in the release script.
|
|
42
|
-
|
|
43
|
-
1. Using the same *Apple Developer Account* (`FASTLANE_ENV_USERNAME`) in the `<root>/fastlane/.env` authenticate on [AppStore Connect](https://appstoreconnect.apple.com/login).
|
|
44
|
-
|
|
45
|
-
2. Then run `fastlane spaceauth -u {YOUR FASTLANE_ENV_USERNAME}`, enter your Apple Developer Account password and complete the 2FA code if prompted.
|
|
46
|
-
|
|
47
|
-
These steps are required for every machine, otherwise the release script will fail.
|
|
48
38
|
|
|
39
|
+
Note: Apple requires 2FA on all accounts now and the IOS build steps will fail if you attempt to upload to TestFlight or AppStore Connect without a session token.
|
|
49
40
|
|
|
50
41
|
## About React Native Release
|
|
51
42
|
|
|
@@ -9,9 +9,7 @@ module Fastlane
|
|
|
9
9
|
def self.run(params)
|
|
10
10
|
require 'fastlane/plugin/android_versioning'
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
create_fastlane_session
|
|
14
|
-
end
|
|
12
|
+
create_fastlane_session
|
|
15
13
|
|
|
16
14
|
target = UI.select "Select a release type:", VALID_TARGETS
|
|
17
15
|
is_beta = target.include?('beta')
|
|
@@ -129,24 +127,25 @@ module Fastlane
|
|
|
129
127
|
|
|
130
128
|
UI.message "Generating a new FASTLANE_SESSION."
|
|
131
129
|
|
|
132
|
-
file = Tempfile.new('')
|
|
133
|
-
|
|
134
130
|
fastlane_session_git_url = ENV["FASTLANE_ENV_GIT_URL"]
|
|
135
131
|
fastlane_session_username = ENV["FASTLANE_ENV_USERNAME"]
|
|
136
132
|
|
|
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
|
+
|
|
137
139
|
if !fastlane_session_username;
|
|
138
140
|
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.")
|
|
139
141
|
elsif !fastlane_session_git_url;
|
|
140
142
|
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.")
|
|
141
143
|
else
|
|
142
|
-
system "
|
|
143
|
-
system "pbpaste > #{file.path}"
|
|
144
|
+
system "fastlane spaceauth -u #{fastlane_session_username}";
|
|
144
145
|
|
|
145
|
-
UI.message "File created at: #{file.path}"
|
|
146
|
-
|
|
147
146
|
other_action.cryptex(
|
|
148
147
|
type: "import",
|
|
149
|
-
in:
|
|
148
|
+
in: spaceship_cookie_path,
|
|
150
149
|
key: "FASTLANE_SESSION",
|
|
151
150
|
git_url: fastlane_session_git_url
|
|
152
151
|
)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Ball
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-11-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fastlane-plugin-android_versioning
|