Skip to content

Commit 3c03866

Browse files
committed
copy the play_private_key out of the android match repo
1 parent d13ab1a commit 3c03866

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

fastlane/platforms/android.rb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,17 @@
6767
# don't forget – lanes run inside of ./fastlane
6868
gradle_file = 'signing.properties'
6969
keystore_name = 'my-release-key.keystore'
70+
play_store_key = 'play-private-key.json'
7071

71-
src_dir = "#{match_dir}/android"
72-
dest_dir = '../android/app'
72+
src = "#{match_dir}/android"
7373

7474
# FastlaneCore::CommandExecutor.execute(command: "pwd", print_all: true, print_command: true)
75-
UI.command "cp #{src_dir}/#{gradle_file} #{dest_dir}/#{gradle_file}"
76-
FileUtils.cp("#{src_dir}/#{gradle_file}", "#{dest_dir}/#{gradle_file}")
77-
UI.command "cp #{src_dir}/#{keystore_name} #{dest_dir}/#{keystore_name}"
78-
FileUtils.cp("#{src_dir}/#{keystore_name}", "#{dest_dir}/#{keystore_name}")
75+
UI.command "cp #{src}/#{gradle_file} ../android/app/#{gradle_file}"
76+
FileUtils.cp("#{src}/#{gradle_file}", "../android/app/#{gradle_file}")
77+
UI.command "cp #{src}/#{keystore_name} ../android/app/#{keystore_name}"
78+
FileUtils.cp("#{src}/#{keystore_name}", "../android/app/#{keystore_name}")
79+
UI.command "cp #{src}/#{play_store_key} ../fastlane/#{play_store_key}"
80+
FileUtils.cp("#{src}/#{play_store_key}", "../fastlane/#{play_store_key}")
7981

8082
remove_match_clone(dir: match_dir)
8183
end

0 commit comments

Comments
 (0)