Fastfile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Customise this file, documentation can be found here:
  2. # https://github.com/fastlane/fastlane/tree/master/fastlane/docs
  3. # All available actions: https://docs.fastlane.tools/actions
  4. # can also be listed using the `fastlane actions` command
  5. # Change the syntax highlighting to Ruby
  6. # All lines starting with a # are ignored when running `fastlane`
  7. # If you want to automatically update fastlane if a new version is available:
  8. # update_fastlane
  9. # This is the minimum version number required.
  10. # Update this, if you use features of a newer version
  11. fastlane_version "2.58.0"
  12. default_platform :android
  13. platform :android do
  14. before_all do
  15. # ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."
  16. end
  17. desc "Runs all the tests"
  18. lane :test do
  19. gradle(task: "test")
  20. end
  21. desc "Submit a new Beta Build to Crashlytics Beta"
  22. lane :beta do
  23. gradle(task: "assembleRelease")
  24. crashlytics
  25. # sh "your_script.sh"
  26. # You can also use other beta testing services here
  27. end
  28. desc "Deploy a new version to the Google Play"
  29. lane :deploy do
  30. gradle(task: "assembleRelease")
  31. supply
  32. end
  33. # You can define as many lanes as you want
  34. after_all do |lane|
  35. # This block is called, only if the executed lane was successful
  36. # slack(
  37. # message: "Successfully deployed new App Update."
  38. # )
  39. end
  40. error do |lane, exception|
  41. # slack(
  42. # message: exception.message,
  43. # success: false
  44. # )
  45. end
  46. end
  47. lane :screenshots do
  48. screengrab
  49. # supply
  50. end
  51. # More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
  52. # All available actions: https://docs.fastlane.tools/actions
  53. # fastlane reports which actions are used. No personal data is recorded.
  54. # Learn more at https://github.com/fastlane/fastlane#metrics