Skip to content

Commit 15ca67d

Browse files
committed
Extract release_notes.txt full path to a constant
1 parent 41b4001 commit 15ca67d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fastlane/Fastfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ SECRETS_ROOT = File.join(Dir.home, '.configure', 'simplenote-ios', 'secrets')
3434
APP_STORE_CONNECT_KEY_PATH = File.join(SECRETS_ROOT, 'app_store_connect_fastlane_api_key.json')
3535
$used_test_account_index = nil
3636

37+
RELEASE_NOTES_SOURCE_PATH = File.join(PROJECT_ROOT_FOLDER, 'Simplenote', 'Resources', 'release_notes.txt')
38+
3739
require_relative 'lib/env_manager'
3840

3941
# Important: These need to be imported after all the constants have be defined because the access them.
@@ -72,7 +74,7 @@ platform :ios do
7274
source_metadata_folder = File.join(prj_folder, 'fastlane', 'appstoreres', 'metadata', 'source')
7375

7476
files = {
75-
whats_new: File.join(prj_folder, 'Simplenote', 'Resources', 'release_notes.txt'),
77+
whats_new: RELEASE_NOTES_SOURCE_PATH,
7678
app_store_subtitle: File.join(source_metadata_folder, 'subtitle.txt'),
7779
app_store_desc: File.join(source_metadata_folder, 'description.txt'),
7880
app_store_keywords: File.join(source_metadata_folder, 'keywords.txt')

0 commit comments

Comments
 (0)