Skip to content

Commit

Permalink
fix keystore location
Browse files Browse the repository at this point in the history
  • Loading branch information
Zainrax committed Oct 1, 2024
1 parent 2204d3b commit 0f03e04
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions sidekick/fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,15 @@
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane
# fastlane/Fastfile

default_platform(:android)

platform :android do
desc "Build and upload the app to Google Play Alpha track"
lane :alpha do
# Load keystore properties
# Load keystore properties from ~/.android/
keystore_properties = {}
File.open("keystore.properties") do |file|
keystore_path = File.expand_path("~/.android/keystore.properties")
UI.user_error!("Couldn't find keystore.properties file at #{keystore_path}") unless File.exist?(keystore_path)
File.open(keystore_path) do |file|
file.each_line do |line|
key, value = line.strip.split('=')
keystore_properties[key] = value
Expand All @@ -43,7 +32,7 @@ platform :android do
upload_to_play_store(
track: 'alpha',
aab: 'app/build/outputs/bundle/release/app-release.aab',
json_key: "api.json"
json_key: ENV['GOOGLE_PLAY_JSON_KEY']
)
end
end

0 comments on commit 0f03e04

Please sign in to comment.