libgdx/gdx-pay

error: cannot find symbol class PurchaseSystem

batbug opened this issue · 8 comments

Just upgrading my old app, had to upgrade gdx-pay 0.11.2 to the new version 1.3.2

All went fine for the google version, updates are compiling with no errors, but for ios version I got error: "cannot find symbol class PurchaseSystem". I can see in the release notes for version 1.0.0 that PurchaseSystem was removed, but i cannot find any explanation what to change now in the source code because there is no PurchaseSystem any more. Any help? Thank you in advance.

Did you clean your build folders?

Yes, but I dont understand how it can help me? I mean...

In the project source code there is this code

import com.badlogic.gdx.pay.PurchaseSystem;
then later
PurchaseSystem.onAppRestarted();
PurchaseSystem.setManager(new ModifiedPurchaseManager());

and later

PurchaseSystem.install(new PurchaseObserver() {

etc..

And now all this code is not working since PurchaseSystem is not a part of gdx-pay.

So what should I change now in the code? Any guides?

It is documented on the main readme
https://github.com/libgdx/gdx-pay#usage

Yes, but there is no "upgrade" documentation there. Is there any manuals for that?

No. If you can't see what to change from the steps given, remove your old code and start from scratch

@batbug did you manage to resolve it?

@keesvandieren no, we will eventually re-write this part, just a little bit later.

Ok, for now I will close the issue.

If you want to write an upgrade guide based on you experience, feel free to provide it.