fastlane icon indicating copy to clipboard operation
fastlane copied to clipboard

iap additions

Open TCROC opened this issue 1 year ago • 1 comments

This supersedes https://github.com/fastlane/fastlane/pull/20996. @vanniktech expressed a desire to get these changes into master. The original author of the previous PR isn't responding. Tbh, I haven't used these since last summer BUT I do plan on using them in our new title very soon (probably in ~2 months). Here's is a PR with "Allows edits by maintainers" set to true so the maintainers can get this in faster if they so desire.

If you want to wait for me to resolve the merge conflicts, it probably won't be for at least another 2 months. But please feel free to make any changes yourself. I hope this helps you out @vanniktech :)

TCROC avatar May 26 '24 14:05 TCROC

I was trying it out using pry but I didn't get far:

my_id is from the return of Spaceship.app.find('com.vanniktech.yatzy.ios') which succeeded.

However when running this:

Spaceship::ConnectAPI.get_in_app_purchases(:app_id => "my_id")

it yielded:

[54] pry(#<Spaceship::Playground>)> Spaceship::ConnectAPI.get_in_app_purchases(:app_id => "8G9HJ2SL94")
Spaceship::UnexpectedResponse: The specified resource does not exist - There is no resource of type 'apps' with id '8G9HJ2SL94'

am I doing something wrong? This is my Gemfile:

source "https://rubygems.org"

gem "pry"
gem "fastlane", :git => "https://github.com/TCROC/fastlane", :branch => "tcroc/iap"

vanniktech avatar Jun 03 '24 05:06 vanniktech

@vanniktech I'm not sure if you still need it, but here's what I do, for what it's worth: ` app = Spaceship::ConnectAPI::App.find(bundle_id)

pry(app.get_in_app_purchases()) `

caroparo avatar Oct 03 '24 06:10 caroparo

Note I have resolved the merge conflicts in the original PR (apologies for the delay), https://github.com/fastlane/fastlane/pull/20996/#issuecomment-2726120263. I know these apis are working, we use them everyday at production scale.

addbrick avatar Mar 15 '25 02:03 addbrick