2021-07-26 13:10:25 +02:00
|
|
|
# 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
|
2023-07-26 11:02:06 +02:00
|
|
|
keystore = ENV["keystore"]
|
|
|
|
keystore_pass = ENV["keystorepass"]
|
|
|
|
key_alias = ENV["keyalias"]
|
|
|
|
key_pass = ENV["keypass"]
|
|
|
|
|
2021-07-26 13:10:25 +02:00
|
|
|
desc "Runs all the tests"
|
|
|
|
lane :test do
|
|
|
|
gradle(task: "test")
|
|
|
|
end
|
|
|
|
|
2023-07-26 11:02:06 +02:00
|
|
|
desc "Deploy a new version to Google Play"
|
2021-07-26 13:10:25 +02:00
|
|
|
lane :deploy do
|
2023-07-26 11:02:06 +02:00
|
|
|
gradle(
|
|
|
|
task: "clean bundleGplayRustCryptoRelease",
|
|
|
|
properties: {
|
|
|
|
"android.injected.signing.store.file": keystore,
|
|
|
|
"android.injected.signing.store.password": keystore_pass,
|
|
|
|
"android.injected.signing.key.alias": key_alias,
|
|
|
|
"android.injected.signing.key.password": key_pass
|
|
|
|
}
|
|
|
|
)
|
|
|
|
upload_to_play_store(
|
|
|
|
# apk: lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]
|
|
|
|
)
|
2021-08-28 10:12:56 +02:00
|
|
|
end
|
|
|
|
|
2023-07-26 11:02:06 +02:00
|
|
|
desc "Deploy a beta to Google Play"
|
|
|
|
lane :deploy_beta do
|
|
|
|
gradle(
|
|
|
|
task: "clean bundleGplayRustCryptoRelease",
|
|
|
|
properties: {
|
|
|
|
"android.injected.signing.store.file": keystore,
|
|
|
|
"android.injected.signing.store.password": keystore_pass,
|
|
|
|
"android.injected.signing.key.alias": key_alias,
|
|
|
|
"android.injected.signing.key.password": key_pass
|
|
|
|
}
|
|
|
|
)
|
2021-08-28 10:12:56 +02:00
|
|
|
upload_to_play_store(
|
2023-07-26 11:02:06 +02:00
|
|
|
# apk: lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]
|
|
|
|
track: 'beta',
|
|
|
|
skip_upload_metadata: false,
|
2021-09-09 10:16:11 +02:00
|
|
|
skip_upload_images: true,
|
2023-07-26 11:02:06 +02:00
|
|
|
skip_upload_screenshots: true
|
2021-07-27 14:28:55 +02:00
|
|
|
)
|
2021-07-26 13:10:25 +02:00
|
|
|
end
|
|
|
|
end
|