diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 992533f..884ed16 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -122,7 +122,7 @@ end before_all do |lane, options| - # ENV["SLACK_URL"] = "https://hooks.slack.com/services/..." + # This block is called before any lane end desc "Display infos about the app" @@ -156,64 +156,6 @@ ) end - desc "Bump version code/build number" - private_lane :bump do |options| - increment_version_code( - var_name: "versionCode|versionBuild", - verbose: true, - ) - end - - desc "Tag as a new version" - private_lane :tag do |options| - git_commit( - path: "app/build.gradle", - message: "Increment version code to #{lane_context[SharedValues::VERSION_CODE]} for next release", - ) - add_git_tag( - tag: "#{ENV['VERSION']}-#{lane_context[SharedValues::VERSION_CODE]}", - message: "Create new tag for version #{ENV['VERSION']}-#{lane_context[SharedValues::VERSION_CODE]}", - ) - push_to_git_remote( - local_branch: "HEAD", - remote_branch: "master", - ) - end - - desc "Build and deploy the apk for Alpha testing in Google Play store" - lane :deploy_alpha do |options| - bump - gradle( - task: "clean assemble", - build_type: 'Release', - ) - sh("cp -vf metadata/android/en-US/changelogs/latest.txt metadata/android/en-US/changelogs/#{lane_context[SharedValues::VERSION_CODE]}.txt") - sh("git add metadata/android/en-US/changelogs/#{lane_context[SharedValues::VERSION_CODE]}.txt") - sh("git add metadata/android/en-US/changelogs/latest.txt") - sh("cp -vf metadata/android/nl-NL/changelogs/latest.txt metadata/android/nl-NL/changelogs/#{lane_context[SharedValues::VERSION_CODE]}.txt") - sh("git add metadata/android/nl-NL/changelogs/#{lane_context[SharedValues::VERSION_CODE]}.txt") - sh("git add metadata/android/nl-NL/changelogs/latest.txt") - git_commit( - path: [ - "fastlane/metadata/android/en-US/changelogs/latest.txt", - "fastlane/metadata/android/en-US/changelogs/#{lane_context[SharedValues::VERSION_CODE]}.txt", - "fastlane/metadata/android/nl-NL/changelogs/latest.txt", - "fastlane/metadata/android/nl-NL/changelogs/#{lane_context[SharedValues::VERSION_CODE]}.txt", - ], - message: "Provide changelogs for this version", - ) - supply( - apk: "app/build/outputs/apk/#{getFlavorName(options)}/release/app-#{getFlavorName(options)}-release.apk", - mapping: "app/build/outputs/apk/#{getFlavorName(options)}/release/mapping.txt", - track: 'alpha', - skip_upload_apk: false, - skip_upload_metadata: false, - skip_upload_images: true, - skip_upload_screenshots: true, - ) - tag - end - desc "Update metadata only, including images and screenshots" lane :deploy_metadata do |options| supply( @@ -224,16 +166,6 @@ ) end - desc "Submit a new build to Crashlytics Beta" - lane :beta_crash do |options| - gradle(task: "assembleRelease") - crashlytics( - api_token: "b439e4099424e0f33cdab4e7b689b60c4bc3a5d2", - build_secret: "ecffdd52c995054f79161c3570ed769f2bacf2dd3082e2aba7489b147c29ce7d" - ) - end - - desc "Submit a new build to Firebase App Distribution" lane :beta_firebase do |options| gradle(task: "assembleRelease") @@ -285,21 +217,12 @@ ) end - # You can define as many lanes as you want - after_all do |lane, options| # This block is called, only if the executed lane was successful - - # slack( - # message: "Successfully deployed new App Update." - # ) end error do |lane, exception| - # slack( - # message: exception.message, - # success: false - # ) + # This block is called, only if the executed lane failed end end