diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 059b100b2..4b46a551b 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -17,11 +17,11 @@ platform :android do gradle(task: "test") end - desc "Build a new Beta version" - lane :build_beta_google_free do |options| + desc "Build a new Free Beta version" + lane :build_beta_free do |options| gradle( task: "assemble", - flavor: "free_google", + flavor: "free", build_type: "Release", print_command: false, properties: { @@ -33,18 +33,49 @@ platform :android do ) end - desc "Deploy a new Beta version to the Google Play" +desc "Build a new Pro Beta version" + lane :build_beta_pro do |options| + gradle( + task: "assemble", + flavor: "pro", + build_type: "Release", + print_command: false, + properties: { + "android.injected.signing.store.file" => options[:storefile], + "android.injected.signing.store.password" => options[:storepass], + "android.injected.signing.key.alias" => options[:keyalias], + "android.injected.signing.key.password" => options[:keypass], + } + ) + end + + desc "Deploy a new Free Beta version to the Google Play" lane :deploy_beta_google_free do upload_to_play_store( track: "beta", skip_upload_metadata: "false", skip_upload_images: "true", skip_upload_screenshots: "false", - apk: "./app/build/outputs/apk/free_google/release/app-free_google-release.apk", + apk: "./app/build/outputs/apk/free_google/release/app-free-release.apk", validate_only: "false", ) gradle( task: 'clean' ) end -end \ No newline at end of file + + desc "Deploy a new Pro Beta version to the Google Play" + lane :deploy_beta_google_pro do + upload_to_play_store( + track: "beta", + skip_upload_metadata: "true", + skip_upload_images: "true", + skip_upload_screenshots: "true", + apk: "./app/build/outputs/apk/free_google/release/app-pro-release.apk", + validate_only: "false", + ) + gradle( + task: 'clean' + ) + end +end diff --git a/fastlane/README.md b/fastlane/README.md index 553e7173d..cb9980f8a 100644 --- a/fastlane/README.md +++ b/fastlane/README.md @@ -11,18 +11,29 @@ or alternatively using `brew cask install fastlane` # Available Actions ## Android ``` -fastlane tests +fastlane android tests ``` Runs all the tests - +### android build_beta_free ``` -fastlane build_beta_google_free storefile:"" storepass:"" keyalias:"" keypass:"" +fastlane android build_beta_free ``` -Build a new Beta version +Build a new Free Beta version +### android build_beta_pro ``` -fastlane deploy_beta_google_free +fastlane android build_beta_pro ``` -Deploy a new Beta version to the Google Play +Build a new Pro Beta version +### android deploy_beta_google_free +``` +fastlane android deploy_beta_google_free +``` +Deploy a new Free Beta version to the Google Play +### android deploy_beta_google_pro +``` +fastlane android deploy_beta_google_pro +``` +Deploy a new Pro Beta version to the Google Play ----