Select Git revision
Fastfile 2.03 KiB
# 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
default_platform(:android)
platform :android do
before_all do
ENV["FIREBASE_LOGIN_CREDENTIALS"] = "fastlane/fastlane-admin-app-distribution.json"
ENV["FIREBASE_APP_ID"] = "1:771295755070:android:5007592bd3aba1c3ec0a6f"
end
######## FIREBASE DISTRIBUTION ########
desc "Submit a new Google Test Build to Firebase App Distribution"
lane :distributeViaFirebase do |options|
#gradle(task: "bundleRelease")
gradle(task: "clean assembleDebug")
#apk_path = "app/build/outputs/bundle/release/app-release.aab"
apk_path = "app/build/outputs/apk/debug/app-debug.apk"
firebase_app_distribution(
app: ENV["FIREBASE_APP_ID"],
apk_path: apk_path,
release_notes: "Release notes",
groups_file: "fastlane/groups.txt",
service_credentials_file: ENV["FIREBASE_LOGIN_CREDENTIALS"]
)
end
desc "build the apk"
lane :build do
gradle(task: "bundleRelease")
#gradle(task: "clean assembleDebug")
# gradle(task: "clean assembleRelease")
end
desc "Deploy a new version to the Google Play - Alpha"
lane :deployToPlaystoreAlpha do
gradle(task: "bundleRelease")
upload_to_play_store(
track: "alpha",
json_key: "/home/karthik_shetty_niveussolutions_c/prj-common-services-01-0c9b948542c2.json",
package_name: "com.kp.testapp",
apk: "app/build/outputs/bundle/release/app-release.aab",
skip_upload_metadata: true, # Set to false if you want to upload metadata (e.g., changelog)
skip_upload_images: true, # Set to false if you want to upload screenshots, feature graphics, etc.
)
end
end