-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[spaceship] get app info categories easier #16741
Conversation
@joshdholtz what about primary_locale_code, available_primary_locale_codes and languages? These were available in the previous version of the library. |
I will look after lunch 🙂 |
lane :test do
require 'pp'
require 'spaceship'
Spaceship::Tunes.login(email)
Spaceship::Tunes.select_team(team_name: team_name)
app = Spaceship::ConnectAPI::App.find(bundle_id)
app_info = app.fetch_edit_app_info
# App
puts "\nPRIMARY LOCALE"
puts app.primary_locale
# App Info
puts "\nPRIMARY CATEGORY"
pp app_info.primary_category
puts "\nPRIMARY SUBCATEGORY 1"
pp app_info.primary_subcategory_one
puts "\nPRIMARY SUBCATEGORY 2"
pp app_info.primary_subcategory_one
puts "\SECONDARY CATEGORY"
pp app_info.secondary_category
puts "\SECONDARY SUBCATEGORY 1"
pp app_info.secondary_subcategory_one
puts "\SECONDARY SUBCATEGORY 2"
pp app_info.secondary_subcategory_one
# App Info Localizations
puts "\nApp Info Localizations"
app_info_localizations = app_info.get_app_info_localizations
app_info_localizations.each do |app_info_localization|
puts "\t#{app_info_localization.locale}"
end
# App Store Version
puts "\Live Version Localizations"
live_version = app.get_live_app_store_version
if live_version
# Version localizations
version_localizations = live_version.get_app_store_version_localizations
version_localizations.each do |version_localization|
puts "\t#{version_localization.locale}"
end
else
puts "No verson in live"
end
# App Store Version
puts "\nEdit Version Localizations"
edit_version = app.get_edit_app_store_version
if edit_version
# Version localizations
version_localizations = edit_version.get_app_store_version_localizations
version_localizations.each do |version_localization|
puts "\t#{version_localization.locale}"
end
else
puts "No verson in edit"
end |
I will docs next week explain all of this |
Hey @joshdholtz 👋 Thank you for your contribution to fastlane and congrats on getting this pull request merged 🎉 Please let us know if this change requires an immediate release by adding a comment here 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Congratulations! 🎉 This was released as part of fastlane 2.150.2 🚀
Motivation and Context
Fixes #16649 (comment) mentioned by @squallstar
Description
Testing Steps