diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 1c50dd2892..56dd357aba 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -16,65 +16,53 @@ default_platform(:android) platform :android do + desc "Runs all the tests" lane :test do gradle( - task: "test", - flavor: "tangemAccess", - build_type: "Debug") + task: "test", + flavor: "tangemAccess", + build_type: "DebugUnitTest") 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], - }) + 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") - - gradle( - task: "assemble", - flavor: "tangemAccess", - build_type: "Release", + desc "Build debug and release APKs" + lane :build do |options| + gradle( + task: "clean assemble", + flavor: "tangemAccess", + build_type: "Debug_beta") + gradle( + task: "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 a debug APK" - lane :debug do - gradle(task: "clean assemble", - flavor: "tangemAccess", - build_type: "Debug_beta") - end + 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]) + api_token: options[:api_token], + build_secret: options[:build_secret], + apk_path: options[:apk_path]) end - desc "Deploy a new version to the Google Play" - lane :deploy do - upload_to_play_store - end end diff --git a/fastlane/README.md b/fastlane/README.md index e452016d75..7c3f972135 100644 --- a/fastlane/README.md +++ b/fastlane/README.md @@ -31,21 +31,11 @@ Build a signed release APK fastlane android build ``` Build debug and release APKs -### android debug -``` -fastlane android debug -``` -Build a debug APK ### android beta ``` fastlane android beta ``` Submit a new Beta Build to Crashlytics Beta -### android deploy -``` -fastlane android deploy -``` -Deploy a new version to the Google Play ----