diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 97815be..223531e 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -189,64 +189,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 bundle for Alpha testing in Google Play store" - lane :deploy_alpha do |options| - bump - gradle( - task: "clean bundle", - 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( - aab: "app/build/outputs/bundle/#{getFlavorName(options)}Release/app-#{getFlavorName(options)}-release.aab", - mapping: "app/build/outputs/mapping/#{getFlavorName(options)}/release/mapping.txt", - track: 'internal', - skip_upload_aab: 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(