72 lines
2.1 KiB
Ruby
72 lines
2.1 KiB
Ruby
# 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
|
|
|
|
desc "Runs all the tests"
|
|
lane :test do
|
|
gradle(
|
|
task: "test")
|
|
end
|
|
|
|
desc "Build a signed release APK"
|
|
lane :release do |options|
|
|
gradle(
|
|
task: "clean assemble",
|
|
flavor: "tangemAccess",
|
|
build_type: "Release",
|
|
properties: {
|
|
"android.injected.signing.store.file" => options[:keystore],
|
|
"android.injected.signing.store.password" => options[:store_password],
|
|
"android.injected.signing.key.alias" => options[:key_alias],
|
|
"android.injected.signing.key.password" => options[:key_password],
|
|
})
|
|
end
|
|
|
|
desc "Build debug and release APKs"
|
|
lane :build do |options|
|
|
gradle(
|
|
task: "clean assemble",
|
|
flavor: "tangemAccess",
|
|
build_type: "Debug_beta",
|
|
properties: {
|
|
'versionCode' => options[:versionCode],
|
|
'versionName' => options[:versionName],
|
|
})
|
|
gradle(
|
|
task: "assemble",
|
|
flavor: "tangemAccess",
|
|
build_type: "Release",
|
|
properties: {
|
|
'versionCode' => options[:versionCode],
|
|
'versionName' => options[:versionName],
|
|
"android.injected.signing.store.file" => options[:keystore],
|
|
"android.injected.signing.store.password" => options[:store_password],
|
|
"android.injected.signing.key.alias" => options[:key_alias],
|
|
"android.injected.signing.key.password" => options[:key_password],
|
|
})
|
|
end
|
|
|
|
desc "Submit a new Beta Build to Crashlytics Beta"
|
|
lane :beta do |options|
|
|
crashlytics(
|
|
api_token: options[:api_token],
|
|
build_secret: options[:build_secret],
|
|
apk_path: options[:apk_path])
|
|
end
|
|
|
|
end
|