changeset 105:5c7b675ede8f

Fixes fastlane issues with release and beta lanes
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Wed, 04 Aug 2021 21:33:34 +0100
parents 3ec9e69b28f9
children 599fe95307f6
files fastlane/Fastfile fastlane/Snapfile
diffstat 2 files changed, 26 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/fastlane/Fastfile	Wed Aug 04 21:32:37 2021 +0100
+++ b/fastlane/Fastfile	Wed Aug 04 21:33:34 2021 +0100
@@ -20,14 +20,20 @@
   desc "Push a new beta build to TestFlight"
   lane :beta do
     increment_build_number(
-      build_number: latest_testflight_build_number(
-        initial_build_number: 1,
-        version: get_version_number(xcodeproj: "Simoleon.xcodeproj"),
-        live: false
-      ) + 1,
+      build_number: latest_testflight_build_number + 1,
+      xcodeproj: "Simoleon.xcodeproj"
     )
+    
     build_app(scheme: "Simoleon")
-    upload_to_testflight
+    upload_to_testflight(
+      beta_app_review_info: {
+        contact_email: "dmartin@dennistech.io",
+        contact_first_name: "Dennis",
+        contact_last_name: "Concepcion Martin",
+        contact_phone: "+34 639 465 931",
+        notes: "Go and crash it. Thank you for reviewing <3"
+      }
+    )
   end
 
   desc "Release new version to App Store"
--- a/fastlane/Snapfile	Wed Aug 04 21:32:37 2021 +0100
+++ b/fastlane/Snapfile	Wed Aug 04 21:33:34 2021 +0100
@@ -1,10 +1,8 @@
-# Uncomment the lines below you want to change by removing the # in the beginning
-
 # A list of devices you want to take the screenshots from
 devices([
 	"iPhone 8 Plus",
 	"iPhone 12 Pro Max",
-	"iPad Pro (12.9-inch) (4th generation)"
+	"iPad Pro (12.9-inch) (5th generation)"
 ])
 
 languages([
@@ -15,27 +13,27 @@
 	"fr-FR",
 	"pt-PT",
 	"nl-NL",
-	"it-IT",
-	"ru-RU"
+	"it",
+	"ru"
 ])
 
-# The name of the scheme which contains the UI Tests
+# The name of the scheme which contains the UI Tests.
 scheme("Screenshots")
 
-# Where should the resulting screenshots be stored?
-# output_directory("./screenshots")
+# Enabling this option will automatically uninstall the application before running it.
+# reinstall_app(true)
 
-# remove the '#' to clear all previously generated screenshots before creating new ones
+# Should the project be cleaned before building it?
+clean(true)
+
+# Enabling this option will configure the Simulator's system language.
+localize_simulator(true)
+
+# Clear all previously generated screenshots before creating new ones.
 clear_previous_screenshots(true)
 
-# Remove the '#' to set the status bar to 9:41 AM, and show full battery and reception. See also override_status_bar_arguments for custom options.
+# Remove the '#' to set the status bar to 9:41 AM, and show full battery and reception.
 override_status_bar(true)
 
-# Arguments to pass to the app on launch. See https://docs.fastlane.tools/actions/snapshot/#launch-arguments
-# launch_arguments(["-favColor red"])
-
-# Enabling this option will configure the Simulator's system language
-localize_simulator(true)
-
 # For more information about all available options run
 # fastlane action snapshot