Supply/upload_to_play_store returns a success message but nothing is uploaded on the play store #21964
-
Hello everyone, I'm encountering an issue with supply/upload_to_play_store action. Despite receiving a success message upon uploading my Android app to the Play Store, I'm unable to find it on the store. Here's the lane i'm using desc 'Builds the Android APP for release'
lane :release do |options|
release = patch_versions(version: options[:version], build_type: 'Release', hotfix: options[:hotfix])
update_version_file(release)
commit_files(release) if UI.confirm('Do you want to commit the version files?')
build_ionic(env: 'production')
gradle(
task: 'clean',
project_dir: './android/',
print_command_output: false
)
gradle(
task: 'bundle',
build_type: 'Release',
project_dir: './android/',
print_command_output: false
)
if UI.confirm("Are you sure to upload the version #{release[:version]} (#{release[:code]}) to the store?")
upload_to_play_store(
release_status: 'draft',
skip_upload_apk: true,
validate_only: true,
skip_upload_metadata: true,
skip_upload_images: true,
skip_upload_screenshots: true
)
end
end Here's the fastlane log
✅ fastlane environment ✅Stack
System Locale
fastlane files:`./fastlane/Fastfile`# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
#
# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane
import './helper.rb'
import './global_lanes.rb'
import './private_lanes.rb'
default_platform(:android)
platform :android do
desc 'Build the Android APP for testing and upload it to firebase'
lane :testing do |options|
release = patch_versions(version: options[:version], build_type: 'Debug')
update_version_file(release)
commit_files(release) if UI.confirm('Do you want to commit the version files?')
build_ionic(options)
gradle(
task: 'clean',
project_dir: './android/',
print_command_output: false
)
gradle(
task: 'assemble',
build_type: 'Debug',
project_dir: './android/',
print_command_output: false
)
testing_upload(options) if options[:upload]
end
desc 'Builds the Android APP for release'
lane :release do |options|
release = patch_versions(version: options[:version], build_type: 'Release', hotfix: options[:hotfix])
update_version_file(release)
commit_files(release) if UI.confirm('Do you want to commit the version files?')
build_ionic(env: 'production')
gradle(
task: 'clean',
project_dir: './android/',
print_command_output: false
)
gradle(
task: 'bundle',
build_type: 'Release',
project_dir: './android/',
print_command_output: false
)
if UI.confirm("Are you sure to upload the version #{release[:version]} (#{release[:code]}) to the store?")
upload_to_play_store(
release_status: 'draft',
skip_upload_apk: true,
validate_only: true,
skip_upload_metadata: true,
skip_upload_images: true,
skip_upload_screenshots: true
)
end
end
private_lane :patch_versions do |options|
release = get_version(options[:version], :android, options[:build_type], hotfix: options[:hotfix])
android_set_version_name(version_name: release[:version], gradle_file: './android/app/build.gradle')
android_set_version_code(version_code: release[:code], gradle_file: './android/app/build.gradle')
UI.success "Android: Patched version #{release[:version]} and code #{release[:code]}"
release
end
end
platform :ios do
desc 'Build the iOS APP and upload it to firebase'
lane :testing do |options|
release = patch_versions(version: options[:version], build_type: 'Debug')
update_version_file(release)
commit_files(release) if UI.confirm('Do you want to commit the version files?')
build_ionic(options)
build_ios_app(
workspace: './ios/App/App.xcworkspace',
scheme: 'DirectAPM',
silent: true,
export_method: 'development',
output_directory: './ios/App/'
)
testing_upload(options) if options[:upload]
end
desc 'Builds the iOS APP for release'
lane :release do |options|
release = patch_versions(version: options[:version], build_type: 'Release', hotfix: options[:hotfix])
update_version_file(release)
commit_files(release) if UI.confirm('Do you want to commit the version files?')
build_ionic(env: 'production')
enable_automatic_code_signing(path: './ios/App/App.xcodeproj')
build_ios_app(
workspace: './ios/App/App.xcworkspace',
scheme: 'DirectAPM',
silent: true,
export_method: 'app-store',
output_directory: './ios/App/'
)
if UI.confirm('Are you sure to upload the build to the store?')
upload_to_app_store(
skip_metadata: true,
skip_screenshots: true,
automatic_release: false,
include_in_app_purchases: false
)
end
end
private_lane :patch_versions do |options|
release = get_version(options[:version], :ios, options[:build_type], hotfix: options[:hotfix])
increment_version_number(version_number: release[:version], xcodeproj: './ios/App/App.xcodeproj')
increment_build_number(build_number: release[:code], xcodeproj: './ios/App/App.xcodeproj')
UI.success "iOS: Patched version #{release[:version]} and code #{release[:code]}"
release
end
end `./fastlane/Appfile`json_key_file('./android/play-store-key.json') # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
package_name('....') # e.g. com.krausefx.app
app_identifier '....' # The bundle identifier of your app
apple_id '...' # Your Apple Developer Portal username
itc_team_name '...' fastlane gems
Loaded fastlane plugins:
Loaded gems
My goal is just to have a draft version on the play store that I can complete and release, does someone have an idea why the AAb is not uploaded on the Play store ? Thanks in advance 👍 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You called update_to_play_store with If false, the request would be made to the Google Play API. The default value is false: |
Beta Was this translation helpful? Give feedback.
You called update_to_play_store with
validate_only: true
, which meansValidates the current edit - does not change data on Google Play
.If false, the request would be made to the Google Play API. The default value is false:
https://docs.fastlane.tools/actions/upload_to_play_store/