[spaceship] fix fastlane init and temporarily retrofitting Spaceship::Tunes::Application.find#20480
[spaceship] fix fastlane init and temporarily retrofitting Spaceship::Tunes::Application.find#20480joshdholtz merged 9 commits intomasterfrom
fastlane init and temporarily retrofitting Spaceship::Tunes::Application.find#20480Conversation
Generated by 🚫 Danger |
847000c to
bbe1160
Compare
fastlane init and temporary fix for Spaceship::Tunes::Application.find
fastlane init and temporary fix for Spaceship::Tunes::Application.findfastlane init and temporarily retrofitting Spaceship::Tunes::Application.find
|
Regarding #20444 (comment).
I am one of the users who is using the Tunes API for IAP uploads. Thanks for working on a fix to get us up and running again so quickly!
I just tested your fix in our IAP automation project. It looks like things are working. Here are a subset of the API calls we are making. Let me know if you need more information to verify @joshdholtz. Looking forward to being able to use the ConnectAPI when it is available at some point in the future! |
|
@mjlaser Thank you for testing! BTW... do you mind dropping me an email at |
fastlane-bot
left a comment
There was a problem hiding this comment.
Congratulations! 🎉 This was released as part of fastlane 2.208.0 🚀
|
Thank you very much for putting this together! I can confirm I am now able to successfully distribute from App Center into App Store Connect like normal. 🙏 🎉 |
|
@joshdholtz The temporary solution for IAP management did the trick to unblock my pending bulk uploading, thanks! 👍 |
hello,Can you upload IAP now? I haven't succeeded here. I'll prompt undefined method ` in_ app_ purchases' for #Spaceship::ConnectAPI::App:0x00007facb1335f58 (NoMethodError) app.in_app_purchases.create!( |
|
create auto iap still failed now |
Motivation and Context
Spaceship::Tunes::Application.findDescription
❌ The legacy Apple endpoint that
Spaceship::Tunes::Application.findused is no longer availableThis was not an issue for anything inside of fastlane (besides
fastlane initstill accidentally using it).Fix 1 -
fastlane initThis was the easy fix.
setup_ios.rbnow usesSpaceship::ConnectAPI::App.findinstead. This uses the more stable Apple API now.Fix 2 - Retrofit
Spaceship::Tunes::Application.findBecause some users (and I think App Center) still want/need to use
Spaceship::Tunesfor in-app purchase things, I have done by best to retrofitSpaceship::Tunes:: Application.findby power it withSpaceship::ConnectAPI::App.find.It's not a perfect fit because not all of the data is available but it will at least find the app and be able to give the app name, id and platforms.
Testing Steps
Update
Gemfileand runbundle install,bundle update fastlane, orbundle updateOther Notes
Spaceship::TunesSTART USINGSpaceship::ConnectAPIif you canSpaceship::ConnectAPIsupport for in-app purchases (yet) but I'm working on it. You can follow along with progress on this issue for now - #20477